@microsoft/1ds-core-js 4.3.7-nightly3.2504-10 → 4.3.7-nightly3.2504-11

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 (42) hide show
  1. package/bundle/es5/{ms.core-4.3.7-nightly3.2504-10.gbl.js → ms.core-4.3.7-nightly3.2504-11.gbl.js} +305 -150
  2. package/bundle/es5/ms.core-4.3.7-nightly3.2504-11.gbl.js.map +1 -0
  3. package/bundle/es5/ms.core-4.3.7-nightly3.2504-11.gbl.min.js +7 -0
  4. package/bundle/es5/ms.core-4.3.7-nightly3.2504-11.gbl.min.js.map +1 -0
  5. package/bundle/es5/ms.core-4.3.7-nightly3.2504-11.integrity.json +46 -0
  6. package/bundle/es5/{ms.core-4.3.7-nightly3.2504-10.js → ms.core-4.3.7-nightly3.2504-11.js} +305 -150
  7. package/bundle/es5/ms.core-4.3.7-nightly3.2504-11.js.map +1 -0
  8. package/bundle/es5/ms.core-4.3.7-nightly3.2504-11.min.js +7 -0
  9. package/bundle/es5/ms.core-4.3.7-nightly3.2504-11.min.js.map +1 -0
  10. package/bundle/es5/ms.core.gbl.js +304 -149
  11. package/bundle/es5/ms.core.gbl.js.map +1 -1
  12. package/bundle/es5/ms.core.gbl.min.js +2 -2
  13. package/bundle/es5/ms.core.gbl.min.js.map +1 -1
  14. package/bundle/es5/ms.core.integrity.json +17 -17
  15. package/bundle/es5/ms.core.js +304 -149
  16. package/bundle/es5/ms.core.js.map +1 -1
  17. package/bundle/es5/ms.core.min.js +2 -2
  18. package/bundle/es5/ms.core.min.js.map +1 -1
  19. package/dist/es5/ms.core.js +302 -147
  20. package/dist/es5/ms.core.js.map +1 -1
  21. package/dist/es5/ms.core.min.js +2 -2
  22. package/dist/es5/ms.core.min.js.map +1 -1
  23. package/dist-es5/AppInsightsCore.js +1 -1
  24. package/dist-es5/BaseCore.js +1 -1
  25. package/dist-es5/DataModels.js +1 -1
  26. package/dist-es5/Enums.js +1 -1
  27. package/dist-es5/Index.js +1 -1
  28. package/dist-es5/InternalConstants.js +1 -1
  29. package/dist-es5/Utils.js +2 -2
  30. package/dist-es5/Utils.js.map +1 -1
  31. package/dist-es5/ValueSanitizer.js +1 -1
  32. package/dist-es5/__DynamicConstants.js +1 -1
  33. package/package.json +2 -2
  34. package/types/1ds-core-js.d.ts +2 -2
  35. package/types/1ds-core-js.namespaced.d.ts +24 -2
  36. package/bundle/es5/ms.core-4.3.7-nightly3.2504-10.gbl.js.map +0 -1
  37. package/bundle/es5/ms.core-4.3.7-nightly3.2504-10.gbl.min.js +0 -7
  38. package/bundle/es5/ms.core-4.3.7-nightly3.2504-10.gbl.min.js.map +0 -1
  39. package/bundle/es5/ms.core-4.3.7-nightly3.2504-10.integrity.json +0 -46
  40. package/bundle/es5/ms.core-4.3.7-nightly3.2504-10.js.map +0 -1
  41. package/bundle/es5/ms.core-4.3.7-nightly3.2504-10.min.js +0 -7
  42. package/bundle/es5/ms.core-4.3.7-nightly3.2504-10.min.js.map +0 -1
@@ -0,0 +1,46 @@
1
+ {
2
+ "name": "ms.core",
3
+ "version": "4.3.7-nightly3.2504-11",
4
+ "ext": {
5
+ "@gbl.js": {
6
+ "file": "ms.core-4.3.7-nightly3.2504-11.gbl.js",
7
+ "type": "text/javascript; charset=utf-8",
8
+ "integrity": "sha256-3YO/fQlGKUDmzttfcI2J/h5qxNCXu4qheFKpgLbr6rU= sha384-cQQXt8fmn7xVTt8pIzaUVyAtFeNUxMCMGkrHKb6FD83b7lVnGENpnvowpkzLTJ9k sha512-bFg44r4yLQkgXLFJKsDCCuB+BCuMW5RpuvOaI0B+ym4uwJtGQuINntE3taS8tIayd32iFlTf9Tcnj2kGoNnsBA==",
9
+ "hashes": {
10
+ "sha256": "3YO/fQlGKUDmzttfcI2J/h5qxNCXu4qheFKpgLbr6rU=",
11
+ "sha384": "cQQXt8fmn7xVTt8pIzaUVyAtFeNUxMCMGkrHKb6FD83b7lVnGENpnvowpkzLTJ9k",
12
+ "sha512": "bFg44r4yLQkgXLFJKsDCCuB+BCuMW5RpuvOaI0B+ym4uwJtGQuINntE3taS8tIayd32iFlTf9Tcnj2kGoNnsBA=="
13
+ }
14
+ },
15
+ "@gbl.min.js": {
16
+ "file": "ms.core-4.3.7-nightly3.2504-11.gbl.min.js",
17
+ "type": "text/javascript; charset=utf-8",
18
+ "integrity": "sha256-OJl7sJJ0VZADNlYKqD4Th9ZtpGOGhRulTu4GW0NoHbc= sha384-yE3g2r82kX+lLJBLIIAeDKi2U7tPIhbVn3fDdseVbEHhRl6vhndIdq8EwjLo8siv sha512-xDg2qWlavpcfpzDgGBVSak6aBwNuKR1KUCjKSV+byL7Uyuymfr8i63LU46+82/u9FpgufoueIf7FyMdsUVp01w==",
19
+ "hashes": {
20
+ "sha256": "OJl7sJJ0VZADNlYKqD4Th9ZtpGOGhRulTu4GW0NoHbc=",
21
+ "sha384": "yE3g2r82kX+lLJBLIIAeDKi2U7tPIhbVn3fDdseVbEHhRl6vhndIdq8EwjLo8siv",
22
+ "sha512": "xDg2qWlavpcfpzDgGBVSak6aBwNuKR1KUCjKSV+byL7Uyuymfr8i63LU46+82/u9FpgufoueIf7FyMdsUVp01w=="
23
+ }
24
+ },
25
+ "@js": {
26
+ "file": "ms.core-4.3.7-nightly3.2504-11.js",
27
+ "type": "text/javascript; charset=utf-8",
28
+ "integrity": "sha256-ZRAktYmnDAxIVgPy2WtuQ8xjSllq5FNaWddQBP3W/Kc= sha384-yFOyqfEq6L/M6yeRUsNWU+PLAHSxeLLo731SIcvEz/A3epguT/b095EkgBsag2cg sha512-q78qH+ZehRdm4rDTSqki7tQ0MWLf9aw8q5XrI8whK4Ck57jqKIqPUWA4SfMrxAJqlClme24NhOqB3+IjItWmJA==",
29
+ "hashes": {
30
+ "sha256": "ZRAktYmnDAxIVgPy2WtuQ8xjSllq5FNaWddQBP3W/Kc=",
31
+ "sha384": "yFOyqfEq6L/M6yeRUsNWU+PLAHSxeLLo731SIcvEz/A3epguT/b095EkgBsag2cg",
32
+ "sha512": "q78qH+ZehRdm4rDTSqki7tQ0MWLf9aw8q5XrI8whK4Ck57jqKIqPUWA4SfMrxAJqlClme24NhOqB3+IjItWmJA=="
33
+ }
34
+ },
35
+ "@min.js": {
36
+ "file": "ms.core-4.3.7-nightly3.2504-11.min.js",
37
+ "type": "text/javascript; charset=utf-8",
38
+ "integrity": "sha256-n0YjkZRW4wPD9yef3yzP9F0hMTma1sYNWIur51cg4DU= sha384-xJ81tEq0cARuhjfIv9AHUTHKkB3Woz3g858mylizh2EleHgXlcry2l0BtjN9nSSQ sha512-dV1PgPJ5gwf8G10WYP6ZM6nSXIz0cf0GgUDi7SgOB2SFSi78txRp48TTOeQRktF7HPTn9WSUPwCXqE71VTUDQA==",
39
+ "hashes": {
40
+ "sha256": "n0YjkZRW4wPD9yef3yzP9F0hMTma1sYNWIur51cg4DU=",
41
+ "sha384": "xJ81tEq0cARuhjfIv9AHUTHKkB3Woz3g858mylizh2EleHgXlcry2l0BtjN9nSSQ",
42
+ "sha512": "dV1PgPJ5gwf8G10WYP6ZM6nSXIz0cf0GgUDi7SgOB2SFSi78txRp48TTOeQRktF7HPTn9WSUPwCXqE71VTUDQA=="
43
+ }
44
+ }
45
+ }
46
+ }
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * 1DS JS SDK Core, 4.3.7-nightly3.2504-10
2
+ * 1DS JS SDK Core, 4.3.7-nightly3.2504-11
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  * (Microsoft Internal Only)
5
5
  */
@@ -8,8 +8,8 @@
8
8
  typeof exports === "object" && typeof module !== undef ? factory(exports) :
9
9
  typeof define === "function" && define.amd ? define(["exports"], factory) :
10
10
  (function(global){
11
- var nsKey, key, nm, theExports = {}, modName = "es5_ms_core_4_3_7_nightly3_2504_10", msMod="__ms$mod__";
12
- var mods={}, modDetail=mods[modName]={}, ver="4.3.7-nightly3.2504-10";
11
+ var nsKey, key, nm, theExports = {}, modName = "es5_ms_core_4_3_7_nightly3_2504_11", msMod="__ms$mod__";
12
+ var mods={}, modDetail=mods[modName]={}, ver="4.3.7-nightly3.2504-11";
13
13
  // Versioned namespace "oneDS4"
14
14
  var exportNs=global, nsKey="oneDS4", exportNs=exportNs[nsKey]=(exportNs[nsKey]||{});
15
15
  // Global namespace "oneDS"
@@ -37,7 +37,7 @@ var strShimPrototype = "prototype";
37
37
  var ObjClass$1 = Object;
38
38
  var ObjProto$1 = ObjClass$1[strShimPrototype];
39
39
 
40
- /*! https://github.com/nevware21/ts-utils v0.11.8 */
40
+ /*! https://github.com/nevware21/ts-utils v0.12.1 */
41
41
  /*#__NO_SIDE_EFFECTS__*/
42
42
  function _pureAssign(func1, func2) {
43
43
  return func1 || func2;
@@ -56,11 +56,12 @@ var __PROTO__ = "__proto__";
56
56
  var UNDEFINED = "undefined";
57
57
  var CONSTRUCTOR = "constructor";
58
58
  var SYMBOL = "Symbol";
59
- var POLYFILL_TAG = "_polyfill";
60
59
  var LENGTH = "length";
61
60
  var NAME = "name";
62
61
  var CALL = "call";
63
62
  var TO_STRING = "toString";
63
+ var GETTER_NAME = "__lookupGetter__";
64
+ var SETTER_NAME = "__lookupSetter__";
64
65
  var ObjClass = ( /*#__PURE__*/_pureAssign(Object));
65
66
  var ObjProto = ( /*#__PURE__*/_pureRef(ObjClass, PROTOTYPE));
66
67
  var StrCls = ( /*#__PURE__*/_pureAssign(String));
@@ -69,6 +70,8 @@ var MathCls = ( /*#__PURE__*/_pureAssign(Math));
69
70
  var ArrCls = ( /*#__PURE__*/_pureAssign(Array));
70
71
  var ArrProto = ( /*#__PURE__*/_pureRef(ArrCls, PROTOTYPE));
71
72
  var ArrSlice = ( /*#__PURE__*/_pureRef(ArrProto, "slice"));
73
+ var POLYFILL_TAG = "_polyfill";
74
+ var POLYFILL_TYPE_NAME = "__nw21$polytype__";
72
75
  function safe(func, argArray) {
73
76
  try {
74
77
  return {
@@ -112,7 +115,7 @@ function isUndefined(value) {
112
115
  }
113
116
  /*#__NO_SIDE_EFFECTS__*/
114
117
  function isStrictUndefined(arg) {
115
- return !isDefined(arg);
118
+ return arg === UNDEF_VALUE;
116
119
  }
117
120
  /*#__NO_SIDE_EFFECTS__*/
118
121
  function isNullOrUndefined(value) {
@@ -120,7 +123,7 @@ function isNullOrUndefined(value) {
120
123
  }
121
124
  /*#__NO_SIDE_EFFECTS__*/
122
125
  function isStrictNullOrUndefined(value) {
123
- return value === NULL_VALUE || !isDefined(value);
126
+ return value === NULL_VALUE || value === UNDEF_VALUE;
124
127
  }
125
128
  /*#__NO_SIDE_EFFECTS__*/
126
129
  function isDefined(arg) {
@@ -157,18 +160,133 @@ function isNotTruthy(value) {
157
160
  function isTruthy(value) {
158
161
  return !(!value || safeGet(function () { return !(value && (0 + value)); }, !value));
159
162
  }
160
- var objGetOwnPropertyDescriptor = ( /* #__PURE__ */_pureRef(ObjClass, "getOwnPropertyDescriptor"));
163
+ var asString = ( /* #__PURE__ */_pureAssign(StrCls));
164
+ var ERROR_TYPE = "[object Error]";
165
+ /*#__NO_SIDE_EFFECTS__*/
166
+ function dumpObj(object, format) {
167
+ var propertyValueDump = EMPTY;
168
+ var objType = ObjProto[TO_STRING][CALL](object);
169
+ if (objType === ERROR_TYPE) {
170
+ object = { stack: asString(object.stack), message: asString(object.message), name: asString(object.name) };
171
+ }
172
+ try {
173
+ propertyValueDump = JSON.stringify(object, NULL_VALUE, format ? ((typeof format === "number") ? format : 4) : UNDEF_VALUE);
174
+ propertyValueDump = (propertyValueDump ? propertyValueDump.replace(/"(\w+)"\s*:\s{0,1}/g, "$1: ") : NULL_VALUE) || asString(object);
175
+ }
176
+ catch (e) {
177
+ propertyValueDump = " - " + dumpObj(e, format);
178
+ }
179
+ return objType + ": " + propertyValueDump;
180
+ }
181
+ function throwError(message) {
182
+ throw new Error(message);
183
+ }
184
+ function throwTypeError(message) {
185
+ throw new TypeError(message);
186
+ }
187
+ function _throwIfNullOrUndefined(obj) {
188
+ if (isStrictNullOrUndefined(obj)) {
189
+ throwTypeError("Cannot convert undefined or null to object");
190
+ }
191
+ }
192
+ function _throwIfNotString(value) {
193
+ if (!isString(value)) {
194
+ throwTypeError("'" + dumpObj(value) + "' is not a string");
195
+ }
196
+ }
161
197
  /*#__NO_SIDE_EFFECTS__*/
162
198
  function objHasOwnProperty(obj, prop) {
163
199
  return !!obj && ObjProto.hasOwnProperty[CALL](obj, prop);
164
200
  }
165
- var objHasOwn = ( /*#__PURE__*/_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "hasOwn")), polyObjHasOwn));
201
+ var _unwrapFunction = ( _unwrapFunctionWithPoly);
202
+ /*#__NO_SIDE_EFFECTS__*/
203
+ function _unwrapFunctionWithPoly(funcName, clsProto, polyFunc) {
204
+ var clsFn = clsProto ? clsProto[funcName] : NULL_VALUE;
205
+ return function (thisArg) {
206
+ var theFunc = (thisArg ? thisArg[funcName] : NULL_VALUE) || clsFn;
207
+ if (theFunc || polyFunc) {
208
+ var theArgs = arguments;
209
+ return (theFunc || polyFunc).apply(thisArg, theFunc ? ArrSlice[CALL](theArgs, 1) : theArgs);
210
+ }
211
+ throwTypeError("\"" + asString(funcName) + "\" not defined for " + dumpObj(thisArg));
212
+ };
213
+ }
214
+ /*#__NO_SIDE_EFFECTS__*/
215
+ function _unwrapProp(propName) {
216
+ return function (thisArg) {
217
+ return thisArg[propName];
218
+ };
219
+ }
220
+ function _objPropertyIsEnum(obj, propKey) {
221
+ var desc;
222
+ var fn = ObjClass.getOwnPropertyDescriptor;
223
+ if (!isStrictNullOrUndefined(obj) && fn) {
224
+ desc = safe(fn, [obj, propKey]).v || NULL_VALUE;
225
+ }
226
+ if (!desc) {
227
+ desc = safe(function () {
228
+ for (var key in obj) {
229
+ if (key === propKey) {
230
+ return { enumerable: true };
231
+ }
232
+ }
233
+ }).v;
234
+ }
235
+ return (desc && desc.enumerable) || false;
236
+ }
237
+ var objPropertyIsEnumerable = ( /*#__PURE__*/_unwrapFunctionWithPoly("propertyIsEnumerable", NULL_VALUE, _objPropertyIsEnum));
238
+ function _isPropertyWritable(obj, prop) {
239
+ var result = false;
240
+ if (!(isString(obj) && (prop === LENGTH || isNumber(prop) || (isString(prop) && !isNaN(Number(prop)))))) {
241
+ var originalValue = obj[prop];
242
+ try {
243
+ obj[prop] = originalValue;
244
+ result = true;
245
+ }
246
+ catch (e) {
247
+ }
248
+ }
249
+ return result;
250
+ }
251
+ function polyObjGetOwnPropertyDescriptor(obj, prop) {
252
+ var descriptor;
253
+ _throwIfNullOrUndefined(obj);
254
+ var isLength = (prop === LENGTH && (isArray(obj) || isString(obj)));
255
+ if (isLength || objHasOwnProperty(obj, prop)) {
256
+ descriptor = {
257
+ configurable: !isLength,
258
+ enumerable: !isLength ? objPropertyIsEnumerable(obj, prop) : false
259
+ };
260
+ var isData = true;
261
+ if (GETTER_NAME in ObjProto && SETTER_NAME in ObjProto) {
262
+ var getter = obj[GETTER_NAME](prop);
263
+ var setter = obj[SETTER_NAME](prop);
264
+ if (getter || setter) {
265
+ isData = false;
266
+ if (getter) {
267
+ descriptor.get = getter;
268
+ }
269
+ if (setter) {
270
+ descriptor.set = setter;
271
+ }
272
+ }
273
+ }
274
+ if (isData) {
275
+ descriptor.value = obj[prop];
276
+ descriptor.writable = _isPropertyWritable(obj, prop);
277
+ }
278
+ }
279
+ return descriptor;
280
+ }
281
+ var objGetOwnPropertyDescriptor = ( /* #__PURE__ */_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "getOwnPropertyDescriptor")), polyObjGetOwnPropertyDescriptor));
166
282
  /*#__NO_SIDE_EFFECTS__*/
167
283
  function polyObjHasOwn(obj, prop) {
284
+ _throwIfNullOrUndefined(obj);
168
285
  return objHasOwnProperty(obj, prop) || !!objGetOwnPropertyDescriptor(obj, prop);
169
286
  }
287
+ var objHasOwn = ( /*#__PURE__*/_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "hasOwn")), polyObjHasOwn));
170
288
  function objForEachKey(theObject, callbackfn, thisArg) {
171
- if (theObject && isObject(theObject)) {
289
+ if (theObject && (isObject(theObject) || isFunction(theObject))) {
172
290
  for (var prop in theObject) {
173
291
  if (objHasOwn(theObject, prop)) {
174
292
  if (callbackfn[CALL](thisArg || theObject, prop, theObject[prop]) === -1) {
@@ -178,6 +296,18 @@ function objForEachKey(theObject, callbackfn, thisArg) {
178
296
  }
179
297
  }
180
298
  }
299
+ function arrForEach(theArray, callbackfn, thisArg) {
300
+ if (theArray) {
301
+ var len = theArray[LENGTH] >>> 0;
302
+ for (var idx = 0; idx < len; idx++) {
303
+ if (idx in theArray) {
304
+ if (callbackfn[CALL](thisArg || theArray, theArray[idx], idx, theArray) === -1) {
305
+ break;
306
+ }
307
+ }
308
+ }
309
+ }
310
+ }
181
311
  var propMap = {
182
312
  e: "enumerable",
183
313
  c: "configurable",
@@ -206,6 +336,7 @@ function _createProp(value) {
206
336
  return prop;
207
337
  }
208
338
  var objDefineProp = ( /*#__PURE__*/_pureRef(ObjClass, "defineProperty"));
339
+ var objDefineProperties = ( /*#__PURE__*/_pureRef(ObjClass, "defineProperties"));
209
340
  function objDefineAccessors(target, prop, getProp, setProp, configurable, enumerable) {
210
341
  var desc = {
211
342
  e: enumerable,
@@ -238,49 +369,50 @@ function _assignMapValue(theMap, key, value, writable) {
238
369
  writable: false
239
370
  });
240
371
  }
241
- var asString = ( /* #__PURE__ */_pureAssign(StrCls));
242
- var ERROR_TYPE = "[object Error]";
243
- /*#__NO_SIDE_EFFECTS__*/
244
- function dumpObj(object, format) {
245
- var propertyValueDump = EMPTY;
246
- var objType = ObjProto[TO_STRING][CALL](object);
247
- if (objType === ERROR_TYPE) {
248
- object = { stack: asString(object.stack), message: asString(object.message), name: asString(object.name) };
372
+ function polyObjIsFrozen(obj) {
373
+ if (isStrictNullOrUndefined(obj) || (!isObject(obj) && !isFunction(obj))) {
374
+ return true;
249
375
  }
250
- try {
251
- propertyValueDump = JSON.stringify(object, NULL_VALUE, format ? ((typeof format === "number") ? format : 4) : UNDEF_VALUE);
252
- propertyValueDump = (propertyValueDump ? propertyValueDump.replace(/"(\w+)"\s*:\s{0,1}/g, "$1: ") : NULL_VALUE) || asString(object);
376
+ if (isFunction(obj)) {
377
+ return false;
253
378
  }
254
- catch (e) {
255
- propertyValueDump = " - " + dumpObj(e, format);
379
+ for (var prop in obj) {
380
+ var desc = objGetOwnPropertyDescriptor(obj, prop);
381
+ if (desc && (desc.configurable || (desc.writable !== false && "value" in desc))) {
382
+ return false;
383
+ }
256
384
  }
257
- return objType + ": " + propertyValueDump;
258
- }
259
- function throwError(message) {
260
- throw new Error(message);
261
- }
262
- function throwTypeError(message) {
263
- throw new TypeError(message);
385
+ return true;
264
386
  }
387
+ var objIsFrozen = ( /* #__PURE__*/_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "isFrozen")), polyObjIsFrozen));
265
388
  var _objFreeze = ( /* #__PURE__ */_pureRef(ObjClass, "freeze"));
266
389
  function _doNothing(value) {
267
390
  return value;
268
391
  }
269
392
  /*#__NO_SIDE_EFFECTS__*/
270
393
  function _getProto(value) {
394
+ _throwIfNullOrUndefined(value);
271
395
  return value[__PROTO__] || NULL_VALUE;
272
396
  }
273
397
  var objAssign = ( /*#__PURE__*/_pureRef(ObjClass, "assign"));
274
398
  var objKeys = ( /*#__PURE__*/_pureRef(ObjClass, "keys"));
275
- function objDeepFreeze(value) {
276
- if (_objFreeze) {
277
- objForEachKey(value, function (key, value) {
278
- if (isArray(value) || isObject(value)) {
279
- objDeepFreeze(value);
399
+ function _deepFreeze(val, visited) {
400
+ if ((isArray(val) || isObject(val) || isFunction(val)) && !objIsFrozen(val)) {
401
+ for (var lp = 0; lp < visited.length; lp++) {
402
+ if (visited[lp] === val) {
403
+ return val;
280
404
  }
405
+ }
406
+ visited.push(val);
407
+ objForEachKey(val, function (_key, propValue) {
408
+ _deepFreeze(propValue, visited);
281
409
  });
410
+ objFreeze(val);
282
411
  }
283
- return objFreeze(value);
412
+ return val;
413
+ }
414
+ function objDeepFreeze(value) {
415
+ return _objFreeze ? _deepFreeze(value, []) : value;
284
416
  }
285
417
  var objFreeze = ( /* #__PURE__*/_pureAssign(_objFreeze, _doNothing));
286
418
  var objSeal = ( /* #__PURE__*/_pureAssign(( /* #__PURE__*/_pureRef(ObjClass, "seal")), _doNothing));
@@ -335,34 +467,13 @@ function _getGlobalConfig() {
335
467
  }
336
468
  return _globalCfg;
337
469
  }
338
- var _unwrapFunction = ( _unwrapFunctionWithPoly);
339
- /*#__NO_SIDE_EFFECTS__*/
340
- function _unwrapFunctionWithPoly(funcName, clsProto, polyFunc) {
341
- var clsFn = clsProto ? clsProto[funcName] : NULL_VALUE;
342
- return function (thisArg) {
343
- var theFunc = (thisArg ? thisArg[funcName] : NULL_VALUE) || clsFn;
344
- if (theFunc || polyFunc) {
345
- var theArgs = arguments;
346
- return (theFunc || polyFunc).apply(thisArg, theFunc ? ArrSlice[CALL](theArgs, 1) : theArgs);
347
- }
348
- throwTypeError("\"" + asString(funcName) + "\" not defined for " + dumpObj(thisArg));
349
- };
350
- }
351
- /*#__NO_SIDE_EFFECTS__*/
352
- function _unwrapProp(propName) {
353
- return function (thisArg) {
354
- return thisArg[propName];
355
- };
356
- }
357
470
  var mathMax = ( /*#__PURE__*/_pureRef(MathCls, "max"));
358
471
  var strSlice = ( /*#__PURE__*/_unwrapFunction("slice", StrProto));
359
472
  var strSubstring = ( /*#__PURE__*/_unwrapFunction("substring", StrProto));
360
473
  var strSubstr = ( /*#__PURE__*/_unwrapFunctionWithPoly("substr", StrProto, polyStrSubstr));
361
474
  /*#__NO_SIDE_EFFECTS__*/
362
475
  function polyStrSubstr(value, start, length) {
363
- if (isNullOrUndefined(value)) {
364
- throwTypeError("Invalid " + dumpObj(value));
365
- }
476
+ _throwIfNullOrUndefined(value);
366
477
  if (length < 0) {
367
478
  return EMPTY;
368
479
  }
@@ -379,8 +490,109 @@ function polyStrSubstr(value, start, length) {
379
490
  function strLeft(value, count) {
380
491
  return strSubstring(value, 0, count);
381
492
  }
493
+ function _tagAsPolyfill(target, polyfillTypeName) {
494
+ if (target) {
495
+ safe(function () {
496
+ target[POLYFILL_TAG] = true;
497
+ target[POLYFILL_TYPE_NAME] = polyfillTypeName;
498
+ });
499
+ safe(objDefine, [target, POLYFILL_TAG, {
500
+ v: true,
501
+ w: false,
502
+ e: false
503
+ }]);
504
+ safe(objDefine, [target, POLYFILL_TYPE_NAME, {
505
+ v: polyfillTypeName,
506
+ w: false,
507
+ e: false
508
+ }]);
509
+ }
510
+ return target;
511
+ }
512
+ /*#__NO_SIDE_EFFECTS__*/
513
+ function createCachedValue(value) {
514
+ return objDefineProp({
515
+ toJSON: function () { return value; }
516
+ }, "v", { value: value });
517
+ }
518
+ var _isProtoArray;
519
+ var objSetPrototypeOf = ( /* #__PURE__*/_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "setPrototypeOf")), _polyObjSetPrototypeOf));
520
+ function _polyObjSetPrototypeOf(obj, proto) {
521
+ var _a;
522
+ !_isProtoArray && (_isProtoArray = createCachedValue((_a = {}, _a[__PROTO__] = [], _a) instanceof Array));
523
+ _isProtoArray.v ? obj[__PROTO__] = proto : objForEachKey(proto, function (key, value) { return obj[key] = value; });
524
+ return obj;
525
+ }
526
+ var objCreate = ( /* #__PURE__*/_pureAssign(( /* #__PURE__*/_pureRef(ObjClass, "create")), polyObjCreate));
527
+ /*#__NO_SIDE_EFFECTS__*/
528
+ function polyObjCreate(obj, properties) {
529
+ var newObj;
530
+ function tempFunc() { }
531
+ if (!isStrictNullOrUndefined(obj)) {
532
+ var type = typeof obj;
533
+ if (type !== OBJECT && type !== FUNCTION) {
534
+ throwTypeError("Prototype must be an Object or function: " + dumpObj(obj));
535
+ }
536
+ tempFunc[PROTOTYPE] = obj;
537
+ safe(function () {
538
+ tempFunc[__PROTO__] = obj;
539
+ });
540
+ newObj = new tempFunc();
541
+ }
542
+ else {
543
+ newObj = {};
544
+ }
545
+ safe(_polyObjSetPrototypeOf, [newObj, obj]);
546
+ if (properties) {
547
+ safe(objDefineProperties, [newObj, properties]);
548
+ }
549
+ return newObj;
550
+ }
551
+ /*#__NO_SIDE_EFFECTS__*/
552
+ function utcNow() {
553
+ return (Date.now || polyUtcNow)();
554
+ }
555
+ /*#__NO_SIDE_EFFECTS__*/
556
+ function polyUtcNow() {
557
+ return new Date().getTime();
558
+ }
559
+ var _globalLazyTestHooks;
560
+ function _initTestHooks() {
561
+ _globalLazyTestHooks = _getGlobalConfig();
562
+ }
563
+ /*#__NO_SIDE_EFFECTS__*/
564
+ function getLazy(cb) {
565
+ var lazyValue = {};
566
+ !_globalLazyTestHooks && _initTestHooks();
567
+ lazyValue.b = _globalLazyTestHooks.lzy;
568
+ objDefineProp(lazyValue, "v", {
569
+ configurable: true,
570
+ get: function () {
571
+ var result = cb();
572
+ if (!_globalLazyTestHooks.lzy) {
573
+ objDefineProp(lazyValue, "v", {
574
+ value: result
575
+ });
576
+ }
577
+ lazyValue.b = _globalLazyTestHooks.lzy;
578
+ return result;
579
+ }
580
+ });
581
+ return lazyValue;
582
+ }
583
+ var mathRandom = ( /*#__PURE__*/_pureRef(MathCls, "random"));
584
+ var _uniqueInstanceId = ( /*#__PURE__*/getLazy(function () {
585
+ var value = (utcNow().toString(36).slice(2));
586
+ while (value.length < 16) {
587
+ value += mathRandom().toString(36).slice(2);
588
+ }
589
+ value = value.substring(0, 16);
590
+ return value;
591
+ }));
382
592
  var UNIQUE_REGISTRY_ID = "_urid";
593
+ var POLY_SYM = "$nw21sym";
383
594
  var _polySymbols;
595
+ var _polyId = 0;
384
596
  /*#__NO_SIDE_EFFECTS__*/
385
597
  function _globalSymbolRegistry() {
386
598
  if (!_polySymbols) {
@@ -392,12 +604,35 @@ function _globalSymbolRegistry() {
392
604
  var _wellKnownSymbolCache;
393
605
  /*#__NO_SIDE_EFFECTS__*/
394
606
  function polyNewSymbol(description) {
395
- var theSymbol = {
396
- description: asString(description),
397
- toString: function () { return SYMBOL + "(" + description + ")"; }
398
- };
399
- theSymbol[POLYFILL_TAG] = true;
400
- return theSymbol;
607
+ var uniqueId = "_" + _polyId++ + "_" + _uniqueInstanceId.v;
608
+ var symString = SYMBOL + "(" + description + ")";
609
+ var theSymbol = objCreate(null);
610
+ objDefine(theSymbol, "description", {
611
+ v: asString(description),
612
+ e: false,
613
+ w: false
614
+ });
615
+ objDefine(theSymbol, TO_STRING, {
616
+ v: function () { return symString + POLY_SYM + uniqueId; },
617
+ e: false,
618
+ w: false
619
+ });
620
+ objDefine(theSymbol, "valueOf", {
621
+ v: function () { return theSymbol; },
622
+ e: false,
623
+ w: false
624
+ });
625
+ objDefine(theSymbol, "v", {
626
+ v: symString,
627
+ e: false,
628
+ w: false
629
+ });
630
+ objDefine(theSymbol, "_uid", {
631
+ v: uniqueId,
632
+ e: false,
633
+ w: false
634
+ });
635
+ return _tagAsPolyfill(theSymbol, "symbol");
401
636
  }
402
637
  /*#__NO_SIDE_EFFECTS__*/
403
638
  function polySymbolFor(key) {
@@ -421,36 +656,6 @@ function polyGetKnownSymbol(name) {
421
656
  }
422
657
  return result;
423
658
  }
424
- var _globalLazyTestHooks;
425
- function _initTestHooks() {
426
- _globalLazyTestHooks = _getGlobalConfig();
427
- }
428
- /*#__NO_SIDE_EFFECTS__*/
429
- function getLazy(cb) {
430
- var lazyValue = {};
431
- !_globalLazyTestHooks && _initTestHooks();
432
- lazyValue.b = _globalLazyTestHooks.lzy;
433
- objDefineProp(lazyValue, "v", {
434
- configurable: true,
435
- get: function () {
436
- var result = cb();
437
- if (!_globalLazyTestHooks.lzy) {
438
- objDefineProp(lazyValue, "v", {
439
- value: result
440
- });
441
- }
442
- lazyValue.b = _globalLazyTestHooks.lzy;
443
- return result;
444
- }
445
- });
446
- return lazyValue;
447
- }
448
- /*#__NO_SIDE_EFFECTS__*/
449
- function createCachedValue(value) {
450
- return objDefineProp({
451
- toJSON: function () { return value; }
452
- }, "v", { value: value });
453
- }
454
659
  var WINDOW = "window";
455
660
  var _cachedGlobal;
456
661
  function _getGlobalInstFn(getFn, theArgs) {
@@ -621,18 +826,6 @@ function arrAppend(target, elms) {
621
826
  }
622
827
  return target;
623
828
  }
624
- function arrForEach(theArray, callbackfn, thisArg) {
625
- if (theArray) {
626
- var len = theArray[LENGTH] >>> 0;
627
- for (var idx = 0; idx < len; idx++) {
628
- if (idx in theArray) {
629
- if (callbackfn[CALL](thisArg || theArray, theArray[idx], idx, theArray) === -1) {
630
- break;
631
- }
632
- }
633
- }
634
- }
635
- }
636
829
  var arrIndexOf = ( /*#__PURE__*/_unwrapFunction("indexOf", ArrProto));
637
830
  var arrMap = ( /*#__PURE__*/_unwrapFunction("map", ArrProto));
638
831
  function arrSlice(theArray, start, end) {
@@ -644,30 +837,6 @@ function polyArrIncludes(theArray, searchElement, fromIndex) {
644
837
  }
645
838
  var arrIncludes = ( /*#__PURE__*/_unwrapFunctionWithPoly("includes", ArrProto, polyArrIncludes));
646
839
  var arrReduce = ( /*#__PURE__*/_unwrapFunction("reduce", ArrProto));
647
- var objCreate = ( /* #__PURE__*/_pureAssign(( /* #__PURE__*/_pureRef(ObjClass, "create")), polyObjCreate));
648
- /*#__NO_SIDE_EFFECTS__*/
649
- function polyObjCreate(obj) {
650
- if (!obj) {
651
- return {};
652
- }
653
- var type = typeof obj;
654
- if (type !== OBJECT && type !== FUNCTION) {
655
- throwTypeError("Prototype must be an Object or function: " + dumpObj(obj));
656
- }
657
- function tempFunc() { }
658
- tempFunc[PROTOTYPE] = obj;
659
- return new tempFunc();
660
- }
661
- var _isProtoArray;
662
- function objSetPrototypeOf(obj, proto) {
663
- var fn = ObjClass["setPrototypeOf"] ||
664
- function (d, b) {
665
- var _a;
666
- !_isProtoArray && (_isProtoArray = createCachedValue((_a = {}, _a[__PROTO__] = [], _a) instanceof Array));
667
- _isProtoArray.v ? d[__PROTO__] = b : objForEachKey(b, function (key, value) { return d[key] = value; });
668
- };
669
- return fn(obj, proto);
670
- }
671
840
  /*#__NO_SIDE_EFFECTS__*/
672
841
  function _createCustomError(name, d, b) {
673
842
  safe(objDefine, [d, NAME, { v: name, c: true, e: false }]);
@@ -709,19 +878,9 @@ function createCustomError(name, constructCb, errorBase) {
709
878
  }, theBaseClass);
710
879
  }
711
880
  /*#__NO_SIDE_EFFECTS__*/
712
- function utcNow() {
713
- return (Date.now || polyUtcNow)();
714
- }
715
- /*#__NO_SIDE_EFFECTS__*/
716
- function polyUtcNow() {
717
- return new Date().getTime();
718
- }
719
- /*#__NO_SIDE_EFFECTS__*/
720
881
  function _createTrimFn(exp) {
721
882
  return function _doTrim(value) {
722
- if (isNullOrUndefined(value)) {
723
- throwTypeError("strTrim called [" + dumpObj(value) + "]");
724
- }
883
+ _throwIfNullOrUndefined(value);
725
884
  if (value && value.replace) {
726
885
  value = value.replace(exp, EMPTY);
727
886
  }
@@ -933,9 +1092,7 @@ function perfNow() {
933
1092
  var strEndsWith = ( /*#__PURE__*/_unwrapFunctionWithPoly("endsWith", StrProto, polyStrEndsWith));
934
1093
  /*#__NO_SIDE_EFFECTS__*/
935
1094
  function polyStrEndsWith(value, searchString, length) {
936
- if (!isString(value)) {
937
- throwTypeError("'" + dumpObj(value) + "' is not a string");
938
- }
1095
+ _throwIfNotString(value);
939
1096
  var searchValue = isString(searchString) ? searchString : asString(searchString);
940
1097
  var end = (!isUndefined(length) && length < value[LENGTH]) ? length : value[LENGTH];
941
1098
  return strSubstring(value, end - searchValue[LENGTH], end) === searchValue;
@@ -944,9 +1101,7 @@ var strIndexOf = ( /*#__PURE__*/_unwrapFunction("indexOf", StrProto));
944
1101
  var strStartsWith = ( /*#__PURE__*/_unwrapFunctionWithPoly("startsWith", StrProto, polyStrStartsWith));
945
1102
  /*#__NO_SIDE_EFFECTS__*/
946
1103
  function polyStrStartsWith(value, searchString, position) {
947
- if (!isString(value)) {
948
- throwTypeError("'" + dumpObj(value) + "' is not a string");
949
- }
1104
+ _throwIfNotString(value);
950
1105
  var searchValue = isString(searchString) ? searchString : asString(searchString);
951
1106
  var pos = position > 0 ? position : 0;
952
1107
  return strSubstring(value, pos, pos + searchValue[LENGTH]) === searchValue;
@@ -2331,7 +2486,7 @@ function newId(maxLength) {
2331
2486
  return result;
2332
2487
  }
2333
2488
 
2334
- var version = '3.3.7-nightly3.2504-10';
2489
+ var version = '3.3.7-nightly3.2504-11';
2335
2490
  var instanceName = "." + newId(6);
2336
2491
  var _dataUid = 0;
2337
2492
  function _canAcceptData(target) {
@@ -6434,7 +6589,7 @@ var _DYN_RM_FIELD_SANITIZER = "rmFieldSanitizer";
6434
6589
  var _DYN_CAN_HANDLE = "canHandle";
6435
6590
 
6436
6591
  var _a;
6437
- var Version = '4.3.7-nightly3.2504-10';
6592
+ var Version = '4.3.7-nightly3.2504-11';
6438
6593
  var FullVersionString = "1DS-Web-JS-" + Version;
6439
6594
  var ObjHasOwnProperty = ObjProto$1.hasOwnProperty;
6440
6595
  var strDisabledPropertyName = "Microsoft_ApplicationInsights_BypassAjaxInstrumentation";
@@ -7190,4 +7345,4 @@ exports.toISOString = toISOString;
7190
7345
  exports.useXDomainRequest = useXDomainRequest;
7191
7346
 
7192
7347
  }));
7193
- //# sourceMappingURL=ms.core-4.3.7-nightly3.2504-10.js.map
7348
+ //# sourceMappingURL=ms.core-4.3.7-nightly3.2504-11.js.map