@microsoft/applicationinsights-teechannel-js 3.3.7-nightly3.2504-10 → 3.3.7-nightly3.2504-12

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.
Files changed (48) hide show
  1. package/browser/es5/{applicationinsights-teechannel-js.3.3.7-nightly3.2504-10.js → applicationinsights-teechannel-js.3.3.7-nightly3.2504-12.cjs.js} +284 -133
  2. package/browser/es5/applicationinsights-teechannel-js.3.3.7-nightly3.2504-12.cjs.js.map +1 -0
  3. package/browser/es5/applicationinsights-teechannel-js.3.3.7-nightly3.2504-12.cjs.min.js +6 -0
  4. package/browser/es5/applicationinsights-teechannel-js.3.3.7-nightly3.2504-12.cjs.min.js.map +1 -0
  5. package/browser/es5/{applicationinsights-teechannel-js.3.3.7-nightly3.2504-10.gbl.js → applicationinsights-teechannel-js.3.3.7-nightly3.2504-12.gbl.js} +286 -108
  6. package/browser/es5/applicationinsights-teechannel-js.3.3.7-nightly3.2504-12.gbl.js.map +1 -0
  7. package/browser/es5/applicationinsights-teechannel-js.3.3.7-nightly3.2504-12.gbl.min.js +6 -0
  8. package/browser/es5/applicationinsights-teechannel-js.3.3.7-nightly3.2504-12.gbl.min.js.map +1 -0
  9. package/browser/es5/applicationinsights-teechannel-js.3.3.7-nightly3.2504-12.integrity.json +66 -0
  10. package/browser/es5/{applicationinsights-teechannel-js.3.3.7-nightly3.2504-10.cjs.js → applicationinsights-teechannel-js.3.3.7-nightly3.2504-12.js} +311 -106
  11. package/browser/es5/applicationinsights-teechannel-js.3.3.7-nightly3.2504-12.js.map +1 -0
  12. package/browser/es5/applicationinsights-teechannel-js.3.3.7-nightly3.2504-12.min.js +6 -0
  13. package/browser/es5/applicationinsights-teechannel-js.3.3.7-nightly3.2504-12.min.js.map +1 -0
  14. package/browser/es5/applicationinsights-teechannel-js.3.cjs.js +283 -105
  15. package/browser/es5/applicationinsights-teechannel-js.3.cjs.js.map +1 -1
  16. package/browser/es5/applicationinsights-teechannel-js.3.cjs.min.js +2 -2
  17. package/browser/es5/applicationinsights-teechannel-js.3.cjs.min.js.map +1 -1
  18. package/browser/es5/applicationinsights-teechannel-js.3.gbl.js +285 -107
  19. package/browser/es5/applicationinsights-teechannel-js.3.gbl.js.map +1 -1
  20. package/browser/es5/applicationinsights-teechannel-js.3.gbl.min.js +2 -2
  21. package/browser/es5/applicationinsights-teechannel-js.3.gbl.min.js.map +1 -1
  22. package/browser/es5/applicationinsights-teechannel-js.3.integrity.json +25 -25
  23. package/browser/es5/applicationinsights-teechannel-js.3.js +285 -107
  24. package/browser/es5/applicationinsights-teechannel-js.3.js.map +1 -1
  25. package/browser/es5/applicationinsights-teechannel-js.3.min.js +2 -2
  26. package/browser/es5/applicationinsights-teechannel-js.3.min.js.map +1 -1
  27. package/dist/es5/applicationinsights-teechannel-js.js +283 -105
  28. package/dist/es5/applicationinsights-teechannel-js.js.map +1 -1
  29. package/dist/es5/applicationinsights-teechannel-js.min.js +2 -2
  30. package/dist/es5/applicationinsights-teechannel-js.min.js.map +1 -1
  31. package/dist-es5/ChannelController.js +1 -1
  32. package/dist-es5/Interfaces/ITeeChannelConfig.js +1 -1
  33. package/dist-es5/TeeChannel.js +1 -1
  34. package/dist-es5/__DynamicConstants.js +1 -1
  35. package/dist-es5/applicationinsights-teechannel-js.js +1 -1
  36. package/package.json +3 -3
  37. package/types/applicationinsights-teechannel-js.d.ts +1 -1
  38. package/types/applicationinsights-teechannel-js.namespaced.d.ts +1 -1
  39. package/browser/es5/applicationinsights-teechannel-js.3.3.7-nightly3.2504-10.cjs.js.map +0 -1
  40. package/browser/es5/applicationinsights-teechannel-js.3.3.7-nightly3.2504-10.cjs.min.js +0 -6
  41. package/browser/es5/applicationinsights-teechannel-js.3.3.7-nightly3.2504-10.cjs.min.js.map +0 -1
  42. package/browser/es5/applicationinsights-teechannel-js.3.3.7-nightly3.2504-10.gbl.js.map +0 -1
  43. package/browser/es5/applicationinsights-teechannel-js.3.3.7-nightly3.2504-10.gbl.min.js +0 -6
  44. package/browser/es5/applicationinsights-teechannel-js.3.3.7-nightly3.2504-10.gbl.min.js.map +0 -1
  45. package/browser/es5/applicationinsights-teechannel-js.3.3.7-nightly3.2504-10.integrity.json +0 -66
  46. package/browser/es5/applicationinsights-teechannel-js.3.3.7-nightly3.2504-10.js.map +0 -1
  47. package/browser/es5/applicationinsights-teechannel-js.3.3.7-nightly3.2504-10.min.js +0 -6
  48. package/browser/es5/applicationinsights-teechannel-js.3.3.7-nightly3.2504-10.min.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Application Insights JavaScript SDK - Tee Channel, 3.3.7-nightly3.2504-10
2
+ * Application Insights JavaScript SDK - Tee Channel, 3.3.7-nightly3.2504-12
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  'use strict';
@@ -11,7 +11,7 @@ var strShimUndefined = "undefined";
11
11
  var strShimPrototype = "prototype";
12
12
  var ObjClass$1 = Object;
13
13
 
14
- /*! https://github.com/nevware21/ts-utils v0.11.8 */
14
+ /*! https://github.com/nevware21/ts-utils v0.12.1 */
15
15
  /*#__NO_SIDE_EFFECTS__*/
16
16
  function _pureAssign(func1, func2) {
17
17
  return func1 || func2;
@@ -30,11 +30,12 @@ var __PROTO__ = "__proto__";
30
30
  var UNDEFINED = "undefined";
31
31
  var CONSTRUCTOR = "constructor";
32
32
  var SYMBOL = "Symbol";
33
- var POLYFILL_TAG = "_polyfill";
34
33
  var LENGTH = "length";
35
34
  var NAME = "name";
36
35
  var CALL = "call";
37
36
  var TO_STRING = "toString";
37
+ var GETTER_NAME = "__lookupGetter__";
38
+ var SETTER_NAME = "__lookupSetter__";
38
39
  var ObjClass = ( /*#__PURE__*/_pureAssign(Object));
39
40
  var ObjProto = ( /*#__PURE__*/_pureRef(ObjClass, PROTOTYPE));
40
41
  var StrCls = ( /*#__PURE__*/_pureAssign(String));
@@ -43,6 +44,8 @@ var MathCls = ( /*#__PURE__*/_pureAssign(Math));
43
44
  var ArrCls = ( /*#__PURE__*/_pureAssign(Array));
44
45
  var ArrProto = ( /*#__PURE__*/_pureRef(ArrCls, PROTOTYPE));
45
46
  var ArrSlice = ( /*#__PURE__*/_pureRef(ArrProto, "slice"));
47
+ var POLYFILL_TAG = "_polyfill";
48
+ var POLYFILL_TYPE_NAME = "__nw21$polytype__";
46
49
  function safe(func, argArray) {
47
50
  try {
48
51
  return {
@@ -65,7 +68,7 @@ function isUndefined(value) {
65
68
  }
66
69
  /*#__NO_SIDE_EFFECTS__*/
67
70
  function isStrictUndefined(arg) {
68
- return !isDefined(arg);
71
+ return arg === UNDEF_VALUE;
69
72
  }
70
73
  /*#__NO_SIDE_EFFECTS__*/
71
74
  function isNullOrUndefined(value) {
@@ -73,7 +76,7 @@ function isNullOrUndefined(value) {
73
76
  }
74
77
  /*#__NO_SIDE_EFFECTS__*/
75
78
  function isStrictNullOrUndefined(value) {
76
- return value === NULL_VALUE || !isDefined(value);
79
+ return value === NULL_VALUE || value === UNDEF_VALUE;
77
80
  }
78
81
  /*#__NO_SIDE_EFFECTS__*/
79
82
  function isDefined(arg) {
@@ -95,18 +98,122 @@ var isBoolean = ( /*#__PURE__*/_createIs("boolean"));
95
98
  function isPromiseLike(value) {
96
99
  return !!(value && value.then && isFunction(value.then));
97
100
  }
98
- var objGetOwnPropertyDescriptor = ( /* #__PURE__ */_pureRef(ObjClass, "getOwnPropertyDescriptor"));
101
+ var asString = ( /* #__PURE__ */_pureAssign(StrCls));
102
+ var ERROR_TYPE = "[object Error]";
103
+ /*#__NO_SIDE_EFFECTS__*/
104
+ function dumpObj(object, format) {
105
+ var propertyValueDump = EMPTY;
106
+ var objType = ObjProto[TO_STRING][CALL](object);
107
+ if (objType === ERROR_TYPE) {
108
+ object = { stack: asString(object.stack), message: asString(object.message), name: asString(object.name) };
109
+ }
110
+ try {
111
+ propertyValueDump = JSON.stringify(object, NULL_VALUE, format ? ((typeof format === "number") ? format : 4) : UNDEF_VALUE);
112
+ propertyValueDump = (propertyValueDump ? propertyValueDump.replace(/"(\w+)"\s*:\s{0,1}/g, "$1: ") : NULL_VALUE) || asString(object);
113
+ }
114
+ catch (e) {
115
+ propertyValueDump = " - " + dumpObj(e, format);
116
+ }
117
+ return objType + ": " + propertyValueDump;
118
+ }
119
+ function throwError(message) {
120
+ throw new Error(message);
121
+ }
122
+ function throwTypeError(message) {
123
+ throw new TypeError(message);
124
+ }
125
+ function _throwIfNullOrUndefined(obj) {
126
+ if (isStrictNullOrUndefined(obj)) {
127
+ throwTypeError("Cannot convert undefined or null to object");
128
+ }
129
+ }
99
130
  /*#__NO_SIDE_EFFECTS__*/
100
131
  function objHasOwnProperty(obj, prop) {
101
132
  return !!obj && ObjProto.hasOwnProperty[CALL](obj, prop);
102
133
  }
103
- var objHasOwn = ( /*#__PURE__*/_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "hasOwn")), polyObjHasOwn));
134
+ var _unwrapFunction = ( _unwrapFunctionWithPoly);
135
+ /*#__NO_SIDE_EFFECTS__*/
136
+ function _unwrapFunctionWithPoly(funcName, clsProto, polyFunc) {
137
+ var clsFn = clsProto ? clsProto[funcName] : NULL_VALUE;
138
+ return function (thisArg) {
139
+ var theFunc = (thisArg ? thisArg[funcName] : NULL_VALUE) || clsFn;
140
+ if (theFunc || polyFunc) {
141
+ var theArgs = arguments;
142
+ return (theFunc || polyFunc).apply(thisArg, theFunc ? ArrSlice[CALL](theArgs, 1) : theArgs);
143
+ }
144
+ throwTypeError("\"" + asString(funcName) + "\" not defined for " + dumpObj(thisArg));
145
+ };
146
+ }
147
+ function _objPropertyIsEnum(obj, propKey) {
148
+ var desc;
149
+ var fn = ObjClass.getOwnPropertyDescriptor;
150
+ if (!isStrictNullOrUndefined(obj) && fn) {
151
+ desc = safe(fn, [obj, propKey]).v || NULL_VALUE;
152
+ }
153
+ if (!desc) {
154
+ desc = safe(function () {
155
+ for (var key in obj) {
156
+ if (key === propKey) {
157
+ return { enumerable: true };
158
+ }
159
+ }
160
+ }).v;
161
+ }
162
+ return (desc && desc.enumerable) || false;
163
+ }
164
+ var objPropertyIsEnumerable = ( /*#__PURE__*/_unwrapFunctionWithPoly("propertyIsEnumerable", NULL_VALUE, _objPropertyIsEnum));
165
+ function _isPropertyWritable(obj, prop) {
166
+ var result = false;
167
+ if (!(isString(obj) && (prop === LENGTH || isNumber(prop) || (isString(prop) && !isNaN(Number(prop)))))) {
168
+ var originalValue = obj[prop];
169
+ try {
170
+ obj[prop] = originalValue;
171
+ result = true;
172
+ }
173
+ catch (e) {
174
+ }
175
+ }
176
+ return result;
177
+ }
178
+ function polyObjGetOwnPropertyDescriptor(obj, prop) {
179
+ var descriptor;
180
+ _throwIfNullOrUndefined(obj);
181
+ var isLength = (prop === LENGTH && (isArray(obj) || isString(obj)));
182
+ if (isLength || objHasOwnProperty(obj, prop)) {
183
+ descriptor = {
184
+ configurable: !isLength,
185
+ enumerable: !isLength ? objPropertyIsEnumerable(obj, prop) : false
186
+ };
187
+ var isData = true;
188
+ if (GETTER_NAME in ObjProto && SETTER_NAME in ObjProto) {
189
+ var getter = obj[GETTER_NAME](prop);
190
+ var setter = obj[SETTER_NAME](prop);
191
+ if (getter || setter) {
192
+ isData = false;
193
+ if (getter) {
194
+ descriptor.get = getter;
195
+ }
196
+ if (setter) {
197
+ descriptor.set = setter;
198
+ }
199
+ }
200
+ }
201
+ if (isData) {
202
+ descriptor.value = obj[prop];
203
+ descriptor.writable = _isPropertyWritable(obj, prop);
204
+ }
205
+ }
206
+ return descriptor;
207
+ }
208
+ var objGetOwnPropertyDescriptor = ( /* #__PURE__ */_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "getOwnPropertyDescriptor")), polyObjGetOwnPropertyDescriptor));
104
209
  /*#__NO_SIDE_EFFECTS__*/
105
210
  function polyObjHasOwn(obj, prop) {
211
+ _throwIfNullOrUndefined(obj);
106
212
  return objHasOwnProperty(obj, prop) || !!objGetOwnPropertyDescriptor(obj, prop);
107
213
  }
214
+ var objHasOwn = ( /*#__PURE__*/_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "hasOwn")), polyObjHasOwn));
108
215
  function objForEachKey(theObject, callbackfn, thisArg) {
109
- if (theObject && isObject(theObject)) {
216
+ if (theObject && (isObject(theObject) || isFunction(theObject))) {
110
217
  for (var prop in theObject) {
111
218
  if (objHasOwn(theObject, prop)) {
112
219
  if (callbackfn[CALL](thisArg || theObject, prop, theObject[prop]) === -1) {
@@ -116,6 +223,18 @@ function objForEachKey(theObject, callbackfn, thisArg) {
116
223
  }
117
224
  }
118
225
  }
226
+ function arrForEach(theArray, callbackfn, thisArg) {
227
+ if (theArray) {
228
+ var len = theArray[LENGTH] >>> 0;
229
+ for (var idx = 0; idx < len; idx++) {
230
+ if (idx in theArray) {
231
+ if (callbackfn[CALL](thisArg || theArray, theArray[idx], idx, theArray) === -1) {
232
+ break;
233
+ }
234
+ }
235
+ }
236
+ }
237
+ }
119
238
  var propMap = {
120
239
  e: "enumerable",
121
240
  c: "configurable",
@@ -144,6 +263,7 @@ function _createProp(value) {
144
263
  return prop;
145
264
  }
146
265
  var objDefineProp = ( /*#__PURE__*/_pureRef(ObjClass, "defineProperty"));
266
+ var objDefineProperties = ( /*#__PURE__*/_pureRef(ObjClass, "defineProperties"));
147
267
  function objDefine(target, key, propDesc) {
148
268
  return objDefineProp(target, key, _createProp(propDesc));
149
269
  }
@@ -163,48 +283,49 @@ function _assignMapValue(theMap, key, value, writable) {
163
283
  writable: false
164
284
  });
165
285
  }
166
- var asString = ( /* #__PURE__ */_pureAssign(StrCls));
167
- var ERROR_TYPE = "[object Error]";
168
- /*#__NO_SIDE_EFFECTS__*/
169
- function dumpObj(object, format) {
170
- var propertyValueDump = EMPTY;
171
- var objType = ObjProto[TO_STRING][CALL](object);
172
- if (objType === ERROR_TYPE) {
173
- object = { stack: asString(object.stack), message: asString(object.message), name: asString(object.name) };
286
+ function polyObjIsFrozen(obj) {
287
+ if (isStrictNullOrUndefined(obj) || (!isObject(obj) && !isFunction(obj))) {
288
+ return true;
174
289
  }
175
- try {
176
- propertyValueDump = JSON.stringify(object, NULL_VALUE, format ? ((typeof format === "number") ? format : 4) : UNDEF_VALUE);
177
- propertyValueDump = (propertyValueDump ? propertyValueDump.replace(/"(\w+)"\s*:\s{0,1}/g, "$1: ") : NULL_VALUE) || asString(object);
290
+ if (isFunction(obj)) {
291
+ return false;
178
292
  }
179
- catch (e) {
180
- propertyValueDump = " - " + dumpObj(e, format);
293
+ for (var prop in obj) {
294
+ var desc = objGetOwnPropertyDescriptor(obj, prop);
295
+ if (desc && (desc.configurable || (desc.writable !== false && "value" in desc))) {
296
+ return false;
297
+ }
181
298
  }
182
- return objType + ": " + propertyValueDump;
183
- }
184
- function throwError(message) {
185
- throw new Error(message);
186
- }
187
- function throwTypeError(message) {
188
- throw new TypeError(message);
299
+ return true;
189
300
  }
301
+ var objIsFrozen = ( /* #__PURE__*/_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "isFrozen")), polyObjIsFrozen));
190
302
  var _objFreeze = ( /* #__PURE__ */_pureRef(ObjClass, "freeze"));
191
303
  function _doNothing(value) {
192
304
  return value;
193
305
  }
194
306
  /*#__NO_SIDE_EFFECTS__*/
195
307
  function _getProto(value) {
308
+ _throwIfNullOrUndefined(value);
196
309
  return value[__PROTO__] || NULL_VALUE;
197
310
  }
198
311
  var objKeys = ( /*#__PURE__*/_pureRef(ObjClass, "keys"));
199
- function objDeepFreeze(value) {
200
- if (_objFreeze) {
201
- objForEachKey(value, function (key, value) {
202
- if (isArray(value) || isObject(value)) {
203
- objDeepFreeze(value);
312
+ function _deepFreeze(val, visited) {
313
+ if ((isArray(val) || isObject(val) || isFunction(val)) && !objIsFrozen(val)) {
314
+ for (var lp = 0; lp < visited.length; lp++) {
315
+ if (visited[lp] === val) {
316
+ return val;
204
317
  }
318
+ }
319
+ visited.push(val);
320
+ objForEachKey(val, function (_key, propValue) {
321
+ _deepFreeze(propValue, visited);
205
322
  });
323
+ objFreeze(val);
206
324
  }
207
- return objFreeze(value);
325
+ return val;
326
+ }
327
+ function objDeepFreeze(value) {
328
+ return _objFreeze ? _deepFreeze(value, []) : value;
208
329
  }
209
330
  var objFreeze = ( /* #__PURE__*/_pureAssign(_objFreeze, _doNothing));
210
331
  var objGetPrototypeOf = ( /* #__PURE__*/_pureAssign(( /* #__PURE__*/_pureRef(ObjClass, "getPrototypeOf")), _getProto));
@@ -254,21 +375,109 @@ function _getGlobalConfig() {
254
375
  }
255
376
  return _globalCfg;
256
377
  }
257
- var _unwrapFunction = ( _unwrapFunctionWithPoly);
378
+ function _tagAsPolyfill(target, polyfillTypeName) {
379
+ if (target) {
380
+ safe(function () {
381
+ target[POLYFILL_TAG] = true;
382
+ target[POLYFILL_TYPE_NAME] = polyfillTypeName;
383
+ });
384
+ safe(objDefine, [target, POLYFILL_TAG, {
385
+ v: true,
386
+ w: false,
387
+ e: false
388
+ }]);
389
+ safe(objDefine, [target, POLYFILL_TYPE_NAME, {
390
+ v: polyfillTypeName,
391
+ w: false,
392
+ e: false
393
+ }]);
394
+ }
395
+ return target;
396
+ }
258
397
  /*#__NO_SIDE_EFFECTS__*/
259
- function _unwrapFunctionWithPoly(funcName, clsProto, polyFunc) {
260
- var clsFn = clsProto ? clsProto[funcName] : NULL_VALUE;
261
- return function (thisArg) {
262
- var theFunc = (thisArg ? thisArg[funcName] : NULL_VALUE) || clsFn;
263
- if (theFunc || polyFunc) {
264
- var theArgs = arguments;
265
- return (theFunc || polyFunc).apply(thisArg, theFunc ? ArrSlice[CALL](theArgs, 1) : theArgs);
398
+ function createCachedValue(value) {
399
+ return objDefineProp({
400
+ toJSON: function () { return value; }
401
+ }, "v", { value: value });
402
+ }
403
+ var _isProtoArray;
404
+ var objSetPrototypeOf = ( /* #__PURE__*/_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "setPrototypeOf")), _polyObjSetPrototypeOf));
405
+ function _polyObjSetPrototypeOf(obj, proto) {
406
+ var _a;
407
+ !_isProtoArray && (_isProtoArray = createCachedValue((_a = {}, _a[__PROTO__] = [], _a) instanceof Array));
408
+ _isProtoArray.v ? obj[__PROTO__] = proto : objForEachKey(proto, function (key, value) { return obj[key] = value; });
409
+ return obj;
410
+ }
411
+ var objCreate = ( /* #__PURE__*/_pureAssign(( /* #__PURE__*/_pureRef(ObjClass, "create")), polyObjCreate));
412
+ /*#__NO_SIDE_EFFECTS__*/
413
+ function polyObjCreate(obj, properties) {
414
+ var newObj;
415
+ function tempFunc() { }
416
+ if (!isStrictNullOrUndefined(obj)) {
417
+ var type = typeof obj;
418
+ if (type !== OBJECT && type !== FUNCTION) {
419
+ throwTypeError("Prototype must be an Object or function: " + dumpObj(obj));
420
+ }
421
+ tempFunc[PROTOTYPE] = obj;
422
+ safe(function () {
423
+ tempFunc[__PROTO__] = obj;
424
+ });
425
+ newObj = new tempFunc();
426
+ }
427
+ else {
428
+ newObj = {};
429
+ }
430
+ safe(_polyObjSetPrototypeOf, [newObj, obj]);
431
+ if (properties) {
432
+ safe(objDefineProperties, [newObj, properties]);
433
+ }
434
+ return newObj;
435
+ }
436
+ /*#__NO_SIDE_EFFECTS__*/
437
+ function utcNow() {
438
+ return (Date.now || polyUtcNow)();
439
+ }
440
+ /*#__NO_SIDE_EFFECTS__*/
441
+ function polyUtcNow() {
442
+ return new Date().getTime();
443
+ }
444
+ var _globalLazyTestHooks;
445
+ function _initTestHooks() {
446
+ _globalLazyTestHooks = _getGlobalConfig();
447
+ }
448
+ /*#__NO_SIDE_EFFECTS__*/
449
+ function getLazy(cb) {
450
+ var lazyValue = {};
451
+ !_globalLazyTestHooks && _initTestHooks();
452
+ lazyValue.b = _globalLazyTestHooks.lzy;
453
+ objDefineProp(lazyValue, "v", {
454
+ configurable: true,
455
+ get: function () {
456
+ var result = cb();
457
+ if (!_globalLazyTestHooks.lzy) {
458
+ objDefineProp(lazyValue, "v", {
459
+ value: result
460
+ });
461
+ }
462
+ lazyValue.b = _globalLazyTestHooks.lzy;
463
+ return result;
266
464
  }
267
- throwTypeError("\"" + asString(funcName) + "\" not defined for " + dumpObj(thisArg));
268
- };
465
+ });
466
+ return lazyValue;
269
467
  }
468
+ var mathRandom = ( /*#__PURE__*/_pureRef(MathCls, "random"));
469
+ var _uniqueInstanceId = ( /*#__PURE__*/getLazy(function () {
470
+ var value = (utcNow().toString(36).slice(2));
471
+ while (value.length < 16) {
472
+ value += mathRandom().toString(36).slice(2);
473
+ }
474
+ value = value.substring(0, 16);
475
+ return value;
476
+ }));
270
477
  var UNIQUE_REGISTRY_ID = "_urid";
478
+ var POLY_SYM = "$nw21sym";
271
479
  var _polySymbols;
480
+ var _polyId = 0;
272
481
  /*#__NO_SIDE_EFFECTS__*/
273
482
  function _globalSymbolRegistry() {
274
483
  if (!_polySymbols) {
@@ -280,12 +489,35 @@ function _globalSymbolRegistry() {
280
489
  var _wellKnownSymbolCache;
281
490
  /*#__NO_SIDE_EFFECTS__*/
282
491
  function polyNewSymbol(description) {
283
- var theSymbol = {
284
- description: asString(description),
285
- toString: function () { return SYMBOL + "(" + description + ")"; }
286
- };
287
- theSymbol[POLYFILL_TAG] = true;
288
- return theSymbol;
492
+ var uniqueId = "_" + _polyId++ + "_" + _uniqueInstanceId.v;
493
+ var symString = SYMBOL + "(" + description + ")";
494
+ var theSymbol = objCreate(null);
495
+ objDefine(theSymbol, "description", {
496
+ v: asString(description),
497
+ e: false,
498
+ w: false
499
+ });
500
+ objDefine(theSymbol, TO_STRING, {
501
+ v: function () { return symString + POLY_SYM + uniqueId; },
502
+ e: false,
503
+ w: false
504
+ });
505
+ objDefine(theSymbol, "valueOf", {
506
+ v: function () { return theSymbol; },
507
+ e: false,
508
+ w: false
509
+ });
510
+ objDefine(theSymbol, "v", {
511
+ v: symString,
512
+ e: false,
513
+ w: false
514
+ });
515
+ objDefine(theSymbol, "_uid", {
516
+ v: uniqueId,
517
+ e: false,
518
+ w: false
519
+ });
520
+ return _tagAsPolyfill(theSymbol, "symbol");
289
521
  }
290
522
  /*#__NO_SIDE_EFFECTS__*/
291
523
  function polySymbolFor(key) {
@@ -309,16 +541,6 @@ function polyGetKnownSymbol(name) {
309
541
  }
310
542
  return result;
311
543
  }
312
- var _globalLazyTestHooks;
313
- function _initTestHooks() {
314
- _globalLazyTestHooks = _getGlobalConfig();
315
- }
316
- /*#__NO_SIDE_EFFECTS__*/
317
- function createCachedValue(value) {
318
- return objDefineProp({
319
- toJSON: function () { return value; }
320
- }, "v", { value: value });
321
- }
322
544
  var WINDOW = "window";
323
545
  var _cachedGlobal;
324
546
  function _getGlobalInstFn(getFn, theArgs) {
@@ -476,46 +698,10 @@ function arrAppend(target, elms) {
476
698
  }
477
699
  return target;
478
700
  }
479
- function arrForEach(theArray, callbackfn, thisArg) {
480
- if (theArray) {
481
- var len = theArray[LENGTH] >>> 0;
482
- for (var idx = 0; idx < len; idx++) {
483
- if (idx in theArray) {
484
- if (callbackfn[CALL](thisArg || theArray, theArray[idx], idx, theArray) === -1) {
485
- break;
486
- }
487
- }
488
- }
489
- }
490
- }
491
701
  var arrIndexOf = ( /*#__PURE__*/_unwrapFunction("indexOf", ArrProto));
492
702
  function arrSlice(theArray, start, end) {
493
703
  return ((theArray ? theArray["slice"] : NULL_VALUE) || ArrSlice).apply(theArray, ArrSlice[CALL](arguments, 1));
494
704
  }
495
- var objCreate = ( /* #__PURE__*/_pureAssign(( /* #__PURE__*/_pureRef(ObjClass, "create")), polyObjCreate));
496
- /*#__NO_SIDE_EFFECTS__*/
497
- function polyObjCreate(obj) {
498
- if (!obj) {
499
- return {};
500
- }
501
- var type = typeof obj;
502
- if (type !== OBJECT && type !== FUNCTION) {
503
- throwTypeError("Prototype must be an Object or function: " + dumpObj(obj));
504
- }
505
- function tempFunc() { }
506
- tempFunc[PROTOTYPE] = obj;
507
- return new tempFunc();
508
- }
509
- var _isProtoArray;
510
- function objSetPrototypeOf(obj, proto) {
511
- var fn = ObjClass["setPrototypeOf"] ||
512
- function (d, b) {
513
- var _a;
514
- !_isProtoArray && (_isProtoArray = createCachedValue((_a = {}, _a[__PROTO__] = [], _a) instanceof Array));
515
- _isProtoArray.v ? d[__PROTO__] = b : objForEachKey(b, function (key, value) { return d[key] = value; });
516
- };
517
- return fn(obj, proto);
518
- }
519
705
  /*#__NO_SIDE_EFFECTS__*/
520
706
  function _createCustomError(name, d, b) {
521
707
  safe(objDefine, [d, NAME, { v: name, c: true, e: false }]);
@@ -556,14 +742,6 @@ function createCustomError(name, constructCb, errorBase) {
556
742
  }
557
743
  }, theBaseClass);
558
744
  }
559
- /*#__NO_SIDE_EFFECTS__*/
560
- function utcNow() {
561
- return (Date.now || polyUtcNow)();
562
- }
563
- /*#__NO_SIDE_EFFECTS__*/
564
- function polyUtcNow() {
565
- return new Date().getTime();
566
- }
567
745
  var mathFloor = ( /*#__PURE__*/_pureRef(MathCls, "floor"));
568
746
  var _fnToString;
569
747
  var _objCtrFnString;
@@ -1439,7 +1617,7 @@ function newId(maxLength) {
1439
1617
  return result;
1440
1618
  }
1441
1619
 
1442
- var version = '3.3.7-nightly3.2504-10';
1620
+ var version = '3.3.7-nightly3.2504-12';
1443
1621
  var instanceName = "." + newId(6);
1444
1622
  var _dataUid = 0;
1445
1623
  function _canAcceptData(target) {