@papaemmelab/isabl-web 0.3.24 → 0.3.25
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.
- package/dist/isabl-web.common.js +2698 -316
- package/dist/isabl-web.umd.js +2698 -316
- package/dist/isabl-web.umd.min.js +23 -14
- package/package.json +2 -1
package/dist/isabl-web.umd.js
CHANGED
|
@@ -6289,6 +6289,164 @@ var camelifyKeys = function camelifyKeys(obj) {
|
|
|
6289
6289
|
unslugify: unslugify
|
|
6290
6290
|
});
|
|
6291
6291
|
|
|
6292
|
+
/***/ }),
|
|
6293
|
+
|
|
6294
|
+
/***/ 79742:
|
|
6295
|
+
/***/ (function(__unused_webpack_module, exports) {
|
|
6296
|
+
|
|
6297
|
+
"use strict";
|
|
6298
|
+
|
|
6299
|
+
|
|
6300
|
+
exports.byteLength = byteLength
|
|
6301
|
+
exports.toByteArray = toByteArray
|
|
6302
|
+
exports.fromByteArray = fromByteArray
|
|
6303
|
+
|
|
6304
|
+
var lookup = []
|
|
6305
|
+
var revLookup = []
|
|
6306
|
+
var Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array
|
|
6307
|
+
|
|
6308
|
+
var code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'
|
|
6309
|
+
for (var i = 0, len = code.length; i < len; ++i) {
|
|
6310
|
+
lookup[i] = code[i]
|
|
6311
|
+
revLookup[code.charCodeAt(i)] = i
|
|
6312
|
+
}
|
|
6313
|
+
|
|
6314
|
+
// Support decoding URL-safe base64 strings, as Node.js does.
|
|
6315
|
+
// See: https://en.wikipedia.org/wiki/Base64#URL_applications
|
|
6316
|
+
revLookup['-'.charCodeAt(0)] = 62
|
|
6317
|
+
revLookup['_'.charCodeAt(0)] = 63
|
|
6318
|
+
|
|
6319
|
+
function getLens (b64) {
|
|
6320
|
+
var len = b64.length
|
|
6321
|
+
|
|
6322
|
+
if (len % 4 > 0) {
|
|
6323
|
+
throw new Error('Invalid string. Length must be a multiple of 4')
|
|
6324
|
+
}
|
|
6325
|
+
|
|
6326
|
+
// Trim off extra bytes after placeholder bytes are found
|
|
6327
|
+
// See: https://github.com/beatgammit/base64-js/issues/42
|
|
6328
|
+
var validLen = b64.indexOf('=')
|
|
6329
|
+
if (validLen === -1) validLen = len
|
|
6330
|
+
|
|
6331
|
+
var placeHoldersLen = validLen === len
|
|
6332
|
+
? 0
|
|
6333
|
+
: 4 - (validLen % 4)
|
|
6334
|
+
|
|
6335
|
+
return [validLen, placeHoldersLen]
|
|
6336
|
+
}
|
|
6337
|
+
|
|
6338
|
+
// base64 is 4/3 + up to two characters of the original data
|
|
6339
|
+
function byteLength (b64) {
|
|
6340
|
+
var lens = getLens(b64)
|
|
6341
|
+
var validLen = lens[0]
|
|
6342
|
+
var placeHoldersLen = lens[1]
|
|
6343
|
+
return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen
|
|
6344
|
+
}
|
|
6345
|
+
|
|
6346
|
+
function _byteLength (b64, validLen, placeHoldersLen) {
|
|
6347
|
+
return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen
|
|
6348
|
+
}
|
|
6349
|
+
|
|
6350
|
+
function toByteArray (b64) {
|
|
6351
|
+
var tmp
|
|
6352
|
+
var lens = getLens(b64)
|
|
6353
|
+
var validLen = lens[0]
|
|
6354
|
+
var placeHoldersLen = lens[1]
|
|
6355
|
+
|
|
6356
|
+
var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen))
|
|
6357
|
+
|
|
6358
|
+
var curByte = 0
|
|
6359
|
+
|
|
6360
|
+
// if there are placeholders, only get up to the last complete 4 chars
|
|
6361
|
+
var len = placeHoldersLen > 0
|
|
6362
|
+
? validLen - 4
|
|
6363
|
+
: validLen
|
|
6364
|
+
|
|
6365
|
+
var i
|
|
6366
|
+
for (i = 0; i < len; i += 4) {
|
|
6367
|
+
tmp =
|
|
6368
|
+
(revLookup[b64.charCodeAt(i)] << 18) |
|
|
6369
|
+
(revLookup[b64.charCodeAt(i + 1)] << 12) |
|
|
6370
|
+
(revLookup[b64.charCodeAt(i + 2)] << 6) |
|
|
6371
|
+
revLookup[b64.charCodeAt(i + 3)]
|
|
6372
|
+
arr[curByte++] = (tmp >> 16) & 0xFF
|
|
6373
|
+
arr[curByte++] = (tmp >> 8) & 0xFF
|
|
6374
|
+
arr[curByte++] = tmp & 0xFF
|
|
6375
|
+
}
|
|
6376
|
+
|
|
6377
|
+
if (placeHoldersLen === 2) {
|
|
6378
|
+
tmp =
|
|
6379
|
+
(revLookup[b64.charCodeAt(i)] << 2) |
|
|
6380
|
+
(revLookup[b64.charCodeAt(i + 1)] >> 4)
|
|
6381
|
+
arr[curByte++] = tmp & 0xFF
|
|
6382
|
+
}
|
|
6383
|
+
|
|
6384
|
+
if (placeHoldersLen === 1) {
|
|
6385
|
+
tmp =
|
|
6386
|
+
(revLookup[b64.charCodeAt(i)] << 10) |
|
|
6387
|
+
(revLookup[b64.charCodeAt(i + 1)] << 4) |
|
|
6388
|
+
(revLookup[b64.charCodeAt(i + 2)] >> 2)
|
|
6389
|
+
arr[curByte++] = (tmp >> 8) & 0xFF
|
|
6390
|
+
arr[curByte++] = tmp & 0xFF
|
|
6391
|
+
}
|
|
6392
|
+
|
|
6393
|
+
return arr
|
|
6394
|
+
}
|
|
6395
|
+
|
|
6396
|
+
function tripletToBase64 (num) {
|
|
6397
|
+
return lookup[num >> 18 & 0x3F] +
|
|
6398
|
+
lookup[num >> 12 & 0x3F] +
|
|
6399
|
+
lookup[num >> 6 & 0x3F] +
|
|
6400
|
+
lookup[num & 0x3F]
|
|
6401
|
+
}
|
|
6402
|
+
|
|
6403
|
+
function encodeChunk (uint8, start, end) {
|
|
6404
|
+
var tmp
|
|
6405
|
+
var output = []
|
|
6406
|
+
for (var i = start; i < end; i += 3) {
|
|
6407
|
+
tmp =
|
|
6408
|
+
((uint8[i] << 16) & 0xFF0000) +
|
|
6409
|
+
((uint8[i + 1] << 8) & 0xFF00) +
|
|
6410
|
+
(uint8[i + 2] & 0xFF)
|
|
6411
|
+
output.push(tripletToBase64(tmp))
|
|
6412
|
+
}
|
|
6413
|
+
return output.join('')
|
|
6414
|
+
}
|
|
6415
|
+
|
|
6416
|
+
function fromByteArray (uint8) {
|
|
6417
|
+
var tmp
|
|
6418
|
+
var len = uint8.length
|
|
6419
|
+
var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes
|
|
6420
|
+
var parts = []
|
|
6421
|
+
var maxChunkLength = 16383 // must be multiple of 3
|
|
6422
|
+
|
|
6423
|
+
// go through the array every three bytes, we'll deal with trailing stuff later
|
|
6424
|
+
for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {
|
|
6425
|
+
parts.push(encodeChunk(uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength)))
|
|
6426
|
+
}
|
|
6427
|
+
|
|
6428
|
+
// pad the end with zeros, but make sure to not forget the extra bytes
|
|
6429
|
+
if (extraBytes === 1) {
|
|
6430
|
+
tmp = uint8[len - 1]
|
|
6431
|
+
parts.push(
|
|
6432
|
+
lookup[tmp >> 2] +
|
|
6433
|
+
lookup[(tmp << 4) & 0x3F] +
|
|
6434
|
+
'=='
|
|
6435
|
+
)
|
|
6436
|
+
} else if (extraBytes === 2) {
|
|
6437
|
+
tmp = (uint8[len - 2] << 8) + uint8[len - 1]
|
|
6438
|
+
parts.push(
|
|
6439
|
+
lookup[tmp >> 10] +
|
|
6440
|
+
lookup[(tmp >> 4) & 0x3F] +
|
|
6441
|
+
lookup[(tmp << 2) & 0x3F] +
|
|
6442
|
+
'='
|
|
6443
|
+
)
|
|
6444
|
+
}
|
|
6445
|
+
|
|
6446
|
+
return parts.join('')
|
|
6447
|
+
}
|
|
6448
|
+
|
|
6449
|
+
|
|
6292
6450
|
/***/ }),
|
|
6293
6451
|
|
|
6294
6452
|
/***/ 55924:
|
|
@@ -8485,6 +8643,2121 @@ var __WEBPACK_AMD_DEFINE_RESULT__;/*
|
|
|
8485
8643
|
})()
|
|
8486
8644
|
|
|
8487
8645
|
|
|
8646
|
+
/***/ }),
|
|
8647
|
+
|
|
8648
|
+
/***/ 48764:
|
|
8649
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
8650
|
+
|
|
8651
|
+
"use strict";
|
|
8652
|
+
var __webpack_unused_export__;
|
|
8653
|
+
/*!
|
|
8654
|
+
* The buffer module from node.js, for the browser.
|
|
8655
|
+
*
|
|
8656
|
+
* @author Feross Aboukhadijeh <https://feross.org>
|
|
8657
|
+
* @license MIT
|
|
8658
|
+
*/
|
|
8659
|
+
/* eslint-disable no-proto */
|
|
8660
|
+
|
|
8661
|
+
|
|
8662
|
+
|
|
8663
|
+
const base64 = __webpack_require__(79742)
|
|
8664
|
+
const ieee754 = __webpack_require__(80645)
|
|
8665
|
+
const customInspectSymbol =
|
|
8666
|
+
(typeof Symbol === 'function' && typeof Symbol['for'] === 'function') // eslint-disable-line dot-notation
|
|
8667
|
+
? Symbol['for']('nodejs.util.inspect.custom') // eslint-disable-line dot-notation
|
|
8668
|
+
: null
|
|
8669
|
+
|
|
8670
|
+
exports.lW = Buffer
|
|
8671
|
+
__webpack_unused_export__ = SlowBuffer
|
|
8672
|
+
exports.h2 = 50
|
|
8673
|
+
|
|
8674
|
+
const K_MAX_LENGTH = 0x7fffffff
|
|
8675
|
+
__webpack_unused_export__ = K_MAX_LENGTH
|
|
8676
|
+
|
|
8677
|
+
/**
|
|
8678
|
+
* If `Buffer.TYPED_ARRAY_SUPPORT`:
|
|
8679
|
+
* === true Use Uint8Array implementation (fastest)
|
|
8680
|
+
* === false Print warning and recommend using `buffer` v4.x which has an Object
|
|
8681
|
+
* implementation (most compatible, even IE6)
|
|
8682
|
+
*
|
|
8683
|
+
* Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,
|
|
8684
|
+
* Opera 11.6+, iOS 4.2+.
|
|
8685
|
+
*
|
|
8686
|
+
* We report that the browser does not support typed arrays if the are not subclassable
|
|
8687
|
+
* using __proto__. Firefox 4-29 lacks support for adding new properties to `Uint8Array`
|
|
8688
|
+
* (See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438). IE 10 lacks support
|
|
8689
|
+
* for __proto__ and has a buggy typed array implementation.
|
|
8690
|
+
*/
|
|
8691
|
+
Buffer.TYPED_ARRAY_SUPPORT = typedArraySupport()
|
|
8692
|
+
|
|
8693
|
+
if (!Buffer.TYPED_ARRAY_SUPPORT && typeof console !== 'undefined' &&
|
|
8694
|
+
typeof console.error === 'function') {
|
|
8695
|
+
console.error(
|
|
8696
|
+
'This browser lacks typed array (Uint8Array) support which is required by ' +
|
|
8697
|
+
'`buffer` v5.x. Use `buffer` v4.x if you require old browser support.'
|
|
8698
|
+
)
|
|
8699
|
+
}
|
|
8700
|
+
|
|
8701
|
+
function typedArraySupport () {
|
|
8702
|
+
// Can typed array instances can be augmented?
|
|
8703
|
+
try {
|
|
8704
|
+
const arr = new Uint8Array(1)
|
|
8705
|
+
const proto = { foo: function () { return 42 } }
|
|
8706
|
+
Object.setPrototypeOf(proto, Uint8Array.prototype)
|
|
8707
|
+
Object.setPrototypeOf(arr, proto)
|
|
8708
|
+
return arr.foo() === 42
|
|
8709
|
+
} catch (e) {
|
|
8710
|
+
return false
|
|
8711
|
+
}
|
|
8712
|
+
}
|
|
8713
|
+
|
|
8714
|
+
Object.defineProperty(Buffer.prototype, 'parent', {
|
|
8715
|
+
enumerable: true,
|
|
8716
|
+
get: function () {
|
|
8717
|
+
if (!Buffer.isBuffer(this)) return undefined
|
|
8718
|
+
return this.buffer
|
|
8719
|
+
}
|
|
8720
|
+
})
|
|
8721
|
+
|
|
8722
|
+
Object.defineProperty(Buffer.prototype, 'offset', {
|
|
8723
|
+
enumerable: true,
|
|
8724
|
+
get: function () {
|
|
8725
|
+
if (!Buffer.isBuffer(this)) return undefined
|
|
8726
|
+
return this.byteOffset
|
|
8727
|
+
}
|
|
8728
|
+
})
|
|
8729
|
+
|
|
8730
|
+
function createBuffer (length) {
|
|
8731
|
+
if (length > K_MAX_LENGTH) {
|
|
8732
|
+
throw new RangeError('The value "' + length + '" is invalid for option "size"')
|
|
8733
|
+
}
|
|
8734
|
+
// Return an augmented `Uint8Array` instance
|
|
8735
|
+
const buf = new Uint8Array(length)
|
|
8736
|
+
Object.setPrototypeOf(buf, Buffer.prototype)
|
|
8737
|
+
return buf
|
|
8738
|
+
}
|
|
8739
|
+
|
|
8740
|
+
/**
|
|
8741
|
+
* The Buffer constructor returns instances of `Uint8Array` that have their
|
|
8742
|
+
* prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of
|
|
8743
|
+
* `Uint8Array`, so the returned instances will have all the node `Buffer` methods
|
|
8744
|
+
* and the `Uint8Array` methods. Square bracket notation works as expected -- it
|
|
8745
|
+
* returns a single octet.
|
|
8746
|
+
*
|
|
8747
|
+
* The `Uint8Array` prototype remains unmodified.
|
|
8748
|
+
*/
|
|
8749
|
+
|
|
8750
|
+
function Buffer (arg, encodingOrOffset, length) {
|
|
8751
|
+
// Common case.
|
|
8752
|
+
if (typeof arg === 'number') {
|
|
8753
|
+
if (typeof encodingOrOffset === 'string') {
|
|
8754
|
+
throw new TypeError(
|
|
8755
|
+
'The "string" argument must be of type string. Received type number'
|
|
8756
|
+
)
|
|
8757
|
+
}
|
|
8758
|
+
return allocUnsafe(arg)
|
|
8759
|
+
}
|
|
8760
|
+
return from(arg, encodingOrOffset, length)
|
|
8761
|
+
}
|
|
8762
|
+
|
|
8763
|
+
Buffer.poolSize = 8192 // not used by this implementation
|
|
8764
|
+
|
|
8765
|
+
function from (value, encodingOrOffset, length) {
|
|
8766
|
+
if (typeof value === 'string') {
|
|
8767
|
+
return fromString(value, encodingOrOffset)
|
|
8768
|
+
}
|
|
8769
|
+
|
|
8770
|
+
if (ArrayBuffer.isView(value)) {
|
|
8771
|
+
return fromArrayView(value)
|
|
8772
|
+
}
|
|
8773
|
+
|
|
8774
|
+
if (value == null) {
|
|
8775
|
+
throw new TypeError(
|
|
8776
|
+
'The first argument must be one of type string, Buffer, ArrayBuffer, Array, ' +
|
|
8777
|
+
'or Array-like Object. Received type ' + (typeof value)
|
|
8778
|
+
)
|
|
8779
|
+
}
|
|
8780
|
+
|
|
8781
|
+
if (isInstance(value, ArrayBuffer) ||
|
|
8782
|
+
(value && isInstance(value.buffer, ArrayBuffer))) {
|
|
8783
|
+
return fromArrayBuffer(value, encodingOrOffset, length)
|
|
8784
|
+
}
|
|
8785
|
+
|
|
8786
|
+
if (typeof SharedArrayBuffer !== 'undefined' &&
|
|
8787
|
+
(isInstance(value, SharedArrayBuffer) ||
|
|
8788
|
+
(value && isInstance(value.buffer, SharedArrayBuffer)))) {
|
|
8789
|
+
return fromArrayBuffer(value, encodingOrOffset, length)
|
|
8790
|
+
}
|
|
8791
|
+
|
|
8792
|
+
if (typeof value === 'number') {
|
|
8793
|
+
throw new TypeError(
|
|
8794
|
+
'The "value" argument must not be of type number. Received type number'
|
|
8795
|
+
)
|
|
8796
|
+
}
|
|
8797
|
+
|
|
8798
|
+
const valueOf = value.valueOf && value.valueOf()
|
|
8799
|
+
if (valueOf != null && valueOf !== value) {
|
|
8800
|
+
return Buffer.from(valueOf, encodingOrOffset, length)
|
|
8801
|
+
}
|
|
8802
|
+
|
|
8803
|
+
const b = fromObject(value)
|
|
8804
|
+
if (b) return b
|
|
8805
|
+
|
|
8806
|
+
if (typeof Symbol !== 'undefined' && Symbol.toPrimitive != null &&
|
|
8807
|
+
typeof value[Symbol.toPrimitive] === 'function') {
|
|
8808
|
+
return Buffer.from(value[Symbol.toPrimitive]('string'), encodingOrOffset, length)
|
|
8809
|
+
}
|
|
8810
|
+
|
|
8811
|
+
throw new TypeError(
|
|
8812
|
+
'The first argument must be one of type string, Buffer, ArrayBuffer, Array, ' +
|
|
8813
|
+
'or Array-like Object. Received type ' + (typeof value)
|
|
8814
|
+
)
|
|
8815
|
+
}
|
|
8816
|
+
|
|
8817
|
+
/**
|
|
8818
|
+
* Functionally equivalent to Buffer(arg, encoding) but throws a TypeError
|
|
8819
|
+
* if value is a number.
|
|
8820
|
+
* Buffer.from(str[, encoding])
|
|
8821
|
+
* Buffer.from(array)
|
|
8822
|
+
* Buffer.from(buffer)
|
|
8823
|
+
* Buffer.from(arrayBuffer[, byteOffset[, length]])
|
|
8824
|
+
**/
|
|
8825
|
+
Buffer.from = function (value, encodingOrOffset, length) {
|
|
8826
|
+
return from(value, encodingOrOffset, length)
|
|
8827
|
+
}
|
|
8828
|
+
|
|
8829
|
+
// Note: Change prototype *after* Buffer.from is defined to workaround Chrome bug:
|
|
8830
|
+
// https://github.com/feross/buffer/pull/148
|
|
8831
|
+
Object.setPrototypeOf(Buffer.prototype, Uint8Array.prototype)
|
|
8832
|
+
Object.setPrototypeOf(Buffer, Uint8Array)
|
|
8833
|
+
|
|
8834
|
+
function assertSize (size) {
|
|
8835
|
+
if (typeof size !== 'number') {
|
|
8836
|
+
throw new TypeError('"size" argument must be of type number')
|
|
8837
|
+
} else if (size < 0) {
|
|
8838
|
+
throw new RangeError('The value "' + size + '" is invalid for option "size"')
|
|
8839
|
+
}
|
|
8840
|
+
}
|
|
8841
|
+
|
|
8842
|
+
function alloc (size, fill, encoding) {
|
|
8843
|
+
assertSize(size)
|
|
8844
|
+
if (size <= 0) {
|
|
8845
|
+
return createBuffer(size)
|
|
8846
|
+
}
|
|
8847
|
+
if (fill !== undefined) {
|
|
8848
|
+
// Only pay attention to encoding if it's a string. This
|
|
8849
|
+
// prevents accidentally sending in a number that would
|
|
8850
|
+
// be interpreted as a start offset.
|
|
8851
|
+
return typeof encoding === 'string'
|
|
8852
|
+
? createBuffer(size).fill(fill, encoding)
|
|
8853
|
+
: createBuffer(size).fill(fill)
|
|
8854
|
+
}
|
|
8855
|
+
return createBuffer(size)
|
|
8856
|
+
}
|
|
8857
|
+
|
|
8858
|
+
/**
|
|
8859
|
+
* Creates a new filled Buffer instance.
|
|
8860
|
+
* alloc(size[, fill[, encoding]])
|
|
8861
|
+
**/
|
|
8862
|
+
Buffer.alloc = function (size, fill, encoding) {
|
|
8863
|
+
return alloc(size, fill, encoding)
|
|
8864
|
+
}
|
|
8865
|
+
|
|
8866
|
+
function allocUnsafe (size) {
|
|
8867
|
+
assertSize(size)
|
|
8868
|
+
return createBuffer(size < 0 ? 0 : checked(size) | 0)
|
|
8869
|
+
}
|
|
8870
|
+
|
|
8871
|
+
/**
|
|
8872
|
+
* Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.
|
|
8873
|
+
* */
|
|
8874
|
+
Buffer.allocUnsafe = function (size) {
|
|
8875
|
+
return allocUnsafe(size)
|
|
8876
|
+
}
|
|
8877
|
+
/**
|
|
8878
|
+
* Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance.
|
|
8879
|
+
*/
|
|
8880
|
+
Buffer.allocUnsafeSlow = function (size) {
|
|
8881
|
+
return allocUnsafe(size)
|
|
8882
|
+
}
|
|
8883
|
+
|
|
8884
|
+
function fromString (string, encoding) {
|
|
8885
|
+
if (typeof encoding !== 'string' || encoding === '') {
|
|
8886
|
+
encoding = 'utf8'
|
|
8887
|
+
}
|
|
8888
|
+
|
|
8889
|
+
if (!Buffer.isEncoding(encoding)) {
|
|
8890
|
+
throw new TypeError('Unknown encoding: ' + encoding)
|
|
8891
|
+
}
|
|
8892
|
+
|
|
8893
|
+
const length = byteLength(string, encoding) | 0
|
|
8894
|
+
let buf = createBuffer(length)
|
|
8895
|
+
|
|
8896
|
+
const actual = buf.write(string, encoding)
|
|
8897
|
+
|
|
8898
|
+
if (actual !== length) {
|
|
8899
|
+
// Writing a hex string, for example, that contains invalid characters will
|
|
8900
|
+
// cause everything after the first invalid character to be ignored. (e.g.
|
|
8901
|
+
// 'abxxcd' will be treated as 'ab')
|
|
8902
|
+
buf = buf.slice(0, actual)
|
|
8903
|
+
}
|
|
8904
|
+
|
|
8905
|
+
return buf
|
|
8906
|
+
}
|
|
8907
|
+
|
|
8908
|
+
function fromArrayLike (array) {
|
|
8909
|
+
const length = array.length < 0 ? 0 : checked(array.length) | 0
|
|
8910
|
+
const buf = createBuffer(length)
|
|
8911
|
+
for (let i = 0; i < length; i += 1) {
|
|
8912
|
+
buf[i] = array[i] & 255
|
|
8913
|
+
}
|
|
8914
|
+
return buf
|
|
8915
|
+
}
|
|
8916
|
+
|
|
8917
|
+
function fromArrayView (arrayView) {
|
|
8918
|
+
if (isInstance(arrayView, Uint8Array)) {
|
|
8919
|
+
const copy = new Uint8Array(arrayView)
|
|
8920
|
+
return fromArrayBuffer(copy.buffer, copy.byteOffset, copy.byteLength)
|
|
8921
|
+
}
|
|
8922
|
+
return fromArrayLike(arrayView)
|
|
8923
|
+
}
|
|
8924
|
+
|
|
8925
|
+
function fromArrayBuffer (array, byteOffset, length) {
|
|
8926
|
+
if (byteOffset < 0 || array.byteLength < byteOffset) {
|
|
8927
|
+
throw new RangeError('"offset" is outside of buffer bounds')
|
|
8928
|
+
}
|
|
8929
|
+
|
|
8930
|
+
if (array.byteLength < byteOffset + (length || 0)) {
|
|
8931
|
+
throw new RangeError('"length" is outside of buffer bounds')
|
|
8932
|
+
}
|
|
8933
|
+
|
|
8934
|
+
let buf
|
|
8935
|
+
if (byteOffset === undefined && length === undefined) {
|
|
8936
|
+
buf = new Uint8Array(array)
|
|
8937
|
+
} else if (length === undefined) {
|
|
8938
|
+
buf = new Uint8Array(array, byteOffset)
|
|
8939
|
+
} else {
|
|
8940
|
+
buf = new Uint8Array(array, byteOffset, length)
|
|
8941
|
+
}
|
|
8942
|
+
|
|
8943
|
+
// Return an augmented `Uint8Array` instance
|
|
8944
|
+
Object.setPrototypeOf(buf, Buffer.prototype)
|
|
8945
|
+
|
|
8946
|
+
return buf
|
|
8947
|
+
}
|
|
8948
|
+
|
|
8949
|
+
function fromObject (obj) {
|
|
8950
|
+
if (Buffer.isBuffer(obj)) {
|
|
8951
|
+
const len = checked(obj.length) | 0
|
|
8952
|
+
const buf = createBuffer(len)
|
|
8953
|
+
|
|
8954
|
+
if (buf.length === 0) {
|
|
8955
|
+
return buf
|
|
8956
|
+
}
|
|
8957
|
+
|
|
8958
|
+
obj.copy(buf, 0, 0, len)
|
|
8959
|
+
return buf
|
|
8960
|
+
}
|
|
8961
|
+
|
|
8962
|
+
if (obj.length !== undefined) {
|
|
8963
|
+
if (typeof obj.length !== 'number' || numberIsNaN(obj.length)) {
|
|
8964
|
+
return createBuffer(0)
|
|
8965
|
+
}
|
|
8966
|
+
return fromArrayLike(obj)
|
|
8967
|
+
}
|
|
8968
|
+
|
|
8969
|
+
if (obj.type === 'Buffer' && Array.isArray(obj.data)) {
|
|
8970
|
+
return fromArrayLike(obj.data)
|
|
8971
|
+
}
|
|
8972
|
+
}
|
|
8973
|
+
|
|
8974
|
+
function checked (length) {
|
|
8975
|
+
// Note: cannot use `length < K_MAX_LENGTH` here because that fails when
|
|
8976
|
+
// length is NaN (which is otherwise coerced to zero.)
|
|
8977
|
+
if (length >= K_MAX_LENGTH) {
|
|
8978
|
+
throw new RangeError('Attempt to allocate Buffer larger than maximum ' +
|
|
8979
|
+
'size: 0x' + K_MAX_LENGTH.toString(16) + ' bytes')
|
|
8980
|
+
}
|
|
8981
|
+
return length | 0
|
|
8982
|
+
}
|
|
8983
|
+
|
|
8984
|
+
function SlowBuffer (length) {
|
|
8985
|
+
if (+length != length) { // eslint-disable-line eqeqeq
|
|
8986
|
+
length = 0
|
|
8987
|
+
}
|
|
8988
|
+
return Buffer.alloc(+length)
|
|
8989
|
+
}
|
|
8990
|
+
|
|
8991
|
+
Buffer.isBuffer = function isBuffer (b) {
|
|
8992
|
+
return b != null && b._isBuffer === true &&
|
|
8993
|
+
b !== Buffer.prototype // so Buffer.isBuffer(Buffer.prototype) will be false
|
|
8994
|
+
}
|
|
8995
|
+
|
|
8996
|
+
Buffer.compare = function compare (a, b) {
|
|
8997
|
+
if (isInstance(a, Uint8Array)) a = Buffer.from(a, a.offset, a.byteLength)
|
|
8998
|
+
if (isInstance(b, Uint8Array)) b = Buffer.from(b, b.offset, b.byteLength)
|
|
8999
|
+
if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {
|
|
9000
|
+
throw new TypeError(
|
|
9001
|
+
'The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array'
|
|
9002
|
+
)
|
|
9003
|
+
}
|
|
9004
|
+
|
|
9005
|
+
if (a === b) return 0
|
|
9006
|
+
|
|
9007
|
+
let x = a.length
|
|
9008
|
+
let y = b.length
|
|
9009
|
+
|
|
9010
|
+
for (let i = 0, len = Math.min(x, y); i < len; ++i) {
|
|
9011
|
+
if (a[i] !== b[i]) {
|
|
9012
|
+
x = a[i]
|
|
9013
|
+
y = b[i]
|
|
9014
|
+
break
|
|
9015
|
+
}
|
|
9016
|
+
}
|
|
9017
|
+
|
|
9018
|
+
if (x < y) return -1
|
|
9019
|
+
if (y < x) return 1
|
|
9020
|
+
return 0
|
|
9021
|
+
}
|
|
9022
|
+
|
|
9023
|
+
Buffer.isEncoding = function isEncoding (encoding) {
|
|
9024
|
+
switch (String(encoding).toLowerCase()) {
|
|
9025
|
+
case 'hex':
|
|
9026
|
+
case 'utf8':
|
|
9027
|
+
case 'utf-8':
|
|
9028
|
+
case 'ascii':
|
|
9029
|
+
case 'latin1':
|
|
9030
|
+
case 'binary':
|
|
9031
|
+
case 'base64':
|
|
9032
|
+
case 'ucs2':
|
|
9033
|
+
case 'ucs-2':
|
|
9034
|
+
case 'utf16le':
|
|
9035
|
+
case 'utf-16le':
|
|
9036
|
+
return true
|
|
9037
|
+
default:
|
|
9038
|
+
return false
|
|
9039
|
+
}
|
|
9040
|
+
}
|
|
9041
|
+
|
|
9042
|
+
Buffer.concat = function concat (list, length) {
|
|
9043
|
+
if (!Array.isArray(list)) {
|
|
9044
|
+
throw new TypeError('"list" argument must be an Array of Buffers')
|
|
9045
|
+
}
|
|
9046
|
+
|
|
9047
|
+
if (list.length === 0) {
|
|
9048
|
+
return Buffer.alloc(0)
|
|
9049
|
+
}
|
|
9050
|
+
|
|
9051
|
+
let i
|
|
9052
|
+
if (length === undefined) {
|
|
9053
|
+
length = 0
|
|
9054
|
+
for (i = 0; i < list.length; ++i) {
|
|
9055
|
+
length += list[i].length
|
|
9056
|
+
}
|
|
9057
|
+
}
|
|
9058
|
+
|
|
9059
|
+
const buffer = Buffer.allocUnsafe(length)
|
|
9060
|
+
let pos = 0
|
|
9061
|
+
for (i = 0; i < list.length; ++i) {
|
|
9062
|
+
let buf = list[i]
|
|
9063
|
+
if (isInstance(buf, Uint8Array)) {
|
|
9064
|
+
if (pos + buf.length > buffer.length) {
|
|
9065
|
+
if (!Buffer.isBuffer(buf)) buf = Buffer.from(buf)
|
|
9066
|
+
buf.copy(buffer, pos)
|
|
9067
|
+
} else {
|
|
9068
|
+
Uint8Array.prototype.set.call(
|
|
9069
|
+
buffer,
|
|
9070
|
+
buf,
|
|
9071
|
+
pos
|
|
9072
|
+
)
|
|
9073
|
+
}
|
|
9074
|
+
} else if (!Buffer.isBuffer(buf)) {
|
|
9075
|
+
throw new TypeError('"list" argument must be an Array of Buffers')
|
|
9076
|
+
} else {
|
|
9077
|
+
buf.copy(buffer, pos)
|
|
9078
|
+
}
|
|
9079
|
+
pos += buf.length
|
|
9080
|
+
}
|
|
9081
|
+
return buffer
|
|
9082
|
+
}
|
|
9083
|
+
|
|
9084
|
+
function byteLength (string, encoding) {
|
|
9085
|
+
if (Buffer.isBuffer(string)) {
|
|
9086
|
+
return string.length
|
|
9087
|
+
}
|
|
9088
|
+
if (ArrayBuffer.isView(string) || isInstance(string, ArrayBuffer)) {
|
|
9089
|
+
return string.byteLength
|
|
9090
|
+
}
|
|
9091
|
+
if (typeof string !== 'string') {
|
|
9092
|
+
throw new TypeError(
|
|
9093
|
+
'The "string" argument must be one of type string, Buffer, or ArrayBuffer. ' +
|
|
9094
|
+
'Received type ' + typeof string
|
|
9095
|
+
)
|
|
9096
|
+
}
|
|
9097
|
+
|
|
9098
|
+
const len = string.length
|
|
9099
|
+
const mustMatch = (arguments.length > 2 && arguments[2] === true)
|
|
9100
|
+
if (!mustMatch && len === 0) return 0
|
|
9101
|
+
|
|
9102
|
+
// Use a for loop to avoid recursion
|
|
9103
|
+
let loweredCase = false
|
|
9104
|
+
for (;;) {
|
|
9105
|
+
switch (encoding) {
|
|
9106
|
+
case 'ascii':
|
|
9107
|
+
case 'latin1':
|
|
9108
|
+
case 'binary':
|
|
9109
|
+
return len
|
|
9110
|
+
case 'utf8':
|
|
9111
|
+
case 'utf-8':
|
|
9112
|
+
return utf8ToBytes(string).length
|
|
9113
|
+
case 'ucs2':
|
|
9114
|
+
case 'ucs-2':
|
|
9115
|
+
case 'utf16le':
|
|
9116
|
+
case 'utf-16le':
|
|
9117
|
+
return len * 2
|
|
9118
|
+
case 'hex':
|
|
9119
|
+
return len >>> 1
|
|
9120
|
+
case 'base64':
|
|
9121
|
+
return base64ToBytes(string).length
|
|
9122
|
+
default:
|
|
9123
|
+
if (loweredCase) {
|
|
9124
|
+
return mustMatch ? -1 : utf8ToBytes(string).length // assume utf8
|
|
9125
|
+
}
|
|
9126
|
+
encoding = ('' + encoding).toLowerCase()
|
|
9127
|
+
loweredCase = true
|
|
9128
|
+
}
|
|
9129
|
+
}
|
|
9130
|
+
}
|
|
9131
|
+
Buffer.byteLength = byteLength
|
|
9132
|
+
|
|
9133
|
+
function slowToString (encoding, start, end) {
|
|
9134
|
+
let loweredCase = false
|
|
9135
|
+
|
|
9136
|
+
// No need to verify that "this.length <= MAX_UINT32" since it's a read-only
|
|
9137
|
+
// property of a typed array.
|
|
9138
|
+
|
|
9139
|
+
// This behaves neither like String nor Uint8Array in that we set start/end
|
|
9140
|
+
// to their upper/lower bounds if the value passed is out of range.
|
|
9141
|
+
// undefined is handled specially as per ECMA-262 6th Edition,
|
|
9142
|
+
// Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization.
|
|
9143
|
+
if (start === undefined || start < 0) {
|
|
9144
|
+
start = 0
|
|
9145
|
+
}
|
|
9146
|
+
// Return early if start > this.length. Done here to prevent potential uint32
|
|
9147
|
+
// coercion fail below.
|
|
9148
|
+
if (start > this.length) {
|
|
9149
|
+
return ''
|
|
9150
|
+
}
|
|
9151
|
+
|
|
9152
|
+
if (end === undefined || end > this.length) {
|
|
9153
|
+
end = this.length
|
|
9154
|
+
}
|
|
9155
|
+
|
|
9156
|
+
if (end <= 0) {
|
|
9157
|
+
return ''
|
|
9158
|
+
}
|
|
9159
|
+
|
|
9160
|
+
// Force coercion to uint32. This will also coerce falsey/NaN values to 0.
|
|
9161
|
+
end >>>= 0
|
|
9162
|
+
start >>>= 0
|
|
9163
|
+
|
|
9164
|
+
if (end <= start) {
|
|
9165
|
+
return ''
|
|
9166
|
+
}
|
|
9167
|
+
|
|
9168
|
+
if (!encoding) encoding = 'utf8'
|
|
9169
|
+
|
|
9170
|
+
while (true) {
|
|
9171
|
+
switch (encoding) {
|
|
9172
|
+
case 'hex':
|
|
9173
|
+
return hexSlice(this, start, end)
|
|
9174
|
+
|
|
9175
|
+
case 'utf8':
|
|
9176
|
+
case 'utf-8':
|
|
9177
|
+
return utf8Slice(this, start, end)
|
|
9178
|
+
|
|
9179
|
+
case 'ascii':
|
|
9180
|
+
return asciiSlice(this, start, end)
|
|
9181
|
+
|
|
9182
|
+
case 'latin1':
|
|
9183
|
+
case 'binary':
|
|
9184
|
+
return latin1Slice(this, start, end)
|
|
9185
|
+
|
|
9186
|
+
case 'base64':
|
|
9187
|
+
return base64Slice(this, start, end)
|
|
9188
|
+
|
|
9189
|
+
case 'ucs2':
|
|
9190
|
+
case 'ucs-2':
|
|
9191
|
+
case 'utf16le':
|
|
9192
|
+
case 'utf-16le':
|
|
9193
|
+
return utf16leSlice(this, start, end)
|
|
9194
|
+
|
|
9195
|
+
default:
|
|
9196
|
+
if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)
|
|
9197
|
+
encoding = (encoding + '').toLowerCase()
|
|
9198
|
+
loweredCase = true
|
|
9199
|
+
}
|
|
9200
|
+
}
|
|
9201
|
+
}
|
|
9202
|
+
|
|
9203
|
+
// This property is used by `Buffer.isBuffer` (and the `is-buffer` npm package)
|
|
9204
|
+
// to detect a Buffer instance. It's not possible to use `instanceof Buffer`
|
|
9205
|
+
// reliably in a browserify context because there could be multiple different
|
|
9206
|
+
// copies of the 'buffer' package in use. This method works even for Buffer
|
|
9207
|
+
// instances that were created from another copy of the `buffer` package.
|
|
9208
|
+
// See: https://github.com/feross/buffer/issues/154
|
|
9209
|
+
Buffer.prototype._isBuffer = true
|
|
9210
|
+
|
|
9211
|
+
function swap (b, n, m) {
|
|
9212
|
+
const i = b[n]
|
|
9213
|
+
b[n] = b[m]
|
|
9214
|
+
b[m] = i
|
|
9215
|
+
}
|
|
9216
|
+
|
|
9217
|
+
Buffer.prototype.swap16 = function swap16 () {
|
|
9218
|
+
const len = this.length
|
|
9219
|
+
if (len % 2 !== 0) {
|
|
9220
|
+
throw new RangeError('Buffer size must be a multiple of 16-bits')
|
|
9221
|
+
}
|
|
9222
|
+
for (let i = 0; i < len; i += 2) {
|
|
9223
|
+
swap(this, i, i + 1)
|
|
9224
|
+
}
|
|
9225
|
+
return this
|
|
9226
|
+
}
|
|
9227
|
+
|
|
9228
|
+
Buffer.prototype.swap32 = function swap32 () {
|
|
9229
|
+
const len = this.length
|
|
9230
|
+
if (len % 4 !== 0) {
|
|
9231
|
+
throw new RangeError('Buffer size must be a multiple of 32-bits')
|
|
9232
|
+
}
|
|
9233
|
+
for (let i = 0; i < len; i += 4) {
|
|
9234
|
+
swap(this, i, i + 3)
|
|
9235
|
+
swap(this, i + 1, i + 2)
|
|
9236
|
+
}
|
|
9237
|
+
return this
|
|
9238
|
+
}
|
|
9239
|
+
|
|
9240
|
+
Buffer.prototype.swap64 = function swap64 () {
|
|
9241
|
+
const len = this.length
|
|
9242
|
+
if (len % 8 !== 0) {
|
|
9243
|
+
throw new RangeError('Buffer size must be a multiple of 64-bits')
|
|
9244
|
+
}
|
|
9245
|
+
for (let i = 0; i < len; i += 8) {
|
|
9246
|
+
swap(this, i, i + 7)
|
|
9247
|
+
swap(this, i + 1, i + 6)
|
|
9248
|
+
swap(this, i + 2, i + 5)
|
|
9249
|
+
swap(this, i + 3, i + 4)
|
|
9250
|
+
}
|
|
9251
|
+
return this
|
|
9252
|
+
}
|
|
9253
|
+
|
|
9254
|
+
Buffer.prototype.toString = function toString () {
|
|
9255
|
+
const length = this.length
|
|
9256
|
+
if (length === 0) return ''
|
|
9257
|
+
if (arguments.length === 0) return utf8Slice(this, 0, length)
|
|
9258
|
+
return slowToString.apply(this, arguments)
|
|
9259
|
+
}
|
|
9260
|
+
|
|
9261
|
+
Buffer.prototype.toLocaleString = Buffer.prototype.toString
|
|
9262
|
+
|
|
9263
|
+
Buffer.prototype.equals = function equals (b) {
|
|
9264
|
+
if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')
|
|
9265
|
+
if (this === b) return true
|
|
9266
|
+
return Buffer.compare(this, b) === 0
|
|
9267
|
+
}
|
|
9268
|
+
|
|
9269
|
+
Buffer.prototype.inspect = function inspect () {
|
|
9270
|
+
let str = ''
|
|
9271
|
+
const max = exports.h2
|
|
9272
|
+
str = this.toString('hex', 0, max).replace(/(.{2})/g, '$1 ').trim()
|
|
9273
|
+
if (this.length > max) str += ' ... '
|
|
9274
|
+
return '<Buffer ' + str + '>'
|
|
9275
|
+
}
|
|
9276
|
+
if (customInspectSymbol) {
|
|
9277
|
+
Buffer.prototype[customInspectSymbol] = Buffer.prototype.inspect
|
|
9278
|
+
}
|
|
9279
|
+
|
|
9280
|
+
Buffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {
|
|
9281
|
+
if (isInstance(target, Uint8Array)) {
|
|
9282
|
+
target = Buffer.from(target, target.offset, target.byteLength)
|
|
9283
|
+
}
|
|
9284
|
+
if (!Buffer.isBuffer(target)) {
|
|
9285
|
+
throw new TypeError(
|
|
9286
|
+
'The "target" argument must be one of type Buffer or Uint8Array. ' +
|
|
9287
|
+
'Received type ' + (typeof target)
|
|
9288
|
+
)
|
|
9289
|
+
}
|
|
9290
|
+
|
|
9291
|
+
if (start === undefined) {
|
|
9292
|
+
start = 0
|
|
9293
|
+
}
|
|
9294
|
+
if (end === undefined) {
|
|
9295
|
+
end = target ? target.length : 0
|
|
9296
|
+
}
|
|
9297
|
+
if (thisStart === undefined) {
|
|
9298
|
+
thisStart = 0
|
|
9299
|
+
}
|
|
9300
|
+
if (thisEnd === undefined) {
|
|
9301
|
+
thisEnd = this.length
|
|
9302
|
+
}
|
|
9303
|
+
|
|
9304
|
+
if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) {
|
|
9305
|
+
throw new RangeError('out of range index')
|
|
9306
|
+
}
|
|
9307
|
+
|
|
9308
|
+
if (thisStart >= thisEnd && start >= end) {
|
|
9309
|
+
return 0
|
|
9310
|
+
}
|
|
9311
|
+
if (thisStart >= thisEnd) {
|
|
9312
|
+
return -1
|
|
9313
|
+
}
|
|
9314
|
+
if (start >= end) {
|
|
9315
|
+
return 1
|
|
9316
|
+
}
|
|
9317
|
+
|
|
9318
|
+
start >>>= 0
|
|
9319
|
+
end >>>= 0
|
|
9320
|
+
thisStart >>>= 0
|
|
9321
|
+
thisEnd >>>= 0
|
|
9322
|
+
|
|
9323
|
+
if (this === target) return 0
|
|
9324
|
+
|
|
9325
|
+
let x = thisEnd - thisStart
|
|
9326
|
+
let y = end - start
|
|
9327
|
+
const len = Math.min(x, y)
|
|
9328
|
+
|
|
9329
|
+
const thisCopy = this.slice(thisStart, thisEnd)
|
|
9330
|
+
const targetCopy = target.slice(start, end)
|
|
9331
|
+
|
|
9332
|
+
for (let i = 0; i < len; ++i) {
|
|
9333
|
+
if (thisCopy[i] !== targetCopy[i]) {
|
|
9334
|
+
x = thisCopy[i]
|
|
9335
|
+
y = targetCopy[i]
|
|
9336
|
+
break
|
|
9337
|
+
}
|
|
9338
|
+
}
|
|
9339
|
+
|
|
9340
|
+
if (x < y) return -1
|
|
9341
|
+
if (y < x) return 1
|
|
9342
|
+
return 0
|
|
9343
|
+
}
|
|
9344
|
+
|
|
9345
|
+
// Finds either the first index of `val` in `buffer` at offset >= `byteOffset`,
|
|
9346
|
+
// OR the last index of `val` in `buffer` at offset <= `byteOffset`.
|
|
9347
|
+
//
|
|
9348
|
+
// Arguments:
|
|
9349
|
+
// - buffer - a Buffer to search
|
|
9350
|
+
// - val - a string, Buffer, or number
|
|
9351
|
+
// - byteOffset - an index into `buffer`; will be clamped to an int32
|
|
9352
|
+
// - encoding - an optional encoding, relevant is val is a string
|
|
9353
|
+
// - dir - true for indexOf, false for lastIndexOf
|
|
9354
|
+
function bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {
|
|
9355
|
+
// Empty buffer means no match
|
|
9356
|
+
if (buffer.length === 0) return -1
|
|
9357
|
+
|
|
9358
|
+
// Normalize byteOffset
|
|
9359
|
+
if (typeof byteOffset === 'string') {
|
|
9360
|
+
encoding = byteOffset
|
|
9361
|
+
byteOffset = 0
|
|
9362
|
+
} else if (byteOffset > 0x7fffffff) {
|
|
9363
|
+
byteOffset = 0x7fffffff
|
|
9364
|
+
} else if (byteOffset < -0x80000000) {
|
|
9365
|
+
byteOffset = -0x80000000
|
|
9366
|
+
}
|
|
9367
|
+
byteOffset = +byteOffset // Coerce to Number.
|
|
9368
|
+
if (numberIsNaN(byteOffset)) {
|
|
9369
|
+
// byteOffset: it it's undefined, null, NaN, "foo", etc, search whole buffer
|
|
9370
|
+
byteOffset = dir ? 0 : (buffer.length - 1)
|
|
9371
|
+
}
|
|
9372
|
+
|
|
9373
|
+
// Normalize byteOffset: negative offsets start from the end of the buffer
|
|
9374
|
+
if (byteOffset < 0) byteOffset = buffer.length + byteOffset
|
|
9375
|
+
if (byteOffset >= buffer.length) {
|
|
9376
|
+
if (dir) return -1
|
|
9377
|
+
else byteOffset = buffer.length - 1
|
|
9378
|
+
} else if (byteOffset < 0) {
|
|
9379
|
+
if (dir) byteOffset = 0
|
|
9380
|
+
else return -1
|
|
9381
|
+
}
|
|
9382
|
+
|
|
9383
|
+
// Normalize val
|
|
9384
|
+
if (typeof val === 'string') {
|
|
9385
|
+
val = Buffer.from(val, encoding)
|
|
9386
|
+
}
|
|
9387
|
+
|
|
9388
|
+
// Finally, search either indexOf (if dir is true) or lastIndexOf
|
|
9389
|
+
if (Buffer.isBuffer(val)) {
|
|
9390
|
+
// Special case: looking for empty string/buffer always fails
|
|
9391
|
+
if (val.length === 0) {
|
|
9392
|
+
return -1
|
|
9393
|
+
}
|
|
9394
|
+
return arrayIndexOf(buffer, val, byteOffset, encoding, dir)
|
|
9395
|
+
} else if (typeof val === 'number') {
|
|
9396
|
+
val = val & 0xFF // Search for a byte value [0-255]
|
|
9397
|
+
if (typeof Uint8Array.prototype.indexOf === 'function') {
|
|
9398
|
+
if (dir) {
|
|
9399
|
+
return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset)
|
|
9400
|
+
} else {
|
|
9401
|
+
return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset)
|
|
9402
|
+
}
|
|
9403
|
+
}
|
|
9404
|
+
return arrayIndexOf(buffer, [val], byteOffset, encoding, dir)
|
|
9405
|
+
}
|
|
9406
|
+
|
|
9407
|
+
throw new TypeError('val must be string, number or Buffer')
|
|
9408
|
+
}
|
|
9409
|
+
|
|
9410
|
+
function arrayIndexOf (arr, val, byteOffset, encoding, dir) {
|
|
9411
|
+
let indexSize = 1
|
|
9412
|
+
let arrLength = arr.length
|
|
9413
|
+
let valLength = val.length
|
|
9414
|
+
|
|
9415
|
+
if (encoding !== undefined) {
|
|
9416
|
+
encoding = String(encoding).toLowerCase()
|
|
9417
|
+
if (encoding === 'ucs2' || encoding === 'ucs-2' ||
|
|
9418
|
+
encoding === 'utf16le' || encoding === 'utf-16le') {
|
|
9419
|
+
if (arr.length < 2 || val.length < 2) {
|
|
9420
|
+
return -1
|
|
9421
|
+
}
|
|
9422
|
+
indexSize = 2
|
|
9423
|
+
arrLength /= 2
|
|
9424
|
+
valLength /= 2
|
|
9425
|
+
byteOffset /= 2
|
|
9426
|
+
}
|
|
9427
|
+
}
|
|
9428
|
+
|
|
9429
|
+
function read (buf, i) {
|
|
9430
|
+
if (indexSize === 1) {
|
|
9431
|
+
return buf[i]
|
|
9432
|
+
} else {
|
|
9433
|
+
return buf.readUInt16BE(i * indexSize)
|
|
9434
|
+
}
|
|
9435
|
+
}
|
|
9436
|
+
|
|
9437
|
+
let i
|
|
9438
|
+
if (dir) {
|
|
9439
|
+
let foundIndex = -1
|
|
9440
|
+
for (i = byteOffset; i < arrLength; i++) {
|
|
9441
|
+
if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {
|
|
9442
|
+
if (foundIndex === -1) foundIndex = i
|
|
9443
|
+
if (i - foundIndex + 1 === valLength) return foundIndex * indexSize
|
|
9444
|
+
} else {
|
|
9445
|
+
if (foundIndex !== -1) i -= i - foundIndex
|
|
9446
|
+
foundIndex = -1
|
|
9447
|
+
}
|
|
9448
|
+
}
|
|
9449
|
+
} else {
|
|
9450
|
+
if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength
|
|
9451
|
+
for (i = byteOffset; i >= 0; i--) {
|
|
9452
|
+
let found = true
|
|
9453
|
+
for (let j = 0; j < valLength; j++) {
|
|
9454
|
+
if (read(arr, i + j) !== read(val, j)) {
|
|
9455
|
+
found = false
|
|
9456
|
+
break
|
|
9457
|
+
}
|
|
9458
|
+
}
|
|
9459
|
+
if (found) return i
|
|
9460
|
+
}
|
|
9461
|
+
}
|
|
9462
|
+
|
|
9463
|
+
return -1
|
|
9464
|
+
}
|
|
9465
|
+
|
|
9466
|
+
Buffer.prototype.includes = function includes (val, byteOffset, encoding) {
|
|
9467
|
+
return this.indexOf(val, byteOffset, encoding) !== -1
|
|
9468
|
+
}
|
|
9469
|
+
|
|
9470
|
+
Buffer.prototype.indexOf = function indexOf (val, byteOffset, encoding) {
|
|
9471
|
+
return bidirectionalIndexOf(this, val, byteOffset, encoding, true)
|
|
9472
|
+
}
|
|
9473
|
+
|
|
9474
|
+
Buffer.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding) {
|
|
9475
|
+
return bidirectionalIndexOf(this, val, byteOffset, encoding, false)
|
|
9476
|
+
}
|
|
9477
|
+
|
|
9478
|
+
function hexWrite (buf, string, offset, length) {
|
|
9479
|
+
offset = Number(offset) || 0
|
|
9480
|
+
const remaining = buf.length - offset
|
|
9481
|
+
if (!length) {
|
|
9482
|
+
length = remaining
|
|
9483
|
+
} else {
|
|
9484
|
+
length = Number(length)
|
|
9485
|
+
if (length > remaining) {
|
|
9486
|
+
length = remaining
|
|
9487
|
+
}
|
|
9488
|
+
}
|
|
9489
|
+
|
|
9490
|
+
const strLen = string.length
|
|
9491
|
+
|
|
9492
|
+
if (length > strLen / 2) {
|
|
9493
|
+
length = strLen / 2
|
|
9494
|
+
}
|
|
9495
|
+
let i
|
|
9496
|
+
for (i = 0; i < length; ++i) {
|
|
9497
|
+
const parsed = parseInt(string.substr(i * 2, 2), 16)
|
|
9498
|
+
if (numberIsNaN(parsed)) return i
|
|
9499
|
+
buf[offset + i] = parsed
|
|
9500
|
+
}
|
|
9501
|
+
return i
|
|
9502
|
+
}
|
|
9503
|
+
|
|
9504
|
+
function utf8Write (buf, string, offset, length) {
|
|
9505
|
+
return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length)
|
|
9506
|
+
}
|
|
9507
|
+
|
|
9508
|
+
function asciiWrite (buf, string, offset, length) {
|
|
9509
|
+
return blitBuffer(asciiToBytes(string), buf, offset, length)
|
|
9510
|
+
}
|
|
9511
|
+
|
|
9512
|
+
function base64Write (buf, string, offset, length) {
|
|
9513
|
+
return blitBuffer(base64ToBytes(string), buf, offset, length)
|
|
9514
|
+
}
|
|
9515
|
+
|
|
9516
|
+
function ucs2Write (buf, string, offset, length) {
|
|
9517
|
+
return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)
|
|
9518
|
+
}
|
|
9519
|
+
|
|
9520
|
+
Buffer.prototype.write = function write (string, offset, length, encoding) {
|
|
9521
|
+
// Buffer#write(string)
|
|
9522
|
+
if (offset === undefined) {
|
|
9523
|
+
encoding = 'utf8'
|
|
9524
|
+
length = this.length
|
|
9525
|
+
offset = 0
|
|
9526
|
+
// Buffer#write(string, encoding)
|
|
9527
|
+
} else if (length === undefined && typeof offset === 'string') {
|
|
9528
|
+
encoding = offset
|
|
9529
|
+
length = this.length
|
|
9530
|
+
offset = 0
|
|
9531
|
+
// Buffer#write(string, offset[, length][, encoding])
|
|
9532
|
+
} else if (isFinite(offset)) {
|
|
9533
|
+
offset = offset >>> 0
|
|
9534
|
+
if (isFinite(length)) {
|
|
9535
|
+
length = length >>> 0
|
|
9536
|
+
if (encoding === undefined) encoding = 'utf8'
|
|
9537
|
+
} else {
|
|
9538
|
+
encoding = length
|
|
9539
|
+
length = undefined
|
|
9540
|
+
}
|
|
9541
|
+
} else {
|
|
9542
|
+
throw new Error(
|
|
9543
|
+
'Buffer.write(string, encoding, offset[, length]) is no longer supported'
|
|
9544
|
+
)
|
|
9545
|
+
}
|
|
9546
|
+
|
|
9547
|
+
const remaining = this.length - offset
|
|
9548
|
+
if (length === undefined || length > remaining) length = remaining
|
|
9549
|
+
|
|
9550
|
+
if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) {
|
|
9551
|
+
throw new RangeError('Attempt to write outside buffer bounds')
|
|
9552
|
+
}
|
|
9553
|
+
|
|
9554
|
+
if (!encoding) encoding = 'utf8'
|
|
9555
|
+
|
|
9556
|
+
let loweredCase = false
|
|
9557
|
+
for (;;) {
|
|
9558
|
+
switch (encoding) {
|
|
9559
|
+
case 'hex':
|
|
9560
|
+
return hexWrite(this, string, offset, length)
|
|
9561
|
+
|
|
9562
|
+
case 'utf8':
|
|
9563
|
+
case 'utf-8':
|
|
9564
|
+
return utf8Write(this, string, offset, length)
|
|
9565
|
+
|
|
9566
|
+
case 'ascii':
|
|
9567
|
+
case 'latin1':
|
|
9568
|
+
case 'binary':
|
|
9569
|
+
return asciiWrite(this, string, offset, length)
|
|
9570
|
+
|
|
9571
|
+
case 'base64':
|
|
9572
|
+
// Warning: maxLength not taken into account in base64Write
|
|
9573
|
+
return base64Write(this, string, offset, length)
|
|
9574
|
+
|
|
9575
|
+
case 'ucs2':
|
|
9576
|
+
case 'ucs-2':
|
|
9577
|
+
case 'utf16le':
|
|
9578
|
+
case 'utf-16le':
|
|
9579
|
+
return ucs2Write(this, string, offset, length)
|
|
9580
|
+
|
|
9581
|
+
default:
|
|
9582
|
+
if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)
|
|
9583
|
+
encoding = ('' + encoding).toLowerCase()
|
|
9584
|
+
loweredCase = true
|
|
9585
|
+
}
|
|
9586
|
+
}
|
|
9587
|
+
}
|
|
9588
|
+
|
|
9589
|
+
Buffer.prototype.toJSON = function toJSON () {
|
|
9590
|
+
return {
|
|
9591
|
+
type: 'Buffer',
|
|
9592
|
+
data: Array.prototype.slice.call(this._arr || this, 0)
|
|
9593
|
+
}
|
|
9594
|
+
}
|
|
9595
|
+
|
|
9596
|
+
function base64Slice (buf, start, end) {
|
|
9597
|
+
if (start === 0 && end === buf.length) {
|
|
9598
|
+
return base64.fromByteArray(buf)
|
|
9599
|
+
} else {
|
|
9600
|
+
return base64.fromByteArray(buf.slice(start, end))
|
|
9601
|
+
}
|
|
9602
|
+
}
|
|
9603
|
+
|
|
9604
|
+
function utf8Slice (buf, start, end) {
|
|
9605
|
+
end = Math.min(buf.length, end)
|
|
9606
|
+
const res = []
|
|
9607
|
+
|
|
9608
|
+
let i = start
|
|
9609
|
+
while (i < end) {
|
|
9610
|
+
const firstByte = buf[i]
|
|
9611
|
+
let codePoint = null
|
|
9612
|
+
let bytesPerSequence = (firstByte > 0xEF)
|
|
9613
|
+
? 4
|
|
9614
|
+
: (firstByte > 0xDF)
|
|
9615
|
+
? 3
|
|
9616
|
+
: (firstByte > 0xBF)
|
|
9617
|
+
? 2
|
|
9618
|
+
: 1
|
|
9619
|
+
|
|
9620
|
+
if (i + bytesPerSequence <= end) {
|
|
9621
|
+
let secondByte, thirdByte, fourthByte, tempCodePoint
|
|
9622
|
+
|
|
9623
|
+
switch (bytesPerSequence) {
|
|
9624
|
+
case 1:
|
|
9625
|
+
if (firstByte < 0x80) {
|
|
9626
|
+
codePoint = firstByte
|
|
9627
|
+
}
|
|
9628
|
+
break
|
|
9629
|
+
case 2:
|
|
9630
|
+
secondByte = buf[i + 1]
|
|
9631
|
+
if ((secondByte & 0xC0) === 0x80) {
|
|
9632
|
+
tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F)
|
|
9633
|
+
if (tempCodePoint > 0x7F) {
|
|
9634
|
+
codePoint = tempCodePoint
|
|
9635
|
+
}
|
|
9636
|
+
}
|
|
9637
|
+
break
|
|
9638
|
+
case 3:
|
|
9639
|
+
secondByte = buf[i + 1]
|
|
9640
|
+
thirdByte = buf[i + 2]
|
|
9641
|
+
if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) {
|
|
9642
|
+
tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F)
|
|
9643
|
+
if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {
|
|
9644
|
+
codePoint = tempCodePoint
|
|
9645
|
+
}
|
|
9646
|
+
}
|
|
9647
|
+
break
|
|
9648
|
+
case 4:
|
|
9649
|
+
secondByte = buf[i + 1]
|
|
9650
|
+
thirdByte = buf[i + 2]
|
|
9651
|
+
fourthByte = buf[i + 3]
|
|
9652
|
+
if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) {
|
|
9653
|
+
tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F)
|
|
9654
|
+
if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) {
|
|
9655
|
+
codePoint = tempCodePoint
|
|
9656
|
+
}
|
|
9657
|
+
}
|
|
9658
|
+
}
|
|
9659
|
+
}
|
|
9660
|
+
|
|
9661
|
+
if (codePoint === null) {
|
|
9662
|
+
// we did not generate a valid codePoint so insert a
|
|
9663
|
+
// replacement char (U+FFFD) and advance only 1 byte
|
|
9664
|
+
codePoint = 0xFFFD
|
|
9665
|
+
bytesPerSequence = 1
|
|
9666
|
+
} else if (codePoint > 0xFFFF) {
|
|
9667
|
+
// encode to utf16 (surrogate pair dance)
|
|
9668
|
+
codePoint -= 0x10000
|
|
9669
|
+
res.push(codePoint >>> 10 & 0x3FF | 0xD800)
|
|
9670
|
+
codePoint = 0xDC00 | codePoint & 0x3FF
|
|
9671
|
+
}
|
|
9672
|
+
|
|
9673
|
+
res.push(codePoint)
|
|
9674
|
+
i += bytesPerSequence
|
|
9675
|
+
}
|
|
9676
|
+
|
|
9677
|
+
return decodeCodePointsArray(res)
|
|
9678
|
+
}
|
|
9679
|
+
|
|
9680
|
+
// Based on http://stackoverflow.com/a/22747272/680742, the browser with
|
|
9681
|
+
// the lowest limit is Chrome, with 0x10000 args.
|
|
9682
|
+
// We go 1 magnitude less, for safety
|
|
9683
|
+
const MAX_ARGUMENTS_LENGTH = 0x1000
|
|
9684
|
+
|
|
9685
|
+
function decodeCodePointsArray (codePoints) {
|
|
9686
|
+
const len = codePoints.length
|
|
9687
|
+
if (len <= MAX_ARGUMENTS_LENGTH) {
|
|
9688
|
+
return String.fromCharCode.apply(String, codePoints) // avoid extra slice()
|
|
9689
|
+
}
|
|
9690
|
+
|
|
9691
|
+
// Decode in chunks to avoid "call stack size exceeded".
|
|
9692
|
+
let res = ''
|
|
9693
|
+
let i = 0
|
|
9694
|
+
while (i < len) {
|
|
9695
|
+
res += String.fromCharCode.apply(
|
|
9696
|
+
String,
|
|
9697
|
+
codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH)
|
|
9698
|
+
)
|
|
9699
|
+
}
|
|
9700
|
+
return res
|
|
9701
|
+
}
|
|
9702
|
+
|
|
9703
|
+
function asciiSlice (buf, start, end) {
|
|
9704
|
+
let ret = ''
|
|
9705
|
+
end = Math.min(buf.length, end)
|
|
9706
|
+
|
|
9707
|
+
for (let i = start; i < end; ++i) {
|
|
9708
|
+
ret += String.fromCharCode(buf[i] & 0x7F)
|
|
9709
|
+
}
|
|
9710
|
+
return ret
|
|
9711
|
+
}
|
|
9712
|
+
|
|
9713
|
+
function latin1Slice (buf, start, end) {
|
|
9714
|
+
let ret = ''
|
|
9715
|
+
end = Math.min(buf.length, end)
|
|
9716
|
+
|
|
9717
|
+
for (let i = start; i < end; ++i) {
|
|
9718
|
+
ret += String.fromCharCode(buf[i])
|
|
9719
|
+
}
|
|
9720
|
+
return ret
|
|
9721
|
+
}
|
|
9722
|
+
|
|
9723
|
+
function hexSlice (buf, start, end) {
|
|
9724
|
+
const len = buf.length
|
|
9725
|
+
|
|
9726
|
+
if (!start || start < 0) start = 0
|
|
9727
|
+
if (!end || end < 0 || end > len) end = len
|
|
9728
|
+
|
|
9729
|
+
let out = ''
|
|
9730
|
+
for (let i = start; i < end; ++i) {
|
|
9731
|
+
out += hexSliceLookupTable[buf[i]]
|
|
9732
|
+
}
|
|
9733
|
+
return out
|
|
9734
|
+
}
|
|
9735
|
+
|
|
9736
|
+
function utf16leSlice (buf, start, end) {
|
|
9737
|
+
const bytes = buf.slice(start, end)
|
|
9738
|
+
let res = ''
|
|
9739
|
+
// If bytes.length is odd, the last 8 bits must be ignored (same as node.js)
|
|
9740
|
+
for (let i = 0; i < bytes.length - 1; i += 2) {
|
|
9741
|
+
res += String.fromCharCode(bytes[i] + (bytes[i + 1] * 256))
|
|
9742
|
+
}
|
|
9743
|
+
return res
|
|
9744
|
+
}
|
|
9745
|
+
|
|
9746
|
+
Buffer.prototype.slice = function slice (start, end) {
|
|
9747
|
+
const len = this.length
|
|
9748
|
+
start = ~~start
|
|
9749
|
+
end = end === undefined ? len : ~~end
|
|
9750
|
+
|
|
9751
|
+
if (start < 0) {
|
|
9752
|
+
start += len
|
|
9753
|
+
if (start < 0) start = 0
|
|
9754
|
+
} else if (start > len) {
|
|
9755
|
+
start = len
|
|
9756
|
+
}
|
|
9757
|
+
|
|
9758
|
+
if (end < 0) {
|
|
9759
|
+
end += len
|
|
9760
|
+
if (end < 0) end = 0
|
|
9761
|
+
} else if (end > len) {
|
|
9762
|
+
end = len
|
|
9763
|
+
}
|
|
9764
|
+
|
|
9765
|
+
if (end < start) end = start
|
|
9766
|
+
|
|
9767
|
+
const newBuf = this.subarray(start, end)
|
|
9768
|
+
// Return an augmented `Uint8Array` instance
|
|
9769
|
+
Object.setPrototypeOf(newBuf, Buffer.prototype)
|
|
9770
|
+
|
|
9771
|
+
return newBuf
|
|
9772
|
+
}
|
|
9773
|
+
|
|
9774
|
+
/*
|
|
9775
|
+
* Need to make sure that buffer isn't trying to write out of bounds.
|
|
9776
|
+
*/
|
|
9777
|
+
function checkOffset (offset, ext, length) {
|
|
9778
|
+
if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint')
|
|
9779
|
+
if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length')
|
|
9780
|
+
}
|
|
9781
|
+
|
|
9782
|
+
Buffer.prototype.readUintLE =
|
|
9783
|
+
Buffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) {
|
|
9784
|
+
offset = offset >>> 0
|
|
9785
|
+
byteLength = byteLength >>> 0
|
|
9786
|
+
if (!noAssert) checkOffset(offset, byteLength, this.length)
|
|
9787
|
+
|
|
9788
|
+
let val = this[offset]
|
|
9789
|
+
let mul = 1
|
|
9790
|
+
let i = 0
|
|
9791
|
+
while (++i < byteLength && (mul *= 0x100)) {
|
|
9792
|
+
val += this[offset + i] * mul
|
|
9793
|
+
}
|
|
9794
|
+
|
|
9795
|
+
return val
|
|
9796
|
+
}
|
|
9797
|
+
|
|
9798
|
+
Buffer.prototype.readUintBE =
|
|
9799
|
+
Buffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) {
|
|
9800
|
+
offset = offset >>> 0
|
|
9801
|
+
byteLength = byteLength >>> 0
|
|
9802
|
+
if (!noAssert) {
|
|
9803
|
+
checkOffset(offset, byteLength, this.length)
|
|
9804
|
+
}
|
|
9805
|
+
|
|
9806
|
+
let val = this[offset + --byteLength]
|
|
9807
|
+
let mul = 1
|
|
9808
|
+
while (byteLength > 0 && (mul *= 0x100)) {
|
|
9809
|
+
val += this[offset + --byteLength] * mul
|
|
9810
|
+
}
|
|
9811
|
+
|
|
9812
|
+
return val
|
|
9813
|
+
}
|
|
9814
|
+
|
|
9815
|
+
Buffer.prototype.readUint8 =
|
|
9816
|
+
Buffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) {
|
|
9817
|
+
offset = offset >>> 0
|
|
9818
|
+
if (!noAssert) checkOffset(offset, 1, this.length)
|
|
9819
|
+
return this[offset]
|
|
9820
|
+
}
|
|
9821
|
+
|
|
9822
|
+
Buffer.prototype.readUint16LE =
|
|
9823
|
+
Buffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) {
|
|
9824
|
+
offset = offset >>> 0
|
|
9825
|
+
if (!noAssert) checkOffset(offset, 2, this.length)
|
|
9826
|
+
return this[offset] | (this[offset + 1] << 8)
|
|
9827
|
+
}
|
|
9828
|
+
|
|
9829
|
+
Buffer.prototype.readUint16BE =
|
|
9830
|
+
Buffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) {
|
|
9831
|
+
offset = offset >>> 0
|
|
9832
|
+
if (!noAssert) checkOffset(offset, 2, this.length)
|
|
9833
|
+
return (this[offset] << 8) | this[offset + 1]
|
|
9834
|
+
}
|
|
9835
|
+
|
|
9836
|
+
Buffer.prototype.readUint32LE =
|
|
9837
|
+
Buffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {
|
|
9838
|
+
offset = offset >>> 0
|
|
9839
|
+
if (!noAssert) checkOffset(offset, 4, this.length)
|
|
9840
|
+
|
|
9841
|
+
return ((this[offset]) |
|
|
9842
|
+
(this[offset + 1] << 8) |
|
|
9843
|
+
(this[offset + 2] << 16)) +
|
|
9844
|
+
(this[offset + 3] * 0x1000000)
|
|
9845
|
+
}
|
|
9846
|
+
|
|
9847
|
+
Buffer.prototype.readUint32BE =
|
|
9848
|
+
Buffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {
|
|
9849
|
+
offset = offset >>> 0
|
|
9850
|
+
if (!noAssert) checkOffset(offset, 4, this.length)
|
|
9851
|
+
|
|
9852
|
+
return (this[offset] * 0x1000000) +
|
|
9853
|
+
((this[offset + 1] << 16) |
|
|
9854
|
+
(this[offset + 2] << 8) |
|
|
9855
|
+
this[offset + 3])
|
|
9856
|
+
}
|
|
9857
|
+
|
|
9858
|
+
Buffer.prototype.readBigUInt64LE = defineBigIntMethod(function readBigUInt64LE (offset) {
|
|
9859
|
+
offset = offset >>> 0
|
|
9860
|
+
validateNumber(offset, 'offset')
|
|
9861
|
+
const first = this[offset]
|
|
9862
|
+
const last = this[offset + 7]
|
|
9863
|
+
if (first === undefined || last === undefined) {
|
|
9864
|
+
boundsError(offset, this.length - 8)
|
|
9865
|
+
}
|
|
9866
|
+
|
|
9867
|
+
const lo = first +
|
|
9868
|
+
this[++offset] * 2 ** 8 +
|
|
9869
|
+
this[++offset] * 2 ** 16 +
|
|
9870
|
+
this[++offset] * 2 ** 24
|
|
9871
|
+
|
|
9872
|
+
const hi = this[++offset] +
|
|
9873
|
+
this[++offset] * 2 ** 8 +
|
|
9874
|
+
this[++offset] * 2 ** 16 +
|
|
9875
|
+
last * 2 ** 24
|
|
9876
|
+
|
|
9877
|
+
return BigInt(lo) + (BigInt(hi) << BigInt(32))
|
|
9878
|
+
})
|
|
9879
|
+
|
|
9880
|
+
Buffer.prototype.readBigUInt64BE = defineBigIntMethod(function readBigUInt64BE (offset) {
|
|
9881
|
+
offset = offset >>> 0
|
|
9882
|
+
validateNumber(offset, 'offset')
|
|
9883
|
+
const first = this[offset]
|
|
9884
|
+
const last = this[offset + 7]
|
|
9885
|
+
if (first === undefined || last === undefined) {
|
|
9886
|
+
boundsError(offset, this.length - 8)
|
|
9887
|
+
}
|
|
9888
|
+
|
|
9889
|
+
const hi = first * 2 ** 24 +
|
|
9890
|
+
this[++offset] * 2 ** 16 +
|
|
9891
|
+
this[++offset] * 2 ** 8 +
|
|
9892
|
+
this[++offset]
|
|
9893
|
+
|
|
9894
|
+
const lo = this[++offset] * 2 ** 24 +
|
|
9895
|
+
this[++offset] * 2 ** 16 +
|
|
9896
|
+
this[++offset] * 2 ** 8 +
|
|
9897
|
+
last
|
|
9898
|
+
|
|
9899
|
+
return (BigInt(hi) << BigInt(32)) + BigInt(lo)
|
|
9900
|
+
})
|
|
9901
|
+
|
|
9902
|
+
Buffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) {
|
|
9903
|
+
offset = offset >>> 0
|
|
9904
|
+
byteLength = byteLength >>> 0
|
|
9905
|
+
if (!noAssert) checkOffset(offset, byteLength, this.length)
|
|
9906
|
+
|
|
9907
|
+
let val = this[offset]
|
|
9908
|
+
let mul = 1
|
|
9909
|
+
let i = 0
|
|
9910
|
+
while (++i < byteLength && (mul *= 0x100)) {
|
|
9911
|
+
val += this[offset + i] * mul
|
|
9912
|
+
}
|
|
9913
|
+
mul *= 0x80
|
|
9914
|
+
|
|
9915
|
+
if (val >= mul) val -= Math.pow(2, 8 * byteLength)
|
|
9916
|
+
|
|
9917
|
+
return val
|
|
9918
|
+
}
|
|
9919
|
+
|
|
9920
|
+
Buffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) {
|
|
9921
|
+
offset = offset >>> 0
|
|
9922
|
+
byteLength = byteLength >>> 0
|
|
9923
|
+
if (!noAssert) checkOffset(offset, byteLength, this.length)
|
|
9924
|
+
|
|
9925
|
+
let i = byteLength
|
|
9926
|
+
let mul = 1
|
|
9927
|
+
let val = this[offset + --i]
|
|
9928
|
+
while (i > 0 && (mul *= 0x100)) {
|
|
9929
|
+
val += this[offset + --i] * mul
|
|
9930
|
+
}
|
|
9931
|
+
mul *= 0x80
|
|
9932
|
+
|
|
9933
|
+
if (val >= mul) val -= Math.pow(2, 8 * byteLength)
|
|
9934
|
+
|
|
9935
|
+
return val
|
|
9936
|
+
}
|
|
9937
|
+
|
|
9938
|
+
Buffer.prototype.readInt8 = function readInt8 (offset, noAssert) {
|
|
9939
|
+
offset = offset >>> 0
|
|
9940
|
+
if (!noAssert) checkOffset(offset, 1, this.length)
|
|
9941
|
+
if (!(this[offset] & 0x80)) return (this[offset])
|
|
9942
|
+
return ((0xff - this[offset] + 1) * -1)
|
|
9943
|
+
}
|
|
9944
|
+
|
|
9945
|
+
Buffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) {
|
|
9946
|
+
offset = offset >>> 0
|
|
9947
|
+
if (!noAssert) checkOffset(offset, 2, this.length)
|
|
9948
|
+
const val = this[offset] | (this[offset + 1] << 8)
|
|
9949
|
+
return (val & 0x8000) ? val | 0xFFFF0000 : val
|
|
9950
|
+
}
|
|
9951
|
+
|
|
9952
|
+
Buffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) {
|
|
9953
|
+
offset = offset >>> 0
|
|
9954
|
+
if (!noAssert) checkOffset(offset, 2, this.length)
|
|
9955
|
+
const val = this[offset + 1] | (this[offset] << 8)
|
|
9956
|
+
return (val & 0x8000) ? val | 0xFFFF0000 : val
|
|
9957
|
+
}
|
|
9958
|
+
|
|
9959
|
+
Buffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) {
|
|
9960
|
+
offset = offset >>> 0
|
|
9961
|
+
if (!noAssert) checkOffset(offset, 4, this.length)
|
|
9962
|
+
|
|
9963
|
+
return (this[offset]) |
|
|
9964
|
+
(this[offset + 1] << 8) |
|
|
9965
|
+
(this[offset + 2] << 16) |
|
|
9966
|
+
(this[offset + 3] << 24)
|
|
9967
|
+
}
|
|
9968
|
+
|
|
9969
|
+
Buffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) {
|
|
9970
|
+
offset = offset >>> 0
|
|
9971
|
+
if (!noAssert) checkOffset(offset, 4, this.length)
|
|
9972
|
+
|
|
9973
|
+
return (this[offset] << 24) |
|
|
9974
|
+
(this[offset + 1] << 16) |
|
|
9975
|
+
(this[offset + 2] << 8) |
|
|
9976
|
+
(this[offset + 3])
|
|
9977
|
+
}
|
|
9978
|
+
|
|
9979
|
+
Buffer.prototype.readBigInt64LE = defineBigIntMethod(function readBigInt64LE (offset) {
|
|
9980
|
+
offset = offset >>> 0
|
|
9981
|
+
validateNumber(offset, 'offset')
|
|
9982
|
+
const first = this[offset]
|
|
9983
|
+
const last = this[offset + 7]
|
|
9984
|
+
if (first === undefined || last === undefined) {
|
|
9985
|
+
boundsError(offset, this.length - 8)
|
|
9986
|
+
}
|
|
9987
|
+
|
|
9988
|
+
const val = this[offset + 4] +
|
|
9989
|
+
this[offset + 5] * 2 ** 8 +
|
|
9990
|
+
this[offset + 6] * 2 ** 16 +
|
|
9991
|
+
(last << 24) // Overflow
|
|
9992
|
+
|
|
9993
|
+
return (BigInt(val) << BigInt(32)) +
|
|
9994
|
+
BigInt(first +
|
|
9995
|
+
this[++offset] * 2 ** 8 +
|
|
9996
|
+
this[++offset] * 2 ** 16 +
|
|
9997
|
+
this[++offset] * 2 ** 24)
|
|
9998
|
+
})
|
|
9999
|
+
|
|
10000
|
+
Buffer.prototype.readBigInt64BE = defineBigIntMethod(function readBigInt64BE (offset) {
|
|
10001
|
+
offset = offset >>> 0
|
|
10002
|
+
validateNumber(offset, 'offset')
|
|
10003
|
+
const first = this[offset]
|
|
10004
|
+
const last = this[offset + 7]
|
|
10005
|
+
if (first === undefined || last === undefined) {
|
|
10006
|
+
boundsError(offset, this.length - 8)
|
|
10007
|
+
}
|
|
10008
|
+
|
|
10009
|
+
const val = (first << 24) + // Overflow
|
|
10010
|
+
this[++offset] * 2 ** 16 +
|
|
10011
|
+
this[++offset] * 2 ** 8 +
|
|
10012
|
+
this[++offset]
|
|
10013
|
+
|
|
10014
|
+
return (BigInt(val) << BigInt(32)) +
|
|
10015
|
+
BigInt(this[++offset] * 2 ** 24 +
|
|
10016
|
+
this[++offset] * 2 ** 16 +
|
|
10017
|
+
this[++offset] * 2 ** 8 +
|
|
10018
|
+
last)
|
|
10019
|
+
})
|
|
10020
|
+
|
|
10021
|
+
Buffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {
|
|
10022
|
+
offset = offset >>> 0
|
|
10023
|
+
if (!noAssert) checkOffset(offset, 4, this.length)
|
|
10024
|
+
return ieee754.read(this, offset, true, 23, 4)
|
|
10025
|
+
}
|
|
10026
|
+
|
|
10027
|
+
Buffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) {
|
|
10028
|
+
offset = offset >>> 0
|
|
10029
|
+
if (!noAssert) checkOffset(offset, 4, this.length)
|
|
10030
|
+
return ieee754.read(this, offset, false, 23, 4)
|
|
10031
|
+
}
|
|
10032
|
+
|
|
10033
|
+
Buffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) {
|
|
10034
|
+
offset = offset >>> 0
|
|
10035
|
+
if (!noAssert) checkOffset(offset, 8, this.length)
|
|
10036
|
+
return ieee754.read(this, offset, true, 52, 8)
|
|
10037
|
+
}
|
|
10038
|
+
|
|
10039
|
+
Buffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {
|
|
10040
|
+
offset = offset >>> 0
|
|
10041
|
+
if (!noAssert) checkOffset(offset, 8, this.length)
|
|
10042
|
+
return ieee754.read(this, offset, false, 52, 8)
|
|
10043
|
+
}
|
|
10044
|
+
|
|
10045
|
+
function checkInt (buf, value, offset, ext, max, min) {
|
|
10046
|
+
if (!Buffer.isBuffer(buf)) throw new TypeError('"buffer" argument must be a Buffer instance')
|
|
10047
|
+
if (value > max || value < min) throw new RangeError('"value" argument is out of bounds')
|
|
10048
|
+
if (offset + ext > buf.length) throw new RangeError('Index out of range')
|
|
10049
|
+
}
|
|
10050
|
+
|
|
10051
|
+
Buffer.prototype.writeUintLE =
|
|
10052
|
+
Buffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {
|
|
10053
|
+
value = +value
|
|
10054
|
+
offset = offset >>> 0
|
|
10055
|
+
byteLength = byteLength >>> 0
|
|
10056
|
+
if (!noAssert) {
|
|
10057
|
+
const maxBytes = Math.pow(2, 8 * byteLength) - 1
|
|
10058
|
+
checkInt(this, value, offset, byteLength, maxBytes, 0)
|
|
10059
|
+
}
|
|
10060
|
+
|
|
10061
|
+
let mul = 1
|
|
10062
|
+
let i = 0
|
|
10063
|
+
this[offset] = value & 0xFF
|
|
10064
|
+
while (++i < byteLength && (mul *= 0x100)) {
|
|
10065
|
+
this[offset + i] = (value / mul) & 0xFF
|
|
10066
|
+
}
|
|
10067
|
+
|
|
10068
|
+
return offset + byteLength
|
|
10069
|
+
}
|
|
10070
|
+
|
|
10071
|
+
Buffer.prototype.writeUintBE =
|
|
10072
|
+
Buffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) {
|
|
10073
|
+
value = +value
|
|
10074
|
+
offset = offset >>> 0
|
|
10075
|
+
byteLength = byteLength >>> 0
|
|
10076
|
+
if (!noAssert) {
|
|
10077
|
+
const maxBytes = Math.pow(2, 8 * byteLength) - 1
|
|
10078
|
+
checkInt(this, value, offset, byteLength, maxBytes, 0)
|
|
10079
|
+
}
|
|
10080
|
+
|
|
10081
|
+
let i = byteLength - 1
|
|
10082
|
+
let mul = 1
|
|
10083
|
+
this[offset + i] = value & 0xFF
|
|
10084
|
+
while (--i >= 0 && (mul *= 0x100)) {
|
|
10085
|
+
this[offset + i] = (value / mul) & 0xFF
|
|
10086
|
+
}
|
|
10087
|
+
|
|
10088
|
+
return offset + byteLength
|
|
10089
|
+
}
|
|
10090
|
+
|
|
10091
|
+
Buffer.prototype.writeUint8 =
|
|
10092
|
+
Buffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) {
|
|
10093
|
+
value = +value
|
|
10094
|
+
offset = offset >>> 0
|
|
10095
|
+
if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0)
|
|
10096
|
+
this[offset] = (value & 0xff)
|
|
10097
|
+
return offset + 1
|
|
10098
|
+
}
|
|
10099
|
+
|
|
10100
|
+
Buffer.prototype.writeUint16LE =
|
|
10101
|
+
Buffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {
|
|
10102
|
+
value = +value
|
|
10103
|
+
offset = offset >>> 0
|
|
10104
|
+
if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)
|
|
10105
|
+
this[offset] = (value & 0xff)
|
|
10106
|
+
this[offset + 1] = (value >>> 8)
|
|
10107
|
+
return offset + 2
|
|
10108
|
+
}
|
|
10109
|
+
|
|
10110
|
+
Buffer.prototype.writeUint16BE =
|
|
10111
|
+
Buffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) {
|
|
10112
|
+
value = +value
|
|
10113
|
+
offset = offset >>> 0
|
|
10114
|
+
if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)
|
|
10115
|
+
this[offset] = (value >>> 8)
|
|
10116
|
+
this[offset + 1] = (value & 0xff)
|
|
10117
|
+
return offset + 2
|
|
10118
|
+
}
|
|
10119
|
+
|
|
10120
|
+
Buffer.prototype.writeUint32LE =
|
|
10121
|
+
Buffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) {
|
|
10122
|
+
value = +value
|
|
10123
|
+
offset = offset >>> 0
|
|
10124
|
+
if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)
|
|
10125
|
+
this[offset + 3] = (value >>> 24)
|
|
10126
|
+
this[offset + 2] = (value >>> 16)
|
|
10127
|
+
this[offset + 1] = (value >>> 8)
|
|
10128
|
+
this[offset] = (value & 0xff)
|
|
10129
|
+
return offset + 4
|
|
10130
|
+
}
|
|
10131
|
+
|
|
10132
|
+
Buffer.prototype.writeUint32BE =
|
|
10133
|
+
Buffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) {
|
|
10134
|
+
value = +value
|
|
10135
|
+
offset = offset >>> 0
|
|
10136
|
+
if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)
|
|
10137
|
+
this[offset] = (value >>> 24)
|
|
10138
|
+
this[offset + 1] = (value >>> 16)
|
|
10139
|
+
this[offset + 2] = (value >>> 8)
|
|
10140
|
+
this[offset + 3] = (value & 0xff)
|
|
10141
|
+
return offset + 4
|
|
10142
|
+
}
|
|
10143
|
+
|
|
10144
|
+
function wrtBigUInt64LE (buf, value, offset, min, max) {
|
|
10145
|
+
checkIntBI(value, min, max, buf, offset, 7)
|
|
10146
|
+
|
|
10147
|
+
let lo = Number(value & BigInt(0xffffffff))
|
|
10148
|
+
buf[offset++] = lo
|
|
10149
|
+
lo = lo >> 8
|
|
10150
|
+
buf[offset++] = lo
|
|
10151
|
+
lo = lo >> 8
|
|
10152
|
+
buf[offset++] = lo
|
|
10153
|
+
lo = lo >> 8
|
|
10154
|
+
buf[offset++] = lo
|
|
10155
|
+
let hi = Number(value >> BigInt(32) & BigInt(0xffffffff))
|
|
10156
|
+
buf[offset++] = hi
|
|
10157
|
+
hi = hi >> 8
|
|
10158
|
+
buf[offset++] = hi
|
|
10159
|
+
hi = hi >> 8
|
|
10160
|
+
buf[offset++] = hi
|
|
10161
|
+
hi = hi >> 8
|
|
10162
|
+
buf[offset++] = hi
|
|
10163
|
+
return offset
|
|
10164
|
+
}
|
|
10165
|
+
|
|
10166
|
+
function wrtBigUInt64BE (buf, value, offset, min, max) {
|
|
10167
|
+
checkIntBI(value, min, max, buf, offset, 7)
|
|
10168
|
+
|
|
10169
|
+
let lo = Number(value & BigInt(0xffffffff))
|
|
10170
|
+
buf[offset + 7] = lo
|
|
10171
|
+
lo = lo >> 8
|
|
10172
|
+
buf[offset + 6] = lo
|
|
10173
|
+
lo = lo >> 8
|
|
10174
|
+
buf[offset + 5] = lo
|
|
10175
|
+
lo = lo >> 8
|
|
10176
|
+
buf[offset + 4] = lo
|
|
10177
|
+
let hi = Number(value >> BigInt(32) & BigInt(0xffffffff))
|
|
10178
|
+
buf[offset + 3] = hi
|
|
10179
|
+
hi = hi >> 8
|
|
10180
|
+
buf[offset + 2] = hi
|
|
10181
|
+
hi = hi >> 8
|
|
10182
|
+
buf[offset + 1] = hi
|
|
10183
|
+
hi = hi >> 8
|
|
10184
|
+
buf[offset] = hi
|
|
10185
|
+
return offset + 8
|
|
10186
|
+
}
|
|
10187
|
+
|
|
10188
|
+
Buffer.prototype.writeBigUInt64LE = defineBigIntMethod(function writeBigUInt64LE (value, offset = 0) {
|
|
10189
|
+
return wrtBigUInt64LE(this, value, offset, BigInt(0), BigInt('0xffffffffffffffff'))
|
|
10190
|
+
})
|
|
10191
|
+
|
|
10192
|
+
Buffer.prototype.writeBigUInt64BE = defineBigIntMethod(function writeBigUInt64BE (value, offset = 0) {
|
|
10193
|
+
return wrtBigUInt64BE(this, value, offset, BigInt(0), BigInt('0xffffffffffffffff'))
|
|
10194
|
+
})
|
|
10195
|
+
|
|
10196
|
+
Buffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) {
|
|
10197
|
+
value = +value
|
|
10198
|
+
offset = offset >>> 0
|
|
10199
|
+
if (!noAssert) {
|
|
10200
|
+
const limit = Math.pow(2, (8 * byteLength) - 1)
|
|
10201
|
+
|
|
10202
|
+
checkInt(this, value, offset, byteLength, limit - 1, -limit)
|
|
10203
|
+
}
|
|
10204
|
+
|
|
10205
|
+
let i = 0
|
|
10206
|
+
let mul = 1
|
|
10207
|
+
let sub = 0
|
|
10208
|
+
this[offset] = value & 0xFF
|
|
10209
|
+
while (++i < byteLength && (mul *= 0x100)) {
|
|
10210
|
+
if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {
|
|
10211
|
+
sub = 1
|
|
10212
|
+
}
|
|
10213
|
+
this[offset + i] = ((value / mul) >> 0) - sub & 0xFF
|
|
10214
|
+
}
|
|
10215
|
+
|
|
10216
|
+
return offset + byteLength
|
|
10217
|
+
}
|
|
10218
|
+
|
|
10219
|
+
Buffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) {
|
|
10220
|
+
value = +value
|
|
10221
|
+
offset = offset >>> 0
|
|
10222
|
+
if (!noAssert) {
|
|
10223
|
+
const limit = Math.pow(2, (8 * byteLength) - 1)
|
|
10224
|
+
|
|
10225
|
+
checkInt(this, value, offset, byteLength, limit - 1, -limit)
|
|
10226
|
+
}
|
|
10227
|
+
|
|
10228
|
+
let i = byteLength - 1
|
|
10229
|
+
let mul = 1
|
|
10230
|
+
let sub = 0
|
|
10231
|
+
this[offset + i] = value & 0xFF
|
|
10232
|
+
while (--i >= 0 && (mul *= 0x100)) {
|
|
10233
|
+
if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {
|
|
10234
|
+
sub = 1
|
|
10235
|
+
}
|
|
10236
|
+
this[offset + i] = ((value / mul) >> 0) - sub & 0xFF
|
|
10237
|
+
}
|
|
10238
|
+
|
|
10239
|
+
return offset + byteLength
|
|
10240
|
+
}
|
|
10241
|
+
|
|
10242
|
+
Buffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) {
|
|
10243
|
+
value = +value
|
|
10244
|
+
offset = offset >>> 0
|
|
10245
|
+
if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80)
|
|
10246
|
+
if (value < 0) value = 0xff + value + 1
|
|
10247
|
+
this[offset] = (value & 0xff)
|
|
10248
|
+
return offset + 1
|
|
10249
|
+
}
|
|
10250
|
+
|
|
10251
|
+
Buffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) {
|
|
10252
|
+
value = +value
|
|
10253
|
+
offset = offset >>> 0
|
|
10254
|
+
if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)
|
|
10255
|
+
this[offset] = (value & 0xff)
|
|
10256
|
+
this[offset + 1] = (value >>> 8)
|
|
10257
|
+
return offset + 2
|
|
10258
|
+
}
|
|
10259
|
+
|
|
10260
|
+
Buffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) {
|
|
10261
|
+
value = +value
|
|
10262
|
+
offset = offset >>> 0
|
|
10263
|
+
if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)
|
|
10264
|
+
this[offset] = (value >>> 8)
|
|
10265
|
+
this[offset + 1] = (value & 0xff)
|
|
10266
|
+
return offset + 2
|
|
10267
|
+
}
|
|
10268
|
+
|
|
10269
|
+
Buffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) {
|
|
10270
|
+
value = +value
|
|
10271
|
+
offset = offset >>> 0
|
|
10272
|
+
if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)
|
|
10273
|
+
this[offset] = (value & 0xff)
|
|
10274
|
+
this[offset + 1] = (value >>> 8)
|
|
10275
|
+
this[offset + 2] = (value >>> 16)
|
|
10276
|
+
this[offset + 3] = (value >>> 24)
|
|
10277
|
+
return offset + 4
|
|
10278
|
+
}
|
|
10279
|
+
|
|
10280
|
+
Buffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) {
|
|
10281
|
+
value = +value
|
|
10282
|
+
offset = offset >>> 0
|
|
10283
|
+
if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)
|
|
10284
|
+
if (value < 0) value = 0xffffffff + value + 1
|
|
10285
|
+
this[offset] = (value >>> 24)
|
|
10286
|
+
this[offset + 1] = (value >>> 16)
|
|
10287
|
+
this[offset + 2] = (value >>> 8)
|
|
10288
|
+
this[offset + 3] = (value & 0xff)
|
|
10289
|
+
return offset + 4
|
|
10290
|
+
}
|
|
10291
|
+
|
|
10292
|
+
Buffer.prototype.writeBigInt64LE = defineBigIntMethod(function writeBigInt64LE (value, offset = 0) {
|
|
10293
|
+
return wrtBigUInt64LE(this, value, offset, -BigInt('0x8000000000000000'), BigInt('0x7fffffffffffffff'))
|
|
10294
|
+
})
|
|
10295
|
+
|
|
10296
|
+
Buffer.prototype.writeBigInt64BE = defineBigIntMethod(function writeBigInt64BE (value, offset = 0) {
|
|
10297
|
+
return wrtBigUInt64BE(this, value, offset, -BigInt('0x8000000000000000'), BigInt('0x7fffffffffffffff'))
|
|
10298
|
+
})
|
|
10299
|
+
|
|
10300
|
+
function checkIEEE754 (buf, value, offset, ext, max, min) {
|
|
10301
|
+
if (offset + ext > buf.length) throw new RangeError('Index out of range')
|
|
10302
|
+
if (offset < 0) throw new RangeError('Index out of range')
|
|
10303
|
+
}
|
|
10304
|
+
|
|
10305
|
+
function writeFloat (buf, value, offset, littleEndian, noAssert) {
|
|
10306
|
+
value = +value
|
|
10307
|
+
offset = offset >>> 0
|
|
10308
|
+
if (!noAssert) {
|
|
10309
|
+
checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38)
|
|
10310
|
+
}
|
|
10311
|
+
ieee754.write(buf, value, offset, littleEndian, 23, 4)
|
|
10312
|
+
return offset + 4
|
|
10313
|
+
}
|
|
10314
|
+
|
|
10315
|
+
Buffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {
|
|
10316
|
+
return writeFloat(this, value, offset, true, noAssert)
|
|
10317
|
+
}
|
|
10318
|
+
|
|
10319
|
+
Buffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) {
|
|
10320
|
+
return writeFloat(this, value, offset, false, noAssert)
|
|
10321
|
+
}
|
|
10322
|
+
|
|
10323
|
+
function writeDouble (buf, value, offset, littleEndian, noAssert) {
|
|
10324
|
+
value = +value
|
|
10325
|
+
offset = offset >>> 0
|
|
10326
|
+
if (!noAssert) {
|
|
10327
|
+
checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308)
|
|
10328
|
+
}
|
|
10329
|
+
ieee754.write(buf, value, offset, littleEndian, 52, 8)
|
|
10330
|
+
return offset + 8
|
|
10331
|
+
}
|
|
10332
|
+
|
|
10333
|
+
Buffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) {
|
|
10334
|
+
return writeDouble(this, value, offset, true, noAssert)
|
|
10335
|
+
}
|
|
10336
|
+
|
|
10337
|
+
Buffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) {
|
|
10338
|
+
return writeDouble(this, value, offset, false, noAssert)
|
|
10339
|
+
}
|
|
10340
|
+
|
|
10341
|
+
// copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)
|
|
10342
|
+
Buffer.prototype.copy = function copy (target, targetStart, start, end) {
|
|
10343
|
+
if (!Buffer.isBuffer(target)) throw new TypeError('argument should be a Buffer')
|
|
10344
|
+
if (!start) start = 0
|
|
10345
|
+
if (!end && end !== 0) end = this.length
|
|
10346
|
+
if (targetStart >= target.length) targetStart = target.length
|
|
10347
|
+
if (!targetStart) targetStart = 0
|
|
10348
|
+
if (end > 0 && end < start) end = start
|
|
10349
|
+
|
|
10350
|
+
// Copy 0 bytes; we're done
|
|
10351
|
+
if (end === start) return 0
|
|
10352
|
+
if (target.length === 0 || this.length === 0) return 0
|
|
10353
|
+
|
|
10354
|
+
// Fatal error conditions
|
|
10355
|
+
if (targetStart < 0) {
|
|
10356
|
+
throw new RangeError('targetStart out of bounds')
|
|
10357
|
+
}
|
|
10358
|
+
if (start < 0 || start >= this.length) throw new RangeError('Index out of range')
|
|
10359
|
+
if (end < 0) throw new RangeError('sourceEnd out of bounds')
|
|
10360
|
+
|
|
10361
|
+
// Are we oob?
|
|
10362
|
+
if (end > this.length) end = this.length
|
|
10363
|
+
if (target.length - targetStart < end - start) {
|
|
10364
|
+
end = target.length - targetStart + start
|
|
10365
|
+
}
|
|
10366
|
+
|
|
10367
|
+
const len = end - start
|
|
10368
|
+
|
|
10369
|
+
if (this === target && typeof Uint8Array.prototype.copyWithin === 'function') {
|
|
10370
|
+
// Use built-in when available, missing from IE11
|
|
10371
|
+
this.copyWithin(targetStart, start, end)
|
|
10372
|
+
} else {
|
|
10373
|
+
Uint8Array.prototype.set.call(
|
|
10374
|
+
target,
|
|
10375
|
+
this.subarray(start, end),
|
|
10376
|
+
targetStart
|
|
10377
|
+
)
|
|
10378
|
+
}
|
|
10379
|
+
|
|
10380
|
+
return len
|
|
10381
|
+
}
|
|
10382
|
+
|
|
10383
|
+
// Usage:
|
|
10384
|
+
// buffer.fill(number[, offset[, end]])
|
|
10385
|
+
// buffer.fill(buffer[, offset[, end]])
|
|
10386
|
+
// buffer.fill(string[, offset[, end]][, encoding])
|
|
10387
|
+
Buffer.prototype.fill = function fill (val, start, end, encoding) {
|
|
10388
|
+
// Handle string cases:
|
|
10389
|
+
if (typeof val === 'string') {
|
|
10390
|
+
if (typeof start === 'string') {
|
|
10391
|
+
encoding = start
|
|
10392
|
+
start = 0
|
|
10393
|
+
end = this.length
|
|
10394
|
+
} else if (typeof end === 'string') {
|
|
10395
|
+
encoding = end
|
|
10396
|
+
end = this.length
|
|
10397
|
+
}
|
|
10398
|
+
if (encoding !== undefined && typeof encoding !== 'string') {
|
|
10399
|
+
throw new TypeError('encoding must be a string')
|
|
10400
|
+
}
|
|
10401
|
+
if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) {
|
|
10402
|
+
throw new TypeError('Unknown encoding: ' + encoding)
|
|
10403
|
+
}
|
|
10404
|
+
if (val.length === 1) {
|
|
10405
|
+
const code = val.charCodeAt(0)
|
|
10406
|
+
if ((encoding === 'utf8' && code < 128) ||
|
|
10407
|
+
encoding === 'latin1') {
|
|
10408
|
+
// Fast path: If `val` fits into a single byte, use that numeric value.
|
|
10409
|
+
val = code
|
|
10410
|
+
}
|
|
10411
|
+
}
|
|
10412
|
+
} else if (typeof val === 'number') {
|
|
10413
|
+
val = val & 255
|
|
10414
|
+
} else if (typeof val === 'boolean') {
|
|
10415
|
+
val = Number(val)
|
|
10416
|
+
}
|
|
10417
|
+
|
|
10418
|
+
// Invalid ranges are not set to a default, so can range check early.
|
|
10419
|
+
if (start < 0 || this.length < start || this.length < end) {
|
|
10420
|
+
throw new RangeError('Out of range index')
|
|
10421
|
+
}
|
|
10422
|
+
|
|
10423
|
+
if (end <= start) {
|
|
10424
|
+
return this
|
|
10425
|
+
}
|
|
10426
|
+
|
|
10427
|
+
start = start >>> 0
|
|
10428
|
+
end = end === undefined ? this.length : end >>> 0
|
|
10429
|
+
|
|
10430
|
+
if (!val) val = 0
|
|
10431
|
+
|
|
10432
|
+
let i
|
|
10433
|
+
if (typeof val === 'number') {
|
|
10434
|
+
for (i = start; i < end; ++i) {
|
|
10435
|
+
this[i] = val
|
|
10436
|
+
}
|
|
10437
|
+
} else {
|
|
10438
|
+
const bytes = Buffer.isBuffer(val)
|
|
10439
|
+
? val
|
|
10440
|
+
: Buffer.from(val, encoding)
|
|
10441
|
+
const len = bytes.length
|
|
10442
|
+
if (len === 0) {
|
|
10443
|
+
throw new TypeError('The value "' + val +
|
|
10444
|
+
'" is invalid for argument "value"')
|
|
10445
|
+
}
|
|
10446
|
+
for (i = 0; i < end - start; ++i) {
|
|
10447
|
+
this[i + start] = bytes[i % len]
|
|
10448
|
+
}
|
|
10449
|
+
}
|
|
10450
|
+
|
|
10451
|
+
return this
|
|
10452
|
+
}
|
|
10453
|
+
|
|
10454
|
+
// CUSTOM ERRORS
|
|
10455
|
+
// =============
|
|
10456
|
+
|
|
10457
|
+
// Simplified versions from Node, changed for Buffer-only usage
|
|
10458
|
+
const errors = {}
|
|
10459
|
+
function E (sym, getMessage, Base) {
|
|
10460
|
+
errors[sym] = class NodeError extends Base {
|
|
10461
|
+
constructor () {
|
|
10462
|
+
super()
|
|
10463
|
+
|
|
10464
|
+
Object.defineProperty(this, 'message', {
|
|
10465
|
+
value: getMessage.apply(this, arguments),
|
|
10466
|
+
writable: true,
|
|
10467
|
+
configurable: true
|
|
10468
|
+
})
|
|
10469
|
+
|
|
10470
|
+
// Add the error code to the name to include it in the stack trace.
|
|
10471
|
+
this.name = `${this.name} [${sym}]`
|
|
10472
|
+
// Access the stack to generate the error message including the error code
|
|
10473
|
+
// from the name.
|
|
10474
|
+
this.stack // eslint-disable-line no-unused-expressions
|
|
10475
|
+
// Reset the name to the actual name.
|
|
10476
|
+
delete this.name
|
|
10477
|
+
}
|
|
10478
|
+
|
|
10479
|
+
get code () {
|
|
10480
|
+
return sym
|
|
10481
|
+
}
|
|
10482
|
+
|
|
10483
|
+
set code (value) {
|
|
10484
|
+
Object.defineProperty(this, 'code', {
|
|
10485
|
+
configurable: true,
|
|
10486
|
+
enumerable: true,
|
|
10487
|
+
value,
|
|
10488
|
+
writable: true
|
|
10489
|
+
})
|
|
10490
|
+
}
|
|
10491
|
+
|
|
10492
|
+
toString () {
|
|
10493
|
+
return `${this.name} [${sym}]: ${this.message}`
|
|
10494
|
+
}
|
|
10495
|
+
}
|
|
10496
|
+
}
|
|
10497
|
+
|
|
10498
|
+
E('ERR_BUFFER_OUT_OF_BOUNDS',
|
|
10499
|
+
function (name) {
|
|
10500
|
+
if (name) {
|
|
10501
|
+
return `${name} is outside of buffer bounds`
|
|
10502
|
+
}
|
|
10503
|
+
|
|
10504
|
+
return 'Attempt to access memory outside buffer bounds'
|
|
10505
|
+
}, RangeError)
|
|
10506
|
+
E('ERR_INVALID_ARG_TYPE',
|
|
10507
|
+
function (name, actual) {
|
|
10508
|
+
return `The "${name}" argument must be of type number. Received type ${typeof actual}`
|
|
10509
|
+
}, TypeError)
|
|
10510
|
+
E('ERR_OUT_OF_RANGE',
|
|
10511
|
+
function (str, range, input) {
|
|
10512
|
+
let msg = `The value of "${str}" is out of range.`
|
|
10513
|
+
let received = input
|
|
10514
|
+
if (Number.isInteger(input) && Math.abs(input) > 2 ** 32) {
|
|
10515
|
+
received = addNumericalSeparator(String(input))
|
|
10516
|
+
} else if (typeof input === 'bigint') {
|
|
10517
|
+
received = String(input)
|
|
10518
|
+
if (input > BigInt(2) ** BigInt(32) || input < -(BigInt(2) ** BigInt(32))) {
|
|
10519
|
+
received = addNumericalSeparator(received)
|
|
10520
|
+
}
|
|
10521
|
+
received += 'n'
|
|
10522
|
+
}
|
|
10523
|
+
msg += ` It must be ${range}. Received ${received}`
|
|
10524
|
+
return msg
|
|
10525
|
+
}, RangeError)
|
|
10526
|
+
|
|
10527
|
+
function addNumericalSeparator (val) {
|
|
10528
|
+
let res = ''
|
|
10529
|
+
let i = val.length
|
|
10530
|
+
const start = val[0] === '-' ? 1 : 0
|
|
10531
|
+
for (; i >= start + 4; i -= 3) {
|
|
10532
|
+
res = `_${val.slice(i - 3, i)}${res}`
|
|
10533
|
+
}
|
|
10534
|
+
return `${val.slice(0, i)}${res}`
|
|
10535
|
+
}
|
|
10536
|
+
|
|
10537
|
+
// CHECK FUNCTIONS
|
|
10538
|
+
// ===============
|
|
10539
|
+
|
|
10540
|
+
function checkBounds (buf, offset, byteLength) {
|
|
10541
|
+
validateNumber(offset, 'offset')
|
|
10542
|
+
if (buf[offset] === undefined || buf[offset + byteLength] === undefined) {
|
|
10543
|
+
boundsError(offset, buf.length - (byteLength + 1))
|
|
10544
|
+
}
|
|
10545
|
+
}
|
|
10546
|
+
|
|
10547
|
+
function checkIntBI (value, min, max, buf, offset, byteLength) {
|
|
10548
|
+
if (value > max || value < min) {
|
|
10549
|
+
const n = typeof min === 'bigint' ? 'n' : ''
|
|
10550
|
+
let range
|
|
10551
|
+
if (byteLength > 3) {
|
|
10552
|
+
if (min === 0 || min === BigInt(0)) {
|
|
10553
|
+
range = `>= 0${n} and < 2${n} ** ${(byteLength + 1) * 8}${n}`
|
|
10554
|
+
} else {
|
|
10555
|
+
range = `>= -(2${n} ** ${(byteLength + 1) * 8 - 1}${n}) and < 2 ** ` +
|
|
10556
|
+
`${(byteLength + 1) * 8 - 1}${n}`
|
|
10557
|
+
}
|
|
10558
|
+
} else {
|
|
10559
|
+
range = `>= ${min}${n} and <= ${max}${n}`
|
|
10560
|
+
}
|
|
10561
|
+
throw new errors.ERR_OUT_OF_RANGE('value', range, value)
|
|
10562
|
+
}
|
|
10563
|
+
checkBounds(buf, offset, byteLength)
|
|
10564
|
+
}
|
|
10565
|
+
|
|
10566
|
+
function validateNumber (value, name) {
|
|
10567
|
+
if (typeof value !== 'number') {
|
|
10568
|
+
throw new errors.ERR_INVALID_ARG_TYPE(name, 'number', value)
|
|
10569
|
+
}
|
|
10570
|
+
}
|
|
10571
|
+
|
|
10572
|
+
function boundsError (value, length, type) {
|
|
10573
|
+
if (Math.floor(value) !== value) {
|
|
10574
|
+
validateNumber(value, type)
|
|
10575
|
+
throw new errors.ERR_OUT_OF_RANGE(type || 'offset', 'an integer', value)
|
|
10576
|
+
}
|
|
10577
|
+
|
|
10578
|
+
if (length < 0) {
|
|
10579
|
+
throw new errors.ERR_BUFFER_OUT_OF_BOUNDS()
|
|
10580
|
+
}
|
|
10581
|
+
|
|
10582
|
+
throw new errors.ERR_OUT_OF_RANGE(type || 'offset',
|
|
10583
|
+
`>= ${type ? 1 : 0} and <= ${length}`,
|
|
10584
|
+
value)
|
|
10585
|
+
}
|
|
10586
|
+
|
|
10587
|
+
// HELPER FUNCTIONS
|
|
10588
|
+
// ================
|
|
10589
|
+
|
|
10590
|
+
const INVALID_BASE64_RE = /[^+/0-9A-Za-z-_]/g
|
|
10591
|
+
|
|
10592
|
+
function base64clean (str) {
|
|
10593
|
+
// Node takes equal signs as end of the Base64 encoding
|
|
10594
|
+
str = str.split('=')[0]
|
|
10595
|
+
// Node strips out invalid characters like \n and \t from the string, base64-js does not
|
|
10596
|
+
str = str.trim().replace(INVALID_BASE64_RE, '')
|
|
10597
|
+
// Node converts strings with length < 2 to ''
|
|
10598
|
+
if (str.length < 2) return ''
|
|
10599
|
+
// Node allows for non-padded base64 strings (missing trailing ===), base64-js does not
|
|
10600
|
+
while (str.length % 4 !== 0) {
|
|
10601
|
+
str = str + '='
|
|
10602
|
+
}
|
|
10603
|
+
return str
|
|
10604
|
+
}
|
|
10605
|
+
|
|
10606
|
+
function utf8ToBytes (string, units) {
|
|
10607
|
+
units = units || Infinity
|
|
10608
|
+
let codePoint
|
|
10609
|
+
const length = string.length
|
|
10610
|
+
let leadSurrogate = null
|
|
10611
|
+
const bytes = []
|
|
10612
|
+
|
|
10613
|
+
for (let i = 0; i < length; ++i) {
|
|
10614
|
+
codePoint = string.charCodeAt(i)
|
|
10615
|
+
|
|
10616
|
+
// is surrogate component
|
|
10617
|
+
if (codePoint > 0xD7FF && codePoint < 0xE000) {
|
|
10618
|
+
// last char was a lead
|
|
10619
|
+
if (!leadSurrogate) {
|
|
10620
|
+
// no lead yet
|
|
10621
|
+
if (codePoint > 0xDBFF) {
|
|
10622
|
+
// unexpected trail
|
|
10623
|
+
if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
|
|
10624
|
+
continue
|
|
10625
|
+
} else if (i + 1 === length) {
|
|
10626
|
+
// unpaired lead
|
|
10627
|
+
if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
|
|
10628
|
+
continue
|
|
10629
|
+
}
|
|
10630
|
+
|
|
10631
|
+
// valid lead
|
|
10632
|
+
leadSurrogate = codePoint
|
|
10633
|
+
|
|
10634
|
+
continue
|
|
10635
|
+
}
|
|
10636
|
+
|
|
10637
|
+
// 2 leads in a row
|
|
10638
|
+
if (codePoint < 0xDC00) {
|
|
10639
|
+
if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
|
|
10640
|
+
leadSurrogate = codePoint
|
|
10641
|
+
continue
|
|
10642
|
+
}
|
|
10643
|
+
|
|
10644
|
+
// valid surrogate pair
|
|
10645
|
+
codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000
|
|
10646
|
+
} else if (leadSurrogate) {
|
|
10647
|
+
// valid bmp char, but last char was a lead
|
|
10648
|
+
if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
|
|
10649
|
+
}
|
|
10650
|
+
|
|
10651
|
+
leadSurrogate = null
|
|
10652
|
+
|
|
10653
|
+
// encode utf8
|
|
10654
|
+
if (codePoint < 0x80) {
|
|
10655
|
+
if ((units -= 1) < 0) break
|
|
10656
|
+
bytes.push(codePoint)
|
|
10657
|
+
} else if (codePoint < 0x800) {
|
|
10658
|
+
if ((units -= 2) < 0) break
|
|
10659
|
+
bytes.push(
|
|
10660
|
+
codePoint >> 0x6 | 0xC0,
|
|
10661
|
+
codePoint & 0x3F | 0x80
|
|
10662
|
+
)
|
|
10663
|
+
} else if (codePoint < 0x10000) {
|
|
10664
|
+
if ((units -= 3) < 0) break
|
|
10665
|
+
bytes.push(
|
|
10666
|
+
codePoint >> 0xC | 0xE0,
|
|
10667
|
+
codePoint >> 0x6 & 0x3F | 0x80,
|
|
10668
|
+
codePoint & 0x3F | 0x80
|
|
10669
|
+
)
|
|
10670
|
+
} else if (codePoint < 0x110000) {
|
|
10671
|
+
if ((units -= 4) < 0) break
|
|
10672
|
+
bytes.push(
|
|
10673
|
+
codePoint >> 0x12 | 0xF0,
|
|
10674
|
+
codePoint >> 0xC & 0x3F | 0x80,
|
|
10675
|
+
codePoint >> 0x6 & 0x3F | 0x80,
|
|
10676
|
+
codePoint & 0x3F | 0x80
|
|
10677
|
+
)
|
|
10678
|
+
} else {
|
|
10679
|
+
throw new Error('Invalid code point')
|
|
10680
|
+
}
|
|
10681
|
+
}
|
|
10682
|
+
|
|
10683
|
+
return bytes
|
|
10684
|
+
}
|
|
10685
|
+
|
|
10686
|
+
function asciiToBytes (str) {
|
|
10687
|
+
const byteArray = []
|
|
10688
|
+
for (let i = 0; i < str.length; ++i) {
|
|
10689
|
+
// Node's code seems to be doing this and not & 0x7F..
|
|
10690
|
+
byteArray.push(str.charCodeAt(i) & 0xFF)
|
|
10691
|
+
}
|
|
10692
|
+
return byteArray
|
|
10693
|
+
}
|
|
10694
|
+
|
|
10695
|
+
function utf16leToBytes (str, units) {
|
|
10696
|
+
let c, hi, lo
|
|
10697
|
+
const byteArray = []
|
|
10698
|
+
for (let i = 0; i < str.length; ++i) {
|
|
10699
|
+
if ((units -= 2) < 0) break
|
|
10700
|
+
|
|
10701
|
+
c = str.charCodeAt(i)
|
|
10702
|
+
hi = c >> 8
|
|
10703
|
+
lo = c % 256
|
|
10704
|
+
byteArray.push(lo)
|
|
10705
|
+
byteArray.push(hi)
|
|
10706
|
+
}
|
|
10707
|
+
|
|
10708
|
+
return byteArray
|
|
10709
|
+
}
|
|
10710
|
+
|
|
10711
|
+
function base64ToBytes (str) {
|
|
10712
|
+
return base64.toByteArray(base64clean(str))
|
|
10713
|
+
}
|
|
10714
|
+
|
|
10715
|
+
function blitBuffer (src, dst, offset, length) {
|
|
10716
|
+
let i
|
|
10717
|
+
for (i = 0; i < length; ++i) {
|
|
10718
|
+
if ((i + offset >= dst.length) || (i >= src.length)) break
|
|
10719
|
+
dst[i + offset] = src[i]
|
|
10720
|
+
}
|
|
10721
|
+
return i
|
|
10722
|
+
}
|
|
10723
|
+
|
|
10724
|
+
// ArrayBuffer or Uint8Array objects from other contexts (i.e. iframes) do not pass
|
|
10725
|
+
// the `instanceof` check but they should be treated as of that type.
|
|
10726
|
+
// See: https://github.com/feross/buffer/issues/166
|
|
10727
|
+
function isInstance (obj, type) {
|
|
10728
|
+
return obj instanceof type ||
|
|
10729
|
+
(obj != null && obj.constructor != null && obj.constructor.name != null &&
|
|
10730
|
+
obj.constructor.name === type.name)
|
|
10731
|
+
}
|
|
10732
|
+
function numberIsNaN (obj) {
|
|
10733
|
+
// For IE11 support
|
|
10734
|
+
return obj !== obj // eslint-disable-line no-self-compare
|
|
10735
|
+
}
|
|
10736
|
+
|
|
10737
|
+
// Create lookup table for `toString('hex')`
|
|
10738
|
+
// See: https://github.com/feross/buffer/issues/219
|
|
10739
|
+
const hexSliceLookupTable = (function () {
|
|
10740
|
+
const alphabet = '0123456789abcdef'
|
|
10741
|
+
const table = new Array(256)
|
|
10742
|
+
for (let i = 0; i < 16; ++i) {
|
|
10743
|
+
const i16 = i * 16
|
|
10744
|
+
for (let j = 0; j < 16; ++j) {
|
|
10745
|
+
table[i16 + j] = alphabet[i] + alphabet[j]
|
|
10746
|
+
}
|
|
10747
|
+
}
|
|
10748
|
+
return table
|
|
10749
|
+
})()
|
|
10750
|
+
|
|
10751
|
+
// Return not function with Error if BigInt not supported
|
|
10752
|
+
function defineBigIntMethod (fn) {
|
|
10753
|
+
return typeof BigInt === 'undefined' ? BufferBigIntNotDefined : fn
|
|
10754
|
+
}
|
|
10755
|
+
|
|
10756
|
+
function BufferBigIntNotDefined () {
|
|
10757
|
+
throw new Error('BigInt not supported')
|
|
10758
|
+
}
|
|
10759
|
+
|
|
10760
|
+
|
|
8488
10761
|
/***/ }),
|
|
8489
10762
|
|
|
8490
10763
|
/***/ 81653:
|
|
@@ -47868,6 +50141,98 @@ function determineMost(chunk, items) {
|
|
|
47868
50141
|
}
|
|
47869
50142
|
|
|
47870
50143
|
|
|
50144
|
+
/***/ }),
|
|
50145
|
+
|
|
50146
|
+
/***/ 80645:
|
|
50147
|
+
/***/ (function(__unused_webpack_module, exports) {
|
|
50148
|
+
|
|
50149
|
+
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
50150
|
+
exports.read = function (buffer, offset, isLE, mLen, nBytes) {
|
|
50151
|
+
var e, m
|
|
50152
|
+
var eLen = (nBytes * 8) - mLen - 1
|
|
50153
|
+
var eMax = (1 << eLen) - 1
|
|
50154
|
+
var eBias = eMax >> 1
|
|
50155
|
+
var nBits = -7
|
|
50156
|
+
var i = isLE ? (nBytes - 1) : 0
|
|
50157
|
+
var d = isLE ? -1 : 1
|
|
50158
|
+
var s = buffer[offset + i]
|
|
50159
|
+
|
|
50160
|
+
i += d
|
|
50161
|
+
|
|
50162
|
+
e = s & ((1 << (-nBits)) - 1)
|
|
50163
|
+
s >>= (-nBits)
|
|
50164
|
+
nBits += eLen
|
|
50165
|
+
for (; nBits > 0; e = (e * 256) + buffer[offset + i], i += d, nBits -= 8) {}
|
|
50166
|
+
|
|
50167
|
+
m = e & ((1 << (-nBits)) - 1)
|
|
50168
|
+
e >>= (-nBits)
|
|
50169
|
+
nBits += mLen
|
|
50170
|
+
for (; nBits > 0; m = (m * 256) + buffer[offset + i], i += d, nBits -= 8) {}
|
|
50171
|
+
|
|
50172
|
+
if (e === 0) {
|
|
50173
|
+
e = 1 - eBias
|
|
50174
|
+
} else if (e === eMax) {
|
|
50175
|
+
return m ? NaN : ((s ? -1 : 1) * Infinity)
|
|
50176
|
+
} else {
|
|
50177
|
+
m = m + Math.pow(2, mLen)
|
|
50178
|
+
e = e - eBias
|
|
50179
|
+
}
|
|
50180
|
+
return (s ? -1 : 1) * m * Math.pow(2, e - mLen)
|
|
50181
|
+
}
|
|
50182
|
+
|
|
50183
|
+
exports.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
50184
|
+
var e, m, c
|
|
50185
|
+
var eLen = (nBytes * 8) - mLen - 1
|
|
50186
|
+
var eMax = (1 << eLen) - 1
|
|
50187
|
+
var eBias = eMax >> 1
|
|
50188
|
+
var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0)
|
|
50189
|
+
var i = isLE ? 0 : (nBytes - 1)
|
|
50190
|
+
var d = isLE ? 1 : -1
|
|
50191
|
+
var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0
|
|
50192
|
+
|
|
50193
|
+
value = Math.abs(value)
|
|
50194
|
+
|
|
50195
|
+
if (isNaN(value) || value === Infinity) {
|
|
50196
|
+
m = isNaN(value) ? 1 : 0
|
|
50197
|
+
e = eMax
|
|
50198
|
+
} else {
|
|
50199
|
+
e = Math.floor(Math.log(value) / Math.LN2)
|
|
50200
|
+
if (value * (c = Math.pow(2, -e)) < 1) {
|
|
50201
|
+
e--
|
|
50202
|
+
c *= 2
|
|
50203
|
+
}
|
|
50204
|
+
if (e + eBias >= 1) {
|
|
50205
|
+
value += rt / c
|
|
50206
|
+
} else {
|
|
50207
|
+
value += rt * Math.pow(2, 1 - eBias)
|
|
50208
|
+
}
|
|
50209
|
+
if (value * c >= 2) {
|
|
50210
|
+
e++
|
|
50211
|
+
c /= 2
|
|
50212
|
+
}
|
|
50213
|
+
|
|
50214
|
+
if (e + eBias >= eMax) {
|
|
50215
|
+
m = 0
|
|
50216
|
+
e = eMax
|
|
50217
|
+
} else if (e + eBias >= 1) {
|
|
50218
|
+
m = ((value * c) - 1) * Math.pow(2, mLen)
|
|
50219
|
+
e = e + eBias
|
|
50220
|
+
} else {
|
|
50221
|
+
m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen)
|
|
50222
|
+
e = 0
|
|
50223
|
+
}
|
|
50224
|
+
}
|
|
50225
|
+
|
|
50226
|
+
for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}
|
|
50227
|
+
|
|
50228
|
+
e = (e << mLen) | m
|
|
50229
|
+
eLen += mLen
|
|
50230
|
+
for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}
|
|
50231
|
+
|
|
50232
|
+
buffer[offset + i - d] |= s * 128
|
|
50233
|
+
}
|
|
50234
|
+
|
|
50235
|
+
|
|
47871
50236
|
/***/ }),
|
|
47872
50237
|
|
|
47873
50238
|
/***/ 88495:
|
|
@@ -204191,6 +206556,8 @@ if (GlobalVue) {
|
|
|
204191
206556
|
|
|
204192
206557
|
// EXTERNAL MODULE: ./node_modules/minify-css-string/dist/index.js
|
|
204193
206558
|
var dist = __webpack_require__(41742);
|
|
206559
|
+
// EXTERNAL MODULE: ./node_modules/buffer/index.js
|
|
206560
|
+
var buffer = __webpack_require__(48764);
|
|
204194
206561
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/App.vue?vue&type=template&id=0b74f09c&
|
|
204195
206562
|
var cov_1wtrlvywta = function () {
|
|
204196
206563
|
var path = "/Users/arangooj/papaemme/isabl_web/src/App.vue";
|
|
@@ -208653,7 +211020,7 @@ var MainSearchvue_type_template_id_2cb26e73_staticRenderFns = (cov_16wbf36ey0.s[
|
|
|
208653
211020
|
;// CONCATENATED MODULE: ./src/components/search/MainSearch.vue?vue&type=template&id=2cb26e73&
|
|
208654
211021
|
|
|
208655
211022
|
;// CONCATENATED MODULE: ./package.json
|
|
208656
|
-
var package_namespaceObject = {"i8":"0.3.
|
|
211023
|
+
var package_namespaceObject = {"i8":"0.3.25"};
|
|
208657
211024
|
;// CONCATENATED MODULE: ./src/utils/settings.js
|
|
208658
211025
|
var cov_1sxapcxhz3 = function () {
|
|
208659
211026
|
var path = "/Users/arangooj/papaemme/isabl_web/src/utils/settings.js";
|
|
@@ -211791,7 +214158,7 @@ var axios_default = /*#__PURE__*/__webpack_require__.n(axios);
|
|
|
211791
214158
|
function api_typeof(obj) { "@babel/helpers - typeof"; return api_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, api_typeof(obj); }
|
|
211792
214159
|
var cov_mm8t9pmbx = function () {
|
|
211793
214160
|
var path = "/Users/arangooj/papaemme/isabl_web/src/utils/api.js";
|
|
211794
|
-
var hash = "
|
|
214161
|
+
var hash = "a46b194059b1db0d104b2c37ef142480558c6022";
|
|
211795
214162
|
var global = new Function("return this")();
|
|
211796
214163
|
var gcv = "__coverage__";
|
|
211797
214164
|
var coverageData = {
|
|
@@ -213073,7 +215440,7 @@ var cov_mm8t9pmbx = function () {
|
|
|
213073
215440
|
column: 35
|
|
213074
215441
|
},
|
|
213075
215442
|
end: {
|
|
213076
|
-
line:
|
|
215443
|
+
line: 259,
|
|
213077
215444
|
column: 1
|
|
213078
215445
|
}
|
|
213079
215446
|
},
|
|
@@ -213089,11 +215456,11 @@ var cov_mm8t9pmbx = function () {
|
|
|
213089
215456
|
},
|
|
213090
215457
|
"129": {
|
|
213091
215458
|
start: {
|
|
213092
|
-
line:
|
|
215459
|
+
line: 258,
|
|
213093
215460
|
column: 2
|
|
213094
215461
|
},
|
|
213095
215462
|
end: {
|
|
213096
|
-
line:
|
|
215463
|
+
line: 258,
|
|
213097
215464
|
column: 68
|
|
213098
215465
|
}
|
|
213099
215466
|
}
|
|
@@ -214005,7 +216372,7 @@ var cov_mm8t9pmbx = function () {
|
|
|
214005
216372
|
column: 60
|
|
214006
216373
|
},
|
|
214007
216374
|
end: {
|
|
214008
|
-
line:
|
|
216375
|
+
line: 259,
|
|
214009
216376
|
column: 1
|
|
214010
216377
|
}
|
|
214011
216378
|
},
|
|
@@ -214656,7 +217023,7 @@ var cov_mm8t9pmbx = function () {
|
|
|
214656
217023
|
"13": [0, 0]
|
|
214657
217024
|
},
|
|
214658
217025
|
_coverageSchema: "43e27e138ebf9cfc5966b082cf9a028302ed4184",
|
|
214659
|
-
hash: "
|
|
217026
|
+
hash: "a46b194059b1db0d104b2c37ef142480558c6022"
|
|
214660
217027
|
};
|
|
214661
217028
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
214662
217029
|
if (coverage[path] && coverage[path].hash === hash) {
|
|
@@ -215086,6 +217453,7 @@ cov_mm8t9pmbx.s[127]++;
|
|
|
215086
217453
|
var getExperimentIGVURL = function getExperimentIGVURL(system_id, assembly) {
|
|
215087
217454
|
cov_mm8t9pmbx.f[37]++;
|
|
215088
217455
|
var endpoint = (cov_mm8t9pmbx.s[128]++, api_endpoints['experiments']);
|
|
217456
|
+
// const endpoint = "http://localhost:8000/api/v1/experiments"
|
|
215089
217457
|
cov_mm8t9pmbx.s[129]++;
|
|
215090
217458
|
return "".concat(endpoint, "/igv/").concat(system_id, "?").concat(queryParams({
|
|
215091
217459
|
assembly: assembly
|
|
@@ -351814,7 +354182,7 @@ if (true) {
|
|
|
351814
354182
|
;// CONCATENATED MODULE: ./src/main.js
|
|
351815
354183
|
var cov_2gmpkpkrd0 = function () {
|
|
351816
354184
|
var path = "/Users/arangooj/papaemme/isabl_web/src/main.js";
|
|
351817
|
-
var hash = "
|
|
354185
|
+
var hash = "4a166926cd64c878701672697fd0ae4ae7dbcaec";
|
|
351818
354186
|
var global = new Function("return this")();
|
|
351819
354187
|
var gcv = "__coverage__";
|
|
351820
354188
|
var coverageData = {
|
|
@@ -351822,11 +354190,11 @@ var cov_2gmpkpkrd0 = function () {
|
|
|
351822
354190
|
statementMap: {
|
|
351823
354191
|
"0": {
|
|
351824
354192
|
start: {
|
|
351825
|
-
line:
|
|
354193
|
+
line: 26,
|
|
351826
354194
|
column: 17
|
|
351827
354195
|
},
|
|
351828
354196
|
end: {
|
|
351829
|
-
line:
|
|
354197
|
+
line: 26,
|
|
351830
354198
|
column: 27
|
|
351831
354199
|
}
|
|
351832
354200
|
},
|
|
@@ -351837,177 +354205,177 @@ var cov_2gmpkpkrd0 = function () {
|
|
|
351837
354205
|
},
|
|
351838
354206
|
end: {
|
|
351839
354207
|
line: 28,
|
|
351840
|
-
column:
|
|
354208
|
+
column: 23
|
|
351841
354209
|
}
|
|
351842
354210
|
},
|
|
351843
354211
|
"2": {
|
|
351844
354212
|
start: {
|
|
351845
|
-
line:
|
|
354213
|
+
line: 31,
|
|
351846
354214
|
column: 0
|
|
351847
354215
|
},
|
|
351848
354216
|
end: {
|
|
351849
|
-
line:
|
|
351850
|
-
column:
|
|
354217
|
+
line: 31,
|
|
354218
|
+
column: 32
|
|
351851
354219
|
}
|
|
351852
354220
|
},
|
|
351853
354221
|
"3": {
|
|
351854
354222
|
start: {
|
|
351855
|
-
line:
|
|
354223
|
+
line: 32,
|
|
351856
354224
|
column: 0
|
|
351857
354225
|
},
|
|
351858
354226
|
end: {
|
|
351859
|
-
line:
|
|
351860
|
-
column:
|
|
354227
|
+
line: 32,
|
|
354228
|
+
column: 20
|
|
351861
354229
|
}
|
|
351862
354230
|
},
|
|
351863
354231
|
"4": {
|
|
351864
354232
|
start: {
|
|
351865
|
-
line:
|
|
354233
|
+
line: 33,
|
|
351866
354234
|
column: 0
|
|
351867
354235
|
},
|
|
351868
354236
|
end: {
|
|
351869
|
-
line:
|
|
351870
|
-
column:
|
|
354237
|
+
line: 33,
|
|
354238
|
+
column: 22
|
|
351871
354239
|
}
|
|
351872
354240
|
},
|
|
351873
354241
|
"5": {
|
|
351874
354242
|
start: {
|
|
351875
|
-
line:
|
|
354243
|
+
line: 34,
|
|
351876
354244
|
column: 0
|
|
351877
354245
|
},
|
|
351878
354246
|
end: {
|
|
351879
|
-
line:
|
|
354247
|
+
line: 34,
|
|
351880
354248
|
column: 21
|
|
351881
354249
|
}
|
|
351882
354250
|
},
|
|
351883
354251
|
"6": {
|
|
351884
354252
|
start: {
|
|
351885
|
-
line:
|
|
354253
|
+
line: 35,
|
|
351886
354254
|
column: 0
|
|
351887
354255
|
},
|
|
351888
354256
|
end: {
|
|
351889
|
-
line:
|
|
351890
|
-
column:
|
|
354257
|
+
line: 35,
|
|
354258
|
+
column: 21
|
|
351891
354259
|
}
|
|
351892
354260
|
},
|
|
351893
354261
|
"7": {
|
|
351894
354262
|
start: {
|
|
351895
|
-
line:
|
|
354263
|
+
line: 36,
|
|
351896
354264
|
column: 0
|
|
351897
354265
|
},
|
|
351898
354266
|
end: {
|
|
351899
|
-
line:
|
|
351900
|
-
column:
|
|
354267
|
+
line: 36,
|
|
354268
|
+
column: 23
|
|
351901
354269
|
}
|
|
351902
354270
|
},
|
|
351903
354271
|
"8": {
|
|
351904
354272
|
start: {
|
|
351905
|
-
line:
|
|
354273
|
+
line: 37,
|
|
351906
354274
|
column: 0
|
|
351907
354275
|
},
|
|
351908
354276
|
end: {
|
|
351909
|
-
line:
|
|
351910
|
-
column:
|
|
354277
|
+
line: 37,
|
|
354278
|
+
column: 18
|
|
351911
354279
|
}
|
|
351912
354280
|
},
|
|
351913
354281
|
"9": {
|
|
351914
354282
|
start: {
|
|
351915
|
-
line:
|
|
354283
|
+
line: 38,
|
|
351916
354284
|
column: 0
|
|
351917
354285
|
},
|
|
351918
354286
|
end: {
|
|
351919
|
-
line:
|
|
351920
|
-
column:
|
|
354287
|
+
line: 38,
|
|
354288
|
+
column: 29
|
|
351921
354289
|
}
|
|
351922
354290
|
},
|
|
351923
354291
|
"10": {
|
|
351924
354292
|
start: {
|
|
351925
|
-
line:
|
|
351926
|
-
column:
|
|
354293
|
+
line: 39,
|
|
354294
|
+
column: 0
|
|
351927
354295
|
},
|
|
351928
354296
|
end: {
|
|
351929
|
-
line:
|
|
351930
|
-
column:
|
|
354297
|
+
line: 39,
|
|
354298
|
+
column: 16
|
|
351931
354299
|
}
|
|
351932
354300
|
},
|
|
351933
354301
|
"11": {
|
|
351934
354302
|
start: {
|
|
351935
|
-
line:
|
|
351936
|
-
column:
|
|
354303
|
+
line: 41,
|
|
354304
|
+
column: 16
|
|
351937
354305
|
},
|
|
351938
354306
|
end: {
|
|
351939
354307
|
line: 60,
|
|
351940
|
-
column:
|
|
354308
|
+
column: 2
|
|
351941
354309
|
}
|
|
351942
354310
|
},
|
|
351943
354311
|
"12": {
|
|
351944
354312
|
start: {
|
|
351945
|
-
line:
|
|
354313
|
+
line: 63,
|
|
351946
354314
|
column: 0
|
|
351947
354315
|
},
|
|
351948
354316
|
end: {
|
|
351949
|
-
line:
|
|
351950
|
-
column:
|
|
354317
|
+
line: 63,
|
|
354318
|
+
column: 40
|
|
351951
354319
|
}
|
|
351952
354320
|
},
|
|
351953
354321
|
"13": {
|
|
351954
354322
|
start: {
|
|
351955
|
-
line:
|
|
354323
|
+
line: 64,
|
|
351956
354324
|
column: 0
|
|
351957
354325
|
},
|
|
351958
354326
|
end: {
|
|
351959
|
-
line:
|
|
351960
|
-
column:
|
|
354327
|
+
line: 64,
|
|
354328
|
+
column: 44
|
|
351961
354329
|
}
|
|
351962
354330
|
},
|
|
351963
354331
|
"14": {
|
|
351964
354332
|
start: {
|
|
351965
|
-
line:
|
|
354333
|
+
line: 65,
|
|
351966
354334
|
column: 0
|
|
351967
354335
|
},
|
|
351968
354336
|
end: {
|
|
351969
|
-
line:
|
|
351970
|
-
column:
|
|
354337
|
+
line: 65,
|
|
354338
|
+
column: 48
|
|
351971
354339
|
}
|
|
351972
354340
|
},
|
|
351973
354341
|
"15": {
|
|
351974
354342
|
start: {
|
|
351975
|
-
line:
|
|
354343
|
+
line: 66,
|
|
351976
354344
|
column: 0
|
|
351977
354345
|
},
|
|
351978
354346
|
end: {
|
|
351979
|
-
line:
|
|
354347
|
+
line: 66,
|
|
351980
354348
|
column: 44
|
|
351981
354349
|
}
|
|
351982
354350
|
},
|
|
351983
354351
|
"16": {
|
|
351984
354352
|
start: {
|
|
351985
|
-
line:
|
|
354353
|
+
line: 67,
|
|
351986
354354
|
column: 0
|
|
351987
354355
|
},
|
|
351988
354356
|
end: {
|
|
351989
|
-
line:
|
|
351990
|
-
column:
|
|
354357
|
+
line: 67,
|
|
354358
|
+
column: 44
|
|
351991
354359
|
}
|
|
351992
354360
|
},
|
|
351993
354361
|
"17": {
|
|
351994
354362
|
start: {
|
|
351995
|
-
line:
|
|
354363
|
+
line: 68,
|
|
351996
354364
|
column: 0
|
|
351997
354365
|
},
|
|
351998
354366
|
end: {
|
|
351999
|
-
line:
|
|
354367
|
+
line: 68,
|
|
352000
354368
|
column: 40
|
|
352001
354369
|
}
|
|
352002
354370
|
},
|
|
352003
354371
|
"18": {
|
|
352004
354372
|
start: {
|
|
352005
|
-
line:
|
|
354373
|
+
line: 69,
|
|
352006
354374
|
column: 0
|
|
352007
354375
|
},
|
|
352008
354376
|
end: {
|
|
352009
|
-
line:
|
|
352010
|
-
column:
|
|
354377
|
+
line: 69,
|
|
354378
|
+
column: 40
|
|
352011
354379
|
}
|
|
352012
354380
|
},
|
|
352013
354381
|
"19": {
|
|
@@ -352017,157 +354385,157 @@ var cov_2gmpkpkrd0 = function () {
|
|
|
352017
354385
|
},
|
|
352018
354386
|
end: {
|
|
352019
354387
|
line: 70,
|
|
352020
|
-
column:
|
|
354388
|
+
column: 34
|
|
352021
354389
|
}
|
|
352022
354390
|
},
|
|
352023
354391
|
"20": {
|
|
352024
354392
|
start: {
|
|
352025
|
-
line:
|
|
354393
|
+
line: 73,
|
|
352026
354394
|
column: 0
|
|
352027
354395
|
},
|
|
352028
354396
|
end: {
|
|
352029
|
-
line:
|
|
352030
|
-
column:
|
|
354397
|
+
line: 73,
|
|
354398
|
+
column: 42
|
|
352031
354399
|
}
|
|
352032
354400
|
},
|
|
352033
354401
|
"21": {
|
|
352034
354402
|
start: {
|
|
352035
|
-
line:
|
|
354403
|
+
line: 74,
|
|
352036
354404
|
column: 0
|
|
352037
354405
|
},
|
|
352038
354406
|
end: {
|
|
352039
|
-
line:
|
|
352040
|
-
column:
|
|
354407
|
+
line: 74,
|
|
354408
|
+
column: 44
|
|
352041
354409
|
}
|
|
352042
354410
|
},
|
|
352043
354411
|
"22": {
|
|
352044
354412
|
start: {
|
|
352045
|
-
line:
|
|
354413
|
+
line: 75,
|
|
352046
354414
|
column: 0
|
|
352047
354415
|
},
|
|
352048
354416
|
end: {
|
|
352049
|
-
line:
|
|
352050
|
-
column:
|
|
354417
|
+
line: 75,
|
|
354418
|
+
column: 46
|
|
352051
354419
|
}
|
|
352052
354420
|
},
|
|
352053
354421
|
"23": {
|
|
352054
354422
|
start: {
|
|
352055
|
-
line:
|
|
354423
|
+
line: 76,
|
|
352056
354424
|
column: 0
|
|
352057
354425
|
},
|
|
352058
354426
|
end: {
|
|
352059
|
-
line:
|
|
354427
|
+
line: 76,
|
|
352060
354428
|
column: 32
|
|
352061
354429
|
}
|
|
352062
354430
|
},
|
|
352063
354431
|
"24": {
|
|
352064
354432
|
start: {
|
|
352065
|
-
line:
|
|
354433
|
+
line: 77,
|
|
352066
354434
|
column: 0
|
|
352067
354435
|
},
|
|
352068
354436
|
end: {
|
|
352069
|
-
line:
|
|
352070
|
-
column:
|
|
354437
|
+
line: 77,
|
|
354438
|
+
column: 32
|
|
352071
354439
|
}
|
|
352072
354440
|
},
|
|
352073
354441
|
"25": {
|
|
352074
354442
|
start: {
|
|
352075
|
-
line:
|
|
354443
|
+
line: 78,
|
|
352076
354444
|
column: 0
|
|
352077
354445
|
},
|
|
352078
354446
|
end: {
|
|
352079
|
-
line:
|
|
352080
|
-
column:
|
|
354447
|
+
line: 78,
|
|
354448
|
+
column: 42
|
|
352081
354449
|
}
|
|
352082
354450
|
},
|
|
352083
354451
|
"26": {
|
|
352084
354452
|
start: {
|
|
352085
|
-
line:
|
|
354453
|
+
line: 79,
|
|
352086
354454
|
column: 0
|
|
352087
354455
|
},
|
|
352088
354456
|
end: {
|
|
352089
|
-
line:
|
|
352090
|
-
column:
|
|
354457
|
+
line: 79,
|
|
354458
|
+
column: 38
|
|
352091
354459
|
}
|
|
352092
354460
|
},
|
|
352093
354461
|
"27": {
|
|
352094
354462
|
start: {
|
|
352095
|
-
line:
|
|
354463
|
+
line: 80,
|
|
352096
354464
|
column: 0
|
|
352097
354465
|
},
|
|
352098
354466
|
end: {
|
|
352099
|
-
line:
|
|
352100
|
-
column:
|
|
354467
|
+
line: 80,
|
|
354468
|
+
column: 36
|
|
352101
354469
|
}
|
|
352102
354470
|
},
|
|
352103
354471
|
"28": {
|
|
352104
354472
|
start: {
|
|
352105
|
-
line:
|
|
354473
|
+
line: 81,
|
|
352106
354474
|
column: 0
|
|
352107
354475
|
},
|
|
352108
354476
|
end: {
|
|
352109
|
-
line:
|
|
352110
|
-
column:
|
|
354477
|
+
line: 81,
|
|
354478
|
+
column: 46
|
|
352111
354479
|
}
|
|
352112
354480
|
},
|
|
352113
354481
|
"29": {
|
|
352114
354482
|
start: {
|
|
352115
|
-
line:
|
|
354483
|
+
line: 82,
|
|
352116
354484
|
column: 0
|
|
352117
354485
|
},
|
|
352118
354486
|
end: {
|
|
352119
|
-
line:
|
|
352120
|
-
column:
|
|
354487
|
+
line: 82,
|
|
354488
|
+
column: 50
|
|
352121
354489
|
}
|
|
352122
354490
|
},
|
|
352123
354491
|
"30": {
|
|
352124
354492
|
start: {
|
|
352125
|
-
line:
|
|
354493
|
+
line: 83,
|
|
352126
354494
|
column: 0
|
|
352127
354495
|
},
|
|
352128
354496
|
end: {
|
|
352129
|
-
line:
|
|
352130
|
-
column:
|
|
354497
|
+
line: 83,
|
|
354498
|
+
column: 46
|
|
352131
354499
|
}
|
|
352132
354500
|
},
|
|
352133
354501
|
"31": {
|
|
352134
354502
|
start: {
|
|
352135
|
-
line:
|
|
354503
|
+
line: 84,
|
|
352136
354504
|
column: 0
|
|
352137
354505
|
},
|
|
352138
354506
|
end: {
|
|
352139
|
-
line:
|
|
354507
|
+
line: 84,
|
|
352140
354508
|
column: 58
|
|
352141
354509
|
}
|
|
352142
354510
|
},
|
|
352143
354511
|
"32": {
|
|
352144
354512
|
start: {
|
|
352145
|
-
line:
|
|
354513
|
+
line: 85,
|
|
352146
354514
|
column: 0
|
|
352147
354515
|
},
|
|
352148
354516
|
end: {
|
|
352149
|
-
line:
|
|
352150
|
-
column:
|
|
354517
|
+
line: 85,
|
|
354518
|
+
column: 58
|
|
352151
354519
|
}
|
|
352152
354520
|
},
|
|
352153
354521
|
"33": {
|
|
352154
354522
|
start: {
|
|
352155
|
-
line:
|
|
354523
|
+
line: 86,
|
|
352156
354524
|
column: 0
|
|
352157
354525
|
},
|
|
352158
354526
|
end: {
|
|
352159
|
-
line:
|
|
352160
|
-
column:
|
|
354527
|
+
line: 86,
|
|
354528
|
+
column: 44
|
|
352161
354529
|
}
|
|
352162
354530
|
},
|
|
352163
354531
|
"34": {
|
|
352164
354532
|
start: {
|
|
352165
|
-
line:
|
|
354533
|
+
line: 87,
|
|
352166
354534
|
column: 0
|
|
352167
354535
|
},
|
|
352168
354536
|
end: {
|
|
352169
|
-
line:
|
|
352170
|
-
column:
|
|
354537
|
+
line: 87,
|
|
354538
|
+
column: 39
|
|
352171
354539
|
}
|
|
352172
354540
|
},
|
|
352173
354541
|
"35": {
|
|
@@ -352176,287 +354544,297 @@ var cov_2gmpkpkrd0 = function () {
|
|
|
352176
354544
|
column: 0
|
|
352177
354545
|
},
|
|
352178
354546
|
end: {
|
|
352179
|
-
line:
|
|
352180
|
-
column:
|
|
354547
|
+
line: 88,
|
|
354548
|
+
column: 34
|
|
352181
354549
|
}
|
|
352182
354550
|
},
|
|
352183
354551
|
"36": {
|
|
352184
354552
|
start: {
|
|
352185
|
-
line:
|
|
354553
|
+
line: 91,
|
|
354554
|
+
column: 0
|
|
354555
|
+
},
|
|
354556
|
+
end: {
|
|
354557
|
+
line: 143,
|
|
354558
|
+
column: 4
|
|
354559
|
+
}
|
|
354560
|
+
},
|
|
354561
|
+
"37": {
|
|
354562
|
+
start: {
|
|
354563
|
+
line: 92,
|
|
352186
354564
|
column: 19
|
|
352187
354565
|
},
|
|
352188
354566
|
end: {
|
|
352189
|
-
line:
|
|
354567
|
+
line: 92,
|
|
352190
354568
|
column: 60
|
|
352191
354569
|
}
|
|
352192
354570
|
},
|
|
352193
|
-
"
|
|
354571
|
+
"38": {
|
|
352194
354572
|
start: {
|
|
352195
|
-
line:
|
|
354573
|
+
line: 93,
|
|
352196
354574
|
column: 2
|
|
352197
354575
|
},
|
|
352198
354576
|
end: {
|
|
352199
|
-
line:
|
|
354577
|
+
line: 142,
|
|
352200
354578
|
column: 5
|
|
352201
354579
|
}
|
|
352202
354580
|
},
|
|
352203
|
-
"
|
|
354581
|
+
"39": {
|
|
352204
354582
|
start: {
|
|
352205
|
-
line:
|
|
354583
|
+
line: 94,
|
|
352206
354584
|
column: 4
|
|
352207
354585
|
},
|
|
352208
354586
|
end: {
|
|
352209
|
-
line:
|
|
354587
|
+
line: 142,
|
|
352210
354588
|
column: 5
|
|
352211
354589
|
}
|
|
352212
354590
|
},
|
|
352213
|
-
"
|
|
354591
|
+
"40": {
|
|
352214
354592
|
start: {
|
|
352215
|
-
line:
|
|
354593
|
+
line: 95,
|
|
352216
354594
|
column: 6
|
|
352217
354595
|
},
|
|
352218
354596
|
end: {
|
|
352219
|
-
line:
|
|
354597
|
+
line: 97,
|
|
352220
354598
|
column: 56
|
|
352221
354599
|
}
|
|
352222
354600
|
},
|
|
352223
|
-
"
|
|
354601
|
+
"41": {
|
|
352224
354602
|
start: {
|
|
352225
|
-
line:
|
|
354603
|
+
line: 99,
|
|
352226
354604
|
column: 6
|
|
352227
354605
|
},
|
|
352228
354606
|
end: {
|
|
352229
|
-
line:
|
|
354607
|
+
line: 99,
|
|
352230
354608
|
column: 28
|
|
352231
354609
|
}
|
|
352232
354610
|
},
|
|
352233
|
-
"
|
|
354611
|
+
"42": {
|
|
352234
354612
|
start: {
|
|
352235
|
-
line:
|
|
354613
|
+
line: 100,
|
|
352236
354614
|
column: 6
|
|
352237
354615
|
},
|
|
352238
354616
|
end: {
|
|
352239
|
-
line:
|
|
354617
|
+
line: 117,
|
|
352240
354618
|
column: 7
|
|
352241
354619
|
}
|
|
352242
354620
|
},
|
|
352243
|
-
"
|
|
354621
|
+
"43": {
|
|
352244
354622
|
start: {
|
|
352245
|
-
line:
|
|
354623
|
+
line: 118,
|
|
352246
354624
|
column: 6
|
|
352247
354625
|
},
|
|
352248
354626
|
end: {
|
|
352249
|
-
line:
|
|
354627
|
+
line: 125,
|
|
352250
354628
|
column: 7
|
|
352251
354629
|
}
|
|
352252
354630
|
},
|
|
352253
|
-
"
|
|
354631
|
+
"44": {
|
|
352254
354632
|
start: {
|
|
352255
|
-
line:
|
|
354633
|
+
line: 119,
|
|
352256
354634
|
column: 8
|
|
352257
354635
|
},
|
|
352258
354636
|
end: {
|
|
352259
|
-
line:
|
|
354637
|
+
line: 124,
|
|
352260
354638
|
column: 9
|
|
352261
354639
|
}
|
|
352262
354640
|
},
|
|
352263
|
-
"
|
|
354641
|
+
"45": {
|
|
352264
354642
|
start: {
|
|
352265
|
-
line:
|
|
354643
|
+
line: 120,
|
|
352266
354644
|
column: 18
|
|
352267
354645
|
},
|
|
352268
354646
|
end: {
|
|
352269
|
-
line:
|
|
354647
|
+
line: 120,
|
|
352270
354648
|
column: 55
|
|
352271
354649
|
}
|
|
352272
354650
|
},
|
|
352273
|
-
"
|
|
354651
|
+
"46": {
|
|
352274
354652
|
start: {
|
|
352275
|
-
line:
|
|
354653
|
+
line: 121,
|
|
352276
354654
|
column: 10
|
|
352277
354655
|
},
|
|
352278
354656
|
end: {
|
|
352279
|
-
line:
|
|
354657
|
+
line: 121,
|
|
352280
354658
|
column: 22
|
|
352281
354659
|
}
|
|
352282
354660
|
},
|
|
352283
|
-
"
|
|
354661
|
+
"47": {
|
|
352284
354662
|
start: {
|
|
352285
|
-
line:
|
|
354663
|
+
line: 122,
|
|
352286
354664
|
column: 10
|
|
352287
354665
|
},
|
|
352288
354666
|
end: {
|
|
352289
|
-
line:
|
|
354667
|
+
line: 122,
|
|
352290
354668
|
column: 27
|
|
352291
354669
|
}
|
|
352292
354670
|
},
|
|
352293
|
-
"
|
|
354671
|
+
"48": {
|
|
352294
354672
|
start: {
|
|
352295
|
-
line:
|
|
354673
|
+
line: 123,
|
|
352296
354674
|
column: 10
|
|
352297
354675
|
},
|
|
352298
354676
|
end: {
|
|
352299
|
-
line:
|
|
354677
|
+
line: 123,
|
|
352300
354678
|
column: 26
|
|
352301
354679
|
}
|
|
352302
354680
|
},
|
|
352303
|
-
"
|
|
354681
|
+
"49": {
|
|
352304
354682
|
start: {
|
|
352305
|
-
line:
|
|
354683
|
+
line: 126,
|
|
352306
354684
|
column: 6
|
|
352307
354685
|
},
|
|
352308
354686
|
end: {
|
|
352309
|
-
line:
|
|
354687
|
+
line: 129,
|
|
352310
354688
|
column: 7
|
|
352311
354689
|
}
|
|
352312
354690
|
},
|
|
352313
|
-
"
|
|
354691
|
+
"50": {
|
|
352314
354692
|
start: {
|
|
352315
|
-
line:
|
|
354693
|
+
line: 126,
|
|
352316
354694
|
column: 19
|
|
352317
354695
|
},
|
|
352318
354696
|
end: {
|
|
352319
|
-
line:
|
|
354697
|
+
line: 126,
|
|
352320
354698
|
column: 20
|
|
352321
354699
|
}
|
|
352322
354700
|
},
|
|
352323
|
-
"
|
|
354701
|
+
"51": {
|
|
352324
354702
|
start: {
|
|
352325
|
-
line:
|
|
354703
|
+
line: 127,
|
|
352326
354704
|
column: 16
|
|
352327
354705
|
},
|
|
352328
354706
|
end: {
|
|
352329
|
-
line:
|
|
354707
|
+
line: 127,
|
|
352330
354708
|
column: 36
|
|
352331
354709
|
}
|
|
352332
354710
|
},
|
|
352333
|
-
"
|
|
354711
|
+
"52": {
|
|
352334
354712
|
start: {
|
|
352335
|
-
line:
|
|
354713
|
+
line: 128,
|
|
352336
354714
|
column: 8
|
|
352337
354715
|
},
|
|
352338
354716
|
end: {
|
|
352339
|
-
line:
|
|
354717
|
+
line: 128,
|
|
352340
354718
|
column: 43
|
|
352341
354719
|
}
|
|
352342
354720
|
},
|
|
352343
|
-
"
|
|
354721
|
+
"53": {
|
|
352344
354722
|
start: {
|
|
352345
|
-
line:
|
|
354723
|
+
line: 130,
|
|
352346
354724
|
column: 6
|
|
352347
354725
|
},
|
|
352348
354726
|
end: {
|
|
352349
|
-
line:
|
|
354727
|
+
line: 139,
|
|
352350
354728
|
column: 7
|
|
352351
354729
|
}
|
|
352352
354730
|
},
|
|
352353
|
-
"
|
|
354731
|
+
"54": {
|
|
352354
354732
|
start: {
|
|
352355
|
-
line:
|
|
354733
|
+
line: 131,
|
|
352356
354734
|
column: 16
|
|
352357
354735
|
},
|
|
352358
354736
|
end: {
|
|
352359
|
-
line:
|
|
354737
|
+
line: 131,
|
|
352360
354738
|
column: 48
|
|
352361
354739
|
}
|
|
352362
354740
|
},
|
|
352363
|
-
"
|
|
354741
|
+
"55": {
|
|
352364
354742
|
start: {
|
|
352365
|
-
line:
|
|
354743
|
+
line: 132,
|
|
352366
354744
|
column: 8
|
|
352367
354745
|
},
|
|
352368
354746
|
end: {
|
|
352369
|
-
line:
|
|
354747
|
+
line: 132,
|
|
352370
354748
|
column: 34
|
|
352371
354749
|
}
|
|
352372
354750
|
},
|
|
352373
|
-
"
|
|
354751
|
+
"56": {
|
|
352374
354752
|
start: {
|
|
352375
|
-
line:
|
|
354753
|
+
line: 133,
|
|
352376
354754
|
column: 8
|
|
352377
354755
|
},
|
|
352378
354756
|
end: {
|
|
352379
|
-
line:
|
|
354757
|
+
line: 133,
|
|
352380
354758
|
column: 20
|
|
352381
354759
|
}
|
|
352382
354760
|
},
|
|
352383
|
-
"
|
|
354761
|
+
"57": {
|
|
352384
354762
|
start: {
|
|
352385
|
-
line:
|
|
354763
|
+
line: 134,
|
|
352386
354764
|
column: 8
|
|
352387
354765
|
},
|
|
352388
354766
|
end: {
|
|
352389
|
-
line:
|
|
354767
|
+
line: 135,
|
|
352390
354768
|
column: 78
|
|
352391
354769
|
}
|
|
352392
354770
|
},
|
|
352393
|
-
"
|
|
354771
|
+
"58": {
|
|
352394
354772
|
start: {
|
|
352395
|
-
line:
|
|
354773
|
+
line: 136,
|
|
352396
354774
|
column: 16
|
|
352397
354775
|
},
|
|
352398
354776
|
end: {
|
|
352399
|
-
line:
|
|
354777
|
+
line: 136,
|
|
352400
354778
|
column: 58
|
|
352401
354779
|
}
|
|
352402
354780
|
},
|
|
352403
|
-
"
|
|
354781
|
+
"59": {
|
|
352404
354782
|
start: {
|
|
352405
|
-
line:
|
|
354783
|
+
line: 137,
|
|
352406
354784
|
column: 8
|
|
352407
354785
|
},
|
|
352408
354786
|
end: {
|
|
352409
|
-
line:
|
|
354787
|
+
line: 137,
|
|
352410
354788
|
column: 39
|
|
352411
354789
|
}
|
|
352412
354790
|
},
|
|
352413
|
-
"
|
|
354791
|
+
"60": {
|
|
352414
354792
|
start: {
|
|
352415
|
-
line:
|
|
354793
|
+
line: 138,
|
|
352416
354794
|
column: 8
|
|
352417
354795
|
},
|
|
352418
354796
|
end: {
|
|
352419
|
-
line:
|
|
354797
|
+
line: 138,
|
|
352420
354798
|
column: 34
|
|
352421
354799
|
}
|
|
352422
354800
|
},
|
|
352423
|
-
"
|
|
354801
|
+
"61": {
|
|
352424
354802
|
start: {
|
|
352425
|
-
line:
|
|
354803
|
+
line: 140,
|
|
352426
354804
|
column: 6
|
|
352427
354805
|
},
|
|
352428
354806
|
end: {
|
|
352429
|
-
line:
|
|
354807
|
+
line: 140,
|
|
352430
354808
|
column: 41
|
|
352431
354809
|
}
|
|
352432
354810
|
},
|
|
352433
|
-
"
|
|
354811
|
+
"62": {
|
|
352434
354812
|
start: {
|
|
352435
|
-
line:
|
|
354813
|
+
line: 141,
|
|
352436
354814
|
column: 6
|
|
352437
354815
|
},
|
|
352438
354816
|
end: {
|
|
352439
|
-
line:
|
|
354817
|
+
line: 141,
|
|
352440
354818
|
column: 45
|
|
352441
354819
|
}
|
|
352442
354820
|
},
|
|
352443
|
-
"
|
|
354821
|
+
"63": {
|
|
352444
354822
|
start: {
|
|
352445
|
-
line:
|
|
354823
|
+
line: 145,
|
|
352446
354824
|
column: 17
|
|
352447
354825
|
},
|
|
352448
354826
|
end: {
|
|
352449
|
-
line:
|
|
354827
|
+
line: 150,
|
|
352450
354828
|
column: 23
|
|
352451
354829
|
}
|
|
352452
354830
|
},
|
|
352453
|
-
"
|
|
354831
|
+
"64": {
|
|
352454
354832
|
start: {
|
|
352455
|
-
line:
|
|
354833
|
+
line: 149,
|
|
352456
354834
|
column: 15
|
|
352457
354835
|
},
|
|
352458
354836
|
end: {
|
|
352459
|
-
line:
|
|
354837
|
+
line: 149,
|
|
352460
354838
|
column: 21
|
|
352461
354839
|
}
|
|
352462
354840
|
}
|
|
@@ -352466,297 +354844,297 @@ var cov_2gmpkpkrd0 = function () {
|
|
|
352466
354844
|
name: "(anonymous_0)",
|
|
352467
354845
|
decl: {
|
|
352468
354846
|
start: {
|
|
352469
|
-
line:
|
|
354847
|
+
line: 91,
|
|
352470
354848
|
column: 2
|
|
352471
354849
|
},
|
|
352472
354850
|
end: {
|
|
352473
|
-
line:
|
|
354851
|
+
line: 91,
|
|
352474
354852
|
column: 3
|
|
352475
354853
|
}
|
|
352476
354854
|
},
|
|
352477
354855
|
loc: {
|
|
352478
354856
|
start: {
|
|
352479
|
-
line:
|
|
354857
|
+
line: 91,
|
|
352480
354858
|
column: 13
|
|
352481
354859
|
},
|
|
352482
354860
|
end: {
|
|
352483
|
-
line:
|
|
354861
|
+
line: 143,
|
|
352484
354862
|
column: 1
|
|
352485
354863
|
}
|
|
352486
354864
|
},
|
|
352487
|
-
line:
|
|
354865
|
+
line: 91
|
|
352488
354866
|
},
|
|
352489
354867
|
"1": {
|
|
352490
354868
|
name: "(anonymous_1)",
|
|
352491
354869
|
decl: {
|
|
352492
354870
|
start: {
|
|
352493
|
-
line:
|
|
354871
|
+
line: 118,
|
|
352494
354872
|
column: 26
|
|
352495
354873
|
},
|
|
352496
354874
|
end: {
|
|
352497
|
-
line:
|
|
354875
|
+
line: 118,
|
|
352498
354876
|
column: 27
|
|
352499
354877
|
}
|
|
352500
354878
|
},
|
|
352501
354879
|
loc: {
|
|
352502
354880
|
start: {
|
|
352503
|
-
line:
|
|
354881
|
+
line: 118,
|
|
352504
354882
|
column: 38
|
|
352505
354883
|
},
|
|
352506
354884
|
end: {
|
|
352507
|
-
line:
|
|
354885
|
+
line: 125,
|
|
352508
354886
|
column: 7
|
|
352509
354887
|
}
|
|
352510
354888
|
},
|
|
352511
|
-
line:
|
|
354889
|
+
line: 118
|
|
352512
354890
|
},
|
|
352513
354891
|
"2": {
|
|
352514
354892
|
name: "(anonymous_2)",
|
|
352515
354893
|
decl: {
|
|
352516
354894
|
start: {
|
|
352517
|
-
line:
|
|
354895
|
+
line: 119,
|
|
352518
354896
|
column: 15
|
|
352519
354897
|
},
|
|
352520
354898
|
end: {
|
|
352521
|
-
line:
|
|
354899
|
+
line: 119,
|
|
352522
354900
|
column: 16
|
|
352523
354901
|
}
|
|
352524
354902
|
},
|
|
352525
354903
|
loc: {
|
|
352526
354904
|
start: {
|
|
352527
|
-
line:
|
|
354905
|
+
line: 119,
|
|
352528
354906
|
column: 26
|
|
352529
354907
|
},
|
|
352530
354908
|
end: {
|
|
352531
|
-
line:
|
|
354909
|
+
line: 124,
|
|
352532
354910
|
column: 9
|
|
352533
354911
|
}
|
|
352534
354912
|
},
|
|
352535
|
-
line:
|
|
354913
|
+
line: 119
|
|
352536
354914
|
},
|
|
352537
354915
|
"3": {
|
|
352538
354916
|
name: "(anonymous_3)",
|
|
352539
354917
|
decl: {
|
|
352540
354918
|
start: {
|
|
352541
|
-
line:
|
|
354919
|
+
line: 130,
|
|
352542
354920
|
column: 23
|
|
352543
354921
|
},
|
|
352544
354922
|
end: {
|
|
352545
|
-
line:
|
|
354923
|
+
line: 130,
|
|
352546
354924
|
column: 24
|
|
352547
354925
|
}
|
|
352548
354926
|
},
|
|
352549
354927
|
loc: {
|
|
352550
354928
|
start: {
|
|
352551
|
-
line:
|
|
354929
|
+
line: 130,
|
|
352552
354930
|
column: 38
|
|
352553
354931
|
},
|
|
352554
354932
|
end: {
|
|
352555
|
-
line:
|
|
354933
|
+
line: 139,
|
|
352556
354934
|
column: 7
|
|
352557
354935
|
}
|
|
352558
354936
|
},
|
|
352559
|
-
line:
|
|
354937
|
+
line: 130
|
|
352560
354938
|
},
|
|
352561
354939
|
"4": {
|
|
352562
354940
|
name: "(anonymous_4)",
|
|
352563
354941
|
decl: {
|
|
352564
354942
|
start: {
|
|
352565
|
-
line:
|
|
354943
|
+
line: 149,
|
|
352566
354944
|
column: 10
|
|
352567
354945
|
},
|
|
352568
354946
|
end: {
|
|
352569
|
-
line:
|
|
354947
|
+
line: 149,
|
|
352570
354948
|
column: 11
|
|
352571
354949
|
}
|
|
352572
354950
|
},
|
|
352573
354951
|
loc: {
|
|
352574
354952
|
start: {
|
|
352575
|
-
line:
|
|
354953
|
+
line: 149,
|
|
352576
354954
|
column: 15
|
|
352577
354955
|
},
|
|
352578
354956
|
end: {
|
|
352579
|
-
line:
|
|
354957
|
+
line: 149,
|
|
352580
354958
|
column: 21
|
|
352581
354959
|
}
|
|
352582
354960
|
},
|
|
352583
|
-
line:
|
|
354961
|
+
line: 149
|
|
352584
354962
|
}
|
|
352585
354963
|
},
|
|
352586
354964
|
branchMap: {
|
|
352587
354965
|
"0": {
|
|
352588
354966
|
loc: {
|
|
352589
354967
|
start: {
|
|
352590
|
-
line:
|
|
354968
|
+
line: 87,
|
|
352591
354969
|
column: 22
|
|
352592
354970
|
},
|
|
352593
354971
|
end: {
|
|
352594
|
-
line:
|
|
354972
|
+
line: 87,
|
|
352595
354973
|
column: 39
|
|
352596
354974
|
}
|
|
352597
354975
|
},
|
|
352598
354976
|
type: "binary-expr",
|
|
352599
354977
|
locations: [{
|
|
352600
354978
|
start: {
|
|
352601
|
-
line:
|
|
354979
|
+
line: 87,
|
|
352602
354980
|
column: 22
|
|
352603
354981
|
},
|
|
352604
354982
|
end: {
|
|
352605
|
-
line:
|
|
354983
|
+
line: 87,
|
|
352606
354984
|
column: 33
|
|
352607
354985
|
}
|
|
352608
354986
|
}, {
|
|
352609
354987
|
start: {
|
|
352610
|
-
line:
|
|
354988
|
+
line: 87,
|
|
352611
354989
|
column: 37
|
|
352612
354990
|
},
|
|
352613
354991
|
end: {
|
|
352614
|
-
line:
|
|
354992
|
+
line: 87,
|
|
352615
354993
|
column: 39
|
|
352616
354994
|
}
|
|
352617
354995
|
}],
|
|
352618
|
-
line:
|
|
354996
|
+
line: 87
|
|
352619
354997
|
},
|
|
352620
354998
|
"1": {
|
|
352621
354999
|
loc: {
|
|
352622
355000
|
start: {
|
|
352623
|
-
line:
|
|
355001
|
+
line: 92,
|
|
352624
355002
|
column: 38
|
|
352625
355003
|
},
|
|
352626
355004
|
end: {
|
|
352627
|
-
line:
|
|
355005
|
+
line: 92,
|
|
352628
355006
|
column: 60
|
|
352629
355007
|
}
|
|
352630
355008
|
},
|
|
352631
355009
|
type: "binary-expr",
|
|
352632
355010
|
locations: [{
|
|
352633
355011
|
start: {
|
|
352634
|
-
line:
|
|
355012
|
+
line: 92,
|
|
352635
355013
|
column: 38
|
|
352636
355014
|
},
|
|
352637
355015
|
end: {
|
|
352638
|
-
line:
|
|
355016
|
+
line: 92,
|
|
352639
355017
|
column: 54
|
|
352640
355018
|
}
|
|
352641
355019
|
}, {
|
|
352642
355020
|
start: {
|
|
352643
|
-
line:
|
|
355021
|
+
line: 92,
|
|
352644
355022
|
column: 58
|
|
352645
355023
|
},
|
|
352646
355024
|
end: {
|
|
352647
|
-
line:
|
|
355025
|
+
line: 92,
|
|
352648
355026
|
column: 60
|
|
352649
355027
|
}
|
|
352650
355028
|
}],
|
|
352651
|
-
line:
|
|
355029
|
+
line: 92
|
|
352652
355030
|
},
|
|
352653
355031
|
"2": {
|
|
352654
355032
|
loc: {
|
|
352655
355033
|
start: {
|
|
352656
|
-
line:
|
|
355034
|
+
line: 93,
|
|
352657
355035
|
column: 2
|
|
352658
355036
|
},
|
|
352659
355037
|
end: {
|
|
352660
|
-
line:
|
|
355038
|
+
line: 142,
|
|
352661
355039
|
column: 5
|
|
352662
355040
|
}
|
|
352663
355041
|
},
|
|
352664
355042
|
type: "if",
|
|
352665
355043
|
locations: [{
|
|
352666
355044
|
start: {
|
|
352667
|
-
line:
|
|
355045
|
+
line: 93,
|
|
352668
355046
|
column: 2
|
|
352669
355047
|
},
|
|
352670
355048
|
end: {
|
|
352671
|
-
line:
|
|
355049
|
+
line: 142,
|
|
352672
355050
|
column: 5
|
|
352673
355051
|
}
|
|
352674
355052
|
}, {
|
|
352675
355053
|
start: {
|
|
352676
|
-
line:
|
|
355054
|
+
line: 93,
|
|
352677
355055
|
column: 2
|
|
352678
355056
|
},
|
|
352679
355057
|
end: {
|
|
352680
|
-
line:
|
|
355058
|
+
line: 142,
|
|
352681
355059
|
column: 5
|
|
352682
355060
|
}
|
|
352683
355061
|
}],
|
|
352684
|
-
line:
|
|
355062
|
+
line: 93
|
|
352685
355063
|
},
|
|
352686
355064
|
"3": {
|
|
352687
355065
|
loc: {
|
|
352688
355066
|
start: {
|
|
352689
|
-
line:
|
|
355067
|
+
line: 94,
|
|
352690
355068
|
column: 4
|
|
352691
355069
|
},
|
|
352692
355070
|
end: {
|
|
352693
|
-
line:
|
|
355071
|
+
line: 142,
|
|
352694
355072
|
column: 5
|
|
352695
355073
|
}
|
|
352696
355074
|
},
|
|
352697
355075
|
type: "if",
|
|
352698
355076
|
locations: [{
|
|
352699
355077
|
start: {
|
|
352700
|
-
line:
|
|
355078
|
+
line: 94,
|
|
352701
355079
|
column: 4
|
|
352702
355080
|
},
|
|
352703
355081
|
end: {
|
|
352704
|
-
line:
|
|
355082
|
+
line: 142,
|
|
352705
355083
|
column: 5
|
|
352706
355084
|
}
|
|
352707
355085
|
}, {
|
|
352708
355086
|
start: {
|
|
352709
|
-
line:
|
|
355087
|
+
line: 94,
|
|
352710
355088
|
column: 4
|
|
352711
355089
|
},
|
|
352712
355090
|
end: {
|
|
352713
|
-
line:
|
|
355091
|
+
line: 142,
|
|
352714
355092
|
column: 5
|
|
352715
355093
|
}
|
|
352716
355094
|
}],
|
|
352717
|
-
line:
|
|
355095
|
+
line: 94
|
|
352718
355096
|
},
|
|
352719
355097
|
"4": {
|
|
352720
355098
|
loc: {
|
|
352721
355099
|
start: {
|
|
352722
|
-
line:
|
|
355100
|
+
line: 95,
|
|
352723
355101
|
column: 6
|
|
352724
355102
|
},
|
|
352725
355103
|
end: {
|
|
352726
|
-
line:
|
|
355104
|
+
line: 97,
|
|
352727
355105
|
column: 56
|
|
352728
355106
|
}
|
|
352729
355107
|
},
|
|
352730
355108
|
type: "binary-expr",
|
|
352731
355109
|
locations: [{
|
|
352732
355110
|
start: {
|
|
352733
|
-
line:
|
|
355111
|
+
line: 95,
|
|
352734
355112
|
column: 6
|
|
352735
355113
|
},
|
|
352736
355114
|
end: {
|
|
352737
|
-
line:
|
|
355115
|
+
line: 95,
|
|
352738
355116
|
column: 20
|
|
352739
355117
|
}
|
|
352740
355118
|
}, {
|
|
352741
355119
|
start: {
|
|
352742
|
-
line:
|
|
355120
|
+
line: 96,
|
|
352743
355121
|
column: 8
|
|
352744
355122
|
},
|
|
352745
355123
|
end: {
|
|
352746
|
-
line:
|
|
355124
|
+
line: 96,
|
|
352747
355125
|
column: 21
|
|
352748
355126
|
}
|
|
352749
355127
|
}, {
|
|
352750
355128
|
start: {
|
|
352751
|
-
line:
|
|
355129
|
+
line: 97,
|
|
352752
355130
|
column: 8
|
|
352753
355131
|
},
|
|
352754
355132
|
end: {
|
|
352755
|
-
line:
|
|
355133
|
+
line: 97,
|
|
352756
355134
|
column: 56
|
|
352757
355135
|
}
|
|
352758
355136
|
}],
|
|
352759
|
-
line:
|
|
355137
|
+
line: 95
|
|
352760
355138
|
}
|
|
352761
355139
|
},
|
|
352762
355140
|
s: {
|
|
@@ -352823,7 +355201,8 @@ var cov_2gmpkpkrd0 = function () {
|
|
|
352823
355201
|
"60": 0,
|
|
352824
355202
|
"61": 0,
|
|
352825
355203
|
"62": 0,
|
|
352826
|
-
"63": 0
|
|
355204
|
+
"63": 0,
|
|
355205
|
+
"64": 0
|
|
352827
355206
|
},
|
|
352828
355207
|
f: {
|
|
352829
355208
|
"0": 0,
|
|
@@ -352840,7 +355219,7 @@ var cov_2gmpkpkrd0 = function () {
|
|
|
352840
355219
|
"4": [0, 0, 0]
|
|
352841
355220
|
},
|
|
352842
355221
|
_coverageSchema: "43e27e138ebf9cfc5966b082cf9a028302ed4184",
|
|
352843
|
-
hash: "
|
|
355222
|
+
hash: "4a166926cd64c878701672697fd0ae4ae7dbcaec"
|
|
352844
355223
|
};
|
|
352845
355224
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
352846
355225
|
if (coverage[path] && coverage[path].hash === hash) {
|
|
@@ -352867,30 +355246,33 @@ var cov_2gmpkpkrd0 = function () {
|
|
|
352867
355246
|
|
|
352868
355247
|
|
|
352869
355248
|
|
|
355249
|
+
|
|
352870
355250
|
|
|
352871
355251
|
|
|
352872
355252
|
var main_settings = (cov_2gmpkpkrd0.s[0]++, settings());
|
|
355253
|
+
cov_2gmpkpkrd0.s[1]++;
|
|
355254
|
+
window.Buffer = buffer/* Buffer */.lW;
|
|
352873
355255
|
|
|
352874
355256
|
// Vue config, mixins and plugins
|
|
352875
|
-
cov_2gmpkpkrd0.s[1]++;
|
|
352876
|
-
(external_commonjs_vue_commonjs2_vue_root_Vue_default()).config.productionTip = false;
|
|
352877
355257
|
cov_2gmpkpkrd0.s[2]++;
|
|
352878
|
-
external_commonjs_vue_commonjs2_vue_root_Vue_default().
|
|
355258
|
+
(external_commonjs_vue_commonjs2_vue_root_Vue_default()).config.productionTip = false;
|
|
352879
355259
|
cov_2gmpkpkrd0.s[3]++;
|
|
352880
|
-
external_commonjs_vue_commonjs2_vue_root_Vue_default().mixin(
|
|
355260
|
+
external_commonjs_vue_commonjs2_vue_root_Vue_default().mixin(mixins_auth);
|
|
352881
355261
|
cov_2gmpkpkrd0.s[4]++;
|
|
352882
|
-
external_commonjs_vue_commonjs2_vue_root_Vue_default().mixin(
|
|
355262
|
+
external_commonjs_vue_commonjs2_vue_root_Vue_default().mixin(fields);
|
|
352883
355263
|
cov_2gmpkpkrd0.s[5]++;
|
|
352884
|
-
external_commonjs_vue_commonjs2_vue_root_Vue_default().
|
|
355264
|
+
external_commonjs_vue_commonjs2_vue_root_Vue_default().mixin(mixins_files);
|
|
352885
355265
|
cov_2gmpkpkrd0.s[6]++;
|
|
352886
|
-
external_commonjs_vue_commonjs2_vue_root_Vue_default().use((
|
|
355266
|
+
external_commonjs_vue_commonjs2_vue_root_Vue_default().use((vue_clipboard_default()));
|
|
352887
355267
|
cov_2gmpkpkrd0.s[7]++;
|
|
352888
|
-
external_commonjs_vue_commonjs2_vue_root_Vue_default().use((
|
|
355268
|
+
external_commonjs_vue_commonjs2_vue_root_Vue_default().use((vue_highlightjs_default()));
|
|
352889
355269
|
cov_2gmpkpkrd0.s[8]++;
|
|
352890
|
-
external_commonjs_vue_commonjs2_vue_root_Vue_default().use(
|
|
355270
|
+
external_commonjs_vue_commonjs2_vue_root_Vue_default().use((v_hotkey_default()));
|
|
352891
355271
|
cov_2gmpkpkrd0.s[9]++;
|
|
355272
|
+
external_commonjs_vue_commonjs2_vue_root_Vue_default().use(vue_observe_visibility_esm);
|
|
355273
|
+
cov_2gmpkpkrd0.s[10]++;
|
|
352892
355274
|
external_commonjs_vue_commonjs2_vue_root_Vue_default().use((vuetify_default()));
|
|
352893
|
-
var main_vuetify = (cov_2gmpkpkrd0.s[
|
|
355275
|
+
var main_vuetify = (cov_2gmpkpkrd0.s[11]++, new (vuetify_default())({
|
|
352894
355276
|
theme: {
|
|
352895
355277
|
themes: {
|
|
352896
355278
|
light: main_settings.lightTheme,
|
|
@@ -352913,129 +355295,129 @@ var main_vuetify = (cov_2gmpkpkrd0.s[10]++, new (vuetify_default())({
|
|
|
352913
355295
|
}));
|
|
352914
355296
|
|
|
352915
355297
|
// Filters are available as helpers in the templates like {{ param | filter }}
|
|
352916
|
-
cov_2gmpkpkrd0.s[11]++;
|
|
352917
|
-
external_commonjs_vue_commonjs2_vue_root_Vue_default().filter('camelify', helpers/* default.camelify */.ZP.camelify);
|
|
352918
355298
|
cov_2gmpkpkrd0.s[12]++;
|
|
352919
|
-
external_commonjs_vue_commonjs2_vue_root_Vue_default().filter('
|
|
355299
|
+
external_commonjs_vue_commonjs2_vue_root_Vue_default().filter('camelify', helpers/* default.camelify */.ZP.camelify);
|
|
352920
355300
|
cov_2gmpkpkrd0.s[13]++;
|
|
352921
|
-
external_commonjs_vue_commonjs2_vue_root_Vue_default().filter('
|
|
355301
|
+
external_commonjs_vue_commonjs2_vue_root_Vue_default().filter('capitalize', helpers/* default.capitalize */.ZP.capitalize);
|
|
352922
355302
|
cov_2gmpkpkrd0.s[14]++;
|
|
352923
|
-
external_commonjs_vue_commonjs2_vue_root_Vue_default().filter('
|
|
355303
|
+
external_commonjs_vue_commonjs2_vue_root_Vue_default().filter('formatNumber', helpers/* default.formatNumber */.ZP.formatNumber);
|
|
352924
355304
|
cov_2gmpkpkrd0.s[15]++;
|
|
352925
|
-
external_commonjs_vue_commonjs2_vue_root_Vue_default().filter('
|
|
355305
|
+
external_commonjs_vue_commonjs2_vue_root_Vue_default().filter('formatDate', helpers/* default.formatDate */.ZP.formatDate);
|
|
352926
355306
|
cov_2gmpkpkrd0.s[16]++;
|
|
352927
|
-
external_commonjs_vue_commonjs2_vue_root_Vue_default().filter('
|
|
355307
|
+
external_commonjs_vue_commonjs2_vue_root_Vue_default().filter('formatSize', helpers/* default.formatSize */.ZP.formatSize);
|
|
352928
355308
|
cov_2gmpkpkrd0.s[17]++;
|
|
352929
|
-
external_commonjs_vue_commonjs2_vue_root_Vue_default().filter('
|
|
355309
|
+
external_commonjs_vue_commonjs2_vue_root_Vue_default().filter('prettify', helpers/* default.prettify */.ZP.prettify);
|
|
352930
355310
|
cov_2gmpkpkrd0.s[18]++;
|
|
355311
|
+
external_commonjs_vue_commonjs2_vue_root_Vue_default().filter('truncate', helpers/* default.truncate */.ZP.truncate);
|
|
355312
|
+
cov_2gmpkpkrd0.s[19]++;
|
|
352931
355313
|
external_commonjs_vue_commonjs2_vue_root_Vue_default().filter('round', helpers/* default.round */.ZP.round);
|
|
352932
355314
|
|
|
352933
355315
|
// Instance methods and properties are available in each Vue instance
|
|
352934
|
-
cov_2gmpkpkrd0.s[19]++;
|
|
352935
|
-
(external_commonjs_vue_commonjs2_vue_root_Vue_default()).prototype.$camelify = helpers/* default.camelify */.ZP.camelify;
|
|
352936
355316
|
cov_2gmpkpkrd0.s[20]++;
|
|
352937
|
-
(external_commonjs_vue_commonjs2_vue_root_Vue_default()).prototype.$
|
|
355317
|
+
(external_commonjs_vue_commonjs2_vue_root_Vue_default()).prototype.$camelify = helpers/* default.camelify */.ZP.camelify;
|
|
352938
355318
|
cov_2gmpkpkrd0.s[21]++;
|
|
352939
|
-
(external_commonjs_vue_commonjs2_vue_root_Vue_default()).prototype.$
|
|
355319
|
+
(external_commonjs_vue_commonjs2_vue_root_Vue_default()).prototype.$unslugify = helpers/* default.unslugify */.ZP.unslugify;
|
|
352940
355320
|
cov_2gmpkpkrd0.s[22]++;
|
|
352941
|
-
(external_commonjs_vue_commonjs2_vue_root_Vue_default()).prototype.$
|
|
355321
|
+
(external_commonjs_vue_commonjs2_vue_root_Vue_default()).prototype.$capitalize = helpers/* default.capitalize */.ZP.capitalize;
|
|
352942
355322
|
cov_2gmpkpkrd0.s[23]++;
|
|
352943
|
-
(external_commonjs_vue_commonjs2_vue_root_Vue_default()).prototype.$
|
|
355323
|
+
(external_commonjs_vue_commonjs2_vue_root_Vue_default()).prototype.$get = helpers/* default.get */.ZP.get;
|
|
352944
355324
|
cov_2gmpkpkrd0.s[24]++;
|
|
352945
|
-
(external_commonjs_vue_commonjs2_vue_root_Vue_default()).prototype.$
|
|
355325
|
+
(external_commonjs_vue_commonjs2_vue_root_Vue_default()).prototype.$set = helpers/* default */.ZP.set;
|
|
352946
355326
|
cov_2gmpkpkrd0.s[25]++;
|
|
352947
|
-
(external_commonjs_vue_commonjs2_vue_root_Vue_default()).prototype.$
|
|
355327
|
+
(external_commonjs_vue_commonjs2_vue_root_Vue_default()).prototype.$contains = helpers/* default.contains */.ZP.contains;
|
|
352948
355328
|
cov_2gmpkpkrd0.s[26]++;
|
|
352949
|
-
(external_commonjs_vue_commonjs2_vue_root_Vue_default()).prototype.$
|
|
355329
|
+
(external_commonjs_vue_commonjs2_vue_root_Vue_default()).prototype.$remove = helpers/* default.remove */.ZP.remove;
|
|
352950
355330
|
cov_2gmpkpkrd0.s[27]++;
|
|
352951
|
-
(external_commonjs_vue_commonjs2_vue_root_Vue_default()).prototype.$
|
|
355331
|
+
(external_commonjs_vue_commonjs2_vue_root_Vue_default()).prototype.$round = helpers/* default.round */.ZP.round;
|
|
352952
355332
|
cov_2gmpkpkrd0.s[28]++;
|
|
352953
|
-
(external_commonjs_vue_commonjs2_vue_root_Vue_default()).prototype.$
|
|
355333
|
+
(external_commonjs_vue_commonjs2_vue_root_Vue_default()).prototype.$formatDate = helpers/* default.formatDate */.ZP.formatDate;
|
|
352954
355334
|
cov_2gmpkpkrd0.s[29]++;
|
|
352955
|
-
(external_commonjs_vue_commonjs2_vue_root_Vue_default()).prototype.$
|
|
355335
|
+
(external_commonjs_vue_commonjs2_vue_root_Vue_default()).prototype.$formatNumber = helpers/* default.formatNumber */.ZP.formatNumber;
|
|
352956
355336
|
cov_2gmpkpkrd0.s[30]++;
|
|
352957
|
-
(external_commonjs_vue_commonjs2_vue_root_Vue_default()).prototype.$
|
|
355337
|
+
(external_commonjs_vue_commonjs2_vue_root_Vue_default()).prototype.$formatSize = helpers/* default.formatSize */.ZP.formatSize;
|
|
352958
355338
|
cov_2gmpkpkrd0.s[31]++;
|
|
352959
|
-
(external_commonjs_vue_commonjs2_vue_root_Vue_default()).prototype.$
|
|
355339
|
+
(external_commonjs_vue_commonjs2_vue_root_Vue_default()).prototype.$getInnerHtmlText = helpers/* default.getInnerHtmlText */.ZP.getInnerHtmlText;
|
|
352960
355340
|
cov_2gmpkpkrd0.s[32]++;
|
|
352961
|
-
(external_commonjs_vue_commonjs2_vue_root_Vue_default()).prototype.$
|
|
355341
|
+
(external_commonjs_vue_commonjs2_vue_root_Vue_default()).prototype.$setInnerHtmlText = helpers/* default.setInnerHtmlText */.ZP.setInnerHtmlText;
|
|
352962
355342
|
cov_2gmpkpkrd0.s[33]++;
|
|
352963
|
-
(external_commonjs_vue_commonjs2_vue_root_Vue_default()).prototype.$
|
|
355343
|
+
(external_commonjs_vue_commonjs2_vue_root_Vue_default()).prototype.$isNumeric = helpers/* default.isNumeric */.ZP.isNumeric;
|
|
352964
355344
|
cov_2gmpkpkrd0.s[34]++;
|
|
355345
|
+
(external_commonjs_vue_commonjs2_vue_root_Vue_default()).prototype.$user = (cov_2gmpkpkrd0.b[0][0]++, window.USER) || (cov_2gmpkpkrd0.b[0][1]++, {});
|
|
355346
|
+
cov_2gmpkpkrd0.s[35]++;
|
|
352965
355347
|
(external_commonjs_vue_commonjs2_vue_root_Vue_default()).prototype.$settings = main_settings;
|
|
352966
355348
|
|
|
352967
355349
|
// Load Segment Analytics
|
|
352968
|
-
cov_2gmpkpkrd0.s[
|
|
355350
|
+
cov_2gmpkpkrd0.s[36]++;
|
|
352969
355351
|
!function () {
|
|
352970
355352
|
cov_2gmpkpkrd0.f[0]++;
|
|
352971
|
-
var analytics = (cov_2gmpkpkrd0.s[
|
|
352972
|
-
cov_2gmpkpkrd0.s[
|
|
355353
|
+
var analytics = (cov_2gmpkpkrd0.s[37]++, window.analytics = (cov_2gmpkpkrd0.b[1][0]++, window.analytics) || (cov_2gmpkpkrd0.b[1][1]++, []));
|
|
355354
|
+
cov_2gmpkpkrd0.s[38]++;
|
|
352973
355355
|
if (!analytics.initialize) {
|
|
352974
355356
|
cov_2gmpkpkrd0.b[2][0]++;
|
|
352975
|
-
cov_2gmpkpkrd0.s[
|
|
355357
|
+
cov_2gmpkpkrd0.s[39]++;
|
|
352976
355358
|
if (analytics.invoked) {
|
|
352977
355359
|
cov_2gmpkpkrd0.b[3][0]++;
|
|
352978
|
-
cov_2gmpkpkrd0.s[
|
|
355360
|
+
cov_2gmpkpkrd0.s[40]++;
|
|
352979
355361
|
(cov_2gmpkpkrd0.b[4][0]++, window.console) && (cov_2gmpkpkrd0.b[4][1]++, console.error) && (cov_2gmpkpkrd0.b[4][2]++, console.error('Segment snippet included twice.'));
|
|
352980
355362
|
} else {
|
|
352981
355363
|
cov_2gmpkpkrd0.b[3][1]++;
|
|
352982
|
-
cov_2gmpkpkrd0.s[40]++;
|
|
352983
|
-
analytics.invoked = !0;
|
|
352984
355364
|
cov_2gmpkpkrd0.s[41]++;
|
|
352985
|
-
analytics.
|
|
355365
|
+
analytics.invoked = !0;
|
|
352986
355366
|
cov_2gmpkpkrd0.s[42]++;
|
|
355367
|
+
analytics.methods = ['trackSubmit', 'trackClick', 'trackLink', 'trackForm', 'pageview', 'identify', 'reset', 'group', 'track', 'ready', 'alias', 'debug', 'page', 'once', 'off', 'on'];
|
|
355368
|
+
cov_2gmpkpkrd0.s[43]++;
|
|
352987
355369
|
analytics.factory = function (t) {
|
|
352988
355370
|
cov_2gmpkpkrd0.f[1]++;
|
|
352989
|
-
cov_2gmpkpkrd0.s[
|
|
355371
|
+
cov_2gmpkpkrd0.s[44]++;
|
|
352990
355372
|
return function () {
|
|
352991
355373
|
cov_2gmpkpkrd0.f[2]++;
|
|
352992
|
-
var e = (cov_2gmpkpkrd0.s[
|
|
352993
|
-
cov_2gmpkpkrd0.s[45]++;
|
|
352994
|
-
e.unshift(t);
|
|
355374
|
+
var e = (cov_2gmpkpkrd0.s[45]++, Array.prototype.slice.call(arguments));
|
|
352995
355375
|
cov_2gmpkpkrd0.s[46]++;
|
|
352996
|
-
|
|
355376
|
+
e.unshift(t);
|
|
352997
355377
|
cov_2gmpkpkrd0.s[47]++;
|
|
355378
|
+
analytics.push(e);
|
|
355379
|
+
cov_2gmpkpkrd0.s[48]++;
|
|
352998
355380
|
return analytics;
|
|
352999
355381
|
};
|
|
353000
355382
|
};
|
|
353001
|
-
cov_2gmpkpkrd0.s[
|
|
353002
|
-
for (var t = (cov_2gmpkpkrd0.s[
|
|
353003
|
-
var e = (cov_2gmpkpkrd0.s[
|
|
353004
|
-
cov_2gmpkpkrd0.s[
|
|
355383
|
+
cov_2gmpkpkrd0.s[49]++;
|
|
355384
|
+
for (var t = (cov_2gmpkpkrd0.s[50]++, 0); t < analytics.methods.length; t++) {
|
|
355385
|
+
var e = (cov_2gmpkpkrd0.s[51]++, analytics.methods[t]);
|
|
355386
|
+
cov_2gmpkpkrd0.s[52]++;
|
|
353005
355387
|
analytics[e] = analytics.factory(e);
|
|
353006
355388
|
}
|
|
353007
|
-
cov_2gmpkpkrd0.s[
|
|
355389
|
+
cov_2gmpkpkrd0.s[53]++;
|
|
353008
355390
|
analytics.load = function (t, e) {
|
|
353009
355391
|
cov_2gmpkpkrd0.f[3]++;
|
|
353010
|
-
var n = (cov_2gmpkpkrd0.s[
|
|
353011
|
-
cov_2gmpkpkrd0.s[54]++;
|
|
353012
|
-
n.type = 'text/javascript';
|
|
355392
|
+
var n = (cov_2gmpkpkrd0.s[54]++, document.createElement('script'));
|
|
353013
355393
|
cov_2gmpkpkrd0.s[55]++;
|
|
353014
|
-
n.
|
|
355394
|
+
n.type = 'text/javascript';
|
|
353015
355395
|
cov_2gmpkpkrd0.s[56]++;
|
|
355396
|
+
n.async = !0;
|
|
355397
|
+
cov_2gmpkpkrd0.s[57]++;
|
|
353016
355398
|
n.src = 'https://cdn.segment.com/analytics.js/v1/' + t + '/analytics.min.js';
|
|
353017
|
-
var a = (cov_2gmpkpkrd0.s[
|
|
353018
|
-
cov_2gmpkpkrd0.s[58]++;
|
|
353019
|
-
a.parentNode.insertBefore(n, a);
|
|
355399
|
+
var a = (cov_2gmpkpkrd0.s[58]++, document.getElementsByTagName('script')[0]);
|
|
353020
355400
|
cov_2gmpkpkrd0.s[59]++;
|
|
355401
|
+
a.parentNode.insertBefore(n, a);
|
|
355402
|
+
cov_2gmpkpkrd0.s[60]++;
|
|
353021
355403
|
analytics._loadOptions = e;
|
|
353022
355404
|
};
|
|
353023
|
-
cov_2gmpkpkrd0.s[60]++;
|
|
353024
|
-
analytics.SNIPPET_VERSION = '4.1.0';
|
|
353025
355405
|
cov_2gmpkpkrd0.s[61]++;
|
|
355406
|
+
analytics.SNIPPET_VERSION = '4.1.0';
|
|
355407
|
+
cov_2gmpkpkrd0.s[62]++;
|
|
353026
355408
|
analytics.load(main_settings.analyticsToken);
|
|
353027
355409
|
}
|
|
353028
355410
|
} else {
|
|
353029
355411
|
cov_2gmpkpkrd0.b[2][1]++;
|
|
353030
355412
|
}
|
|
353031
355413
|
}();
|
|
353032
|
-
var IsablWeb = (cov_2gmpkpkrd0.s[
|
|
355414
|
+
var IsablWeb = (cov_2gmpkpkrd0.s[63]++, new (external_commonjs_vue_commonjs2_vue_root_Vue_default())({
|
|
353033
355415
|
router: router,
|
|
353034
355416
|
store: store,
|
|
353035
355417
|
vuetify: main_vuetify,
|
|
353036
355418
|
render: function render(h) {
|
|
353037
355419
|
cov_2gmpkpkrd0.f[4]++;
|
|
353038
|
-
cov_2gmpkpkrd0.s[
|
|
355420
|
+
cov_2gmpkpkrd0.s[64]++;
|
|
353039
355421
|
return h(App);
|
|
353040
355422
|
}
|
|
353041
355423
|
}).$mount('#isabl-web'));
|