z-schema 3.21.0 → 3.24.1

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.
@@ -202,7 +202,7 @@ function typedArraySupport () {
202
202
  // Can typed array instances can be augmented?
203
203
  try {
204
204
  var arr = new Uint8Array(1)
205
- arr.__proto__ = {__proto__: Uint8Array.prototype, foo: function () { return 42 }}
205
+ arr.__proto__ = { __proto__: Uint8Array.prototype, foo: function () { return 42 } }
206
206
  return arr.foo() === 42
207
207
  } catch (e) {
208
208
  return false
@@ -210,26 +210,24 @@ function typedArraySupport () {
210
210
  }
211
211
 
212
212
  Object.defineProperty(Buffer.prototype, 'parent', {
213
+ enumerable: true,
213
214
  get: function () {
214
- if (!(this instanceof Buffer)) {
215
- return undefined
216
- }
215
+ if (!Buffer.isBuffer(this)) return undefined
217
216
  return this.buffer
218
217
  }
219
218
  })
220
219
 
221
220
  Object.defineProperty(Buffer.prototype, 'offset', {
221
+ enumerable: true,
222
222
  get: function () {
223
- if (!(this instanceof Buffer)) {
224
- return undefined
225
- }
223
+ if (!Buffer.isBuffer(this)) return undefined
226
224
  return this.byteOffset
227
225
  }
228
226
  })
229
227
 
230
228
  function createBuffer (length) {
231
229
  if (length > K_MAX_LENGTH) {
232
- throw new RangeError('Invalid typed array length')
230
+ throw new RangeError('The value "' + length + '" is invalid for option "size"')
233
231
  }
234
232
  // Return an augmented `Uint8Array` instance
235
233
  var buf = new Uint8Array(length)
@@ -251,8 +249,8 @@ function Buffer (arg, encodingOrOffset, length) {
251
249
  // Common case.
252
250
  if (typeof arg === 'number') {
253
251
  if (typeof encodingOrOffset === 'string') {
254
- throw new Error(
255
- 'If encoding is specified then the first argument must be a string'
252
+ throw new TypeError(
253
+ 'The "string" argument must be of type string. Received type number'
256
254
  )
257
255
  }
258
256
  return allocUnsafe(arg)
@@ -261,7 +259,7 @@ function Buffer (arg, encodingOrOffset, length) {
261
259
  }
262
260
 
263
261
  // Fix subarray() in ES2016. See: https://github.com/feross/buffer/pull/97
264
- if (typeof Symbol !== 'undefined' && Symbol.species &&
262
+ if (typeof Symbol !== 'undefined' && Symbol.species != null &&
265
263
  Buffer[Symbol.species] === Buffer) {
266
264
  Object.defineProperty(Buffer, Symbol.species, {
267
265
  value: null,
@@ -274,19 +272,51 @@ if (typeof Symbol !== 'undefined' && Symbol.species &&
274
272
  Buffer.poolSize = 8192 // not used by this implementation
275
273
 
276
274
  function from (value, encodingOrOffset, length) {
277
- if (typeof value === 'number') {
278
- throw new TypeError('"value" argument must not be a number')
275
+ if (typeof value === 'string') {
276
+ return fromString(value, encodingOrOffset)
277
+ }
278
+
279
+ if (ArrayBuffer.isView(value)) {
280
+ return fromArrayLike(value)
279
281
  }
280
282
 
281
- if (isArrayBuffer(value) || (value && isArrayBuffer(value.buffer))) {
283
+ if (value == null) {
284
+ throw TypeError(
285
+ 'The first argument must be one of type string, Buffer, ArrayBuffer, Array, ' +
286
+ 'or Array-like Object. Received type ' + (typeof value)
287
+ )
288
+ }
289
+
290
+ if (isInstance(value, ArrayBuffer) ||
291
+ (value && isInstance(value.buffer, ArrayBuffer))) {
282
292
  return fromArrayBuffer(value, encodingOrOffset, length)
283
293
  }
284
294
 
285
- if (typeof value === 'string') {
286
- return fromString(value, encodingOrOffset)
295
+ if (typeof value === 'number') {
296
+ throw new TypeError(
297
+ 'The "value" argument must not be of type number. Received type number'
298
+ )
299
+ }
300
+
301
+ var valueOf = value.valueOf && value.valueOf()
302
+ if (valueOf != null && valueOf !== value) {
303
+ return Buffer.from(valueOf, encodingOrOffset, length)
304
+ }
305
+
306
+ var b = fromObject(value)
307
+ if (b) return b
308
+
309
+ if (typeof Symbol !== 'undefined' && Symbol.toPrimitive != null &&
310
+ typeof value[Symbol.toPrimitive] === 'function') {
311
+ return Buffer.from(
312
+ value[Symbol.toPrimitive]('string'), encodingOrOffset, length
313
+ )
287
314
  }
288
315
 
289
- return fromObject(value)
316
+ throw new TypeError(
317
+ 'The first argument must be one of type string, Buffer, ArrayBuffer, Array, ' +
318
+ 'or Array-like Object. Received type ' + (typeof value)
319
+ )
290
320
  }
291
321
 
292
322
  /**
@@ -310,7 +340,7 @@ function assertSize (size) {
310
340
  if (typeof size !== 'number') {
311
341
  throw new TypeError('"size" argument must be of type number')
312
342
  } else if (size < 0) {
313
- throw new RangeError('"size" argument must not be negative')
343
+ throw new RangeError('The value "' + size + '" is invalid for option "size"')
314
344
  }
315
345
  }
316
346
 
@@ -425,20 +455,16 @@ function fromObject (obj) {
425
455
  return buf
426
456
  }
427
457
 
428
- if (obj) {
429
- if (ArrayBuffer.isView(obj) || 'length' in obj) {
430
- if (typeof obj.length !== 'number' || numberIsNaN(obj.length)) {
431
- return createBuffer(0)
432
- }
433
- return fromArrayLike(obj)
434
- }
435
-
436
- if (obj.type === 'Buffer' && Array.isArray(obj.data)) {
437
- return fromArrayLike(obj.data)
458
+ if (obj.length !== undefined) {
459
+ if (typeof obj.length !== 'number' || numberIsNaN(obj.length)) {
460
+ return createBuffer(0)
438
461
  }
462
+ return fromArrayLike(obj)
439
463
  }
440
464
 
441
- throw new TypeError('The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object.')
465
+ if (obj.type === 'Buffer' && Array.isArray(obj.data)) {
466
+ return fromArrayLike(obj.data)
467
+ }
442
468
  }
443
469
 
444
470
  function checked (length) {
@@ -459,12 +485,17 @@ function SlowBuffer (length) {
459
485
  }
460
486
 
461
487
  Buffer.isBuffer = function isBuffer (b) {
462
- return b != null && b._isBuffer === true
488
+ return b != null && b._isBuffer === true &&
489
+ b !== Buffer.prototype // so Buffer.isBuffer(Buffer.prototype) will be false
463
490
  }
464
491
 
465
492
  Buffer.compare = function compare (a, b) {
493
+ if (isInstance(a, Uint8Array)) a = Buffer.from(a, a.offset, a.byteLength)
494
+ if (isInstance(b, Uint8Array)) b = Buffer.from(b, b.offset, b.byteLength)
466
495
  if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {
467
- throw new TypeError('Arguments must be Buffers')
496
+ throw new TypeError(
497
+ 'The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array'
498
+ )
468
499
  }
469
500
 
470
501
  if (a === b) return 0
@@ -525,7 +556,7 @@ Buffer.concat = function concat (list, length) {
525
556
  var pos = 0
526
557
  for (i = 0; i < list.length; ++i) {
527
558
  var buf = list[i]
528
- if (ArrayBuffer.isView(buf)) {
559
+ if (isInstance(buf, Uint8Array)) {
529
560
  buf = Buffer.from(buf)
530
561
  }
531
562
  if (!Buffer.isBuffer(buf)) {
@@ -541,15 +572,19 @@ function byteLength (string, encoding) {
541
572
  if (Buffer.isBuffer(string)) {
542
573
  return string.length
543
574
  }
544
- if (ArrayBuffer.isView(string) || isArrayBuffer(string)) {
575
+ if (ArrayBuffer.isView(string) || isInstance(string, ArrayBuffer)) {
545
576
  return string.byteLength
546
577
  }
547
578
  if (typeof string !== 'string') {
548
- string = '' + string
579
+ throw new TypeError(
580
+ 'The "string" argument must be one of type string, Buffer, or ArrayBuffer. ' +
581
+ 'Received type ' + typeof string
582
+ )
549
583
  }
550
584
 
551
585
  var len = string.length
552
- if (len === 0) return 0
586
+ var mustMatch = (arguments.length > 2 && arguments[2] === true)
587
+ if (!mustMatch && len === 0) return 0
553
588
 
554
589
  // Use a for loop to avoid recursion
555
590
  var loweredCase = false
@@ -561,7 +596,6 @@ function byteLength (string, encoding) {
561
596
  return len
562
597
  case 'utf8':
563
598
  case 'utf-8':
564
- case undefined:
565
599
  return utf8ToBytes(string).length
566
600
  case 'ucs2':
567
601
  case 'ucs-2':
@@ -573,7 +607,9 @@ function byteLength (string, encoding) {
573
607
  case 'base64':
574
608
  return base64ToBytes(string).length
575
609
  default:
576
- if (loweredCase) return utf8ToBytes(string).length // assume utf8
610
+ if (loweredCase) {
611
+ return mustMatch ? -1 : utf8ToBytes(string).length // assume utf8
612
+ }
577
613
  encoding = ('' + encoding).toLowerCase()
578
614
  loweredCase = true
579
615
  }
@@ -720,16 +756,20 @@ Buffer.prototype.equals = function equals (b) {
720
756
  Buffer.prototype.inspect = function inspect () {
721
757
  var str = ''
722
758
  var max = exports.INSPECT_MAX_BYTES
723
- if (this.length > 0) {
724
- str = this.toString('hex', 0, max).match(/.{2}/g).join(' ')
725
- if (this.length > max) str += ' ... '
726
- }
759
+ str = this.toString('hex', 0, max).replace(/(.{2})/g, '$1 ').trim()
760
+ if (this.length > max) str += ' ... '
727
761
  return '<Buffer ' + str + '>'
728
762
  }
729
763
 
730
764
  Buffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {
765
+ if (isInstance(target, Uint8Array)) {
766
+ target = Buffer.from(target, target.offset, target.byteLength)
767
+ }
731
768
  if (!Buffer.isBuffer(target)) {
732
- throw new TypeError('Argument must be a Buffer')
769
+ throw new TypeError(
770
+ 'The "target" argument must be one of type Buffer or Uint8Array. ' +
771
+ 'Received type ' + (typeof target)
772
+ )
733
773
  }
734
774
 
735
775
  if (start === undefined) {
@@ -808,7 +848,7 @@ function bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {
808
848
  } else if (byteOffset < -0x80000000) {
809
849
  byteOffset = -0x80000000
810
850
  }
811
- byteOffset = +byteOffset // Coerce to Number.
851
+ byteOffset = +byteOffset // Coerce to Number.
812
852
  if (numberIsNaN(byteOffset)) {
813
853
  // byteOffset: it it's undefined, null, NaN, "foo", etc, search whole buffer
814
854
  byteOffset = dir ? 0 : (buffer.length - 1)
@@ -1060,8 +1100,8 @@ function utf8Slice (buf, start, end) {
1060
1100
  var codePoint = null
1061
1101
  var bytesPerSequence = (firstByte > 0xEF) ? 4
1062
1102
  : (firstByte > 0xDF) ? 3
1063
- : (firstByte > 0xBF) ? 2
1064
- : 1
1103
+ : (firstByte > 0xBF) ? 2
1104
+ : 1
1065
1105
 
1066
1106
  if (i + bytesPerSequence <= end) {
1067
1107
  var secondByte, thirdByte, fourthByte, tempCodePoint
@@ -1724,7 +1764,7 @@ Buffer.prototype.fill = function fill (val, start, end, encoding) {
1724
1764
  } else {
1725
1765
  var bytes = Buffer.isBuffer(val)
1726
1766
  ? val
1727
- : new Buffer(val, encoding)
1767
+ : Buffer.from(val, encoding)
1728
1768
  var len = bytes.length
1729
1769
  if (len === 0) {
1730
1770
  throw new TypeError('The value "' + val +
@@ -1879,19 +1919,20 @@ function blitBuffer (src, dst, offset, length) {
1879
1919
  return i
1880
1920
  }
1881
1921
 
1882
- // ArrayBuffers from another context (i.e. an iframe) do not pass the `instanceof` check
1883
- // but they should be treated as valid. See: https://github.com/feross/buffer/issues/166
1884
- function isArrayBuffer (obj) {
1885
- return obj instanceof ArrayBuffer ||
1886
- (obj != null && obj.constructor != null && obj.constructor.name === 'ArrayBuffer' &&
1887
- typeof obj.byteLength === 'number')
1922
+ // ArrayBuffer or Uint8Array objects from other contexts (i.e. iframes) do not pass
1923
+ // the `instanceof` check but they should be treated as of that type.
1924
+ // See: https://github.com/feross/buffer/issues/166
1925
+ function isInstance (obj, type) {
1926
+ return obj instanceof type ||
1927
+ (obj != null && obj.constructor != null && obj.constructor.name != null &&
1928
+ obj.constructor.name === type.name)
1888
1929
  }
1889
-
1890
1930
  function numberIsNaN (obj) {
1931
+ // For IE11 support
1891
1932
  return obj !== obj // eslint-disable-line no-self-compare
1892
1933
  }
1893
1934
 
1894
- },{"base64-js":1,"ieee754":8}],4:[function(require,module,exports){
1935
+ },{"base64-js":1,"ieee754":59}],4:[function(require,module,exports){
1895
1936
  module.exports = {
1896
1937
  "100": "Continue",
1897
1938
  "101": "Switching Protocols",
@@ -1958,6 +1999,877 @@ module.exports = {
1958
1999
  }
1959
2000
 
1960
2001
  },{}],5:[function(require,module,exports){
2002
+ require('../modules/es6.symbol');
2003
+ require('../modules/es6.object.to-string');
2004
+ module.exports = require('../modules/_core').Symbol;
2005
+
2006
+ },{"../modules/_core":11,"../modules/es6.object.to-string":54,"../modules/es6.symbol":55}],6:[function(require,module,exports){
2007
+ module.exports = function (it) {
2008
+ if (typeof it != 'function') throw TypeError(it + ' is not a function!');
2009
+ return it;
2010
+ };
2011
+
2012
+ },{}],7:[function(require,module,exports){
2013
+ var isObject = require('./_is-object');
2014
+ module.exports = function (it) {
2015
+ if (!isObject(it)) throw TypeError(it + ' is not an object!');
2016
+ return it;
2017
+ };
2018
+
2019
+ },{"./_is-object":27}],8:[function(require,module,exports){
2020
+ // false -> Array#indexOf
2021
+ // true -> Array#includes
2022
+ var toIObject = require('./_to-iobject');
2023
+ var toLength = require('./_to-length');
2024
+ var toAbsoluteIndex = require('./_to-absolute-index');
2025
+ module.exports = function (IS_INCLUDES) {
2026
+ return function ($this, el, fromIndex) {
2027
+ var O = toIObject($this);
2028
+ var length = toLength(O.length);
2029
+ var index = toAbsoluteIndex(fromIndex, length);
2030
+ var value;
2031
+ // Array#includes uses SameValueZero equality algorithm
2032
+ // eslint-disable-next-line no-self-compare
2033
+ if (IS_INCLUDES && el != el) while (length > index) {
2034
+ value = O[index++];
2035
+ // eslint-disable-next-line no-self-compare
2036
+ if (value != value) return true;
2037
+ // Array#indexOf ignores holes, Array#includes - not
2038
+ } else for (;length > index; index++) if (IS_INCLUDES || index in O) {
2039
+ if (O[index] === el) return IS_INCLUDES || index || 0;
2040
+ } return !IS_INCLUDES && -1;
2041
+ };
2042
+ };
2043
+
2044
+ },{"./_to-absolute-index":45,"./_to-iobject":47,"./_to-length":48}],9:[function(require,module,exports){
2045
+ // getting tag from 19.1.3.6 Object.prototype.toString()
2046
+ var cof = require('./_cof');
2047
+ var TAG = require('./_wks')('toStringTag');
2048
+ // ES3 wrong here
2049
+ var ARG = cof(function () { return arguments; }()) == 'Arguments';
2050
+
2051
+ // fallback for IE11 Script Access Denied error
2052
+ var tryGet = function (it, key) {
2053
+ try {
2054
+ return it[key];
2055
+ } catch (e) { /* empty */ }
2056
+ };
2057
+
2058
+ module.exports = function (it) {
2059
+ var O, T, B;
2060
+ return it === undefined ? 'Undefined' : it === null ? 'Null'
2061
+ // @@toStringTag case
2062
+ : typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T
2063
+ // builtinTag case
2064
+ : ARG ? cof(O)
2065
+ // ES3 arguments fallback
2066
+ : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;
2067
+ };
2068
+
2069
+ },{"./_cof":10,"./_wks":53}],10:[function(require,module,exports){
2070
+ var toString = {}.toString;
2071
+
2072
+ module.exports = function (it) {
2073
+ return toString.call(it).slice(8, -1);
2074
+ };
2075
+
2076
+ },{}],11:[function(require,module,exports){
2077
+ var core = module.exports = { version: '2.5.7' };
2078
+ if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef
2079
+
2080
+ },{}],12:[function(require,module,exports){
2081
+ // optional / simple context binding
2082
+ var aFunction = require('./_a-function');
2083
+ module.exports = function (fn, that, length) {
2084
+ aFunction(fn);
2085
+ if (that === undefined) return fn;
2086
+ switch (length) {
2087
+ case 1: return function (a) {
2088
+ return fn.call(that, a);
2089
+ };
2090
+ case 2: return function (a, b) {
2091
+ return fn.call(that, a, b);
2092
+ };
2093
+ case 3: return function (a, b, c) {
2094
+ return fn.call(that, a, b, c);
2095
+ };
2096
+ }
2097
+ return function (/* ...args */) {
2098
+ return fn.apply(that, arguments);
2099
+ };
2100
+ };
2101
+
2102
+ },{"./_a-function":6}],13:[function(require,module,exports){
2103
+ // 7.2.1 RequireObjectCoercible(argument)
2104
+ module.exports = function (it) {
2105
+ if (it == undefined) throw TypeError("Can't call method on " + it);
2106
+ return it;
2107
+ };
2108
+
2109
+ },{}],14:[function(require,module,exports){
2110
+ // Thank's IE8 for his funny defineProperty
2111
+ module.exports = !require('./_fails')(function () {
2112
+ return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
2113
+ });
2114
+
2115
+ },{"./_fails":19}],15:[function(require,module,exports){
2116
+ var isObject = require('./_is-object');
2117
+ var document = require('./_global').document;
2118
+ // typeof document.createElement is 'object' in old IE
2119
+ var is = isObject(document) && isObject(document.createElement);
2120
+ module.exports = function (it) {
2121
+ return is ? document.createElement(it) : {};
2122
+ };
2123
+
2124
+ },{"./_global":20,"./_is-object":27}],16:[function(require,module,exports){
2125
+ // IE 8- don't enum bug keys
2126
+ module.exports = (
2127
+ 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'
2128
+ ).split(',');
2129
+
2130
+ },{}],17:[function(require,module,exports){
2131
+ // all enumerable object keys, includes symbols
2132
+ var getKeys = require('./_object-keys');
2133
+ var gOPS = require('./_object-gops');
2134
+ var pIE = require('./_object-pie');
2135
+ module.exports = function (it) {
2136
+ var result = getKeys(it);
2137
+ var getSymbols = gOPS.f;
2138
+ if (getSymbols) {
2139
+ var symbols = getSymbols(it);
2140
+ var isEnum = pIE.f;
2141
+ var i = 0;
2142
+ var key;
2143
+ while (symbols.length > i) if (isEnum.call(it, key = symbols[i++])) result.push(key);
2144
+ } return result;
2145
+ };
2146
+
2147
+ },{"./_object-gops":36,"./_object-keys":38,"./_object-pie":39}],18:[function(require,module,exports){
2148
+ var global = require('./_global');
2149
+ var core = require('./_core');
2150
+ var hide = require('./_hide');
2151
+ var redefine = require('./_redefine');
2152
+ var ctx = require('./_ctx');
2153
+ var PROTOTYPE = 'prototype';
2154
+
2155
+ var $export = function (type, name, source) {
2156
+ var IS_FORCED = type & $export.F;
2157
+ var IS_GLOBAL = type & $export.G;
2158
+ var IS_STATIC = type & $export.S;
2159
+ var IS_PROTO = type & $export.P;
2160
+ var IS_BIND = type & $export.B;
2161
+ var target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE];
2162
+ var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});
2163
+ var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {});
2164
+ var key, own, out, exp;
2165
+ if (IS_GLOBAL) source = name;
2166
+ for (key in source) {
2167
+ // contains in native
2168
+ own = !IS_FORCED && target && target[key] !== undefined;
2169
+ // export native or passed
2170
+ out = (own ? target : source)[key];
2171
+ // bind timers to global for call from export context
2172
+ exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;
2173
+ // extend global
2174
+ if (target) redefine(target, key, out, type & $export.U);
2175
+ // export
2176
+ if (exports[key] != out) hide(exports, key, exp);
2177
+ if (IS_PROTO && expProto[key] != out) expProto[key] = out;
2178
+ }
2179
+ };
2180
+ global.core = core;
2181
+ // type bitmap
2182
+ $export.F = 1; // forced
2183
+ $export.G = 2; // global
2184
+ $export.S = 4; // static
2185
+ $export.P = 8; // proto
2186
+ $export.B = 16; // bind
2187
+ $export.W = 32; // wrap
2188
+ $export.U = 64; // safe
2189
+ $export.R = 128; // real proto method for `library`
2190
+ module.exports = $export;
2191
+
2192
+ },{"./_core":11,"./_ctx":12,"./_global":20,"./_hide":22,"./_redefine":41}],19:[function(require,module,exports){
2193
+ module.exports = function (exec) {
2194
+ try {
2195
+ return !!exec();
2196
+ } catch (e) {
2197
+ return true;
2198
+ }
2199
+ };
2200
+
2201
+ },{}],20:[function(require,module,exports){
2202
+ // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
2203
+ var global = module.exports = typeof window != 'undefined' && window.Math == Math
2204
+ ? window : typeof self != 'undefined' && self.Math == Math ? self
2205
+ // eslint-disable-next-line no-new-func
2206
+ : Function('return this')();
2207
+ if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef
2208
+
2209
+ },{}],21:[function(require,module,exports){
2210
+ var hasOwnProperty = {}.hasOwnProperty;
2211
+ module.exports = function (it, key) {
2212
+ return hasOwnProperty.call(it, key);
2213
+ };
2214
+
2215
+ },{}],22:[function(require,module,exports){
2216
+ var dP = require('./_object-dp');
2217
+ var createDesc = require('./_property-desc');
2218
+ module.exports = require('./_descriptors') ? function (object, key, value) {
2219
+ return dP.f(object, key, createDesc(1, value));
2220
+ } : function (object, key, value) {
2221
+ object[key] = value;
2222
+ return object;
2223
+ };
2224
+
2225
+ },{"./_descriptors":14,"./_object-dp":31,"./_property-desc":40}],23:[function(require,module,exports){
2226
+ var document = require('./_global').document;
2227
+ module.exports = document && document.documentElement;
2228
+
2229
+ },{"./_global":20}],24:[function(require,module,exports){
2230
+ module.exports = !require('./_descriptors') && !require('./_fails')(function () {
2231
+ return Object.defineProperty(require('./_dom-create')('div'), 'a', { get: function () { return 7; } }).a != 7;
2232
+ });
2233
+
2234
+ },{"./_descriptors":14,"./_dom-create":15,"./_fails":19}],25:[function(require,module,exports){
2235
+ // fallback for non-array-like ES3 and non-enumerable old V8 strings
2236
+ var cof = require('./_cof');
2237
+ // eslint-disable-next-line no-prototype-builtins
2238
+ module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
2239
+ return cof(it) == 'String' ? it.split('') : Object(it);
2240
+ };
2241
+
2242
+ },{"./_cof":10}],26:[function(require,module,exports){
2243
+ // 7.2.2 IsArray(argument)
2244
+ var cof = require('./_cof');
2245
+ module.exports = Array.isArray || function isArray(arg) {
2246
+ return cof(arg) == 'Array';
2247
+ };
2248
+
2249
+ },{"./_cof":10}],27:[function(require,module,exports){
2250
+ module.exports = function (it) {
2251
+ return typeof it === 'object' ? it !== null : typeof it === 'function';
2252
+ };
2253
+
2254
+ },{}],28:[function(require,module,exports){
2255
+ module.exports = false;
2256
+
2257
+ },{}],29:[function(require,module,exports){
2258
+ var META = require('./_uid')('meta');
2259
+ var isObject = require('./_is-object');
2260
+ var has = require('./_has');
2261
+ var setDesc = require('./_object-dp').f;
2262
+ var id = 0;
2263
+ var isExtensible = Object.isExtensible || function () {
2264
+ return true;
2265
+ };
2266
+ var FREEZE = !require('./_fails')(function () {
2267
+ return isExtensible(Object.preventExtensions({}));
2268
+ });
2269
+ var setMeta = function (it) {
2270
+ setDesc(it, META, { value: {
2271
+ i: 'O' + ++id, // object ID
2272
+ w: {} // weak collections IDs
2273
+ } });
2274
+ };
2275
+ var fastKey = function (it, create) {
2276
+ // return primitive with prefix
2277
+ if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;
2278
+ if (!has(it, META)) {
2279
+ // can't set metadata to uncaught frozen object
2280
+ if (!isExtensible(it)) return 'F';
2281
+ // not necessary to add metadata
2282
+ if (!create) return 'E';
2283
+ // add missing metadata
2284
+ setMeta(it);
2285
+ // return object ID
2286
+ } return it[META].i;
2287
+ };
2288
+ var getWeak = function (it, create) {
2289
+ if (!has(it, META)) {
2290
+ // can't set metadata to uncaught frozen object
2291
+ if (!isExtensible(it)) return true;
2292
+ // not necessary to add metadata
2293
+ if (!create) return false;
2294
+ // add missing metadata
2295
+ setMeta(it);
2296
+ // return hash weak collections IDs
2297
+ } return it[META].w;
2298
+ };
2299
+ // add metadata on freeze-family methods calling
2300
+ var onFreeze = function (it) {
2301
+ if (FREEZE && meta.NEED && isExtensible(it) && !has(it, META)) setMeta(it);
2302
+ return it;
2303
+ };
2304
+ var meta = module.exports = {
2305
+ KEY: META,
2306
+ NEED: false,
2307
+ fastKey: fastKey,
2308
+ getWeak: getWeak,
2309
+ onFreeze: onFreeze
2310
+ };
2311
+
2312
+ },{"./_fails":19,"./_has":21,"./_is-object":27,"./_object-dp":31,"./_uid":50}],30:[function(require,module,exports){
2313
+ // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
2314
+ var anObject = require('./_an-object');
2315
+ var dPs = require('./_object-dps');
2316
+ var enumBugKeys = require('./_enum-bug-keys');
2317
+ var IE_PROTO = require('./_shared-key')('IE_PROTO');
2318
+ var Empty = function () { /* empty */ };
2319
+ var PROTOTYPE = 'prototype';
2320
+
2321
+ // Create object with fake `null` prototype: use iframe Object with cleared prototype
2322
+ var createDict = function () {
2323
+ // Thrash, waste and sodomy: IE GC bug
2324
+ var iframe = require('./_dom-create')('iframe');
2325
+ var i = enumBugKeys.length;
2326
+ var lt = '<';
2327
+ var gt = '>';
2328
+ var iframeDocument;
2329
+ iframe.style.display = 'none';
2330
+ require('./_html').appendChild(iframe);
2331
+ iframe.src = 'javascript:'; // eslint-disable-line no-script-url
2332
+ // createDict = iframe.contentWindow.Object;
2333
+ // html.removeChild(iframe);
2334
+ iframeDocument = iframe.contentWindow.document;
2335
+ iframeDocument.open();
2336
+ iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
2337
+ iframeDocument.close();
2338
+ createDict = iframeDocument.F;
2339
+ while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];
2340
+ return createDict();
2341
+ };
2342
+
2343
+ module.exports = Object.create || function create(O, Properties) {
2344
+ var result;
2345
+ if (O !== null) {
2346
+ Empty[PROTOTYPE] = anObject(O);
2347
+ result = new Empty();
2348
+ Empty[PROTOTYPE] = null;
2349
+ // add "__proto__" for Object.getPrototypeOf polyfill
2350
+ result[IE_PROTO] = O;
2351
+ } else result = createDict();
2352
+ return Properties === undefined ? result : dPs(result, Properties);
2353
+ };
2354
+
2355
+ },{"./_an-object":7,"./_dom-create":15,"./_enum-bug-keys":16,"./_html":23,"./_object-dps":32,"./_shared-key":43}],31:[function(require,module,exports){
2356
+ var anObject = require('./_an-object');
2357
+ var IE8_DOM_DEFINE = require('./_ie8-dom-define');
2358
+ var toPrimitive = require('./_to-primitive');
2359
+ var dP = Object.defineProperty;
2360
+
2361
+ exports.f = require('./_descriptors') ? Object.defineProperty : function defineProperty(O, P, Attributes) {
2362
+ anObject(O);
2363
+ P = toPrimitive(P, true);
2364
+ anObject(Attributes);
2365
+ if (IE8_DOM_DEFINE) try {
2366
+ return dP(O, P, Attributes);
2367
+ } catch (e) { /* empty */ }
2368
+ if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
2369
+ if ('value' in Attributes) O[P] = Attributes.value;
2370
+ return O;
2371
+ };
2372
+
2373
+ },{"./_an-object":7,"./_descriptors":14,"./_ie8-dom-define":24,"./_to-primitive":49}],32:[function(require,module,exports){
2374
+ var dP = require('./_object-dp');
2375
+ var anObject = require('./_an-object');
2376
+ var getKeys = require('./_object-keys');
2377
+
2378
+ module.exports = require('./_descriptors') ? Object.defineProperties : function defineProperties(O, Properties) {
2379
+ anObject(O);
2380
+ var keys = getKeys(Properties);
2381
+ var length = keys.length;
2382
+ var i = 0;
2383
+ var P;
2384
+ while (length > i) dP.f(O, P = keys[i++], Properties[P]);
2385
+ return O;
2386
+ };
2387
+
2388
+ },{"./_an-object":7,"./_descriptors":14,"./_object-dp":31,"./_object-keys":38}],33:[function(require,module,exports){
2389
+ var pIE = require('./_object-pie');
2390
+ var createDesc = require('./_property-desc');
2391
+ var toIObject = require('./_to-iobject');
2392
+ var toPrimitive = require('./_to-primitive');
2393
+ var has = require('./_has');
2394
+ var IE8_DOM_DEFINE = require('./_ie8-dom-define');
2395
+ var gOPD = Object.getOwnPropertyDescriptor;
2396
+
2397
+ exports.f = require('./_descriptors') ? gOPD : function getOwnPropertyDescriptor(O, P) {
2398
+ O = toIObject(O);
2399
+ P = toPrimitive(P, true);
2400
+ if (IE8_DOM_DEFINE) try {
2401
+ return gOPD(O, P);
2402
+ } catch (e) { /* empty */ }
2403
+ if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]);
2404
+ };
2405
+
2406
+ },{"./_descriptors":14,"./_has":21,"./_ie8-dom-define":24,"./_object-pie":39,"./_property-desc":40,"./_to-iobject":47,"./_to-primitive":49}],34:[function(require,module,exports){
2407
+ // fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window
2408
+ var toIObject = require('./_to-iobject');
2409
+ var gOPN = require('./_object-gopn').f;
2410
+ var toString = {}.toString;
2411
+
2412
+ var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames
2413
+ ? Object.getOwnPropertyNames(window) : [];
2414
+
2415
+ var getWindowNames = function (it) {
2416
+ try {
2417
+ return gOPN(it);
2418
+ } catch (e) {
2419
+ return windowNames.slice();
2420
+ }
2421
+ };
2422
+
2423
+ module.exports.f = function getOwnPropertyNames(it) {
2424
+ return windowNames && toString.call(it) == '[object Window]' ? getWindowNames(it) : gOPN(toIObject(it));
2425
+ };
2426
+
2427
+ },{"./_object-gopn":35,"./_to-iobject":47}],35:[function(require,module,exports){
2428
+ // 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)
2429
+ var $keys = require('./_object-keys-internal');
2430
+ var hiddenKeys = require('./_enum-bug-keys').concat('length', 'prototype');
2431
+
2432
+ exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
2433
+ return $keys(O, hiddenKeys);
2434
+ };
2435
+
2436
+ },{"./_enum-bug-keys":16,"./_object-keys-internal":37}],36:[function(require,module,exports){
2437
+ exports.f = Object.getOwnPropertySymbols;
2438
+
2439
+ },{}],37:[function(require,module,exports){
2440
+ var has = require('./_has');
2441
+ var toIObject = require('./_to-iobject');
2442
+ var arrayIndexOf = require('./_array-includes')(false);
2443
+ var IE_PROTO = require('./_shared-key')('IE_PROTO');
2444
+
2445
+ module.exports = function (object, names) {
2446
+ var O = toIObject(object);
2447
+ var i = 0;
2448
+ var result = [];
2449
+ var key;
2450
+ for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);
2451
+ // Don't enum bug & hidden keys
2452
+ while (names.length > i) if (has(O, key = names[i++])) {
2453
+ ~arrayIndexOf(result, key) || result.push(key);
2454
+ }
2455
+ return result;
2456
+ };
2457
+
2458
+ },{"./_array-includes":8,"./_has":21,"./_shared-key":43,"./_to-iobject":47}],38:[function(require,module,exports){
2459
+ // 19.1.2.14 / 15.2.3.14 Object.keys(O)
2460
+ var $keys = require('./_object-keys-internal');
2461
+ var enumBugKeys = require('./_enum-bug-keys');
2462
+
2463
+ module.exports = Object.keys || function keys(O) {
2464
+ return $keys(O, enumBugKeys);
2465
+ };
2466
+
2467
+ },{"./_enum-bug-keys":16,"./_object-keys-internal":37}],39:[function(require,module,exports){
2468
+ exports.f = {}.propertyIsEnumerable;
2469
+
2470
+ },{}],40:[function(require,module,exports){
2471
+ module.exports = function (bitmap, value) {
2472
+ return {
2473
+ enumerable: !(bitmap & 1),
2474
+ configurable: !(bitmap & 2),
2475
+ writable: !(bitmap & 4),
2476
+ value: value
2477
+ };
2478
+ };
2479
+
2480
+ },{}],41:[function(require,module,exports){
2481
+ var global = require('./_global');
2482
+ var hide = require('./_hide');
2483
+ var has = require('./_has');
2484
+ var SRC = require('./_uid')('src');
2485
+ var TO_STRING = 'toString';
2486
+ var $toString = Function[TO_STRING];
2487
+ var TPL = ('' + $toString).split(TO_STRING);
2488
+
2489
+ require('./_core').inspectSource = function (it) {
2490
+ return $toString.call(it);
2491
+ };
2492
+
2493
+ (module.exports = function (O, key, val, safe) {
2494
+ var isFunction = typeof val == 'function';
2495
+ if (isFunction) has(val, 'name') || hide(val, 'name', key);
2496
+ if (O[key] === val) return;
2497
+ if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key)));
2498
+ if (O === global) {
2499
+ O[key] = val;
2500
+ } else if (!safe) {
2501
+ delete O[key];
2502
+ hide(O, key, val);
2503
+ } else if (O[key]) {
2504
+ O[key] = val;
2505
+ } else {
2506
+ hide(O, key, val);
2507
+ }
2508
+ // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
2509
+ })(Function.prototype, TO_STRING, function toString() {
2510
+ return typeof this == 'function' && this[SRC] || $toString.call(this);
2511
+ });
2512
+
2513
+ },{"./_core":11,"./_global":20,"./_has":21,"./_hide":22,"./_uid":50}],42:[function(require,module,exports){
2514
+ var def = require('./_object-dp').f;
2515
+ var has = require('./_has');
2516
+ var TAG = require('./_wks')('toStringTag');
2517
+
2518
+ module.exports = function (it, tag, stat) {
2519
+ if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });
2520
+ };
2521
+
2522
+ },{"./_has":21,"./_object-dp":31,"./_wks":53}],43:[function(require,module,exports){
2523
+ var shared = require('./_shared')('keys');
2524
+ var uid = require('./_uid');
2525
+ module.exports = function (key) {
2526
+ return shared[key] || (shared[key] = uid(key));
2527
+ };
2528
+
2529
+ },{"./_shared":44,"./_uid":50}],44:[function(require,module,exports){
2530
+ var core = require('./_core');
2531
+ var global = require('./_global');
2532
+ var SHARED = '__core-js_shared__';
2533
+ var store = global[SHARED] || (global[SHARED] = {});
2534
+
2535
+ (module.exports = function (key, value) {
2536
+ return store[key] || (store[key] = value !== undefined ? value : {});
2537
+ })('versions', []).push({
2538
+ version: core.version,
2539
+ mode: require('./_library') ? 'pure' : 'global',
2540
+ copyright: '© 2018 Denis Pushkarev (zloirock.ru)'
2541
+ });
2542
+
2543
+ },{"./_core":11,"./_global":20,"./_library":28}],45:[function(require,module,exports){
2544
+ var toInteger = require('./_to-integer');
2545
+ var max = Math.max;
2546
+ var min = Math.min;
2547
+ module.exports = function (index, length) {
2548
+ index = toInteger(index);
2549
+ return index < 0 ? max(index + length, 0) : min(index, length);
2550
+ };
2551
+
2552
+ },{"./_to-integer":46}],46:[function(require,module,exports){
2553
+ // 7.1.4 ToInteger
2554
+ var ceil = Math.ceil;
2555
+ var floor = Math.floor;
2556
+ module.exports = function (it) {
2557
+ return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);
2558
+ };
2559
+
2560
+ },{}],47:[function(require,module,exports){
2561
+ // to indexed object, toObject with fallback for non-array-like ES3 strings
2562
+ var IObject = require('./_iobject');
2563
+ var defined = require('./_defined');
2564
+ module.exports = function (it) {
2565
+ return IObject(defined(it));
2566
+ };
2567
+
2568
+ },{"./_defined":13,"./_iobject":25}],48:[function(require,module,exports){
2569
+ // 7.1.15 ToLength
2570
+ var toInteger = require('./_to-integer');
2571
+ var min = Math.min;
2572
+ module.exports = function (it) {
2573
+ return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991
2574
+ };
2575
+
2576
+ },{"./_to-integer":46}],49:[function(require,module,exports){
2577
+ // 7.1.1 ToPrimitive(input [, PreferredType])
2578
+ var isObject = require('./_is-object');
2579
+ // instead of the ES6 spec version, we didn't implement @@toPrimitive case
2580
+ // and the second argument - flag - preferred type is a string
2581
+ module.exports = function (it, S) {
2582
+ if (!isObject(it)) return it;
2583
+ var fn, val;
2584
+ if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
2585
+ if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;
2586
+ if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
2587
+ throw TypeError("Can't convert object to primitive value");
2588
+ };
2589
+
2590
+ },{"./_is-object":27}],50:[function(require,module,exports){
2591
+ var id = 0;
2592
+ var px = Math.random();
2593
+ module.exports = function (key) {
2594
+ return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
2595
+ };
2596
+
2597
+ },{}],51:[function(require,module,exports){
2598
+ var global = require('./_global');
2599
+ var core = require('./_core');
2600
+ var LIBRARY = require('./_library');
2601
+ var wksExt = require('./_wks-ext');
2602
+ var defineProperty = require('./_object-dp').f;
2603
+ module.exports = function (name) {
2604
+ var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {});
2605
+ if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty($Symbol, name, { value: wksExt.f(name) });
2606
+ };
2607
+
2608
+ },{"./_core":11,"./_global":20,"./_library":28,"./_object-dp":31,"./_wks-ext":52}],52:[function(require,module,exports){
2609
+ exports.f = require('./_wks');
2610
+
2611
+ },{"./_wks":53}],53:[function(require,module,exports){
2612
+ var store = require('./_shared')('wks');
2613
+ var uid = require('./_uid');
2614
+ var Symbol = require('./_global').Symbol;
2615
+ var USE_SYMBOL = typeof Symbol == 'function';
2616
+
2617
+ var $exports = module.exports = function (name) {
2618
+ return store[name] || (store[name] =
2619
+ USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));
2620
+ };
2621
+
2622
+ $exports.store = store;
2623
+
2624
+ },{"./_global":20,"./_shared":44,"./_uid":50}],54:[function(require,module,exports){
2625
+ 'use strict';
2626
+ // 19.1.3.6 Object.prototype.toString()
2627
+ var classof = require('./_classof');
2628
+ var test = {};
2629
+ test[require('./_wks')('toStringTag')] = 'z';
2630
+ if (test + '' != '[object z]') {
2631
+ require('./_redefine')(Object.prototype, 'toString', function toString() {
2632
+ return '[object ' + classof(this) + ']';
2633
+ }, true);
2634
+ }
2635
+
2636
+ },{"./_classof":9,"./_redefine":41,"./_wks":53}],55:[function(require,module,exports){
2637
+ 'use strict';
2638
+ // ECMAScript 6 symbols shim
2639
+ var global = require('./_global');
2640
+ var has = require('./_has');
2641
+ var DESCRIPTORS = require('./_descriptors');
2642
+ var $export = require('./_export');
2643
+ var redefine = require('./_redefine');
2644
+ var META = require('./_meta').KEY;
2645
+ var $fails = require('./_fails');
2646
+ var shared = require('./_shared');
2647
+ var setToStringTag = require('./_set-to-string-tag');
2648
+ var uid = require('./_uid');
2649
+ var wks = require('./_wks');
2650
+ var wksExt = require('./_wks-ext');
2651
+ var wksDefine = require('./_wks-define');
2652
+ var enumKeys = require('./_enum-keys');
2653
+ var isArray = require('./_is-array');
2654
+ var anObject = require('./_an-object');
2655
+ var isObject = require('./_is-object');
2656
+ var toIObject = require('./_to-iobject');
2657
+ var toPrimitive = require('./_to-primitive');
2658
+ var createDesc = require('./_property-desc');
2659
+ var _create = require('./_object-create');
2660
+ var gOPNExt = require('./_object-gopn-ext');
2661
+ var $GOPD = require('./_object-gopd');
2662
+ var $DP = require('./_object-dp');
2663
+ var $keys = require('./_object-keys');
2664
+ var gOPD = $GOPD.f;
2665
+ var dP = $DP.f;
2666
+ var gOPN = gOPNExt.f;
2667
+ var $Symbol = global.Symbol;
2668
+ var $JSON = global.JSON;
2669
+ var _stringify = $JSON && $JSON.stringify;
2670
+ var PROTOTYPE = 'prototype';
2671
+ var HIDDEN = wks('_hidden');
2672
+ var TO_PRIMITIVE = wks('toPrimitive');
2673
+ var isEnum = {}.propertyIsEnumerable;
2674
+ var SymbolRegistry = shared('symbol-registry');
2675
+ var AllSymbols = shared('symbols');
2676
+ var OPSymbols = shared('op-symbols');
2677
+ var ObjectProto = Object[PROTOTYPE];
2678
+ var USE_NATIVE = typeof $Symbol == 'function';
2679
+ var QObject = global.QObject;
2680
+ // Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173
2681
+ var setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;
2682
+
2683
+ // fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687
2684
+ var setSymbolDesc = DESCRIPTORS && $fails(function () {
2685
+ return _create(dP({}, 'a', {
2686
+ get: function () { return dP(this, 'a', { value: 7 }).a; }
2687
+ })).a != 7;
2688
+ }) ? function (it, key, D) {
2689
+ var protoDesc = gOPD(ObjectProto, key);
2690
+ if (protoDesc) delete ObjectProto[key];
2691
+ dP(it, key, D);
2692
+ if (protoDesc && it !== ObjectProto) dP(ObjectProto, key, protoDesc);
2693
+ } : dP;
2694
+
2695
+ var wrap = function (tag) {
2696
+ var sym = AllSymbols[tag] = _create($Symbol[PROTOTYPE]);
2697
+ sym._k = tag;
2698
+ return sym;
2699
+ };
2700
+
2701
+ var isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function (it) {
2702
+ return typeof it == 'symbol';
2703
+ } : function (it) {
2704
+ return it instanceof $Symbol;
2705
+ };
2706
+
2707
+ var $defineProperty = function defineProperty(it, key, D) {
2708
+ if (it === ObjectProto) $defineProperty(OPSymbols, key, D);
2709
+ anObject(it);
2710
+ key = toPrimitive(key, true);
2711
+ anObject(D);
2712
+ if (has(AllSymbols, key)) {
2713
+ if (!D.enumerable) {
2714
+ if (!has(it, HIDDEN)) dP(it, HIDDEN, createDesc(1, {}));
2715
+ it[HIDDEN][key] = true;
2716
+ } else {
2717
+ if (has(it, HIDDEN) && it[HIDDEN][key]) it[HIDDEN][key] = false;
2718
+ D = _create(D, { enumerable: createDesc(0, false) });
2719
+ } return setSymbolDesc(it, key, D);
2720
+ } return dP(it, key, D);
2721
+ };
2722
+ var $defineProperties = function defineProperties(it, P) {
2723
+ anObject(it);
2724
+ var keys = enumKeys(P = toIObject(P));
2725
+ var i = 0;
2726
+ var l = keys.length;
2727
+ var key;
2728
+ while (l > i) $defineProperty(it, key = keys[i++], P[key]);
2729
+ return it;
2730
+ };
2731
+ var $create = function create(it, P) {
2732
+ return P === undefined ? _create(it) : $defineProperties(_create(it), P);
2733
+ };
2734
+ var $propertyIsEnumerable = function propertyIsEnumerable(key) {
2735
+ var E = isEnum.call(this, key = toPrimitive(key, true));
2736
+ if (this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return false;
2737
+ return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key] ? E : true;
2738
+ };
2739
+ var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key) {
2740
+ it = toIObject(it);
2741
+ key = toPrimitive(key, true);
2742
+ if (it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return;
2743
+ var D = gOPD(it, key);
2744
+ if (D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) D.enumerable = true;
2745
+ return D;
2746
+ };
2747
+ var $getOwnPropertyNames = function getOwnPropertyNames(it) {
2748
+ var names = gOPN(toIObject(it));
2749
+ var result = [];
2750
+ var i = 0;
2751
+ var key;
2752
+ while (names.length > i) {
2753
+ if (!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META) result.push(key);
2754
+ } return result;
2755
+ };
2756
+ var $getOwnPropertySymbols = function getOwnPropertySymbols(it) {
2757
+ var IS_OP = it === ObjectProto;
2758
+ var names = gOPN(IS_OP ? OPSymbols : toIObject(it));
2759
+ var result = [];
2760
+ var i = 0;
2761
+ var key;
2762
+ while (names.length > i) {
2763
+ if (has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true)) result.push(AllSymbols[key]);
2764
+ } return result;
2765
+ };
2766
+
2767
+ // 19.4.1.1 Symbol([description])
2768
+ if (!USE_NATIVE) {
2769
+ $Symbol = function Symbol() {
2770
+ if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor!');
2771
+ var tag = uid(arguments.length > 0 ? arguments[0] : undefined);
2772
+ var $set = function (value) {
2773
+ if (this === ObjectProto) $set.call(OPSymbols, value);
2774
+ if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false;
2775
+ setSymbolDesc(this, tag, createDesc(1, value));
2776
+ };
2777
+ if (DESCRIPTORS && setter) setSymbolDesc(ObjectProto, tag, { configurable: true, set: $set });
2778
+ return wrap(tag);
2779
+ };
2780
+ redefine($Symbol[PROTOTYPE], 'toString', function toString() {
2781
+ return this._k;
2782
+ });
2783
+
2784
+ $GOPD.f = $getOwnPropertyDescriptor;
2785
+ $DP.f = $defineProperty;
2786
+ require('./_object-gopn').f = gOPNExt.f = $getOwnPropertyNames;
2787
+ require('./_object-pie').f = $propertyIsEnumerable;
2788
+ require('./_object-gops').f = $getOwnPropertySymbols;
2789
+
2790
+ if (DESCRIPTORS && !require('./_library')) {
2791
+ redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true);
2792
+ }
2793
+
2794
+ wksExt.f = function (name) {
2795
+ return wrap(wks(name));
2796
+ };
2797
+ }
2798
+
2799
+ $export($export.G + $export.W + $export.F * !USE_NATIVE, { Symbol: $Symbol });
2800
+
2801
+ for (var es6Symbols = (
2802
+ // 19.4.2.2, 19.4.2.3, 19.4.2.4, 19.4.2.6, 19.4.2.8, 19.4.2.9, 19.4.2.10, 19.4.2.11, 19.4.2.12, 19.4.2.13, 19.4.2.14
2803
+ 'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables'
2804
+ ).split(','), j = 0; es6Symbols.length > j;)wks(es6Symbols[j++]);
2805
+
2806
+ for (var wellKnownSymbols = $keys(wks.store), k = 0; wellKnownSymbols.length > k;) wksDefine(wellKnownSymbols[k++]);
2807
+
2808
+ $export($export.S + $export.F * !USE_NATIVE, 'Symbol', {
2809
+ // 19.4.2.1 Symbol.for(key)
2810
+ 'for': function (key) {
2811
+ return has(SymbolRegistry, key += '')
2812
+ ? SymbolRegistry[key]
2813
+ : SymbolRegistry[key] = $Symbol(key);
2814
+ },
2815
+ // 19.4.2.5 Symbol.keyFor(sym)
2816
+ keyFor: function keyFor(sym) {
2817
+ if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol!');
2818
+ for (var key in SymbolRegistry) if (SymbolRegistry[key] === sym) return key;
2819
+ },
2820
+ useSetter: function () { setter = true; },
2821
+ useSimple: function () { setter = false; }
2822
+ });
2823
+
2824
+ $export($export.S + $export.F * !USE_NATIVE, 'Object', {
2825
+ // 19.1.2.2 Object.create(O [, Properties])
2826
+ create: $create,
2827
+ // 19.1.2.4 Object.defineProperty(O, P, Attributes)
2828
+ defineProperty: $defineProperty,
2829
+ // 19.1.2.3 Object.defineProperties(O, Properties)
2830
+ defineProperties: $defineProperties,
2831
+ // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)
2832
+ getOwnPropertyDescriptor: $getOwnPropertyDescriptor,
2833
+ // 19.1.2.7 Object.getOwnPropertyNames(O)
2834
+ getOwnPropertyNames: $getOwnPropertyNames,
2835
+ // 19.1.2.8 Object.getOwnPropertySymbols(O)
2836
+ getOwnPropertySymbols: $getOwnPropertySymbols
2837
+ });
2838
+
2839
+ // 24.3.2 JSON.stringify(value [, replacer [, space]])
2840
+ $JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function () {
2841
+ var S = $Symbol();
2842
+ // MS Edge converts symbol values to JSON as {}
2843
+ // WebKit converts symbol values to JSON as null
2844
+ // V8 throws on boxed symbols
2845
+ return _stringify([S]) != '[null]' || _stringify({ a: S }) != '{}' || _stringify(Object(S)) != '{}';
2846
+ })), 'JSON', {
2847
+ stringify: function stringify(it) {
2848
+ var args = [it];
2849
+ var i = 1;
2850
+ var replacer, $replacer;
2851
+ while (arguments.length > i) args.push(arguments[i++]);
2852
+ $replacer = replacer = args[1];
2853
+ if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined
2854
+ if (!isArray(replacer)) replacer = function (key, value) {
2855
+ if (typeof $replacer == 'function') value = $replacer.call(this, key, value);
2856
+ if (!isSymbol(value)) return value;
2857
+ };
2858
+ args[1] = replacer;
2859
+ return _stringify.apply($JSON, args);
2860
+ }
2861
+ });
2862
+
2863
+ // 19.4.3.4 Symbol.prototype[@@toPrimitive](hint)
2864
+ $Symbol[PROTOTYPE][TO_PRIMITIVE] || require('./_hide')($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf);
2865
+ // 19.4.3.5 Symbol.prototype[@@toStringTag]
2866
+ setToStringTag($Symbol, 'Symbol');
2867
+ // 20.2.1.9 Math[@@toStringTag]
2868
+ setToStringTag(Math, 'Math', true);
2869
+ // 24.3.3 JSON[@@toStringTag]
2870
+ setToStringTag(global.JSON, 'JSON', true);
2871
+
2872
+ },{"./_an-object":7,"./_descriptors":14,"./_enum-keys":17,"./_export":18,"./_fails":19,"./_global":20,"./_has":21,"./_hide":22,"./_is-array":26,"./_is-object":27,"./_library":28,"./_meta":29,"./_object-create":30,"./_object-dp":31,"./_object-gopd":33,"./_object-gopn":35,"./_object-gopn-ext":34,"./_object-gops":36,"./_object-keys":38,"./_object-pie":39,"./_property-desc":40,"./_redefine":41,"./_set-to-string-tag":42,"./_shared":44,"./_to-iobject":47,"./_to-primitive":49,"./_uid":50,"./_wks":53,"./_wks-define":51,"./_wks-ext":52}],56:[function(require,module,exports){
1961
2873
  (function (Buffer){
1962
2874
  // Copyright Joyent, Inc. and other Node contributors.
1963
2875
  //
@@ -2068,7 +2980,7 @@ function objectToString(o) {
2068
2980
  }
2069
2981
 
2070
2982
  }).call(this,{"isBuffer":require("../../is-buffer/index.js")})
2071
- },{"../../is-buffer/index.js":10}],6:[function(require,module,exports){
2983
+ },{"../../is-buffer/index.js":61}],57:[function(require,module,exports){
2072
2984
  // Copyright Joyent, Inc. and other Node contributors.
2073
2985
  //
2074
2986
  // Permission is hereby granted, free of charge, to any person obtaining a
@@ -2499,24 +3411,28 @@ EventEmitter.prototype.removeAllListeners =
2499
3411
  return this;
2500
3412
  };
2501
3413
 
2502
- EventEmitter.prototype.listeners = function listeners(type) {
2503
- var evlistener;
2504
- var ret;
2505
- var events = this._events;
3414
+ function _listeners(target, type, unwrap) {
3415
+ var events = target._events;
2506
3416
 
2507
3417
  if (!events)
2508
- ret = [];
2509
- else {
2510
- evlistener = events[type];
2511
- if (!evlistener)
2512
- ret = [];
2513
- else if (typeof evlistener === 'function')
2514
- ret = [evlistener.listener || evlistener];
2515
- else
2516
- ret = unwrapListeners(evlistener);
2517
- }
3418
+ return [];
2518
3419
 
2519
- return ret;
3420
+ var evlistener = events[type];
3421
+ if (!evlistener)
3422
+ return [];
3423
+
3424
+ if (typeof evlistener === 'function')
3425
+ return unwrap ? [evlistener.listener || evlistener] : [evlistener];
3426
+
3427
+ return unwrap ? unwrapListeners(evlistener) : arrayClone(evlistener, evlistener.length);
3428
+ }
3429
+
3430
+ EventEmitter.prototype.listeners = function listeners(type) {
3431
+ return _listeners(this, type, true);
3432
+ };
3433
+
3434
+ EventEmitter.prototype.rawListeners = function rawListeners(type) {
3435
+ return _listeners(this, type, false);
2520
3436
  };
2521
3437
 
2522
3438
  EventEmitter.listenerCount = function(emitter, type) {
@@ -2589,7 +3505,7 @@ function functionBindPolyfill(context) {
2589
3505
  };
2590
3506
  }
2591
3507
 
2592
- },{}],7:[function(require,module,exports){
3508
+ },{}],58:[function(require,module,exports){
2593
3509
  var http = require('http')
2594
3510
  var url = require('url')
2595
3511
 
@@ -2622,7 +3538,7 @@ function validateParams (params) {
2622
3538
  return params
2623
3539
  }
2624
3540
 
2625
- },{"http":30,"url":36}],8:[function(require,module,exports){
3541
+ },{"http":81,"url":88}],59:[function(require,module,exports){
2626
3542
  exports.read = function (buffer, offset, isLE, mLen, nBytes) {
2627
3543
  var e, m
2628
3544
  var eLen = (nBytes * 8) - mLen - 1
@@ -2708,7 +3624,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) {
2708
3624
  buffer[offset + i - d] |= s * 128
2709
3625
  }
2710
3626
 
2711
- },{}],9:[function(require,module,exports){
3627
+ },{}],60:[function(require,module,exports){
2712
3628
  if (typeof Object.create === 'function') {
2713
3629
  // implementation from standard node.js 'util' module
2714
3630
  module.exports = function inherits(ctor, superCtor) {
@@ -2733,7 +3649,7 @@ if (typeof Object.create === 'function') {
2733
3649
  }
2734
3650
  }
2735
3651
 
2736
- },{}],10:[function(require,module,exports){
3652
+ },{}],61:[function(require,module,exports){
2737
3653
  /*!
2738
3654
  * Determine if an object is a Buffer
2739
3655
  *
@@ -2756,14 +3672,14 @@ function isSlowBuffer (obj) {
2756
3672
  return typeof obj.readFloatLE === 'function' && typeof obj.slice === 'function' && isBuffer(obj.slice(0, 0))
2757
3673
  }
2758
3674
 
2759
- },{}],11:[function(require,module,exports){
3675
+ },{}],62:[function(require,module,exports){
2760
3676
  var toString = {}.toString;
2761
3677
 
2762
3678
  module.exports = Array.isArray || function (arr) {
2763
3679
  return toString.call(arr) == '[object Array]';
2764
3680
  };
2765
3681
 
2766
- },{}],12:[function(require,module,exports){
3682
+ },{}],63:[function(require,module,exports){
2767
3683
  (function (global){
2768
3684
  /**
2769
3685
  * lodash (Custom Build) <https://lodash.com/>
@@ -3698,7 +4614,7 @@ function get(object, path, defaultValue) {
3698
4614
  module.exports = get;
3699
4615
 
3700
4616
  }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
3701
- },{}],13:[function(require,module,exports){
4617
+ },{}],64:[function(require,module,exports){
3702
4618
  (function (global){
3703
4619
  /**
3704
4620
  * Lodash (Custom Build) <https://lodash.com/>
@@ -5550,7 +6466,7 @@ function stubFalse() {
5550
6466
  module.exports = isEqual;
5551
6467
 
5552
6468
  }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
5553
- },{}],14:[function(require,module,exports){
6469
+ },{}],65:[function(require,module,exports){
5554
6470
  (function (process){
5555
6471
  'use strict';
5556
6472
 
@@ -5598,7 +6514,7 @@ function nextTick(fn, arg1, arg2, arg3) {
5598
6514
 
5599
6515
 
5600
6516
  }).call(this,require('_process'))
5601
- },{"_process":15}],15:[function(require,module,exports){
6517
+ },{"_process":66}],66:[function(require,module,exports){
5602
6518
  // shim for using process in browser
5603
6519
  var process = module.exports = {};
5604
6520
 
@@ -5784,7 +6700,7 @@ process.chdir = function (dir) {
5784
6700
  };
5785
6701
  process.umask = function() { return 0; };
5786
6702
 
5787
- },{}],16:[function(require,module,exports){
6703
+ },{}],67:[function(require,module,exports){
5788
6704
  (function (global){
5789
6705
  /*! https://mths.be/punycode v1.4.1 by @mathias */
5790
6706
  ;(function(root) {
@@ -6321,7 +7237,7 @@ process.umask = function() { return 0; };
6321
7237
  }(this));
6322
7238
 
6323
7239
  }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
6324
- },{}],17:[function(require,module,exports){
7240
+ },{}],68:[function(require,module,exports){
6325
7241
  // Copyright Joyent, Inc. and other Node contributors.
6326
7242
  //
6327
7243
  // Permission is hereby granted, free of charge, to any person obtaining a
@@ -6407,7 +7323,7 @@ var isArray = Array.isArray || function (xs) {
6407
7323
  return Object.prototype.toString.call(xs) === '[object Array]';
6408
7324
  };
6409
7325
 
6410
- },{}],18:[function(require,module,exports){
7326
+ },{}],69:[function(require,module,exports){
6411
7327
  // Copyright Joyent, Inc. and other Node contributors.
6412
7328
  //
6413
7329
  // Permission is hereby granted, free of charge, to any person obtaining a
@@ -6494,13 +7410,13 @@ var objectKeys = Object.keys || function (obj) {
6494
7410
  return res;
6495
7411
  };
6496
7412
 
6497
- },{}],19:[function(require,module,exports){
7413
+ },{}],70:[function(require,module,exports){
6498
7414
  'use strict';
6499
7415
 
6500
7416
  exports.decode = exports.parse = require('./decode');
6501
7417
  exports.encode = exports.stringify = require('./encode');
6502
7418
 
6503
- },{"./decode":17,"./encode":18}],20:[function(require,module,exports){
7419
+ },{"./decode":68,"./encode":69}],71:[function(require,module,exports){
6504
7420
  // Copyright Joyent, Inc. and other Node contributors.
6505
7421
  //
6506
7422
  // Permission is hereby granted, free of charge, to any person obtaining a
@@ -6632,7 +7548,7 @@ Duplex.prototype._destroy = function (err, cb) {
6632
7548
 
6633
7549
  pna.nextTick(cb, err);
6634
7550
  };
6635
- },{"./_stream_readable":22,"./_stream_writable":24,"core-util-is":5,"inherits":9,"process-nextick-args":14}],21:[function(require,module,exports){
7551
+ },{"./_stream_readable":73,"./_stream_writable":75,"core-util-is":56,"inherits":60,"process-nextick-args":65}],72:[function(require,module,exports){
6636
7552
  // Copyright Joyent, Inc. and other Node contributors.
6637
7553
  //
6638
7554
  // Permission is hereby granted, free of charge, to any person obtaining a
@@ -6680,7 +7596,7 @@ function PassThrough(options) {
6680
7596
  PassThrough.prototype._transform = function (chunk, encoding, cb) {
6681
7597
  cb(null, chunk);
6682
7598
  };
6683
- },{"./_stream_transform":23,"core-util-is":5,"inherits":9}],22:[function(require,module,exports){
7599
+ },{"./_stream_transform":74,"core-util-is":56,"inherits":60}],73:[function(require,module,exports){
6684
7600
  (function (process,global){
6685
7601
  // Copyright Joyent, Inc. and other Node contributors.
6686
7602
  //
@@ -7702,7 +8618,7 @@ function indexOf(xs, x) {
7702
8618
  return -1;
7703
8619
  }
7704
8620
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
7705
- },{"./_stream_duplex":20,"./internal/streams/BufferList":25,"./internal/streams/destroy":26,"./internal/streams/stream":27,"_process":15,"core-util-is":5,"events":6,"inherits":9,"isarray":11,"process-nextick-args":14,"safe-buffer":29,"string_decoder/":34,"util":2}],23:[function(require,module,exports){
8621
+ },{"./_stream_duplex":71,"./internal/streams/BufferList":76,"./internal/streams/destroy":77,"./internal/streams/stream":78,"_process":66,"core-util-is":56,"events":57,"inherits":60,"isarray":62,"process-nextick-args":65,"safe-buffer":80,"string_decoder/":85,"util":2}],74:[function(require,module,exports){
7706
8622
  // Copyright Joyent, Inc. and other Node contributors.
7707
8623
  //
7708
8624
  // Permission is hereby granted, free of charge, to any person obtaining a
@@ -7917,8 +8833,8 @@ function done(stream, er, data) {
7917
8833
 
7918
8834
  return stream.push(null);
7919
8835
  }
7920
- },{"./_stream_duplex":20,"core-util-is":5,"inherits":9}],24:[function(require,module,exports){
7921
- (function (process,global){
8836
+ },{"./_stream_duplex":71,"core-util-is":56,"inherits":60}],75:[function(require,module,exports){
8837
+ (function (process,global,setImmediate){
7922
8838
  // Copyright Joyent, Inc. and other Node contributors.
7923
8839
  //
7924
8840
  // Permission is hereby granted, free of charge, to any person obtaining a
@@ -8606,8 +9522,8 @@ Writable.prototype._destroy = function (err, cb) {
8606
9522
  this.end();
8607
9523
  cb(err);
8608
9524
  };
8609
- }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
8610
- },{"./_stream_duplex":20,"./internal/streams/destroy":26,"./internal/streams/stream":27,"_process":15,"core-util-is":5,"inherits":9,"process-nextick-args":14,"safe-buffer":29,"util-deprecate":38}],25:[function(require,module,exports){
9525
+ }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("timers").setImmediate)
9526
+ },{"./_stream_duplex":71,"./internal/streams/destroy":77,"./internal/streams/stream":78,"_process":66,"core-util-is":56,"inherits":60,"process-nextick-args":65,"safe-buffer":80,"timers":86,"util-deprecate":90}],76:[function(require,module,exports){
8611
9527
  'use strict';
8612
9528
 
8613
9529
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
@@ -8687,7 +9603,7 @@ if (util && util.inspect && util.inspect.custom) {
8687
9603
  return this.constructor.name + ' ' + obj;
8688
9604
  };
8689
9605
  }
8690
- },{"safe-buffer":29,"util":2}],26:[function(require,module,exports){
9606
+ },{"safe-buffer":80,"util":2}],77:[function(require,module,exports){
8691
9607
  'use strict';
8692
9608
 
8693
9609
  /*<replacement>*/
@@ -8762,10 +9678,10 @@ module.exports = {
8762
9678
  destroy: destroy,
8763
9679
  undestroy: undestroy
8764
9680
  };
8765
- },{"process-nextick-args":14}],27:[function(require,module,exports){
9681
+ },{"process-nextick-args":65}],78:[function(require,module,exports){
8766
9682
  module.exports = require('events').EventEmitter;
8767
9683
 
8768
- },{"events":6}],28:[function(require,module,exports){
9684
+ },{"events":57}],79:[function(require,module,exports){
8769
9685
  exports = module.exports = require('./lib/_stream_readable.js');
8770
9686
  exports.Stream = exports;
8771
9687
  exports.Readable = exports;
@@ -8774,7 +9690,7 @@ exports.Duplex = require('./lib/_stream_duplex.js');
8774
9690
  exports.Transform = require('./lib/_stream_transform.js');
8775
9691
  exports.PassThrough = require('./lib/_stream_passthrough.js');
8776
9692
 
8777
- },{"./lib/_stream_duplex.js":20,"./lib/_stream_passthrough.js":21,"./lib/_stream_readable.js":22,"./lib/_stream_transform.js":23,"./lib/_stream_writable.js":24}],29:[function(require,module,exports){
9693
+ },{"./lib/_stream_duplex.js":71,"./lib/_stream_passthrough.js":72,"./lib/_stream_readable.js":73,"./lib/_stream_transform.js":74,"./lib/_stream_writable.js":75}],80:[function(require,module,exports){
8778
9694
  /* eslint-disable node/no-deprecated-api */
8779
9695
  var buffer = require('buffer')
8780
9696
  var Buffer = buffer.Buffer
@@ -8838,7 +9754,7 @@ SafeBuffer.allocUnsafeSlow = function (size) {
8838
9754
  return buffer.SlowBuffer(size)
8839
9755
  }
8840
9756
 
8841
- },{"buffer":3}],30:[function(require,module,exports){
9757
+ },{"buffer":3}],81:[function(require,module,exports){
8842
9758
  (function (global){
8843
9759
  var ClientRequest = require('./lib/request')
8844
9760
  var response = require('./lib/response')
@@ -8926,7 +9842,7 @@ http.METHODS = [
8926
9842
  'UNSUBSCRIBE'
8927
9843
  ]
8928
9844
  }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
8929
- },{"./lib/request":32,"./lib/response":33,"builtin-status-codes":4,"url":36,"xtend":112}],31:[function(require,module,exports){
9845
+ },{"./lib/request":83,"./lib/response":84,"builtin-status-codes":4,"url":88,"xtend":168}],82:[function(require,module,exports){
8930
9846
  (function (global){
8931
9847
  exports.fetch = isFunction(global.fetch) && isFunction(global.ReadableStream)
8932
9848
 
@@ -9003,7 +9919,7 @@ function isFunction (value) {
9003
9919
  xhr = null // Help gc
9004
9920
 
9005
9921
  }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
9006
- },{}],32:[function(require,module,exports){
9922
+ },{}],83:[function(require,module,exports){
9007
9923
  (function (process,global,Buffer){
9008
9924
  var capability = require('./capability')
9009
9925
  var inherits = require('inherits')
@@ -9330,12 +10246,11 @@ var unsafeHeaders = [
9330
10246
  'trailer',
9331
10247
  'transfer-encoding',
9332
10248
  'upgrade',
9333
- 'user-agent',
9334
10249
  'via'
9335
10250
  ]
9336
10251
 
9337
10252
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer)
9338
- },{"./capability":31,"./response":33,"_process":15,"buffer":3,"inherits":9,"readable-stream":28,"to-arraybuffer":35}],33:[function(require,module,exports){
10253
+ },{"./capability":82,"./response":84,"_process":66,"buffer":3,"inherits":60,"readable-stream":79,"to-arraybuffer":87}],84:[function(require,module,exports){
9339
10254
  (function (process,global,Buffer){
9340
10255
  var capability = require('./capability')
9341
10256
  var inherits = require('inherits')
@@ -9563,7 +10478,7 @@ IncomingMessage.prototype._onXHRProgress = function () {
9563
10478
  }
9564
10479
 
9565
10480
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer)
9566
- },{"./capability":31,"_process":15,"buffer":3,"inherits":9,"readable-stream":28}],34:[function(require,module,exports){
10481
+ },{"./capability":82,"_process":66,"buffer":3,"inherits":60,"readable-stream":79}],85:[function(require,module,exports){
9567
10482
  // Copyright Joyent, Inc. and other Node contributors.
9568
10483
  //
9569
10484
  // Permission is hereby granted, free of charge, to any person obtaining a
@@ -9860,7 +10775,86 @@ function simpleWrite(buf) {
9860
10775
  function simpleEnd(buf) {
9861
10776
  return buf && buf.length ? this.write(buf) : '';
9862
10777
  }
9863
- },{"safe-buffer":29}],35:[function(require,module,exports){
10778
+ },{"safe-buffer":80}],86:[function(require,module,exports){
10779
+ (function (setImmediate,clearImmediate){
10780
+ var nextTick = require('process/browser.js').nextTick;
10781
+ var apply = Function.prototype.apply;
10782
+ var slice = Array.prototype.slice;
10783
+ var immediateIds = {};
10784
+ var nextImmediateId = 0;
10785
+
10786
+ // DOM APIs, for completeness
10787
+
10788
+ exports.setTimeout = function() {
10789
+ return new Timeout(apply.call(setTimeout, window, arguments), clearTimeout);
10790
+ };
10791
+ exports.setInterval = function() {
10792
+ return new Timeout(apply.call(setInterval, window, arguments), clearInterval);
10793
+ };
10794
+ exports.clearTimeout =
10795
+ exports.clearInterval = function(timeout) { timeout.close(); };
10796
+
10797
+ function Timeout(id, clearFn) {
10798
+ this._id = id;
10799
+ this._clearFn = clearFn;
10800
+ }
10801
+ Timeout.prototype.unref = Timeout.prototype.ref = function() {};
10802
+ Timeout.prototype.close = function() {
10803
+ this._clearFn.call(window, this._id);
10804
+ };
10805
+
10806
+ // Does not start the time, just sets up the members needed.
10807
+ exports.enroll = function(item, msecs) {
10808
+ clearTimeout(item._idleTimeoutId);
10809
+ item._idleTimeout = msecs;
10810
+ };
10811
+
10812
+ exports.unenroll = function(item) {
10813
+ clearTimeout(item._idleTimeoutId);
10814
+ item._idleTimeout = -1;
10815
+ };
10816
+
10817
+ exports._unrefActive = exports.active = function(item) {
10818
+ clearTimeout(item._idleTimeoutId);
10819
+
10820
+ var msecs = item._idleTimeout;
10821
+ if (msecs >= 0) {
10822
+ item._idleTimeoutId = setTimeout(function onTimeout() {
10823
+ if (item._onTimeout)
10824
+ item._onTimeout();
10825
+ }, msecs);
10826
+ }
10827
+ };
10828
+
10829
+ // That's not how node.js implements it but the exposed api is the same.
10830
+ exports.setImmediate = typeof setImmediate === "function" ? setImmediate : function(fn) {
10831
+ var id = nextImmediateId++;
10832
+ var args = arguments.length < 2 ? false : slice.call(arguments, 1);
10833
+
10834
+ immediateIds[id] = true;
10835
+
10836
+ nextTick(function onNextTick() {
10837
+ if (immediateIds[id]) {
10838
+ // fn.call() is faster so we optimize for the common use-case
10839
+ // @see http://jsperf.com/call-apply-segu
10840
+ if (args) {
10841
+ fn.apply(null, args);
10842
+ } else {
10843
+ fn.call(null);
10844
+ }
10845
+ // Prevent ids from leaking
10846
+ exports.clearImmediate(id);
10847
+ }
10848
+ });
10849
+
10850
+ return id;
10851
+ };
10852
+
10853
+ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : function(id) {
10854
+ delete immediateIds[id];
10855
+ };
10856
+ }).call(this,require("timers").setImmediate,require("timers").clearImmediate)
10857
+ },{"process/browser.js":66,"timers":86}],87:[function(require,module,exports){
9864
10858
  var Buffer = require('buffer').Buffer
9865
10859
 
9866
10860
  module.exports = function (buf) {
@@ -9889,7 +10883,7 @@ module.exports = function (buf) {
9889
10883
  }
9890
10884
  }
9891
10885
 
9892
- },{"buffer":3}],36:[function(require,module,exports){
10886
+ },{"buffer":3}],88:[function(require,module,exports){
9893
10887
  // Copyright Joyent, Inc. and other Node contributors.
9894
10888
  //
9895
10889
  // Permission is hereby granted, free of charge, to any person obtaining a
@@ -10623,7 +11617,7 @@ Url.prototype.parseHost = function() {
10623
11617
  if (host) this.hostname = host;
10624
11618
  };
10625
11619
 
10626
- },{"./util":37,"punycode":16,"querystring":19}],37:[function(require,module,exports){
11620
+ },{"./util":89,"punycode":67,"querystring":70}],89:[function(require,module,exports){
10627
11621
  'use strict';
10628
11622
 
10629
11623
  module.exports = {
@@ -10641,7 +11635,7 @@ module.exports = {
10641
11635
  }
10642
11636
  };
10643
11637
 
10644
- },{}],38:[function(require,module,exports){
11638
+ },{}],90:[function(require,module,exports){
10645
11639
  (function (global){
10646
11640
 
10647
11641
  /**
@@ -10712,7 +11706,7 @@ function config (name) {
10712
11706
  }
10713
11707
 
10714
11708
  }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
10715
- },{}],39:[function(require,module,exports){
11709
+ },{}],91:[function(require,module,exports){
10716
11710
  'use strict';
10717
11711
 
10718
11712
  Object.defineProperty(exports, "__esModule", {
@@ -10763,6 +11757,10 @@ var _isIP = require('./lib/isIP');
10763
11757
 
10764
11758
  var _isIP2 = _interopRequireDefault(_isIP);
10765
11759
 
11760
+ var _isIPRange = require('./lib/isIPRange');
11761
+
11762
+ var _isIPRange2 = _interopRequireDefault(_isIPRange);
11763
+
10766
11764
  var _isFQDN = require('./lib/isFQDN');
10767
11765
 
10768
11766
  var _isFQDN2 = _interopRequireDefault(_isFQDN);
@@ -10855,6 +11853,10 @@ var _isHash = require('./lib/isHash');
10855
11853
 
10856
11854
  var _isHash2 = _interopRequireDefault(_isHash);
10857
11855
 
11856
+ var _isJWT = require('./lib/isJWT');
11857
+
11858
+ var _isJWT2 = _interopRequireDefault(_isJWT);
11859
+
10858
11860
  var _isJSON = require('./lib/isJSON');
10859
11861
 
10860
11862
  var _isJSON2 = _interopRequireDefault(_isJSON);
@@ -10939,6 +11941,10 @@ var _isDataURI = require('./lib/isDataURI');
10939
11941
 
10940
11942
  var _isDataURI2 = _interopRequireDefault(_isDataURI);
10941
11943
 
11944
+ var _isMagnetURI = require('./lib/isMagnetURI');
11945
+
11946
+ var _isMagnetURI2 = _interopRequireDefault(_isMagnetURI);
11947
+
10942
11948
  var _isMimeType = require('./lib/isMimeType');
10943
11949
 
10944
11950
  var _isMimeType2 = _interopRequireDefault(_isMimeType);
@@ -10997,7 +12003,7 @@ var _toString2 = _interopRequireDefault(_toString);
10997
12003
 
10998
12004
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10999
12005
 
11000
- var version = '10.2.0';
12006
+ var version = '10.7.1';
11001
12007
 
11002
12008
  var validator = {
11003
12009
  version: version,
@@ -11012,6 +12018,7 @@ var validator = {
11012
12018
  isURL: _isURL2.default,
11013
12019
  isMACAddress: _isMACAddress2.default,
11014
12020
  isIP: _isIP2.default,
12021
+ isIPRange: _isIPRange2.default,
11015
12022
  isFQDN: _isFQDN2.default,
11016
12023
  isBoolean: _isBoolean2.default,
11017
12024
  isAlpha: _isAlpha2.default,
@@ -11035,6 +12042,7 @@ var validator = {
11035
12042
  isISRC: _isISRC2.default,
11036
12043
  isMD5: _isMD2.default,
11037
12044
  isHash: _isHash2.default,
12045
+ isJWT: _isJWT2.default,
11038
12046
  isJSON: _isJSON2.default,
11039
12047
  isEmpty: _isEmpty2.default,
11040
12048
  isLength: _isLength2.default,
@@ -11058,6 +12066,7 @@ var validator = {
11058
12066
  isISO31661Alpha3: _isISO31661Alpha4.default,
11059
12067
  isBase64: _isBase2.default,
11060
12068
  isDataURI: _isDataURI2.default,
12069
+ isMagnetURI: _isMagnetURI2.default,
11061
12070
  isMimeType: _isMimeType2.default,
11062
12071
  isLatLong: _isLatLong2.default,
11063
12072
  ltrim: _ltrim2.default,
@@ -11075,7 +12084,7 @@ var validator = {
11075
12084
 
11076
12085
  exports.default = validator;
11077
12086
  module.exports = exports['default'];
11078
- },{"./lib/blacklist":41,"./lib/contains":42,"./lib/equals":43,"./lib/escape":44,"./lib/isAfter":45,"./lib/isAlpha":46,"./lib/isAlphanumeric":47,"./lib/isAscii":48,"./lib/isBase64":49,"./lib/isBefore":50,"./lib/isBoolean":51,"./lib/isByteLength":52,"./lib/isCreditCard":53,"./lib/isCurrency":54,"./lib/isDataURI":55,"./lib/isDecimal":56,"./lib/isDivisibleBy":57,"./lib/isEmail":58,"./lib/isEmpty":59,"./lib/isFQDN":60,"./lib/isFloat":61,"./lib/isFullWidth":62,"./lib/isHalfWidth":63,"./lib/isHash":64,"./lib/isHexColor":65,"./lib/isHexadecimal":66,"./lib/isIP":67,"./lib/isISBN":68,"./lib/isISIN":69,"./lib/isISO31661Alpha2":70,"./lib/isISO31661Alpha3":71,"./lib/isISO8601":72,"./lib/isISRC":73,"./lib/isISSN":74,"./lib/isIn":75,"./lib/isInt":76,"./lib/isJSON":77,"./lib/isLatLong":78,"./lib/isLength":79,"./lib/isLowercase":80,"./lib/isMACAddress":81,"./lib/isMD5":82,"./lib/isMimeType":83,"./lib/isMobilePhone":84,"./lib/isMongoId":85,"./lib/isMultibyte":86,"./lib/isNumeric":87,"./lib/isPort":88,"./lib/isPostalCode":89,"./lib/isRFC3339":90,"./lib/isSurrogatePair":91,"./lib/isURL":92,"./lib/isUUID":93,"./lib/isUppercase":94,"./lib/isVariableWidth":95,"./lib/isWhitelisted":96,"./lib/ltrim":97,"./lib/matches":98,"./lib/normalizeEmail":99,"./lib/rtrim":100,"./lib/stripLow":101,"./lib/toBoolean":102,"./lib/toDate":103,"./lib/toFloat":104,"./lib/toInt":105,"./lib/trim":106,"./lib/unescape":107,"./lib/util/toString":110,"./lib/whitelist":111}],40:[function(require,module,exports){
12087
+ },{"./lib/blacklist":93,"./lib/contains":94,"./lib/equals":95,"./lib/escape":96,"./lib/isAfter":97,"./lib/isAlpha":98,"./lib/isAlphanumeric":99,"./lib/isAscii":100,"./lib/isBase64":101,"./lib/isBefore":102,"./lib/isBoolean":103,"./lib/isByteLength":104,"./lib/isCreditCard":105,"./lib/isCurrency":106,"./lib/isDataURI":107,"./lib/isDecimal":108,"./lib/isDivisibleBy":109,"./lib/isEmail":110,"./lib/isEmpty":111,"./lib/isFQDN":112,"./lib/isFloat":113,"./lib/isFullWidth":114,"./lib/isHalfWidth":115,"./lib/isHash":116,"./lib/isHexColor":117,"./lib/isHexadecimal":118,"./lib/isIP":119,"./lib/isIPRange":120,"./lib/isISBN":121,"./lib/isISIN":122,"./lib/isISO31661Alpha2":123,"./lib/isISO31661Alpha3":124,"./lib/isISO8601":125,"./lib/isISRC":126,"./lib/isISSN":127,"./lib/isIn":128,"./lib/isInt":129,"./lib/isJSON":130,"./lib/isJWT":131,"./lib/isLatLong":132,"./lib/isLength":133,"./lib/isLowercase":134,"./lib/isMACAddress":135,"./lib/isMD5":136,"./lib/isMagnetURI":137,"./lib/isMimeType":138,"./lib/isMobilePhone":139,"./lib/isMongoId":140,"./lib/isMultibyte":141,"./lib/isNumeric":142,"./lib/isPort":143,"./lib/isPostalCode":144,"./lib/isRFC3339":145,"./lib/isSurrogatePair":146,"./lib/isURL":147,"./lib/isUUID":148,"./lib/isUppercase":149,"./lib/isVariableWidth":150,"./lib/isWhitelisted":151,"./lib/ltrim":152,"./lib/matches":153,"./lib/normalizeEmail":154,"./lib/rtrim":155,"./lib/stripLow":156,"./lib/toBoolean":157,"./lib/toDate":158,"./lib/toFloat":159,"./lib/toInt":160,"./lib/trim":161,"./lib/unescape":162,"./lib/util/toString":166,"./lib/whitelist":167}],92:[function(require,module,exports){
11079
12088
  'use strict';
11080
12089
 
11081
12090
  Object.defineProperty(exports, "__esModule", {
@@ -11104,6 +12113,7 @@ var alpha = exports.alpha = {
11104
12113
  'sv-SE': /^[A-ZÅÄÖ]+$/i,
11105
12114
  'tr-TR': /^[A-ZÇĞİıÖŞÜ]+$/i,
11106
12115
  'uk-UA': /^[А-ЩЬЮЯЄIЇҐі]+$/i,
12116
+ 'ku-IQ': /^[ئابپتجچحخدرڕزژسشعغفڤقکگلڵمنوۆھەیێيطؤثآإأكضصةظذ]+$/i,
11107
12117
  ar: /^[ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/
11108
12118
  };
11109
12119
 
@@ -11130,6 +12140,7 @@ var alphanumeric = exports.alphanumeric = {
11130
12140
  'sv-SE': /^[0-9A-ZÅÄÖ]+$/i,
11131
12141
  'tr-TR': /^[0-9A-ZÇĞİıÖŞÜ]+$/i,
11132
12142
  'uk-UA': /^[0-9А-ЩЬЮЯЄIЇҐі]+$/i,
12143
+ 'ku-IQ': /^[٠١٢٣٤٥٦٧٨٩0-9ئابپتجچحخدرڕزژسشعغفڤقکگلڵمنوۆھەیێيطؤثآإأكضصةظذ]+$/i,
11133
12144
  ar: /^[٠١٢٣٤٥٦٧٨٩0-9ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/
11134
12145
  };
11135
12146
 
@@ -11159,7 +12170,7 @@ for (var _locale, _i = 0; _i < arabicLocales.length; _i++) {
11159
12170
 
11160
12171
  // Source: https://en.wikipedia.org/wiki/Decimal_mark
11161
12172
  var dotDecimal = exports.dotDecimal = [];
11162
- var commaDecimal = exports.commaDecimal = ['bg-BG', 'cs-CZ', 'da-DK', 'de-DE', 'el-GR', 'es-ES', 'fr-FR', 'it-IT', 'hu-HU', 'nb-NO', 'nn-NO', 'nl-NL', 'pl-Pl', 'pt-PT', 'ru-RU', 'sr-RS@latin', 'sr-RS', 'sv-SE', 'tr-TR', 'uk-UA'];
12173
+ var commaDecimal = exports.commaDecimal = ['bg-BG', 'cs-CZ', 'da-DK', 'de-DE', 'el-GR', 'es-ES', 'fr-FR', 'it-IT', 'ku-IQ', 'hu-HU', 'nb-NO', 'nn-NO', 'nl-NL', 'pl-PL', 'pt-PT', 'ru-RU', 'sr-RS@latin', 'sr-RS', 'sv-SE', 'tr-TR', 'uk-UA'];
11163
12174
 
11164
12175
  for (var _i2 = 0; _i2 < dotDecimal.length; _i2++) {
11165
12176
  decimal[dotDecimal[_i2]] = decimal['en-US'];
@@ -11172,7 +12183,12 @@ for (var _i3 = 0; _i3 < commaDecimal.length; _i3++) {
11172
12183
  alpha['pt-BR'] = alpha['pt-PT'];
11173
12184
  alphanumeric['pt-BR'] = alphanumeric['pt-PT'];
11174
12185
  decimal['pt-BR'] = decimal['pt-PT'];
11175
- },{}],41:[function(require,module,exports){
12186
+
12187
+ // see #862
12188
+ alpha['pl-Pl'] = alpha['pl-PL'];
12189
+ alphanumeric['pl-Pl'] = alphanumeric['pl-PL'];
12190
+ decimal['pl-Pl'] = decimal['pl-PL'];
12191
+ },{}],93:[function(require,module,exports){
11176
12192
  'use strict';
11177
12193
 
11178
12194
  Object.defineProperty(exports, "__esModule", {
@@ -11191,7 +12207,7 @@ function blacklist(str, chars) {
11191
12207
  return str.replace(new RegExp('[' + chars + ']+', 'g'), '');
11192
12208
  }
11193
12209
  module.exports = exports['default'];
11194
- },{"./util/assertString":108}],42:[function(require,module,exports){
12210
+ },{"./util/assertString":163}],94:[function(require,module,exports){
11195
12211
  'use strict';
11196
12212
 
11197
12213
  Object.defineProperty(exports, "__esModule", {
@@ -11214,7 +12230,7 @@ function contains(str, elem) {
11214
12230
  return str.indexOf((0, _toString2.default)(elem)) >= 0;
11215
12231
  }
11216
12232
  module.exports = exports['default'];
11217
- },{"./util/assertString":108,"./util/toString":110}],43:[function(require,module,exports){
12233
+ },{"./util/assertString":163,"./util/toString":166}],95:[function(require,module,exports){
11218
12234
  'use strict';
11219
12235
 
11220
12236
  Object.defineProperty(exports, "__esModule", {
@@ -11233,7 +12249,7 @@ function equals(str, comparison) {
11233
12249
  return str === comparison;
11234
12250
  }
11235
12251
  module.exports = exports['default'];
11236
- },{"./util/assertString":108}],44:[function(require,module,exports){
12252
+ },{"./util/assertString":163}],96:[function(require,module,exports){
11237
12253
  'use strict';
11238
12254
 
11239
12255
  Object.defineProperty(exports, "__esModule", {
@@ -11252,7 +12268,7 @@ function escape(str) {
11252
12268
  return str.replace(/&/g, '&amp;').replace(/"/g, '&quot;').replace(/'/g, '&#x27;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\//g, '&#x2F;').replace(/\\/g, '&#x5C;').replace(/`/g, '&#96;');
11253
12269
  }
11254
12270
  module.exports = exports['default'];
11255
- },{"./util/assertString":108}],45:[function(require,module,exports){
12271
+ },{"./util/assertString":163}],97:[function(require,module,exports){
11256
12272
  'use strict';
11257
12273
 
11258
12274
  Object.defineProperty(exports, "__esModule", {
@@ -11279,7 +12295,7 @@ function isAfter(str) {
11279
12295
  return !!(original && comparison && original > comparison);
11280
12296
  }
11281
12297
  module.exports = exports['default'];
11282
- },{"./toDate":103,"./util/assertString":108}],46:[function(require,module,exports){
12298
+ },{"./toDate":158,"./util/assertString":163}],98:[function(require,module,exports){
11283
12299
  'use strict';
11284
12300
 
11285
12301
  Object.defineProperty(exports, "__esModule", {
@@ -11305,7 +12321,7 @@ function isAlpha(str) {
11305
12321
  throw new Error('Invalid locale \'' + locale + '\'');
11306
12322
  }
11307
12323
  module.exports = exports['default'];
11308
- },{"./alpha":40,"./util/assertString":108}],47:[function(require,module,exports){
12324
+ },{"./alpha":92,"./util/assertString":163}],99:[function(require,module,exports){
11309
12325
  'use strict';
11310
12326
 
11311
12327
  Object.defineProperty(exports, "__esModule", {
@@ -11331,7 +12347,7 @@ function isAlphanumeric(str) {
11331
12347
  throw new Error('Invalid locale \'' + locale + '\'');
11332
12348
  }
11333
12349
  module.exports = exports['default'];
11334
- },{"./alpha":40,"./util/assertString":108}],48:[function(require,module,exports){
12350
+ },{"./alpha":92,"./util/assertString":163}],100:[function(require,module,exports){
11335
12351
  'use strict';
11336
12352
 
11337
12353
  Object.defineProperty(exports, "__esModule", {
@@ -11354,7 +12370,7 @@ function isAscii(str) {
11354
12370
  return ascii.test(str);
11355
12371
  }
11356
12372
  module.exports = exports['default'];
11357
- },{"./util/assertString":108}],49:[function(require,module,exports){
12373
+ },{"./util/assertString":163}],101:[function(require,module,exports){
11358
12374
  'use strict';
11359
12375
 
11360
12376
  Object.defineProperty(exports, "__esModule", {
@@ -11380,7 +12396,7 @@ function isBase64(str) {
11380
12396
  return firstPaddingChar === -1 || firstPaddingChar === len - 1 || firstPaddingChar === len - 2 && str[len - 1] === '=';
11381
12397
  }
11382
12398
  module.exports = exports['default'];
11383
- },{"./util/assertString":108}],50:[function(require,module,exports){
12399
+ },{"./util/assertString":163}],102:[function(require,module,exports){
11384
12400
  'use strict';
11385
12401
 
11386
12402
  Object.defineProperty(exports, "__esModule", {
@@ -11407,7 +12423,7 @@ function isBefore(str) {
11407
12423
  return !!(original && comparison && original < comparison);
11408
12424
  }
11409
12425
  module.exports = exports['default'];
11410
- },{"./toDate":103,"./util/assertString":108}],51:[function(require,module,exports){
12426
+ },{"./toDate":158,"./util/assertString":163}],103:[function(require,module,exports){
11411
12427
  'use strict';
11412
12428
 
11413
12429
  Object.defineProperty(exports, "__esModule", {
@@ -11426,7 +12442,7 @@ function isBoolean(str) {
11426
12442
  return ['true', 'false', '1', '0'].indexOf(str) >= 0;
11427
12443
  }
11428
12444
  module.exports = exports['default'];
11429
- },{"./util/assertString":108}],52:[function(require,module,exports){
12445
+ },{"./util/assertString":163}],104:[function(require,module,exports){
11430
12446
  'use strict';
11431
12447
 
11432
12448
  Object.defineProperty(exports, "__esModule", {
@@ -11460,7 +12476,7 @@ function isByteLength(str, options) {
11460
12476
  return len >= min && (typeof max === 'undefined' || len <= max);
11461
12477
  }
11462
12478
  module.exports = exports['default'];
11463
- },{"./util/assertString":108}],53:[function(require,module,exports){
12479
+ },{"./util/assertString":163}],105:[function(require,module,exports){
11464
12480
  'use strict';
11465
12481
 
11466
12482
  Object.defineProperty(exports, "__esModule", {
@@ -11506,7 +12522,7 @@ function isCreditCard(str) {
11506
12522
  return !!(sum % 10 === 0 ? sanitized : false);
11507
12523
  }
11508
12524
  module.exports = exports['default'];
11509
- },{"./util/assertString":108}],54:[function(require,module,exports){
12525
+ },{"./util/assertString":163}],106:[function(require,module,exports){
11510
12526
  'use strict';
11511
12527
 
11512
12528
  Object.defineProperty(exports, "__esModule", {
@@ -11599,7 +12615,7 @@ function isCurrency(str, options) {
11599
12615
  return currencyRegex(options).test(str);
11600
12616
  }
11601
12617
  module.exports = exports['default'];
11602
- },{"./util/assertString":108,"./util/merge":109}],55:[function(require,module,exports){
12618
+ },{"./util/assertString":163,"./util/merge":165}],107:[function(require,module,exports){
11603
12619
  'use strict';
11604
12620
 
11605
12621
  Object.defineProperty(exports, "__esModule", {
@@ -11649,7 +12665,7 @@ function isDataURI(str) {
11649
12665
  return true;
11650
12666
  }
11651
12667
  module.exports = exports['default'];
11652
- },{"./util/assertString":108}],56:[function(require,module,exports){
12668
+ },{"./util/assertString":163}],108:[function(require,module,exports){
11653
12669
  'use strict';
11654
12670
 
11655
12671
  Object.defineProperty(exports, "__esModule", {
@@ -11665,6 +12681,10 @@ var _assertString = require('./util/assertString');
11665
12681
 
11666
12682
  var _assertString2 = _interopRequireDefault(_assertString);
11667
12683
 
12684
+ var _includes = require('./util/includes');
12685
+
12686
+ var _includes2 = _interopRequireDefault(_includes);
12687
+
11668
12688
  var _alpha = require('./alpha');
11669
12689
 
11670
12690
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -11686,12 +12706,12 @@ function isDecimal(str, options) {
11686
12706
  (0, _assertString2.default)(str);
11687
12707
  options = (0, _merge2.default)(options, default_decimal_options);
11688
12708
  if (options.locale in _alpha.decimal) {
11689
- return !blacklist.includes(str.replace(/ /g, '')) && decimalRegExp(options).test(str);
12709
+ return !(0, _includes2.default)(blacklist, str.replace(/ /g, '')) && decimalRegExp(options).test(str);
11690
12710
  }
11691
12711
  throw new Error('Invalid locale \'' + options.locale + '\'');
11692
12712
  }
11693
12713
  module.exports = exports['default'];
11694
- },{"./alpha":40,"./util/assertString":108,"./util/merge":109}],57:[function(require,module,exports){
12714
+ },{"./alpha":92,"./util/assertString":163,"./util/includes":164,"./util/merge":165}],109:[function(require,module,exports){
11695
12715
  'use strict';
11696
12716
 
11697
12717
  Object.defineProperty(exports, "__esModule", {
@@ -11714,7 +12734,7 @@ function isDivisibleBy(str, num) {
11714
12734
  return (0, _toFloat2.default)(str) % parseInt(num, 10) === 0;
11715
12735
  }
11716
12736
  module.exports = exports['default'];
11717
- },{"./toFloat":104,"./util/assertString":108}],58:[function(require,module,exports){
12737
+ },{"./toFloat":159,"./util/assertString":163}],110:[function(require,module,exports){
11718
12738
  'use strict';
11719
12739
 
11720
12740
  Object.defineProperty(exports, "__esModule", {
@@ -11738,6 +12758,10 @@ var _isFQDN = require('./isFQDN');
11738
12758
 
11739
12759
  var _isFQDN2 = _interopRequireDefault(_isFQDN);
11740
12760
 
12761
+ var _isIP = require('./isIP');
12762
+
12763
+ var _isIP2 = _interopRequireDefault(_isIP);
12764
+
11741
12765
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11742
12766
 
11743
12767
  var default_email_options = {
@@ -11751,6 +12775,7 @@ var default_email_options = {
11751
12775
  /* eslint-disable no-control-regex */
11752
12776
  var displayName = /^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\.\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\,\.\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF\s]*<(.+)>$/i;
11753
12777
  var emailUserPart = /^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i;
12778
+ var gmailUserPart = /^[a-z\d]+$/;
11754
12779
  var quotedEmailUser = /^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i;
11755
12780
  var emailUserUtf8Part = /^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i;
11756
12781
  var quotedEmailUserUtf8 = /^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*$/i;
@@ -11776,7 +12801,7 @@ function isEmail(str, options) {
11776
12801
 
11777
12802
  var lower_domain = domain.toLowerCase();
11778
12803
 
11779
- if (lower_domain === 'gmail.com' || lower_domain === 'googlemail.com') {
12804
+ if (options.domain_specific_validation && (lower_domain === 'gmail.com' || lower_domain === 'googlemail.com')) {
11780
12805
  /*
11781
12806
  Previously we removed dots for gmail addresses before validating.
11782
12807
  This was removed because it allows `multiple..dots@gmail.com`
@@ -11785,6 +12810,21 @@ function isEmail(str, options) {
11785
12810
  should be done in normalizeEmail
11786
12811
  */
11787
12812
  user = user.toLowerCase();
12813
+
12814
+ // Removing sub-address from username before gmail validation
12815
+ var username = user.split('+')[0];
12816
+
12817
+ // Dots are not included in gmail length restriction
12818
+ if (!(0, _isByteLength2.default)(username.replace('.', ''), { min: 6, max: 30 })) {
12819
+ return false;
12820
+ }
12821
+
12822
+ var _user_parts = username.split('.');
12823
+ for (var i = 0; i < _user_parts.length; i++) {
12824
+ if (!gmailUserPart.test(_user_parts[i])) {
12825
+ return false;
12826
+ }
12827
+ }
11788
12828
  }
11789
12829
 
11790
12830
  if (!(0, _isByteLength2.default)(user, { max: 64 }) || !(0, _isByteLength2.default)(domain, { max: 254 })) {
@@ -11792,7 +12832,21 @@ function isEmail(str, options) {
11792
12832
  }
11793
12833
 
11794
12834
  if (!(0, _isFQDN2.default)(domain, { require_tld: options.require_tld })) {
11795
- return false;
12835
+ if (!options.allow_ip_domain) {
12836
+ return false;
12837
+ }
12838
+
12839
+ if (!(0, _isIP2.default)(domain)) {
12840
+ if (!domain.startsWith('[') || !domain.endsWith(']')) {
12841
+ return false;
12842
+ }
12843
+
12844
+ var noBracketdomain = domain.substr(1, domain.length - 2);
12845
+
12846
+ if (noBracketdomain.length === 0 || !(0, _isIP2.default)(noBracketdomain)) {
12847
+ return false;
12848
+ }
12849
+ }
11796
12850
  }
11797
12851
 
11798
12852
  if (user[0] === '"') {
@@ -11803,8 +12857,8 @@ function isEmail(str, options) {
11803
12857
  var pattern = options.allow_utf8_local_part ? emailUserUtf8Part : emailUserPart;
11804
12858
 
11805
12859
  var user_parts = user.split('.');
11806
- for (var i = 0; i < user_parts.length; i++) {
11807
- if (!pattern.test(user_parts[i])) {
12860
+ for (var _i = 0; _i < user_parts.length; _i++) {
12861
+ if (!pattern.test(user_parts[_i])) {
11808
12862
  return false;
11809
12863
  }
11810
12864
  }
@@ -11812,7 +12866,7 @@ function isEmail(str, options) {
11812
12866
  return true;
11813
12867
  }
11814
12868
  module.exports = exports['default'];
11815
- },{"./isByteLength":52,"./isFQDN":60,"./util/assertString":108,"./util/merge":109}],59:[function(require,module,exports){
12869
+ },{"./isByteLength":104,"./isFQDN":112,"./isIP":119,"./util/assertString":163,"./util/merge":165}],111:[function(require,module,exports){
11816
12870
  'use strict';
11817
12871
 
11818
12872
  Object.defineProperty(exports, "__esModule", {
@@ -11824,14 +12878,24 @@ var _assertString = require('./util/assertString');
11824
12878
 
11825
12879
  var _assertString2 = _interopRequireDefault(_assertString);
11826
12880
 
12881
+ var _merge = require('./util/merge');
12882
+
12883
+ var _merge2 = _interopRequireDefault(_merge);
12884
+
11827
12885
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11828
12886
 
11829
- function isEmpty(str) {
12887
+ var default_is_empty_options = {
12888
+ ignore_whitespace: false
12889
+ };
12890
+
12891
+ function isEmpty(str, options) {
11830
12892
  (0, _assertString2.default)(str);
11831
- return str.length === 0;
12893
+ options = (0, _merge2.default)(options, default_is_empty_options);
12894
+
12895
+ return (options.ignore_whitespace ? str.trim().length : str.length) === 0;
11832
12896
  }
11833
12897
  module.exports = exports['default'];
11834
- },{"./util/assertString":108}],60:[function(require,module,exports){
12898
+ },{"./util/assertString":163,"./util/merge":165}],112:[function(require,module,exports){
11835
12899
  'use strict';
11836
12900
 
11837
12901
  Object.defineProperty(exports, "__esModule", {
@@ -11898,7 +12962,7 @@ function isFQDN(str, options) {
11898
12962
  return true;
11899
12963
  }
11900
12964
  module.exports = exports['default'];
11901
- },{"./util/assertString":108,"./util/merge":109}],61:[function(require,module,exports){
12965
+ },{"./util/assertString":163,"./util/merge":165}],113:[function(require,module,exports){
11902
12966
  'use strict';
11903
12967
 
11904
12968
  Object.defineProperty(exports, "__esModule", {
@@ -11925,7 +12989,7 @@ function isFloat(str, options) {
11925
12989
  return float.test(str) && (!options.hasOwnProperty('min') || value >= options.min) && (!options.hasOwnProperty('max') || value <= options.max) && (!options.hasOwnProperty('lt') || value < options.lt) && (!options.hasOwnProperty('gt') || value > options.gt);
11926
12990
  }
11927
12991
  module.exports = exports['default'];
11928
- },{"./alpha":40,"./util/assertString":108}],62:[function(require,module,exports){
12992
+ },{"./alpha":92,"./util/assertString":163}],114:[function(require,module,exports){
11929
12993
  'use strict';
11930
12994
 
11931
12995
  Object.defineProperty(exports, "__esModule", {
@@ -11946,7 +13010,7 @@ function isFullWidth(str) {
11946
13010
  (0, _assertString2.default)(str);
11947
13011
  return fullWidth.test(str);
11948
13012
  }
11949
- },{"./util/assertString":108}],63:[function(require,module,exports){
13013
+ },{"./util/assertString":163}],115:[function(require,module,exports){
11950
13014
  'use strict';
11951
13015
 
11952
13016
  Object.defineProperty(exports, "__esModule", {
@@ -11967,7 +13031,7 @@ function isHalfWidth(str) {
11967
13031
  (0, _assertString2.default)(str);
11968
13032
  return halfWidth.test(str);
11969
13033
  }
11970
- },{"./util/assertString":108}],64:[function(require,module,exports){
13034
+ },{"./util/assertString":163}],116:[function(require,module,exports){
11971
13035
  'use strict';
11972
13036
 
11973
13037
  Object.defineProperty(exports, "__esModule", {
@@ -12003,7 +13067,7 @@ function isHash(str, algorithm) {
12003
13067
  return hash.test(str);
12004
13068
  }
12005
13069
  module.exports = exports['default'];
12006
- },{"./util/assertString":108}],65:[function(require,module,exports){
13070
+ },{"./util/assertString":163}],117:[function(require,module,exports){
12007
13071
  'use strict';
12008
13072
 
12009
13073
  Object.defineProperty(exports, "__esModule", {
@@ -12024,7 +13088,7 @@ function isHexColor(str) {
12024
13088
  return hexcolor.test(str);
12025
13089
  }
12026
13090
  module.exports = exports['default'];
12027
- },{"./util/assertString":108}],66:[function(require,module,exports){
13091
+ },{"./util/assertString":163}],118:[function(require,module,exports){
12028
13092
  'use strict';
12029
13093
 
12030
13094
  Object.defineProperty(exports, "__esModule", {
@@ -12045,7 +13109,7 @@ function isHexadecimal(str) {
12045
13109
  return hexadecimal.test(str);
12046
13110
  }
12047
13111
  module.exports = exports['default'];
12048
- },{"./util/assertString":108}],67:[function(require,module,exports){
13112
+ },{"./util/assertString":163}],119:[function(require,module,exports){
12049
13113
  'use strict';
12050
13114
 
12051
13115
  Object.defineProperty(exports, "__esModule", {
@@ -12127,7 +13191,48 @@ function isIP(str) {
12127
13191
  return false;
12128
13192
  }
12129
13193
  module.exports = exports['default'];
12130
- },{"./util/assertString":108}],68:[function(require,module,exports){
13194
+ },{"./util/assertString":163}],120:[function(require,module,exports){
13195
+ 'use strict';
13196
+
13197
+ Object.defineProperty(exports, "__esModule", {
13198
+ value: true
13199
+ });
13200
+ exports.default = isIPRange;
13201
+
13202
+ var _assertString = require('./util/assertString');
13203
+
13204
+ var _assertString2 = _interopRequireDefault(_assertString);
13205
+
13206
+ var _isIP = require('./isIP');
13207
+
13208
+ var _isIP2 = _interopRequireDefault(_isIP);
13209
+
13210
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13211
+
13212
+ var subnetMaybe = /^\d{1,2}$/;
13213
+
13214
+ function isIPRange(str) {
13215
+ (0, _assertString2.default)(str);
13216
+ var parts = str.split('/');
13217
+
13218
+ // parts[0] -> ip, parts[1] -> subnet
13219
+ if (parts.length !== 2) {
13220
+ return false;
13221
+ }
13222
+
13223
+ if (!subnetMaybe.test(parts[1])) {
13224
+ return false;
13225
+ }
13226
+
13227
+ // Disallow preceding 0 i.e. 01, 02, ...
13228
+ if (parts[1].length > 1 && parts[1].startsWith('0')) {
13229
+ return false;
13230
+ }
13231
+
13232
+ return (0, _isIP2.default)(parts[0], 4) && parts[1] <= 32 && parts[1] >= 0;
13233
+ }
13234
+ module.exports = exports['default'];
13235
+ },{"./isIP":119,"./util/assertString":163}],121:[function(require,module,exports){
12131
13236
  'use strict';
12132
13237
 
12133
13238
  Object.defineProperty(exports, "__esModule", {
@@ -12185,7 +13290,7 @@ function isISBN(str) {
12185
13290
  return false;
12186
13291
  }
12187
13292
  module.exports = exports['default'];
12188
- },{"./util/assertString":108}],69:[function(require,module,exports){
13293
+ },{"./util/assertString":163}],122:[function(require,module,exports){
12189
13294
  'use strict';
12190
13295
 
12191
13296
  Object.defineProperty(exports, "__esModule", {
@@ -12234,7 +13339,7 @@ function isISIN(str) {
12234
13339
  return parseInt(str.substr(str.length - 1), 10) === (10000 - sum) % 10;
12235
13340
  }
12236
13341
  module.exports = exports['default'];
12237
- },{"./util/assertString":108}],70:[function(require,module,exports){
13342
+ },{"./util/assertString":163}],123:[function(require,module,exports){
12238
13343
  'use strict';
12239
13344
 
12240
13345
  Object.defineProperty(exports, "__esModule", {
@@ -12246,6 +13351,10 @@ var _assertString = require('./util/assertString');
12246
13351
 
12247
13352
  var _assertString2 = _interopRequireDefault(_assertString);
12248
13353
 
13354
+ var _includes = require('./util/includes');
13355
+
13356
+ var _includes2 = _interopRequireDefault(_includes);
13357
+
12249
13358
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12250
13359
 
12251
13360
  // from https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
@@ -12253,10 +13362,10 @@ var validISO31661Alpha2CountriesCodes = ['AD', 'AE', 'AF', 'AG', 'AI', 'AL', 'AM
12253
13362
 
12254
13363
  function isISO31661Alpha2(str) {
12255
13364
  (0, _assertString2.default)(str);
12256
- return validISO31661Alpha2CountriesCodes.includes(str.toUpperCase());
13365
+ return (0, _includes2.default)(validISO31661Alpha2CountriesCodes, str.toUpperCase());
12257
13366
  }
12258
13367
  module.exports = exports['default'];
12259
- },{"./util/assertString":108}],71:[function(require,module,exports){
13368
+ },{"./util/assertString":163,"./util/includes":164}],124:[function(require,module,exports){
12260
13369
  'use strict';
12261
13370
 
12262
13371
  Object.defineProperty(exports, "__esModule", {
@@ -12268,6 +13377,10 @@ var _assertString = require('./util/assertString');
12268
13377
 
12269
13378
  var _assertString2 = _interopRequireDefault(_assertString);
12270
13379
 
13380
+ var _includes = require('./util/includes');
13381
+
13382
+ var _includes2 = _interopRequireDefault(_includes);
13383
+
12271
13384
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12272
13385
 
12273
13386
  // from https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3
@@ -12275,10 +13388,10 @@ var validISO31661Alpha3CountriesCodes = ['AFG', 'ALA', 'ALB', 'DZA', 'ASM', 'AND
12275
13388
 
12276
13389
  function isISO31661Alpha3(str) {
12277
13390
  (0, _assertString2.default)(str);
12278
- return validISO31661Alpha3CountriesCodes.includes(str.toUpperCase());
13391
+ return (0, _includes2.default)(validISO31661Alpha3CountriesCodes, str.toUpperCase());
12279
13392
  }
12280
13393
  module.exports = exports['default'];
12281
- },{"./util/assertString":108}],72:[function(require,module,exports){
13394
+ },{"./util/assertString":163,"./util/includes":164}],125:[function(require,module,exports){
12282
13395
  'use strict';
12283
13396
 
12284
13397
  Object.defineProperty(exports, "__esModule", {
@@ -12302,7 +13415,7 @@ function isISO8601(str) {
12302
13415
  return iso8601.test(str);
12303
13416
  }
12304
13417
  module.exports = exports['default'];
12305
- },{"./util/assertString":108}],73:[function(require,module,exports){
13418
+ },{"./util/assertString":163}],126:[function(require,module,exports){
12306
13419
  'use strict';
12307
13420
 
12308
13421
  Object.defineProperty(exports, "__esModule", {
@@ -12324,7 +13437,7 @@ function isISRC(str) {
12324
13437
  return isrc.test(str);
12325
13438
  }
12326
13439
  module.exports = exports['default'];
12327
- },{"./util/assertString":108}],74:[function(require,module,exports){
13440
+ },{"./util/assertString":163}],127:[function(require,module,exports){
12328
13441
  'use strict';
12329
13442
 
12330
13443
  Object.defineProperty(exports, "__esModule", {
@@ -12350,40 +13463,16 @@ function isISSN(str) {
12350
13463
  if (!testIssn.test(str)) {
12351
13464
  return false;
12352
13465
  }
12353
- var issnDigits = str.replace('-', '');
12354
- var position = 8;
13466
+ var digits = str.replace('-', '').toUpperCase();
12355
13467
  var checksum = 0;
12356
- var _iteratorNormalCompletion = true;
12357
- var _didIteratorError = false;
12358
- var _iteratorError = undefined;
12359
-
12360
- try {
12361
- for (var _iterator = issnDigits[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
12362
- var digit = _step.value;
12363
-
12364
- var digitValue = digit.toUpperCase() === 'X' ? 10 : +digit;
12365
- checksum += digitValue * position;
12366
- --position;
12367
- }
12368
- } catch (err) {
12369
- _didIteratorError = true;
12370
- _iteratorError = err;
12371
- } finally {
12372
- try {
12373
- if (!_iteratorNormalCompletion && _iterator.return) {
12374
- _iterator.return();
12375
- }
12376
- } finally {
12377
- if (_didIteratorError) {
12378
- throw _iteratorError;
12379
- }
12380
- }
13468
+ for (var i = 0; i < digits.length; i++) {
13469
+ var digit = digits[i];
13470
+ checksum += (digit === 'X' ? 10 : +digit) * (8 - i);
12381
13471
  }
12382
-
12383
13472
  return checksum % 11 === 0;
12384
13473
  }
12385
13474
  module.exports = exports['default'];
12386
- },{"./util/assertString":108}],75:[function(require,module,exports){
13475
+ },{"./util/assertString":163}],128:[function(require,module,exports){
12387
13476
  'use strict';
12388
13477
 
12389
13478
  Object.defineProperty(exports, "__esModule", {
@@ -12423,7 +13512,7 @@ function isIn(str, options) {
12423
13512
  return false;
12424
13513
  }
12425
13514
  module.exports = exports['default'];
12426
- },{"./util/assertString":108,"./util/toString":110}],76:[function(require,module,exports){
13515
+ },{"./util/assertString":163,"./util/toString":166}],129:[function(require,module,exports){
12427
13516
  'use strict';
12428
13517
 
12429
13518
  Object.defineProperty(exports, "__esModule", {
@@ -12457,7 +13546,7 @@ function isInt(str, options) {
12457
13546
  return regex.test(str) && minCheckPassed && maxCheckPassed && ltCheckPassed && gtCheckPassed;
12458
13547
  }
12459
13548
  module.exports = exports['default'];
12460
- },{"./util/assertString":108}],77:[function(require,module,exports){
13549
+ },{"./util/assertString":163}],130:[function(require,module,exports){
12461
13550
  'use strict';
12462
13551
 
12463
13552
  Object.defineProperty(exports, "__esModule", {
@@ -12483,7 +13572,28 @@ function isJSON(str) {
12483
13572
  return false;
12484
13573
  }
12485
13574
  module.exports = exports['default'];
12486
- },{"./util/assertString":108}],78:[function(require,module,exports){
13575
+ },{"./util/assertString":163}],131:[function(require,module,exports){
13576
+ 'use strict';
13577
+
13578
+ Object.defineProperty(exports, "__esModule", {
13579
+ value: true
13580
+ });
13581
+ exports.default = isJWT;
13582
+
13583
+ var _assertString = require('./util/assertString');
13584
+
13585
+ var _assertString2 = _interopRequireDefault(_assertString);
13586
+
13587
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13588
+
13589
+ var jwt = /^[a-zA-Z0-9\-_]+\.[a-zA-Z0-9\-_]+\.[a-zA-Z0-9\-_]+$/;
13590
+
13591
+ function isJWT(str) {
13592
+ (0, _assertString2.default)(str);
13593
+ return jwt.test(str);
13594
+ }
13595
+ module.exports = exports['default'];
13596
+ },{"./util/assertString":163}],132:[function(require,module,exports){
12487
13597
  'use strict';
12488
13598
 
12489
13599
  Object.defineProperty(exports, "__esModule", {
@@ -12507,7 +13617,7 @@ var lat = /^\(?[+-]?(90(\.0+)?|[1-8]?\d(\.\d+)?)$/;
12507
13617
  var long = /^\s?[+-]?(180(\.0+)?|1[0-7]\d(\.\d+)?|\d{1,2}(\.\d+)?)\)?$/;
12508
13618
 
12509
13619
  module.exports = exports['default'];
12510
- },{"./util/assertString":108}],79:[function(require,module,exports){
13620
+ },{"./util/assertString":163}],133:[function(require,module,exports){
12511
13621
  'use strict';
12512
13622
 
12513
13623
  Object.defineProperty(exports, "__esModule", {
@@ -12542,7 +13652,7 @@ function isLength(str, options) {
12542
13652
  return len >= min && (typeof max === 'undefined' || len <= max);
12543
13653
  }
12544
13654
  module.exports = exports['default'];
12545
- },{"./util/assertString":108}],80:[function(require,module,exports){
13655
+ },{"./util/assertString":163}],134:[function(require,module,exports){
12546
13656
  'use strict';
12547
13657
 
12548
13658
  Object.defineProperty(exports, "__esModule", {
@@ -12561,7 +13671,7 @@ function isLowercase(str) {
12561
13671
  return str === str.toLowerCase();
12562
13672
  }
12563
13673
  module.exports = exports['default'];
12564
- },{"./util/assertString":108}],81:[function(require,module,exports){
13674
+ },{"./util/assertString":163}],135:[function(require,module,exports){
12565
13675
  'use strict';
12566
13676
 
12567
13677
  Object.defineProperty(exports, "__esModule", {
@@ -12576,13 +13686,17 @@ var _assertString2 = _interopRequireDefault(_assertString);
12576
13686
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12577
13687
 
12578
13688
  var macAddress = /^([0-9a-fA-F][0-9a-fA-F]:){5}([0-9a-fA-F][0-9a-fA-F])$/;
13689
+ var macAddressNoColons = /^([0-9a-fA-F]){12}$/;
12579
13690
 
12580
- function isMACAddress(str) {
13691
+ function isMACAddress(str, options) {
12581
13692
  (0, _assertString2.default)(str);
13693
+ if (options && options.no_colons) {
13694
+ return macAddressNoColons.test(str);
13695
+ }
12582
13696
  return macAddress.test(str);
12583
13697
  }
12584
13698
  module.exports = exports['default'];
12585
- },{"./util/assertString":108}],82:[function(require,module,exports){
13699
+ },{"./util/assertString":163}],136:[function(require,module,exports){
12586
13700
  'use strict';
12587
13701
 
12588
13702
  Object.defineProperty(exports, "__esModule", {
@@ -12603,7 +13717,28 @@ function isMD5(str) {
12603
13717
  return md5.test(str);
12604
13718
  }
12605
13719
  module.exports = exports['default'];
12606
- },{"./util/assertString":108}],83:[function(require,module,exports){
13720
+ },{"./util/assertString":163}],137:[function(require,module,exports){
13721
+ 'use strict';
13722
+
13723
+ Object.defineProperty(exports, "__esModule", {
13724
+ value: true
13725
+ });
13726
+ exports.default = isMagnetURI;
13727
+
13728
+ var _assertString = require('./util/assertString');
13729
+
13730
+ var _assertString2 = _interopRequireDefault(_assertString);
13731
+
13732
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13733
+
13734
+ var magnetURI = /^magnet:\?xt=urn:[a-z0-9]+:[a-z0-9]{32,40}&dn=.+&tr=.+$/i;
13735
+
13736
+ function isMagnetURI(url) {
13737
+ (0, _assertString2.default)(url);
13738
+ return magnetURI.test(url.trim());
13739
+ }
13740
+ module.exports = exports['default'];
13741
+ },{"./util/assertString":163}],138:[function(require,module,exports){
12607
13742
  'use strict';
12608
13743
 
12609
13744
  Object.defineProperty(exports, "__esModule", {
@@ -12656,7 +13791,7 @@ function isMimeType(str) {
12656
13791
  return mimeTypeSimple.test(str) || mimeTypeText.test(str) || mimeTypeMultipart.test(str);
12657
13792
  }
12658
13793
  module.exports = exports['default'];
12659
- },{"./util/assertString":108}],84:[function(require,module,exports){
13794
+ },{"./util/assertString":163}],139:[function(require,module,exports){
12660
13795
  'use strict';
12661
13796
 
12662
13797
  Object.defineProperty(exports, "__esModule", {
@@ -12675,14 +13810,18 @@ var phones = {
12675
13810
  'ar-AE': /^((\+?971)|0)?5[024568]\d{7}$/,
12676
13811
  'ar-DZ': /^(\+?213|0)(5|6|7)\d{8}$/,
12677
13812
  'ar-EG': /^((\+?20)|0)?1[012]\d{8}$/,
13813
+ 'ar-IQ': /^(\+?964|0)?7[0-9]\d{8}$/,
12678
13814
  'ar-JO': /^(\+?962|0)?7[789]\d{7}$/,
13815
+ 'ar-KW': /^(\+?965)[569]\d{7}$/,
12679
13816
  'ar-SA': /^(!?(\+?966)|0)?5\d{8}$/,
12680
13817
  'ar-SY': /^(!?(\+?963)|0)?9\d{8}$/,
13818
+ 'ar-TN': /^(\+?216)?[2459]\d{7}$/,
12681
13819
  'be-BY': /^(\+?375)?(24|25|29|33|44)\d{7}$/,
12682
13820
  'bg-BG': /^(\+?359|0)?8[789]\d{7}$/,
13821
+ 'bn-BD': /\+?(88)?0?1[156789][0-9]{8}\b/,
12683
13822
  'cs-CZ': /^(\+?420)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,
12684
13823
  'da-DK': /^(\+?45)?\s?\d{2}\s?\d{2}\s?\d{2}\s?\d{2}$/,
12685
- 'de-DE': /^(\+?49[ \.\-])?([\(]{1}[0-9]{1,6}[\)])?([0-9 \.\-\/]{3,20})((x|ext|extension)[ ]?[0-9]{1,4})?$/,
13824
+ 'de-DE': /^(\+?49[ \.\-]?)?([\(]{1}[0-9]{1,6}[\)])?([0-9 \.\-\/]{3,20})((x|ext|extension)[ ]?[0-9]{1,4})?$/,
12686
13825
  'el-GR': /^(\+?30|0)?(69\d{8})$/,
12687
13826
  'en-AU': /^(\+?61|0)4\d{8}$/,
12688
13827
  'en-GB': /^(\+?44|0)7\d{9}$/,
@@ -12690,24 +13829,25 @@ var phones = {
12690
13829
  'en-IN': /^(\+?91|0)?[6789]\d{9}$/,
12691
13830
  'en-KE': /^(\+?254|0)?[7]\d{8}$/,
12692
13831
  'en-NG': /^(\+?234|0)?[789]\d{9}$/,
12693
- 'en-NZ': /^(\+?64|0)2\d{7,9}$/,
13832
+ 'en-NZ': /^(\+?64|0)[28]\d{7,9}$/,
12694
13833
  'en-PK': /^((\+92)|(0092))-{0,1}\d{3}-{0,1}\d{7}$|^\d{11}$|^\d{4}-\d{7}$/,
12695
13834
  'en-RW': /^(\+?250|0)?[7]\d{8}$/,
12696
13835
  'en-SG': /^(\+65)?[89]\d{7}$/,
12697
13836
  'en-TZ': /^(\+?255|0)?[67]\d{8}$/,
12698
13837
  'en-UG': /^(\+?256|0)?[7]\d{8}$/,
12699
- 'en-US': /^(\+?1)?[2-9]\d{2}[2-9](?!11)\d{6}$/,
13838
+ 'en-US': /^(\+?1?( |-)?)?(\([2-9][0-9]{2}\)|[2-9][0-9]{2})( |-)?([2-9][0-9]{2}( |-)?[0-9]{4})$/,
12700
13839
  'en-ZA': /^(\+?27|0)\d{9}$/,
12701
13840
  'en-ZM': /^(\+?26)?09[567]\d{7}$/,
12702
13841
  'es-ES': /^(\+?34)?(6\d{1}|7[1234])\d{7}$/,
13842
+ 'es-MX': /^(\+?52)?(1|01)?\d{10,11}$/,
12703
13843
  'et-EE': /^(\+?372)?\s?(5|8[1-4])\s?([0-9]\s?){6,7}$/,
12704
13844
  'fa-IR': /^(\+?98[\-\s]?|0)9[0-39]\d[\-\s]?\d{3}[\-\s]?\d{4}$/,
12705
13845
  'fi-FI': /^(\+?358|0)\s?(4(0|1|2|4|5|6)?|50)\s?(\d\s?){4,8}\d$/,
12706
13846
  'fo-FO': /^(\+?298)?\s?\d{2}\s?\d{2}\s?\d{2}$/,
12707
13847
  'fr-FR': /^(\+?33|0)[67]\d{8}$/,
12708
- 'he-IL': /^(\+972|0)([23489]|5[012345689]|77)[1-9]\d{6}/,
13848
+ 'he-IL': /^(\+972|0)([23489]|5[012345689]|77)[1-9]\d{6}$/,
12709
13849
  'hu-HU': /^(\+?36)(20|30|70)\d{7}$/,
12710
- 'id-ID': /^(\+?62|0[1-9])[\s|\d]+$/,
13850
+ 'id-ID': /^(\+?62|0)(0?8?\d\d\s?\d?)([\s?|\d]{7,12})$/,
12711
13851
  'it-IT': /^(\+?39)?\s?3\d{2} ?\d{6,7}$/,
12712
13852
  'ja-JP': /^(\+?81|0)[789]0[ \-]?[1-9]\d{2}[ \-]?\d{5}$/,
12713
13853
  'kk-KZ': /^(\+?7|8)?7\d{9}$/,
@@ -12719,17 +13859,18 @@ var phones = {
12719
13859
  'nl-BE': /^(\+?32|0)4?\d{8}$/,
12720
13860
  'nn-NO': /^(\+?47)?[49]\d{7}$/,
12721
13861
  'pl-PL': /^(\+?48)? ?[5-8]\d ?\d{3} ?\d{2} ?\d{2}$/,
12722
- 'pt-BR': /^(\+?55|0)\-?[1-9]{2}\-?[2-9]{1}\d{3,4}\-?\d{4}$/,
13862
+ 'pt-BR': /(?=^(\+?5{2}\-?|0)[1-9]{2}\-?\d{4}\-?\d{4}$)(^(\+?5{2}\-?|0)[1-9]{2}\-?[6-9]{1}\d{3}\-?\d{4}$)|(^(\+?5{2}\-?|0)[1-9]{2}\-?9[6-9]{1}\d{3}\-?\d{4}$)/,
12723
13863
  'pt-PT': /^(\+?351)?9[1236]\d{7}$/,
12724
13864
  'ro-RO': /^(\+?4?0)\s?7\d{2}(\/|\s|\.|\-)?\d{3}(\s|\.|\-)?\d{3}$/,
12725
13865
  'ru-RU': /^(\+?7|8)?9\d{9}$/,
12726
13866
  'sk-SK': /^(\+?421)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,
12727
13867
  'sr-RS': /^(\+3816|06)[- \d]{5,9}$/,
13868
+ 'sv-SE': /^(\+?46|0)[\s\-]?7[\s\-]?[02369]([\s\-]?\d){7}$/,
12728
13869
  'th-TH': /^(\+66|66|0)\d{9}$/,
12729
13870
  'tr-TR': /^(\+?90|0)?5\d{9}$/,
12730
13871
  'uk-UA': /^(\+?38|8)?0\d{9}$/,
12731
13872
  'vi-VN': /^(\+?84|0)?((1(2([0-9])|6([2-9])|88|99))|(9((?!5)[0-9])))([0-9]{7})$/,
12732
- 'zh-CN': /^(\+?0?86\-?)?1[3456789]\d{9}$/,
13873
+ 'zh-CN': /^((\+|00)86)?1([358][0-9]|4[579]|66|7[0135678]|9[89])[0-9]{8}$/,
12733
13874
  'zh-TW': /^(\+?886\-?|0)?9\d{8}$/
12734
13875
  };
12735
13876
  /* eslint-enable max-len */
@@ -12744,9 +13885,20 @@ function isMobilePhone(str, locale, options) {
12744
13885
  if (options && options.strictMode && !str.startsWith('+')) {
12745
13886
  return false;
12746
13887
  }
12747
- if (locale in phones) {
13888
+ if (Array.isArray(locale)) {
13889
+ return locale.some(function (key) {
13890
+ if (phones.hasOwnProperty(key)) {
13891
+ var phone = phones[key];
13892
+ if (phone.test(str)) {
13893
+ return true;
13894
+ }
13895
+ }
13896
+ return false;
13897
+ });
13898
+ } else if (locale in phones) {
12748
13899
  return phones[locale].test(str);
12749
- } else if (locale === 'any') {
13900
+ // alias falsey locale as 'any'
13901
+ } else if (!locale || locale === 'any') {
12750
13902
  for (var key in phones) {
12751
13903
  if (phones.hasOwnProperty(key)) {
12752
13904
  var phone = phones[key];
@@ -12760,7 +13912,7 @@ function isMobilePhone(str, locale, options) {
12760
13912
  throw new Error('Invalid locale \'' + locale + '\'');
12761
13913
  }
12762
13914
  module.exports = exports['default'];
12763
- },{"./util/assertString":108}],85:[function(require,module,exports){
13915
+ },{"./util/assertString":163}],140:[function(require,module,exports){
12764
13916
  'use strict';
12765
13917
 
12766
13918
  Object.defineProperty(exports, "__esModule", {
@@ -12783,7 +13935,7 @@ function isMongoId(str) {
12783
13935
  return (0, _isHexadecimal2.default)(str) && str.length === 24;
12784
13936
  }
12785
13937
  module.exports = exports['default'];
12786
- },{"./isHexadecimal":66,"./util/assertString":108}],86:[function(require,module,exports){
13938
+ },{"./isHexadecimal":118,"./util/assertString":163}],141:[function(require,module,exports){
12787
13939
  'use strict';
12788
13940
 
12789
13941
  Object.defineProperty(exports, "__esModule", {
@@ -12806,7 +13958,7 @@ function isMultibyte(str) {
12806
13958
  return multibyte.test(str);
12807
13959
  }
12808
13960
  module.exports = exports['default'];
12809
- },{"./util/assertString":108}],87:[function(require,module,exports){
13961
+ },{"./util/assertString":163}],142:[function(require,module,exports){
12810
13962
  'use strict';
12811
13963
 
12812
13964
  Object.defineProperty(exports, "__esModule", {
@@ -12821,13 +13973,17 @@ var _assertString2 = _interopRequireDefault(_assertString);
12821
13973
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12822
13974
 
12823
13975
  var numeric = /^[+-]?([0-9]*[.])?[0-9]+$/;
13976
+ var numericNoSymbols = /^[0-9]+$/;
12824
13977
 
12825
- function isNumeric(str) {
13978
+ function isNumeric(str, options) {
12826
13979
  (0, _assertString2.default)(str);
13980
+ if (options && options.no_symbols) {
13981
+ return numericNoSymbols.test(str);
13982
+ }
12827
13983
  return numeric.test(str);
12828
13984
  }
12829
13985
  module.exports = exports['default'];
12830
- },{"./util/assertString":108}],88:[function(require,module,exports){
13986
+ },{"./util/assertString":163}],143:[function(require,module,exports){
12831
13987
  'use strict';
12832
13988
 
12833
13989
  Object.defineProperty(exports, "__esModule", {
@@ -12845,7 +14001,7 @@ function isPort(str) {
12845
14001
  return (0, _isInt2.default)(str, { min: 0, max: 65535 });
12846
14002
  }
12847
14003
  module.exports = exports['default'];
12848
- },{"./isInt":76}],89:[function(require,module,exports){
14004
+ },{"./isInt":129}],144:[function(require,module,exports){
12849
14005
  'use strict';
12850
14006
 
12851
14007
  Object.defineProperty(exports, "__esModule", {
@@ -12884,6 +14040,7 @@ var fiveDigit = /^\d{5}$/;
12884
14040
  var sixDigit = /^\d{6}$/;
12885
14041
 
12886
14042
  var patterns = {
14043
+ AD: /^AD\d{3}$/,
12887
14044
  AT: fourDigit,
12888
14045
  AU: fourDigit,
12889
14046
  BE: fourDigit,
@@ -12894,11 +14051,14 @@ var patterns = {
12894
14051
  DE: fiveDigit,
12895
14052
  DK: fourDigit,
12896
14053
  DZ: fiveDigit,
14054
+ EE: fiveDigit,
12897
14055
  ES: fiveDigit,
12898
14056
  FI: fiveDigit,
12899
14057
  FR: /^\d{2}\s?\d{3}$/,
12900
14058
  GB: /^(gir\s?0aa|[a-z]{1,2}\d[\da-z]?\s?(\d[a-z]{2})?)$/i,
12901
14059
  GR: /^\d{3}\s?\d{2}$/,
14060
+ HR: /^([1-5]\d{4}$)/,
14061
+ HU: fourDigit,
12902
14062
  IL: fiveDigit,
12903
14063
  IN: sixDigit,
12904
14064
  IS: threeDigit,
@@ -12906,6 +14066,9 @@ var patterns = {
12906
14066
  JP: /^\d{3}\-\d{4}$/,
12907
14067
  KE: fiveDigit,
12908
14068
  LI: /^(948[5-9]|949[0-7])$/,
14069
+ LT: /^LT\-\d{5}$/,
14070
+ LU: fourDigit,
14071
+ LV: /^LV\-\d{4}$/,
12909
14072
  MX: fiveDigit,
12910
14073
  NL: /^\d{4}\s?[a-z]{2}$/i,
12911
14074
  NO: fourDigit,
@@ -12915,7 +14078,9 @@ var patterns = {
12915
14078
  RU: sixDigit,
12916
14079
  SA: fiveDigit,
12917
14080
  SE: /^\d{3}\s?\d{2}$/,
14081
+ SI: fourDigit,
12918
14082
  SK: /^\d{3}\s?\d{2}$/,
14083
+ TN: fourDigit,
12919
14084
  TW: /^\d{3}(\d{2})?$/,
12920
14085
  US: /^\d{5}(-\d{4})?$/,
12921
14086
  ZA: fourDigit,
@@ -12923,7 +14088,7 @@ var patterns = {
12923
14088
  };
12924
14089
 
12925
14090
  var locales = exports.locales = Object.keys(patterns);
12926
- },{"./util/assertString":108}],90:[function(require,module,exports){
14091
+ },{"./util/assertString":163}],145:[function(require,module,exports){
12927
14092
  'use strict';
12928
14093
 
12929
14094
  Object.defineProperty(exports, "__esModule", {
@@ -12963,7 +14128,7 @@ function isRFC3339(str) {
12963
14128
  return rfc3339.test(str);
12964
14129
  }
12965
14130
  module.exports = exports['default'];
12966
- },{"./util/assertString":108}],91:[function(require,module,exports){
14131
+ },{"./util/assertString":163}],146:[function(require,module,exports){
12967
14132
  'use strict';
12968
14133
 
12969
14134
  Object.defineProperty(exports, "__esModule", {
@@ -12984,7 +14149,7 @@ function isSurrogatePair(str) {
12984
14149
  return surrogatePair.test(str);
12985
14150
  }
12986
14151
  module.exports = exports['default'];
12987
- },{"./util/assertString":108}],92:[function(require,module,exports){
14152
+ },{"./util/assertString":163}],147:[function(require,module,exports){
12988
14153
  'use strict';
12989
14154
 
12990
14155
  Object.defineProperty(exports, "__esModule", {
@@ -13063,13 +14228,16 @@ function isURL(url, options) {
13063
14228
 
13064
14229
  split = url.split('://');
13065
14230
  if (split.length > 1) {
13066
- protocol = split.shift();
14231
+ protocol = split.shift().toLowerCase();
13067
14232
  if (options.require_valid_protocol && options.protocols.indexOf(protocol) === -1) {
13068
14233
  return false;
13069
14234
  }
13070
14235
  } else if (options.require_protocol) {
13071
14236
  return false;
13072
- } else if (options.allow_protocol_relative_urls && url.substr(0, 2) === '//') {
14237
+ } else if (url.substr(0, 2) === '//') {
14238
+ if (!options.allow_protocol_relative_urls) {
14239
+ return false;
14240
+ }
13073
14241
  split[0] = url.substr(2);
13074
14242
  }
13075
14243
  url = split.join('://');
@@ -13132,7 +14300,7 @@ function isURL(url, options) {
13132
14300
  return true;
13133
14301
  }
13134
14302
  module.exports = exports['default'];
13135
- },{"./isFQDN":60,"./isIP":67,"./util/assertString":108,"./util/merge":109}],93:[function(require,module,exports){
14303
+ },{"./isFQDN":112,"./isIP":119,"./util/assertString":163,"./util/merge":165}],148:[function(require,module,exports){
13136
14304
  'use strict';
13137
14305
 
13138
14306
  Object.defineProperty(exports, "__esModule", {
@@ -13161,7 +14329,7 @@ function isUUID(str) {
13161
14329
  return pattern && pattern.test(str);
13162
14330
  }
13163
14331
  module.exports = exports['default'];
13164
- },{"./util/assertString":108}],94:[function(require,module,exports){
14332
+ },{"./util/assertString":163}],149:[function(require,module,exports){
13165
14333
  'use strict';
13166
14334
 
13167
14335
  Object.defineProperty(exports, "__esModule", {
@@ -13180,7 +14348,7 @@ function isUppercase(str) {
13180
14348
  return str === str.toUpperCase();
13181
14349
  }
13182
14350
  module.exports = exports['default'];
13183
- },{"./util/assertString":108}],95:[function(require,module,exports){
14351
+ },{"./util/assertString":163}],150:[function(require,module,exports){
13184
14352
  'use strict';
13185
14353
 
13186
14354
  Object.defineProperty(exports, "__esModule", {
@@ -13203,7 +14371,7 @@ function isVariableWidth(str) {
13203
14371
  return _isFullWidth.fullWidth.test(str) && _isHalfWidth.halfWidth.test(str);
13204
14372
  }
13205
14373
  module.exports = exports['default'];
13206
- },{"./isFullWidth":62,"./isHalfWidth":63,"./util/assertString":108}],96:[function(require,module,exports){
14374
+ },{"./isFullWidth":114,"./isHalfWidth":115,"./util/assertString":163}],151:[function(require,module,exports){
13207
14375
  'use strict';
13208
14376
 
13209
14377
  Object.defineProperty(exports, "__esModule", {
@@ -13227,7 +14395,7 @@ function isWhitelisted(str, chars) {
13227
14395
  return true;
13228
14396
  }
13229
14397
  module.exports = exports['default'];
13230
- },{"./util/assertString":108}],97:[function(require,module,exports){
14398
+ },{"./util/assertString":163}],152:[function(require,module,exports){
13231
14399
  'use strict';
13232
14400
 
13233
14401
  Object.defineProperty(exports, "__esModule", {
@@ -13247,7 +14415,7 @@ function ltrim(str, chars) {
13247
14415
  return str.replace(pattern, '');
13248
14416
  }
13249
14417
  module.exports = exports['default'];
13250
- },{"./util/assertString":108}],98:[function(require,module,exports){
14418
+ },{"./util/assertString":163}],153:[function(require,module,exports){
13251
14419
  'use strict';
13252
14420
 
13253
14421
  Object.defineProperty(exports, "__esModule", {
@@ -13269,7 +14437,7 @@ function matches(str, pattern, modifiers) {
13269
14437
  return pattern.test(str);
13270
14438
  }
13271
14439
  module.exports = exports['default'];
13272
- },{"./util/assertString":108}],99:[function(require,module,exports){
14440
+ },{"./util/assertString":163}],154:[function(require,module,exports){
13273
14441
  'use strict';
13274
14442
 
13275
14443
  Object.defineProperty(exports, "__esModule", {
@@ -13374,7 +14542,7 @@ function normalizeEmail(email, options) {
13374
14542
  parts[0] = parts[0].toLowerCase();
13375
14543
  }
13376
14544
  parts[1] = options.gmail_convert_googlemaildotcom ? 'gmail.com' : parts[1];
13377
- } else if (~icloud_domains.indexOf(parts[1])) {
14545
+ } else if (icloud_domains.indexOf(parts[1]) >= 0) {
13378
14546
  // Address is iCloud
13379
14547
  if (options.icloud_remove_subaddress) {
13380
14548
  parts[0] = parts[0].split('+')[0];
@@ -13385,7 +14553,7 @@ function normalizeEmail(email, options) {
13385
14553
  if (options.all_lowercase || options.icloud_lowercase) {
13386
14554
  parts[0] = parts[0].toLowerCase();
13387
14555
  }
13388
- } else if (~outlookdotcom_domains.indexOf(parts[1])) {
14556
+ } else if (outlookdotcom_domains.indexOf(parts[1]) >= 0) {
13389
14557
  // Address is Outlook.com
13390
14558
  if (options.outlookdotcom_remove_subaddress) {
13391
14559
  parts[0] = parts[0].split('+')[0];
@@ -13396,7 +14564,7 @@ function normalizeEmail(email, options) {
13396
14564
  if (options.all_lowercase || options.outlookdotcom_lowercase) {
13397
14565
  parts[0] = parts[0].toLowerCase();
13398
14566
  }
13399
- } else if (~yahoo_domains.indexOf(parts[1])) {
14567
+ } else if (yahoo_domains.indexOf(parts[1]) >= 0) {
13400
14568
  // Address is Yahoo
13401
14569
  if (options.yahoo_remove_subaddress) {
13402
14570
  var components = parts[0].split('-');
@@ -13408,7 +14576,7 @@ function normalizeEmail(email, options) {
13408
14576
  if (options.all_lowercase || options.yahoo_lowercase) {
13409
14577
  parts[0] = parts[0].toLowerCase();
13410
14578
  }
13411
- } else if (~yandex_domains.indexOf(parts[1])) {
14579
+ } else if (yandex_domains.indexOf(parts[1]) >= 0) {
13412
14580
  if (options.all_lowercase || options.yandex_lowercase) {
13413
14581
  parts[0] = parts[0].toLowerCase();
13414
14582
  }
@@ -13420,7 +14588,7 @@ function normalizeEmail(email, options) {
13420
14588
  return parts.join('@');
13421
14589
  }
13422
14590
  module.exports = exports['default'];
13423
- },{"./util/merge":109}],100:[function(require,module,exports){
14591
+ },{"./util/merge":165}],155:[function(require,module,exports){
13424
14592
  'use strict';
13425
14593
 
13426
14594
  Object.defineProperty(exports, "__esModule", {
@@ -13439,14 +14607,12 @@ function rtrim(str, chars) {
13439
14607
  var pattern = chars ? new RegExp('[' + chars + ']') : /\s/;
13440
14608
 
13441
14609
  var idx = str.length - 1;
13442
- while (idx >= 0 && pattern.test(str[idx])) {
13443
- idx--;
13444
- }
14610
+ for (; idx >= 0 && pattern.test(str[idx]); idx--) {}
13445
14611
 
13446
14612
  return idx < str.length ? str.substr(0, idx + 1) : str;
13447
14613
  }
13448
14614
  module.exports = exports['default'];
13449
- },{"./util/assertString":108}],101:[function(require,module,exports){
14615
+ },{"./util/assertString":163}],156:[function(require,module,exports){
13450
14616
  'use strict';
13451
14617
 
13452
14618
  Object.defineProperty(exports, "__esModule", {
@@ -13470,7 +14636,7 @@ function stripLow(str, keep_new_lines) {
13470
14636
  return (0, _blacklist2.default)(str, chars);
13471
14637
  }
13472
14638
  module.exports = exports['default'];
13473
- },{"./blacklist":41,"./util/assertString":108}],102:[function(require,module,exports){
14639
+ },{"./blacklist":93,"./util/assertString":163}],157:[function(require,module,exports){
13474
14640
  'use strict';
13475
14641
 
13476
14642
  Object.defineProperty(exports, "__esModule", {
@@ -13492,7 +14658,7 @@ function toBoolean(str, strict) {
13492
14658
  return str !== '0' && str !== 'false' && str !== '';
13493
14659
  }
13494
14660
  module.exports = exports['default'];
13495
- },{"./util/assertString":108}],103:[function(require,module,exports){
14661
+ },{"./util/assertString":163}],158:[function(require,module,exports){
13496
14662
  'use strict';
13497
14663
 
13498
14664
  Object.defineProperty(exports, "__esModule", {
@@ -13512,7 +14678,7 @@ function toDate(date) {
13512
14678
  return !isNaN(date) ? new Date(date) : null;
13513
14679
  }
13514
14680
  module.exports = exports['default'];
13515
- },{"./util/assertString":108}],104:[function(require,module,exports){
14681
+ },{"./util/assertString":163}],159:[function(require,module,exports){
13516
14682
  'use strict';
13517
14683
 
13518
14684
  Object.defineProperty(exports, "__esModule", {
@@ -13531,7 +14697,7 @@ function toFloat(str) {
13531
14697
  return parseFloat(str);
13532
14698
  }
13533
14699
  module.exports = exports['default'];
13534
- },{"./util/assertString":108}],105:[function(require,module,exports){
14700
+ },{"./util/assertString":163}],160:[function(require,module,exports){
13535
14701
  'use strict';
13536
14702
 
13537
14703
  Object.defineProperty(exports, "__esModule", {
@@ -13550,7 +14716,7 @@ function toInt(str, radix) {
13550
14716
  return parseInt(str, radix || 10);
13551
14717
  }
13552
14718
  module.exports = exports['default'];
13553
- },{"./util/assertString":108}],106:[function(require,module,exports){
14719
+ },{"./util/assertString":163}],161:[function(require,module,exports){
13554
14720
  'use strict';
13555
14721
 
13556
14722
  Object.defineProperty(exports, "__esModule", {
@@ -13572,7 +14738,7 @@ function trim(str, chars) {
13572
14738
  return (0, _rtrim2.default)((0, _ltrim2.default)(str, chars), chars);
13573
14739
  }
13574
14740
  module.exports = exports['default'];
13575
- },{"./ltrim":97,"./rtrim":100}],107:[function(require,module,exports){
14741
+ },{"./ltrim":152,"./rtrim":155}],162:[function(require,module,exports){
13576
14742
  'use strict';
13577
14743
 
13578
14744
  Object.defineProperty(exports, "__esModule", {
@@ -13591,7 +14757,7 @@ function unescape(str) {
13591
14757
  return str.replace(/&amp;/g, '&').replace(/&quot;/g, '"').replace(/&#x27;/g, "'").replace(/&lt;/g, '<').replace(/&gt;/g, '>').replace(/&#x2F;/g, '/').replace(/&#x5C;/g, '\\').replace(/&#96;/g, '`');
13592
14758
  }
13593
14759
  module.exports = exports['default'];
13594
- },{"./util/assertString":108}],108:[function(require,module,exports){
14760
+ },{"./util/assertString":163}],163:[function(require,module,exports){
13595
14761
  'use strict';
13596
14762
 
13597
14763
  Object.defineProperty(exports, "__esModule", {
@@ -13606,7 +14772,21 @@ function assertString(input) {
13606
14772
  }
13607
14773
  }
13608
14774
  module.exports = exports['default'];
13609
- },{}],109:[function(require,module,exports){
14775
+ },{}],164:[function(require,module,exports){
14776
+ "use strict";
14777
+
14778
+ Object.defineProperty(exports, "__esModule", {
14779
+ value: true
14780
+ });
14781
+ var includes = function includes(arr, val) {
14782
+ return arr.some(function (arrVal) {
14783
+ return val === arrVal;
14784
+ });
14785
+ };
14786
+
14787
+ exports.default = includes;
14788
+ module.exports = exports["default"];
14789
+ },{}],165:[function(require,module,exports){
13610
14790
  'use strict';
13611
14791
 
13612
14792
  Object.defineProperty(exports, "__esModule", {
@@ -13625,7 +14805,7 @@ function merge() {
13625
14805
  return obj;
13626
14806
  }
13627
14807
  module.exports = exports['default'];
13628
- },{}],110:[function(require,module,exports){
14808
+ },{}],166:[function(require,module,exports){
13629
14809
  'use strict';
13630
14810
 
13631
14811
  Object.defineProperty(exports, "__esModule", {
@@ -13648,7 +14828,7 @@ function toString(input) {
13648
14828
  return String(input);
13649
14829
  }
13650
14830
  module.exports = exports['default'];
13651
- },{}],111:[function(require,module,exports){
14831
+ },{}],167:[function(require,module,exports){
13652
14832
  'use strict';
13653
14833
 
13654
14834
  Object.defineProperty(exports, "__esModule", {
@@ -13667,7 +14847,7 @@ function whitelist(str, chars) {
13667
14847
  return str.replace(new RegExp('[^' + chars + ']+', 'g'), '');
13668
14848
  }
13669
14849
  module.exports = exports['default'];
13670
- },{"./util/assertString":108}],112:[function(require,module,exports){
14850
+ },{"./util/assertString":163}],168:[function(require,module,exports){
13671
14851
  module.exports = extend
13672
14852
 
13673
14853
  var hasOwnProperty = Object.prototype.hasOwnProperty;
@@ -13688,7 +14868,7 @@ function extend() {
13688
14868
  return target
13689
14869
  }
13690
14870
 
13691
- },{}],113:[function(require,module,exports){
14871
+ },{}],169:[function(require,module,exports){
13692
14872
  "use strict";
13693
14873
 
13694
14874
  module.exports = {
@@ -13750,7 +14930,7 @@ module.exports = {
13750
14930
 
13751
14931
  };
13752
14932
 
13753
- },{}],114:[function(require,module,exports){
14933
+ },{}],170:[function(require,module,exports){
13754
14934
  /*jshint maxlen: false*/
13755
14935
 
13756
14936
  var validator = require("validator");
@@ -13881,12 +15061,12 @@ var FormatValidators = {
13881
15061
 
13882
15062
  module.exports = FormatValidators;
13883
15063
 
13884
- },{"validator":39}],115:[function(require,module,exports){
15064
+ },{"validator":91}],171:[function(require,module,exports){
13885
15065
  "use strict";
13886
15066
 
13887
- var FormatValidators = require("./FormatValidators"),
13888
- Report = require("./Report"),
13889
- Utils = require("./Utils");
15067
+ var FormatValidators = require("./FormatValidators"),
15068
+ Report = require("./Report"),
15069
+ Utils = require("./Utils");
13890
15070
 
13891
15071
  var JsonValidators = {
13892
15072
  multipleOf: function (report, schema, json) {
@@ -13895,7 +15075,7 @@ var JsonValidators = {
13895
15075
  return;
13896
15076
  }
13897
15077
  if (Utils.whatIs(json / schema.multipleOf) !== "integer") {
13898
- report.addError("MULTIPLE_OF", [json, schema.multipleOf], null, schema.description);
15078
+ report.addError("MULTIPLE_OF", [json, schema.multipleOf], null, schema);
13899
15079
  }
13900
15080
  },
13901
15081
  maximum: function (report, schema, json) {
@@ -13905,11 +15085,11 @@ var JsonValidators = {
13905
15085
  }
13906
15086
  if (schema.exclusiveMaximum !== true) {
13907
15087
  if (json > schema.maximum) {
13908
- report.addError("MAXIMUM", [json, schema.maximum], null, schema.description);
15088
+ report.addError("MAXIMUM", [json, schema.maximum], null, schema);
13909
15089
  }
13910
15090
  } else {
13911
15091
  if (json >= schema.maximum) {
13912
- report.addError("MAXIMUM_EXCLUSIVE", [json, schema.maximum], null, schema.description);
15092
+ report.addError("MAXIMUM_EXCLUSIVE", [json, schema.maximum], null, schema);
13913
15093
  }
13914
15094
  }
13915
15095
  },
@@ -13923,11 +15103,11 @@ var JsonValidators = {
13923
15103
  }
13924
15104
  if (schema.exclusiveMinimum !== true) {
13925
15105
  if (json < schema.minimum) {
13926
- report.addError("MINIMUM", [json, schema.minimum], null, schema.description);
15106
+ report.addError("MINIMUM", [json, schema.minimum], null, schema);
13927
15107
  }
13928
15108
  } else {
13929
15109
  if (json <= schema.minimum) {
13930
- report.addError("MINIMUM_EXCLUSIVE", [json, schema.minimum], null, schema.description);
15110
+ report.addError("MINIMUM_EXCLUSIVE", [json, schema.minimum], null, schema);
13931
15111
  }
13932
15112
  }
13933
15113
  },
@@ -13940,7 +15120,7 @@ var JsonValidators = {
13940
15120
  return;
13941
15121
  }
13942
15122
  if (Utils.ucs2decode(json).length > schema.maxLength) {
13943
- report.addError("MAX_LENGTH", [json.length, schema.maxLength], null, schema.description);
15123
+ report.addError("MAX_LENGTH", [json.length, schema.maxLength], null, schema);
13944
15124
  }
13945
15125
  },
13946
15126
  minLength: function (report, schema, json) {
@@ -13949,7 +15129,7 @@ var JsonValidators = {
13949
15129
  return;
13950
15130
  }
13951
15131
  if (Utils.ucs2decode(json).length < schema.minLength) {
13952
- report.addError("MIN_LENGTH", [json.length, schema.minLength], null, schema.description);
15132
+ report.addError("MIN_LENGTH", [json.length, schema.minLength], null, schema);
13953
15133
  }
13954
15134
  },
13955
15135
  pattern: function (report, schema, json) {
@@ -13958,7 +15138,7 @@ var JsonValidators = {
13958
15138
  return;
13959
15139
  }
13960
15140
  if (RegExp(schema.pattern).test(json) === false) {
13961
- report.addError("PATTERN", [schema.pattern, json], null, schema.description);
15141
+ report.addError("PATTERN", [schema.pattern, json], null, schema);
13962
15142
  }
13963
15143
  },
13964
15144
  additionalItems: function (report, schema, json) {
@@ -13970,7 +15150,7 @@ var JsonValidators = {
13970
15150
  // the json is valid if its size is less than, or equal to, the size of "items".
13971
15151
  if (schema.additionalItems === false && Array.isArray(schema.items)) {
13972
15152
  if (json.length > schema.items.length) {
13973
- report.addError("ARRAY_ADDITIONAL_ITEMS", null, null, schema.description);
15153
+ report.addError("ARRAY_ADDITIONAL_ITEMS", null, null, schema);
13974
15154
  }
13975
15155
  }
13976
15156
  },
@@ -13983,7 +15163,7 @@ var JsonValidators = {
13983
15163
  return;
13984
15164
  }
13985
15165
  if (json.length > schema.maxItems) {
13986
- report.addError("ARRAY_LENGTH_LONG", [json.length, schema.maxItems], null, schema.description);
15166
+ report.addError("ARRAY_LENGTH_LONG", [json.length, schema.maxItems], null, schema);
13987
15167
  }
13988
15168
  },
13989
15169
  minItems: function (report, schema, json) {
@@ -13992,7 +15172,7 @@ var JsonValidators = {
13992
15172
  return;
13993
15173
  }
13994
15174
  if (json.length < schema.minItems) {
13995
- report.addError("ARRAY_LENGTH_SHORT", [json.length, schema.minItems], null, schema.description);
15175
+ report.addError("ARRAY_LENGTH_SHORT", [json.length, schema.minItems], null, schema);
13996
15176
  }
13997
15177
  },
13998
15178
  uniqueItems: function (report, schema, json) {
@@ -14003,7 +15183,7 @@ var JsonValidators = {
14003
15183
  if (schema.uniqueItems === true) {
14004
15184
  var matches = [];
14005
15185
  if (Utils.isUniqueArray(json, matches) === false) {
14006
- report.addError("ARRAY_UNIQUE", matches, null, schema.description);
15186
+ report.addError("ARRAY_UNIQUE", matches, null, schema);
14007
15187
  }
14008
15188
  }
14009
15189
  },
@@ -14014,7 +15194,7 @@ var JsonValidators = {
14014
15194
  }
14015
15195
  var keysCount = Object.keys(json).length;
14016
15196
  if (keysCount > schema.maxProperties) {
14017
- report.addError("OBJECT_PROPERTIES_MAXIMUM", [keysCount, schema.maxProperties], null, schema.description);
15197
+ report.addError("OBJECT_PROPERTIES_MAXIMUM", [keysCount, schema.maxProperties], null, schema);
14018
15198
  }
14019
15199
  },
14020
15200
  minProperties: function (report, schema, json) {
@@ -14024,7 +15204,7 @@ var JsonValidators = {
14024
15204
  }
14025
15205
  var keysCount = Object.keys(json).length;
14026
15206
  if (keysCount < schema.minProperties) {
14027
- report.addError("OBJECT_PROPERTIES_MINIMUM", [keysCount, schema.minProperties], null, schema.description);
15207
+ report.addError("OBJECT_PROPERTIES_MINIMUM", [keysCount, schema.minProperties], null, schema);
14028
15208
  }
14029
15209
  },
14030
15210
  required: function (report, schema, json) {
@@ -14036,7 +15216,7 @@ var JsonValidators = {
14036
15216
  while (idx--) {
14037
15217
  var requiredPropertyName = schema.required[idx];
14038
15218
  if (json[requiredPropertyName] === undefined) {
14039
- report.addError("OBJECT_MISSING_REQUIRED_PROPERTY", [requiredPropertyName], null, schema.description);
15219
+ report.addError("OBJECT_MISSING_REQUIRED_PROPERTY", [requiredPropertyName], null, schema);
14040
15220
  }
14041
15221
  }
14042
15222
  },
@@ -14092,7 +15272,7 @@ var JsonValidators = {
14092
15272
  }
14093
15273
  }
14094
15274
  if (s.length > 0) {
14095
- report.addError("OBJECT_ADDITIONAL_PROPERTIES", [s], null, schema.description);
15275
+ report.addError("OBJECT_ADDITIONAL_PROPERTIES", [s], null, schema);
14096
15276
  }
14097
15277
  }
14098
15278
  }
@@ -14120,7 +15300,7 @@ var JsonValidators = {
14120
15300
  while (idx2--) {
14121
15301
  var requiredPropertyName = dependencyDefinition[idx2];
14122
15302
  if (json[requiredPropertyName] === undefined) {
14123
- report.addError("OBJECT_DEPENDENCY_KEY", [requiredPropertyName, dependencyName], null, schema.description);
15303
+ report.addError("OBJECT_DEPENDENCY_KEY", [requiredPropertyName, dependencyName], null, schema);
14124
15304
  }
14125
15305
  }
14126
15306
  }
@@ -14143,15 +15323,22 @@ var JsonValidators = {
14143
15323
 
14144
15324
  if (match === false) {
14145
15325
  var error = caseInsensitiveMatch && this.options.enumCaseInsensitiveComparison ? "ENUM_CASE_MISMATCH" : "ENUM_MISMATCH";
14146
- report.addError(error, [json], null, schema.description);
15326
+ report.addError(error, [json], null, schema);
14147
15327
  }
14148
15328
  },
14149
- /*
14150
15329
  type: function (report, schema, json) {
14151
15330
  // http://json-schema.org/latest/json-schema-validation.html#rfc.section.5.5.2.2
14152
- // type is handled before this is called so ignore
15331
+ var jsonType = Utils.whatIs(json);
15332
+ if (typeof schema.type === "string") {
15333
+ if (jsonType !== schema.type && (jsonType !== "integer" || schema.type !== "number")) {
15334
+ report.addError("INVALID_TYPE", [schema.type, jsonType], null, schema);
15335
+ }
15336
+ } else {
15337
+ if (schema.type.indexOf(jsonType) === -1 && (jsonType !== "integer" || schema.type.indexOf("number") === -1)) {
15338
+ report.addError("INVALID_TYPE", [schema.type, jsonType], null, schema);
15339
+ }
15340
+ }
14153
15341
  },
14154
- */
14155
15342
  allOf: function (report, schema, json) {
14156
15343
  // http://json-schema.org/latest/json-schema-validation.html#rfc.section.5.5.3.2
14157
15344
  var idx = schema.allOf.length;
@@ -14175,7 +15362,7 @@ var JsonValidators = {
14175
15362
  }
14176
15363
 
14177
15364
  if (passed === false) {
14178
- report.addError("ANY_OF_MISSING", undefined, subReports, schema.description);
15365
+ report.addError("ANY_OF_MISSING", undefined, subReports, schema);
14179
15366
  }
14180
15367
  },
14181
15368
  oneOf: function (report, schema, json) {
@@ -14193,16 +15380,16 @@ var JsonValidators = {
14193
15380
  }
14194
15381
 
14195
15382
  if (passes === 0) {
14196
- report.addError("ONE_OF_MISSING", undefined, subReports, schema.description);
15383
+ report.addError("ONE_OF_MISSING", undefined, subReports, schema);
14197
15384
  } else if (passes > 1) {
14198
- report.addError("ONE_OF_MULTIPLE", null, null, schema.description);
15385
+ report.addError("ONE_OF_MULTIPLE", null, null, schema);
14199
15386
  }
14200
15387
  },
14201
15388
  not: function (report, schema, json) {
14202
15389
  // http://json-schema.org/latest/json-schema-validation.html#rfc.section.5.5.6.2
14203
15390
  var subReport = new Report(report);
14204
15391
  if (exports.validate.call(this, subReport, schema.not, json) === true) {
14205
- report.addError("NOT_PASSED", null, null, schema.description);
15392
+ report.addError("NOT_PASSED", null, null, schema);
14206
15393
  }
14207
15394
  },
14208
15395
  definitions: function () { /*report, schema, json*/
@@ -14217,17 +15404,17 @@ var JsonValidators = {
14217
15404
  // async
14218
15405
  report.addAsyncTask(formatValidatorFn, [json], function (result) {
14219
15406
  if (result !== true) {
14220
- report.addError("INVALID_FORMAT", [schema.format, json], null, schema.description);
15407
+ report.addError("INVALID_FORMAT", [schema.format, json], null, schema);
14221
15408
  }
14222
15409
  });
14223
15410
  } else {
14224
15411
  // sync
14225
15412
  if (formatValidatorFn.call(this, json) !== true) {
14226
- report.addError("INVALID_FORMAT", [schema.format, json], null, schema.description);
15413
+ report.addError("INVALID_FORMAT", [schema.format, json], null, schema);
14227
15414
  }
14228
15415
  }
14229
15416
  } else if (this.options.ignoreUnknownFormats !== true) {
14230
- report.addError("UNKNOWN_FORMAT", [schema.format], null, schema.description);
15417
+ report.addError("UNKNOWN_FORMAT", [schema.format], null, schema);
14231
15418
  }
14232
15419
  }
14233
15420
  };
@@ -14244,7 +15431,7 @@ var recurseArray = function (report, schema, json) {
14244
15431
  if (Array.isArray(schema.items)) {
14245
15432
 
14246
15433
  while (idx--) {
14247
- // equal to doesnt make sense here
15434
+ // equal to doesn't make sense here
14248
15435
  if (idx < schema.items.length) {
14249
15436
  report.path.push(idx.toString());
14250
15437
  exports.validate.call(this, report, schema.items[idx], json[idx]);
@@ -14332,6 +15519,12 @@ var recurseObject = function (report, schema, json) {
14332
15519
  }
14333
15520
  };
14334
15521
 
15522
+ /**
15523
+ *
15524
+ * @param {Report} report
15525
+ * @param {*} schema
15526
+ * @param {*} json
15527
+ */
14335
15528
  exports.validate = function (report, schema, json) {
14336
15529
 
14337
15530
  report.commonErrorMessage = "JSON_OBJECT_VALIDATION_FAILED";
@@ -14339,7 +15532,7 @@ exports.validate = function (report, schema, json) {
14339
15532
  // check if schema is an object
14340
15533
  var to = Utils.whatIs(schema);
14341
15534
  if (to !== "object") {
14342
- report.addError("SCHEMA_NOT_AN_OBJECT", [to], null, schema.description);
15535
+ report.addError("SCHEMA_NOT_AN_OBJECT", [to], null, schema);
14343
15536
  return false;
14344
15537
  }
14345
15538
 
@@ -14362,7 +15555,7 @@ exports.validate = function (report, schema, json) {
14362
15555
  var maxRefs = 99;
14363
15556
  while (schema.$ref && maxRefs > 0) {
14364
15557
  if (!schema.__$refResolved) {
14365
- report.addError("REF_UNRESOLVED", [schema.$ref], null, schema.description);
15558
+ report.addError("REF_UNRESOLVED", [schema.$ref], null, schema);
14366
15559
  break;
14367
15560
  } else if (schema.__$refResolved === schema) {
14368
15561
  break;
@@ -14378,23 +15571,12 @@ exports.validate = function (report, schema, json) {
14378
15571
  }
14379
15572
 
14380
15573
  // type checking first
14381
- // http://json-schema.org/latest/json-schema-validation.html#rfc.section.5.5.2.2
14382
15574
  var jsonType = Utils.whatIs(json);
14383
15575
  if (schema.type) {
14384
- if (typeof schema.type === "string") {
14385
- if (jsonType !== schema.type && (jsonType !== "integer" || schema.type !== "number")) {
14386
- report.addError("INVALID_TYPE", [schema.type, jsonType], null, schema.description);
14387
- if (this.options.breakOnFirstError) {
14388
- return false;
14389
- }
14390
- }
14391
- } else {
14392
- if (schema.type.indexOf(jsonType) === -1 && (jsonType !== "integer" || schema.type.indexOf("number") === -1)) {
14393
- report.addError("INVALID_TYPE", [schema.type, jsonType], null, schema.description);
14394
- if (this.options.breakOnFirstError) {
14395
- return false;
14396
- }
14397
- }
15576
+ keys.splice(keys.indexOf("type"), 1);
15577
+ JsonValidators.type.call(this, report, schema, json);
15578
+ if (report.errors.length && this.options.breakOnFirstError) {
15579
+ return false;
14398
15580
  }
14399
15581
  }
14400
15582
 
@@ -14429,7 +15611,7 @@ exports.validate = function (report, schema, json) {
14429
15611
 
14430
15612
  };
14431
15613
 
14432
- },{"./FormatValidators":114,"./Report":117,"./Utils":121}],116:[function(require,module,exports){
15614
+ },{"./FormatValidators":170,"./Report":173,"./Utils":177}],172:[function(require,module,exports){
14433
15615
  // Number.isFinite polyfill
14434
15616
  // http://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.isfinite
14435
15617
  if (typeof Number.isFinite !== "function") {
@@ -14447,7 +15629,7 @@ if (typeof Number.isFinite !== "function") {
14447
15629
  };
14448
15630
  }
14449
15631
 
14450
- },{}],117:[function(require,module,exports){
15632
+ },{}],173:[function(require,module,exports){
14451
15633
  (function (process){
14452
15634
  "use strict";
14453
15635
 
@@ -14455,6 +15637,12 @@ var get = require("lodash.get");
14455
15637
  var Errors = require("./Errors");
14456
15638
  var Utils = require("./Utils");
14457
15639
 
15640
+ /**
15641
+ * @class
15642
+ *
15643
+ * @param {Report|object} parentOrOptions
15644
+ * @param {object} [reportOptions]
15645
+ */
14458
15646
  function Report(parentOrOptions, reportOptions) {
14459
15647
  this.parentReport = parentOrOptions instanceof Report ?
14460
15648
  parentOrOptions :
@@ -14467,10 +15655,20 @@ function Report(parentOrOptions, reportOptions) {
14467
15655
  this.reportOptions = reportOptions || {};
14468
15656
 
14469
15657
  this.errors = [];
15658
+ /**
15659
+ * @type {string[]}
15660
+ */
14470
15661
  this.path = [];
14471
15662
  this.asyncTasks = [];
15663
+
15664
+ this.rootSchema = undefined;
15665
+ this.commonErrorMessage = undefined;
15666
+ this.json = undefined;
14472
15667
  }
14473
15668
 
15669
+ /**
15670
+ * @returns {boolean}
15671
+ */
14474
15672
  Report.prototype.isValid = function () {
14475
15673
  if (this.asyncTasks.length > 0) {
14476
15674
  throw new Error("Async tasks pending, can't answer isValid");
@@ -14478,10 +15676,23 @@ Report.prototype.isValid = function () {
14478
15676
  return this.errors.length === 0;
14479
15677
  };
14480
15678
 
15679
+ /**
15680
+ *
15681
+ * @param {*} fn
15682
+ * @param {*} args
15683
+ * @param {*} asyncTaskResultProcessFn
15684
+ */
14481
15685
  Report.prototype.addAsyncTask = function (fn, args, asyncTaskResultProcessFn) {
14482
15686
  this.asyncTasks.push([fn, args, asyncTaskResultProcessFn]);
14483
15687
  };
14484
15688
 
15689
+ /**
15690
+ *
15691
+ * @param {*} timeout
15692
+ * @param {function(*, *)} callback
15693
+ *
15694
+ * @returns {void}
15695
+ */
14485
15696
  Report.prototype.processAsyncTasks = function (timeout, callback) {
14486
15697
 
14487
15698
  var validationTimeout = timeout || 2000,
@@ -14493,7 +15704,7 @@ Report.prototype.processAsyncTasks = function (timeout, callback) {
14493
15704
  function finish() {
14494
15705
  process.nextTick(function () {
14495
15706
  var valid = self.errors.length === 0,
14496
- err = valid ? undefined : self.errors;
15707
+ err = valid ? undefined : self.errors;
14497
15708
  callback(err, valid);
14498
15709
  });
14499
15710
  }
@@ -14529,7 +15740,16 @@ Report.prototype.processAsyncTasks = function (timeout, callback) {
14529
15740
 
14530
15741
  };
14531
15742
 
15743
+ /**
15744
+ *
15745
+ * @param {*} returnPathAsString
15746
+ *
15747
+ * @return {string[]|string}
15748
+ */
14532
15749
  Report.prototype.getPath = function (returnPathAsString) {
15750
+ /**
15751
+ * @type {string[]|string}
15752
+ */
14533
15753
  var path = [];
14534
15754
  if (this.parentReport) {
14535
15755
  path = path.concat(this.parentReport.path);
@@ -14574,6 +15794,13 @@ Report.prototype.getSchemaId = function () {
14574
15794
  return this.rootSchema.id;
14575
15795
  };
14576
15796
 
15797
+ /**
15798
+ *
15799
+ * @param {*} errorCode
15800
+ * @param {*} params
15801
+ *
15802
+ * @return {boolean}
15803
+ */
14577
15804
  Report.prototype.hasError = function (errorCode, params) {
14578
15805
  var idx = this.errors.length;
14579
15806
  while (idx--) {
@@ -14596,13 +15823,43 @@ Report.prototype.hasError = function (errorCode, params) {
14596
15823
  return false;
14597
15824
  };
14598
15825
 
14599
- Report.prototype.addError = function (errorCode, params, subReports, schemaDescription) {
15826
+ /**
15827
+ *
15828
+ * @param {*} errorCode
15829
+ * @param {*} params
15830
+ * @param {Report[]|Report} [subReports]
15831
+ * @param {*} [schema]
15832
+ *
15833
+ * @return {void}
15834
+ */
15835
+ Report.prototype.addError = function (errorCode, params, subReports, schema) {
14600
15836
  if (!errorCode) { throw new Error("No errorCode passed into addError()"); }
14601
15837
 
14602
- this.addCustomError(errorCode, Errors[errorCode], params, subReports, schemaDescription);
15838
+ this.addCustomError(errorCode, Errors[errorCode], params, subReports, schema);
15839
+ };
15840
+
15841
+ Report.prototype.getJson = function () {
15842
+ var self = this;
15843
+ while (self.json === undefined) {
15844
+ self = self.parentReport;
15845
+ if (self === undefined) {
15846
+ return undefined;
15847
+ }
15848
+ }
15849
+ return self.json;
14603
15850
  };
14604
15851
 
14605
- Report.prototype.addCustomError = function (errorCode, errorMessage, params, subReports, schemaDescription) {
15852
+ /**
15853
+ *
15854
+ * @param {*} errorCode
15855
+ * @param {*} errorMessage
15856
+ * @param {*[]} params
15857
+ * @param {Report[]|Report} subReports
15858
+ * @param {*} schema
15859
+ *
15860
+ * @returns {void}
15861
+ */
15862
+ Report.prototype.addCustomError = function (errorCode, errorMessage, params, subReports, schema) {
14606
15863
  if (this.errors.length >= this.reportOptions.maxErrors) {
14607
15864
  return;
14608
15865
  }
@@ -14626,8 +15883,18 @@ Report.prototype.addCustomError = function (errorCode, errorMessage, params, sub
14626
15883
  schemaId: this.getSchemaId()
14627
15884
  };
14628
15885
 
14629
- if (schemaDescription) {
14630
- err.description = schemaDescription;
15886
+ err[Utils.schemaSymbol] = schema;
15887
+ err[Utils.jsonSymbol] = this.getJson();
15888
+
15889
+ if (schema && typeof schema === "string") {
15890
+ err.description = schema;
15891
+ } else if (schema && typeof schema === "object") {
15892
+ if (schema.title) {
15893
+ err.title = schema.title;
15894
+ }
15895
+ if (schema.description) {
15896
+ err.description = schema.description;
15897
+ }
14631
15898
  }
14632
15899
 
14633
15900
  if (subReports != null) {
@@ -14654,7 +15921,7 @@ Report.prototype.addCustomError = function (errorCode, errorMessage, params, sub
14654
15921
  module.exports = Report;
14655
15922
 
14656
15923
  }).call(this,require('_process'))
14657
- },{"./Errors":113,"./Utils":121,"_process":15,"lodash.get":12}],118:[function(require,module,exports){
15924
+ },{"./Errors":169,"./Utils":177,"_process":66,"lodash.get":63}],174:[function(require,module,exports){
14658
15925
  "use strict";
14659
15926
 
14660
15927
  var isequal = require("lodash.isequal");
@@ -14721,6 +15988,13 @@ function findId(schema, id) {
14721
15988
  }
14722
15989
  }
14723
15990
 
15991
+ /**
15992
+ *
15993
+ * @param {*} uri
15994
+ * @param {*} schema
15995
+ *
15996
+ * @returns {void}
15997
+ */
14724
15998
  exports.cacheSchemaByUri = function (uri, schema) {
14725
15999
  var remotePath = getRemotePath(uri);
14726
16000
  if (remotePath) {
@@ -14728,6 +16002,12 @@ exports.cacheSchemaByUri = function (uri, schema) {
14728
16002
  }
14729
16003
  };
14730
16004
 
16005
+ /**
16006
+ *
16007
+ * @param {*} uri
16008
+ *
16009
+ * @returns {void}
16010
+ */
14731
16011
  exports.removeFromCacheByUri = function (uri) {
14732
16012
  var remotePath = getRemotePath(uri);
14733
16013
  if (remotePath) {
@@ -14735,6 +16015,12 @@ exports.removeFromCacheByUri = function (uri) {
14735
16015
  }
14736
16016
  };
14737
16017
 
16018
+ /**
16019
+ *
16020
+ * @param {*} uri
16021
+ *
16022
+ * @returns {boolean}
16023
+ */
14738
16024
  exports.checkCacheForUri = function (uri) {
14739
16025
  var remotePath = getRemotePath(uri);
14740
16026
  return remotePath ? this.cache[remotePath] != null : false;
@@ -14818,7 +16104,7 @@ exports.getSchemaByUri = function (report, uri, root) {
14818
16104
 
14819
16105
  exports.getRemotePath = getRemotePath;
14820
16106
 
14821
- },{"./Report":117,"./SchemaCompilation":119,"./SchemaValidation":120,"./Utils":121,"lodash.isequal":13}],119:[function(require,module,exports){
16107
+ },{"./Report":173,"./SchemaCompilation":175,"./SchemaValidation":176,"./Utils":177,"lodash.isequal":64}],175:[function(require,module,exports){
14822
16108
  "use strict";
14823
16109
 
14824
16110
  var Report = require("./Report");
@@ -15119,7 +16405,7 @@ exports.compileSchema = function (report, schema) {
15119
16405
 
15120
16406
  };
15121
16407
 
15122
- },{"./Report":117,"./SchemaCache":118,"./Utils":121}],120:[function(require,module,exports){
16408
+ },{"./Report":173,"./SchemaCache":174,"./Utils":177}],176:[function(require,module,exports){
15123
16409
  "use strict";
15124
16410
 
15125
16411
  var FormatValidators = require("./FormatValidators"),
@@ -15623,6 +16909,13 @@ var SchemaValidators = {
15623
16909
  }
15624
16910
  };
15625
16911
 
16912
+ /**
16913
+ *
16914
+ * @param {Report} report
16915
+ * @param {*[]} arr
16916
+ *
16917
+ * @returns {boolean}
16918
+ */
15626
16919
  var validateArrayOfSchemas = function (report, arr) {
15627
16920
  var idx = arr.length;
15628
16921
  while (idx--) {
@@ -15631,6 +16924,11 @@ var validateArrayOfSchemas = function (report, arr) {
15631
16924
  return report.isValid();
15632
16925
  };
15633
16926
 
16927
+ /**
16928
+ *
16929
+ * @param {Report} report
16930
+ * @param {*} schema
16931
+ */
15634
16932
  exports.validateSchema = function (report, schema) {
15635
16933
 
15636
16934
  report.commonErrorMessage = "SCHEMA_VALIDATION_FAILED";
@@ -15728,13 +17026,40 @@ exports.validateSchema = function (report, schema) {
15728
17026
  return isValid;
15729
17027
  };
15730
17028
 
15731
- },{"./FormatValidators":114,"./JsonValidation":115,"./Report":117,"./Utils":121}],121:[function(require,module,exports){
17029
+ },{"./FormatValidators":170,"./JsonValidation":171,"./Report":173,"./Utils":177}],177:[function(require,module,exports){
15732
17030
  "use strict";
15733
17031
 
17032
+ require("core-js/es6/symbol");
17033
+
17034
+ exports.jsonSymbol = Symbol.for("z-schema/json");
17035
+
17036
+ exports.schemaSymbol = Symbol.for("z-schema/schema");
17037
+
17038
+ /**
17039
+ * @param {object} obj
17040
+ *
17041
+ * @returns {string[]}
17042
+ */
17043
+ var sortedKeys = exports.sortedKeys = function (obj) {
17044
+ return Object.keys(obj).sort();
17045
+ };
17046
+
17047
+ /**
17048
+ *
17049
+ * @param {string} uri
17050
+ *
17051
+ * @returns {boolean}
17052
+ */
15734
17053
  exports.isAbsoluteUri = function (uri) {
15735
17054
  return /^https?:\/\//.test(uri);
15736
17055
  };
15737
17056
 
17057
+ /**
17058
+ *
17059
+ * @param {string} uri
17060
+ *
17061
+ * @returns {boolean}
17062
+ */
15738
17063
  exports.isRelativeUri = function (uri) {
15739
17064
  // relative URIs that end with a hash sign, issue #56
15740
17065
  return /.+#/.test(uri);
@@ -15772,6 +17097,14 @@ exports.whatIs = function (what) {
15772
17097
 
15773
17098
  };
15774
17099
 
17100
+ /**
17101
+ *
17102
+ * @param {*} json1
17103
+ * @param {*} json2
17104
+ * @param {*} [options]
17105
+ *
17106
+ * @returns {boolean}
17107
+ */
15775
17108
  exports.areEqual = function areEqual(json1, json2, options) {
15776
17109
 
15777
17110
  options = options || {};
@@ -15815,8 +17148,8 @@ exports.areEqual = function areEqual(json1, json2, options) {
15815
17148
  // both are objects, and:
15816
17149
  if (exports.whatIs(json1) === "object" && exports.whatIs(json2) === "object") {
15817
17150
  // have the same set of property names; and
15818
- var keys1 = Object.keys(json1);
15819
- var keys2 = Object.keys(json2);
17151
+ var keys1 = sortedKeys(json1);
17152
+ var keys2 = sortedKeys(json2);
15820
17153
  if (!areEqual(keys1, keys2, { caseInsensitiveComparison: caseInsensitiveComparison })) {
15821
17154
  return false;
15822
17155
  }
@@ -15833,6 +17166,13 @@ exports.areEqual = function areEqual(json1, json2, options) {
15833
17166
  return false;
15834
17167
  };
15835
17168
 
17169
+ /**
17170
+ *
17171
+ * @param {*[]} arr
17172
+ * @param {number[]} [indexes]
17173
+ *
17174
+ * @returns {boolean}
17175
+ */
15836
17176
  exports.isUniqueArray = function (arr, indexes) {
15837
17177
  var i, j, l = arr.length;
15838
17178
  for (i = 0; i < l; i++) {
@@ -15846,6 +17186,13 @@ exports.isUniqueArray = function (arr, indexes) {
15846
17186
  return true;
15847
17187
  };
15848
17188
 
17189
+ /**
17190
+ *
17191
+ * @param {*} bigSet
17192
+ * @param {*} subSet
17193
+ *
17194
+ * @returns {*[]}
17195
+ */
15849
17196
  exports.difference = function (bigSet, subSet) {
15850
17197
  var arr = [],
15851
17198
  idx = bigSet.length;
@@ -15957,7 +17304,7 @@ exports.ucs2decode = function (string) {
15957
17304
  };
15958
17305
  /*jshint +W016*/
15959
17306
 
15960
- },{}],122:[function(require,module,exports){
17307
+ },{"core-js/es6/symbol":5}],178:[function(require,module,exports){
15961
17308
  (function (process){
15962
17309
  "use strict";
15963
17310
 
@@ -15973,9 +17320,9 @@ var Utils = require("./Utils");
15973
17320
  var Draft4Schema = require("./schemas/schema.json");
15974
17321
  var Draft4HyperSchema = require("./schemas/hyper-schema.json");
15975
17322
 
15976
- /*
15977
- default options
15978
- */
17323
+ /**
17324
+ * default options
17325
+ */
15979
17326
  var defaultOptions = {
15980
17327
  // default timeout for all async tasks
15981
17328
  asyncTimeout: 2000,
@@ -16069,9 +17416,11 @@ function normalizeOptions(options) {
16069
17416
  return normalized;
16070
17417
  }
16071
17418
 
16072
- /*
16073
- constructor
16074
- */
17419
+ /**
17420
+ * @class
17421
+ *
17422
+ * @param {*} [options]
17423
+ */
16075
17424
  function ZSchema(options) {
16076
17425
  this.cache = {};
16077
17426
  this.referenceCache = [];
@@ -16086,9 +17435,13 @@ function ZSchema(options) {
16086
17435
  this.setRemoteReference("http://json-schema.org/draft-04/hyper-schema", Draft4HyperSchema, metaschemaOptions);
16087
17436
  }
16088
17437
 
16089
- /*
16090
- instance methods
16091
- */
17438
+ /**
17439
+ * instance methods
17440
+ *
17441
+ * @param {*} schema
17442
+ *
17443
+ * @returns {boolean}
17444
+ */
16092
17445
  ZSchema.prototype.compileSchema = function (schema) {
16093
17446
  var report = new Report(this.options);
16094
17447
 
@@ -16099,6 +17452,13 @@ ZSchema.prototype.compileSchema = function (schema) {
16099
17452
  this.lastReport = report;
16100
17453
  return report.isValid();
16101
17454
  };
17455
+
17456
+ /**
17457
+ *
17458
+ * @param {*} schema
17459
+ *
17460
+ * @returns {boolean}
17461
+ */
16102
17462
  ZSchema.prototype.validateSchema = function (schema) {
16103
17463
  if (Array.isArray(schema) && schema.length === 0) {
16104
17464
  throw new Error(".validateSchema was called with an empty array");
@@ -16114,6 +17474,16 @@ ZSchema.prototype.validateSchema = function (schema) {
16114
17474
  this.lastReport = report;
16115
17475
  return report.isValid();
16116
17476
  };
17477
+
17478
+ /**
17479
+ *
17480
+ * @param {*} json
17481
+ * @param {*} schema
17482
+ * @param {*} [options]
17483
+ * @param {function(*, *)} [callback]
17484
+ *
17485
+ * @returns {boolean}
17486
+ */
16117
17487
  ZSchema.prototype.validate = function (json, schema, options, callback) {
16118
17488
 
16119
17489
  if (Utils.whatIs(options) === "function") {
@@ -16138,6 +17508,7 @@ ZSchema.prototype.validate = function (json, schema, options, callback) {
16138
17508
 
16139
17509
  var foundError = false;
16140
17510
  var report = new Report(this.options);
17511
+ report.json = json;
16141
17512
 
16142
17513
  if (typeof schema === "string") {
16143
17514
  var schemaName = schema;
@@ -16304,13 +17675,22 @@ ZSchema.prototype.getResolvedSchema = function (schema) {
16304
17675
  throw this.getLastError();
16305
17676
  }
16306
17677
  };
17678
+
17679
+ /**
17680
+ *
17681
+ * @param {*} schemaReader
17682
+ *
17683
+ * @returns {void}
17684
+ */
16307
17685
  ZSchema.prototype.setSchemaReader = function (schemaReader) {
16308
17686
  return ZSchema.setSchemaReader(schemaReader);
16309
17687
  };
17688
+
16310
17689
  ZSchema.prototype.getSchemaReader = function () {
16311
17690
  return ZSchema.schemaReader;
16312
17691
  };
16313
17692
 
17693
+ ZSchema.schemaReader = undefined;
16314
17694
  /*
16315
17695
  static methods
16316
17696
  */
@@ -16330,10 +17710,14 @@ ZSchema.getDefaultOptions = function () {
16330
17710
  return Utils.cloneDeep(defaultOptions);
16331
17711
  };
16332
17712
 
17713
+ ZSchema.schemaSymbol = Utils.schemaSymbol;
17714
+
17715
+ ZSchema.jsonSymbol = Utils.jsonSymbol;
17716
+
16333
17717
  module.exports = ZSchema;
16334
17718
 
16335
17719
  }).call(this,require('_process'))
16336
- },{"./FormatValidators":114,"./JsonValidation":115,"./Polyfills":116,"./Report":117,"./SchemaCache":118,"./SchemaCompilation":119,"./SchemaValidation":120,"./Utils":121,"./schemas/hyper-schema.json":123,"./schemas/schema.json":124,"_process":15,"lodash.get":12}],123:[function(require,module,exports){
17720
+ },{"./FormatValidators":170,"./JsonValidation":171,"./Polyfills":172,"./Report":173,"./SchemaCache":174,"./SchemaCompilation":175,"./SchemaValidation":176,"./Utils":177,"./schemas/hyper-schema.json":179,"./schemas/schema.json":180,"_process":66,"lodash.get":63}],179:[function(require,module,exports){
16337
17721
  module.exports={
16338
17722
  "$schema": "http://json-schema.org/draft-04/hyper-schema#",
16339
17723
  "id": "http://json-schema.org/draft-04/hyper-schema#",
@@ -16493,7 +17877,7 @@ module.exports={
16493
17877
  }
16494
17878
 
16495
17879
 
16496
- },{}],124:[function(require,module,exports){
17880
+ },{}],180:[function(require,module,exports){
16497
17881
  module.exports={
16498
17882
  "id": "http://json-schema.org/draft-04/schema#",
16499
17883
  "$schema": "http://json-schema.org/draft-04/schema#",
@@ -16646,7 +18030,7 @@ module.exports={
16646
18030
  "default": {}
16647
18031
  }
16648
18032
 
16649
- },{}],125:[function(require,module,exports){
18033
+ },{}],181:[function(require,module,exports){
16650
18034
  "use strict";
16651
18035
 
16652
18036
  module.exports = {
@@ -16724,7 +18108,7 @@ module.exports = {
16724
18108
  ]
16725
18109
  };
16726
18110
 
16727
- },{}],126:[function(require,module,exports){
18111
+ },{}],182:[function(require,module,exports){
16728
18112
  "use strict";
16729
18113
 
16730
18114
  module.exports = {
@@ -16789,7 +18173,7 @@ module.exports = {
16789
18173
  ]
16790
18174
  };
16791
18175
 
16792
- },{}],127:[function(require,module,exports){
18176
+ },{}],183:[function(require,module,exports){
16793
18177
  "use strict";
16794
18178
 
16795
18179
  module.exports = {
@@ -16862,7 +18246,7 @@ module.exports = {
16862
18246
  ]
16863
18247
  };
16864
18248
 
16865
- },{}],128:[function(require,module,exports){
18249
+ },{}],184:[function(require,module,exports){
16866
18250
  "use strict";
16867
18251
 
16868
18252
  //Implement new 'shouldFail' keyword
@@ -16925,7 +18309,7 @@ module.exports = {
16925
18309
  ]
16926
18310
  };
16927
18311
 
16928
- },{}],129:[function(require,module,exports){
18312
+ },{}],185:[function(require,module,exports){
16929
18313
  "use strict";
16930
18314
 
16931
18315
  module.exports = {
@@ -16953,7 +18337,7 @@ module.exports = {
16953
18337
  ]
16954
18338
  };
16955
18339
 
16956
- },{}],130:[function(require,module,exports){
18340
+ },{}],186:[function(require,module,exports){
16957
18341
  "use strict";
16958
18342
 
16959
18343
  module.exports = {
@@ -16978,7 +18362,7 @@ module.exports = {
16978
18362
  ]
16979
18363
  };
16980
18364
 
16981
- },{}],131:[function(require,module,exports){
18365
+ },{}],187:[function(require,module,exports){
16982
18366
  "use strict";
16983
18367
 
16984
18368
  module.exports = {
@@ -17051,7 +18435,7 @@ module.exports = {
17051
18435
  ]
17052
18436
  };
17053
18437
 
17054
- },{}],132:[function(require,module,exports){
18438
+ },{}],188:[function(require,module,exports){
17055
18439
  "use strict";
17056
18440
 
17057
18441
  module.exports = {
@@ -17079,7 +18463,7 @@ module.exports = {
17079
18463
  ]
17080
18464
  };
17081
18465
 
17082
- },{}],133:[function(require,module,exports){
18466
+ },{}],189:[function(require,module,exports){
17083
18467
  "use strict";
17084
18468
 
17085
18469
  module.exports = {
@@ -17107,7 +18491,7 @@ module.exports = {
17107
18491
  ]
17108
18492
  };
17109
18493
 
17110
- },{}],134:[function(require,module,exports){
18494
+ },{}],190:[function(require,module,exports){
17111
18495
  "use strict";
17112
18496
 
17113
18497
  module.exports = {
@@ -17135,7 +18519,7 @@ module.exports = {
17135
18519
  ]
17136
18520
  };
17137
18521
 
17138
- },{}],135:[function(require,module,exports){
18522
+ },{}],191:[function(require,module,exports){
17139
18523
  "use strict";
17140
18524
 
17141
18525
  module.exports = {
@@ -17163,7 +18547,7 @@ module.exports = {
17163
18547
  ]
17164
18548
  };
17165
18549
 
17166
- },{}],136:[function(require,module,exports){
18550
+ },{}],192:[function(require,module,exports){
17167
18551
  "use strict";
17168
18552
 
17169
18553
  module.exports = {
@@ -17191,7 +18575,7 @@ module.exports = {
17191
18575
  ]
17192
18576
  };
17193
18577
 
17194
- },{}],137:[function(require,module,exports){
18578
+ },{}],193:[function(require,module,exports){
17195
18579
  "use strict";
17196
18580
 
17197
18581
  module.exports = {
@@ -17247,7 +18631,7 @@ module.exports = {
17247
18631
  ]
17248
18632
  };
17249
18633
 
17250
- },{}],138:[function(require,module,exports){
18634
+ },{}],194:[function(require,module,exports){
17251
18635
  "use strict";
17252
18636
 
17253
18637
  module.exports = {
@@ -17291,7 +18675,7 @@ module.exports = {
17291
18675
  ]
17292
18676
  };
17293
18677
 
17294
- },{}],139:[function(require,module,exports){
18678
+ },{}],195:[function(require,module,exports){
17295
18679
  "use strict";
17296
18680
 
17297
18681
  module.exports = {
@@ -17308,7 +18692,7 @@ module.exports = {
17308
18692
  ]
17309
18693
  };
17310
18694
 
17311
- },{}],140:[function(require,module,exports){
18695
+ },{}],196:[function(require,module,exports){
17312
18696
  "use strict";
17313
18697
 
17314
18698
  module.exports = {
@@ -17330,7 +18714,7 @@ module.exports = {
17330
18714
  ]
17331
18715
  };
17332
18716
 
17333
- },{}],141:[function(require,module,exports){
18717
+ },{}],197:[function(require,module,exports){
17334
18718
  "use strict";
17335
18719
 
17336
18720
  module.exports = {
@@ -17348,7 +18732,7 @@ module.exports = {
17348
18732
  ]
17349
18733
  };
17350
18734
 
17351
- },{}],142:[function(require,module,exports){
18735
+ },{}],198:[function(require,module,exports){
17352
18736
  "use strict";
17353
18737
 
17354
18738
  module.exports = {
@@ -17417,7 +18801,7 @@ module.exports = {
17417
18801
  ]
17418
18802
  };
17419
18803
 
17420
- },{}],143:[function(require,module,exports){
18804
+ },{}],199:[function(require,module,exports){
17421
18805
  "use strict";
17422
18806
 
17423
18807
  module.exports = {
@@ -17432,7 +18816,7 @@ module.exports = {
17432
18816
  ]
17433
18817
  };
17434
18818
 
17435
- },{}],144:[function(require,module,exports){
18819
+ },{}],200:[function(require,module,exports){
17436
18820
  "use strict";
17437
18821
 
17438
18822
  module.exports = {
@@ -17456,7 +18840,7 @@ module.exports = {
17456
18840
  ]
17457
18841
  };
17458
18842
 
17459
- },{}],145:[function(require,module,exports){
18843
+ },{}],201:[function(require,module,exports){
17460
18844
  "use strict";
17461
18845
 
17462
18846
  module.exports = {
@@ -17531,7 +18915,7 @@ module.exports = {
17531
18915
  ]
17532
18916
  };
17533
18917
 
17534
- },{}],146:[function(require,module,exports){
18918
+ },{}],202:[function(require,module,exports){
17535
18919
  "use strict";
17536
18920
 
17537
18921
  module.exports = {
@@ -17552,7 +18936,7 @@ module.exports = {
17552
18936
  ]
17553
18937
  };
17554
18938
 
17555
- },{}],147:[function(require,module,exports){
18939
+ },{}],203:[function(require,module,exports){
17556
18940
  "use strict";
17557
18941
 
17558
18942
  module.exports = {
@@ -17579,7 +18963,7 @@ module.exports = {
17579
18963
  ]
17580
18964
  };
17581
18965
 
17582
- },{}],148:[function(require,module,exports){
18966
+ },{}],204:[function(require,module,exports){
17583
18967
  "use strict";
17584
18968
 
17585
18969
  var REF_NAME = "int.json";
@@ -17626,7 +19010,7 @@ module.exports = {
17626
19010
  ]
17627
19011
  };
17628
19012
 
17629
- },{}],149:[function(require,module,exports){
19013
+ },{}],205:[function(require,module,exports){
17630
19014
  "use strict";
17631
19015
 
17632
19016
  module.exports = {
@@ -17799,7 +19183,7 @@ module.exports = {
17799
19183
  ]
17800
19184
  };
17801
19185
 
17802
- },{}],150:[function(require,module,exports){
19186
+ },{}],206:[function(require,module,exports){
17803
19187
  "use strict";
17804
19188
 
17805
19189
  module.exports = {
@@ -17844,7 +19228,7 @@ module.exports = {
17844
19228
  ]
17845
19229
  };
17846
19230
 
17847
- },{}],151:[function(require,module,exports){
19231
+ },{}],207:[function(require,module,exports){
17848
19232
  "use strict";
17849
19233
 
17850
19234
  module.exports = {
@@ -17887,7 +19271,7 @@ module.exports = {
17887
19271
  ]
17888
19272
  };
17889
19273
 
17890
- },{}],152:[function(require,module,exports){
19274
+ },{}],208:[function(require,module,exports){
17891
19275
  "use strict";
17892
19276
 
17893
19277
  var schema1 = {
@@ -17971,7 +19355,7 @@ module.exports = {
17971
19355
  ]
17972
19356
  };
17973
19357
 
17974
- },{}],153:[function(require,module,exports){
19358
+ },{}],209:[function(require,module,exports){
17975
19359
  module.exports = {
17976
19360
  description: "Issue #139 - add schema id if present to erro message via addError method",
17977
19361
  tests: [
@@ -18030,7 +19414,7 @@ module.exports = {
18030
19414
  ]
18031
19415
  };
18032
19416
 
18033
- },{}],154:[function(require,module,exports){
19417
+ },{}],210:[function(require,module,exports){
18034
19418
  "use strict";
18035
19419
 
18036
19420
  module.exports = {
@@ -18048,7 +19432,7 @@ module.exports = {
18048
19432
  ]
18049
19433
  };
18050
19434
 
18051
- },{}],155:[function(require,module,exports){
19435
+ },{}],211:[function(require,module,exports){
18052
19436
  "use strict";
18053
19437
 
18054
19438
  module.exports = {
@@ -18078,7 +19462,7 @@ module.exports = {
18078
19462
  ]
18079
19463
  };
18080
19464
 
18081
- },{}],156:[function(require,module,exports){
19465
+ },{}],212:[function(require,module,exports){
18082
19466
  "use strict";
18083
19467
 
18084
19468
  module.exports = {
@@ -18106,7 +19490,7 @@ module.exports = {
18106
19490
  ]
18107
19491
  };
18108
19492
 
18109
- },{}],157:[function(require,module,exports){
19493
+ },{}],213:[function(require,module,exports){
18110
19494
  "use strict";
18111
19495
 
18112
19496
  module.exports = {
@@ -18133,7 +19517,7 @@ module.exports = {
18133
19517
  ]
18134
19518
  };
18135
19519
 
18136
- },{}],158:[function(require,module,exports){
19520
+ },{}],214:[function(require,module,exports){
18137
19521
  "use strict";
18138
19522
 
18139
19523
  module.exports = {
@@ -18209,7 +19593,97 @@ module.exports = {
18209
19593
  ]
18210
19594
  };
18211
19595
 
18212
- },{}],159:[function(require,module,exports){
19596
+ },{}],215:[function(require,module,exports){
19597
+ "use strict";
19598
+
19599
+ module.exports = {
19600
+ description: "Issue #222 - Object.keys() does not guarantee order",
19601
+ tests: [
19602
+ {
19603
+ description: "should pass",
19604
+ schema: {
19605
+ "type":"object",
19606
+ "oneOf": [
19607
+ {
19608
+ "type": "object",
19609
+ "properties": {
19610
+ "code": {
19611
+ "type": "string"
19612
+ },
19613
+ "libelle": {
19614
+ "type": "string"
19615
+ }
19616
+ },
19617
+ "enum": [
19618
+ {
19619
+ "code": "null",
19620
+ "libelle": "null"
19621
+ }
19622
+ ]
19623
+ },
19624
+ {
19625
+ "type": "object",
19626
+ "properties": {
19627
+ "code": {
19628
+ "type": "string"
19629
+ },
19630
+ "libelle": {
19631
+ "type": "string"
19632
+ }
19633
+ },
19634
+ "enum": [
19635
+ {
19636
+ "code": "0",
19637
+ "libelle": "Choice 1"
19638
+ }
19639
+ ]
19640
+ },
19641
+ {
19642
+ "type": "object",
19643
+ "properties": {
19644
+ "code": {
19645
+ "type": "string"
19646
+ },
19647
+ "libelle": {
19648
+ "type": "string"
19649
+ }
19650
+ },
19651
+ "enum": [
19652
+ {
19653
+ "code": "1",
19654
+ "libelle": "Choice 2"
19655
+ }
19656
+ ]
19657
+ },
19658
+ {
19659
+ "type": "object",
19660
+ "properties": {
19661
+ "code": {
19662
+ "type": "string"
19663
+ },
19664
+ "libelle": {
19665
+ "type": "string"
19666
+ }
19667
+ },
19668
+ "enum": [
19669
+ {
19670
+ "code": "2",
19671
+ "libelle": "Choice 3"
19672
+ }
19673
+ ]
19674
+ }
19675
+ ]
19676
+ },
19677
+ data: {
19678
+ "code": "2",
19679
+ "libelle": "Choice 3"
19680
+ },
19681
+ valid: true
19682
+ }
19683
+ ]
19684
+ };
19685
+
19686
+ },{}],216:[function(require,module,exports){
18213
19687
  "use strict";
18214
19688
 
18215
19689
  module.exports = {
@@ -18245,7 +19719,7 @@ module.exports = {
18245
19719
  ]
18246
19720
  };
18247
19721
 
18248
- },{}],160:[function(require,module,exports){
19722
+ },{}],217:[function(require,module,exports){
18249
19723
  "use strict";
18250
19724
 
18251
19725
  module.exports = {
@@ -18335,7 +19809,7 @@ module.exports = {
18335
19809
  ]
18336
19810
  };
18337
19811
 
18338
- },{}],161:[function(require,module,exports){
19812
+ },{}],218:[function(require,module,exports){
18339
19813
  "use strict";
18340
19814
 
18341
19815
  module.exports = {
@@ -18360,7 +19834,7 @@ module.exports = {
18360
19834
  ]
18361
19835
  };
18362
19836
 
18363
- },{}],162:[function(require,module,exports){
19837
+ },{}],219:[function(require,module,exports){
18364
19838
  "use strict";
18365
19839
 
18366
19840
  module.exports = {
@@ -18436,7 +19910,7 @@ module.exports = {
18436
19910
  ]
18437
19911
  };
18438
19912
 
18439
- },{}],163:[function(require,module,exports){
19913
+ },{}],220:[function(require,module,exports){
18440
19914
  "use strict";
18441
19915
 
18442
19916
  module.exports = {
@@ -18549,7 +20023,7 @@ module.exports = {
18549
20023
  ]
18550
20024
  };
18551
20025
 
18552
- },{}],164:[function(require,module,exports){
20026
+ },{}],221:[function(require,module,exports){
18553
20027
  "use strict";
18554
20028
 
18555
20029
  module.exports = {
@@ -18729,7 +20203,7 @@ module.exports = {
18729
20203
  ]
18730
20204
  };
18731
20205
 
18732
- },{}],165:[function(require,module,exports){
20206
+ },{}],222:[function(require,module,exports){
18733
20207
  "use strict";
18734
20208
 
18735
20209
  module.exports = {
@@ -18776,7 +20250,7 @@ module.exports = {
18776
20250
  ]
18777
20251
  };
18778
20252
 
18779
- },{}],166:[function(require,module,exports){
20253
+ },{}],223:[function(require,module,exports){
18780
20254
  "use strict";
18781
20255
 
18782
20256
  var resourceObject = {
@@ -19072,7 +20546,7 @@ module.exports = {
19072
20546
  ]
19073
20547
  };
19074
20548
 
19075
- },{}],167:[function(require,module,exports){
20549
+ },{}],224:[function(require,module,exports){
19076
20550
  "use strict";
19077
20551
 
19078
20552
  var draft4 = require("./files/Issue47/draft4.json");
@@ -19101,7 +20575,7 @@ module.exports = {
19101
20575
  ]
19102
20576
  };
19103
20577
 
19104
- },{"./files/Issue47/draft4.json":191,"./files/Issue47/sample.json":192,"./files/Issue47/swagger_draft.json":193,"./files/Issue47/swagger_draft_modified.json":194}],168:[function(require,module,exports){
20578
+ },{"./files/Issue47/draft4.json":248,"./files/Issue47/sample.json":249,"./files/Issue47/swagger_draft.json":250,"./files/Issue47/swagger_draft_modified.json":251}],225:[function(require,module,exports){
19105
20579
  "use strict";
19106
20580
 
19107
20581
  module.exports = {
@@ -19134,7 +20608,7 @@ module.exports = {
19134
20608
  ]
19135
20609
  };
19136
20610
 
19137
- },{}],169:[function(require,module,exports){
20611
+ },{}],226:[function(require,module,exports){
19138
20612
  "use strict";
19139
20613
 
19140
20614
  module.exports = {
@@ -19152,7 +20626,7 @@ module.exports = {
19152
20626
  ]
19153
20627
  };
19154
20628
 
19155
- },{}],170:[function(require,module,exports){
20629
+ },{}],227:[function(require,module,exports){
19156
20630
  "use strict";
19157
20631
 
19158
20632
  module.exports = {
@@ -19174,7 +20648,7 @@ module.exports = {
19174
20648
  ]
19175
20649
  };
19176
20650
 
19177
- },{}],171:[function(require,module,exports){
20651
+ },{}],228:[function(require,module,exports){
19178
20652
  "use strict";
19179
20653
 
19180
20654
  module.exports = {
@@ -19245,7 +20719,7 @@ module.exports = {
19245
20719
  ]
19246
20720
  };
19247
20721
 
19248
- },{}],172:[function(require,module,exports){
20722
+ },{}],229:[function(require,module,exports){
19249
20723
  "use strict";
19250
20724
 
19251
20725
  var dataTypeBaseJson = {
@@ -19930,7 +21404,7 @@ module.exports = {
19930
21404
  ]
19931
21405
  };
19932
21406
 
19933
- },{}],173:[function(require,module,exports){
21407
+ },{}],230:[function(require,module,exports){
19934
21408
  "use strict";
19935
21409
 
19936
21410
  module.exports = {
@@ -19993,7 +21467,7 @@ module.exports = {
19993
21467
  ]
19994
21468
  };
19995
21469
 
19996
- },{}],174:[function(require,module,exports){
21470
+ },{}],231:[function(require,module,exports){
19997
21471
  /*jshint -W101*/
19998
21472
 
19999
21473
  "use strict";
@@ -20570,7 +22044,7 @@ module.exports = {
20570
22044
  ]
20571
22045
  };
20572
22046
 
20573
- },{}],175:[function(require,module,exports){
22047
+ },{}],232:[function(require,module,exports){
20574
22048
  "use strict";
20575
22049
 
20576
22050
  module.exports = {
@@ -20601,7 +22075,7 @@ module.exports = {
20601
22075
  ]
20602
22076
  };
20603
22077
 
20604
- },{}],176:[function(require,module,exports){
22078
+ },{}],233:[function(require,module,exports){
20605
22079
  "use strict";
20606
22080
 
20607
22081
  module.exports = {
@@ -20652,7 +22126,7 @@ module.exports = {
20652
22126
  ]
20653
22127
  };
20654
22128
 
20655
- },{}],177:[function(require,module,exports){
22129
+ },{}],234:[function(require,module,exports){
20656
22130
  "use strict";
20657
22131
 
20658
22132
  module.exports = {
@@ -20772,7 +22246,7 @@ module.exports = {
20772
22246
  ]
20773
22247
  };
20774
22248
 
20775
- },{}],178:[function(require,module,exports){
22249
+ },{}],235:[function(require,module,exports){
20776
22250
  "use strict";
20777
22251
 
20778
22252
  module.exports = {
@@ -20830,7 +22304,7 @@ module.exports = {
20830
22304
  ]
20831
22305
  };
20832
22306
 
20833
- },{}],179:[function(require,module,exports){
22307
+ },{}],236:[function(require,module,exports){
20834
22308
  "use strict";
20835
22309
 
20836
22310
  module.exports = {
@@ -20903,7 +22377,7 @@ module.exports = {
20903
22377
  ]
20904
22378
  };
20905
22379
 
20906
- },{}],180:[function(require,module,exports){
22380
+ },{}],237:[function(require,module,exports){
20907
22381
  "use strict";
20908
22382
 
20909
22383
  var innerSchema = {
@@ -20948,7 +22422,7 @@ module.exports = {
20948
22422
  ]
20949
22423
  };
20950
22424
 
20951
- },{}],181:[function(require,module,exports){
22425
+ },{}],238:[function(require,module,exports){
20952
22426
  "use strict";
20953
22427
 
20954
22428
  var schema1 = {
@@ -20992,7 +22466,7 @@ module.exports = {
20992
22466
  ]
20993
22467
  };
20994
22468
 
20995
- },{}],182:[function(require,module,exports){
22469
+ },{}],239:[function(require,module,exports){
20996
22470
  "use strict";
20997
22471
 
20998
22472
  module.exports = {
@@ -21010,7 +22484,7 @@ module.exports = {
21010
22484
  ]
21011
22485
  };
21012
22486
 
21013
- },{}],183:[function(require,module,exports){
22487
+ },{}],240:[function(require,module,exports){
21014
22488
  "use strict";
21015
22489
 
21016
22490
  module.exports = {
@@ -21042,7 +22516,7 @@ module.exports = {
21042
22516
  ]
21043
22517
  };
21044
22518
 
21045
- },{}],184:[function(require,module,exports){
22519
+ },{}],241:[function(require,module,exports){
21046
22520
  "use strict";
21047
22521
 
21048
22522
  module.exports = {
@@ -21101,7 +22575,7 @@ module.exports = {
21101
22575
  ]
21102
22576
  };
21103
22577
 
21104
- },{}],185:[function(require,module,exports){
22578
+ },{}],242:[function(require,module,exports){
21105
22579
  "use strict";
21106
22580
 
21107
22581
  module.exports = {
@@ -21126,7 +22600,7 @@ module.exports = {
21126
22600
  ]
21127
22601
  };
21128
22602
 
21129
- },{}],186:[function(require,module,exports){
22603
+ },{}],243:[function(require,module,exports){
21130
22604
  "use strict";
21131
22605
 
21132
22606
  module.exports = {
@@ -21151,7 +22625,7 @@ module.exports = {
21151
22625
  ]
21152
22626
  };
21153
22627
 
21154
- },{}],187:[function(require,module,exports){
22628
+ },{}],244:[function(require,module,exports){
21155
22629
  "use strict";
21156
22630
 
21157
22631
  module.exports = {
@@ -21196,7 +22670,7 @@ module.exports = {
21196
22670
  ]
21197
22671
  };
21198
22672
 
21199
- },{}],188:[function(require,module,exports){
22673
+ },{}],245:[function(require,module,exports){
21200
22674
  "use strict";
21201
22675
 
21202
22676
  module.exports = {
@@ -21221,7 +22695,7 @@ module.exports = {
21221
22695
  ]
21222
22696
  };
21223
22697
 
21224
- },{}],189:[function(require,module,exports){
22698
+ },{}],246:[function(require,module,exports){
21225
22699
  "use strict";
21226
22700
 
21227
22701
  module.exports = {
@@ -21260,7 +22734,7 @@ module.exports = {
21260
22734
  ]
21261
22735
  };
21262
22736
 
21263
- },{}],190:[function(require,module,exports){
22737
+ },{}],247:[function(require,module,exports){
21264
22738
  "use strict";
21265
22739
 
21266
22740
  module.exports = {
@@ -21290,7 +22764,7 @@ module.exports = {
21290
22764
  ]
21291
22765
  };
21292
22766
 
21293
- },{}],191:[function(require,module,exports){
22767
+ },{}],248:[function(require,module,exports){
21294
22768
  module.exports={
21295
22769
  "id": "http://json-schema.org/draft-04/schema#",
21296
22770
  "$schema": "http://json-schema.org/draft-04/schema#",
@@ -21442,7 +22916,7 @@ module.exports={
21442
22916
  "default": {}
21443
22917
  }
21444
22918
 
21445
- },{}],192:[function(require,module,exports){
22919
+ },{}],249:[function(require,module,exports){
21446
22920
  module.exports={
21447
22921
  "swagger": 2,
21448
22922
  "info": {
@@ -21533,7 +23007,7 @@ module.exports={
21533
23007
  }
21534
23008
  }
21535
23009
 
21536
- },{}],193:[function(require,module,exports){
23010
+ },{}],250:[function(require,module,exports){
21537
23011
  module.exports={
21538
23012
  "title": "A JSON Schema for Swagger 2.0 API.",
21539
23013
  "$schema": "http://json-schema.org/draft-04/schema#",
@@ -21931,7 +23405,7 @@ module.exports={
21931
23405
  }
21932
23406
  }
21933
23407
 
21934
- },{}],194:[function(require,module,exports){
23408
+ },{}],251:[function(require,module,exports){
21935
23409
  module.exports={
21936
23410
  "title": "A JSON Schema for Swagger 2.0 API.",
21937
23411
  "$schema": "http://json-schema.org/draft-04/schema#",
@@ -22329,7 +23803,7 @@ module.exports={
22329
23803
  }
22330
23804
  }
22331
23805
 
22332
- },{}],195:[function(require,module,exports){
23806
+ },{}],252:[function(require,module,exports){
22333
23807
  'use strict';
22334
23808
 
22335
23809
  module.exports = {
@@ -22354,15 +23828,15 @@ module.exports = {
22354
23828
  ]
22355
23829
  };
22356
23830
 
22357
- },{}],196:[function(require,module,exports){
22358
- arguments[4][191][0].apply(exports,arguments)
22359
- },{"dup":191}],197:[function(require,module,exports){
23831
+ },{}],253:[function(require,module,exports){
23832
+ arguments[4][248][0].apply(exports,arguments)
23833
+ },{"dup":248}],254:[function(require,module,exports){
22360
23834
  module.exports={
22361
23835
  "type": "integer"
22362
23836
  }
22363
- },{}],198:[function(require,module,exports){
22364
- arguments[4][197][0].apply(exports,arguments)
22365
- },{"dup":197}],199:[function(require,module,exports){
23837
+ },{}],255:[function(require,module,exports){
23838
+ arguments[4][254][0].apply(exports,arguments)
23839
+ },{"dup":254}],256:[function(require,module,exports){
22366
23840
  module.exports={
22367
23841
  "integer": {
22368
23842
  "type": "integer"
@@ -22371,7 +23845,7 @@ module.exports={
22371
23845
  "$ref": "#/integer"
22372
23846
  }
22373
23847
  }
22374
- },{}],200:[function(require,module,exports){
23848
+ },{}],257:[function(require,module,exports){
22375
23849
  module.exports=[
22376
23850
  {
22377
23851
  "description": "additionalItems as schema",
@@ -22455,7 +23929,7 @@ module.exports=[
22455
23929
  }
22456
23930
  ]
22457
23931
 
22458
- },{}],201:[function(require,module,exports){
23932
+ },{}],258:[function(require,module,exports){
22459
23933
  module.exports=[
22460
23934
  {
22461
23935
  "description":
@@ -22545,7 +24019,7 @@ module.exports=[
22545
24019
  }
22546
24020
  ]
22547
24021
 
22548
- },{}],202:[function(require,module,exports){
24022
+ },{}],259:[function(require,module,exports){
22549
24023
  module.exports=[
22550
24024
  {
22551
24025
  "description": "allOf",
@@ -22659,7 +24133,7 @@ module.exports=[
22659
24133
  }
22660
24134
  ]
22661
24135
 
22662
- },{}],203:[function(require,module,exports){
24136
+ },{}],260:[function(require,module,exports){
22663
24137
  module.exports=[
22664
24138
  {
22665
24139
  "description": "anyOf",
@@ -22729,7 +24203,7 @@ module.exports=[
22729
24203
  }
22730
24204
  ]
22731
24205
 
22732
- },{}],204:[function(require,module,exports){
24206
+ },{}],261:[function(require,module,exports){
22733
24207
  module.exports=[
22734
24208
  {
22735
24209
  "description": "invalid type for default",
@@ -22780,7 +24254,7 @@ module.exports=[
22780
24254
  }
22781
24255
  ]
22782
24256
 
22783
- },{}],205:[function(require,module,exports){
24257
+ },{}],262:[function(require,module,exports){
22784
24258
  module.exports=[
22785
24259
  {
22786
24260
  "description": "valid definition",
@@ -22814,7 +24288,7 @@ module.exports=[
22814
24288
  }
22815
24289
  ]
22816
24290
 
22817
- },{}],206:[function(require,module,exports){
24291
+ },{}],263:[function(require,module,exports){
22818
24292
  module.exports=[
22819
24293
  {
22820
24294
  "description": "dependencies",
@@ -22929,7 +24403,7 @@ module.exports=[
22929
24403
  }
22930
24404
  ]
22931
24405
 
22932
- },{}],207:[function(require,module,exports){
24406
+ },{}],264:[function(require,module,exports){
22933
24407
  module.exports=[
22934
24408
  {
22935
24409
  "description": "simple enum validation",
@@ -23003,7 +24477,7 @@ module.exports=[
23003
24477
  }
23004
24478
  ]
23005
24479
 
23006
- },{}],208:[function(require,module,exports){
24480
+ },{}],265:[function(require,module,exports){
23007
24481
  module.exports=[
23008
24482
  {
23009
24483
  "description": "a schema given for items",
@@ -23051,7 +24525,7 @@ module.exports=[
23051
24525
  }
23052
24526
  ]
23053
24527
 
23054
- },{}],209:[function(require,module,exports){
24528
+ },{}],266:[function(require,module,exports){
23055
24529
  module.exports=[
23056
24530
  {
23057
24531
  "description": "maxItems validation",
@@ -23081,7 +24555,7 @@ module.exports=[
23081
24555
  }
23082
24556
  ]
23083
24557
 
23084
- },{}],210:[function(require,module,exports){
24558
+ },{}],267:[function(require,module,exports){
23085
24559
  module.exports=[
23086
24560
  {
23087
24561
  "description": "maxLength validation",
@@ -23116,7 +24590,7 @@ module.exports=[
23116
24590
  }
23117
24591
  ]
23118
24592
 
23119
- },{}],211:[function(require,module,exports){
24593
+ },{}],268:[function(require,module,exports){
23120
24594
  module.exports=[
23121
24595
  {
23122
24596
  "description": "maxProperties validation",
@@ -23146,7 +24620,7 @@ module.exports=[
23146
24620
  }
23147
24621
  ]
23148
24622
 
23149
- },{}],212:[function(require,module,exports){
24623
+ },{}],269:[function(require,module,exports){
23150
24624
  module.exports=[
23151
24625
  {
23152
24626
  "description": "maximum validation",
@@ -23190,7 +24664,7 @@ module.exports=[
23190
24664
  }
23191
24665
  ]
23192
24666
 
23193
- },{}],213:[function(require,module,exports){
24667
+ },{}],270:[function(require,module,exports){
23194
24668
  module.exports=[
23195
24669
  {
23196
24670
  "description": "minItems validation",
@@ -23220,7 +24694,7 @@ module.exports=[
23220
24694
  }
23221
24695
  ]
23222
24696
 
23223
- },{}],214:[function(require,module,exports){
24697
+ },{}],271:[function(require,module,exports){
23224
24698
  module.exports=[
23225
24699
  {
23226
24700
  "description": "minLength validation",
@@ -23255,7 +24729,7 @@ module.exports=[
23255
24729
  }
23256
24730
  ]
23257
24731
 
23258
- },{}],215:[function(require,module,exports){
24732
+ },{}],272:[function(require,module,exports){
23259
24733
  module.exports=[
23260
24734
  {
23261
24735
  "description": "minProperties validation",
@@ -23285,7 +24759,7 @@ module.exports=[
23285
24759
  }
23286
24760
  ]
23287
24761
 
23288
- },{}],216:[function(require,module,exports){
24762
+ },{}],273:[function(require,module,exports){
23289
24763
  module.exports=[
23290
24764
  {
23291
24765
  "description": "minimum validation",
@@ -23329,7 +24803,7 @@ module.exports=[
23329
24803
  }
23330
24804
  ]
23331
24805
 
23332
- },{}],217:[function(require,module,exports){
24806
+ },{}],274:[function(require,module,exports){
23333
24807
  module.exports=[
23334
24808
  {
23335
24809
  "description": "by int",
@@ -23391,7 +24865,7 @@ module.exports=[
23391
24865
  }
23392
24866
  ]
23393
24867
 
23394
- },{}],218:[function(require,module,exports){
24868
+ },{}],275:[function(require,module,exports){
23395
24869
  module.exports=[
23396
24870
  {
23397
24871
  "description": "not",
@@ -23489,7 +24963,7 @@ module.exports=[
23489
24963
 
23490
24964
  ]
23491
24965
 
23492
- },{}],219:[function(require,module,exports){
24966
+ },{}],276:[function(require,module,exports){
23493
24967
  module.exports=[
23494
24968
  {
23495
24969
  "description": "oneOf",
@@ -23559,7 +25033,7 @@ module.exports=[
23559
25033
  }
23560
25034
  ]
23561
25035
 
23562
- },{}],220:[function(require,module,exports){
25036
+ },{}],277:[function(require,module,exports){
23563
25037
  module.exports=[
23564
25038
  {
23565
25039
  "description": "integer",
@@ -23668,7 +25142,7 @@ module.exports=[
23668
25142
  }
23669
25143
  ]
23670
25144
 
23671
- },{}],221:[function(require,module,exports){
25145
+ },{}],278:[function(require,module,exports){
23672
25146
  module.exports=[
23673
25147
  {
23674
25148
  "description": "validation of date-time strings",
@@ -23813,7 +25287,7 @@ module.exports=[
23813
25287
  }
23814
25288
  ]
23815
25289
 
23816
- },{}],222:[function(require,module,exports){
25290
+ },{}],279:[function(require,module,exports){
23817
25291
  module.exports=[
23818
25292
  {
23819
25293
  "description": "pattern validation",
@@ -23838,7 +25312,7 @@ module.exports=[
23838
25312
  }
23839
25313
  ]
23840
25314
 
23841
- },{}],223:[function(require,module,exports){
25315
+ },{}],280:[function(require,module,exports){
23842
25316
  module.exports=[
23843
25317
  {
23844
25318
  "description":
@@ -23950,7 +25424,7 @@ module.exports=[
23950
25424
  }
23951
25425
  ]
23952
25426
 
23953
- },{}],224:[function(require,module,exports){
25427
+ },{}],281:[function(require,module,exports){
23954
25428
  module.exports=[
23955
25429
  {
23956
25430
  "description": "object properties validation",
@@ -24044,7 +25518,7 @@ module.exports=[
24044
25518
  }
24045
25519
  ]
24046
25520
 
24047
- },{}],225:[function(require,module,exports){
25521
+ },{}],282:[function(require,module,exports){
24048
25522
  module.exports=[
24049
25523
  {
24050
25524
  "description": "root pointer ref",
@@ -24190,7 +25664,7 @@ module.exports=[
24190
25664
  }
24191
25665
  ]
24192
25666
 
24193
- },{}],226:[function(require,module,exports){
25667
+ },{}],283:[function(require,module,exports){
24194
25668
  module.exports=[
24195
25669
  {
24196
25670
  "description": "remote ref",
@@ -24266,7 +25740,7 @@ module.exports=[
24266
25740
  }
24267
25741
  ]
24268
25742
 
24269
- },{}],227:[function(require,module,exports){
25743
+ },{}],284:[function(require,module,exports){
24270
25744
  module.exports=[
24271
25745
  {
24272
25746
  "description": "required validation",
@@ -24307,7 +25781,7 @@ module.exports=[
24307
25781
  }
24308
25782
  ]
24309
25783
 
24310
- },{}],228:[function(require,module,exports){
25784
+ },{}],285:[function(require,module,exports){
24311
25785
  module.exports=[
24312
25786
  {
24313
25787
  "description": "integer type matches integers",
@@ -24639,7 +26113,7 @@ module.exports=[
24639
26113
  }
24640
26114
  ]
24641
26115
 
24642
- },{}],229:[function(require,module,exports){
26116
+ },{}],286:[function(require,module,exports){
24643
26117
  module.exports=[
24644
26118
  {
24645
26119
  "description": "uniqueItems validation",
@@ -24720,7 +26194,7 @@ module.exports=[
24720
26194
  }
24721
26195
  ]
24722
26196
 
24723
- },{}],230:[function(require,module,exports){
26197
+ },{}],287:[function(require,module,exports){
24724
26198
  "use strict";
24725
26199
 
24726
26200
  var isBrowser = typeof window !== "undefined";
@@ -24813,7 +26287,7 @@ describe("Automatic schema loading", function () {
24813
26287
 
24814
26288
  });
24815
26289
 
24816
- },{"../../src/ZSchema":122,"https":7}],231:[function(require,module,exports){
26290
+ },{"../../src/ZSchema":178,"https":58}],288:[function(require,module,exports){
24817
26291
  "use strict";
24818
26292
 
24819
26293
  var ZSchema = require("../../src/ZSchema");
@@ -24885,7 +26359,7 @@ describe("Basic", function () {
24885
26359
 
24886
26360
  });
24887
26361
 
24888
- },{"../../src/ZSchema":122,"../files/draft-04-schema.json":196,"../jsonSchemaTestSuite/remotes/folder/folderInteger.json":197,"../jsonSchemaTestSuite/remotes/integer.json":198,"../jsonSchemaTestSuite/remotes/subSchemas.json":199}],232:[function(require,module,exports){
26362
+ },{"../../src/ZSchema":178,"../files/draft-04-schema.json":253,"../jsonSchemaTestSuite/remotes/folder/folderInteger.json":254,"../jsonSchemaTestSuite/remotes/integer.json":255,"../jsonSchemaTestSuite/remotes/subSchemas.json":256}],289:[function(require,module,exports){
24889
26363
  "use strict";
24890
26364
 
24891
26365
  var ZSchema = require("../../src/ZSchema");
@@ -24981,7 +26455,7 @@ describe("JsonSchemaTestSuite", function () {
24981
26455
 
24982
26456
  });
24983
26457
 
24984
- },{"../../src/ZSchema":122,"../files/draft-04-schema.json":196,"../jsonSchemaTestSuite/remotes/folder/folderInteger.json":197,"../jsonSchemaTestSuite/remotes/integer.json":198,"../jsonSchemaTestSuite/remotes/subSchemas.json":199,"../jsonSchemaTestSuite/tests/draft4/additionalItems.json":200,"../jsonSchemaTestSuite/tests/draft4/additionalProperties.json":201,"../jsonSchemaTestSuite/tests/draft4/allOf.json":202,"../jsonSchemaTestSuite/tests/draft4/anyOf.json":203,"../jsonSchemaTestSuite/tests/draft4/default.json":204,"../jsonSchemaTestSuite/tests/draft4/definitions.json":205,"../jsonSchemaTestSuite/tests/draft4/dependencies.json":206,"../jsonSchemaTestSuite/tests/draft4/enum.json":207,"../jsonSchemaTestSuite/tests/draft4/items.json":208,"../jsonSchemaTestSuite/tests/draft4/maxItems.json":209,"../jsonSchemaTestSuite/tests/draft4/maxLength.json":210,"../jsonSchemaTestSuite/tests/draft4/maxProperties.json":211,"../jsonSchemaTestSuite/tests/draft4/maximum.json":212,"../jsonSchemaTestSuite/tests/draft4/minItems.json":213,"../jsonSchemaTestSuite/tests/draft4/minLength.json":214,"../jsonSchemaTestSuite/tests/draft4/minProperties.json":215,"../jsonSchemaTestSuite/tests/draft4/minimum.json":216,"../jsonSchemaTestSuite/tests/draft4/multipleOf.json":217,"../jsonSchemaTestSuite/tests/draft4/not.json":218,"../jsonSchemaTestSuite/tests/draft4/oneOf.json":219,"../jsonSchemaTestSuite/tests/draft4/optional/bignum.json":220,"../jsonSchemaTestSuite/tests/draft4/optional/format.json":221,"../jsonSchemaTestSuite/tests/draft4/pattern.json":222,"../jsonSchemaTestSuite/tests/draft4/patternProperties.json":223,"../jsonSchemaTestSuite/tests/draft4/properties.json":224,"../jsonSchemaTestSuite/tests/draft4/ref.json":225,"../jsonSchemaTestSuite/tests/draft4/refRemote.json":226,"../jsonSchemaTestSuite/tests/draft4/required.json":227,"../jsonSchemaTestSuite/tests/draft4/type.json":228,"../jsonSchemaTestSuite/tests/draft4/uniqueItems.json":229}],233:[function(require,module,exports){
26458
+ },{"../../src/ZSchema":178,"../files/draft-04-schema.json":253,"../jsonSchemaTestSuite/remotes/folder/folderInteger.json":254,"../jsonSchemaTestSuite/remotes/integer.json":255,"../jsonSchemaTestSuite/remotes/subSchemas.json":256,"../jsonSchemaTestSuite/tests/draft4/additionalItems.json":257,"../jsonSchemaTestSuite/tests/draft4/additionalProperties.json":258,"../jsonSchemaTestSuite/tests/draft4/allOf.json":259,"../jsonSchemaTestSuite/tests/draft4/anyOf.json":260,"../jsonSchemaTestSuite/tests/draft4/default.json":261,"../jsonSchemaTestSuite/tests/draft4/definitions.json":262,"../jsonSchemaTestSuite/tests/draft4/dependencies.json":263,"../jsonSchemaTestSuite/tests/draft4/enum.json":264,"../jsonSchemaTestSuite/tests/draft4/items.json":265,"../jsonSchemaTestSuite/tests/draft4/maxItems.json":266,"../jsonSchemaTestSuite/tests/draft4/maxLength.json":267,"../jsonSchemaTestSuite/tests/draft4/maxProperties.json":268,"../jsonSchemaTestSuite/tests/draft4/maximum.json":269,"../jsonSchemaTestSuite/tests/draft4/minItems.json":270,"../jsonSchemaTestSuite/tests/draft4/minLength.json":271,"../jsonSchemaTestSuite/tests/draft4/minProperties.json":272,"../jsonSchemaTestSuite/tests/draft4/minimum.json":273,"../jsonSchemaTestSuite/tests/draft4/multipleOf.json":274,"../jsonSchemaTestSuite/tests/draft4/not.json":275,"../jsonSchemaTestSuite/tests/draft4/oneOf.json":276,"../jsonSchemaTestSuite/tests/draft4/optional/bignum.json":277,"../jsonSchemaTestSuite/tests/draft4/optional/format.json":278,"../jsonSchemaTestSuite/tests/draft4/pattern.json":279,"../jsonSchemaTestSuite/tests/draft4/patternProperties.json":280,"../jsonSchemaTestSuite/tests/draft4/properties.json":281,"../jsonSchemaTestSuite/tests/draft4/ref.json":282,"../jsonSchemaTestSuite/tests/draft4/refRemote.json":283,"../jsonSchemaTestSuite/tests/draft4/required.json":284,"../jsonSchemaTestSuite/tests/draft4/type.json":285,"../jsonSchemaTestSuite/tests/draft4/uniqueItems.json":286}],290:[function(require,module,exports){
24985
26459
  "use strict";
24986
26460
 
24987
26461
  var ZSchema = require("../../src/ZSchema");
@@ -25015,7 +26489,7 @@ describe("Using multiple instances of Z-Schema", function () {
25015
26489
 
25016
26490
  });
25017
26491
 
25018
- },{"../../src/ZSchema":122}],234:[function(require,module,exports){
26492
+ },{"../../src/ZSchema":178}],291:[function(require,module,exports){
25019
26493
  /*jshint -W030 */
25020
26494
 
25021
26495
  "use strict";
@@ -25091,6 +26565,7 @@ var testSuiteFiles = [
25091
26565
  require("../ZSchemaTestSuite/Issue142.js"),
25092
26566
  require("../ZSchemaTestSuite/Issue146.js"),
25093
26567
  require("../ZSchemaTestSuite/Issue151.js"),
26568
+ require("../ZSchemaTestSuite/Issue222.js"),
25094
26569
 
25095
26570
  undefined
25096
26571
  ];
@@ -25104,8 +26579,8 @@ describe("ZSchemaTestSuite", function () {
25104
26579
  }
25105
26580
  }
25106
26581
 
25107
- it("should contain 67 files", function () {
25108
- expect(testSuiteFiles.length).toBe(67);
26582
+ it("should contain 68 files", function () {
26583
+ expect(testSuiteFiles.length).toBe(68);
25109
26584
  });
25110
26585
 
25111
26586
  testSuiteFiles.forEach(function (testSuite) {
@@ -25213,7 +26688,7 @@ describe("ZSchemaTestSuite", function () {
25213
26688
 
25214
26689
  });
25215
26690
 
25216
- },{"../../src/ZSchema":122,"../ZSchemaTestSuite/AssumeAdditional.js":125,"../ZSchemaTestSuite/CustomFormats.js":126,"../ZSchemaTestSuite/CustomFormatsAsync.js":127,"../ZSchemaTestSuite/CustomValidator.js":128,"../ZSchemaTestSuite/ErrorPathAsArray.js":129,"../ZSchemaTestSuite/ErrorPathAsJSONPointer.js":130,"../ZSchemaTestSuite/ForceAdditional.js":131,"../ZSchemaTestSuite/ForceItems.js":132,"../ZSchemaTestSuite/ForceMaxItems.js":133,"../ZSchemaTestSuite/ForceMaxLength.js":134,"../ZSchemaTestSuite/ForceMinItems.js":135,"../ZSchemaTestSuite/ForceMinLength.js":136,"../ZSchemaTestSuite/ForceProperties.js":137,"../ZSchemaTestSuite/IgnoreUnresolvableReferences.js":138,"../ZSchemaTestSuite/InvalidId.js":139,"../ZSchemaTestSuite/Issue101.js":140,"../ZSchemaTestSuite/Issue102.js":141,"../ZSchemaTestSuite/Issue103.js":142,"../ZSchemaTestSuite/Issue106.js":143,"../ZSchemaTestSuite/Issue107.js":144,"../ZSchemaTestSuite/Issue12.js":145,"../ZSchemaTestSuite/Issue121.js":146,"../ZSchemaTestSuite/Issue125.js":147,"../ZSchemaTestSuite/Issue126.js":148,"../ZSchemaTestSuite/Issue13.js":149,"../ZSchemaTestSuite/Issue130.js":150,"../ZSchemaTestSuite/Issue131.js":151,"../ZSchemaTestSuite/Issue137.js":152,"../ZSchemaTestSuite/Issue139.js":153,"../ZSchemaTestSuite/Issue142.js":154,"../ZSchemaTestSuite/Issue146.js":155,"../ZSchemaTestSuite/Issue151.js":156,"../ZSchemaTestSuite/Issue16.js":157,"../ZSchemaTestSuite/Issue22.js":158,"../ZSchemaTestSuite/Issue25.js":159,"../ZSchemaTestSuite/Issue26.js":160,"../ZSchemaTestSuite/Issue37.js":161,"../ZSchemaTestSuite/Issue40.js":162,"../ZSchemaTestSuite/Issue41.js":163,"../ZSchemaTestSuite/Issue43.js":164,"../ZSchemaTestSuite/Issue44.js":165,"../ZSchemaTestSuite/Issue45.js":166,"../ZSchemaTestSuite/Issue47.js":167,"../ZSchemaTestSuite/Issue48.js":168,"../ZSchemaTestSuite/Issue49.js":169,"../ZSchemaTestSuite/Issue53.js":170,"../ZSchemaTestSuite/Issue56.js":171,"../ZSchemaTestSuite/Issue57.js":172,"../ZSchemaTestSuite/Issue58.js":173,"../ZSchemaTestSuite/Issue63.js":174,"../ZSchemaTestSuite/Issue64.js":175,"../ZSchemaTestSuite/Issue67.js":176,"../ZSchemaTestSuite/Issue71.js":177,"../ZSchemaTestSuite/Issue73.js":178,"../ZSchemaTestSuite/Issue76.js":179,"../ZSchemaTestSuite/Issue85.js":180,"../ZSchemaTestSuite/Issue94.js":181,"../ZSchemaTestSuite/Issue96.js":182,"../ZSchemaTestSuite/Issue98.js":183,"../ZSchemaTestSuite/MultipleSchemas.js":184,"../ZSchemaTestSuite/NoEmptyArrays.js":185,"../ZSchemaTestSuite/NoEmptyStrings.js":186,"../ZSchemaTestSuite/NoExtraKeywords.js":187,"../ZSchemaTestSuite/NoTypeless.js":188,"../ZSchemaTestSuite/PedanticCheck.js":189,"../ZSchemaTestSuite/StrictUris.js":190,"../ZSchemaTestSuite/getRegisteredFormats.js":195}],235:[function(require,module,exports){
26691
+ },{"../../src/ZSchema":178,"../ZSchemaTestSuite/AssumeAdditional.js":181,"../ZSchemaTestSuite/CustomFormats.js":182,"../ZSchemaTestSuite/CustomFormatsAsync.js":183,"../ZSchemaTestSuite/CustomValidator.js":184,"../ZSchemaTestSuite/ErrorPathAsArray.js":185,"../ZSchemaTestSuite/ErrorPathAsJSONPointer.js":186,"../ZSchemaTestSuite/ForceAdditional.js":187,"../ZSchemaTestSuite/ForceItems.js":188,"../ZSchemaTestSuite/ForceMaxItems.js":189,"../ZSchemaTestSuite/ForceMaxLength.js":190,"../ZSchemaTestSuite/ForceMinItems.js":191,"../ZSchemaTestSuite/ForceMinLength.js":192,"../ZSchemaTestSuite/ForceProperties.js":193,"../ZSchemaTestSuite/IgnoreUnresolvableReferences.js":194,"../ZSchemaTestSuite/InvalidId.js":195,"../ZSchemaTestSuite/Issue101.js":196,"../ZSchemaTestSuite/Issue102.js":197,"../ZSchemaTestSuite/Issue103.js":198,"../ZSchemaTestSuite/Issue106.js":199,"../ZSchemaTestSuite/Issue107.js":200,"../ZSchemaTestSuite/Issue12.js":201,"../ZSchemaTestSuite/Issue121.js":202,"../ZSchemaTestSuite/Issue125.js":203,"../ZSchemaTestSuite/Issue126.js":204,"../ZSchemaTestSuite/Issue13.js":205,"../ZSchemaTestSuite/Issue130.js":206,"../ZSchemaTestSuite/Issue131.js":207,"../ZSchemaTestSuite/Issue137.js":208,"../ZSchemaTestSuite/Issue139.js":209,"../ZSchemaTestSuite/Issue142.js":210,"../ZSchemaTestSuite/Issue146.js":211,"../ZSchemaTestSuite/Issue151.js":212,"../ZSchemaTestSuite/Issue16.js":213,"../ZSchemaTestSuite/Issue22.js":214,"../ZSchemaTestSuite/Issue222.js":215,"../ZSchemaTestSuite/Issue25.js":216,"../ZSchemaTestSuite/Issue26.js":217,"../ZSchemaTestSuite/Issue37.js":218,"../ZSchemaTestSuite/Issue40.js":219,"../ZSchemaTestSuite/Issue41.js":220,"../ZSchemaTestSuite/Issue43.js":221,"../ZSchemaTestSuite/Issue44.js":222,"../ZSchemaTestSuite/Issue45.js":223,"../ZSchemaTestSuite/Issue47.js":224,"../ZSchemaTestSuite/Issue48.js":225,"../ZSchemaTestSuite/Issue49.js":226,"../ZSchemaTestSuite/Issue53.js":227,"../ZSchemaTestSuite/Issue56.js":228,"../ZSchemaTestSuite/Issue57.js":229,"../ZSchemaTestSuite/Issue58.js":230,"../ZSchemaTestSuite/Issue63.js":231,"../ZSchemaTestSuite/Issue64.js":232,"../ZSchemaTestSuite/Issue67.js":233,"../ZSchemaTestSuite/Issue71.js":234,"../ZSchemaTestSuite/Issue73.js":235,"../ZSchemaTestSuite/Issue76.js":236,"../ZSchemaTestSuite/Issue85.js":237,"../ZSchemaTestSuite/Issue94.js":238,"../ZSchemaTestSuite/Issue96.js":239,"../ZSchemaTestSuite/Issue98.js":240,"../ZSchemaTestSuite/MultipleSchemas.js":241,"../ZSchemaTestSuite/NoEmptyArrays.js":242,"../ZSchemaTestSuite/NoEmptyStrings.js":243,"../ZSchemaTestSuite/NoExtraKeywords.js":244,"../ZSchemaTestSuite/NoTypeless.js":245,"../ZSchemaTestSuite/PedanticCheck.js":246,"../ZSchemaTestSuite/StrictUris.js":247,"../ZSchemaTestSuite/getRegisteredFormats.js":252}],292:[function(require,module,exports){
25217
26692
  "use strict";
25218
26693
 
25219
26694
  var ZSchema = require("../../src/ZSchema");
@@ -25312,4 +26787,4 @@ describe("Using path to schema as a third argument", function () {
25312
26787
 
25313
26788
  });
25314
26789
 
25315
- },{"../../src/ZSchema":122}]},{},[230,231,232,233,235,234]);
26790
+ },{"../../src/ZSchema":178}]},{},[287,288,289,290,292,291]);