kucservice 1.3.9 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -194,48 +194,6 @@ module.exports = function (fn, that) {
194
194
  };
195
195
 
196
196
 
197
- /***/ }),
198
-
199
- /***/ "0538":
200
- /***/ (function(module, exports, __webpack_require__) {
201
-
202
- "use strict";
203
-
204
- var global = __webpack_require__("da84");
205
- var uncurryThis = __webpack_require__("e330");
206
- var aCallable = __webpack_require__("59ed");
207
- var isObject = __webpack_require__("861d");
208
- var hasOwn = __webpack_require__("1a2d");
209
- var arraySlice = __webpack_require__("f36a");
210
- var NATIVE_BIND = __webpack_require__("40d5");
211
-
212
- var Function = global.Function;
213
- var concat = uncurryThis([].concat);
214
- var join = uncurryThis([].join);
215
- var factories = {};
216
-
217
- var construct = function (C, argsLength, args) {
218
- if (!hasOwn(factories, argsLength)) {
219
- for (var list = [], i = 0; i < argsLength; i++) list[i] = 'a[' + i + ']';
220
- factories[argsLength] = Function('C,a', 'return new C(' + join(list, ',') + ')');
221
- } return factories[argsLength](C, args);
222
- };
223
-
224
- // `Function.prototype.bind` method implementation
225
- // https://tc39.es/ecma262/#sec-function.prototype.bind
226
- module.exports = NATIVE_BIND ? Function.bind : function bind(that /* , ...args */) {
227
- var F = aCallable(this);
228
- var Prototype = F.prototype;
229
- var partArgs = arraySlice(arguments, 1);
230
- var boundFunction = function bound(/* args... */) {
231
- var args = concat(partArgs, arraySlice(arguments));
232
- return this instanceof boundFunction ? construct(F, args.length, args) : F.apply(that, args);
233
- };
234
- if (isObject(Prototype)) boundFunction.prototype = Prototype;
235
- return boundFunction;
236
- };
237
-
238
-
239
197
  /***/ }),
240
198
 
241
199
  /***/ "057f":
@@ -357,31 +315,6 @@ module.exports = !DESCRIPTORS && !fails(function () {
357
315
  });
358
316
 
359
317
 
360
- /***/ }),
361
-
362
- /***/ "0d03":
363
- /***/ (function(module, exports, __webpack_require__) {
364
-
365
- var uncurryThis = __webpack_require__("e330");
366
- var redefine = __webpack_require__("6eeb");
367
-
368
- var DatePrototype = Date.prototype;
369
- var INVALID_DATE = 'Invalid Date';
370
- var TO_STRING = 'toString';
371
- var un$DateToString = uncurryThis(DatePrototype[TO_STRING]);
372
- var getTime = uncurryThis(DatePrototype.getTime);
373
-
374
- // `Date.prototype.toString` method
375
- // https://tc39.es/ecma262/#sec-date.prototype.tostring
376
- if (String(new Date(NaN)) != INVALID_DATE) {
377
- redefine(DatePrototype, TO_STRING, function toString() {
378
- var value = getTime(this);
379
- // eslint-disable-next-line no-self-compare -- NaN check
380
- return value === value ? un$DateToString(this) : INVALID_DATE;
381
- });
382
- }
383
-
384
-
385
318
  /***/ }),
386
319
 
387
320
  /***/ "0d51":
@@ -658,21 +591,6 @@ fixRegExpWellKnownSymbolLogic('split', function (SPLIT, nativeSplit, maybeCallNa
658
591
  }, !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC, UNSUPPORTED_Y);
659
592
 
660
593
 
661
- /***/ }),
662
-
663
- /***/ "131a":
664
- /***/ (function(module, exports, __webpack_require__) {
665
-
666
- var $ = __webpack_require__("23e7");
667
- var setPrototypeOf = __webpack_require__("d2bb");
668
-
669
- // `Object.setPrototypeOf` method
670
- // https://tc39.es/ecma262/#sec-object.setprototypeof
671
- $({ target: 'Object', stat: true }, {
672
- setPrototypeOf: setPrototypeOf
673
- });
674
-
675
-
676
594
  /***/ }),
677
595
 
678
596
  /***/ "13d5":
@@ -1170,44 +1088,6 @@ exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
1170
1088
  };
1171
1089
 
1172
1090
 
1173
- /***/ }),
1174
-
1175
- /***/ "25f0":
1176
- /***/ (function(module, exports, __webpack_require__) {
1177
-
1178
- "use strict";
1179
-
1180
- var uncurryThis = __webpack_require__("e330");
1181
- var PROPER_FUNCTION_NAME = __webpack_require__("5e77").PROPER;
1182
- var redefine = __webpack_require__("6eeb");
1183
- var anObject = __webpack_require__("825a");
1184
- var isPrototypeOf = __webpack_require__("3a9b");
1185
- var $toString = __webpack_require__("577e");
1186
- var fails = __webpack_require__("d039");
1187
- var regExpFlags = __webpack_require__("ad6d");
1188
-
1189
- var TO_STRING = 'toString';
1190
- var RegExpPrototype = RegExp.prototype;
1191
- var n$ToString = RegExpPrototype[TO_STRING];
1192
- var getFlags = uncurryThis(regExpFlags);
1193
-
1194
- var NOT_GENERIC = fails(function () { return n$ToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });
1195
- // FF44- RegExp#toString has a wrong name
1196
- var INCORRECT_NAME = PROPER_FUNCTION_NAME && n$ToString.name != TO_STRING;
1197
-
1198
- // `RegExp.prototype.toString` method
1199
- // https://tc39.es/ecma262/#sec-regexp.prototype.tostring
1200
- if (NOT_GENERIC || INCORRECT_NAME) {
1201
- redefine(RegExp.prototype, TO_STRING, function toString() {
1202
- var R = anObject(this);
1203
- var p = $toString(R.source);
1204
- var rf = R.flags;
1205
- var f = $toString(rf === undefined && isPrototypeOf(RegExpPrototype, R) && !('flags' in RegExpPrototype) ? getFlags(R) : rf);
1206
- return '/' + p + '/' + f;
1207
- }, { unsafe: true });
1208
- }
1209
-
1210
-
1211
1091
  /***/ }),
1212
1092
 
1213
1093
  /***/ "2626":
@@ -1454,29 +1334,6 @@ if (!version && userAgent) {
1454
1334
  module.exports = version;
1455
1335
 
1456
1336
 
1457
- /***/ }),
1458
-
1459
- /***/ "3410":
1460
- /***/ (function(module, exports, __webpack_require__) {
1461
-
1462
- var $ = __webpack_require__("23e7");
1463
- var fails = __webpack_require__("d039");
1464
- var toObject = __webpack_require__("7b0b");
1465
- var nativeGetPrototypeOf = __webpack_require__("e163");
1466
- var CORRECT_PROTOTYPE_GETTER = __webpack_require__("e177");
1467
-
1468
- var FAILS_ON_PRIMITIVES = fails(function () { nativeGetPrototypeOf(1); });
1469
-
1470
- // `Object.getPrototypeOf` method
1471
- // https://tc39.es/ecma262/#sec-object.getprototypeof
1472
- $({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES, sham: !CORRECT_PROTOTYPE_GETTER }, {
1473
- getPrototypeOf: function getPrototypeOf(it) {
1474
- return nativeGetPrototypeOf(toObject(it));
1475
- }
1476
- });
1477
-
1478
-
1479
-
1480
1337
  /***/ }),
1481
1338
 
1482
1339
  /***/ "342f":
@@ -1627,612 +1484,35 @@ var fails = __webpack_require__("d039");
1627
1484
 
1628
1485
  module.exports = !fails(function () {
1629
1486
  var test = (function () { /* empty */ }).bind();
1630
- // eslint-disable-next-line no-prototype-builtins -- safe
1631
- return typeof test != 'function' || test.hasOwnProperty('prototype');
1632
- });
1633
-
1634
-
1635
- /***/ }),
1636
-
1637
- /***/ "4160":
1638
- /***/ (function(module, exports, __webpack_require__) {
1639
-
1640
- "use strict";
1641
-
1642
- var $ = __webpack_require__("23e7");
1643
- var forEach = __webpack_require__("17c2");
1644
-
1645
- // `Array.prototype.forEach` method
1646
- // https://tc39.es/ecma262/#sec-array.prototype.foreach
1647
- // eslint-disable-next-line es/no-array-prototype-foreach -- safe
1648
- $({ target: 'Array', proto: true, forced: [].forEach != forEach }, {
1649
- forEach: forEach
1650
- });
1651
-
1652
-
1653
- /***/ }),
1654
-
1655
- /***/ "4269":
1656
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1657
-
1658
- "use strict";
1659
- // ESM COMPAT FLAG
1660
- __webpack_require__.r(__webpack_exports__);
1661
-
1662
- // EXPORTS
1663
- __webpack_require__.d(__webpack_exports__, "useSocket", function() { return /* binding */ useSocket; });
1664
-
1665
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.error.cause.js
1666
- var es_error_cause = __webpack_require__("d9e2");
1667
-
1668
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.error.to-string.js
1669
- var es_error_to_string = __webpack_require__("d401");
1670
-
1671
- // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
1672
-
1673
-
1674
- function _assertThisInitialized(self) {
1675
- if (self === void 0) {
1676
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1677
- }
1678
-
1679
- return self;
1680
- }
1681
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.create.js
1682
- var es_object_create = __webpack_require__("b8bf");
1683
-
1684
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.define-property.js
1685
- var es_object_define_property = __webpack_require__("7a82");
1686
-
1687
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.set-prototype-of.js
1688
- var es_object_set_prototype_of = __webpack_require__("131a");
1689
-
1690
- // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
1691
-
1692
- function _setPrototypeOf(o, p) {
1693
- _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
1694
- o.__proto__ = p;
1695
- return o;
1696
- };
1697
-
1698
- return _setPrototypeOf(o, p);
1699
- }
1700
- // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js
1701
-
1702
-
1703
-
1704
-
1705
-
1706
- function _inherits(subClass, superClass) {
1707
- if (typeof superClass !== "function" && superClass !== null) {
1708
- throw new TypeError("Super expression must either be null or a function");
1709
- }
1710
-
1711
- subClass.prototype = Object.create(superClass && superClass.prototype, {
1712
- constructor: {
1713
- value: subClass,
1714
- writable: true,
1715
- configurable: true
1716
- }
1717
- });
1718
- Object.defineProperty(subClass, "prototype", {
1719
- writable: false
1720
- });
1721
- if (superClass) _setPrototypeOf(subClass, superClass);
1722
- }
1723
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.reflect.construct.js
1724
- var es_reflect_construct = __webpack_require__("4ae1");
1725
-
1726
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.to-string.js
1727
- var es_object_to_string = __webpack_require__("d3b7");
1728
-
1729
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.reflect.to-string-tag.js
1730
- var es_reflect_to_string_tag = __webpack_require__("f8c9");
1731
-
1732
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.get-prototype-of.js
1733
- var es_object_get_prototype_of = __webpack_require__("3410");
1734
-
1735
- // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
1736
-
1737
-
1738
- function _getPrototypeOf(o) {
1739
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
1740
- return o.__proto__ || Object.getPrototypeOf(o);
1741
- };
1742
- return _getPrototypeOf(o);
1743
- }
1744
- // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js
1745
-
1746
-
1747
-
1748
- function _isNativeReflectConstruct() {
1749
- if (typeof Reflect === "undefined" || !Reflect.construct) return false;
1750
- if (Reflect.construct.sham) return false;
1751
- if (typeof Proxy === "function") return true;
1752
-
1753
- try {
1754
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
1755
- return true;
1756
- } catch (e) {
1757
- return false;
1758
- }
1759
- }
1760
- // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
1761
- var esm_typeof = __webpack_require__("53ca");
1762
-
1763
- // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
1764
-
1765
-
1766
-
1767
-
1768
- function _possibleConstructorReturn(self, call) {
1769
- if (call && (Object(esm_typeof["a" /* default */])(call) === "object" || typeof call === "function")) {
1770
- return call;
1771
- } else if (call !== void 0) {
1772
- throw new TypeError("Derived constructors may only return object or undefined");
1773
- }
1774
-
1775
- return _assertThisInitialized(self);
1776
- }
1777
- // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/createSuper.js
1778
-
1779
-
1780
-
1781
-
1782
-
1783
-
1784
- function _createSuper(Derived) {
1785
- var hasNativeReflectConstruct = _isNativeReflectConstruct();
1786
- return function _createSuperInternal() {
1787
- var Super = _getPrototypeOf(Derived),
1788
- result;
1789
-
1790
- if (hasNativeReflectConstruct) {
1791
- var NewTarget = _getPrototypeOf(this).constructor;
1792
- result = Reflect.construct(Super, arguments, NewTarget);
1793
- } else {
1794
- result = Super.apply(this, arguments);
1795
- }
1796
-
1797
- return _possibleConstructorReturn(this, result);
1798
- };
1799
- }
1800
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.iterator.js
1801
- var es_array_iterator = __webpack_require__("e260");
1802
-
1803
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.map.js
1804
- var es_map = __webpack_require__("4ec9");
1805
-
1806
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.iterator.js
1807
- var es_string_iterator = __webpack_require__("3ca3");
1808
-
1809
- // EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom-collections.iterator.js
1810
- var web_dom_collections_iterator = __webpack_require__("ddb0");
1811
-
1812
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.index-of.js
1813
- var es_array_index_of = __webpack_require__("c975");
1814
-
1815
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.date.to-string.js
1816
- var es_date_to_string = __webpack_require__("0d03");
1817
-
1818
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.to-string.js
1819
- var es_regexp_to_string = __webpack_require__("25f0");
1820
-
1821
- // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/isNativeFunction.js
1822
-
1823
-
1824
-
1825
-
1826
-
1827
- function _isNativeFunction(fn) {
1828
- return Function.toString.call(fn).indexOf("[native code]") !== -1;
1829
- }
1830
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.bind.js
1831
- var es_function_bind = __webpack_require__("c0b6");
1832
-
1833
- // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/construct.js
1834
-
1835
-
1836
-
1837
-
1838
-
1839
-
1840
- function construct_construct(Parent, args, Class) {
1841
- if (_isNativeReflectConstruct()) {
1842
- construct_construct = Reflect.construct;
1843
- } else {
1844
- construct_construct = function _construct(Parent, args, Class) {
1845
- var a = [null];
1846
- a.push.apply(a, args);
1847
- var Constructor = Function.bind.apply(Parent, a);
1848
- var instance = new Constructor();
1849
- if (Class) _setPrototypeOf(instance, Class.prototype);
1850
- return instance;
1851
- };
1852
- }
1853
-
1854
- return construct_construct.apply(null, arguments);
1855
- }
1856
- // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js
1857
-
1858
-
1859
-
1860
-
1861
-
1862
-
1863
-
1864
-
1865
-
1866
-
1867
-
1868
-
1869
- function wrapNativeSuper_wrapNativeSuper(Class) {
1870
- var _cache = typeof Map === "function" ? new Map() : undefined;
1871
-
1872
- wrapNativeSuper_wrapNativeSuper = function _wrapNativeSuper(Class) {
1873
- if (Class === null || !_isNativeFunction(Class)) return Class;
1874
-
1875
- if (typeof Class !== "function") {
1876
- throw new TypeError("Super expression must either be null or a function");
1877
- }
1878
-
1879
- if (typeof _cache !== "undefined") {
1880
- if (_cache.has(Class)) return _cache.get(Class);
1881
-
1882
- _cache.set(Class, Wrapper);
1883
- }
1884
-
1885
- function Wrapper() {
1886
- return construct_construct(Class, arguments, _getPrototypeOf(this).constructor);
1887
- }
1888
-
1889
- Wrapper.prototype = Object.create(Class.prototype, {
1890
- constructor: {
1891
- value: Wrapper,
1892
- enumerable: false,
1893
- writable: true,
1894
- configurable: true
1895
- }
1896
- });
1897
- return _setPrototypeOf(Wrapper, Class);
1898
- };
1899
-
1900
- return wrapNativeSuper_wrapNativeSuper(Class);
1901
- }
1902
- // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js
1903
- var classCallCheck = __webpack_require__("d4ec");
1904
-
1905
- // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js
1906
- var createClass = __webpack_require__("bee2");
1907
-
1908
- // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
1909
- var defineProperty = __webpack_require__("ade3");
1910
-
1911
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.for-each.js
1912
- var es_array_for_each = __webpack_require__("4160");
1913
-
1914
- // EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom-collections.for-each.js
1915
- var web_dom_collections_for_each = __webpack_require__("159b");
1916
-
1917
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.keys.js
1918
- var es_object_keys = __webpack_require__("b64b");
1919
-
1920
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.reduce.js
1921
- var es_array_reduce = __webpack_require__("13d5");
1922
-
1923
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
1924
- var es_array_concat = __webpack_require__("99af");
1925
-
1926
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.assign.js
1927
- var es_object_assign = __webpack_require__("cca6");
1928
-
1929
- // EXTERNAL MODULE: ./node_modules/core-js/modules/web.timers.js
1930
- var web_timers = __webpack_require__("4795");
1931
-
1932
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.includes.js
1933
- var es_array_includes = __webpack_require__("caad");
1934
-
1935
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
1936
- var es_json_stringify = __webpack_require__("e9c4");
1937
-
1938
- // CONCATENATED MODULE: ./src/lib/webApi/websocket.js
1939
-
1940
-
1941
-
1942
-
1943
-
1944
-
1945
-
1946
-
1947
-
1948
-
1949
-
1950
-
1951
-
1952
-
1953
-
1954
-
1955
-
1956
-
1957
-
1958
-
1959
-
1960
-
1961
-
1962
-
1963
- var EventTypes = ['open', 'close', 'message', 'error', 'reconnect'];
1964
- var DEFAULT_CHECK_TIME = 30 * 1000; // 心跳检测的默认时间
1965
-
1966
- var TIMEOUT = 40 * 1000; //重连延迟时间
1967
-
1968
- var DEFAULT_CHECK_COUNT = 10; // 心跳检测默认失败重连次数
1969
-
1970
- var DEFAULT_CHECK_DATA = {
1971
- Type: 1,
1972
- Parameters: ['alive']
1973
- }; // 心跳检测的默认参数
1974
-
1975
- var CLOSE_ABNORMAL = 1000; // WebSocket正常关闭code码
1976
-
1977
- function deepClone(source) {
1978
- if (!source && Object(esm_typeof["a" /* default */])(source) !== 'object') {
1979
- throw new Error('error arguments', 'deepClone');
1980
- }
1981
-
1982
- var targetObj = source.constructor === Array ? [] : {};
1983
- Object.keys(source).forEach(function (keys) {
1984
- if (source[keys] && Object(esm_typeof["a" /* default */])(source[keys]) === 'object') {
1985
- targetObj[keys] = deepClone(source[keys]);
1986
- } else {
1987
- targetObj[keys] = source[keys];
1988
- }
1989
- });
1990
- return targetObj;
1991
- }
1992
-
1993
- var websocket_EventMap = /*#__PURE__*/function () {
1994
- function EventMap() {
1995
- Object(classCallCheck["a" /* default */])(this, EventMap);
1996
-
1997
- Object(defineProperty["a" /* default */])(this, "deps", new Map());
1998
- }
1999
-
2000
- Object(createClass["a" /* default */])(EventMap, [{
2001
- key: "depend",
2002
- value: function depend(eventType, callback) {
2003
- this.deps.set(eventType, callback);
2004
- }
2005
- }, {
2006
- key: "notify",
2007
- value: function notify(eventType, event) {
2008
- if (this.deps.has(eventType)) {
2009
- this.deps.get(eventType)(event);
2010
- }
2011
- }
2012
- }]);
2013
-
2014
- return EventMap;
2015
- }();
2016
-
2017
- var websocket_Socket = /*#__PURE__*/function (_WebSocket) {
2018
- _inherits(Socket, _WebSocket);
2019
-
2020
- var _super = _createSuper(Socket);
2021
-
2022
- /**
2023
- *
2024
- * @param {Object} _self vue实例 用于在销毁组件时 如果有重连的定时 则销毁
2025
- */
2026
- function Socket(options, dep) {
2027
- var _this;
2028
-
2029
- var reconnectCount = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
2030
-
2031
- var _self = arguments.length > 3 ? arguments[3] : undefined;
2032
-
2033
- Object(classCallCheck["a" /* default */])(this, Socket);
2034
-
2035
- var _baseURL = '';
2036
- var url = options.url,
2037
- protocols = options.protocols,
2038
- _options$query = options.query,
2039
- query = _options$query === void 0 ? {} : _options$query,
2040
- _options$greet = options.greet,
2041
- greet = _options$greet === void 0 ? null : _options$greet,
2042
- _options$customBase = options.customBase,
2043
- customBase = _options$customBase === void 0 ? null : _options$customBase,
2044
- checkData = options.checkData;
2045
-
2046
- var _queryParams = Object.keys(query).reduce(function (str, key) {
2047
- if (Object(esm_typeof["a" /* default */])(query[key]) !== 'object' && typeof query[key] !== 'function') {
2048
- return str += str.length > 0 ? "&".concat(key, "=").concat(query[key]) : "".concat(key, "=").concat(query[key]);
2049
- } else {
2050
- return str;
2051
- }
2052
- }, '');
2053
-
2054
- if (customBase) {
2055
- _baseURL = customBase;
2056
- }
2057
-
2058
- _this = _super.call(this, "".concat(_baseURL).concat(url).concat(_queryParams ? '?' + _queryParams : ''), protocols);
2059
-
2060
- Object(defineProperty["a" /* default */])(_assertThisInitialized(_this), "heartCheckData", DEFAULT_CHECK_DATA);
2061
-
2062
- Object(defineProperty["a" /* default */])(_assertThisInitialized(_this), "heartCheckTimeout", DEFAULT_CHECK_TIME);
2063
-
2064
- Object(defineProperty["a" /* default */])(_assertThisInitialized(_this), "heartCheckInterval", null);
2065
-
2066
- Object(defineProperty["a" /* default */])(_assertThisInitialized(_this), "heartCheckCount", DEFAULT_CHECK_COUNT);
2067
-
2068
- Object(defineProperty["a" /* default */])(_assertThisInitialized(_this), "firstConnect", false);
2069
-
2070
- _this.self = _self;
2071
- _this._currentOptions = options;
2072
- _this._dep = dep;
2073
- _this.heartCheckData = checkData || DEFAULT_CHECK_DATA;
2074
- _this._reconnectCount = reconnectCount;
2075
- greet && Object.assign(_assertThisInitialized(_this), {
2076
- heartCheckData: greet
2077
- });
2078
-
2079
- _this.initSocket();
2080
-
2081
- return _this;
2082
- } // 初始化WebSocket
2083
-
2084
-
2085
- Object(createClass["a" /* default */])(Socket, [{
2086
- key: "initSocket",
2087
- value: function initSocket() {
2088
- // 监听webSocket的事件
2089
- this.onopen = function (e) {
2090
- this._dep.notify('open', e);
2091
-
2092
- this.firstConnect = true;
2093
- this.heartCheckStart();
2094
- };
2095
-
2096
- this.onclose = function (e) {
2097
- var _this2 = this;
2098
-
2099
- this._dep.notify('close', e); // 如果WebSocket是非正常关闭 则进行重连
2100
-
2101
-
2102
- if (e.code !== CLOSE_ABNORMAL) {
2103
- // if (this._reconnectCount < this.heartCheckCount) {
2104
- this._reconnectCount++;
2105
- var optionsClone = deepClone(this._currentOptions); // 只有初次连接成功 重连时才传递参数
2106
-
2107
- if (this.firstConnect) {
2108
- optionsClone.query.type = 'reconnect';
2109
- }
2110
-
2111
- this.self.socketTimer && clearTimeout(this.self.socketTimer);
2112
- this.self.socketTimer = setTimeout(function () {
2113
- var _socket = new Socket(optionsClone, _this2._dep, _this2._reconnectCount, _this2.self);
2114
-
2115
- _this2._dep.notify('reconnect', _socket);
2116
- }, TIMEOUT); // } else {
2117
- // return console.error('WebSocket重连失败, 请联系技术客服!')
2118
- // }
2119
- }
2120
- };
2121
-
2122
- this.onerror = function (e) {
2123
- this._dep.notify('error', e);
2124
- };
2125
-
2126
- this.onmessage = function (e) {
2127
- var _this3 = this;
2128
-
2129
- // 如果后端返回的是二进制数据
2130
- if (e.data instanceof Blob) {
2131
- var reader = new FileReader();
2132
- reader.readAsArrayBuffer(e.data);
2133
-
2134
- reader.onload = function (ev) {
2135
- if (ev.target.readyState === FileReader.DONE) {
2136
- var _ev$target;
2137
-
2138
- _this3._dep.notify('message', (_ev$target = ev.target) === null || _ev$target === void 0 ? void 0 : _ev$target.result);
2139
- }
2140
- };
2141
- } else {
2142
- // 处理普通数据
2143
- try {
2144
- // const _parseData = JSON.parse(e.data)
2145
- this._dep.notify('message', e.data);
2146
- } catch (error) {
2147
- console.log(error);
2148
- }
2149
- }
2150
- };
2151
- } // 订阅事件
2152
-
2153
- }, {
2154
- key: "subscribe",
2155
- value: function subscribe(eventType, callback) {
2156
- if (typeof callback !== 'function') throw new Error('The second param is must be a function');
2157
- if (!EventTypes.includes(eventType)) throw new Error('The first param is not supported');
2158
-
2159
- this._dep.depend(eventType, callback);
2160
- } // 发送消息
2161
-
2162
- }, {
2163
- key: "sendMessage",
2164
- value: function sendMessage(data) {
2165
- var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
2166
- var _options$transformJSO = options.transformJSON,
2167
- transformJSON = _options$transformJSO === void 0 ? true : _options$transformJSO;
2168
- var result = data;
2169
-
2170
- if (transformJSON) {
2171
- result = JSON.stringify(data);
2172
- }
2173
-
2174
- this.send(result);
2175
- } // 关闭WebSocket
2176
-
2177
- }, {
2178
- key: "closeSocket",
2179
- value: function closeSocket(code, reason) {
2180
- this.clearHeartCheck();
2181
- this.close(code, reason);
2182
- } // 开始心跳检测
1487
+ // eslint-disable-next-line no-prototype-builtins -- safe
1488
+ return typeof test != 'function' || test.hasOwnProperty('prototype');
1489
+ });
2183
1490
 
2184
- }, {
2185
- key: "heartCheckStart",
2186
- value: function heartCheckStart() {
2187
- var _this4 = this;
2188
1491
 
2189
- this.heartCheckInterval = setInterval(function () {
2190
- if (_this4.readyState === _this4.OPEN) {
2191
- var transformJSON = Object(esm_typeof["a" /* default */])(_this4.heartCheckData) === 'object';
1492
+ /***/ }),
2192
1493
 
2193
- _this4.sendMessage(_this4.heartCheckData, {
2194
- transformJSON: transformJSON
2195
- });
2196
- } else {
2197
- _this4.clearHeartCheck();
2198
- }
2199
- }, this.heartCheckTimeout);
2200
- } // 清除心跳检测
1494
+ /***/ "4160":
1495
+ /***/ (function(module, exports, __webpack_require__) {
2201
1496
 
2202
- }, {
2203
- key: "clearHeartCheck",
2204
- value: function clearHeartCheck() {
2205
- clearInterval(this.heartCheckInterval);
2206
- } // 重置心跳检测
1497
+ "use strict";
2207
1498
 
2208
- }, {
2209
- key: "resetHeartCheck",
2210
- value: function resetHeartCheck() {
2211
- clearInterval(this.heartCheckInterval);
2212
- this.heartCheckStart();
2213
- }
2214
- }]);
1499
+ var $ = __webpack_require__("23e7");
1500
+ var forEach = __webpack_require__("17c2");
2215
1501
 
2216
- return Socket;
2217
- }( /*#__PURE__*/wrapNativeSuper_wrapNativeSuper(WebSocket)); // 默认的配置项
1502
+ // `Array.prototype.forEach` method
1503
+ // https://tc39.es/ecma262/#sec-array.prototype.foreach
1504
+ // eslint-disable-next-line es/no-array-prototype-foreach -- safe
1505
+ $({ target: 'Array', proto: true, forced: [].forEach != forEach }, {
1506
+ forEach: forEach
1507
+ });
2218
1508
 
2219
1509
 
2220
- var defaultOptions = {
2221
- url: '',
2222
- protocols: '',
2223
- customBase: null,
2224
- query: {}
2225
- };
2226
- var useSocket = function useSocket() {
2227
- var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultOptions;
1510
+ /***/ }),
2228
1511
 
2229
- var _self = arguments.length > 1 ? arguments[1] : undefined;
1512
+ /***/ "4269":
1513
+ /***/ (function(module, exports) {
2230
1514
 
2231
- if (!window.WebSocket) return console.error('您的浏览器不支持WebSocket, 请更换浏览器!');
2232
- var dep = new websocket_EventMap();
2233
- var reconnectCount = 0;
2234
- return new websocket_Socket(options, dep, reconnectCount, _self);
2235
- };
1515
+ throw new Error("Module build failed (from ./node_modules/thread-loader/dist/cjs.js):\nThread Loader (Worker 1)\nC:\\worker\\kucservice\\kucservice\\src\\lib\\webApi\\websocket.js: Invalid left-hand side in assignment expression. (91:8)\n\n 89 |\n 90 | this.self?.socketTimer && clearTimeout(this.self.socketTimer)\n> 91 | this.self?.socketTimer = setTimeout(() => {\n | ^\n 92 | const _socket = new Socket(optionsClone, this._dep, this._reconnectCount, this.self)\n 93 | this._dep.notify('reconnect', _socket)\n 94 | }, TIMEOUT)\n at PoolWorker.fromErrorObj (C:\\worker\\kucservice\\kucservice\\node_modules\\thread-loader\\dist\\WorkerPool.js:262:12)\n at C:\\worker\\kucservice\\kucservice\\node_modules\\thread-loader\\dist\\WorkerPool.js:204:29\n at instantiate (C:\\worker\\kucservice\\kucservice\\node_modules\\@babel\\parser\\lib\\index.js:72:32)\n at constructor (C:\\worker\\kucservice\\kucservice\\node_modules\\@babel\\parser\\lib\\index.js:358:12)\n at Object.raise (C:\\worker\\kucservice\\kucservice\\node_modules\\@babel\\parser\\lib\\index.js:3335:19)\n at Object.checkLVal (C:\\worker\\kucservice\\kucservice\\node_modules\\@babel\\parser\\lib\\index.js:12002:12)\n at Object.parseMaybeAssign (C:\\worker\\kucservice\\kucservice\\node_modules\\@babel\\parser\\lib\\index.js:12246:12)\n at Object.parseExpressionBase (C:\\worker\\kucservice\\kucservice\\node_modules\\@babel\\parser\\lib\\index.js:12150:23)\n at C:\\worker\\kucservice\\kucservice\\node_modules\\@babel\\parser\\lib\\index.js:12144:39\n at Object.allowInAnd (C:\\worker\\kucservice\\kucservice\\node_modules\\@babel\\parser\\lib\\index.js:14236:16)\n at Object.parseExpression (C:\\worker\\kucservice\\kucservice\\node_modules\\@babel\\parser\\lib\\index.js:12144:17)\n at Object.parseStatementContent (C:\\worker\\kucservice\\kucservice\\node_modules\\@babel\\parser\\lib\\index.js:14676:23)");
2236
1516
 
2237
1517
  /***/ }),
2238
1518
 
@@ -2430,69 +1710,6 @@ module.exports = !!Object.getOwnPropertySymbols && !fails(function () {
2430
1710
  });
2431
1711
 
2432
1712
 
2433
- /***/ }),
2434
-
2435
- /***/ "4ae1":
2436
- /***/ (function(module, exports, __webpack_require__) {
2437
-
2438
- var $ = __webpack_require__("23e7");
2439
- var getBuiltIn = __webpack_require__("d066");
2440
- var apply = __webpack_require__("2ba4");
2441
- var bind = __webpack_require__("0538");
2442
- var aConstructor = __webpack_require__("5087");
2443
- var anObject = __webpack_require__("825a");
2444
- var isObject = __webpack_require__("861d");
2445
- var create = __webpack_require__("7c73");
2446
- var fails = __webpack_require__("d039");
2447
-
2448
- var nativeConstruct = getBuiltIn('Reflect', 'construct');
2449
- var ObjectPrototype = Object.prototype;
2450
- var push = [].push;
2451
-
2452
- // `Reflect.construct` method
2453
- // https://tc39.es/ecma262/#sec-reflect.construct
2454
- // MS Edge supports only 2 arguments and argumentsList argument is optional
2455
- // FF Nightly sets third argument as `new.target`, but does not create `this` from it
2456
- var NEW_TARGET_BUG = fails(function () {
2457
- function F() { /* empty */ }
2458
- return !(nativeConstruct(function () { /* empty */ }, [], F) instanceof F);
2459
- });
2460
-
2461
- var ARGS_BUG = !fails(function () {
2462
- nativeConstruct(function () { /* empty */ });
2463
- });
2464
-
2465
- var FORCED = NEW_TARGET_BUG || ARGS_BUG;
2466
-
2467
- $({ target: 'Reflect', stat: true, forced: FORCED, sham: FORCED }, {
2468
- construct: function construct(Target, args /* , newTarget */) {
2469
- aConstructor(Target);
2470
- anObject(args);
2471
- var newTarget = arguments.length < 3 ? Target : aConstructor(arguments[2]);
2472
- if (ARGS_BUG && !NEW_TARGET_BUG) return nativeConstruct(Target, args, newTarget);
2473
- if (Target == newTarget) {
2474
- // w/o altered newTarget, optimization for 0-4 arguments
2475
- switch (args.length) {
2476
- case 0: return new Target();
2477
- case 1: return new Target(args[0]);
2478
- case 2: return new Target(args[0], args[1]);
2479
- case 3: return new Target(args[0], args[1], args[2]);
2480
- case 4: return new Target(args[0], args[1], args[2], args[3]);
2481
- }
2482
- // w/o altered newTarget, lot of arguments case
2483
- var $args = [null];
2484
- apply(push, $args, args);
2485
- return new (apply(bind, Target, $args))();
2486
- }
2487
- // with altered newTarget, not support built-in constructors
2488
- var proto = newTarget.prototype;
2489
- var instance = create(isObject(proto) ? proto : ObjectPrototype);
2490
- var result = apply(Target, instance, args);
2491
- return isObject(result) ? result : instance;
2492
- }
2493
- });
2494
-
2495
-
2496
1713
  /***/ }),
2497
1714
 
2498
1715
  /***/ "4d64":
@@ -2634,23 +1851,6 @@ module.exports = function from(arrayLike /* , mapfn = undefined, thisArg = undef
2634
1851
  };
2635
1852
 
2636
1853
 
2637
- /***/ }),
2638
-
2639
- /***/ "4ec9":
2640
- /***/ (function(module, exports, __webpack_require__) {
2641
-
2642
- "use strict";
2643
-
2644
- var collection = __webpack_require__("6d61");
2645
- var collectionStrong = __webpack_require__("6566");
2646
-
2647
- // `Map` constructor
2648
- // https://tc39.es/ecma262/#sec-map-objects
2649
- collection('Map', function (init) {
2650
- return function Map() { return init(this, arguments.length ? arguments[0] : undefined); };
2651
- }, collectionStrong);
2652
-
2653
-
2654
1854
  /***/ }),
2655
1855
 
2656
1856
  /***/ "4fad":
@@ -2740,44 +1940,6 @@ webpackContext.id = "5180";
2740
1940
 
2741
1941
  /***/ }),
2742
1942
 
2743
- /***/ "53ca":
2744
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
2745
-
2746
- "use strict";
2747
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _typeof; });
2748
- /* harmony import */ var core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("a4d3");
2749
- /* harmony import */ var core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_0__);
2750
- /* harmony import */ var core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("e01a");
2751
- /* harmony import */ var core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_1__);
2752
- /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("d3b7");
2753
- /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_2__);
2754
- /* harmony import */ var core_js_modules_es_symbol_iterator_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("d28b");
2755
- /* harmony import */ var core_js_modules_es_symbol_iterator_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_iterator_js__WEBPACK_IMPORTED_MODULE_3__);
2756
- /* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("e260");
2757
- /* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_4__);
2758
- /* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("3ca3");
2759
- /* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_5__);
2760
- /* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("ddb0");
2761
- /* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_6__);
2762
-
2763
-
2764
-
2765
-
2766
-
2767
-
2768
-
2769
- function _typeof(obj) {
2770
- "@babel/helpers - typeof";
2771
-
2772
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
2773
- return typeof obj;
2774
- } : function (obj) {
2775
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
2776
- }, _typeof(obj);
2777
- }
2778
-
2779
- /***/ }),
2780
-
2781
1943
  /***/ "5692":
2782
1944
  /***/ (function(module, exports, __webpack_require__) {
2783
1945
 
@@ -3081,218 +2243,6 @@ module.exports = {
3081
2243
  };
3082
2244
 
3083
2245
 
3084
- /***/ }),
3085
-
3086
- /***/ "6566":
3087
- /***/ (function(module, exports, __webpack_require__) {
3088
-
3089
- "use strict";
3090
-
3091
- var defineProperty = __webpack_require__("9bf2").f;
3092
- var create = __webpack_require__("7c73");
3093
- var redefineAll = __webpack_require__("e2cc");
3094
- var bind = __webpack_require__("0366");
3095
- var anInstance = __webpack_require__("19aa");
3096
- var iterate = __webpack_require__("2266");
3097
- var defineIterator = __webpack_require__("7dd0");
3098
- var setSpecies = __webpack_require__("2626");
3099
- var DESCRIPTORS = __webpack_require__("83ab");
3100
- var fastKey = __webpack_require__("f183").fastKey;
3101
- var InternalStateModule = __webpack_require__("69f3");
3102
-
3103
- var setInternalState = InternalStateModule.set;
3104
- var internalStateGetterFor = InternalStateModule.getterFor;
3105
-
3106
- module.exports = {
3107
- getConstructor: function (wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER) {
3108
- var Constructor = wrapper(function (that, iterable) {
3109
- anInstance(that, Prototype);
3110
- setInternalState(that, {
3111
- type: CONSTRUCTOR_NAME,
3112
- index: create(null),
3113
- first: undefined,
3114
- last: undefined,
3115
- size: 0
3116
- });
3117
- if (!DESCRIPTORS) that.size = 0;
3118
- if (iterable != undefined) iterate(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP });
3119
- });
3120
-
3121
- var Prototype = Constructor.prototype;
3122
-
3123
- var getInternalState = internalStateGetterFor(CONSTRUCTOR_NAME);
3124
-
3125
- var define = function (that, key, value) {
3126
- var state = getInternalState(that);
3127
- var entry = getEntry(that, key);
3128
- var previous, index;
3129
- // change existing entry
3130
- if (entry) {
3131
- entry.value = value;
3132
- // create new entry
3133
- } else {
3134
- state.last = entry = {
3135
- index: index = fastKey(key, true),
3136
- key: key,
3137
- value: value,
3138
- previous: previous = state.last,
3139
- next: undefined,
3140
- removed: false
3141
- };
3142
- if (!state.first) state.first = entry;
3143
- if (previous) previous.next = entry;
3144
- if (DESCRIPTORS) state.size++;
3145
- else that.size++;
3146
- // add to index
3147
- if (index !== 'F') state.index[index] = entry;
3148
- } return that;
3149
- };
3150
-
3151
- var getEntry = function (that, key) {
3152
- var state = getInternalState(that);
3153
- // fast case
3154
- var index = fastKey(key);
3155
- var entry;
3156
- if (index !== 'F') return state.index[index];
3157
- // frozen object case
3158
- for (entry = state.first; entry; entry = entry.next) {
3159
- if (entry.key == key) return entry;
3160
- }
3161
- };
3162
-
3163
- redefineAll(Prototype, {
3164
- // `{ Map, Set }.prototype.clear()` methods
3165
- // https://tc39.es/ecma262/#sec-map.prototype.clear
3166
- // https://tc39.es/ecma262/#sec-set.prototype.clear
3167
- clear: function clear() {
3168
- var that = this;
3169
- var state = getInternalState(that);
3170
- var data = state.index;
3171
- var entry = state.first;
3172
- while (entry) {
3173
- entry.removed = true;
3174
- if (entry.previous) entry.previous = entry.previous.next = undefined;
3175
- delete data[entry.index];
3176
- entry = entry.next;
3177
- }
3178
- state.first = state.last = undefined;
3179
- if (DESCRIPTORS) state.size = 0;
3180
- else that.size = 0;
3181
- },
3182
- // `{ Map, Set }.prototype.delete(key)` methods
3183
- // https://tc39.es/ecma262/#sec-map.prototype.delete
3184
- // https://tc39.es/ecma262/#sec-set.prototype.delete
3185
- 'delete': function (key) {
3186
- var that = this;
3187
- var state = getInternalState(that);
3188
- var entry = getEntry(that, key);
3189
- if (entry) {
3190
- var next = entry.next;
3191
- var prev = entry.previous;
3192
- delete state.index[entry.index];
3193
- entry.removed = true;
3194
- if (prev) prev.next = next;
3195
- if (next) next.previous = prev;
3196
- if (state.first == entry) state.first = next;
3197
- if (state.last == entry) state.last = prev;
3198
- if (DESCRIPTORS) state.size--;
3199
- else that.size--;
3200
- } return !!entry;
3201
- },
3202
- // `{ Map, Set }.prototype.forEach(callbackfn, thisArg = undefined)` methods
3203
- // https://tc39.es/ecma262/#sec-map.prototype.foreach
3204
- // https://tc39.es/ecma262/#sec-set.prototype.foreach
3205
- forEach: function forEach(callbackfn /* , that = undefined */) {
3206
- var state = getInternalState(this);
3207
- var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined);
3208
- var entry;
3209
- while (entry = entry ? entry.next : state.first) {
3210
- boundFunction(entry.value, entry.key, this);
3211
- // revert to the last existing entry
3212
- while (entry && entry.removed) entry = entry.previous;
3213
- }
3214
- },
3215
- // `{ Map, Set}.prototype.has(key)` methods
3216
- // https://tc39.es/ecma262/#sec-map.prototype.has
3217
- // https://tc39.es/ecma262/#sec-set.prototype.has
3218
- has: function has(key) {
3219
- return !!getEntry(this, key);
3220
- }
3221
- });
3222
-
3223
- redefineAll(Prototype, IS_MAP ? {
3224
- // `Map.prototype.get(key)` method
3225
- // https://tc39.es/ecma262/#sec-map.prototype.get
3226
- get: function get(key) {
3227
- var entry = getEntry(this, key);
3228
- return entry && entry.value;
3229
- },
3230
- // `Map.prototype.set(key, value)` method
3231
- // https://tc39.es/ecma262/#sec-map.prototype.set
3232
- set: function set(key, value) {
3233
- return define(this, key === 0 ? 0 : key, value);
3234
- }
3235
- } : {
3236
- // `Set.prototype.add(value)` method
3237
- // https://tc39.es/ecma262/#sec-set.prototype.add
3238
- add: function add(value) {
3239
- return define(this, value = value === 0 ? 0 : value, value);
3240
- }
3241
- });
3242
- if (DESCRIPTORS) defineProperty(Prototype, 'size', {
3243
- get: function () {
3244
- return getInternalState(this).size;
3245
- }
3246
- });
3247
- return Constructor;
3248
- },
3249
- setStrong: function (Constructor, CONSTRUCTOR_NAME, IS_MAP) {
3250
- var ITERATOR_NAME = CONSTRUCTOR_NAME + ' Iterator';
3251
- var getInternalCollectionState = internalStateGetterFor(CONSTRUCTOR_NAME);
3252
- var getInternalIteratorState = internalStateGetterFor(ITERATOR_NAME);
3253
- // `{ Map, Set }.prototype.{ keys, values, entries, @@iterator }()` methods
3254
- // https://tc39.es/ecma262/#sec-map.prototype.entries
3255
- // https://tc39.es/ecma262/#sec-map.prototype.keys
3256
- // https://tc39.es/ecma262/#sec-map.prototype.values
3257
- // https://tc39.es/ecma262/#sec-map.prototype-@@iterator
3258
- // https://tc39.es/ecma262/#sec-set.prototype.entries
3259
- // https://tc39.es/ecma262/#sec-set.prototype.keys
3260
- // https://tc39.es/ecma262/#sec-set.prototype.values
3261
- // https://tc39.es/ecma262/#sec-set.prototype-@@iterator
3262
- defineIterator(Constructor, CONSTRUCTOR_NAME, function (iterated, kind) {
3263
- setInternalState(this, {
3264
- type: ITERATOR_NAME,
3265
- target: iterated,
3266
- state: getInternalCollectionState(iterated),
3267
- kind: kind,
3268
- last: undefined
3269
- });
3270
- }, function () {
3271
- var state = getInternalIteratorState(this);
3272
- var kind = state.kind;
3273
- var entry = state.last;
3274
- // revert to the last existing entry
3275
- while (entry && entry.removed) entry = entry.previous;
3276
- // get next entry
3277
- if (!state.target || !(state.last = entry = entry ? entry.next : state.state.first)) {
3278
- // or finish the iteration
3279
- state.target = undefined;
3280
- return { value: undefined, done: true };
3281
- }
3282
- // return step by kind
3283
- if (kind == 'keys') return { value: entry.key, done: false };
3284
- if (kind == 'values') return { value: entry.value, done: false };
3285
- return { value: [entry.key, entry.value], done: false };
3286
- }, IS_MAP ? 'entries' : 'values', !IS_MAP, true);
3287
-
3288
- // `{ Map, Set }.prototype[@@species]` accessors
3289
- // https://tc39.es/ecma262/#sec-get-map-@@species
3290
- // https://tc39.es/ecma262/#sec-get-set-@@species
3291
- setSpecies(CONSTRUCTOR_NAME);
3292
- }
3293
- };
3294
-
3295
-
3296
2246
  /***/ }),
3297
2247
 
3298
2248
  /***/ "65f0":
@@ -6749,22 +5699,6 @@ module.exports = {
6749
5699
  };
6750
5700
 
6751
5701
 
6752
- /***/ }),
6753
-
6754
- /***/ "b8bf":
6755
- /***/ (function(module, exports, __webpack_require__) {
6756
-
6757
- var $ = __webpack_require__("23e7");
6758
- var DESCRIPTORS = __webpack_require__("83ab");
6759
- var create = __webpack_require__("7c73");
6760
-
6761
- // `Object.create` method
6762
- // https://tc39.es/ecma262/#sec-object.create
6763
- $({ target: 'Object', stat: true, sham: !DESCRIPTORS }, {
6764
- create: create
6765
- });
6766
-
6767
-
6768
5702
  /***/ }),
6769
5703
 
6770
5704
  /***/ "b980":
@@ -6858,21 +5792,6 @@ module.exports = function (input, pref) {
6858
5792
  };
6859
5793
 
6860
5794
 
6861
- /***/ }),
6862
-
6863
- /***/ "c0b6":
6864
- /***/ (function(module, exports, __webpack_require__) {
6865
-
6866
- var $ = __webpack_require__("23e7");
6867
- var bind = __webpack_require__("0538");
6868
-
6869
- // `Function.prototype.bind` method
6870
- // https://tc39.es/ecma262/#sec-function.prototype.bind
6871
- $({ target: 'Function', proto: true, forced: Function.bind !== bind }, {
6872
- bind: bind
6873
- });
6874
-
6875
-
6876
5795
  /***/ }),
6877
5796
 
6878
5797
  /***/ "c430":
@@ -7029,29 +5948,6 @@ module.exports = function (object, names) {
7029
5948
  };
7030
5949
 
7031
5950
 
7032
- /***/ }),
7033
-
7034
- /***/ "caad":
7035
- /***/ (function(module, exports, __webpack_require__) {
7036
-
7037
- "use strict";
7038
-
7039
- var $ = __webpack_require__("23e7");
7040
- var $includes = __webpack_require__("4d64").includes;
7041
- var addToUnscopables = __webpack_require__("44d2");
7042
-
7043
- // `Array.prototype.includes` method
7044
- // https://tc39.es/ecma262/#sec-array.prototype.includes
7045
- $({ target: 'Array', proto: true }, {
7046
- includes: function includes(el /* , fromIndex = 0 */) {
7047
- return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
7048
- }
7049
- });
7050
-
7051
- // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
7052
- addToUnscopables('includes');
7053
-
7054
-
7055
5951
  /***/ }),
7056
5952
 
7057
5953
  /***/ "cc12":
@@ -8762,22 +7658,6 @@ module.exports = function (key) {
8762
7658
  };
8763
7659
 
8764
7660
 
8765
- /***/ }),
8766
-
8767
- /***/ "f8c9":
8768
- /***/ (function(module, exports, __webpack_require__) {
8769
-
8770
- var $ = __webpack_require__("23e7");
8771
- var global = __webpack_require__("da84");
8772
- var setToStringTag = __webpack_require__("d44e");
8773
-
8774
- $({ global: true }, { Reflect: {} });
8775
-
8776
- // Reflect[@@toStringTag] property
8777
- // https://tc39.es/ecma262/#sec-reflect-@@tostringtag
8778
- setToStringTag(global.Reflect, 'Reflect', true);
8779
-
8780
-
8781
7661
  /***/ }),
8782
7662
 
8783
7663
  /***/ "fb15":
@@ -8873,12 +7753,44 @@ function _classPrivateFieldGet(receiver, privateMap) {
8873
7753
  var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "get");
8874
7754
  return _classApplyDescriptorGet(receiver, descriptor);
8875
7755
  }
8876
- // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
8877
- var esm_typeof = __webpack_require__("53ca");
7756
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.js
7757
+ var es_symbol = __webpack_require__("a4d3");
7758
+
7759
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.description.js
7760
+ var es_symbol_description = __webpack_require__("e01a");
8878
7761
 
8879
7762
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.to-string.js
8880
7763
  var es_object_to_string = __webpack_require__("d3b7");
8881
7764
 
7765
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.iterator.js
7766
+ var es_symbol_iterator = __webpack_require__("d28b");
7767
+
7768
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.iterator.js
7769
+ var es_array_iterator = __webpack_require__("e260");
7770
+
7771
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.iterator.js
7772
+ var es_string_iterator = __webpack_require__("3ca3");
7773
+
7774
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom-collections.iterator.js
7775
+ var web_dom_collections_iterator = __webpack_require__("ddb0");
7776
+
7777
+ // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
7778
+
7779
+
7780
+
7781
+
7782
+
7783
+
7784
+
7785
+ function _typeof(obj) {
7786
+ "@babel/helpers - typeof";
7787
+
7788
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
7789
+ return typeof obj;
7790
+ } : function (obj) {
7791
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
7792
+ }, _typeof(obj);
7793
+ }
8882
7794
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.assign.js
8883
7795
  var es_object_assign = __webpack_require__("cca6");
8884
7796
 
@@ -8897,18 +7809,9 @@ var web_dom_collections_for_each = __webpack_require__("159b");
8897
7809
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.keys.js
8898
7810
  var es_object_keys = __webpack_require__("b64b");
8899
7811
 
8900
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.iterator.js
8901
- var es_array_iterator = __webpack_require__("e260");
8902
-
8903
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.iterator.js
8904
- var es_string_iterator = __webpack_require__("3ca3");
8905
-
8906
7812
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.weak-map.js
8907
7813
  var es_weak_map = __webpack_require__("10d1");
8908
7814
 
8909
- // EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom-collections.iterator.js
8910
- var web_dom_collections_iterator = __webpack_require__("ddb0");
8911
-
8912
7815
  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
8913
7816
  var defineProperty = __webpack_require__("ade3");
8914
7817
 
@@ -9002,7 +7905,7 @@ var w = function w(d, e, t) {
9002
7905
  };
9003
7906
 
9004
7907
  var phoneClient_b = function b(d, e, t) {
9005
- return w(d, Object(esm_typeof["a" /* default */])(e) != "symbol" ? e + "" : e, t), t;
7908
+ return w(d, _typeof(e) != "symbol" ? e + "" : e, t), t;
9006
7909
  };
9007
7910
 
9008
7911
  var phoneClient_j = /*#__PURE__*/function () {
@@ -10118,7 +9021,7 @@ var common_request_getH265PlayerObj = function getH265PlayerObj(rtcServe, docePr
10118
9021
 
10119
9022
  }; // 判断videoConfig是否为JSON对象
10120
9023
 
10121
- if (videoConfig && Object(esm_typeof["a" /* default */])(videoConfig) === 'object' && Object.prototype.toString.call(videoConfig) === '[object Object]') {
9024
+ if (videoConfig && _typeof(videoConfig) === 'object' && Object.prototype.toString.call(videoConfig) === '[object Object]') {
10122
9025
  videoConfigdefault = Object.assign(videoConfigdefault, videoConfig);
10123
9026
  }
10124
9027