@microsoft/applicationinsights-teechannel-js 3.0.3-nightly3.2306-01 → 3.0.3-nightly3.2307-24

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.0.3-nightly3.2306-01.cjs.js → applicationinsights-teechannel-js.3.0.3-nightly3.2307-24.cjs.js} +139 -122
  2. package/browser/es5/applicationinsights-teechannel-js.3.0.3-nightly3.2307-24.cjs.js.map +1 -0
  3. package/browser/es5/applicationinsights-teechannel-js.3.0.3-nightly3.2307-24.cjs.min.js +6 -0
  4. package/browser/es5/applicationinsights-teechannel-js.3.0.3-nightly3.2307-24.cjs.min.js.map +1 -0
  5. package/browser/es5/{applicationinsights-teechannel-js.3.0.3-nightly3.2306-01.gbl.js → applicationinsights-teechannel-js.3.0.3-nightly3.2307-24.gbl.js} +141 -124
  6. package/browser/es5/applicationinsights-teechannel-js.3.0.3-nightly3.2307-24.gbl.js.map +1 -0
  7. package/browser/es5/applicationinsights-teechannel-js.3.0.3-nightly3.2307-24.gbl.min.js +6 -0
  8. package/browser/es5/applicationinsights-teechannel-js.3.0.3-nightly3.2307-24.gbl.min.js.map +1 -0
  9. package/browser/es5/applicationinsights-teechannel-js.3.0.3-nightly3.2307-24.integrity.json +66 -0
  10. package/browser/es5/{applicationinsights-teechannel-js.3.0.3-nightly3.2306-01.js → applicationinsights-teechannel-js.3.0.3-nightly3.2307-24.js} +141 -124
  11. package/browser/es5/applicationinsights-teechannel-js.3.0.3-nightly3.2307-24.js.map +1 -0
  12. package/browser/es5/applicationinsights-teechannel-js.3.0.3-nightly3.2307-24.min.js +6 -0
  13. package/browser/es5/applicationinsights-teechannel-js.3.0.3-nightly3.2307-24.min.js.map +1 -0
  14. package/browser/es5/applicationinsights-teechannel-js.3.cjs.js +138 -121
  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 +140 -123
  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 +66 -0
  23. package/browser/es5/applicationinsights-teechannel-js.3.js +140 -123
  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 +138 -121
  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 +6 -6
  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.0.3-nightly3.2306-01.cjs.js.map +0 -1
  40. package/browser/es5/applicationinsights-teechannel-js.3.0.3-nightly3.2306-01.cjs.min.js +0 -6
  41. package/browser/es5/applicationinsights-teechannel-js.3.0.3-nightly3.2306-01.cjs.min.js.map +0 -1
  42. package/browser/es5/applicationinsights-teechannel-js.3.0.3-nightly3.2306-01.gbl.js.map +0 -1
  43. package/browser/es5/applicationinsights-teechannel-js.3.0.3-nightly3.2306-01.gbl.min.js +0 -6
  44. package/browser/es5/applicationinsights-teechannel-js.3.0.3-nightly3.2306-01.gbl.min.js.map +0 -1
  45. package/browser/es5/applicationinsights-teechannel-js.3.0.3-nightly3.2306-01.integrity.json +0 -66
  46. package/browser/es5/applicationinsights-teechannel-js.3.0.3-nightly3.2306-01.js.map +0 -1
  47. package/browser/es5/applicationinsights-teechannel-js.3.0.3-nightly3.2306-01.min.js +0 -6
  48. package/browser/es5/applicationinsights-teechannel-js.3.0.3-nightly3.2306-01.min.js.map +0 -1
@@ -0,0 +1,66 @@
1
+ {
2
+ "name": "applicationinsights-teechannel-js",
3
+ "version": "3.0.3-nightly3.2307-24",
4
+ "ext": {
5
+ "@cjs.js": {
6
+ "file": "applicationinsights-teechannel-js.3.0.3-nightly3.2307-24.cjs.js",
7
+ "type": "text/javascript; charset=utf-8",
8
+ "integrity": "sha256-UkGEOgUmrUufK+10Fzs/lgWx2g2+2Pz+oFMDMp8lcDo= sha384-6eAWQhqAc1rHt/QnVOLY70loaeEjdx+lqPHT8YXN+Z/Vz7cE5v/6IVt4v9q9iprU sha512-fxY17q5xJ9SAm4dRhCwto6UTzANNn703cRFFHmOPxxnz0t+INl+xiDeWYO5BL8NPR+fy3pzDiZHp6TtXxKT2Yg==",
9
+ "hashes": {
10
+ "sha256": "UkGEOgUmrUufK+10Fzs/lgWx2g2+2Pz+oFMDMp8lcDo=",
11
+ "sha384": "6eAWQhqAc1rHt/QnVOLY70loaeEjdx+lqPHT8YXN+Z/Vz7cE5v/6IVt4v9q9iprU",
12
+ "sha512": "fxY17q5xJ9SAm4dRhCwto6UTzANNn703cRFFHmOPxxnz0t+INl+xiDeWYO5BL8NPR+fy3pzDiZHp6TtXxKT2Yg=="
13
+ }
14
+ },
15
+ "@cjs.min.js": {
16
+ "file": "applicationinsights-teechannel-js.3.0.3-nightly3.2307-24.cjs.min.js",
17
+ "type": "text/javascript; charset=utf-8",
18
+ "integrity": "sha256-hy7ZFv9jeDVy8haBXgIJmHIHVjyej9h9D6ExObrFbLU= sha384-DyS+1KQogl2pLgXmV/5yxf9YFealrJH0o2XgT15bU1cCWokNMrLp7JnKMV32+/W2 sha512-rNuKdV9I6Og1w7YN3txAINT0PNpVBup1ryiEMtusBP8ciYNFZqaoFTlAaw5XNBACTETawC4UrFRQ66AfRe2how==",
19
+ "hashes": {
20
+ "sha256": "hy7ZFv9jeDVy8haBXgIJmHIHVjyej9h9D6ExObrFbLU=",
21
+ "sha384": "DyS+1KQogl2pLgXmV/5yxf9YFealrJH0o2XgT15bU1cCWokNMrLp7JnKMV32+/W2",
22
+ "sha512": "rNuKdV9I6Og1w7YN3txAINT0PNpVBup1ryiEMtusBP8ciYNFZqaoFTlAaw5XNBACTETawC4UrFRQ66AfRe2how=="
23
+ }
24
+ },
25
+ "@gbl.js": {
26
+ "file": "applicationinsights-teechannel-js.3.0.3-nightly3.2307-24.gbl.js",
27
+ "type": "text/javascript; charset=utf-8",
28
+ "integrity": "sha256-GrZShPAqLIxSKhwHDJhQ2cO/CTG4kl0/ZjQjFs1iawA= sha384-CAZzYKbde5UsN36azo5rF+assBKxfo4EHpUrbp0K3Mi/e7O6/APYKtMYd9wKeNhf sha512-ITKOV/dzxk4WjPpdjM09xAmlETvjDICyW95JgI8d+znYniSFN+x4+FGlkudtysDrK2z/YrOEJ3DjtetUYChL+g==",
29
+ "hashes": {
30
+ "sha256": "GrZShPAqLIxSKhwHDJhQ2cO/CTG4kl0/ZjQjFs1iawA=",
31
+ "sha384": "CAZzYKbde5UsN36azo5rF+assBKxfo4EHpUrbp0K3Mi/e7O6/APYKtMYd9wKeNhf",
32
+ "sha512": "ITKOV/dzxk4WjPpdjM09xAmlETvjDICyW95JgI8d+znYniSFN+x4+FGlkudtysDrK2z/YrOEJ3DjtetUYChL+g=="
33
+ }
34
+ },
35
+ "@gbl.min.js": {
36
+ "file": "applicationinsights-teechannel-js.3.0.3-nightly3.2307-24.gbl.min.js",
37
+ "type": "text/javascript; charset=utf-8",
38
+ "integrity": "sha256-D/br3gyeIWPrJYOkdnQCOdyMBuNGp/8Te4lYN0SR0l4= sha384-A3ibe7dp+ho9no6aKo5p10t//URSCmbu5XS+7bxpPe26HJUD80eA84c7J07Y2Rg2 sha512-pPrjWDMwmAe8IiNe9nOJ7qM77PL1QBBEQbAc0NHinc7e0R8Hn/9u2DNvtzyGQ+FZllD4YHXQjIN/tzjij1tgDA==",
39
+ "hashes": {
40
+ "sha256": "D/br3gyeIWPrJYOkdnQCOdyMBuNGp/8Te4lYN0SR0l4=",
41
+ "sha384": "A3ibe7dp+ho9no6aKo5p10t//URSCmbu5XS+7bxpPe26HJUD80eA84c7J07Y2Rg2",
42
+ "sha512": "pPrjWDMwmAe8IiNe9nOJ7qM77PL1QBBEQbAc0NHinc7e0R8Hn/9u2DNvtzyGQ+FZllD4YHXQjIN/tzjij1tgDA=="
43
+ }
44
+ },
45
+ "@js": {
46
+ "file": "applicationinsights-teechannel-js.3.0.3-nightly3.2307-24.js",
47
+ "type": "text/javascript; charset=utf-8",
48
+ "integrity": "sha256-+RXBYQkywvuHeylIS+GUmP8hZEDJaBXQsdX6H8Qdxo8= sha384-hLgVcD/grR7IvJV516Ubi67fbyh8FQjY5Inov/o9RefUYFFw5KtGdmWoA942gdKW sha512-sQcisaowNSz+T6sQaM+NwSxWyMi8tLme7X2zsBzkhtY8DeFIeY3fbbV3WsaLf7FttwElLCuGT84iROf7sagJ5Q==",
49
+ "hashes": {
50
+ "sha256": "+RXBYQkywvuHeylIS+GUmP8hZEDJaBXQsdX6H8Qdxo8=",
51
+ "sha384": "hLgVcD/grR7IvJV516Ubi67fbyh8FQjY5Inov/o9RefUYFFw5KtGdmWoA942gdKW",
52
+ "sha512": "sQcisaowNSz+T6sQaM+NwSxWyMi8tLme7X2zsBzkhtY8DeFIeY3fbbV3WsaLf7FttwElLCuGT84iROf7sagJ5Q=="
53
+ }
54
+ },
55
+ "@min.js": {
56
+ "file": "applicationinsights-teechannel-js.3.0.3-nightly3.2307-24.min.js",
57
+ "type": "text/javascript; charset=utf-8",
58
+ "integrity": "sha256-bO40woozTxne3ptx9gmcHZjF3exhviJj5TuoYFn6Xvs= sha384-qdYYTDDsASkRSRCYcPtiCyfLCz+MzmD7C7PovXGSFIJgSyrS0A9qQWzBX7RVDAPr sha512-WmO+YvSaV5WH6VwWNq2Ug16oHPl8uWRQ+RWfuHwv4T25w7yBPTxv57ATYwJ2DaVzucwvMgz94CpdJ7CnQYSyVg==",
59
+ "hashes": {
60
+ "sha256": "bO40woozTxne3ptx9gmcHZjF3exhviJj5TuoYFn6Xvs=",
61
+ "sha384": "qdYYTDDsASkRSRCYcPtiCyfLCz+MzmD7C7PovXGSFIJgSyrS0A9qQWzBX7RVDAPr",
62
+ "sha512": "WmO+YvSaV5WH6VwWNq2Ug16oHPl8uWRQ+RWfuHwv4T25w7yBPTxv57ATYwJ2DaVzucwvMgz94CpdJ7CnQYSyVg=="
63
+ }
64
+ }
65
+ }
66
+ }
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Application Insights JavaScript SDK - Tee Channel, 3.0.3-nightly3.2306-01
2
+ * Application Insights JavaScript SDK - Tee Channel, 3.0.3-nightly3.2307-24
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  (function (global, factory) {
@@ -7,8 +7,8 @@
7
7
  typeof exports === "object" && typeof module !== undef ? factory(exports) :
8
8
  typeof define === "function" && define.amd ? define(["exports"], factory) :
9
9
  (function(global){
10
- var nsKey, key, nm, theExports = {}, modName = "es5_applicationinsights_teechannel_js_3_0_3_nightly3_2306_01", msMod="__ms$mod__";
11
- var mods={}, modDetail=mods[modName]={}, ver="3.0.3-nightly3.2306-01";
10
+ var nsKey, key, nm, theExports = {}, modName = "es5_applicationinsights_teechannel_js_3_0_3_nightly3_2307_24", msMod="__ms$mod__";
11
+ var mods={}, modDetail=mods[modName]={}, ver="3.0.3-nightly3.2307-24";
12
12
  var baseNs=global, nsKey="Microsoft", baseNs=baseNs[nsKey]=(baseNs[nsKey]||{});
13
13
  // Versioned namespace "Microsoft.ApplicationInsights3"
14
14
  var exportNs=baseNs, nsKey="ApplicationInsights3", exportNs=exportNs[nsKey]=(exportNs[nsKey]||{});
@@ -37,12 +37,14 @@ var strShimPrototype = "prototype";
37
37
  var ObjClass$1 = Object;
38
38
 
39
39
  var UNDEF_VALUE = undefined;
40
+ var NULL_VALUE = null;
40
41
  var EMPTY = "";
41
42
  var BOOLEAN = "boolean";
42
43
  var FUNCTION = "function";
43
44
  var NUMBER = "number";
44
45
  var OBJECT = "object";
45
46
  var PROTOTYPE = "prototype";
47
+ var __PROTO__ = "__proto__";
46
48
  var STRING = "string";
47
49
  var UNDEFINED = "undefined";
48
50
  var CONSTRUCTOR = "constructor";
@@ -89,10 +91,10 @@ function isUndefined(value) {
89
91
  return typeof value === UNDEFINED || value === UNDEFINED;
90
92
  }
91
93
  function isNullOrUndefined(value) {
92
- return value === null || isUndefined(value);
94
+ return value === NULL_VALUE || isUndefined(value);
93
95
  }
94
96
  function isStrictNullOrUndefined(value) {
95
- return value === null || !isDefined(value);
97
+ return value === NULL_VALUE || !isDefined(value);
96
98
  }
97
99
  function isDefined(arg) {
98
100
  return !!arg || arg !== UNDEF_VALUE;
@@ -154,6 +156,7 @@ function throwTypeError(message) {
154
156
 
155
157
  var _objFreeze = ObjClass["freeze"];
156
158
  var _doNothing = function (value) { return value; };
159
+ var _getProto = function (value) { return value[__PROTO__] || NULL_VALUE; };
157
160
  function objDeepFreeze(value) {
158
161
  if (_objFreeze) {
159
162
  objForEachKey(value, function (key, value) {
@@ -165,7 +168,7 @@ function objDeepFreeze(value) {
165
168
  return objFreeze(value);
166
169
  }
167
170
  var objFreeze = _objFreeze || _doNothing;
168
- var objGetPrototypeOf = ObjClass["getPrototypeOf"] || _doNothing;
171
+ var objGetPrototypeOf = ObjClass["getPrototypeOf"] || _getProto;
169
172
 
170
173
  function createEnumKeyMap(values) {
171
174
  return _createKeyValueMap(values, 0 , 0 , objDeepFreeze);
@@ -222,7 +225,7 @@ function dumpObj(object, format) {
222
225
  }
223
226
  else {
224
227
  try {
225
- propertyValueDump = JSON.stringify(object, null, format ? (isNumber(format) ? format : 4) : UNDEF_VALUE);
228
+ propertyValueDump = JSON.stringify(object, NULL_VALUE, format ? (isNumber(format) ? format : 4) : UNDEF_VALUE);
226
229
  }
227
230
  catch (e) {
228
231
  propertyValueDump = " - " + dumpObj(e, format);
@@ -231,16 +234,25 @@ function dumpObj(object, format) {
231
234
  return objToString(object) + ": " + propertyValueDump;
232
235
  }
233
236
 
234
- function _unwrapFunction(funcName, target, polyFunc) {
237
+ var _arrSlice = ArrProto[SLICE];
238
+ var _throwMissingFunction = function (funcName, thisArg) {
239
+ throwTypeError("'" + asString(funcName) + "' not defined for " + dumpObj(thisArg));
240
+ };
241
+ var _unwrapInstFunction = function (funcName) {
242
+ return function (thisArg) {
243
+ return thisArg[funcName].apply(thisArg, _arrSlice.call(arguments, 1));
244
+ };
245
+ };
246
+ var _unwrapFunction = function (funcName, clsProto) {
247
+ var clsFn = clsProto && clsProto[funcName];
235
248
  return function (thisArg) {
236
- var theFunc = (thisArg && thisArg[funcName]) || (target && target[funcName]);
237
- if (theFunc || polyFunc) {
238
- var theArgs = arguments;
239
- return (theFunc || polyFunc).apply(thisArg, theFunc ? ArrProto[SLICE].call(theArgs, 1) : theArgs);
249
+ var theFunc = (thisArg && thisArg[funcName]) || clsFn;
250
+ if (theFunc) {
251
+ return theFunc.apply(thisArg, _arrSlice.call(arguments, 1));
240
252
  }
241
- throwTypeError("'" + asString(funcName) + "' not defined for " + dumpObj(thisArg));
253
+ _throwMissingFunction(funcName, thisArg);
242
254
  };
243
- }
255
+ };
244
256
 
245
257
  var _polySymbols;
246
258
  function _globalSymbolRegistry() {
@@ -311,7 +323,7 @@ function objDefine(target, key, propDesc) {
311
323
  var _globalLazyTestHooks;
312
324
  var _fetchLazyTestHooks = function () {
313
325
  _globalLazyTestHooks = _getGlobalConfig();
314
- _fetchLazyTestHooks = null;
326
+ _fetchLazyTestHooks = NULL_VALUE;
315
327
  };
316
328
  function getLazy(cb) {
317
329
  var lazyValue = {};
@@ -348,42 +360,38 @@ var _cachedWindow;
348
360
  var _cachedDocument;
349
361
  var _cachedNavigator;
350
362
  var _isNode;
351
- function lazySafeGetInst(name) {
352
- return safeGetLazy(function () { return getInst(name) || UNDEF_VALUE; }, UNDEF_VALUE);
353
- }
354
- function getGlobal(useCached) {
355
- (!_cachedGlobal || useCached === false || (_globalLazyTestHooks.lzy && !_cachedGlobal.b)) && (_cachedGlobal = safeGetLazy(_getGlobalValue, null));
363
+ var lazySafeGetInst = function (name) { return safeGetLazy(function () { return getInst(name) || UNDEF_VALUE; }, UNDEF_VALUE); };
364
+ var getGlobal = function (useCached) {
365
+ (!_cachedGlobal || useCached === false || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedGlobal.b)) && (_cachedGlobal = safeGetLazy(_getGlobalValue, NULL_VALUE));
356
366
  return _cachedGlobal.v;
357
- }
358
- function getInst(name, useCached) {
359
- var gbl = getGlobal(useCached);
367
+ };
368
+ var getInst = function (name, useCached) {
369
+ var gbl = (!_cachedGlobal || useCached === false) ? getGlobal(useCached) : _cachedGlobal.v;
360
370
  if (gbl && gbl[name]) {
361
371
  return gbl[name];
362
372
  }
363
373
  if (name === WINDOW && _cachedWindow) {
364
374
  return _cachedWindow.v;
365
375
  }
366
- return null;
367
- }
368
- function getDocument() {
369
- (!_cachedDocument || (_globalLazyTestHooks.lzy && !_cachedDocument.b)) && (_cachedDocument = lazySafeGetInst("document"));
376
+ return NULL_VALUE;
377
+ };
378
+ var getDocument = function () {
379
+ (!_cachedDocument || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedDocument.b)) && (_cachedDocument = lazySafeGetInst("document"));
370
380
  return _cachedDocument.v;
371
- }
372
- function hasWindow() {
373
- return !!getWindow();
374
- }
375
- function getWindow() {
376
- (!_cachedWindow || (_globalLazyTestHooks.lzy && !_cachedWindow.b)) && (_cachedWindow = lazySafeGetInst(WINDOW));
381
+ };
382
+ var hasWindow = function () { return !!getWindow(); };
383
+ var getWindow = function () {
384
+ (!_cachedWindow || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedWindow.b)) && (_cachedWindow = lazySafeGetInst(WINDOW));
377
385
  return _cachedWindow.v;
378
- }
379
- function getNavigator() {
380
- (!_cachedNavigator || (_globalLazyTestHooks.lzy && !_cachedNavigator.b)) && (_cachedNavigator = lazySafeGetInst("navigator"));
386
+ };
387
+ var getNavigator = function () {
388
+ (!_cachedNavigator || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedNavigator.b)) && (_cachedNavigator = lazySafeGetInst("navigator"));
381
389
  return _cachedNavigator.v;
382
- }
383
- function isNode() {
390
+ };
391
+ var isNode = function () {
384
392
  !_isNode && (_isNode = safeGetLazy(function () { return !!(process && (process.versions || {}).node); }, false));
385
393
  return _isNode.v;
386
- }
394
+ };
387
395
 
388
396
  var _symbol;
389
397
  var _symbolFor;
@@ -410,7 +418,7 @@ function getKnownSymbol(name, noPoly) {
410
418
  }
411
419
  function newSymbol(description, noPoly) {
412
420
  (!_symbol || (_globalLazyTestHooks.lzy && !_symbol.b)) && getSymbol();
413
- return _symbol.v ? _symbol.v(description) : (!noPoly ? polyNewSymbol(description) : null);
421
+ return _symbol.v ? _symbol.v(description) : (!noPoly ? polyNewSymbol(description) : NULL_VALUE);
414
422
  }
415
423
  function symbolFor(key) {
416
424
  (!_symbolFor || (_globalLazyTestHooks.lzy && !_symbol.b)) && getSymbol();
@@ -424,36 +432,54 @@ function isIterable(value) {
424
432
  return !isStrictNullOrUndefined(value) && isFunction(value[getKnownSymbol(3 )]);
425
433
  }
426
434
 
435
+ var _iterSymbol;
427
436
  function iterForOf(iter, callbackfn, thisArg) {
428
437
  if (iter) {
429
438
  if (!isIterator(iter)) {
430
- var itSymbol = getKnownSymbol(3 );
431
- iter = iter[itSymbol] ? iter[itSymbol]() : null;
439
+ !_iterSymbol && (_iterSymbol = getLazy(function () { return getKnownSymbol(3 ); }));
440
+ iter = iter[_iterSymbol.v] ? iter[_iterSymbol.v]() : null;
432
441
  }
433
442
  if (isIterator(iter)) {
443
+ var err = void 0;
444
+ var iterResult = void 0;
434
445
  try {
435
446
  var count = 0;
436
- var value = iter.next();
437
- while (!value[DONE]) {
438
- if (callbackfn.call(thisArg || iter, value[VALUE], count, iter) === -1) {
447
+ while (!(iterResult = iter.next())[DONE]) {
448
+ if (callbackfn.call(thisArg || iter, iterResult[VALUE], count, iter) === -1) {
439
449
  break;
440
450
  }
441
451
  count++;
442
- value = iter.next();
443
452
  }
444
- iter.return && iter.return(value);
445
453
  }
446
- catch (e) {
447
- iter.throw && iter.throw(e);
454
+ catch (failed) {
455
+ err = { e: failed };
456
+ if (iter.throw) {
457
+ iterResult = null;
458
+ iter.throw(err);
459
+ }
460
+ }
461
+ finally {
462
+ try {
463
+ if (iterResult && !iterResult[DONE]) {
464
+ iter.return && iter.return(iterResult);
465
+ }
466
+ }
467
+ finally {
468
+ if (err) {
469
+ throw err.e;
470
+ }
471
+ }
448
472
  }
449
473
  }
450
474
  }
451
475
  }
452
476
 
477
+ var fnApply = _unwrapInstFunction("apply");
478
+
453
479
  function arrAppend(target, elms) {
454
480
  if (!isUndefined(elms) && target) {
455
481
  if (isArray(elms)) {
456
- target.push.apply(target, elms);
482
+ fnApply(target.push, target, elms);
457
483
  }
458
484
  else if (isIterator(elms) || isIterable(elms)) {
459
485
  iterForOf(elms, function (elm) {
@@ -484,51 +510,83 @@ var arrIndexOf = _unwrapFunction(INDEX_OF, ArrProto);
484
510
 
485
511
  var arrSlice = _unwrapFunction(SLICE, ArrProto);
486
512
 
513
+ var fnCall = _unwrapInstFunction("call");
514
+
515
+ var _objCreate = ObjClass["create"];
516
+ var objCreate = _objCreate || polyObjCreate;
517
+ function polyObjCreate(obj) {
518
+ if (!obj) {
519
+ return {};
520
+ }
521
+ var type = typeof obj;
522
+ if (type !== OBJECT && type !== FUNCTION) {
523
+ throw new TypeError("Prototype must be an Object or function: " + dumpObj(obj));
524
+ }
525
+ function tempFunc() { }
526
+ tempFunc[PROTOTYPE] = obj;
527
+ return new tempFunc();
528
+ }
529
+
530
+ var _isProtoArray;
487
531
  function objSetPrototypeOf(obj, proto) {
488
532
  var fn = ObjClass["setPrototypeOf"] ||
489
- ({ __proto__: [] } instanceof Array && function (d, b) {
490
- d.__proto__ = b;
491
- }) ||
492
533
  function (d, b) {
493
- objForEachKey(b, function (key, value) { return d[key] = value; });
534
+ !_isProtoArray && (_isProtoArray = getLazy(function () {
535
+ var _a;
536
+ return ((_a = {}, _a[__PROTO__] = [], _a) instanceof Array);
537
+ }));
538
+ _isProtoArray.v ? d[__PROTO__] = b : objForEachKey(b, function (key, value) { return d[key] = value; });
494
539
  };
495
540
  return fn(obj, proto);
496
541
  }
497
542
 
498
- function _createCustomError(name, d, baseClass) {
499
- objSetPrototypeOf(d, baseClass);
543
+ var _createCustomError = function (name, d, b) {
544
+ _safeDefineName(d, name);
545
+ d = objSetPrototypeOf(d, b);
500
546
  function __() {
501
547
  this.constructor = d;
502
- this[NAME] = name;
548
+ _safeDefineName(this, name);
503
549
  }
504
- __[PROTOTYPE] = baseClass[PROTOTYPE];
505
- d[PROTOTYPE] = new __();
550
+ d[PROTOTYPE] = b === NULL_VALUE ? objCreate(b) : (__[PROTOTYPE] = b[PROTOTYPE], new __());
506
551
  return d;
507
- }
552
+ };
508
553
  var _safeSetName = function (baseClass, name) {
509
554
  try {
510
- baseClass[PROTOTYPE][NAME] = name;
555
+ name && (baseClass[NAME] = name);
556
+ }
557
+ catch (e) {
558
+ }
559
+ };
560
+ var _safeDefineName = function (target, name) {
561
+ try {
562
+ objDefine(target, NAME, { v: name, c: true, e: false });
511
563
  }
512
564
  catch (e) {
513
565
  }
514
566
  };
515
- function createCustomError(name, constructCb) {
516
- var baseClass = Error;
517
- var orgName = baseClass[PROTOTYPE][NAME];
518
- var customError = _createCustomError(name, function () {
567
+ function createCustomError(name, constructCb, errorBase) {
568
+ var theBaseClass = errorBase || Error;
569
+ var orgName = theBaseClass[PROTOTYPE][NAME];
570
+ var captureFn = Error.captureStackTrace;
571
+ return _createCustomError(name, function () {
519
572
  var _this = this;
520
573
  try {
521
- _safeSetName(baseClass, name);
522
- _this = baseClass.apply(_this, arguments) || _this;
523
- _this[NAME] = name;
524
- constructCb && constructCb(_this, arguments);
574
+ _safeSetName(theBaseClass, name);
575
+ var _self = fnApply(theBaseClass, _this, arrSlice(arguments)) || _this;
576
+ if (_self !== _this) {
577
+ var orgProto = objGetPrototypeOf(_this);
578
+ if (orgProto !== objGetPrototypeOf(_self)) {
579
+ objSetPrototypeOf(_self, orgProto);
580
+ }
581
+ }
582
+ captureFn && captureFn(_self, _this[CONSTRUCTOR]);
583
+ constructCb && constructCb(_self, arguments);
584
+ return _self;
525
585
  }
526
586
  finally {
527
- _safeSetName(baseClass, orgName);
587
+ _safeSetName(theBaseClass, orgName);
528
588
  }
529
- return _this;
530
- }, baseClass);
531
- return customError;
589
+ }, theBaseClass);
532
590
  }
533
591
 
534
592
  function utcNow() {
@@ -552,7 +610,7 @@ function isPlainObject(value) {
552
610
  if (value !== _gblWindow) {
553
611
  if (!_objCtrFnString) {
554
612
  _fnToString = Function[PROTOTYPE].toString;
555
- _objCtrFnString = _fnToString.call(ObjClass);
613
+ _objCtrFnString = fnCall(_fnToString, ObjClass);
556
614
  }
557
615
  try {
558
616
  var proto = objGetPrototypeOf(value);
@@ -570,21 +628,6 @@ function isPlainObject(value) {
570
628
  return result;
571
629
  }
572
630
 
573
- var _objCreate = ObjClass["create"];
574
- var objCreate = _objCreate || polyObjCreate;
575
- function polyObjCreate(obj) {
576
- if (!obj) {
577
- return {};
578
- }
579
- var type = typeof obj;
580
- if (type !== OBJECT && type !== FUNCTION) {
581
- throw new TypeError("Prototype must be an Object or function: " + dumpObj(obj));
582
- }
583
- function tempFunc() { }
584
- tempFunc[PROTOTYPE] = obj;
585
- return new tempFunc();
586
- }
587
-
588
631
  var strIndexOf = _unwrapFunction(INDEX_OF, StrProto);
589
632
 
590
633
  var REF = "ref";
@@ -594,7 +637,7 @@ var ENABLED = "enabled";
594
637
  function _createTimerHandler(startTimer, refreshFn, cancelFn) {
595
638
  var _a;
596
639
  var ref = true;
597
- var timerId = startTimer ? refreshFn(null) : null;
640
+ var timerId = startTimer ? refreshFn(NULL_VALUE) : NULL_VALUE;
598
641
  var theTimerHandler;
599
642
  var _unref = function () {
600
643
  ref = false;
@@ -621,7 +664,7 @@ function _createTimerHandler(startTimer, refreshFn, cancelFn) {
621
664
  };
622
665
  var _cancel = function () {
623
666
  timerId && cancelFn(timerId);
624
- timerId = null;
667
+ timerId = NULL_VALUE;
625
668
  };
626
669
  var _setEnabled = function (value) {
627
670
  !value && timerId && _cancel();
@@ -643,7 +686,7 @@ function _createTimerHandler(startTimer, refreshFn, cancelFn) {
643
686
  return {
644
687
  h: theTimerHandler,
645
688
  dn: function () {
646
- timerId = null;
689
+ timerId = NULL_VALUE;
647
690
  }
648
691
  };
649
692
  }
@@ -656,7 +699,7 @@ function _createTimeoutWith(self, startTimer, overrideFn, theArgs) {
656
699
  var timerFn = theArgs[0];
657
700
  theArgs[0] = function () {
658
701
  handler.dn();
659
- timerFn.apply(self, arguments);
702
+ fnApply(timerFn, self, arrSlice(arguments));
660
703
  };
661
704
  var handler = _createTimerHandler(startTimer, function (timerId) {
662
705
  if (timerId) {
@@ -664,11 +707,11 @@ function _createTimeoutWith(self, startTimer, overrideFn, theArgs) {
664
707
  timerId.refresh();
665
708
  return timerId;
666
709
  }
667
- clearFn.call(self, timerId);
710
+ fnApply(clearFn, self, [timerId]);
668
711
  }
669
- return setFn.apply(self, theArgs);
712
+ return fnApply(setFn, self, theArgs);
670
713
  }, function (timerId) {
671
- clearFn.call(self, timerId);
714
+ fnApply(clearFn, self, [timerId]);
672
715
  });
673
716
  return handler.h;
674
717
  }
@@ -1010,13 +1053,6 @@ function throwAggregationError(message, sourceErrors) {
1010
1053
  throw new aggregationErrorType(theMessage, sourceErrors || []);
1011
1054
  }
1012
1055
 
1013
- var _theLogger = null;
1014
- function _debugLog(id, message) {
1015
- if (_theLogger) {
1016
- _theLogger(id, message);
1017
- }
1018
- }
1019
-
1020
1056
  var STRING_STATES = [
1021
1057
  "pending", "resolving", "resolved", "rejected"
1022
1058
  ];
@@ -1079,14 +1115,11 @@ function _createPromise(newPromise, processor, executor) {
1079
1115
  _handled = true;
1080
1116
  _unHandledRejectionHandler && _unHandledRejectionHandler.cancel();
1081
1117
  _unHandledRejectionHandler = null;
1082
- _debugLog(_toString(), "then(" + dumpFnObj(onResolved) + ", " + dumpFnObj(onResolved) + ")");
1083
1118
  var thenPromise = newPromise(function (resolve, reject) {
1084
1119
  _queue.push(function () {
1085
1120
  try {
1086
- _debugLog(_toString(), "Handling settled value " + dumpFnObj(_settledValue));
1087
1121
  var handler = _state === 2 ? onResolved : onRejected;
1088
1122
  var value = isUndefined(handler) ? _settledValue : (isFunction(handler) ? handler(_settledValue) : handler);
1089
- _debugLog(_toString(), "Handling Result " + dumpFnObj(value));
1090
1123
  if (isPromiseLike(value)) {
1091
1124
  value.then(resolve, reject);
1092
1125
  }
@@ -1104,12 +1137,10 @@ function _createPromise(newPromise, processor, executor) {
1104
1137
  reject(e);
1105
1138
  }
1106
1139
  });
1107
- _debugLog(_toString(), "Added to Queue " + _queue.length);
1108
1140
  if (_hasResolved) {
1109
1141
  _processQueue();
1110
1142
  }
1111
1143
  }, additionalArgs);
1112
- _debugLog(_toString(), "Created -> " + thenPromise.toString());
1113
1144
  return thenPromise;
1114
1145
  }
1115
1146
  finally {
@@ -1140,49 +1171,37 @@ function _createPromise(newPromise, processor, executor) {
1140
1171
  if (_queue.length > 0) {
1141
1172
  var pending = _queue.slice();
1142
1173
  _queue = [];
1143
- _debugLog(_toString(), "Processing queue " + pending.length);
1144
1174
  _handled = true;
1145
1175
  processor(pending);
1146
- _debugLog(_toString(), "Processing done");
1147
1176
  _unHandledRejectionHandler && _unHandledRejectionHandler.cancel();
1148
1177
  _unHandledRejectionHandler = null;
1149
1178
  }
1150
- else {
1151
- _debugLog(_toString(), "Empty Processing queue ");
1152
- }
1153
1179
  };
1154
1180
  var _createSettleIfFn = function (newState, allowState) {
1155
1181
  return function (theValue) {
1156
1182
  if (_state === allowState) {
1157
1183
  if (newState === 2 && isPromiseLike(theValue)) {
1158
1184
  _state = 1 ;
1159
- _debugLog(_toString(), "Resolving");
1160
1185
  theValue.then(_createSettleIfFn(2 , 1 ), _createSettleIfFn(3 , 1 ));
1161
1186
  return;
1162
1187
  }
1163
1188
  _state = newState;
1164
1189
  _hasResolved = true;
1165
1190
  _settledValue = theValue;
1166
- _debugLog(_toString(), _strState());
1167
1191
  _processQueue();
1168
1192
  if (!_handled && newState === 3 && !_unHandledRejectionHandler) {
1169
1193
  _unHandledRejectionHandler = scheduleTimeout(_notifyUnhandledRejection, _unhandledRejectionTimeout);
1170
1194
  }
1171
1195
  }
1172
- else {
1173
- _debugLog(_toString(), "Already " + _strState());
1174
- }
1175
1196
  };
1176
1197
  };
1177
1198
  var _notifyUnhandledRejection = function () {
1178
1199
  if (!_handled) {
1179
1200
  if (isNode()) {
1180
- _debugLog(_toString(), "Emitting " + NODE_UNHANDLED_REJECTION);
1181
1201
  process.emit(NODE_UNHANDLED_REJECTION, _settledValue, _thePromise);
1182
1202
  }
1183
1203
  else {
1184
1204
  var gbl = getWindow() || getGlobal();
1185
- _debugLog(_toString(), "Emitting " + UNHANDLED_REJECTION);
1186
1205
  emitEvent(gbl, UNHANDLED_REJECTION, function (theEvt) {
1187
1206
  objDefine(theEvt, "promise", { g: function () { return _thePromise; } });
1188
1207
  theEvt.reason = _settledValue;
@@ -1212,14 +1231,12 @@ function _createPromise(newPromise, processor, executor) {
1212
1231
  }
1213
1232
  var _rejectFn = _createSettleIfFn(3 , 0 );
1214
1233
  try {
1215
- _debugLog(_toString(), "Executing");
1216
1234
  executor.call(_thePromise, _createSettleIfFn(2 , 0 ), _rejectFn);
1217
1235
  }
1218
1236
  catch (e) {
1219
1237
  _rejectFn(e);
1220
1238
  }
1221
1239
  })();
1222
- _debugLog(_toString(), "Returning");
1223
1240
  return _thePromise;
1224
1241
  }
1225
1242
 
@@ -1463,7 +1480,7 @@ function newId(maxLength) {
1463
1480
  return result;
1464
1481
  }
1465
1482
 
1466
- var version = "3.0.3-nightly3.2306-01";
1483
+ var version = '3.0.3-nightly3.2307-24';
1467
1484
  var instanceName = "." + newId(6);
1468
1485
  var _dataUid = 0;
1469
1486
  function _canAcceptData(target) {
@@ -3326,4 +3343,4 @@ var TeeChannel = /** @class */ (function (_super) {
3326
3343
  exports.TeeChannel = TeeChannel;
3327
3344
 
3328
3345
  }));
3329
- //# sourceMappingURL=applicationinsights-teechannel-js.3.0.3-nightly3.2306-01.js.map
3346
+ //# sourceMappingURL=applicationinsights-teechannel-js.3.0.3-nightly3.2307-24.js.map