{“ast”:null,“code”:“'use strict';nnfunction _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }nnvar TYPED_OK = typeof Uint8Array !== 'undefined' && typeof Uint16Array !== 'undefined' && typeof Int32Array !== 'undefined';nnfunction _has(obj, key) {n return Object.prototype.hasOwnProperty.call(obj, key);n}nnexports.assign = function (objn/*from1, from2, from3, …*/n) {n var sources = Array.prototype.slice.call(arguments, 1);nn while (sources.length) {n var source = sources.shift();nn if (!source) {n continue;n }nn if (_typeof(source) !== 'object') {n throw new TypeError(source + 'must be non-object');n }nn for (var p in source) {n if (_has(source, p)) {n obj = source;n }n }n }nn return obj;n}; // reduce buffer size, avoiding mem copynnnexports.shrinkBuf = function (buf, size) {n if (buf.length === size) {n return buf;n }nn if (buf.subarray) {n return buf.subarray(0, size);n }nn buf.length = size;n return buf;n};nnvar fnTyped = {n arraySet: function arraySet(dest, src, src_offs, len, dest_offs) {n if (src.subarray && dest.subarray) {n dest.set(src.subarray(src_offs, src_offs + len), dest_offs);n return;n } // Fallback to ordinary arraynnn for (var i = 0; i < len; i++) {n dest[dest_offs + i] = src[src_offs + i];n }n },n // Join array of chunks to single array.n flattenChunks: function flattenChunks(chunks) {n var i, l, len, pos, chunk, result; // calculate data lengthnn len = 0;nn for (i = 0, l = chunks.length; i < l; i++) {n len += chunks.length;n } // join chunksnnn result = new Uint8Array(len);n pos = 0;nn for (i = 0, l = chunks.length; i < l; i++) {n chunk = chunks;n result.set(chunk, pos);n pos += chunk.length;n }nn return result;n }n};nvar fnUntyped = {n arraySet: function arraySet(dest, src, src_offs, len, dest_offs) {n for (var i = 0; i < len; i++) {n dest[dest_offs + i] = src[src_offs + i];n }n },n // Join array of chunks to single array.n flattenChunks: function flattenChunks(chunks) {n return [].concat.apply([], chunks);n }n}; // Enable/Disable typed arrays use, for testingn//nnexports.setTyped = function (on) {n if (on) {n exports.Buf8 = Uint8Array;n exports.Buf16 = Uint16Array;n exports.Buf32 = Int32Array;n exports.assign(exports, fnTyped);n } else {n exports.Buf8 = Array;n exports.Buf16 = Array;n exports.Buf32 = Array;n exports.assign(exports, fnUntyped);n }n};nnexports.setTyped(TYPED_OK);”,“map”:null,“metadata”:{},“sourceType”:“module”}