@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
@@ -0,0 +1,66 @@
1
+ {
2
+ "name": "applicationinsights-teechannel-js",
3
+ "version": "3.3.7-nightly3.2504-12",
4
+ "ext": {
5
+ "@cjs.js": {
6
+ "file": "applicationinsights-teechannel-js.3.3.7-nightly3.2504-12.cjs.js",
7
+ "type": "text/javascript; charset=utf-8",
8
+ "integrity": "sha256-LQzWPjiKSWgIILhAfzteTOVy7eAYrnTP1IRlM52/fzg= sha384-T2lFFe7jNkZwmJblIche8aOIrrcJm7oLDffgOjCaker+iGBimF4gDS638YHsld/D sha512-gFiQW62ey3zqSjzeVYaC54B8zUEcg9VG1USDG4nEq+c1Ii2iluDa8NwXXt6rFZvgp29N6XqjNelmVyuSulAb5w==",
9
+ "hashes": {
10
+ "sha256": "LQzWPjiKSWgIILhAfzteTOVy7eAYrnTP1IRlM52/fzg=",
11
+ "sha384": "T2lFFe7jNkZwmJblIche8aOIrrcJm7oLDffgOjCaker+iGBimF4gDS638YHsld/D",
12
+ "sha512": "gFiQW62ey3zqSjzeVYaC54B8zUEcg9VG1USDG4nEq+c1Ii2iluDa8NwXXt6rFZvgp29N6XqjNelmVyuSulAb5w=="
13
+ }
14
+ },
15
+ "@cjs.min.js": {
16
+ "file": "applicationinsights-teechannel-js.3.3.7-nightly3.2504-12.cjs.min.js",
17
+ "type": "text/javascript; charset=utf-8",
18
+ "integrity": "sha256-lTI5KqmDyNoxrEdvrvJ3V/HsDkYKb2sRVS1fzJt9lJo= sha384-8JXaIlC1CgkSPZlyZtQU2Sq5VqmXbiVe+okfSogsSzxl9XZcPs/Ds6LjFjPjq84d sha512-2EQ4r9zE2IXXT2SnuTDK14/GzdX+/dqgCmeUOxf27sag4aTfeNxdFYbmPoQq3Qv9BMoV6r2LHP9dsPkL70N+6A==",
19
+ "hashes": {
20
+ "sha256": "lTI5KqmDyNoxrEdvrvJ3V/HsDkYKb2sRVS1fzJt9lJo=",
21
+ "sha384": "8JXaIlC1CgkSPZlyZtQU2Sq5VqmXbiVe+okfSogsSzxl9XZcPs/Ds6LjFjPjq84d",
22
+ "sha512": "2EQ4r9zE2IXXT2SnuTDK14/GzdX+/dqgCmeUOxf27sag4aTfeNxdFYbmPoQq3Qv9BMoV6r2LHP9dsPkL70N+6A=="
23
+ }
24
+ },
25
+ "@gbl.js": {
26
+ "file": "applicationinsights-teechannel-js.3.3.7-nightly3.2504-12.gbl.js",
27
+ "type": "text/javascript; charset=utf-8",
28
+ "integrity": "sha256-FzmS2ad+aVTWsL4xdR5AJ2HM9qfiCIT0Q1qRhHc4thI= sha384-BY+Jv9gw+okvA2MG64btDAi27x3csJlpTGnNRLXDsSSj0bOMPHi3IweHBm6d8DNL sha512-QDPESdjmsw+2w1nS+ckTx0LDTPiK3mkJeJGT0n4fYbwEqlZyxkHj1eIR2IsTV9JigfHv4fdgO80B9qSGDXklGg==",
29
+ "hashes": {
30
+ "sha256": "FzmS2ad+aVTWsL4xdR5AJ2HM9qfiCIT0Q1qRhHc4thI=",
31
+ "sha384": "BY+Jv9gw+okvA2MG64btDAi27x3csJlpTGnNRLXDsSSj0bOMPHi3IweHBm6d8DNL",
32
+ "sha512": "QDPESdjmsw+2w1nS+ckTx0LDTPiK3mkJeJGT0n4fYbwEqlZyxkHj1eIR2IsTV9JigfHv4fdgO80B9qSGDXklGg=="
33
+ }
34
+ },
35
+ "@gbl.min.js": {
36
+ "file": "applicationinsights-teechannel-js.3.3.7-nightly3.2504-12.gbl.min.js",
37
+ "type": "text/javascript; charset=utf-8",
38
+ "integrity": "sha256-2u3KiSGBpEa23eDWZmV3x/uBdAzkxWNv6ZndWS7aziE= sha384-XuBKQL134lznGWOlckytiXKIC3j1EKgFtQM22O4/549bN6IlCQokvcOlZlQl89Kl sha512-W2tYll/utuTjgWKFnWhpwwWJoZdnaKLnIFrQyhGteChZW7FcNsR7yAqqGUzk2TEI5tJ5v9PK3anG/eS1Yxreow==",
39
+ "hashes": {
40
+ "sha256": "2u3KiSGBpEa23eDWZmV3x/uBdAzkxWNv6ZndWS7aziE=",
41
+ "sha384": "XuBKQL134lznGWOlckytiXKIC3j1EKgFtQM22O4/549bN6IlCQokvcOlZlQl89Kl",
42
+ "sha512": "W2tYll/utuTjgWKFnWhpwwWJoZdnaKLnIFrQyhGteChZW7FcNsR7yAqqGUzk2TEI5tJ5v9PK3anG/eS1Yxreow=="
43
+ }
44
+ },
45
+ "@js": {
46
+ "file": "applicationinsights-teechannel-js.3.3.7-nightly3.2504-12.js",
47
+ "type": "text/javascript; charset=utf-8",
48
+ "integrity": "sha256-cm17vLXmt7Mb9MnY9HIPsL7RXdewZ9DkZFrmce34lNI= sha384-tzjBymqgAGpjatMp5HxtWUn+4kvXVydOWBB4wIMisdOznPYhZQbMvJbIpZgvgiWV sha512-fxXRN7OFAvCa2WcDcKghgpwlDPkAVDpuv12KEtZNJ+gMmpOljO8wk29cc+YKloqosw17PJHBT2kDq587lKMQBg==",
49
+ "hashes": {
50
+ "sha256": "cm17vLXmt7Mb9MnY9HIPsL7RXdewZ9DkZFrmce34lNI=",
51
+ "sha384": "tzjBymqgAGpjatMp5HxtWUn+4kvXVydOWBB4wIMisdOznPYhZQbMvJbIpZgvgiWV",
52
+ "sha512": "fxXRN7OFAvCa2WcDcKghgpwlDPkAVDpuv12KEtZNJ+gMmpOljO8wk29cc+YKloqosw17PJHBT2kDq587lKMQBg=="
53
+ }
54
+ },
55
+ "@min.js": {
56
+ "file": "applicationinsights-teechannel-js.3.3.7-nightly3.2504-12.min.js",
57
+ "type": "text/javascript; charset=utf-8",
58
+ "integrity": "sha256-zXb07qfulEk52ihzs4MgCt0B5z3MZKM5UUhhPomAFMk= sha384-lzVgxWzMtuFxYBnD41HPPQdFklb4Piw4YQywFmxXX/5ci884W3ayfNqxIEqDPGXl sha512-YJpHJSnOTAnlLCOJstWxzLA8QlIcYArervmHff682lLuFsh+di9joDV/6nqheSK4CVPnlxNpym+jp+ixmYkvLQ==",
59
+ "hashes": {
60
+ "sha256": "zXb07qfulEk52ihzs4MgCt0B5z3MZKM5UUhhPomAFMk=",
61
+ "sha384": "lzVgxWzMtuFxYBnD41HPPQdFklb4Piw4YQywFmxXX/5ci884W3ayfNqxIEqDPGXl",
62
+ "sha512": "YJpHJSnOTAnlLCOJstWxzLA8QlIcYArervmHff682lLuFsh+di9joDV/6nqheSK4CVPnlxNpym+jp+ixmYkvLQ=="
63
+ }
64
+ }
65
+ }
66
+ }
@@ -1,7 +1,32 @@
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
+ (function (global, factory) {
6
+ var undef = "undefined";
7
+ typeof exports === "object" && typeof module !== undef ? factory(exports) :
8
+ typeof define === "function" && define.amd ? define(["exports"], factory) :
9
+ (function(global){
10
+ var nsKey, key, nm, theExports = {}, modName = "es5_applicationinsights_teechannel_js_3_3_7_nightly3_2504_12", msMod="__ms$mod__";
11
+ var mods={}, modDetail=mods[modName]={}, ver="3.3.7-nightly3.2504-12";
12
+ var baseNs=global, nsKey="Microsoft", baseNs=baseNs[nsKey]=(baseNs[nsKey]||{});
13
+ // Versioned namespace "Microsoft.ApplicationInsights3"
14
+ var exportNs=baseNs, nsKey="ApplicationInsights3", exportNs=exportNs[nsKey]=(exportNs[nsKey]||{});
15
+ // Global namespace "Microsoft.ApplicationInsights"
16
+ var destNs=baseNs, nsKey="ApplicationInsights", destNs=destNs[nsKey]=(destNs[nsKey]||{});
17
+ var expNsDetail=(exportNs[msMod]=(exportNs[msMod] || {})), expNameVer=(expNsDetail["v"]=(expNsDetail["v"] || []));
18
+ var destNsDetail=(destNs[msMod]=(destNs[msMod] || {})), destNameVer=(destNsDetail["v"]=(destNsDetail["v"] || []));
19
+ (destNsDetail["o"]=(destNsDetail["o"] || [])).push(mods);
20
+ factory(theExports);
21
+ for(var key in theExports) {
22
+ // Always set the imported value into the "export" versioned namespace (last-write wins)
23
+ nm="x", exportNs[key]=theExports[key], expNameVer[key]=ver;
24
+ // Copy over any named element that is not already present (first-write wins)
25
+ typeof destNs[key]===undef ? (nm="n", destNs[key]=theExports[key]) && (destNameVer[key]=ver) : !destNameVer[key] && (destNameVer[key]="---");
26
+ (modDetail[nm] = (modDetail[nm] || [])).push(key);
27
+ }
28
+ })(typeof globalThis !== undef ? globalThis : global || self);
29
+ })(this, (function (exports) {
5
30
  'use strict';
6
31
 
7
32
 
@@ -11,7 +36,7 @@ var strShimUndefined = "undefined";
11
36
  var strShimPrototype = "prototype";
12
37
  var ObjClass$1 = Object;
13
38
 
14
- /*! https://github.com/nevware21/ts-utils v0.11.8 */
39
+ /*! https://github.com/nevware21/ts-utils v0.12.1 */
15
40
  /*#__NO_SIDE_EFFECTS__*/
16
41
  function _pureAssign(func1, func2) {
17
42
  return func1 || func2;
@@ -30,11 +55,12 @@ var __PROTO__ = "__proto__";
30
55
  var UNDEFINED = "undefined";
31
56
  var CONSTRUCTOR = "constructor";
32
57
  var SYMBOL = "Symbol";
33
- var POLYFILL_TAG = "_polyfill";
34
58
  var LENGTH = "length";
35
59
  var NAME = "name";
36
60
  var CALL = "call";
37
61
  var TO_STRING = "toString";
62
+ var GETTER_NAME = "__lookupGetter__";
63
+ var SETTER_NAME = "__lookupSetter__";
38
64
  var ObjClass = ( /*#__PURE__*/_pureAssign(Object));
39
65
  var ObjProto = ( /*#__PURE__*/_pureRef(ObjClass, PROTOTYPE));
40
66
  var StrCls = ( /*#__PURE__*/_pureAssign(String));
@@ -43,6 +69,8 @@ var MathCls = ( /*#__PURE__*/_pureAssign(Math));
43
69
  var ArrCls = ( /*#__PURE__*/_pureAssign(Array));
44
70
  var ArrProto = ( /*#__PURE__*/_pureRef(ArrCls, PROTOTYPE));
45
71
  var ArrSlice = ( /*#__PURE__*/_pureRef(ArrProto, "slice"));
72
+ var POLYFILL_TAG = "_polyfill";
73
+ var POLYFILL_TYPE_NAME = "__nw21$polytype__";
46
74
  function safe(func, argArray) {
47
75
  try {
48
76
  return {
@@ -65,7 +93,7 @@ function isUndefined(value) {
65
93
  }
66
94
  /*#__NO_SIDE_EFFECTS__*/
67
95
  function isStrictUndefined(arg) {
68
- return !isDefined(arg);
96
+ return arg === UNDEF_VALUE;
69
97
  }
70
98
  /*#__NO_SIDE_EFFECTS__*/
71
99
  function isNullOrUndefined(value) {
@@ -73,7 +101,7 @@ function isNullOrUndefined(value) {
73
101
  }
74
102
  /*#__NO_SIDE_EFFECTS__*/
75
103
  function isStrictNullOrUndefined(value) {
76
- return value === NULL_VALUE || !isDefined(value);
104
+ return value === NULL_VALUE || value === UNDEF_VALUE;
77
105
  }
78
106
  /*#__NO_SIDE_EFFECTS__*/
79
107
  function isDefined(arg) {
@@ -95,18 +123,122 @@ var isBoolean = ( /*#__PURE__*/_createIs("boolean"));
95
123
  function isPromiseLike(value) {
96
124
  return !!(value && value.then && isFunction(value.then));
97
125
  }
98
- var objGetOwnPropertyDescriptor = ( /* #__PURE__ */_pureRef(ObjClass, "getOwnPropertyDescriptor"));
126
+ var asString = ( /* #__PURE__ */_pureAssign(StrCls));
127
+ var ERROR_TYPE = "[object Error]";
128
+ /*#__NO_SIDE_EFFECTS__*/
129
+ function dumpObj(object, format) {
130
+ var propertyValueDump = EMPTY;
131
+ var objType = ObjProto[TO_STRING][CALL](object);
132
+ if (objType === ERROR_TYPE) {
133
+ object = { stack: asString(object.stack), message: asString(object.message), name: asString(object.name) };
134
+ }
135
+ try {
136
+ propertyValueDump = JSON.stringify(object, NULL_VALUE, format ? ((typeof format === "number") ? format : 4) : UNDEF_VALUE);
137
+ propertyValueDump = (propertyValueDump ? propertyValueDump.replace(/"(\w+)"\s*:\s{0,1}/g, "$1: ") : NULL_VALUE) || asString(object);
138
+ }
139
+ catch (e) {
140
+ propertyValueDump = " - " + dumpObj(e, format);
141
+ }
142
+ return objType + ": " + propertyValueDump;
143
+ }
144
+ function throwError(message) {
145
+ throw new Error(message);
146
+ }
147
+ function throwTypeError(message) {
148
+ throw new TypeError(message);
149
+ }
150
+ function _throwIfNullOrUndefined(obj) {
151
+ if (isStrictNullOrUndefined(obj)) {
152
+ throwTypeError("Cannot convert undefined or null to object");
153
+ }
154
+ }
99
155
  /*#__NO_SIDE_EFFECTS__*/
100
156
  function objHasOwnProperty(obj, prop) {
101
157
  return !!obj && ObjProto.hasOwnProperty[CALL](obj, prop);
102
158
  }
103
- var objHasOwn = ( /*#__PURE__*/_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "hasOwn")), polyObjHasOwn));
159
+ var _unwrapFunction = ( _unwrapFunctionWithPoly);
160
+ /*#__NO_SIDE_EFFECTS__*/
161
+ function _unwrapFunctionWithPoly(funcName, clsProto, polyFunc) {
162
+ var clsFn = clsProto ? clsProto[funcName] : NULL_VALUE;
163
+ return function (thisArg) {
164
+ var theFunc = (thisArg ? thisArg[funcName] : NULL_VALUE) || clsFn;
165
+ if (theFunc || polyFunc) {
166
+ var theArgs = arguments;
167
+ return (theFunc || polyFunc).apply(thisArg, theFunc ? ArrSlice[CALL](theArgs, 1) : theArgs);
168
+ }
169
+ throwTypeError("\"" + asString(funcName) + "\" not defined for " + dumpObj(thisArg));
170
+ };
171
+ }
172
+ function _objPropertyIsEnum(obj, propKey) {
173
+ var desc;
174
+ var fn = ObjClass.getOwnPropertyDescriptor;
175
+ if (!isStrictNullOrUndefined(obj) && fn) {
176
+ desc = safe(fn, [obj, propKey]).v || NULL_VALUE;
177
+ }
178
+ if (!desc) {
179
+ desc = safe(function () {
180
+ for (var key in obj) {
181
+ if (key === propKey) {
182
+ return { enumerable: true };
183
+ }
184
+ }
185
+ }).v;
186
+ }
187
+ return (desc && desc.enumerable) || false;
188
+ }
189
+ var objPropertyIsEnumerable = ( /*#__PURE__*/_unwrapFunctionWithPoly("propertyIsEnumerable", NULL_VALUE, _objPropertyIsEnum));
190
+ function _isPropertyWritable(obj, prop) {
191
+ var result = false;
192
+ if (!(isString(obj) && (prop === LENGTH || isNumber(prop) || (isString(prop) && !isNaN(Number(prop)))))) {
193
+ var originalValue = obj[prop];
194
+ try {
195
+ obj[prop] = originalValue;
196
+ result = true;
197
+ }
198
+ catch (e) {
199
+ }
200
+ }
201
+ return result;
202
+ }
203
+ function polyObjGetOwnPropertyDescriptor(obj, prop) {
204
+ var descriptor;
205
+ _throwIfNullOrUndefined(obj);
206
+ var isLength = (prop === LENGTH && (isArray(obj) || isString(obj)));
207
+ if (isLength || objHasOwnProperty(obj, prop)) {
208
+ descriptor = {
209
+ configurable: !isLength,
210
+ enumerable: !isLength ? objPropertyIsEnumerable(obj, prop) : false
211
+ };
212
+ var isData = true;
213
+ if (GETTER_NAME in ObjProto && SETTER_NAME in ObjProto) {
214
+ var getter = obj[GETTER_NAME](prop);
215
+ var setter = obj[SETTER_NAME](prop);
216
+ if (getter || setter) {
217
+ isData = false;
218
+ if (getter) {
219
+ descriptor.get = getter;
220
+ }
221
+ if (setter) {
222
+ descriptor.set = setter;
223
+ }
224
+ }
225
+ }
226
+ if (isData) {
227
+ descriptor.value = obj[prop];
228
+ descriptor.writable = _isPropertyWritable(obj, prop);
229
+ }
230
+ }
231
+ return descriptor;
232
+ }
233
+ var objGetOwnPropertyDescriptor = ( /* #__PURE__ */_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "getOwnPropertyDescriptor")), polyObjGetOwnPropertyDescriptor));
104
234
  /*#__NO_SIDE_EFFECTS__*/
105
235
  function polyObjHasOwn(obj, prop) {
236
+ _throwIfNullOrUndefined(obj);
106
237
  return objHasOwnProperty(obj, prop) || !!objGetOwnPropertyDescriptor(obj, prop);
107
238
  }
239
+ var objHasOwn = ( /*#__PURE__*/_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "hasOwn")), polyObjHasOwn));
108
240
  function objForEachKey(theObject, callbackfn, thisArg) {
109
- if (theObject && isObject(theObject)) {
241
+ if (theObject && (isObject(theObject) || isFunction(theObject))) {
110
242
  for (var prop in theObject) {
111
243
  if (objHasOwn(theObject, prop)) {
112
244
  if (callbackfn[CALL](thisArg || theObject, prop, theObject[prop]) === -1) {
@@ -116,6 +248,18 @@ function objForEachKey(theObject, callbackfn, thisArg) {
116
248
  }
117
249
  }
118
250
  }
251
+ function arrForEach(theArray, callbackfn, thisArg) {
252
+ if (theArray) {
253
+ var len = theArray[LENGTH] >>> 0;
254
+ for (var idx = 0; idx < len; idx++) {
255
+ if (idx in theArray) {
256
+ if (callbackfn[CALL](thisArg || theArray, theArray[idx], idx, theArray) === -1) {
257
+ break;
258
+ }
259
+ }
260
+ }
261
+ }
262
+ }
119
263
  var propMap = {
120
264
  e: "enumerable",
121
265
  c: "configurable",
@@ -144,6 +288,7 @@ function _createProp(value) {
144
288
  return prop;
145
289
  }
146
290
  var objDefineProp = ( /*#__PURE__*/_pureRef(ObjClass, "defineProperty"));
291
+ var objDefineProperties = ( /*#__PURE__*/_pureRef(ObjClass, "defineProperties"));
147
292
  function objDefine(target, key, propDesc) {
148
293
  return objDefineProp(target, key, _createProp(propDesc));
149
294
  }
@@ -163,48 +308,49 @@ function _assignMapValue(theMap, key, value, writable) {
163
308
  writable: false
164
309
  });
165
310
  }
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) };
311
+ function polyObjIsFrozen(obj) {
312
+ if (isStrictNullOrUndefined(obj) || (!isObject(obj) && !isFunction(obj))) {
313
+ return true;
174
314
  }
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);
315
+ if (isFunction(obj)) {
316
+ return false;
178
317
  }
179
- catch (e) {
180
- propertyValueDump = " - " + dumpObj(e, format);
318
+ for (var prop in obj) {
319
+ var desc = objGetOwnPropertyDescriptor(obj, prop);
320
+ if (desc && (desc.configurable || (desc.writable !== false && "value" in desc))) {
321
+ return false;
322
+ }
181
323
  }
182
- return objType + ": " + propertyValueDump;
183
- }
184
- function throwError(message) {
185
- throw new Error(message);
186
- }
187
- function throwTypeError(message) {
188
- throw new TypeError(message);
324
+ return true;
189
325
  }
326
+ var objIsFrozen = ( /* #__PURE__*/_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "isFrozen")), polyObjIsFrozen));
190
327
  var _objFreeze = ( /* #__PURE__ */_pureRef(ObjClass, "freeze"));
191
328
  function _doNothing(value) {
192
329
  return value;
193
330
  }
194
331
  /*#__NO_SIDE_EFFECTS__*/
195
332
  function _getProto(value) {
333
+ _throwIfNullOrUndefined(value);
196
334
  return value[__PROTO__] || NULL_VALUE;
197
335
  }
198
336
  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);
337
+ function _deepFreeze(val, visited) {
338
+ if ((isArray(val) || isObject(val) || isFunction(val)) && !objIsFrozen(val)) {
339
+ for (var lp = 0; lp < visited.length; lp++) {
340
+ if (visited[lp] === val) {
341
+ return val;
204
342
  }
343
+ }
344
+ visited.push(val);
345
+ objForEachKey(val, function (_key, propValue) {
346
+ _deepFreeze(propValue, visited);
205
347
  });
348
+ objFreeze(val);
206
349
  }
207
- return objFreeze(value);
350
+ return val;
351
+ }
352
+ function objDeepFreeze(value) {
353
+ return _objFreeze ? _deepFreeze(value, []) : value;
208
354
  }
209
355
  var objFreeze = ( /* #__PURE__*/_pureAssign(_objFreeze, _doNothing));
210
356
  var objGetPrototypeOf = ( /* #__PURE__*/_pureAssign(( /* #__PURE__*/_pureRef(ObjClass, "getPrototypeOf")), _getProto));
@@ -254,21 +400,109 @@ function _getGlobalConfig() {
254
400
  }
255
401
  return _globalCfg;
256
402
  }
257
- var _unwrapFunction = ( _unwrapFunctionWithPoly);
403
+ function _tagAsPolyfill(target, polyfillTypeName) {
404
+ if (target) {
405
+ safe(function () {
406
+ target[POLYFILL_TAG] = true;
407
+ target[POLYFILL_TYPE_NAME] = polyfillTypeName;
408
+ });
409
+ safe(objDefine, [target, POLYFILL_TAG, {
410
+ v: true,
411
+ w: false,
412
+ e: false
413
+ }]);
414
+ safe(objDefine, [target, POLYFILL_TYPE_NAME, {
415
+ v: polyfillTypeName,
416
+ w: false,
417
+ e: false
418
+ }]);
419
+ }
420
+ return target;
421
+ }
258
422
  /*#__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);
423
+ function createCachedValue(value) {
424
+ return objDefineProp({
425
+ toJSON: function () { return value; }
426
+ }, "v", { value: value });
427
+ }
428
+ var _isProtoArray;
429
+ var objSetPrototypeOf = ( /* #__PURE__*/_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "setPrototypeOf")), _polyObjSetPrototypeOf));
430
+ function _polyObjSetPrototypeOf(obj, proto) {
431
+ var _a;
432
+ !_isProtoArray && (_isProtoArray = createCachedValue((_a = {}, _a[__PROTO__] = [], _a) instanceof Array));
433
+ _isProtoArray.v ? obj[__PROTO__] = proto : objForEachKey(proto, function (key, value) { return obj[key] = value; });
434
+ return obj;
435
+ }
436
+ var objCreate = ( /* #__PURE__*/_pureAssign(( /* #__PURE__*/_pureRef(ObjClass, "create")), polyObjCreate));
437
+ /*#__NO_SIDE_EFFECTS__*/
438
+ function polyObjCreate(obj, properties) {
439
+ var newObj;
440
+ function tempFunc() { }
441
+ if (!isStrictNullOrUndefined(obj)) {
442
+ var type = typeof obj;
443
+ if (type !== OBJECT && type !== FUNCTION) {
444
+ throwTypeError("Prototype must be an Object or function: " + dumpObj(obj));
445
+ }
446
+ tempFunc[PROTOTYPE] = obj;
447
+ safe(function () {
448
+ tempFunc[__PROTO__] = obj;
449
+ });
450
+ newObj = new tempFunc();
451
+ }
452
+ else {
453
+ newObj = {};
454
+ }
455
+ safe(_polyObjSetPrototypeOf, [newObj, obj]);
456
+ if (properties) {
457
+ safe(objDefineProperties, [newObj, properties]);
458
+ }
459
+ return newObj;
460
+ }
461
+ /*#__NO_SIDE_EFFECTS__*/
462
+ function utcNow() {
463
+ return (Date.now || polyUtcNow)();
464
+ }
465
+ /*#__NO_SIDE_EFFECTS__*/
466
+ function polyUtcNow() {
467
+ return new Date().getTime();
468
+ }
469
+ var _globalLazyTestHooks;
470
+ function _initTestHooks() {
471
+ _globalLazyTestHooks = _getGlobalConfig();
472
+ }
473
+ /*#__NO_SIDE_EFFECTS__*/
474
+ function getLazy(cb) {
475
+ var lazyValue = {};
476
+ !_globalLazyTestHooks && _initTestHooks();
477
+ lazyValue.b = _globalLazyTestHooks.lzy;
478
+ objDefineProp(lazyValue, "v", {
479
+ configurable: true,
480
+ get: function () {
481
+ var result = cb();
482
+ if (!_globalLazyTestHooks.lzy) {
483
+ objDefineProp(lazyValue, "v", {
484
+ value: result
485
+ });
486
+ }
487
+ lazyValue.b = _globalLazyTestHooks.lzy;
488
+ return result;
266
489
  }
267
- throwTypeError("\"" + asString(funcName) + "\" not defined for " + dumpObj(thisArg));
268
- };
490
+ });
491
+ return lazyValue;
269
492
  }
493
+ var mathRandom = ( /*#__PURE__*/_pureRef(MathCls, "random"));
494
+ var _uniqueInstanceId = ( /*#__PURE__*/getLazy(function () {
495
+ var value = (utcNow().toString(36).slice(2));
496
+ while (value.length < 16) {
497
+ value += mathRandom().toString(36).slice(2);
498
+ }
499
+ value = value.substring(0, 16);
500
+ return value;
501
+ }));
270
502
  var UNIQUE_REGISTRY_ID = "_urid";
503
+ var POLY_SYM = "$nw21sym";
271
504
  var _polySymbols;
505
+ var _polyId = 0;
272
506
  /*#__NO_SIDE_EFFECTS__*/
273
507
  function _globalSymbolRegistry() {
274
508
  if (!_polySymbols) {
@@ -280,12 +514,35 @@ function _globalSymbolRegistry() {
280
514
  var _wellKnownSymbolCache;
281
515
  /*#__NO_SIDE_EFFECTS__*/
282
516
  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;
517
+ var uniqueId = "_" + _polyId++ + "_" + _uniqueInstanceId.v;
518
+ var symString = SYMBOL + "(" + description + ")";
519
+ var theSymbol = objCreate(null);
520
+ objDefine(theSymbol, "description", {
521
+ v: asString(description),
522
+ e: false,
523
+ w: false
524
+ });
525
+ objDefine(theSymbol, TO_STRING, {
526
+ v: function () { return symString + POLY_SYM + uniqueId; },
527
+ e: false,
528
+ w: false
529
+ });
530
+ objDefine(theSymbol, "valueOf", {
531
+ v: function () { return theSymbol; },
532
+ e: false,
533
+ w: false
534
+ });
535
+ objDefine(theSymbol, "v", {
536
+ v: symString,
537
+ e: false,
538
+ w: false
539
+ });
540
+ objDefine(theSymbol, "_uid", {
541
+ v: uniqueId,
542
+ e: false,
543
+ w: false
544
+ });
545
+ return _tagAsPolyfill(theSymbol, "symbol");
289
546
  }
290
547
  /*#__NO_SIDE_EFFECTS__*/
291
548
  function polySymbolFor(key) {
@@ -309,16 +566,6 @@ function polyGetKnownSymbol(name) {
309
566
  }
310
567
  return result;
311
568
  }
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
569
  var WINDOW = "window";
323
570
  var _cachedGlobal;
324
571
  function _getGlobalInstFn(getFn, theArgs) {
@@ -476,46 +723,10 @@ function arrAppend(target, elms) {
476
723
  }
477
724
  return target;
478
725
  }
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
726
  var arrIndexOf = ( /*#__PURE__*/_unwrapFunction("indexOf", ArrProto));
492
727
  function arrSlice(theArray, start, end) {
493
728
  return ((theArray ? theArray["slice"] : NULL_VALUE) || ArrSlice).apply(theArray, ArrSlice[CALL](arguments, 1));
494
729
  }
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
730
  /*#__NO_SIDE_EFFECTS__*/
520
731
  function _createCustomError(name, d, b) {
521
732
  safe(objDefine, [d, NAME, { v: name, c: true, e: false }]);
@@ -556,14 +767,6 @@ function createCustomError(name, constructCb, errorBase) {
556
767
  }
557
768
  }, theBaseClass);
558
769
  }
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
770
  var mathFloor = ( /*#__PURE__*/_pureRef(MathCls, "floor"));
568
771
  var _fnToString;
569
772
  var _objCtrFnString;
@@ -1439,7 +1642,7 @@ function newId(maxLength) {
1439
1642
  return result;
1440
1643
  }
1441
1644
 
1442
- var version = '3.3.7-nightly3.2504-08';
1645
+ var version = '3.3.7-nightly3.2504-12';
1443
1646
  var instanceName = "." + newId(6);
1444
1647
  var _dataUid = 0;
1445
1648
  function _canAcceptData(target) {
@@ -3287,4 +3490,6 @@ var TeeChannel = /** @class */ (function (_super) {
3287
3490
  }(BaseTelemetryPlugin));
3288
3491
 
3289
3492
  exports.TeeChannel = TeeChannel;
3290
- //# sourceMappingURL=applicationinsights-teechannel-js.3.3.7-nightly3.2504-08.cjs.js.map
3493
+
3494
+ }));
3495
+ //# sourceMappingURL=applicationinsights-teechannel-js.3.3.7-nightly3.2504-12.js.map