@microsoft/applicationinsights-common 2.8.0-beta.2203-16 → 2.8.0-nightly.2204-05

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 (223) hide show
  1. package/browser/applicationinsights-common.integrity.json +9 -9
  2. package/browser/applicationinsights-common.js +521 -743
  3. package/browser/applicationinsights-common.js.map +1 -1
  4. package/browser/applicationinsights-common.min.js +2 -2
  5. package/browser/applicationinsights-common.min.js.map +1 -1
  6. package/dist/applicationinsights-common.api.json +2816 -1246
  7. package/dist/applicationinsights-common.api.md +87 -43
  8. package/dist/applicationinsights-common.d.ts +503 -290
  9. package/dist/applicationinsights-common.js +521 -743
  10. package/dist/applicationinsights-common.js.map +1 -1
  11. package/dist/applicationinsights-common.min.js +2 -2
  12. package/dist/applicationinsights-common.min.js.map +1 -1
  13. package/dist/applicationinsights-common.rollup.d.ts +503 -290
  14. package/dist-esm/ConnectionStringParser.js +1 -1
  15. package/dist-esm/Constants.js +1 -1
  16. package/dist-esm/DomHelperFuncs.js +1 -1
  17. package/dist-esm/Enums.js +1 -1
  18. package/dist-esm/HelperFuncs.js +1 -1
  19. package/dist-esm/Interfaces/ConnectionString.js +1 -1
  20. package/dist-esm/Interfaces/Context/IApplication.js +1 -1
  21. package/dist-esm/Interfaces/Context/IDevice.js +1 -1
  22. package/dist-esm/Interfaces/Context/IInternal.js +1 -1
  23. package/dist-esm/Interfaces/Context/ILocation.js +1 -1
  24. package/dist-esm/Interfaces/Context/IOperatingSystem.js +1 -1
  25. package/dist-esm/Interfaces/Context/ISample.js +1 -1
  26. package/dist-esm/Interfaces/Context/ISession.js +1 -1
  27. package/dist-esm/Interfaces/Context/ITelemetryTrace.js +1 -1
  28. package/dist-esm/Interfaces/Context/IUser.js +1 -1
  29. package/dist-esm/Interfaces/Context/IWeb.js +1 -1
  30. package/dist-esm/Interfaces/Contracts/AvailabilityData.js +1 -1
  31. package/dist-esm/Interfaces/Contracts/ContextTagKeys.js +1 -1
  32. package/dist-esm/Interfaces/Contracts/DataPointType.js +1 -1
  33. package/dist-esm/Interfaces/Contracts/DependencyKind.js +1 -1
  34. package/dist-esm/Interfaces/Contracts/DependencySourceType.js +1 -1
  35. package/dist-esm/Interfaces/Contracts/IBase.js +1 -1
  36. package/dist-esm/Interfaces/Contracts/IData.js +1 -1
  37. package/dist-esm/Interfaces/Contracts/IDataPoint.js +1 -1
  38. package/dist-esm/Interfaces/Contracts/IDomain.js +1 -1
  39. package/dist-esm/Interfaces/Contracts/IEnvelope.js +1 -1
  40. package/dist-esm/Interfaces/Contracts/IEventData.js +1 -1
  41. package/dist-esm/Interfaces/Contracts/IExceptionData.js +1 -1
  42. package/dist-esm/Interfaces/Contracts/IExceptionDetails.js +1 -1
  43. package/dist-esm/Interfaces/Contracts/IMessageData.js +1 -1
  44. package/dist-esm/Interfaces/Contracts/IMetricData.js +1 -1
  45. package/dist-esm/Interfaces/Contracts/IPageViewData.js +1 -1
  46. package/dist-esm/Interfaces/Contracts/IPageViewPerfData.js +1 -1
  47. package/dist-esm/Interfaces/Contracts/IRemoteDependencyData.js +1 -1
  48. package/dist-esm/Interfaces/Contracts/IStackFrame.js +1 -1
  49. package/dist-esm/Interfaces/Contracts/RequestData.js +1 -1
  50. package/dist-esm/Interfaces/Contracts/SeverityLevel.js +1 -1
  51. package/dist-esm/Interfaces/IAppInsights.js +1 -1
  52. package/dist-esm/Interfaces/IChannelControlsAI.js +1 -1
  53. package/dist-esm/Interfaces/IConfig.js +1 -1
  54. package/dist-esm/Interfaces/ICorrelationConfig.js +1 -1
  55. package/dist-esm/Interfaces/IDependencyTelemetry.js +1 -1
  56. package/dist-esm/Interfaces/IEventTelemetry.js +1 -1
  57. package/dist-esm/Interfaces/IExceptionTelemetry.js +1 -1
  58. package/dist-esm/Interfaces/IMetricTelemetry.js +1 -1
  59. package/dist-esm/Interfaces/IPageViewPerformanceTelemetry.js +1 -1
  60. package/dist-esm/Interfaces/IPageViewTelemetry.js +1 -1
  61. package/dist-esm/Interfaces/IPartC.js +1 -1
  62. package/dist-esm/Interfaces/IPropertiesPlugin.js +1 -1
  63. package/dist-esm/Interfaces/IRequestContext.js +1 -1
  64. package/dist-esm/Interfaces/ITelemetryContext.js +1 -1
  65. package/dist-esm/Interfaces/ITraceTelemetry.js +1 -1
  66. package/dist-esm/Interfaces/PartAExtensions.js +2 -2
  67. package/dist-esm/Interfaces/PartAExtensions.js.map +1 -1
  68. package/dist-esm/Interfaces/Telemetry/IEnvelope.js +1 -1
  69. package/dist-esm/Interfaces/Telemetry/ISerializable.js +1 -1
  70. package/dist-esm/RequestResponseHeaders.js +1 -1
  71. package/dist-esm/StorageHelperFuncs.js +8 -8
  72. package/dist-esm/StorageHelperFuncs.js.map +1 -1
  73. package/dist-esm/Telemetry/Common/Data.js +6 -11
  74. package/dist-esm/Telemetry/Common/Data.js.map +1 -1
  75. package/dist-esm/Telemetry/Common/DataPoint.js +8 -9
  76. package/dist-esm/Telemetry/Common/DataPoint.js.map +1 -1
  77. package/dist-esm/Telemetry/Common/DataSanitizer.js +9 -9
  78. package/dist-esm/Telemetry/Common/DataSanitizer.js.map +1 -1
  79. package/dist-esm/Telemetry/Common/Envelope.js +12 -12
  80. package/dist-esm/Telemetry/Common/Envelope.js.map +1 -1
  81. package/dist-esm/Telemetry/Event.js +9 -12
  82. package/dist-esm/Telemetry/Event.js.map +1 -1
  83. package/dist-esm/Telemetry/Exception.js +74 -81
  84. package/dist-esm/Telemetry/Exception.js.map +1 -1
  85. package/dist-esm/Telemetry/Metric.js +9 -12
  86. package/dist-esm/Telemetry/Metric.js.map +1 -1
  87. package/dist-esm/Telemetry/PageView.js +12 -15
  88. package/dist-esm/Telemetry/PageView.js.map +1 -1
  89. package/dist-esm/Telemetry/PageViewPerformance.js +16 -19
  90. package/dist-esm/Telemetry/PageViewPerformance.js.map +1 -1
  91. package/dist-esm/Telemetry/RemoteDependencyData.js +17 -20
  92. package/dist-esm/Telemetry/RemoteDependencyData.js.map +1 -1
  93. package/dist-esm/Telemetry/Trace.js +10 -13
  94. package/dist-esm/Telemetry/Trace.js.map +1 -1
  95. package/dist-esm/TelemetryItemCreator.js +1 -1
  96. package/dist-esm/UrlHelperFuncs.js +1 -1
  97. package/dist-esm/Util.js +1 -1
  98. package/dist-esm/applicationinsights-common.js +3 -6
  99. package/dist-esm/applicationinsights-common.js.map +1 -1
  100. package/package.json +3 -3
  101. package/src/Interfaces/IExceptionTelemetry.ts +1 -1
  102. package/src/Interfaces/ITraceTelemetry.ts +1 -1
  103. package/src/Interfaces/PartAExtensions.ts +1 -1
  104. package/src/Interfaces/Telemetry/IEnvelope.ts +35 -3
  105. package/src/StorageHelperFuncs.ts +7 -7
  106. package/src/Telemetry/Common/Data.ts +12 -4
  107. package/src/Telemetry/Common/DataPoint.ts +38 -2
  108. package/src/Telemetry/Common/DataSanitizer.ts +10 -10
  109. package/src/Telemetry/Common/Envelope.ts +51 -10
  110. package/src/Telemetry/Event.ts +30 -12
  111. package/src/Telemetry/Exception.ts +158 -71
  112. package/src/Telemetry/Metric.ts +27 -7
  113. package/src/Telemetry/PageView.ts +45 -10
  114. package/src/Telemetry/PageViewPerformance.ts +76 -14
  115. package/src/Telemetry/RemoteDependencyData.ts +70 -15
  116. package/src/Telemetry/Trace.ts +34 -8
  117. package/src/applicationinsights-common.ts +5 -5
  118. package/types/Enums.d.ts +4 -4
  119. package/types/Interfaces/IExceptionTelemetry.d.ts +1 -1
  120. package/types/Interfaces/ITraceTelemetry.d.ts +1 -1
  121. package/types/Interfaces/PartAExtensions.d.ts +1 -1
  122. package/types/Interfaces/Telemetry/IEnvelope.d.ts +24 -0
  123. package/types/Telemetry/Common/Data.d.ts +10 -2
  124. package/types/Telemetry/Common/DataPoint.d.ts +31 -2
  125. package/types/Telemetry/Common/DataSanitizer.d.ts +3 -3
  126. package/types/Telemetry/Common/Envelope.d.ts +35 -4
  127. package/types/Telemetry/Event.d.ts +19 -3
  128. package/types/Telemetry/Exception.d.ts +75 -7
  129. package/types/Telemetry/Metric.d.ts +19 -2
  130. package/types/Telemetry/PageView.d.ts +30 -2
  131. package/types/Telemetry/PageViewPerformance.d.ts +50 -2
  132. package/types/Telemetry/RemoteDependencyData.d.ts +46 -2
  133. package/types/Telemetry/Trace.d.ts +23 -3
  134. package/types/applicationinsights-common.d.ts +5 -5
  135. package/types/tsdoc-metadata.json +1 -1
  136. package/dist-esm/Interfaces/Contracts/Generated/AvailabilityData.js +0 -27
  137. package/dist-esm/Interfaces/Contracts/Generated/AvailabilityData.js.map +0 -1
  138. package/dist-esm/Interfaces/Contracts/Generated/Base.js +0 -17
  139. package/dist-esm/Interfaces/Contracts/Generated/Base.js.map +0 -1
  140. package/dist-esm/Interfaces/Contracts/Generated/ContextTagKeys.js +0 -89
  141. package/dist-esm/Interfaces/Contracts/Generated/ContextTagKeys.js.map +0 -1
  142. package/dist-esm/Interfaces/Contracts/Generated/Data.js +0 -21
  143. package/dist-esm/Interfaces/Contracts/Generated/Data.js.map +0 -1
  144. package/dist-esm/Interfaces/Contracts/Generated/DataPoint.js +0 -21
  145. package/dist-esm/Interfaces/Contracts/Generated/DataPoint.js.map +0 -1
  146. package/dist-esm/Interfaces/Contracts/Generated/DataPointType.js +0 -16
  147. package/dist-esm/Interfaces/Contracts/Generated/DataPointType.js.map +0 -1
  148. package/dist-esm/Interfaces/Contracts/Generated/DependencyKind.js +0 -17
  149. package/dist-esm/Interfaces/Contracts/Generated/DependencyKind.js.map +0 -1
  150. package/dist-esm/Interfaces/Contracts/Generated/DependencySourceType.js +0 -17
  151. package/dist-esm/Interfaces/Contracts/Generated/DependencySourceType.js.map +0 -1
  152. package/dist-esm/Interfaces/Contracts/Generated/Domain.js +0 -8
  153. package/dist-esm/Interfaces/Contracts/Generated/Domain.js.map +0 -1
  154. package/dist-esm/Interfaces/Contracts/Generated/Envelope.js +0 -28
  155. package/dist-esm/Interfaces/Contracts/Generated/Envelope.js.map +0 -1
  156. package/dist-esm/Interfaces/Contracts/Generated/EventData.js +0 -28
  157. package/dist-esm/Interfaces/Contracts/Generated/EventData.js.map +0 -1
  158. package/dist-esm/Interfaces/Contracts/Generated/ExceptionData.js +0 -32
  159. package/dist-esm/Interfaces/Contracts/Generated/ExceptionData.js.map +0 -1
  160. package/dist-esm/Interfaces/Contracts/Generated/ExceptionDetails.js +0 -24
  161. package/dist-esm/Interfaces/Contracts/Generated/ExceptionDetails.js.map +0 -1
  162. package/dist-esm/Interfaces/Contracts/Generated/MessageData.js +0 -28
  163. package/dist-esm/Interfaces/Contracts/Generated/MessageData.js.map +0 -1
  164. package/dist-esm/Interfaces/Contracts/Generated/MetricData.js +0 -32
  165. package/dist-esm/Interfaces/Contracts/Generated/MetricData.js.map +0 -1
  166. package/dist-esm/Interfaces/Contracts/Generated/PageViewData.js +0 -34
  167. package/dist-esm/Interfaces/Contracts/Generated/PageViewData.js.map +0 -1
  168. package/dist-esm/Interfaces/Contracts/Generated/PageViewPerfData.js +0 -34
  169. package/dist-esm/Interfaces/Contracts/Generated/PageViewPerfData.js.map +0 -1
  170. package/dist-esm/Interfaces/Contracts/Generated/RemoteDependencyData.js +0 -32
  171. package/dist-esm/Interfaces/Contracts/Generated/RemoteDependencyData.js.map +0 -1
  172. package/dist-esm/Interfaces/Contracts/Generated/RequestData.js +0 -28
  173. package/dist-esm/Interfaces/Contracts/Generated/RequestData.js.map +0 -1
  174. package/dist-esm/Interfaces/Contracts/Generated/SeverityLevel.js +0 -19
  175. package/dist-esm/Interfaces/Contracts/Generated/SeverityLevel.js.map +0 -1
  176. package/dist-esm/Interfaces/Contracts/Generated/StackFrame.js +0 -17
  177. package/dist-esm/Interfaces/Contracts/Generated/StackFrame.js.map +0 -1
  178. package/dist-esm/Telemetry/Common/Base.js +0 -22
  179. package/dist-esm/Telemetry/Common/Base.js.map +0 -1
  180. package/src/Interfaces/Contracts/Generated/AvailabilityData.ts +0 -57
  181. package/src/Interfaces/Contracts/Generated/Base.ts +0 -18
  182. package/src/Interfaces/Contracts/Generated/ContextTagKeys.ts +0 -299
  183. package/src/Interfaces/Contracts/Generated/Data.ts +0 -26
  184. package/src/Interfaces/Contracts/Generated/DataPoint.ts +0 -44
  185. package/src/Interfaces/Contracts/Generated/DataPointType.ts +0 -11
  186. package/src/Interfaces/Contracts/Generated/DependencyKind.ts +0 -12
  187. package/src/Interfaces/Contracts/Generated/DependencySourceType.ts +0 -12
  188. package/src/Interfaces/Contracts/Generated/Domain.ts +0 -10
  189. package/src/Interfaces/Contracts/Generated/Envelope.ts +0 -50
  190. package/src/Interfaces/Contracts/Generated/EventData.ts +0 -33
  191. package/src/Interfaces/Contracts/Generated/ExceptionData.ts +0 -40
  192. package/src/Interfaces/Contracts/Generated/ExceptionDetails.ts +0 -46
  193. package/src/Interfaces/Contracts/Generated/MessageData.ts +0 -39
  194. package/src/Interfaces/Contracts/Generated/MetricData.ts +0 -34
  195. package/src/Interfaces/Contracts/Generated/PageViewData.ts +0 -50
  196. package/src/Interfaces/Contracts/Generated/PageViewPerfData.ts +0 -70
  197. package/src/Interfaces/Contracts/Generated/RemoteDependencyData.ts +0 -68
  198. package/src/Interfaces/Contracts/Generated/RequestData.ts +0 -50
  199. package/src/Interfaces/Contracts/Generated/SeverityLevel.ts +0 -15
  200. package/src/Interfaces/Contracts/Generated/StackFrame.ts +0 -34
  201. package/src/Telemetry/Common/Base.ts +0 -14
  202. package/types/Interfaces/Contracts/Generated/AvailabilityData.d.ts +0 -42
  203. package/types/Interfaces/Contracts/Generated/Base.d.ts +0 -10
  204. package/types/Interfaces/Contracts/Generated/ContextTagKeys.d.ts +0 -175
  205. package/types/Interfaces/Contracts/Generated/Data.d.ts +0 -15
  206. package/types/Interfaces/Contracts/Generated/DataPoint.d.ts +0 -34
  207. package/types/Interfaces/Contracts/Generated/DataPointType.d.ts +0 -7
  208. package/types/Interfaces/Contracts/Generated/DependencyKind.d.ts +0 -8
  209. package/types/Interfaces/Contracts/Generated/DependencySourceType.d.ts +0 -8
  210. package/types/Interfaces/Contracts/Generated/Domain.d.ts +0 -5
  211. package/types/Interfaces/Contracts/Generated/Envelope.d.ts +0 -38
  212. package/types/Interfaces/Contracts/Generated/EventData.d.ts +0 -23
  213. package/types/Interfaces/Contracts/Generated/ExceptionData.d.ts +0 -29
  214. package/types/Interfaces/Contracts/Generated/ExceptionDetails.d.ts +0 -34
  215. package/types/Interfaces/Contracts/Generated/MessageData.d.ts +0 -28
  216. package/types/Interfaces/Contracts/Generated/MetricData.d.ts +0 -24
  217. package/types/Interfaces/Contracts/Generated/PageViewData.d.ts +0 -35
  218. package/types/Interfaces/Contracts/Generated/PageViewPerfData.d.ts +0 -51
  219. package/types/Interfaces/Contracts/Generated/RemoteDependencyData.d.ts +0 -51
  220. package/types/Interfaces/Contracts/Generated/RequestData.d.ts +0 -38
  221. package/types/Interfaces/Contracts/Generated/SeverityLevel.d.ts +0 -10
  222. package/types/Interfaces/Contracts/Generated/StackFrame.d.ts +0 -25
  223. package/types/Telemetry/Common/Base.d.ts +0 -8
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Application Insights JavaScript SDK - Common, 2.8.0-beta.2203-16
2
+ * Application Insights JavaScript SDK - Common, 2.8.0-nightly.2204-05
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  (function (global, factory) {
@@ -98,247 +98,6 @@
98
98
  d[strShimPrototype] = b === null ? objCreateFn(b) : (__[strShimPrototype] = b[strShimPrototype], new __());
99
99
  }
100
100
 
101
- /*!
102
- * Microsoft Dynamic Proto Utility, 1.1.4
103
- * Copyright (c) Microsoft and contributors. All rights reserved.
104
- */
105
- var Constructor = 'constructor';
106
- var Prototype = 'prototype';
107
- var strFunction = 'function';
108
- var DynInstFuncTable = '_dynInstFuncs';
109
- var DynProxyTag = '_isDynProxy';
110
- var DynClassName = '_dynClass';
111
- var DynClassNamePrefix = '_dynCls$';
112
- var DynInstChkTag = '_dynInstChk';
113
- var DynAllowInstChkTag = DynInstChkTag;
114
- var DynProtoDefaultOptions = '_dfOpts';
115
- var UnknownValue = '_unknown_';
116
- var str__Proto = "__proto__";
117
- var strUseBaseInst = 'useBaseInst';
118
- var strSetInstFuncs = 'setInstFuncs';
119
- var Obj = Object;
120
- var _objGetPrototypeOf = Obj["getPrototypeOf"];
121
- var _dynamicNames = 0;
122
- function _hasOwnProperty(obj, prop) {
123
- return obj && Obj[Prototype].hasOwnProperty.call(obj, prop);
124
- }
125
- function _isObjectOrArrayPrototype(target) {
126
- return target && (target === Obj[Prototype] || target === Array[Prototype]);
127
- }
128
- function _isObjectArrayOrFunctionPrototype(target) {
129
- return _isObjectOrArrayPrototype(target) || target === Function[Prototype];
130
- }
131
- function _getObjProto(target) {
132
- if (target) {
133
- if (_objGetPrototypeOf) {
134
- return _objGetPrototypeOf(target);
135
- }
136
- var newProto = target[str__Proto] || target[Prototype] || (target[Constructor] ? target[Constructor][Prototype] : null);
137
- if (newProto) {
138
- return newProto;
139
- }
140
- }
141
- return null;
142
- }
143
- function _forEachProp(target, func) {
144
- var props = [];
145
- var getOwnProps = Obj["getOwnPropertyNames"];
146
- if (getOwnProps) {
147
- props = getOwnProps(target);
148
- }
149
- else {
150
- for (var name_1 in target) {
151
- if (typeof name_1 === "string" && _hasOwnProperty(target, name_1)) {
152
- props.push(name_1);
153
- }
154
- }
155
- }
156
- if (props && props.length > 0) {
157
- for (var lp = 0; lp < props.length; lp++) {
158
- func(props[lp]);
159
- }
160
- }
161
- }
162
- function _isDynamicCandidate(target, funcName, skipOwn) {
163
- return (funcName !== Constructor && typeof target[funcName] === strFunction && (skipOwn || _hasOwnProperty(target, funcName)));
164
- }
165
- function _throwTypeError(message) {
166
- throw new TypeError("DynamicProto: " + message);
167
- }
168
- function _getInstanceFuncs(thisTarget) {
169
- var instFuncs = {};
170
- _forEachProp(thisTarget, function (name) {
171
- if (!instFuncs[name] && _isDynamicCandidate(thisTarget, name, false)) {
172
- instFuncs[name] = thisTarget[name];
173
- }
174
- });
175
- return instFuncs;
176
- }
177
- function _hasVisited(values, value) {
178
- for (var lp = values.length - 1; lp >= 0; lp--) {
179
- if (values[lp] === value) {
180
- return true;
181
- }
182
- }
183
- return false;
184
- }
185
- function _getBaseFuncs(classProto, thisTarget, instFuncs, useBaseInst) {
186
- function _instFuncProxy(target, funcHost, funcName) {
187
- var theFunc = funcHost[funcName];
188
- if (theFunc[DynProxyTag] && useBaseInst) {
189
- var instFuncTable = target[DynInstFuncTable] || {};
190
- if (instFuncTable[DynAllowInstChkTag] !== false) {
191
- theFunc = (instFuncTable[funcHost[DynClassName]] || {})[funcName] || theFunc;
192
- }
193
- }
194
- return function () {
195
- return theFunc.apply(target, arguments);
196
- };
197
- }
198
- var baseFuncs = {};
199
- _forEachProp(instFuncs, function (name) {
200
- baseFuncs[name] = _instFuncProxy(thisTarget, instFuncs, name);
201
- });
202
- var baseProto = _getObjProto(classProto);
203
- var visited = [];
204
- while (baseProto && !_isObjectArrayOrFunctionPrototype(baseProto) && !_hasVisited(visited, baseProto)) {
205
- _forEachProp(baseProto, function (name) {
206
- if (!baseFuncs[name] && _isDynamicCandidate(baseProto, name, !_objGetPrototypeOf)) {
207
- baseFuncs[name] = _instFuncProxy(thisTarget, baseProto, name);
208
- }
209
- });
210
- visited.push(baseProto);
211
- baseProto = _getObjProto(baseProto);
212
- }
213
- return baseFuncs;
214
- }
215
- function _getInstFunc(target, funcName, proto, currentDynProtoProxy) {
216
- var instFunc = null;
217
- if (target && _hasOwnProperty(proto, DynClassName)) {
218
- var instFuncTable = target[DynInstFuncTable] || {};
219
- instFunc = (instFuncTable[proto[DynClassName]] || {})[funcName];
220
- if (!instFunc) {
221
- _throwTypeError("Missing [" + funcName + "] " + strFunction);
222
- }
223
- if (!instFunc[DynInstChkTag] && instFuncTable[DynAllowInstChkTag] !== false) {
224
- var canAddInst = !_hasOwnProperty(target, funcName);
225
- var objProto = _getObjProto(target);
226
- var visited = [];
227
- while (canAddInst && objProto && !_isObjectArrayOrFunctionPrototype(objProto) && !_hasVisited(visited, objProto)) {
228
- var protoFunc = objProto[funcName];
229
- if (protoFunc) {
230
- canAddInst = (protoFunc === currentDynProtoProxy);
231
- break;
232
- }
233
- visited.push(objProto);
234
- objProto = _getObjProto(objProto);
235
- }
236
- try {
237
- if (canAddInst) {
238
- target[funcName] = instFunc;
239
- }
240
- instFunc[DynInstChkTag] = 1;
241
- }
242
- catch (e) {
243
- instFuncTable[DynAllowInstChkTag] = false;
244
- }
245
- }
246
- }
247
- return instFunc;
248
- }
249
- function _getProtoFunc(funcName, proto, currentDynProtoProxy) {
250
- var protoFunc = proto[funcName];
251
- if (protoFunc === currentDynProtoProxy) {
252
- protoFunc = _getObjProto(proto)[funcName];
253
- }
254
- if (typeof protoFunc !== strFunction) {
255
- _throwTypeError("[" + funcName + "] is not a " + strFunction);
256
- }
257
- return protoFunc;
258
- }
259
- function _populatePrototype(proto, className, target, baseInstFuncs, setInstanceFunc) {
260
- function _createDynamicPrototype(proto, funcName) {
261
- var dynProtoProxy = function () {
262
- var instFunc = _getInstFunc(this, funcName, proto, dynProtoProxy) || _getProtoFunc(funcName, proto, dynProtoProxy);
263
- return instFunc.apply(this, arguments);
264
- };
265
- dynProtoProxy[DynProxyTag] = 1;
266
- return dynProtoProxy;
267
- }
268
- if (!_isObjectOrArrayPrototype(proto)) {
269
- var instFuncTable = target[DynInstFuncTable] = target[DynInstFuncTable] || {};
270
- var instFuncs_1 = instFuncTable[className] = (instFuncTable[className] || {});
271
- if (instFuncTable[DynAllowInstChkTag] !== false) {
272
- instFuncTable[DynAllowInstChkTag] = !!setInstanceFunc;
273
- }
274
- _forEachProp(target, function (name) {
275
- if (_isDynamicCandidate(target, name, false) && target[name] !== baseInstFuncs[name]) {
276
- instFuncs_1[name] = target[name];
277
- delete target[name];
278
- if (!_hasOwnProperty(proto, name) || (proto[name] && !proto[name][DynProxyTag])) {
279
- proto[name] = _createDynamicPrototype(proto, name);
280
- }
281
- }
282
- });
283
- }
284
- }
285
- function _checkPrototype(classProto, thisTarget) {
286
- if (_objGetPrototypeOf) {
287
- var visited = [];
288
- var thisProto = _getObjProto(thisTarget);
289
- while (thisProto && !_isObjectArrayOrFunctionPrototype(thisProto) && !_hasVisited(visited, thisProto)) {
290
- if (thisProto === classProto) {
291
- return true;
292
- }
293
- visited.push(thisProto);
294
- thisProto = _getObjProto(thisProto);
295
- }
296
- }
297
- return false;
298
- }
299
- function _getObjName(target, unknownValue) {
300
- if (_hasOwnProperty(target, Prototype)) {
301
- return target.name || unknownValue || UnknownValue;
302
- }
303
- return (((target || {})[Constructor]) || {}).name || unknownValue || UnknownValue;
304
- }
305
- function dynamicProto(theClass, target, delegateFunc, options) {
306
- if (!_hasOwnProperty(theClass, Prototype)) {
307
- _throwTypeError("theClass is an invalid class definition.");
308
- }
309
- var classProto = theClass[Prototype];
310
- if (!_checkPrototype(classProto, target)) {
311
- _throwTypeError("[" + _getObjName(theClass) + "] is not in class hierarchy of [" + _getObjName(target) + "]");
312
- }
313
- var className = null;
314
- if (_hasOwnProperty(classProto, DynClassName)) {
315
- className = classProto[DynClassName];
316
- }
317
- else {
318
- className = DynClassNamePrefix + _getObjName(theClass, "_") + "$" + _dynamicNames;
319
- _dynamicNames++;
320
- classProto[DynClassName] = className;
321
- }
322
- var perfOptions = dynamicProto[DynProtoDefaultOptions];
323
- var useBaseInst = !!perfOptions[strUseBaseInst];
324
- if (useBaseInst && options && options[strUseBaseInst] !== undefined) {
325
- useBaseInst = !!options[strUseBaseInst];
326
- }
327
- var instFuncs = _getInstanceFuncs(target);
328
- var baseFuncs = _getBaseFuncs(classProto, target, instFuncs, useBaseInst);
329
- delegateFunc(target, baseFuncs);
330
- var setInstanceFunc = !!_objGetPrototypeOf && !!perfOptions[strSetInstFuncs];
331
- if (setInstanceFunc && options) {
332
- setInstanceFunc = !!options[strSetInstFuncs];
333
- }
334
- _populatePrototype(classProto, className, target, instFuncs, setInstanceFunc !== false);
335
- }
336
- var perfDefaults = {
337
- setInstFuncs: true,
338
- useBaseInst: true
339
- };
340
- dynamicProto[DynProtoDefaultOptions] = perfDefaults;
341
-
342
101
  var strEmpty$1 = "";
343
102
 
344
103
  var strToISOString = "toISOString";
@@ -549,131 +308,377 @@
549
308
  }
550
309
  value = arr[lp++];
551
310
  }
552
- while (lp < len) {
553
- if (lp in arr) {
554
- value = callbackfn(value, arr[lp], lp, arr);
311
+ while (lp < len) {
312
+ if (lp in arr) {
313
+ value = callbackfn(value, arr[lp], lp, arr);
314
+ }
315
+ lp++;
316
+ }
317
+ }
318
+ return value;
319
+ }
320
+ function strTrim(str) {
321
+ if (str) {
322
+ str = (_strTrim && str[cStrTrim]) ? str[cStrTrim]() : (str.replace ? str.replace(/^\s+|\s+$/g, "") : str);
323
+ }
324
+ return str;
325
+ }
326
+ var _objKeysHasDontEnumBug = !({ toString: null }).propertyIsEnumerable("toString");
327
+ var _objKeysDontEnums = [
328
+ "toString",
329
+ "toLocaleString",
330
+ "valueOf",
331
+ "hasOwnProperty",
332
+ "isPrototypeOf",
333
+ "propertyIsEnumerable",
334
+ "constructor"
335
+ ];
336
+ function objKeys(obj) {
337
+ var objType = typeof obj;
338
+ if (objType !== strShimFunction && (objType !== strShimObject || obj === null)) {
339
+ throwTypeError("objKeys called on non-object");
340
+ }
341
+ if (!_objKeysHasDontEnumBug && _objKeys) {
342
+ return _objKeys(obj);
343
+ }
344
+ var result = [];
345
+ for (var prop in obj) {
346
+ if (obj && ObjHasOwnProperty.call(obj, prop)) {
347
+ result.push(prop);
348
+ }
349
+ }
350
+ if (_objKeysHasDontEnumBug) {
351
+ var dontEnumsLength = _objKeysDontEnums.length;
352
+ for (var lp = 0; lp < dontEnumsLength; lp++) {
353
+ if (obj && ObjHasOwnProperty.call(obj, _objKeysDontEnums[lp])) {
354
+ result.push(_objKeysDontEnums[lp]);
355
+ }
356
+ }
357
+ }
358
+ return result;
359
+ }
360
+ function objDefineAccessors(target, prop, getProp, setProp) {
361
+ if (_objDefineProperty$1) {
362
+ try {
363
+ var descriptor = {
364
+ enumerable: true,
365
+ configurable: true
366
+ };
367
+ if (getProp) {
368
+ descriptor.get = getProp;
369
+ }
370
+ if (setProp) {
371
+ descriptor.set = setProp;
372
+ }
373
+ _objDefineProperty$1(target, prop, descriptor);
374
+ return true;
375
+ }
376
+ catch (e) {
377
+ }
378
+ }
379
+ return false;
380
+ }
381
+ function _doNothing(value) {
382
+ return value;
383
+ }
384
+ function deepFreeze(obj) {
385
+ if (_objFreeze) {
386
+ objForEachKey(obj, function (name, value) {
387
+ if (isArray(value) || isObject(value)) {
388
+ _objFreeze(value);
389
+ }
390
+ });
391
+ }
392
+ return objFreeze(obj);
393
+ }
394
+ var objFreeze = _objFreeze || _doNothing;
395
+ function dateNow() {
396
+ var dt = Date;
397
+ return dt.now ? dt.now() : new dt().getTime();
398
+ }
399
+ function getExceptionName(object) {
400
+ if (isError(object)) {
401
+ return object.name;
402
+ }
403
+ return strEmpty$1;
404
+ }
405
+ function setValue(target, field, value, valChk, srcChk) {
406
+ var theValue = value;
407
+ if (target) {
408
+ theValue = target[field];
409
+ if (theValue !== value && (!srcChk || srcChk(theValue)) && (!valChk || valChk(value))) {
410
+ theValue = value;
411
+ target[field] = theValue;
412
+ }
413
+ }
414
+ return theValue;
415
+ }
416
+ function isTruthy(value) {
417
+ return !!value;
418
+ }
419
+ function createClassFromInterface(defaults) {
420
+ return /** @class */ (function () {
421
+ function class_1() {
422
+ var _this_1 = this;
423
+ if (defaults) {
424
+ objForEachKey(defaults, function (field, value) {
425
+ _this_1[field] = value;
426
+ });
427
+ }
428
+ }
429
+ return class_1;
430
+ }());
431
+ }
432
+
433
+ function createEnumStyle(values) {
434
+ var enumClass = {};
435
+ objForEachKey(values, function (field, value) {
436
+ enumClass[field] = value;
437
+ enumClass[value] = field;
438
+ });
439
+ return deepFreeze(enumClass);
440
+ }
441
+
442
+ /*!
443
+ * Microsoft Dynamic Proto Utility, 1.1.4
444
+ * Copyright (c) Microsoft and contributors. All rights reserved.
445
+ */
446
+ var Constructor = 'constructor';
447
+ var Prototype = 'prototype';
448
+ var strFunction = 'function';
449
+ var DynInstFuncTable = '_dynInstFuncs';
450
+ var DynProxyTag = '_isDynProxy';
451
+ var DynClassName = '_dynClass';
452
+ var DynClassNamePrefix = '_dynCls$';
453
+ var DynInstChkTag = '_dynInstChk';
454
+ var DynAllowInstChkTag = DynInstChkTag;
455
+ var DynProtoDefaultOptions = '_dfOpts';
456
+ var UnknownValue = '_unknown_';
457
+ var str__Proto = "__proto__";
458
+ var strUseBaseInst = 'useBaseInst';
459
+ var strSetInstFuncs = 'setInstFuncs';
460
+ var Obj = Object;
461
+ var _objGetPrototypeOf = Obj["getPrototypeOf"];
462
+ var _dynamicNames = 0;
463
+ function _hasOwnProperty(obj, prop) {
464
+ return obj && Obj[Prototype].hasOwnProperty.call(obj, prop);
465
+ }
466
+ function _isObjectOrArrayPrototype(target) {
467
+ return target && (target === Obj[Prototype] || target === Array[Prototype]);
468
+ }
469
+ function _isObjectArrayOrFunctionPrototype(target) {
470
+ return _isObjectOrArrayPrototype(target) || target === Function[Prototype];
471
+ }
472
+ function _getObjProto(target) {
473
+ if (target) {
474
+ if (_objGetPrototypeOf) {
475
+ return _objGetPrototypeOf(target);
476
+ }
477
+ var newProto = target[str__Proto] || target[Prototype] || (target[Constructor] ? target[Constructor][Prototype] : null);
478
+ if (newProto) {
479
+ return newProto;
480
+ }
481
+ }
482
+ return null;
483
+ }
484
+ function _forEachProp(target, func) {
485
+ var props = [];
486
+ var getOwnProps = Obj["getOwnPropertyNames"];
487
+ if (getOwnProps) {
488
+ props = getOwnProps(target);
489
+ }
490
+ else {
491
+ for (var name_1 in target) {
492
+ if (typeof name_1 === "string" && _hasOwnProperty(target, name_1)) {
493
+ props.push(name_1);
494
+ }
495
+ }
496
+ }
497
+ if (props && props.length > 0) {
498
+ for (var lp = 0; lp < props.length; lp++) {
499
+ func(props[lp]);
500
+ }
501
+ }
502
+ }
503
+ function _isDynamicCandidate(target, funcName, skipOwn) {
504
+ return (funcName !== Constructor && typeof target[funcName] === strFunction && (skipOwn || _hasOwnProperty(target, funcName)));
505
+ }
506
+ function _throwTypeError(message) {
507
+ throw new TypeError("DynamicProto: " + message);
508
+ }
509
+ function _getInstanceFuncs(thisTarget) {
510
+ var instFuncs = {};
511
+ _forEachProp(thisTarget, function (name) {
512
+ if (!instFuncs[name] && _isDynamicCandidate(thisTarget, name, false)) {
513
+ instFuncs[name] = thisTarget[name];
514
+ }
515
+ });
516
+ return instFuncs;
517
+ }
518
+ function _hasVisited(values, value) {
519
+ for (var lp = values.length - 1; lp >= 0; lp--) {
520
+ if (values[lp] === value) {
521
+ return true;
522
+ }
523
+ }
524
+ return false;
525
+ }
526
+ function _getBaseFuncs(classProto, thisTarget, instFuncs, useBaseInst) {
527
+ function _instFuncProxy(target, funcHost, funcName) {
528
+ var theFunc = funcHost[funcName];
529
+ if (theFunc[DynProxyTag] && useBaseInst) {
530
+ var instFuncTable = target[DynInstFuncTable] || {};
531
+ if (instFuncTable[DynAllowInstChkTag] !== false) {
532
+ theFunc = (instFuncTable[funcHost[DynClassName]] || {})[funcName] || theFunc;
533
+ }
534
+ }
535
+ return function () {
536
+ return theFunc.apply(target, arguments);
537
+ };
538
+ }
539
+ var baseFuncs = {};
540
+ _forEachProp(instFuncs, function (name) {
541
+ baseFuncs[name] = _instFuncProxy(thisTarget, instFuncs, name);
542
+ });
543
+ var baseProto = _getObjProto(classProto);
544
+ var visited = [];
545
+ while (baseProto && !_isObjectArrayOrFunctionPrototype(baseProto) && !_hasVisited(visited, baseProto)) {
546
+ _forEachProp(baseProto, function (name) {
547
+ if (!baseFuncs[name] && _isDynamicCandidate(baseProto, name, !_objGetPrototypeOf)) {
548
+ baseFuncs[name] = _instFuncProxy(thisTarget, baseProto, name);
549
+ }
550
+ });
551
+ visited.push(baseProto);
552
+ baseProto = _getObjProto(baseProto);
553
+ }
554
+ return baseFuncs;
555
+ }
556
+ function _getInstFunc(target, funcName, proto, currentDynProtoProxy) {
557
+ var instFunc = null;
558
+ if (target && _hasOwnProperty(proto, DynClassName)) {
559
+ var instFuncTable = target[DynInstFuncTable] || {};
560
+ instFunc = (instFuncTable[proto[DynClassName]] || {})[funcName];
561
+ if (!instFunc) {
562
+ _throwTypeError("Missing [" + funcName + "] " + strFunction);
563
+ }
564
+ if (!instFunc[DynInstChkTag] && instFuncTable[DynAllowInstChkTag] !== false) {
565
+ var canAddInst = !_hasOwnProperty(target, funcName);
566
+ var objProto = _getObjProto(target);
567
+ var visited = [];
568
+ while (canAddInst && objProto && !_isObjectArrayOrFunctionPrototype(objProto) && !_hasVisited(visited, objProto)) {
569
+ var protoFunc = objProto[funcName];
570
+ if (protoFunc) {
571
+ canAddInst = (protoFunc === currentDynProtoProxy);
572
+ break;
573
+ }
574
+ visited.push(objProto);
575
+ objProto = _getObjProto(objProto);
576
+ }
577
+ try {
578
+ if (canAddInst) {
579
+ target[funcName] = instFunc;
580
+ }
581
+ instFunc[DynInstChkTag] = 1;
582
+ }
583
+ catch (e) {
584
+ instFuncTable[DynAllowInstChkTag] = false;
555
585
  }
556
- lp++;
557
586
  }
558
587
  }
559
- return value;
588
+ return instFunc;
560
589
  }
561
- function strTrim(str) {
562
- if (str) {
563
- str = (_strTrim && str[cStrTrim]) ? str[cStrTrim]() : (str.replace ? str.replace(/^\s+|\s+$/g, "") : str);
590
+ function _getProtoFunc(funcName, proto, currentDynProtoProxy) {
591
+ var protoFunc = proto[funcName];
592
+ if (protoFunc === currentDynProtoProxy) {
593
+ protoFunc = _getObjProto(proto)[funcName];
564
594
  }
565
- return str;
566
- }
567
- var _objKeysHasDontEnumBug = !({ toString: null }).propertyIsEnumerable("toString");
568
- var _objKeysDontEnums = [
569
- "toString",
570
- "toLocaleString",
571
- "valueOf",
572
- "hasOwnProperty",
573
- "isPrototypeOf",
574
- "propertyIsEnumerable",
575
- "constructor"
576
- ];
577
- function objKeys(obj) {
578
- var objType = typeof obj;
579
- if (objType !== strShimFunction && (objType !== strShimObject || obj === null)) {
580
- throwTypeError("objKeys called on non-object");
595
+ if (typeof protoFunc !== strFunction) {
596
+ _throwTypeError("[" + funcName + "] is not a " + strFunction);
581
597
  }
582
- if (!_objKeysHasDontEnumBug && _objKeys) {
583
- return _objKeys(obj);
598
+ return protoFunc;
599
+ }
600
+ function _populatePrototype(proto, className, target, baseInstFuncs, setInstanceFunc) {
601
+ function _createDynamicPrototype(proto, funcName) {
602
+ var dynProtoProxy = function () {
603
+ var instFunc = _getInstFunc(this, funcName, proto, dynProtoProxy) || _getProtoFunc(funcName, proto, dynProtoProxy);
604
+ return instFunc.apply(this, arguments);
605
+ };
606
+ dynProtoProxy[DynProxyTag] = 1;
607
+ return dynProtoProxy;
584
608
  }
585
- var result = [];
586
- for (var prop in obj) {
587
- if (obj && ObjHasOwnProperty.call(obj, prop)) {
588
- result.push(prop);
609
+ if (!_isObjectOrArrayPrototype(proto)) {
610
+ var instFuncTable = target[DynInstFuncTable] = target[DynInstFuncTable] || {};
611
+ var instFuncs_1 = instFuncTable[className] = (instFuncTable[className] || {});
612
+ if (instFuncTable[DynAllowInstChkTag] !== false) {
613
+ instFuncTable[DynAllowInstChkTag] = !!setInstanceFunc;
589
614
  }
590
- }
591
- if (_objKeysHasDontEnumBug) {
592
- var dontEnumsLength = _objKeysDontEnums.length;
593
- for (var lp = 0; lp < dontEnumsLength; lp++) {
594
- if (obj && ObjHasOwnProperty.call(obj, _objKeysDontEnums[lp])) {
595
- result.push(_objKeysDontEnums[lp]);
615
+ _forEachProp(target, function (name) {
616
+ if (_isDynamicCandidate(target, name, false) && target[name] !== baseInstFuncs[name]) {
617
+ instFuncs_1[name] = target[name];
618
+ delete target[name];
619
+ if (!_hasOwnProperty(proto, name) || (proto[name] && !proto[name][DynProxyTag])) {
620
+ proto[name] = _createDynamicPrototype(proto, name);
621
+ }
596
622
  }
597
- }
623
+ });
598
624
  }
599
- return result;
600
625
  }
601
- function objDefineAccessors(target, prop, getProp, setProp) {
602
- if (_objDefineProperty$1) {
603
- try {
604
- var descriptor = {
605
- enumerable: true,
606
- configurable: true
607
- };
608
- if (getProp) {
609
- descriptor.get = getProp;
610
- }
611
- if (setProp) {
612
- descriptor.set = setProp;
626
+ function _checkPrototype(classProto, thisTarget) {
627
+ if (_objGetPrototypeOf) {
628
+ var visited = [];
629
+ var thisProto = _getObjProto(thisTarget);
630
+ while (thisProto && !_isObjectArrayOrFunctionPrototype(thisProto) && !_hasVisited(visited, thisProto)) {
631
+ if (thisProto === classProto) {
632
+ return true;
613
633
  }
614
- _objDefineProperty$1(target, prop, descriptor);
615
- return true;
616
- }
617
- catch (e) {
634
+ visited.push(thisProto);
635
+ thisProto = _getObjProto(thisProto);
618
636
  }
619
637
  }
620
638
  return false;
621
639
  }
622
- function _doNothing(value) {
623
- return value;
624
- }
625
- var objFreeze = _objFreeze || _doNothing;
626
- function dateNow() {
627
- var dt = Date;
628
- return dt.now ? dt.now() : new dt().getTime();
629
- }
630
- function getExceptionName(object) {
631
- if (isError(object)) {
632
- return object.name;
640
+ function _getObjName(target, unknownValue) {
641
+ if (_hasOwnProperty(target, Prototype)) {
642
+ return target.name || unknownValue || UnknownValue;
633
643
  }
634
- return strEmpty$1;
644
+ return (((target || {})[Constructor]) || {}).name || unknownValue || UnknownValue;
635
645
  }
636
- function setValue(target, field, value, valChk, srcChk) {
637
- var theValue = value;
638
- if (target) {
639
- theValue = target[field];
640
- if (theValue !== value && (!srcChk || srcChk(theValue)) && (!valChk || valChk(value))) {
641
- theValue = value;
642
- target[field] = theValue;
643
- }
646
+ function dynamicProto(theClass, target, delegateFunc, options) {
647
+ if (!_hasOwnProperty(theClass, Prototype)) {
648
+ _throwTypeError("theClass is an invalid class definition.");
644
649
  }
645
- return theValue;
646
- }
647
- function isTruthy(value) {
648
- return !!value;
649
- }
650
- function throwError(message) {
651
- throw new Error(message);
652
- }
653
- function createClassFromInterface(defaults) {
654
- return /** @class */ (function () {
655
- function class_1() {
656
- var _this_1 = this;
657
- if (defaults) {
658
- objForEachKey(defaults, function (field, value) {
659
- _this_1[field] = value;
660
- });
661
- }
662
- }
663
- return class_1;
664
- }());
665
- }
666
- function createEnumStyle(values) {
667
- var enumClass = {};
668
- objForEachKey(values, function (field, value) {
669
- enumClass[field] = value;
670
- if (!isUndefined(enumClass[value])) {
671
- throwError("[" + value + "] exists for " + field);
672
- }
673
- enumClass[value] = field;
674
- });
675
- return objFreeze(enumClass);
650
+ var classProto = theClass[Prototype];
651
+ if (!_checkPrototype(classProto, target)) {
652
+ _throwTypeError("[" + _getObjName(theClass) + "] is not in class hierarchy of [" + _getObjName(target) + "]");
653
+ }
654
+ var className = null;
655
+ if (_hasOwnProperty(classProto, DynClassName)) {
656
+ className = classProto[DynClassName];
657
+ }
658
+ else {
659
+ className = DynClassNamePrefix + _getObjName(theClass, "_") + "$" + _dynamicNames;
660
+ _dynamicNames++;
661
+ classProto[DynClassName] = className;
662
+ }
663
+ var perfOptions = dynamicProto[DynProtoDefaultOptions];
664
+ var useBaseInst = !!perfOptions[strUseBaseInst];
665
+ if (useBaseInst && options && options[strUseBaseInst] !== undefined) {
666
+ useBaseInst = !!options[strUseBaseInst];
667
+ }
668
+ var instFuncs = _getInstanceFuncs(target);
669
+ var baseFuncs = _getBaseFuncs(classProto, target, instFuncs, useBaseInst);
670
+ delegateFunc(target, baseFuncs);
671
+ var setInstanceFunc = !!_objGetPrototypeOf && !!perfOptions[strSetInstFuncs];
672
+ if (setInstanceFunc && options) {
673
+ setInstanceFunc = !!options[strSetInstFuncs];
674
+ }
675
+ _populatePrototype(classProto, className, target, instFuncs, setInstanceFunc !== false);
676
676
  }
677
+ var perfDefaults = {
678
+ setInstFuncs: true,
679
+ useBaseInst: true
680
+ };
681
+ dynamicProto[DynProtoDefaultOptions] = perfDefaults;
677
682
 
678
683
  var strWindow = "window";
679
684
  var strDocument = "document";
@@ -1062,7 +1067,7 @@
1062
1067
  }
1063
1068
 
1064
1069
  var _objDefineProperty = ObjDefineProperty;
1065
- var version = "2.8.0-beta.2203-16";
1070
+ var version = "2.8.0-nightly.2204-05";
1066
1071
  var instanceName = "." + newId(6);
1067
1072
  var _dataUid = 0;
1068
1073
  function _createAccessor(target, prop, value) {
@@ -1585,95 +1590,6 @@
1585
1590
  return _legacyCookieMgr(null, logger).del(name);
1586
1591
  }
1587
1592
 
1588
- createEnumStyle({
1589
- CRITICAL: 1 ,
1590
- WARNING: 2
1591
- });
1592
- var _InternalMessageId = createEnumStyle({
1593
- BrowserDoesNotSupportLocalStorage: 0 ,
1594
- BrowserCannotReadLocalStorage: 1 ,
1595
- BrowserCannotReadSessionStorage: 2 ,
1596
- BrowserCannotWriteLocalStorage: 3 ,
1597
- BrowserCannotWriteSessionStorage: 4 ,
1598
- BrowserFailedRemovalFromLocalStorage: 5 ,
1599
- BrowserFailedRemovalFromSessionStorage: 6 ,
1600
- CannotSendEmptyTelemetry: 7 ,
1601
- ClientPerformanceMathError: 8 ,
1602
- ErrorParsingAISessionCookie: 9 ,
1603
- ErrorPVCalc: 10 ,
1604
- ExceptionWhileLoggingError: 11 ,
1605
- FailedAddingTelemetryToBuffer: 12 ,
1606
- FailedMonitorAjaxAbort: 13 ,
1607
- FailedMonitorAjaxDur: 14 ,
1608
- FailedMonitorAjaxOpen: 15 ,
1609
- FailedMonitorAjaxRSC: 16 ,
1610
- FailedMonitorAjaxSend: 17 ,
1611
- FailedMonitorAjaxGetCorrelationHeader: 18 ,
1612
- FailedToAddHandlerForOnBeforeUnload: 19 ,
1613
- FailedToSendQueuedTelemetry: 20 ,
1614
- FailedToReportDataLoss: 21 ,
1615
- FlushFailed: 22 ,
1616
- MessageLimitPerPVExceeded: 23 ,
1617
- MissingRequiredFieldSpecification: 24 ,
1618
- NavigationTimingNotSupported: 25 ,
1619
- OnError: 26 ,
1620
- SessionRenewalDateIsZero: 27 ,
1621
- SenderNotInitialized: 28 ,
1622
- StartTrackEventFailed: 29 ,
1623
- StopTrackEventFailed: 30 ,
1624
- StartTrackFailed: 31 ,
1625
- StopTrackFailed: 32 ,
1626
- TelemetrySampledAndNotSent: 33 ,
1627
- TrackEventFailed: 34 ,
1628
- TrackExceptionFailed: 35 ,
1629
- TrackMetricFailed: 36 ,
1630
- TrackPVFailed: 37 ,
1631
- TrackPVFailedCalc: 38 ,
1632
- TrackTraceFailed: 39 ,
1633
- TransmissionFailed: 40 ,
1634
- FailedToSetStorageBuffer: 41 ,
1635
- FailedToRestoreStorageBuffer: 42 ,
1636
- InvalidBackendResponse: 43 ,
1637
- FailedToFixDepricatedValues: 44 ,
1638
- InvalidDurationValue: 45 ,
1639
- TelemetryEnvelopeInvalid: 46 ,
1640
- CreateEnvelopeError: 47 ,
1641
- CannotSerializeObject: 48 ,
1642
- CannotSerializeObjectNonSerializable: 49 ,
1643
- CircularReferenceDetected: 50 ,
1644
- ClearAuthContextFailed: 51 ,
1645
- ExceptionTruncated: 52 ,
1646
- IllegalCharsInName: 53 ,
1647
- ItemNotInArray: 54 ,
1648
- MaxAjaxPerPVExceeded: 55 ,
1649
- MessageTruncated: 56 ,
1650
- NameTooLong: 57 ,
1651
- SampleRateOutOfRange: 58 ,
1652
- SetAuthContextFailed: 59 ,
1653
- SetAuthContextFailedAccountName: 60 ,
1654
- StringValueTooLong: 61 ,
1655
- StartCalledMoreThanOnce: 62 ,
1656
- StopCalledWithoutStart: 63 ,
1657
- TelemetryInitializerFailed: 64 ,
1658
- TrackArgumentsNotSpecified: 65 ,
1659
- UrlTooLong: 66 ,
1660
- SessionStorageBufferFull: 67 ,
1661
- CannotAccessCookie: 68 ,
1662
- IdTooLong: 69 ,
1663
- InvalidEvent: 70 ,
1664
- FailedMonitorAjaxSetRequestHeader: 71 ,
1665
- SendBrowserInfoOnUserInit: 72 ,
1666
- PluginException: 73 ,
1667
- NotificationException: 74 ,
1668
- SnippetScriptLoadFailure: 99 ,
1669
- InvalidInstrumentationKey: 100 ,
1670
- CannotParseAiBlobValue: 101 ,
1671
- InvalidContentBlob: 102 ,
1672
- TrackPageActionEventFailed: 103 ,
1673
- FailedAddingCustomDefinedRequestContext: 104 ,
1674
- InMemoryStorageBufferFull: 105
1675
- });
1676
-
1677
1593
  var RequestHeaders = {
1678
1594
  requestContextHeader: "Request-Context",
1679
1595
  requestContextTargetKey: "appId",
@@ -1706,7 +1622,7 @@
1706
1622
  name = strTrim(name.toString());
1707
1623
  if (name.length > 150 ) {
1708
1624
  nameTrunc = name.substring(0, 150 );
1709
- _throwInternal(logger, 2 , _InternalMessageId.NameTooLong, "name is too long. It has been truncated to " + 150 + " characters.", { name: name }, true);
1625
+ _throwInternal(logger, 2 , 57 , "name is too long. It has been truncated to " + 150 + " characters.", { name: name }, true);
1710
1626
  }
1711
1627
  }
1712
1628
  return nameTrunc || name;
@@ -1719,20 +1635,20 @@
1719
1635
  value = strTrim(value);
1720
1636
  if (value.toString().length > maxLength) {
1721
1637
  valueTrunc = value.toString().substring(0, maxLength);
1722
- _throwInternal(logger, 2 , _InternalMessageId.StringValueTooLong, "string value is too long. It has been truncated to " + maxLength + " characters.", { value: value }, true);
1638
+ _throwInternal(logger, 2 , 61 , "string value is too long. It has been truncated to " + maxLength + " characters.", { value: value }, true);
1723
1639
  }
1724
1640
  }
1725
1641
  return valueTrunc || value;
1726
1642
  }
1727
1643
  function dataSanitizeUrl(logger, url) {
1728
- return dataSanitizeInput(logger, url, 2048 , _InternalMessageId.UrlTooLong);
1644
+ return dataSanitizeInput(logger, url, 2048 , 66 );
1729
1645
  }
1730
1646
  function dataSanitizeMessage(logger, message) {
1731
1647
  var messageTrunc;
1732
1648
  if (message) {
1733
1649
  if (message.length > 32768 ) {
1734
1650
  messageTrunc = message.substring(0, 32768 );
1735
- _throwInternal(logger, 2 , _InternalMessageId.MessageTruncated, "message is too long, it has been truncated to " + 32768 + " characters.", { message: message }, true);
1651
+ _throwInternal(logger, 2 , 56 , "message is too long, it has been truncated to " + 32768 + " characters.", { message: message }, true);
1736
1652
  }
1737
1653
  }
1738
1654
  return messageTrunc || message;
@@ -1743,7 +1659,7 @@
1743
1659
  var value = "" + exception;
1744
1660
  if (value.length > 32768 ) {
1745
1661
  exceptionTrunc = value.substring(0, 32768 );
1746
- _throwInternal(logger, 2 , _InternalMessageId.ExceptionTruncated, "exception is too long, it has been truncated to " + 32768 + " characters.", { exception: exception }, true);
1662
+ _throwInternal(logger, 2 , 52 , "exception is too long, it has been truncated to " + 32768 + " characters.", { exception: exception }, true);
1747
1663
  }
1748
1664
  }
1749
1665
  return exceptionTrunc || exception;
@@ -1757,7 +1673,7 @@
1757
1673
  value = getJSON().stringify(value);
1758
1674
  }
1759
1675
  catch (e) {
1760
- _throwInternal(logger, 2 , _InternalMessageId.CannotSerializeObjectNonSerializable, "custom property is not valid", { exception: e }, true);
1676
+ _throwInternal(logger, 2 , 49 , "custom property is not valid", { exception: e }, true);
1761
1677
  }
1762
1678
  }
1763
1679
  value = dataSanitizeString(logger, value, 8192 );
@@ -1780,7 +1696,7 @@
1780
1696
  return measurements;
1781
1697
  }
1782
1698
  function dataSanitizeId(logger, id) {
1783
- return id ? dataSanitizeInput(logger, id, 128 , _InternalMessageId.IdTooLong).toString() : id;
1699
+ return id ? dataSanitizeInput(logger, id, 128 , 69 ).toString() : id;
1784
1700
  }
1785
1701
  function dataSanitizeInput(logger, input, maxLength, _msgId) {
1786
1702
  var inputTrunc;
@@ -1944,7 +1860,7 @@
1944
1860
  }
1945
1861
  catch (e) {
1946
1862
  _canUseLocalStorage = false;
1947
- _throwInternal(logger, 2 , _InternalMessageId.BrowserCannotReadLocalStorage, "Browser failed read of local storage. " + getExceptionName(e), { exception: dumpObj(e) });
1863
+ _throwInternal(logger, 2 , 1 , "Browser failed read of local storage. " + getExceptionName(e), { exception: dumpObj(e) });
1948
1864
  }
1949
1865
  }
1950
1866
  return null;
@@ -1958,7 +1874,7 @@
1958
1874
  }
1959
1875
  catch (e) {
1960
1876
  _canUseLocalStorage = false;
1961
- _throwInternal(logger, 2 , _InternalMessageId.BrowserCannotWriteLocalStorage, "Browser failed write to local storage. " + getExceptionName(e), { exception: dumpObj(e) });
1877
+ _throwInternal(logger, 2 , 3 , "Browser failed write to local storage. " + getExceptionName(e), { exception: dumpObj(e) });
1962
1878
  }
1963
1879
  }
1964
1880
  return false;
@@ -1972,7 +1888,7 @@
1972
1888
  }
1973
1889
  catch (e) {
1974
1890
  _canUseLocalStorage = false;
1975
- _throwInternal(logger, 2 , _InternalMessageId.BrowserFailedRemovalFromLocalStorage, "Browser failed removal of local storage item. " + getExceptionName(e), { exception: dumpObj(e) });
1891
+ _throwInternal(logger, 2 , 5 , "Browser failed removal of local storage item. " + getExceptionName(e), { exception: dumpObj(e) });
1976
1892
  }
1977
1893
  }
1978
1894
  return false;
@@ -2000,7 +1916,7 @@
2000
1916
  }
2001
1917
  catch (e) {
2002
1918
  _canUseSessionStorage = false;
2003
- _throwInternal(logger, 2 , _InternalMessageId.BrowserCannotReadSessionStorage, "Browser failed read of session storage. " + getExceptionName(e), { exception: dumpObj(e) });
1919
+ _throwInternal(logger, 2 , 2 , "Browser failed read of session storage. " + getExceptionName(e), { exception: dumpObj(e) });
2004
1920
  }
2005
1921
  }
2006
1922
  return null;
@@ -2014,7 +1930,7 @@
2014
1930
  }
2015
1931
  catch (e) {
2016
1932
  _canUseSessionStorage = false;
2017
- _throwInternal(logger, 2 , _InternalMessageId.BrowserCannotWriteSessionStorage, "Browser failed write to session storage. " + getExceptionName(e), { exception: dumpObj(e) });
1933
+ _throwInternal(logger, 2 , 4 , "Browser failed write to session storage. " + getExceptionName(e), { exception: dumpObj(e) });
2018
1934
  }
2019
1935
  }
2020
1936
  return false;
@@ -2028,7 +1944,7 @@
2028
1944
  }
2029
1945
  catch (e) {
2030
1946
  _canUseSessionStorage = false;
2031
- _throwInternal(logger, 2 , _InternalMessageId.BrowserFailedRemovalFromSessionStorage, "Browser failed removal of session storage item. " + getExceptionName(e), { exception: dumpObj(e) });
1947
+ _throwInternal(logger, 2 , 6 , "Browser failed removal of session storage item. " + getExceptionName(e), { exception: dumpObj(e) });
2032
1948
  }
2033
1949
  }
2034
1950
  return false;
@@ -2308,37 +2224,17 @@
2308
2224
  parse: parseConnectionString
2309
2225
  };
2310
2226
 
2311
- var Base = /** @class */ (function () {
2312
- function Base() {
2313
- }
2314
- return Base;
2315
- }());
2316
-
2317
- var Data$1 = /** @class */ (function (_super) {
2318
- __extendsFn(Data, _super);
2319
- function Data() {
2320
- return _super.call(this) || this;
2321
- }
2322
- return Data;
2323
- }(Base));
2324
-
2325
- var Envelope$1 = /** @class */ (function () {
2326
- function Envelope() {
2327
- this.ver = 1;
2328
- this.sampleRate = 100.0;
2329
- this.tags = {};
2330
- }
2331
- return Envelope;
2332
- }());
2333
-
2334
- var Envelope = /** @class */ (function (_super) {
2335
- __extendsFn(Envelope, _super);
2227
+ var Envelope = /** @class */ (function () {
2336
2228
  function Envelope(logger, data, name) {
2337
- var _this = _super.call(this) || this;
2338
- _this.name = dataSanitizeString(logger, name) || strNotSpecified;
2339
- _this.data = data;
2340
- _this.time = toISOString(new Date());
2341
- _this.aiDataContract = {
2229
+ var _this = this;
2230
+ var _self = this;
2231
+ _self.ver = 1;
2232
+ _self.sampleRate = 100.0;
2233
+ _self.tags = {};
2234
+ _self.name = dataSanitizeString(logger, name) || strNotSpecified;
2235
+ _self.data = data;
2236
+ _self.time = toISOString(new Date());
2237
+ _self.aiDataContract = {
2342
2238
  time: 1 ,
2343
2239
  iKey: 1 ,
2344
2240
  name: 1 ,
@@ -2348,62 +2244,27 @@
2348
2244
  tags: 1 ,
2349
2245
  data: 1
2350
2246
  };
2351
- return _this;
2352
2247
  }
2353
2248
  return Envelope;
2354
- }(Envelope$1));
2355
-
2356
- var EventData = /** @class */ (function () {
2357
- function EventData() {
2358
- this.ver = 2;
2359
- this.properties = {};
2360
- this.measurements = {};
2361
- }
2362
- return EventData;
2363
2249
  }());
2364
2250
 
2365
- var Event$1 = /** @class */ (function (_super) {
2366
- __extendsFn(Event, _super);
2251
+ var Event$1 = /** @class */ (function () {
2367
2252
  function Event(logger, name, properties, measurements) {
2368
- var _this = _super.call(this) || this;
2369
- _this.aiDataContract = {
2253
+ this.aiDataContract = {
2370
2254
  ver: 1 ,
2371
2255
  name: 1 ,
2372
2256
  properties: 0 ,
2373
2257
  measurements: 0
2374
2258
  };
2375
- _this.name = dataSanitizeString(logger, name) || strNotSpecified;
2376
- _this.properties = dataSanitizeProperties(logger, properties);
2377
- _this.measurements = dataSanitizeMeasurements(logger, measurements);
2378
- return _this;
2259
+ var _self = this;
2260
+ _self.ver = 2;
2261
+ _self.name = dataSanitizeString(logger, name) || strNotSpecified;
2262
+ _self.properties = dataSanitizeProperties(logger, properties);
2263
+ _self.measurements = dataSanitizeMeasurements(logger, measurements);
2379
2264
  }
2380
2265
  Event.envelopeType = "Microsoft.ApplicationInsights.{0}.Event";
2381
2266
  Event.dataType = "EventData";
2382
2267
  return Event;
2383
- }(EventData));
2384
-
2385
- var StackFrame = /** @class */ (function () {
2386
- function StackFrame() {
2387
- }
2388
- return StackFrame;
2389
- }());
2390
-
2391
- var ExceptionData = /** @class */ (function () {
2392
- function ExceptionData() {
2393
- this.ver = 2;
2394
- this.exceptions = [];
2395
- this.properties = {};
2396
- this.measurements = {};
2397
- }
2398
- return ExceptionData;
2399
- }());
2400
-
2401
- var ExceptionDetails = /** @class */ (function () {
2402
- function ExceptionDetails() {
2403
- this.hasFullStack = true;
2404
- this.parsedStack = [];
2405
- }
2406
- return ExceptionDetails;
2407
2268
  }());
2408
2269
 
2409
2270
  var NoMethod = "<no_method>";
@@ -2647,50 +2508,48 @@
2647
2508
  }
2648
2509
  return "" + (errorObj || "");
2649
2510
  }
2650
- var Exception = /** @class */ (function (_super) {
2651
- __extendsFn(Exception, _super);
2511
+ var Exception = /** @class */ (function () {
2652
2512
  function Exception(logger, exception, properties, measurements, severityLevel, id) {
2653
- var _this = _super.call(this) || this;
2654
- _this.aiDataContract = {
2513
+ this.aiDataContract = {
2655
2514
  ver: 1 ,
2656
2515
  exceptions: 1 ,
2657
2516
  severityLevel: 0 ,
2658
2517
  properties: 0 ,
2659
2518
  measurements: 0
2660
2519
  };
2520
+ var _self = this;
2521
+ _self.ver = 2;
2661
2522
  if (!_isExceptionInternal(exception)) {
2662
2523
  if (!properties) {
2663
2524
  properties = {};
2664
2525
  }
2665
- _this.exceptions = [new _ExceptionDetails(logger, exception, properties)];
2666
- _this.properties = dataSanitizeProperties(logger, properties);
2667
- _this.measurements = dataSanitizeMeasurements(logger, measurements);
2526
+ _self.exceptions = [new _ExceptionDetails(logger, exception, properties)];
2527
+ _self.properties = dataSanitizeProperties(logger, properties);
2528
+ _self.measurements = dataSanitizeMeasurements(logger, measurements);
2668
2529
  if (severityLevel) {
2669
- _this.severityLevel = severityLevel;
2530
+ _self.severityLevel = severityLevel;
2670
2531
  }
2671
2532
  if (id) {
2672
- _this.id = id;
2533
+ _self.id = id;
2673
2534
  }
2674
2535
  }
2675
2536
  else {
2676
- _this.exceptions = exception.exceptions;
2677
- _this.properties = exception.properties;
2678
- _this.measurements = exception.measurements;
2537
+ _self.exceptions = exception.exceptions || [];
2538
+ _self.properties = exception.properties;
2539
+ _self.measurements = exception.measurements;
2679
2540
  if (exception.severityLevel) {
2680
- _this.severityLevel = exception.severityLevel;
2541
+ _self.severityLevel = exception.severityLevel;
2681
2542
  }
2682
2543
  if (exception.id) {
2683
- _this.id = exception.id;
2544
+ _self.id = exception.id;
2684
2545
  }
2685
2546
  if (exception.problemGroup) {
2686
- _this.problemGroup = exception.problemGroup;
2547
+ _self.problemGroup = exception.problemGroup;
2687
2548
  }
2688
- _this.ver = 2;
2689
2549
  if (!isNullOrUndefined(exception.isManual)) {
2690
- _this.isManual = exception.isManual;
2550
+ _self.isManual = exception.isManual;
2691
2551
  }
2692
2552
  }
2693
- return _this;
2694
2553
  }
2695
2554
  Exception.CreateAutoException = function (message, url, lineNumber, columnNumber, error, evt, stack, errorSrc) {
2696
2555
  var errorType = _getErrorType(error || evt || message);
@@ -2744,12 +2603,10 @@
2744
2603
  Exception.dataType = "ExceptionData";
2745
2604
  Exception.formatError = _formatErrorCode;
2746
2605
  return Exception;
2747
- }(ExceptionData));
2748
- var _ExceptionDetails = /** @class */ (function (_super) {
2749
- __extendsFn(_ExceptionDetails, _super);
2606
+ }());
2607
+ var _ExceptionDetails = /** @class */ (function () {
2750
2608
  function _ExceptionDetails(logger, exception, properties) {
2751
- var _this = _super.call(this) || this;
2752
- _this.aiDataContract = {
2609
+ this.aiDataContract = {
2753
2610
  id: 0 ,
2754
2611
  outerId: 0 ,
2755
2612
  typeName: 1 ,
@@ -2758,41 +2615,42 @@
2758
2615
  stack: 0 ,
2759
2616
  parsedStack: 2
2760
2617
  };
2618
+ var _self = this;
2761
2619
  if (!_isExceptionDetailsInternal(exception)) {
2762
2620
  var error = exception;
2763
2621
  var evt = error && error.evt;
2764
2622
  if (!isError(error)) {
2765
2623
  error = error[strError] || evt || error;
2766
2624
  }
2767
- _this.typeName = dataSanitizeString(logger, _getErrorType(error)) || strNotSpecified;
2768
- _this.message = dataSanitizeMessage(logger, _formatMessage(exception || error, _this.typeName)) || strNotSpecified;
2625
+ _self.typeName = dataSanitizeString(logger, _getErrorType(error)) || strNotSpecified;
2626
+ _self.message = dataSanitizeMessage(logger, _formatMessage(exception || error, _self.typeName)) || strNotSpecified;
2769
2627
  var stack = exception[strStackDetails] || _getStackFromErrorObj(exception);
2770
- _this.parsedStack = _parseStack(stack);
2771
- _this[strStack] = dataSanitizeException(logger, _formatStackTrace(stack));
2772
- _this.hasFullStack = isArray(_this.parsedStack) && _this.parsedStack.length > 0;
2628
+ _self.parsedStack = _parseStack(stack);
2629
+ _self[strStack] = dataSanitizeException(logger, _formatStackTrace(stack));
2630
+ _self.hasFullStack = isArray(_self.parsedStack) && _self.parsedStack.length > 0;
2773
2631
  if (properties) {
2774
- properties.typeName = properties.typeName || _this.typeName;
2632
+ properties.typeName = properties.typeName || _self.typeName;
2775
2633
  }
2776
2634
  }
2777
2635
  else {
2778
- _this.typeName = exception.typeName;
2779
- _this.message = exception.message;
2780
- _this[strStack] = exception[strStack];
2781
- _this.parsedStack = exception.parsedStack;
2782
- _this.hasFullStack = exception.hasFullStack;
2636
+ _self.typeName = exception.typeName;
2637
+ _self.message = exception.message;
2638
+ _self[strStack] = exception[strStack];
2639
+ _self.parsedStack = exception.parsedStack || [];
2640
+ _self.hasFullStack = exception.hasFullStack;
2783
2641
  }
2784
- return _this;
2785
2642
  }
2786
2643
  _ExceptionDetails.prototype.toInterface = function () {
2787
- var parsedStack = this.parsedStack instanceof Array
2788
- && arrMap(this.parsedStack, function (frame) { return frame.toInterface(); });
2644
+ var _self = this;
2645
+ var parsedStack = _self.parsedStack instanceof Array
2646
+ && arrMap(_self.parsedStack, function (frame) { return frame.toInterface(); });
2789
2647
  var exceptionDetailsInterface = {
2790
- id: this.id,
2791
- outerId: this.outerId,
2792
- typeName: this.typeName,
2793
- message: this.message,
2794
- hasFullStack: this.hasFullStack,
2795
- stack: this[strStack],
2648
+ id: _self.id,
2649
+ outerId: _self.outerId,
2650
+ typeName: _self.typeName,
2651
+ message: _self.message,
2652
+ hasFullStack: _self.hasFullStack,
2653
+ stack: _self[strStack],
2796
2654
  parsedStack: parsedStack || undefined
2797
2655
  };
2798
2656
  return exceptionDetailsInterface;
@@ -2805,94 +2663,68 @@
2805
2663
  return exceptionDetails;
2806
2664
  };
2807
2665
  return _ExceptionDetails;
2808
- }(ExceptionDetails));
2809
- var _StackFrame = /** @class */ (function (_super) {
2810
- __extendsFn(_StackFrame, _super);
2666
+ }());
2667
+ var _StackFrame = /** @class */ (function () {
2811
2668
  function _StackFrame(sourceFrame, level) {
2812
- var _this = _super.call(this) || this;
2813
- _this.sizeInBytes = 0;
2814
- _this.aiDataContract = {
2669
+ this.aiDataContract = {
2815
2670
  level: 1 ,
2816
2671
  method: 1 ,
2817
2672
  assembly: 0 ,
2818
2673
  fileName: 0 ,
2819
2674
  line: 0
2820
2675
  };
2676
+ var _self = this;
2677
+ _self.sizeInBytes = 0;
2821
2678
  if (typeof sourceFrame === "string") {
2822
2679
  var frame = sourceFrame;
2823
- _this.level = level;
2824
- _this.method = NoMethod;
2825
- _this.assembly = strTrim(frame);
2826
- _this.fileName = "";
2827
- _this.line = 0;
2680
+ _self.level = level;
2681
+ _self.method = NoMethod;
2682
+ _self.assembly = strTrim(frame);
2683
+ _self.fileName = "";
2684
+ _self.line = 0;
2828
2685
  var matches = frame.match(_StackFrame.regex);
2829
2686
  if (matches && matches.length >= 5) {
2830
- _this.method = strTrim(matches[2]) || _this.method;
2831
- _this.fileName = strTrim(matches[4]);
2832
- _this.line = parseInt(matches[5]) || 0;
2687
+ _self.method = strTrim(matches[2]) || _self.method;
2688
+ _self.fileName = strTrim(matches[4]);
2689
+ _self.line = parseInt(matches[5]) || 0;
2833
2690
  }
2834
2691
  }
2835
2692
  else {
2836
- _this.level = sourceFrame.level;
2837
- _this.method = sourceFrame.method;
2838
- _this.assembly = sourceFrame.assembly;
2839
- _this.fileName = sourceFrame.fileName;
2840
- _this.line = sourceFrame.line;
2841
- _this.sizeInBytes = 0;
2842
- }
2843
- _this.sizeInBytes += _this.method.length;
2844
- _this.sizeInBytes += _this.fileName.length;
2845
- _this.sizeInBytes += _this.assembly.length;
2846
- _this.sizeInBytes += _StackFrame.baseSize;
2847
- _this.sizeInBytes += _this.level.toString().length;
2848
- _this.sizeInBytes += _this.line.toString().length;
2849
- return _this;
2693
+ _self.level = sourceFrame.level;
2694
+ _self.method = sourceFrame.method;
2695
+ _self.assembly = sourceFrame.assembly;
2696
+ _self.fileName = sourceFrame.fileName;
2697
+ _self.line = sourceFrame.line;
2698
+ _self.sizeInBytes = 0;
2699
+ }
2700
+ _self.sizeInBytes += _self.method.length;
2701
+ _self.sizeInBytes += _self.fileName.length;
2702
+ _self.sizeInBytes += _self.assembly.length;
2703
+ _self.sizeInBytes += _StackFrame.baseSize;
2704
+ _self.sizeInBytes += _self.level.toString().length;
2705
+ _self.sizeInBytes += _self.line.toString().length;
2850
2706
  }
2851
2707
  _StackFrame.CreateFromInterface = function (frame) {
2852
2708
  return new _StackFrame(frame, null );
2853
2709
  };
2854
2710
  _StackFrame.prototype.toInterface = function () {
2711
+ var _self = this;
2855
2712
  return {
2856
- level: this.level,
2857
- method: this.method,
2858
- assembly: this.assembly,
2859
- fileName: this.fileName,
2860
- line: this.line
2713
+ level: _self.level,
2714
+ method: _self.method,
2715
+ assembly: _self.assembly,
2716
+ fileName: _self.fileName,
2717
+ line: _self.line
2861
2718
  };
2862
2719
  };
2863
2720
  _StackFrame.regex = /^([\s]+at)?[\s]{0,50}([^\@\()]+?)[\s]{0,50}(\@|\()([^\(\n]+):([0-9]+):([0-9]+)(\)?)$/;
2864
2721
  _StackFrame.baseSize = 58;
2865
2722
  return _StackFrame;
2866
- }(StackFrame));
2867
-
2868
- var MetricData = /** @class */ (function () {
2869
- function MetricData() {
2870
- this.ver = 2;
2871
- this.metrics = [];
2872
- this.properties = {};
2873
- this.measurements = {};
2874
- }
2875
- return MetricData;
2876
- }());
2877
-
2878
- var DataPointType;
2879
- (function (DataPointType) {
2880
- DataPointType[DataPointType["Measurement"] = 0] = "Measurement";
2881
- DataPointType[DataPointType["Aggregation"] = 1] = "Aggregation";
2882
- })(DataPointType || (DataPointType = {}));
2883
-
2884
- var DataPoint$1 = /** @class */ (function () {
2885
- function DataPoint() {
2886
- this.kind = DataPointType.Measurement;
2887
- }
2888
- return DataPoint;
2889
2723
  }());
2890
2724
 
2891
- var DataPoint = /** @class */ (function (_super) {
2892
- __extendsFn(DataPoint, _super);
2725
+ var DataPoint = /** @class */ (function () {
2893
2726
  function DataPoint() {
2894
- var _this = _super !== null && _super.apply(this, arguments) || this;
2895
- _this.aiDataContract = {
2727
+ this.aiDataContract = {
2896
2728
  name: 1 ,
2897
2729
  kind: 0 ,
2898
2730
  value: 1 ,
@@ -2901,20 +2733,20 @@
2901
2733
  max: 0 ,
2902
2734
  stdDev: 0
2903
2735
  };
2904
- return _this;
2736
+ this.kind = 0 ;
2905
2737
  }
2906
2738
  return DataPoint;
2907
- }(DataPoint$1));
2739
+ }());
2908
2740
 
2909
- var Metric = /** @class */ (function (_super) {
2910
- __extendsFn(Metric, _super);
2741
+ var Metric = /** @class */ (function () {
2911
2742
  function Metric(logger, name, value, count, min, max, stdDev, properties, measurements) {
2912
- var _this = _super.call(this) || this;
2913
- _this.aiDataContract = {
2743
+ this.aiDataContract = {
2914
2744
  ver: 1 ,
2915
2745
  metrics: 1 ,
2916
2746
  properties: 0
2917
2747
  };
2748
+ var _self = this;
2749
+ _self.ver = 2;
2918
2750
  var dataPoint = new DataPoint();
2919
2751
  dataPoint.count = count > 0 ? count : undefined;
2920
2752
  dataPoint.max = isNaN(max) || max === null ? undefined : max;
@@ -2922,33 +2754,18 @@
2922
2754
  dataPoint.name = dataSanitizeString(logger, name) || strNotSpecified;
2923
2755
  dataPoint.value = value;
2924
2756
  dataPoint.stdDev = isNaN(stdDev) || stdDev === null ? undefined : stdDev;
2925
- _this.metrics = [dataPoint];
2926
- _this.properties = dataSanitizeProperties(logger, properties);
2927
- _this.measurements = dataSanitizeMeasurements(logger, measurements);
2928
- return _this;
2757
+ _self.metrics = [dataPoint];
2758
+ _self.properties = dataSanitizeProperties(logger, properties);
2759
+ _self.measurements = dataSanitizeMeasurements(logger, measurements);
2929
2760
  }
2930
2761
  Metric.envelopeType = "Microsoft.ApplicationInsights.{0}.Metric";
2931
2762
  Metric.dataType = "MetricData";
2932
2763
  return Metric;
2933
- }(MetricData));
2934
-
2935
- var PageViewData = /** @class */ (function (_super) {
2936
- __extendsFn(PageViewData, _super);
2937
- function PageViewData() {
2938
- var _this = _super.call(this) || this;
2939
- _this.ver = 2;
2940
- _this.properties = {};
2941
- _this.measurements = {};
2942
- return _this;
2943
- }
2944
- return PageViewData;
2945
- }(EventData));
2764
+ }());
2946
2765
 
2947
- var PageView = /** @class */ (function (_super) {
2948
- __extendsFn(PageView, _super);
2766
+ var PageView = /** @class */ (function () {
2949
2767
  function PageView(logger, name, url, durationMs, properties, measurements, id) {
2950
- var _this = _super.call(this) || this;
2951
- _this.aiDataContract = {
2768
+ this.aiDataContract = {
2952
2769
  ver: 1 ,
2953
2770
  name: 0 ,
2954
2771
  url: 0 ,
@@ -2957,37 +2774,26 @@
2957
2774
  measurements: 0 ,
2958
2775
  id: 0
2959
2776
  };
2960
- _this.id = dataSanitizeId(logger, id);
2961
- _this.url = dataSanitizeUrl(logger, url);
2962
- _this.name = dataSanitizeString(logger, name) || strNotSpecified;
2777
+ var _self = this;
2778
+ _self.ver = 2;
2779
+ _self.id = dataSanitizeId(logger, id);
2780
+ _self.url = dataSanitizeUrl(logger, url);
2781
+ _self.name = dataSanitizeString(logger, name) || strNotSpecified;
2963
2782
  if (!isNaN(durationMs)) {
2964
- _this.duration = msToTimeSpan(durationMs);
2783
+ _self.duration = msToTimeSpan(durationMs);
2965
2784
  }
2966
- _this.properties = dataSanitizeProperties(logger, properties);
2967
- _this.measurements = dataSanitizeMeasurements(logger, measurements);
2968
- return _this;
2785
+ _self.properties = dataSanitizeProperties(logger, properties);
2786
+ _self.measurements = dataSanitizeMeasurements(logger, measurements);
2969
2787
  }
2970
2788
  PageView.envelopeType = "Microsoft.ApplicationInsights.{0}.Pageview";
2971
2789
  PageView.dataType = "PageviewData";
2972
2790
  return PageView;
2973
- }(PageViewData));
2974
-
2975
- var RemoteDependencyData$1 = /** @class */ (function () {
2976
- function RemoteDependencyData() {
2977
- this.ver = 2;
2978
- this.success = true;
2979
- this.properties = {};
2980
- this.measurements = {};
2981
- }
2982
- return RemoteDependencyData;
2983
2791
  }());
2984
2792
 
2985
- var RemoteDependencyData = /** @class */ (function (_super) {
2986
- __extendsFn(RemoteDependencyData, _super);
2793
+ var RemoteDependencyData = /** @class */ (function () {
2987
2794
  function RemoteDependencyData(logger, id, absoluteUrl, commandName, value, success, resultCode, method, requestAPI, correlationContext, properties, measurements) {
2988
2795
  if (requestAPI === void 0) { requestAPI = "Ajax"; }
2989
- var _this = _super.call(this) || this;
2990
- _this.aiDataContract = {
2796
+ this.aiDataContract = {
2991
2797
  id: 1 ,
2992
2798
  ver: 1 ,
2993
2799
  name: 0 ,
@@ -3010,77 +2816,54 @@
3010
2816
  commandName: 0 ,
3011
2817
  dependencyTypeName: 0
3012
2818
  };
3013
- _this.id = id;
3014
- _this.duration = msToTimeSpan(value);
3015
- _this.success = success;
3016
- _this.resultCode = resultCode + "";
3017
- _this.type = dataSanitizeString(logger, requestAPI);
2819
+ var _self = this;
2820
+ _self.ver = 2;
2821
+ _self.id = id;
2822
+ _self.duration = msToTimeSpan(value);
2823
+ _self.success = success;
2824
+ _self.resultCode = resultCode + "";
2825
+ _self.type = dataSanitizeString(logger, requestAPI);
3018
2826
  var dependencyFields = AjaxHelperParseDependencyPath(logger, absoluteUrl, method, commandName);
3019
- _this.data = dataSanitizeUrl(logger, commandName) || dependencyFields.data;
3020
- _this.target = dataSanitizeString(logger, dependencyFields.target);
2827
+ _self.data = dataSanitizeUrl(logger, commandName) || dependencyFields.data;
2828
+ _self.target = dataSanitizeString(logger, dependencyFields.target);
3021
2829
  if (correlationContext) {
3022
- _this.target = "".concat(_this.target, " | ").concat(correlationContext);
2830
+ _self.target = "".concat(_self.target, " | ").concat(correlationContext);
3023
2831
  }
3024
- _this.name = dataSanitizeString(logger, dependencyFields.name);
3025
- _this.properties = dataSanitizeProperties(logger, properties);
3026
- _this.measurements = dataSanitizeMeasurements(logger, measurements);
3027
- return _this;
2832
+ _self.name = dataSanitizeString(logger, dependencyFields.name);
2833
+ _self.properties = dataSanitizeProperties(logger, properties);
2834
+ _self.measurements = dataSanitizeMeasurements(logger, measurements);
3028
2835
  }
3029
2836
  RemoteDependencyData.envelopeType = "Microsoft.ApplicationInsights.{0}.RemoteDependency";
3030
2837
  RemoteDependencyData.dataType = "RemoteDependencyData";
3031
2838
  return RemoteDependencyData;
3032
- }(RemoteDependencyData$1));
3033
-
3034
- var MessageData = /** @class */ (function () {
3035
- function MessageData() {
3036
- this.ver = 2;
3037
- this.properties = {};
3038
- this.measurements = {};
3039
- }
3040
- return MessageData;
3041
2839
  }());
3042
2840
 
3043
- var Trace = /** @class */ (function (_super) {
3044
- __extendsFn(Trace, _super);
2841
+ var Trace = /** @class */ (function () {
3045
2842
  function Trace(logger, message, severityLevel, properties, measurements) {
3046
- var _this = _super.call(this) || this;
3047
- _this.aiDataContract = {
2843
+ this.aiDataContract = {
3048
2844
  ver: 1 ,
3049
2845
  message: 1 ,
3050
2846
  severityLevel: 0 ,
3051
2847
  properties: 0
3052
2848
  };
2849
+ var _self = this;
2850
+ _self.ver = 2;
3053
2851
  message = message || strNotSpecified;
3054
- _this.message = dataSanitizeMessage(logger, message);
3055
- _this.properties = dataSanitizeProperties(logger, properties);
3056
- _this.measurements = dataSanitizeMeasurements(logger, measurements);
2852
+ _self.message = dataSanitizeMessage(logger, message);
2853
+ _self.properties = dataSanitizeProperties(logger, properties);
2854
+ _self.measurements = dataSanitizeMeasurements(logger, measurements);
3057
2855
  if (severityLevel) {
3058
- _this.severityLevel = severityLevel;
2856
+ _self.severityLevel = severityLevel;
3059
2857
  }
3060
- return _this;
3061
2858
  }
3062
2859
  Trace.envelopeType = "Microsoft.ApplicationInsights.{0}.Message";
3063
2860
  Trace.dataType = "MessageData";
3064
2861
  return Trace;
3065
- }(MessageData));
3066
-
3067
- var PageViewPerfData = /** @class */ (function (_super) {
3068
- __extendsFn(PageViewPerfData, _super);
3069
- function PageViewPerfData() {
3070
- var _this = _super.call(this) || this;
3071
- _this.ver = 2;
3072
- _this.properties = {};
3073
- _this.measurements = {};
3074
- return _this;
3075
- }
3076
- return PageViewPerfData;
3077
- }(PageViewData));
2862
+ }());
3078
2863
 
3079
- var PageViewPerformance = /** @class */ (function (_super) {
3080
- __extendsFn(PageViewPerformance, _super);
2864
+ var PageViewPerformance = /** @class */ (function () {
3081
2865
  function PageViewPerformance(logger, name, url, unused, properties, measurements, cs4BaseData) {
3082
- var _this = _super.call(this) || this;
3083
- _this.aiDataContract = {
2866
+ this.aiDataContract = {
3084
2867
  ver: 1 ,
3085
2868
  name: 0 ,
3086
2869
  url: 0 ,
@@ -3093,39 +2876,37 @@
3093
2876
  properties: 0 ,
3094
2877
  measurements: 0
3095
2878
  };
3096
- _this.url = dataSanitizeUrl(logger, url);
3097
- _this.name = dataSanitizeString(logger, name) || strNotSpecified;
3098
- _this.properties = dataSanitizeProperties(logger, properties);
3099
- _this.measurements = dataSanitizeMeasurements(logger, measurements);
2879
+ var _self = this;
2880
+ _self.ver = 2;
2881
+ _self.url = dataSanitizeUrl(logger, url);
2882
+ _self.name = dataSanitizeString(logger, name) || strNotSpecified;
2883
+ _self.properties = dataSanitizeProperties(logger, properties);
2884
+ _self.measurements = dataSanitizeMeasurements(logger, measurements);
3100
2885
  if (cs4BaseData) {
3101
- _this.domProcessing = cs4BaseData.domProcessing;
3102
- _this.duration = cs4BaseData.duration;
3103
- _this.networkConnect = cs4BaseData.networkConnect;
3104
- _this.perfTotal = cs4BaseData.perfTotal;
3105
- _this.receivedResponse = cs4BaseData.receivedResponse;
3106
- _this.sentRequest = cs4BaseData.sentRequest;
2886
+ _self.domProcessing = cs4BaseData.domProcessing;
2887
+ _self.duration = cs4BaseData.duration;
2888
+ _self.networkConnect = cs4BaseData.networkConnect;
2889
+ _self.perfTotal = cs4BaseData.perfTotal;
2890
+ _self.receivedResponse = cs4BaseData.receivedResponse;
2891
+ _self.sentRequest = cs4BaseData.sentRequest;
3107
2892
  }
3108
- return _this;
3109
2893
  }
3110
2894
  PageViewPerformance.envelopeType = "Microsoft.ApplicationInsights.{0}.PageviewPerformance";
3111
2895
  PageViewPerformance.dataType = "PageviewPerformanceData";
3112
2896
  return PageViewPerformance;
3113
- }(PageViewPerfData));
2897
+ }());
3114
2898
 
3115
- var Data = /** @class */ (function (_super) {
3116
- __extendsFn(Data, _super);
2899
+ var Data = /** @class */ (function () {
3117
2900
  function Data(baseType, data) {
3118
- var _this = _super.call(this) || this;
3119
- _this.aiDataContract = {
2901
+ this.aiDataContract = {
3120
2902
  baseType: 1 ,
3121
2903
  baseData: 1
3122
2904
  };
3123
- _this.baseType = baseType;
3124
- _this.baseData = data;
3125
- return _this;
2905
+ this.baseType = baseType;
2906
+ this.baseData = data;
3126
2907
  }
3127
2908
  return Data;
3128
- }(Data$1));
2909
+ }());
3129
2910
 
3130
2911
  exports.SeverityLevel = void 0;
3131
2912
  (function (SeverityLevel) {
@@ -3284,8 +3065,6 @@
3284
3065
  var BreezeChannelIdentifier = "AppInsightsChannelPlugin";
3285
3066
  var AnalyticsPluginIdentifier = "ApplicationInsightsAnalytics";
3286
3067
 
3287
- exports.AIBase = Base;
3288
- exports.AIData = Data$1;
3289
3068
  exports.AnalyticsPluginIdentifier = AnalyticsPluginIdentifier;
3290
3069
  exports.BreezeChannelIdentifier = BreezeChannelIdentifier;
3291
3070
  exports.ConfigurationManager = ConfigurationManager;
@@ -3306,7 +3085,6 @@
3306
3085
  exports.HttpMethod = HttpMethod;
3307
3086
  exports.Metric = Metric;
3308
3087
  exports.PageView = PageView;
3309
- exports.PageViewData = PageViewData;
3310
3088
  exports.PageViewPerformance = PageViewPerformance;
3311
3089
  exports.ProcessLegacy = ProcessLegacy;
3312
3090
  exports.PropertiesPluginIdentifier = PropertiesPluginIdentifier;