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