UNPKG

1.62 MBJavaScriptView Raw
1(function webpackUniversalModuleDefinition(root, factory) {
2 if(typeof exports === 'object' && typeof module === 'object')
3 module.exports = factory();
4 else if(typeof define === 'function' && define.amd)
5 define([], factory);
6 else if(typeof exports === 'object')
7 exports["GeoRaster"] = factory();
8 else
9 root["GeoRaster"] = factory();
10})(typeof self !== 'undefined' ? self : this, function() {
11return /******/ (function(modules) { // webpackBootstrap
12/******/ // The module cache
13/******/ var installedModules = {};
14/******/
15/******/ // The require function
16/******/ function __webpack_require__(moduleId) {
17/******/
18/******/ // Check if module is in cache
19/******/ if(installedModules[moduleId]) {
20/******/ return installedModules[moduleId].exports;
21/******/ }
22/******/ // Create a new module (and put it into the cache)
23/******/ var module = installedModules[moduleId] = {
24/******/ i: moduleId,
25/******/ l: false,
26/******/ exports: {}
27/******/ };
28/******/
29/******/ // Execute the module function
30/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
31/******/
32/******/ // Flag the module as loaded
33/******/ module.l = true;
34/******/
35/******/ // Return the exports of the module
36/******/ return module.exports;
37/******/ }
38/******/
39/******/
40/******/ // expose the modules object (__webpack_modules__)
41/******/ __webpack_require__.m = modules;
42/******/
43/******/ // expose the module cache
44/******/ __webpack_require__.c = installedModules;
45/******/
46/******/ // define getter function for harmony exports
47/******/ __webpack_require__.d = function(exports, name, getter) {
48/******/ if(!__webpack_require__.o(exports, name)) {
49/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
50/******/ }
51/******/ };
52/******/
53/******/ // define __esModule on exports
54/******/ __webpack_require__.r = function(exports) {
55/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
56/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
57/******/ }
58/******/ Object.defineProperty(exports, '__esModule', { value: true });
59/******/ };
60/******/
61/******/ // create a fake namespace object
62/******/ // mode & 1: value is a module id, require it
63/******/ // mode & 2: merge all properties of value into the ns
64/******/ // mode & 4: return value when already ns object
65/******/ // mode & 8|1: behave like require
66/******/ __webpack_require__.t = function(value, mode) {
67/******/ if(mode & 1) value = __webpack_require__(value);
68/******/ if(mode & 8) return value;
69/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
70/******/ var ns = Object.create(null);
71/******/ __webpack_require__.r(ns);
72/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
73/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
74/******/ return ns;
75/******/ };
76/******/
77/******/ // getDefaultExport function for compatibility with non-harmony modules
78/******/ __webpack_require__.n = function(module) {
79/******/ var getter = module && module.__esModule ?
80/******/ function getDefault() { return module['default']; } :
81/******/ function getModuleExports() { return module; };
82/******/ __webpack_require__.d(getter, 'a', getter);
83/******/ return getter;
84/******/ };
85/******/
86/******/ // Object.prototype.hasOwnProperty.call
87/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
88/******/
89/******/ // __webpack_public_path__
90/******/ __webpack_require__.p = "";
91/******/
92/******/
93/******/ // Load entry module and return exports
94/******/ return __webpack_require__(__webpack_require__.s = "./src/index.js");
95/******/ })
96/************************************************************************/
97/******/ ({
98
99/***/ "./node_modules/base64-js/index.js":
100/*!*****************************************!*\
101 !*** ./node_modules/base64-js/index.js ***!
102 \*****************************************/
103/*! no static exports found */
104/***/ (function(module, exports, __webpack_require__) {
105
106"use strict";
107eval("\n\nexports.byteLength = byteLength\nexports.toByteArray = toByteArray\nexports.fromByteArray = fromByteArray\n\nvar lookup = []\nvar revLookup = []\nvar Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array\n\nvar code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'\nfor (var i = 0, len = code.length; i < len; ++i) {\n lookup[i] = code[i]\n revLookup[code.charCodeAt(i)] = i\n}\n\n// Support decoding URL-safe base64 strings, as Node.js does.\n// See: https://en.wikipedia.org/wiki/Base64#URL_applications\nrevLookup['-'.charCodeAt(0)] = 62\nrevLookup['_'.charCodeAt(0)] = 63\n\nfunction getLens (b64) {\n var len = b64.length\n\n if (len % 4 > 0) {\n throw new Error('Invalid string. Length must be a multiple of 4')\n }\n\n // Trim off extra bytes after placeholder bytes are found\n // See: https://github.com/beatgammit/base64-js/issues/42\n var validLen = b64.indexOf('=')\n if (validLen === -1) validLen = len\n\n var placeHoldersLen = validLen === len\n ? 0\n : 4 - (validLen % 4)\n\n return [validLen, placeHoldersLen]\n}\n\n// base64 is 4/3 + up to two characters of the original data\nfunction byteLength (b64) {\n var lens = getLens(b64)\n var validLen = lens[0]\n var placeHoldersLen = lens[1]\n return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen\n}\n\nfunction _byteLength (b64, validLen, placeHoldersLen) {\n return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen\n}\n\nfunction toByteArray (b64) {\n var tmp\n var lens = getLens(b64)\n var validLen = lens[0]\n var placeHoldersLen = lens[1]\n\n var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen))\n\n var curByte = 0\n\n // if there are placeholders, only get up to the last complete 4 chars\n var len = placeHoldersLen > 0\n ? validLen - 4\n : validLen\n\n var i\n for (i = 0; i < len; i += 4) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 18) |\n (revLookup[b64.charCodeAt(i + 1)] << 12) |\n (revLookup[b64.charCodeAt(i + 2)] << 6) |\n revLookup[b64.charCodeAt(i + 3)]\n arr[curByte++] = (tmp >> 16) & 0xFF\n arr[curByte++] = (tmp >> 8) & 0xFF\n arr[curByte++] = tmp & 0xFF\n }\n\n if (placeHoldersLen === 2) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 2) |\n (revLookup[b64.charCodeAt(i + 1)] >> 4)\n arr[curByte++] = tmp & 0xFF\n }\n\n if (placeHoldersLen === 1) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 10) |\n (revLookup[b64.charCodeAt(i + 1)] << 4) |\n (revLookup[b64.charCodeAt(i + 2)] >> 2)\n arr[curByte++] = (tmp >> 8) & 0xFF\n arr[curByte++] = tmp & 0xFF\n }\n\n return arr\n}\n\nfunction tripletToBase64 (num) {\n return lookup[num >> 18 & 0x3F] +\n lookup[num >> 12 & 0x3F] +\n lookup[num >> 6 & 0x3F] +\n lookup[num & 0x3F]\n}\n\nfunction encodeChunk (uint8, start, end) {\n var tmp\n var output = []\n for (var i = start; i < end; i += 3) {\n tmp =\n ((uint8[i] << 16) & 0xFF0000) +\n ((uint8[i + 1] << 8) & 0xFF00) +\n (uint8[i + 2] & 0xFF)\n output.push(tripletToBase64(tmp))\n }\n return output.join('')\n}\n\nfunction fromByteArray (uint8) {\n var tmp\n var len = uint8.length\n var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes\n var parts = []\n var maxChunkLength = 16383 // must be multiple of 3\n\n // go through the array every three bytes, we'll deal with trailing stuff later\n for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {\n parts.push(encodeChunk(uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength)))\n }\n\n // pad the end with zeros, but make sure to not forget the extra bytes\n if (extraBytes === 1) {\n tmp = uint8[len - 1]\n parts.push(\n lookup[tmp >> 2] +\n lookup[(tmp << 4) & 0x3F] +\n '=='\n )\n } else if (extraBytes === 2) {\n tmp = (uint8[len - 2] << 8) + uint8[len - 1]\n parts.push(\n lookup[tmp >> 10] +\n lookup[(tmp >> 4) & 0x3F] +\n lookup[(tmp << 2) & 0x3F] +\n '='\n )\n }\n\n return parts.join('')\n}\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/base64-js/index.js?");
108
109/***/ }),
110
111/***/ "./node_modules/builtin-status-codes/browser.js":
112/*!******************************************************!*\
113 !*** ./node_modules/builtin-status-codes/browser.js ***!
114 \******************************************************/
115/*! no static exports found */
116/***/ (function(module, exports) {
117
118eval("module.exports = {\n \"100\": \"Continue\",\n \"101\": \"Switching Protocols\",\n \"102\": \"Processing\",\n \"200\": \"OK\",\n \"201\": \"Created\",\n \"202\": \"Accepted\",\n \"203\": \"Non-Authoritative Information\",\n \"204\": \"No Content\",\n \"205\": \"Reset Content\",\n \"206\": \"Partial Content\",\n \"207\": \"Multi-Status\",\n \"208\": \"Already Reported\",\n \"226\": \"IM Used\",\n \"300\": \"Multiple Choices\",\n \"301\": \"Moved Permanently\",\n \"302\": \"Found\",\n \"303\": \"See Other\",\n \"304\": \"Not Modified\",\n \"305\": \"Use Proxy\",\n \"307\": \"Temporary Redirect\",\n \"308\": \"Permanent Redirect\",\n \"400\": \"Bad Request\",\n \"401\": \"Unauthorized\",\n \"402\": \"Payment Required\",\n \"403\": \"Forbidden\",\n \"404\": \"Not Found\",\n \"405\": \"Method Not Allowed\",\n \"406\": \"Not Acceptable\",\n \"407\": \"Proxy Authentication Required\",\n \"408\": \"Request Timeout\",\n \"409\": \"Conflict\",\n \"410\": \"Gone\",\n \"411\": \"Length Required\",\n \"412\": \"Precondition Failed\",\n \"413\": \"Payload Too Large\",\n \"414\": \"URI Too Long\",\n \"415\": \"Unsupported Media Type\",\n \"416\": \"Range Not Satisfiable\",\n \"417\": \"Expectation Failed\",\n \"418\": \"I'm a teapot\",\n \"421\": \"Misdirected Request\",\n \"422\": \"Unprocessable Entity\",\n \"423\": \"Locked\",\n \"424\": \"Failed Dependency\",\n \"425\": \"Unordered Collection\",\n \"426\": \"Upgrade Required\",\n \"428\": \"Precondition Required\",\n \"429\": \"Too Many Requests\",\n \"431\": \"Request Header Fields Too Large\",\n \"451\": \"Unavailable For Legal Reasons\",\n \"500\": \"Internal Server Error\",\n \"501\": \"Not Implemented\",\n \"502\": \"Bad Gateway\",\n \"503\": \"Service Unavailable\",\n \"504\": \"Gateway Timeout\",\n \"505\": \"HTTP Version Not Supported\",\n \"506\": \"Variant Also Negotiates\",\n \"507\": \"Insufficient Storage\",\n \"508\": \"Loop Detected\",\n \"509\": \"Bandwidth Limit Exceeded\",\n \"510\": \"Not Extended\",\n \"511\": \"Network Authentication Required\"\n}\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/builtin-status-codes/browser.js?");
119
120/***/ }),
121
122/***/ "./node_modules/core-util-is/lib/util.js":
123/*!***********************************************!*\
124 !*** ./node_modules/core-util-is/lib/util.js ***!
125 \***********************************************/
126/*! no static exports found */
127/***/ (function(module, exports, __webpack_require__) {
128
129eval("// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// NOTE: These type checking functions intentionally don't use `instanceof`\n// because it is fragile and can be easily faked with `Object.create()`.\n\nfunction isArray(arg) {\n if (Array.isArray) {\n return Array.isArray(arg);\n }\n return objectToString(arg) === '[object Array]';\n}\nexports.isArray = isArray;\n\nfunction isBoolean(arg) {\n return typeof arg === 'boolean';\n}\nexports.isBoolean = isBoolean;\n\nfunction isNull(arg) {\n return arg === null;\n}\nexports.isNull = isNull;\n\nfunction isNullOrUndefined(arg) {\n return arg == null;\n}\nexports.isNullOrUndefined = isNullOrUndefined;\n\nfunction isNumber(arg) {\n return typeof arg === 'number';\n}\nexports.isNumber = isNumber;\n\nfunction isString(arg) {\n return typeof arg === 'string';\n}\nexports.isString = isString;\n\nfunction isSymbol(arg) {\n return typeof arg === 'symbol';\n}\nexports.isSymbol = isSymbol;\n\nfunction isUndefined(arg) {\n return arg === void 0;\n}\nexports.isUndefined = isUndefined;\n\nfunction isRegExp(re) {\n return objectToString(re) === '[object RegExp]';\n}\nexports.isRegExp = isRegExp;\n\nfunction isObject(arg) {\n return typeof arg === 'object' && arg !== null;\n}\nexports.isObject = isObject;\n\nfunction isDate(d) {\n return objectToString(d) === '[object Date]';\n}\nexports.isDate = isDate;\n\nfunction isError(e) {\n return (objectToString(e) === '[object Error]' || e instanceof Error);\n}\nexports.isError = isError;\n\nfunction isFunction(arg) {\n return typeof arg === 'function';\n}\nexports.isFunction = isFunction;\n\nfunction isPrimitive(arg) {\n return arg === null ||\n typeof arg === 'boolean' ||\n typeof arg === 'number' ||\n typeof arg === 'string' ||\n typeof arg === 'symbol' || // ES6 symbol\n typeof arg === 'undefined';\n}\nexports.isPrimitive = isPrimitive;\n\nexports.isBuffer = __webpack_require__(/*! buffer */ \"./node_modules/node-libs-browser/node_modules/buffer/index.js\").Buffer.isBuffer;\n\nfunction objectToString(o) {\n return Object.prototype.toString.call(o);\n}\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/core-util-is/lib/util.js?");
130
131/***/ }),
132
133/***/ "./node_modules/cross-fetch/dist/browser-ponyfill.js":
134/*!***********************************************************!*\
135 !*** ./node_modules/cross-fetch/dist/browser-ponyfill.js ***!
136 \***********************************************************/
137/*! no static exports found */
138/***/ (function(module, exports) {
139
140eval("var global = typeof self !== 'undefined' ? self : this;\nvar __self__ = (function () {\nfunction F() {\nthis.fetch = false;\nthis.DOMException = global.DOMException\n}\nF.prototype = global;\nreturn new F();\n})();\n(function(self) {\n\nvar irrelevant = (function (exports) {\n\n var support = {\n searchParams: 'URLSearchParams' in self,\n iterable: 'Symbol' in self && 'iterator' in Symbol,\n blob:\n 'FileReader' in self &&\n 'Blob' in self &&\n (function() {\n try {\n new Blob();\n return true\n } catch (e) {\n return false\n }\n })(),\n formData: 'FormData' in self,\n arrayBuffer: 'ArrayBuffer' in self\n };\n\n function isDataView(obj) {\n return obj && DataView.prototype.isPrototypeOf(obj)\n }\n\n if (support.arrayBuffer) {\n var viewClasses = [\n '[object Int8Array]',\n '[object Uint8Array]',\n '[object Uint8ClampedArray]',\n '[object Int16Array]',\n '[object Uint16Array]',\n '[object Int32Array]',\n '[object Uint32Array]',\n '[object Float32Array]',\n '[object Float64Array]'\n ];\n\n var isArrayBufferView =\n ArrayBuffer.isView ||\n function(obj) {\n return obj && viewClasses.indexOf(Object.prototype.toString.call(obj)) > -1\n };\n }\n\n function normalizeName(name) {\n if (typeof name !== 'string') {\n name = String(name);\n }\n if (/[^a-z0-9\\-#$%&'*+.^_`|~]/i.test(name)) {\n throw new TypeError('Invalid character in header field name')\n }\n return name.toLowerCase()\n }\n\n function normalizeValue(value) {\n if (typeof value !== 'string') {\n value = String(value);\n }\n return value\n }\n\n // Build a destructive iterator for the value list\n function iteratorFor(items) {\n var iterator = {\n next: function() {\n var value = items.shift();\n return {done: value === undefined, value: value}\n }\n };\n\n if (support.iterable) {\n iterator[Symbol.iterator] = function() {\n return iterator\n };\n }\n\n return iterator\n }\n\n function Headers(headers) {\n this.map = {};\n\n if (headers instanceof Headers) {\n headers.forEach(function(value, name) {\n this.append(name, value);\n }, this);\n } else if (Array.isArray(headers)) {\n headers.forEach(function(header) {\n this.append(header[0], header[1]);\n }, this);\n } else if (headers) {\n Object.getOwnPropertyNames(headers).forEach(function(name) {\n this.append(name, headers[name]);\n }, this);\n }\n }\n\n Headers.prototype.append = function(name, value) {\n name = normalizeName(name);\n value = normalizeValue(value);\n var oldValue = this.map[name];\n this.map[name] = oldValue ? oldValue + ', ' + value : value;\n };\n\n Headers.prototype['delete'] = function(name) {\n delete this.map[normalizeName(name)];\n };\n\n Headers.prototype.get = function(name) {\n name = normalizeName(name);\n return this.has(name) ? this.map[name] : null\n };\n\n Headers.prototype.has = function(name) {\n return this.map.hasOwnProperty(normalizeName(name))\n };\n\n Headers.prototype.set = function(name, value) {\n this.map[normalizeName(name)] = normalizeValue(value);\n };\n\n Headers.prototype.forEach = function(callback, thisArg) {\n for (var name in this.map) {\n if (this.map.hasOwnProperty(name)) {\n callback.call(thisArg, this.map[name], name, this);\n }\n }\n };\n\n Headers.prototype.keys = function() {\n var items = [];\n this.forEach(function(value, name) {\n items.push(name);\n });\n return iteratorFor(items)\n };\n\n Headers.prototype.values = function() {\n var items = [];\n this.forEach(function(value) {\n items.push(value);\n });\n return iteratorFor(items)\n };\n\n Headers.prototype.entries = function() {\n var items = [];\n this.forEach(function(value, name) {\n items.push([name, value]);\n });\n return iteratorFor(items)\n };\n\n if (support.iterable) {\n Headers.prototype[Symbol.iterator] = Headers.prototype.entries;\n }\n\n function consumed(body) {\n if (body.bodyUsed) {\n return Promise.reject(new TypeError('Already read'))\n }\n body.bodyUsed = true;\n }\n\n function fileReaderReady(reader) {\n return new Promise(function(resolve, reject) {\n reader.onload = function() {\n resolve(reader.result);\n };\n reader.onerror = function() {\n reject(reader.error);\n };\n })\n }\n\n function readBlobAsArrayBuffer(blob) {\n var reader = new FileReader();\n var promise = fileReaderReady(reader);\n reader.readAsArrayBuffer(blob);\n return promise\n }\n\n function readBlobAsText(blob) {\n var reader = new FileReader();\n var promise = fileReaderReady(reader);\n reader.readAsText(blob);\n return promise\n }\n\n function readArrayBufferAsText(buf) {\n var view = new Uint8Array(buf);\n var chars = new Array(view.length);\n\n for (var i = 0; i < view.length; i++) {\n chars[i] = String.fromCharCode(view[i]);\n }\n return chars.join('')\n }\n\n function bufferClone(buf) {\n if (buf.slice) {\n return buf.slice(0)\n } else {\n var view = new Uint8Array(buf.byteLength);\n view.set(new Uint8Array(buf));\n return view.buffer\n }\n }\n\n function Body() {\n this.bodyUsed = false;\n\n this._initBody = function(body) {\n this._bodyInit = body;\n if (!body) {\n this._bodyText = '';\n } else if (typeof body === 'string') {\n this._bodyText = body;\n } else if (support.blob && Blob.prototype.isPrototypeOf(body)) {\n this._bodyBlob = body;\n } else if (support.formData && FormData.prototype.isPrototypeOf(body)) {\n this._bodyFormData = body;\n } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) {\n this._bodyText = body.toString();\n } else if (support.arrayBuffer && support.blob && isDataView(body)) {\n this._bodyArrayBuffer = bufferClone(body.buffer);\n // IE 10-11 can't handle a DataView body.\n this._bodyInit = new Blob([this._bodyArrayBuffer]);\n } else if (support.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(body) || isArrayBufferView(body))) {\n this._bodyArrayBuffer = bufferClone(body);\n } else {\n this._bodyText = body = Object.prototype.toString.call(body);\n }\n\n if (!this.headers.get('content-type')) {\n if (typeof body === 'string') {\n this.headers.set('content-type', 'text/plain;charset=UTF-8');\n } else if (this._bodyBlob && this._bodyBlob.type) {\n this.headers.set('content-type', this._bodyBlob.type);\n } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) {\n this.headers.set('content-type', 'application/x-www-form-urlencoded;charset=UTF-8');\n }\n }\n };\n\n if (support.blob) {\n this.blob = function() {\n var rejected = consumed(this);\n if (rejected) {\n return rejected\n }\n\n if (this._bodyBlob) {\n return Promise.resolve(this._bodyBlob)\n } else if (this._bodyArrayBuffer) {\n return Promise.resolve(new Blob([this._bodyArrayBuffer]))\n } else if (this._bodyFormData) {\n throw new Error('could not read FormData body as blob')\n } else {\n return Promise.resolve(new Blob([this._bodyText]))\n }\n };\n\n this.arrayBuffer = function() {\n if (this._bodyArrayBuffer) {\n return consumed(this) || Promise.resolve(this._bodyArrayBuffer)\n } else {\n return this.blob().then(readBlobAsArrayBuffer)\n }\n };\n }\n\n this.text = function() {\n var rejected = consumed(this);\n if (rejected) {\n return rejected\n }\n\n if (this._bodyBlob) {\n return readBlobAsText(this._bodyBlob)\n } else if (this._bodyArrayBuffer) {\n return Promise.resolve(readArrayBufferAsText(this._bodyArrayBuffer))\n } else if (this._bodyFormData) {\n throw new Error('could not read FormData body as text')\n } else {\n return Promise.resolve(this._bodyText)\n }\n };\n\n if (support.formData) {\n this.formData = function() {\n return this.text().then(decode)\n };\n }\n\n this.json = function() {\n return this.text().then(JSON.parse)\n };\n\n return this\n }\n\n // HTTP methods whose capitalization should be normalized\n var methods = ['DELETE', 'GET', 'HEAD', 'OPTIONS', 'POST', 'PUT'];\n\n function normalizeMethod(method) {\n var upcased = method.toUpperCase();\n return methods.indexOf(upcased) > -1 ? upcased : method\n }\n\n function Request(input, options) {\n options = options || {};\n var body = options.body;\n\n if (input instanceof Request) {\n if (input.bodyUsed) {\n throw new TypeError('Already read')\n }\n this.url = input.url;\n this.credentials = input.credentials;\n if (!options.headers) {\n this.headers = new Headers(input.headers);\n }\n this.method = input.method;\n this.mode = input.mode;\n this.signal = input.signal;\n if (!body && input._bodyInit != null) {\n body = input._bodyInit;\n input.bodyUsed = true;\n }\n } else {\n this.url = String(input);\n }\n\n this.credentials = options.credentials || this.credentials || 'same-origin';\n if (options.headers || !this.headers) {\n this.headers = new Headers(options.headers);\n }\n this.method = normalizeMethod(options.method || this.method || 'GET');\n this.mode = options.mode || this.mode || null;\n this.signal = options.signal || this.signal;\n this.referrer = null;\n\n if ((this.method === 'GET' || this.method === 'HEAD') && body) {\n throw new TypeError('Body not allowed for GET or HEAD requests')\n }\n this._initBody(body);\n }\n\n Request.prototype.clone = function() {\n return new Request(this, {body: this._bodyInit})\n };\n\n function decode(body) {\n var form = new FormData();\n body\n .trim()\n .split('&')\n .forEach(function(bytes) {\n if (bytes) {\n var split = bytes.split('=');\n var name = split.shift().replace(/\\+/g, ' ');\n var value = split.join('=').replace(/\\+/g, ' ');\n form.append(decodeURIComponent(name), decodeURIComponent(value));\n }\n });\n return form\n }\n\n function parseHeaders(rawHeaders) {\n var headers = new Headers();\n // Replace instances of \\r\\n and \\n followed by at least one space or horizontal tab with a space\n // https://tools.ietf.org/html/rfc7230#section-3.2\n var preProcessedHeaders = rawHeaders.replace(/\\r?\\n[\\t ]+/g, ' ');\n preProcessedHeaders.split(/\\r?\\n/).forEach(function(line) {\n var parts = line.split(':');\n var key = parts.shift().trim();\n if (key) {\n var value = parts.join(':').trim();\n headers.append(key, value);\n }\n });\n return headers\n }\n\n Body.call(Request.prototype);\n\n function Response(bodyInit, options) {\n if (!options) {\n options = {};\n }\n\n this.type = 'default';\n this.status = options.status === undefined ? 200 : options.status;\n this.ok = this.status >= 200 && this.status < 300;\n this.statusText = 'statusText' in options ? options.statusText : 'OK';\n this.headers = new Headers(options.headers);\n this.url = options.url || '';\n this._initBody(bodyInit);\n }\n\n Body.call(Response.prototype);\n\n Response.prototype.clone = function() {\n return new Response(this._bodyInit, {\n status: this.status,\n statusText: this.statusText,\n headers: new Headers(this.headers),\n url: this.url\n })\n };\n\n Response.error = function() {\n var response = new Response(null, {status: 0, statusText: ''});\n response.type = 'error';\n return response\n };\n\n var redirectStatuses = [301, 302, 303, 307, 308];\n\n Response.redirect = function(url, status) {\n if (redirectStatuses.indexOf(status) === -1) {\n throw new RangeError('Invalid status code')\n }\n\n return new Response(null, {status: status, headers: {location: url}})\n };\n\n exports.DOMException = self.DOMException;\n try {\n new exports.DOMException();\n } catch (err) {\n exports.DOMException = function(message, name) {\n this.message = message;\n this.name = name;\n var error = Error(message);\n this.stack = error.stack;\n };\n exports.DOMException.prototype = Object.create(Error.prototype);\n exports.DOMException.prototype.constructor = exports.DOMException;\n }\n\n function fetch(input, init) {\n return new Promise(function(resolve, reject) {\n var request = new Request(input, init);\n\n if (request.signal && request.signal.aborted) {\n return reject(new exports.DOMException('Aborted', 'AbortError'))\n }\n\n var xhr = new XMLHttpRequest();\n\n function abortXhr() {\n xhr.abort();\n }\n\n xhr.onload = function() {\n var options = {\n status: xhr.status,\n statusText: xhr.statusText,\n headers: parseHeaders(xhr.getAllResponseHeaders() || '')\n };\n options.url = 'responseURL' in xhr ? xhr.responseURL : options.headers.get('X-Request-URL');\n var body = 'response' in xhr ? xhr.response : xhr.responseText;\n resolve(new Response(body, options));\n };\n\n xhr.onerror = function() {\n reject(new TypeError('Network request failed'));\n };\n\n xhr.ontimeout = function() {\n reject(new TypeError('Network request failed'));\n };\n\n xhr.onabort = function() {\n reject(new exports.DOMException('Aborted', 'AbortError'));\n };\n\n xhr.open(request.method, request.url, true);\n\n if (request.credentials === 'include') {\n xhr.withCredentials = true;\n } else if (request.credentials === 'omit') {\n xhr.withCredentials = false;\n }\n\n if ('responseType' in xhr && support.blob) {\n xhr.responseType = 'blob';\n }\n\n request.headers.forEach(function(value, name) {\n xhr.setRequestHeader(name, value);\n });\n\n if (request.signal) {\n request.signal.addEventListener('abort', abortXhr);\n\n xhr.onreadystatechange = function() {\n // DONE (success or failure)\n if (xhr.readyState === 4) {\n request.signal.removeEventListener('abort', abortXhr);\n }\n };\n }\n\n xhr.send(typeof request._bodyInit === 'undefined' ? null : request._bodyInit);\n })\n }\n\n fetch.polyfill = true;\n\n if (!self.fetch) {\n self.fetch = fetch;\n self.Headers = Headers;\n self.Request = Request;\n self.Response = Response;\n }\n\n exports.Headers = Headers;\n exports.Request = Request;\n exports.Response = Response;\n exports.fetch = fetch;\n\n Object.defineProperty(exports, '__esModule', { value: true });\n\n return exports;\n\n}({}));\n})(__self__);\n__self__.fetch.ponyfill = true;\n// Remove \"polyfill\" property added by whatwg-fetch\ndelete __self__.fetch.polyfill;\n// Choose between native implementation (global) or custom implementation (__self__)\n// var ctx = global.fetch ? global : __self__;\nvar ctx = __self__; // this line disable service worker support temporarily\nexports = ctx.fetch // To enable: import fetch from 'cross-fetch'\nexports.default = ctx.fetch // For TypeScript consumers without esModuleInterop.\nexports.fetch = ctx.fetch // To enable: import {fetch} from 'cross-fetch'\nexports.Headers = ctx.Headers\nexports.Request = ctx.Request\nexports.Response = ctx.Response\nmodule.exports = exports\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/cross-fetch/dist/browser-ponyfill.js?");
141
142/***/ }),
143
144/***/ "./node_modules/georaster-to-canvas/index.js":
145/*!***************************************************!*\
146 !*** ./node_modules/georaster-to-canvas/index.js ***!
147 \***************************************************/
148/*! exports provided: default */
149/***/ (function(module, __webpack_exports__, __webpack_require__) {
150
151"use strict";
152eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return toCanvas; });\n/* global ImageData */\n\nfunction toImageData(georaster, canvasWidth, canvasHeight) {\n if (georaster.values) {\n const { noDataValue, mins, ranges, values } = georaster;\n const numBands = values.length;\n const xRatio = georaster.width / canvasWidth;\n const yRatio = georaster.height / canvasHeight;\n const data = new Uint8ClampedArray(canvasWidth * canvasHeight * 4);\n for (let rowIndex = 0; rowIndex < canvasHeight; rowIndex++) {\n for (let columnIndex = 0; columnIndex < canvasWidth; columnIndex++) {\n const rasterRowIndex = Math.round(rowIndex * yRatio);\n const rasterColumnIndex = Math.round(columnIndex * xRatio);\n const pixelValues = values.map(band => {\n try {\n return band[rasterRowIndex][rasterColumnIndex];\n } catch (error) {\n console.error(error);\n }\n });\n const haveDataForAllBands = pixelValues.every(value => value !== undefined && value !== noDataValue);\n if (haveDataForAllBands) {\n const i = (rowIndex * (canvasWidth * 4)) + 4 * columnIndex;\n if (numBands === 1) {\n const pixelValue = Math.round(pixelValues[0]);\n const scaledPixelValue = Math.round((pixelValue - mins[0]) / ranges[0] * 255);\n data[i] = scaledPixelValue;\n data[i + 1] = scaledPixelValue;\n data[i + 2] = scaledPixelValue;\n data[i + 3] = 255;\n } else if (numBands === 3) {\n try {\n const [r, g, b] = pixelValues;\n data[i] = r;\n data[i + 1] = g;\n data[i + 2] = b;\n data[i + 3] = 255;\n } catch (error) {\n console.error(error);\n }\n } else if (numBands === 4) {\n try {\n const [r, g, b, a] = pixelValues;\n data[i] = r;\n data[i + 1] = g;\n data[i + 2] = b;\n data[i + 3] = a;\n } catch (error) {\n console.error(error);\n }\n }\n }\n }\n }\n return new ImageData(data, canvasWidth, canvasHeight);\n }\n}\n\nfunction toCanvas(georaster, options) {\n if (typeof ImageData === \"undefined\") {\n throw `toCanvas is not supported in your environment`;\n } else {\n const canvas = document.createElement(\"CANVAS\");\n const canvasHeight = options && options.height ? Math.min(georaster.height, options.height) : Math.min(georaster.height, 100);\n const canvasWidth = options && options.width ? Math.min(georaster.width, options.width) : Math.min(georaster.width, 100);\n canvas.height = canvasHeight;\n canvas.width = canvasWidth;\n canvas.style.minHeight = \"200px\";\n canvas.style.minWidth = \"400px\";\n canvas.style.maxWidth = \"100%\";\n const context = canvas.getContext(\"2d\");\n const imageData = toImageData(georaster, canvasWidth, canvasHeight);\n context.putImageData(imageData, 0, 0);\n return canvas;\n }\n}\n\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/georaster-to-canvas/index.js?");
153
154/***/ }),
155
156/***/ "./node_modules/geotiff-palette/index.js":
157/*!***********************************************!*\
158 !*** ./node_modules/geotiff-palette/index.js ***!
159 \***********************************************/
160/*! no static exports found */
161/***/ (function(module, exports) {
162
163eval("const getPalette = (image, { debug = false } = { debug: false }) => {\n if (debug) console.log(\"starting getPalette with image\", image);\n const { fileDirectory } = image;\n const {\n BitsPerSample,\n ColorMap,\n ImageLength,\n ImageWidth,\n PhotometricInterpretation,\n SampleFormat,\n SamplesPerPixel\n } = fileDirectory;\n\n if (!ColorMap) {\n throw new Error(\"[geotiff-palette]: the image does not contain a color map, so we can't make a palette.\");\n }\n\n const count = Math.pow(2, BitsPerSample);\n if (debug) console.log(\"[geotiff-palette]: count:\", count);\n\n const bandSize = ColorMap.length / 3;\n if (debug) console.log(\"[geotiff-palette]: bandSize:\", bandSize);\n\n if (bandSize !== count) {\n throw new Error(\"[geotiff-palette]: can't handle situations where the color map has more or less values than the number of possible values in a raster\");\n }\n\n const greenOffset = bandSize;\n const redOffset = greenOffset + bandSize;\n\n const result = [];\n for (let i = 0; i < count; i++) {\n // colorMap[mapIndex] / 65536 * 256 equals colorMap[mapIndex] / 256\n // because (1 / 2^16) * (2^8) equals 1 / 2^8\n result.push([\n Math.floor(ColorMap[i] / 256), // red\n Math.floor(ColorMap[greenOffset + i] / 256), // green\n Math.floor(ColorMap[redOffset + i] / 256), // blue\n 255 // alpha value is always 255\n ]);\n }\n if (debug) console.log(\"[geotiff-palette]: result is \", result);\n return result;\n}\n\nmodule.exports = { getPalette };\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/geotiff-palette/index.js?");
164
165/***/ }),
166
167/***/ "./node_modules/geotiff/src/compression/basedecoder.js":
168/*!*************************************************************!*\
169 !*** ./node_modules/geotiff/src/compression/basedecoder.js ***!
170 \*************************************************************/
171/*! exports provided: default */
172/***/ (function(module, __webpack_exports__, __webpack_require__) {
173
174"use strict";
175eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return BaseDecoder; });\n/* harmony import */ var _predictor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../predictor */ \"./node_modules/geotiff/src/predictor.js\");\n\n\nclass BaseDecoder {\n decode(fileDirectory, buffer) {\n const decoded = this.decodeBlock(buffer);\n const predictor = fileDirectory.Predictor || 1;\n if (predictor !== 1) {\n const isTiled = !fileDirectory.StripOffsets;\n const tileWidth = isTiled ? fileDirectory.TileWidth : fileDirectory.ImageWidth;\n const tileHeight = isTiled ? fileDirectory.TileLength : (\n fileDirectory.RowsPerStrip || fileDirectory.ImageLength\n );\n return Object(_predictor__WEBPACK_IMPORTED_MODULE_0__[\"applyPredictor\"])(\n decoded, predictor, tileWidth, tileHeight, fileDirectory.BitsPerSample,\n fileDirectory.PlanarConfiguration,\n );\n }\n return decoded;\n }\n}\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/geotiff/src/compression/basedecoder.js?");
176
177/***/ }),
178
179/***/ "./node_modules/geotiff/src/compression/deflate.js":
180/*!*********************************************************!*\
181 !*** ./node_modules/geotiff/src/compression/deflate.js ***!
182 \*********************************************************/
183/*! exports provided: default */
184/***/ (function(module, __webpack_exports__, __webpack_require__) {
185
186"use strict";
187eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return DeflateDecoder; });\n/* harmony import */ var pako_lib_inflate__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! pako/lib/inflate */ \"./node_modules/pako/lib/inflate.js\");\n/* harmony import */ var pako_lib_inflate__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(pako_lib_inflate__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _basedecoder__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./basedecoder */ \"./node_modules/geotiff/src/compression/basedecoder.js\");\n\n\n\nclass DeflateDecoder extends _basedecoder__WEBPACK_IMPORTED_MODULE_1__[\"default\"] {\n decodeBlock(buffer) {\n return Object(pako_lib_inflate__WEBPACK_IMPORTED_MODULE_0__[\"inflate\"])(new Uint8Array(buffer)).buffer;\n }\n}\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/geotiff/src/compression/deflate.js?");
188
189/***/ }),
190
191/***/ "./node_modules/geotiff/src/compression/index.js":
192/*!*******************************************************!*\
193 !*** ./node_modules/geotiff/src/compression/index.js ***!
194 \*******************************************************/
195/*! exports provided: getDecoder */
196/***/ (function(module, __webpack_exports__, __webpack_require__) {
197
198"use strict";
199eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getDecoder\", function() { return getDecoder; });\n/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./raw */ \"./node_modules/geotiff/src/compression/raw.js\");\n/* harmony import */ var _lzw__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./lzw */ \"./node_modules/geotiff/src/compression/lzw.js\");\n/* harmony import */ var _jpeg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./jpeg */ \"./node_modules/geotiff/src/compression/jpeg.js\");\n/* harmony import */ var _deflate__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./deflate */ \"./node_modules/geotiff/src/compression/deflate.js\");\n/* harmony import */ var _packbits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./packbits */ \"./node_modules/geotiff/src/compression/packbits.js\");\n\n\n\n\n\n\nfunction getDecoder(fileDirectory) {\n switch (fileDirectory.Compression) {\n case undefined:\n case 1: // no compression\n return new _raw__WEBPACK_IMPORTED_MODULE_0__[\"default\"]();\n case 5: // LZW\n return new _lzw__WEBPACK_IMPORTED_MODULE_1__[\"default\"]();\n case 6: // JPEG\n throw new Error('old style JPEG compression is not supported.');\n case 7: // JPEG\n return new _jpeg__WEBPACK_IMPORTED_MODULE_2__[\"default\"](fileDirectory);\n case 8: // Deflate as recognized by Adobe\n case 32946: // Deflate GDAL default\n return new _deflate__WEBPACK_IMPORTED_MODULE_3__[\"default\"]();\n case 32773: // packbits\n return new _packbits__WEBPACK_IMPORTED_MODULE_4__[\"default\"]();\n default:\n throw new Error(`Unknown compression method identifier: ${fileDirectory.Compression}`);\n }\n}\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/geotiff/src/compression/index.js?");
200
201/***/ }),
202
203/***/ "./node_modules/geotiff/src/compression/jpeg.js":
204/*!******************************************************!*\
205 !*** ./node_modules/geotiff/src/compression/jpeg.js ***!
206 \******************************************************/
207/*! exports provided: default */
208/***/ (function(module, __webpack_exports__, __webpack_require__) {
209
210"use strict";
211eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return JpegDecoder; });\n/* harmony import */ var _basedecoder__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./basedecoder */ \"./node_modules/geotiff/src/compression/basedecoder.js\");\n\n\n/* -*- tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- /\n/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */\n/*\n Copyright 2011 notmasteryet\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n http://www.apache.org/licenses/LICENSE-2.0\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n*/\n\n// - The JPEG specification can be found in the ITU CCITT Recommendation T.81\n// (www.w3.org/Graphics/JPEG/itu-t81.pdf)\n// - The JFIF specification can be found in the JPEG File Interchange Format\n// (www.w3.org/Graphics/JPEG/jfif3.pdf)\n// - The Adobe Application-Specific JPEG markers in the Supporting the DCT Filters\n// in PostScript Level 2, Technical Note #5116\n// (partners.adobe.com/public/developer/en/ps/sdk/5116.DCT_Filter.pdf)\n\n\nconst dctZigZag = new Int32Array([\n 0,\n 1, 8,\n 16, 9, 2,\n 3, 10, 17, 24,\n 32, 25, 18, 11, 4,\n 5, 12, 19, 26, 33, 40,\n 48, 41, 34, 27, 20, 13, 6,\n 7, 14, 21, 28, 35, 42, 49, 56,\n 57, 50, 43, 36, 29, 22, 15,\n 23, 30, 37, 44, 51, 58,\n 59, 52, 45, 38, 31,\n 39, 46, 53, 60,\n 61, 54, 47,\n 55, 62,\n 63,\n]);\n\nconst dctCos1 = 4017; // cos(pi/16)\nconst dctSin1 = 799; // sin(pi/16)\nconst dctCos3 = 3406; // cos(3*pi/16)\nconst dctSin3 = 2276; // sin(3*pi/16)\nconst dctCos6 = 1567; // cos(6*pi/16)\nconst dctSin6 = 3784; // sin(6*pi/16)\nconst dctSqrt2 = 5793; // sqrt(2)\nconst dctSqrt1d2 = 2896;// sqrt(2) / 2\n\nfunction buildHuffmanTable(codeLengths, values) {\n let k = 0;\n const code = [];\n let length = 16;\n while (length > 0 && !codeLengths[length - 1]) {\n --length;\n }\n code.push({ children: [], index: 0 });\n\n let p = code[0];\n let q;\n for (let i = 0; i < length; i++) {\n for (let j = 0; j < codeLengths[i]; j++) {\n p = code.pop();\n p.children[p.index] = values[k];\n while (p.index > 0) {\n p = code.pop();\n }\n p.index++;\n code.push(p);\n while (code.length <= i) {\n code.push(q = { children: [], index: 0 });\n p.children[p.index] = q.children;\n p = q;\n }\n k++;\n }\n if (i + 1 < length) {\n // p here points to last code\n code.push(q = { children: [], index: 0 });\n p.children[p.index] = q.children;\n p = q;\n }\n }\n return code[0].children;\n}\n\nfunction decodeScan(data, initialOffset,\n frame, components, resetInterval,\n spectralStart, spectralEnd,\n successivePrev, successive) {\n const { mcusPerLine, progressive } = frame;\n\n const startOffset = initialOffset;\n let offset = initialOffset;\n let bitsData = 0;\n let bitsCount = 0;\n function readBit() {\n if (bitsCount > 0) {\n bitsCount--;\n return (bitsData >> bitsCount) & 1;\n }\n bitsData = data[offset++];\n if (bitsData === 0xFF) {\n const nextByte = data[offset++];\n if (nextByte) {\n throw new Error(`unexpected marker: ${((bitsData << 8) | nextByte).toString(16)}`);\n }\n // unstuff 0\n }\n bitsCount = 7;\n return bitsData >>> 7;\n }\n function decodeHuffman(tree) {\n let node = tree;\n let bit;\n while ((bit = readBit()) !== null) { // eslint-disable-line no-cond-assign\n node = node[bit];\n if (typeof node === 'number') {\n return node;\n }\n if (typeof node !== 'object') {\n throw new Error('invalid huffman sequence');\n }\n }\n return null;\n }\n function receive(initialLength) {\n let length = initialLength;\n let n = 0;\n while (length > 0) {\n const bit = readBit();\n if (bit === null) {\n return undefined;\n }\n n = (n << 1) | bit;\n --length;\n }\n return n;\n }\n function receiveAndExtend(length) {\n const n = receive(length);\n if (n >= 1 << (length - 1)) {\n return n;\n }\n return n + (-1 << length) + 1;\n }\n function decodeBaseline(component, zz) {\n const t = decodeHuffman(component.huffmanTableDC);\n const diff = t === 0 ? 0 : receiveAndExtend(t);\n component.pred += diff;\n zz[0] = component.pred;\n let k = 1;\n while (k < 64) {\n const rs = decodeHuffman(component.huffmanTableAC);\n const s = rs & 15;\n const r = rs >> 4;\n if (s === 0) {\n if (r < 15) {\n break;\n }\n k += 16;\n } else {\n k += r;\n const z = dctZigZag[k];\n zz[z] = receiveAndExtend(s);\n k++;\n }\n }\n }\n function decodeDCFirst(component, zz) {\n const t = decodeHuffman(component.huffmanTableDC);\n const diff = t === 0 ? 0 : (receiveAndExtend(t) << successive);\n component.pred += diff;\n zz[0] = component.pred;\n }\n function decodeDCSuccessive(component, zz) {\n zz[0] |= readBit() << successive;\n }\n let eobrun = 0;\n function decodeACFirst(component, zz) {\n if (eobrun > 0) {\n eobrun--;\n return;\n }\n let k = spectralStart;\n const e = spectralEnd;\n while (k <= e) {\n const rs = decodeHuffman(component.huffmanTableAC);\n const s = rs & 15;\n const r = rs >> 4;\n if (s === 0) {\n if (r < 15) {\n eobrun = receive(r) + (1 << r) - 1;\n break;\n }\n k += 16;\n } else {\n k += r;\n const z = dctZigZag[k];\n zz[z] = receiveAndExtend(s) * (1 << successive);\n k++;\n }\n }\n }\n let successiveACState = 0;\n let successiveACNextValue;\n function decodeACSuccessive(component, zz) {\n let k = spectralStart;\n const e = spectralEnd;\n let r = 0;\n while (k <= e) {\n const z = dctZigZag[k];\n const direction = zz[z] < 0 ? -1 : 1;\n switch (successiveACState) {\n case 0: { // initial state\n const rs = decodeHuffman(component.huffmanTableAC);\n const s = rs & 15;\n r = rs >> 4;\n if (s === 0) {\n if (r < 15) {\n eobrun = receive(r) + (1 << r);\n successiveACState = 4;\n } else {\n r = 16;\n successiveACState = 1;\n }\n } else {\n if (s !== 1) {\n throw new Error('invalid ACn encoding');\n }\n successiveACNextValue = receiveAndExtend(s);\n successiveACState = r ? 2 : 3;\n }\n continue; // eslint-disable-line no-continue\n }\n case 1: // skipping r zero items\n case 2:\n if (zz[z]) {\n zz[z] += (readBit() << successive) * direction;\n } else {\n r--;\n if (r === 0) {\n successiveACState = successiveACState === 2 ? 3 : 0;\n }\n }\n break;\n case 3: // set value for a zero item\n if (zz[z]) {\n zz[z] += (readBit() << successive) * direction;\n } else {\n zz[z] = successiveACNextValue << successive;\n successiveACState = 0;\n }\n break;\n case 4: // eob\n if (zz[z]) {\n zz[z] += (readBit() << successive) * direction;\n }\n break;\n default:\n break;\n }\n k++;\n }\n if (successiveACState === 4) {\n eobrun--;\n if (eobrun === 0) {\n successiveACState = 0;\n }\n }\n }\n function decodeMcu(component, decodeFunction, mcu, row, col) {\n const mcuRow = (mcu / mcusPerLine) | 0;\n const mcuCol = mcu % mcusPerLine;\n const blockRow = (mcuRow * component.v) + row;\n const blockCol = (mcuCol * component.h) + col;\n decodeFunction(component, component.blocks[blockRow][blockCol]);\n }\n function decodeBlock(component, decodeFunction, mcu) {\n const blockRow = (mcu / component.blocksPerLine) | 0;\n const blockCol = mcu % component.blocksPerLine;\n decodeFunction(component, component.blocks[blockRow][blockCol]);\n }\n\n const componentsLength = components.length;\n let component;\n let i;\n let j;\n let k;\n let n;\n let decodeFn;\n if (progressive) {\n if (spectralStart === 0) {\n decodeFn = successivePrev === 0 ? decodeDCFirst : decodeDCSuccessive;\n } else {\n decodeFn = successivePrev === 0 ? decodeACFirst : decodeACSuccessive;\n }\n } else {\n decodeFn = decodeBaseline;\n }\n\n let mcu = 0;\n let marker;\n let mcuExpected;\n if (componentsLength === 1) {\n mcuExpected = components[0].blocksPerLine * components[0].blocksPerColumn;\n } else {\n mcuExpected = mcusPerLine * frame.mcusPerColumn;\n }\n\n const usedResetInterval = resetInterval || mcuExpected;\n\n while (mcu < mcuExpected) {\n // reset interval stuff\n for (i = 0; i < componentsLength; i++) {\n components[i].pred = 0;\n }\n eobrun = 0;\n\n if (componentsLength === 1) {\n component = components[0];\n for (n = 0; n < usedResetInterval; n++) {\n decodeBlock(component, decodeFn, mcu);\n mcu++;\n }\n } else {\n for (n = 0; n < usedResetInterval; n++) {\n for (i = 0; i < componentsLength; i++) {\n component = components[i];\n const { h, v } = component;\n for (j = 0; j < v; j++) {\n for (k = 0; k < h; k++) {\n decodeMcu(component, decodeFn, mcu, j, k);\n }\n }\n }\n mcu++;\n\n // If we've reached our expected MCU's, stop decoding\n if (mcu === mcuExpected) {\n break;\n }\n }\n }\n\n // find marker\n bitsCount = 0;\n marker = (data[offset] << 8) | data[offset + 1];\n if (marker < 0xFF00) {\n throw new Error('marker was not found');\n }\n\n if (marker >= 0xFFD0 && marker <= 0xFFD7) { // RSTx\n offset += 2;\n } else {\n break;\n }\n }\n\n return offset - startOffset;\n}\n\nfunction buildComponentData(frame, component) {\n const lines = [];\n const { blocksPerLine, blocksPerColumn } = component;\n const samplesPerLine = blocksPerLine << 3;\n const R = new Int32Array(64);\n const r = new Uint8Array(64);\n\n // A port of poppler's IDCT method which in turn is taken from:\n // Christoph Loeffler, Adriaan Ligtenberg, George S. Moschytz,\n // \"Practical Fast 1-D DCT Algorithms with 11 Multiplications\",\n // IEEE Intl. Conf. on Acoustics, Speech & Signal Processing, 1989,\n // 988-991.\n function quantizeAndInverse(zz, dataOut, dataIn) {\n const qt = component.quantizationTable;\n let v0;\n let v1;\n let v2;\n let v3;\n let v4;\n let v5;\n let v6;\n let v7;\n let t;\n const p = dataIn;\n let i;\n\n // dequant\n for (i = 0; i < 64; i++) {\n p[i] = zz[i] * qt[i];\n }\n\n // inverse DCT on rows\n for (i = 0; i < 8; ++i) {\n const row = 8 * i;\n\n // check for all-zero AC coefficients\n if (p[1 + row] === 0 && p[2 + row] === 0 && p[3 + row] === 0\n && p[4 + row] === 0 && p[5 + row] === 0 && p[6 + row] === 0\n && p[7 + row] === 0) {\n t = ((dctSqrt2 * p[0 + row]) + 512) >> 10;\n p[0 + row] = t;\n p[1 + row] = t;\n p[2 + row] = t;\n p[3 + row] = t;\n p[4 + row] = t;\n p[5 + row] = t;\n p[6 + row] = t;\n p[7 + row] = t;\n continue; // eslint-disable-line no-continue\n }\n\n // stage 4\n v0 = ((dctSqrt2 * p[0 + row]) + 128) >> 8;\n v1 = ((dctSqrt2 * p[4 + row]) + 128) >> 8;\n v2 = p[2 + row];\n v3 = p[6 + row];\n v4 = ((dctSqrt1d2 * (p[1 + row] - p[7 + row])) + 128) >> 8;\n v7 = ((dctSqrt1d2 * (p[1 + row] + p[7 + row])) + 128) >> 8;\n v5 = p[3 + row] << 4;\n v6 = p[5 + row] << 4;\n\n // stage 3\n t = (v0 - v1 + 1) >> 1;\n v0 = (v0 + v1 + 1) >> 1;\n v1 = t;\n t = ((v2 * dctSin6) + (v3 * dctCos6) + 128) >> 8;\n v2 = ((v2 * dctCos6) - (v3 * dctSin6) + 128) >> 8;\n v3 = t;\n t = (v4 - v6 + 1) >> 1;\n v4 = (v4 + v6 + 1) >> 1;\n v6 = t;\n t = (v7 + v5 + 1) >> 1;\n v5 = (v7 - v5 + 1) >> 1;\n v7 = t;\n\n // stage 2\n t = (v0 - v3 + 1) >> 1;\n v0 = (v0 + v3 + 1) >> 1;\n v3 = t;\n t = (v1 - v2 + 1) >> 1;\n v1 = (v1 + v2 + 1) >> 1;\n v2 = t;\n t = ((v4 * dctSin3) + (v7 * dctCos3) + 2048) >> 12;\n v4 = ((v4 * dctCos3) - (v7 * dctSin3) + 2048) >> 12;\n v7 = t;\n t = ((v5 * dctSin1) + (v6 * dctCos1) + 2048) >> 12;\n v5 = ((v5 * dctCos1) - (v6 * dctSin1) + 2048) >> 12;\n v6 = t;\n\n // stage 1\n p[0 + row] = v0 + v7;\n p[7 + row] = v0 - v7;\n p[1 + row] = v1 + v6;\n p[6 + row] = v1 - v6;\n p[2 + row] = v2 + v5;\n p[5 + row] = v2 - v5;\n p[3 + row] = v3 + v4;\n p[4 + row] = v3 - v4;\n }\n\n // inverse DCT on columns\n for (i = 0; i < 8; ++i) {\n const col = i;\n\n // check for all-zero AC coefficients\n if (p[(1 * 8) + col] === 0 && p[(2 * 8) + col] === 0 && p[(3 * 8) + col] === 0\n && p[(4 * 8) + col] === 0 && p[(5 * 8) + col] === 0 && p[(6 * 8) + col] === 0\n && p[(7 * 8) + col] === 0) {\n t = ((dctSqrt2 * dataIn[i + 0]) + 8192) >> 14;\n p[(0 * 8) + col] = t;\n p[(1 * 8) + col] = t;\n p[(2 * 8) + col] = t;\n p[(3 * 8) + col] = t;\n p[(4 * 8) + col] = t;\n p[(5 * 8) + col] = t;\n p[(6 * 8) + col] = t;\n p[(7 * 8) + col] = t;\n continue; // eslint-disable-line no-continue\n }\n\n // stage 4\n v0 = ((dctSqrt2 * p[(0 * 8) + col]) + 2048) >> 12;\n v1 = ((dctSqrt2 * p[(4 * 8) + col]) + 2048) >> 12;\n v2 = p[(2 * 8) + col];\n v3 = p[(6 * 8) + col];\n v4 = ((dctSqrt1d2 * (p[(1 * 8) + col] - p[(7 * 8) + col])) + 2048) >> 12;\n v7 = ((dctSqrt1d2 * (p[(1 * 8) + col] + p[(7 * 8) + col])) + 2048) >> 12;\n v5 = p[(3 * 8) + col];\n v6 = p[(5 * 8) + col];\n\n // stage 3\n t = (v0 - v1 + 1) >> 1;\n v0 = (v0 + v1 + 1) >> 1;\n v1 = t;\n t = ((v2 * dctSin6) + (v3 * dctCos6) + 2048) >> 12;\n v2 = ((v2 * dctCos6) - (v3 * dctSin6) + 2048) >> 12;\n v3 = t;\n t = (v4 - v6 + 1) >> 1;\n v4 = (v4 + v6 + 1) >> 1;\n v6 = t;\n t = (v7 + v5 + 1) >> 1;\n v5 = (v7 - v5 + 1) >> 1;\n v7 = t;\n\n // stage 2\n t = (v0 - v3 + 1) >> 1;\n v0 = (v0 + v3 + 1) >> 1;\n v3 = t;\n t = (v1 - v2 + 1) >> 1;\n v1 = (v1 + v2 + 1) >> 1;\n v2 = t;\n t = ((v4 * dctSin3) + (v7 * dctCos3) + 2048) >> 12;\n v4 = ((v4 * dctCos3) - (v7 * dctSin3) + 2048) >> 12;\n v7 = t;\n t = ((v5 * dctSin1) + (v6 * dctCos1) + 2048) >> 12;\n v5 = ((v5 * dctCos1) - (v6 * dctSin1) + 2048) >> 12;\n v6 = t;\n\n // stage 1\n p[(0 * 8) + col] = v0 + v7;\n p[(7 * 8) + col] = v0 - v7;\n p[(1 * 8) + col] = v1 + v6;\n p[(6 * 8) + col] = v1 - v6;\n p[(2 * 8) + col] = v2 + v5;\n p[(5 * 8) + col] = v2 - v5;\n p[(3 * 8) + col] = v3 + v4;\n p[(4 * 8) + col] = v3 - v4;\n }\n\n // convert to 8-bit integers\n for (i = 0; i < 64; ++i) {\n const sample = 128 + ((p[i] + 8) >> 4);\n if (sample < 0) {\n dataOut[i] = 0;\n } else if (sample > 0XFF) {\n dataOut[i] = 0xFF;\n } else {\n dataOut[i] = sample;\n }\n }\n }\n\n for (let blockRow = 0; blockRow < blocksPerColumn; blockRow++) {\n const scanLine = blockRow << 3;\n for (let i = 0; i < 8; i++) {\n lines.push(new Uint8Array(samplesPerLine));\n }\n for (let blockCol = 0; blockCol < blocksPerLine; blockCol++) {\n quantizeAndInverse(component.blocks[blockRow][blockCol], r, R);\n\n let offset = 0;\n const sample = blockCol << 3;\n for (let j = 0; j < 8; j++) {\n const line = lines[scanLine + j];\n for (let i = 0; i < 8; i++) {\n line[sample + i] = r[offset++];\n }\n }\n }\n }\n return lines;\n}\n\nclass JpegStreamReader {\n constructor() {\n this.jfif = null;\n this.adobe = null;\n\n this.quantizationTables = [];\n this.huffmanTablesAC = [];\n this.huffmanTablesDC = [];\n this.resetFrames();\n }\n\n resetFrames() {\n this.frames = [];\n }\n\n parse(data) {\n let offset = 0;\n // const { length } = data;\n function readUint16() {\n const value = (data[offset] << 8) | data[offset + 1];\n offset += 2;\n return value;\n }\n function readDataBlock() {\n const length = readUint16();\n const array = data.subarray(offset, offset + length - 2);\n offset += array.length;\n return array;\n }\n function prepareComponents(frame) {\n let maxH = 0;\n let maxV = 0;\n let component;\n let componentId;\n for (componentId in frame.components) {\n if (frame.components.hasOwnProperty(componentId)) {\n component = frame.components[componentId];\n if (maxH < component.h) {\n maxH = component.h;\n }\n if (maxV < component.v) {\n maxV = component.v;\n }\n }\n }\n const mcusPerLine = Math.ceil(frame.samplesPerLine / 8 / maxH);\n const mcusPerColumn = Math.ceil(frame.scanLines / 8 / maxV);\n for (componentId in frame.components) {\n if (frame.components.hasOwnProperty(componentId)) {\n component = frame.components[componentId];\n const blocksPerLine = Math.ceil(Math.ceil(frame.samplesPerLine / 8) * component.h / maxH);\n const blocksPerColumn = Math.ceil(Math.ceil(frame.scanLines / 8) * component.v / maxV);\n const blocksPerLineForMcu = mcusPerLine * component.h;\n const blocksPerColumnForMcu = mcusPerColumn * component.v;\n const blocks = [];\n for (let i = 0; i < blocksPerColumnForMcu; i++) {\n const row = [];\n for (let j = 0; j < blocksPerLineForMcu; j++) {\n row.push(new Int32Array(64));\n }\n blocks.push(row);\n }\n component.blocksPerLine = blocksPerLine;\n component.blocksPerColumn = blocksPerColumn;\n component.blocks = blocks;\n }\n }\n frame.maxH = maxH;\n frame.maxV = maxV;\n frame.mcusPerLine = mcusPerLine;\n frame.mcusPerColumn = mcusPerColumn;\n }\n\n let fileMarker = readUint16();\n if (fileMarker !== 0xFFD8) { // SOI (Start of Image)\n throw new Error('SOI not found');\n }\n\n fileMarker = readUint16();\n while (fileMarker !== 0xFFD9) { // EOI (End of image)\n switch (fileMarker) {\n case 0xFF00: break;\n case 0xFFE0: // APP0 (Application Specific)\n case 0xFFE1: // APP1\n case 0xFFE2: // APP2\n case 0xFFE3: // APP3\n case 0xFFE4: // APP4\n case 0xFFE5: // APP5\n case 0xFFE6: // APP6\n case 0xFFE7: // APP7\n case 0xFFE8: // APP8\n case 0xFFE9: // APP9\n case 0xFFEA: // APP10\n case 0xFFEB: // APP11\n case 0xFFEC: // APP12\n case 0xFFED: // APP13\n case 0xFFEE: // APP14\n case 0xFFEF: // APP15\n case 0xFFFE: { // COM (Comment)\n const appData = readDataBlock();\n\n if (fileMarker === 0xFFE0) {\n if (appData[0] === 0x4A && appData[1] === 0x46 && appData[2] === 0x49\n && appData[3] === 0x46 && appData[4] === 0) { // 'JFIF\\x00'\n this.jfif = {\n version: { major: appData[5], minor: appData[6] },\n densityUnits: appData[7],\n xDensity: (appData[8] << 8) | appData[9],\n yDensity: (appData[10] << 8) | appData[11],\n thumbWidth: appData[12],\n thumbHeight: appData[13],\n thumbData: appData.subarray(14, 14 + (3 * appData[12] * appData[13])),\n };\n }\n }\n // TODO APP1 - Exif\n if (fileMarker === 0xFFEE) {\n if (appData[0] === 0x41 && appData[1] === 0x64 && appData[2] === 0x6F\n && appData[3] === 0x62 && appData[4] === 0x65 && appData[5] === 0) { // 'Adobe\\x00'\n this.adobe = {\n version: appData[6],\n flags0: (appData[7] << 8) | appData[8],\n flags1: (appData[9] << 8) | appData[10],\n transformCode: appData[11],\n };\n }\n }\n break;\n }\n\n case 0xFFDB: { // DQT (Define Quantization Tables)\n const quantizationTablesLength = readUint16();\n const quantizationTablesEnd = quantizationTablesLength + offset - 2;\n while (offset < quantizationTablesEnd) {\n const quantizationTableSpec = data[offset++];\n const tableData = new Int32Array(64);\n if ((quantizationTableSpec >> 4) === 0) { // 8 bit values\n for (let j = 0; j < 64; j++) {\n const z = dctZigZag[j];\n tableData[z] = data[offset++];\n }\n } else if ((quantizationTableSpec >> 4) === 1) { // 16 bit\n for (let j = 0; j < 64; j++) {\n const z = dctZigZag[j];\n tableData[z] = readUint16();\n }\n } else {\n throw new Error('DQT: invalid table spec');\n }\n this.quantizationTables[quantizationTableSpec & 15] = tableData;\n }\n break;\n }\n\n case 0xFFC0: // SOF0 (Start of Frame, Baseline DCT)\n case 0xFFC1: // SOF1 (Start of Frame, Extended DCT)\n case 0xFFC2: { // SOF2 (Start of Frame, Progressive DCT)\n readUint16(); // skip data length\n const frame = {\n extended: (fileMarker === 0xFFC1),\n progressive: (fileMarker === 0xFFC2),\n precision: data[offset++],\n scanLines: readUint16(),\n samplesPerLine: readUint16(),\n components: {},\n componentsOrder: [],\n };\n\n const componentsCount = data[offset++];\n let componentId;\n // let maxH = 0;\n // let maxV = 0;\n for (let i = 0; i < componentsCount; i++) {\n componentId = data[offset];\n const h = data[offset + 1] >> 4;\n const v = data[offset + 1] & 15;\n const qId = data[offset + 2];\n frame.componentsOrder.push(componentId);\n frame.components[componentId] = {\n h,\n v,\n quantizationIdx: qId,\n };\n offset += 3;\n }\n prepareComponents(frame);\n this.frames.push(frame);\n break;\n }\n\n case 0xFFC4: { // DHT (Define Huffman Tables)\n const huffmanLength = readUint16();\n for (let i = 2; i < huffmanLength;) {\n const huffmanTableSpec = data[offset++];\n const codeLengths = new Uint8Array(16);\n let codeLengthSum = 0;\n for (let j = 0; j < 16; j++, offset++) {\n codeLengths[j] = data[offset];\n codeLengthSum += codeLengths[j];\n }\n const huffmanValues = new Uint8Array(codeLengthSum);\n for (let j = 0; j < codeLengthSum; j++, offset++) {\n huffmanValues[j] = data[offset];\n }\n i += 17 + codeLengthSum;\n\n if ((huffmanTableSpec >> 4) === 0) {\n this.huffmanTablesDC[huffmanTableSpec & 15] = buildHuffmanTable(\n codeLengths, huffmanValues,\n );\n } else {\n this.huffmanTablesAC[huffmanTableSpec & 15] = buildHuffmanTable(\n codeLengths, huffmanValues,\n );\n }\n }\n break;\n }\n\n case 0xFFDD: // DRI (Define Restart Interval)\n readUint16(); // skip data length\n this.resetInterval = readUint16();\n break;\n\n case 0xFFDA: { // SOS (Start of Scan)\n readUint16(); // skip length\n const selectorsCount = data[offset++];\n const components = [];\n const frame = this.frames[0];\n for (let i = 0; i < selectorsCount; i++) {\n const component = frame.components[data[offset++]];\n const tableSpec = data[offset++];\n component.huffmanTableDC = this.huffmanTablesDC[tableSpec >> 4];\n component.huffmanTableAC = this.huffmanTablesAC[tableSpec & 15];\n components.push(component);\n }\n const spectralStart = data[offset++];\n const spectralEnd = data[offset++];\n const successiveApproximation = data[offset++];\n const processed = decodeScan(data, offset,\n frame, components, this.resetInterval,\n spectralStart, spectralEnd,\n successiveApproximation >> 4, successiveApproximation & 15);\n offset += processed;\n break;\n }\n\n case 0xFFFF: // Fill bytes\n if (data[offset] !== 0xFF) { // Avoid skipping a valid marker.\n offset--;\n }\n break;\n\n default:\n if (data[offset - 3] === 0xFF\n && data[offset - 2] >= 0xC0 && data[offset - 2] <= 0xFE) {\n // could be incorrect encoding -- last 0xFF byte of the previous\n // block was eaten by the encoder\n offset -= 3;\n break;\n }\n throw new Error(`unknown JPEG marker ${fileMarker.toString(16)}`);\n }\n fileMarker = readUint16();\n }\n }\n\n getResult() {\n const { frames } = this;\n if (this.frames.length === 0) {\n throw new Error('no frames were decoded');\n } else if (this.frames.length > 1) {\n console.warn('more than one frame is not supported');\n }\n\n // set each frame's components quantization table\n for (let i = 0; i < this.frames.length; i++) {\n const cp = this.frames[i].components;\n for (const j of Object.keys(cp)) {\n cp[j].quantizationTable = this.quantizationTables[cp[j].quantizationIdx];\n delete cp[j].quantizationIdx;\n }\n }\n\n const frame = frames[0];\n const { components, componentsOrder } = frame;\n const outComponents = [];\n const width = frame.samplesPerLine;\n const height = frame.scanLines;\n\n for (let i = 0; i < componentsOrder.length; i++) {\n const component = components[componentsOrder[i]];\n outComponents.push({\n lines: buildComponentData(frame, component),\n scaleX: component.h / frame.maxH,\n scaleY: component.v / frame.maxV,\n });\n }\n\n const out = new Uint8Array(width * height * outComponents.length);\n let oi = 0;\n for (let y = 0; y < height; ++y) {\n for (let x = 0; x < width; ++x) {\n for (let i = 0; i < outComponents.length; ++i) {\n const component = outComponents[i];\n out[oi] = component.lines[0 | y * component.scaleY][0 | x * component.scaleX];\n ++oi;\n }\n }\n }\n return out;\n }\n}\n\nclass JpegDecoder extends _basedecoder__WEBPACK_IMPORTED_MODULE_0__[\"default\"] {\n constructor(fileDirectory) {\n super();\n this.reader = new JpegStreamReader();\n if (fileDirectory.JPEGTables) {\n this.reader.parse(fileDirectory.JPEGTables);\n }\n }\n\n decodeBlock(buffer) {\n this.reader.resetFrames();\n this.reader.parse(new Uint8Array(buffer));\n return this.reader.getResult().buffer;\n }\n}\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/geotiff/src/compression/jpeg.js?");
212
213/***/ }),
214
215/***/ "./node_modules/geotiff/src/compression/lzw.js":
216/*!*****************************************************!*\
217 !*** ./node_modules/geotiff/src/compression/lzw.js ***!
218 \*****************************************************/
219/*! exports provided: default */
220/***/ (function(module, __webpack_exports__, __webpack_require__) {
221
222"use strict";
223eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return LZWDecoder; });\n/* harmony import */ var _basedecoder__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./basedecoder */ \"./node_modules/geotiff/src/compression/basedecoder.js\");\n\n\n\nconst MIN_BITS = 9;\nconst CLEAR_CODE = 256; // clear code\nconst EOI_CODE = 257; // end of information\nconst MAX_BYTELENGTH = 12;\n\nfunction getByte(array, position, length) {\n const d = position % 8;\n const a = Math.floor(position / 8);\n const de = 8 - d;\n const ef = (position + length) - ((a + 1) * 8);\n let fg = (8 * (a + 2)) - (position + length);\n const dg = ((a + 2) * 8) - position;\n fg = Math.max(0, fg);\n if (a >= array.length) {\n console.warn('ran off the end of the buffer before finding EOI_CODE (end on input code)');\n return EOI_CODE;\n }\n let chunk1 = array[a] & ((2 ** (8 - d)) - 1);\n chunk1 <<= (length - de);\n let chunks = chunk1;\n if (a + 1 < array.length) {\n let chunk2 = array[a + 1] >>> fg;\n chunk2 <<= Math.max(0, (length - dg));\n chunks += chunk2;\n }\n if (ef > 8 && a + 2 < array.length) {\n const hi = ((a + 3) * 8) - (position + length);\n const chunk3 = array[a + 2] >>> hi;\n chunks += chunk3;\n }\n return chunks;\n}\n\nfunction appendReversed(dest, source) {\n for (let i = source.length - 1; i >= 0; i--) {\n dest.push(source[i]);\n }\n return dest;\n}\n\nfunction decompress(input) {\n const dictionaryIndex = new Uint16Array(4093);\n const dictionaryChar = new Uint8Array(4093);\n for (let i = 0; i <= 257; i++) {\n dictionaryIndex[i] = 4096;\n dictionaryChar[i] = i;\n }\n let dictionaryLength = 258;\n let byteLength = MIN_BITS;\n let position = 0;\n\n function initDictionary() {\n dictionaryLength = 258;\n byteLength = MIN_BITS;\n }\n function getNext(array) {\n const byte = getByte(array, position, byteLength);\n position += byteLength;\n return byte;\n }\n function addToDictionary(i, c) {\n dictionaryChar[dictionaryLength] = c;\n dictionaryIndex[dictionaryLength] = i;\n dictionaryLength++;\n return dictionaryLength - 1;\n }\n function getDictionaryReversed(n) {\n const rev = [];\n for (let i = n; i !== 4096; i = dictionaryIndex[i]) {\n rev.push(dictionaryChar[i]);\n }\n return rev;\n }\n\n const result = [];\n initDictionary();\n const array = new Uint8Array(input);\n let code = getNext(array);\n let oldCode;\n while (code !== EOI_CODE) {\n if (code === CLEAR_CODE) {\n initDictionary();\n code = getNext(array);\n while (code === CLEAR_CODE) {\n code = getNext(array);\n }\n\n if (code === EOI_CODE) {\n break;\n } else if (code > CLEAR_CODE) {\n throw new Error(`corrupted code at scanline ${code}`);\n } else {\n const val = getDictionaryReversed(code);\n appendReversed(result, val);\n oldCode = code;\n }\n } else if (code < dictionaryLength) {\n const val = getDictionaryReversed(code);\n appendReversed(result, val);\n addToDictionary(oldCode, val[val.length - 1]);\n oldCode = code;\n } else {\n const oldVal = getDictionaryReversed(oldCode);\n if (!oldVal) {\n throw new Error(`Bogus entry. Not in dictionary, ${oldCode} / ${dictionaryLength}, position: ${position}`);\n }\n appendReversed(result, oldVal);\n result.push(oldVal[oldVal.length - 1]);\n addToDictionary(oldCode, oldVal[oldVal.length - 1]);\n oldCode = code;\n }\n\n if (dictionaryLength + 1 >= (2 ** byteLength)) {\n if (byteLength === MAX_BYTELENGTH) {\n oldCode = undefined;\n } else {\n byteLength++;\n }\n }\n code = getNext(array);\n }\n return new Uint8Array(result);\n}\n\nclass LZWDecoder extends _basedecoder__WEBPACK_IMPORTED_MODULE_0__[\"default\"] {\n decodeBlock(buffer) {\n return decompress(buffer, false).buffer;\n }\n}\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/geotiff/src/compression/lzw.js?");
224
225/***/ }),
226
227/***/ "./node_modules/geotiff/src/compression/packbits.js":
228/*!**********************************************************!*\
229 !*** ./node_modules/geotiff/src/compression/packbits.js ***!
230 \**********************************************************/
231/*! exports provided: default */
232/***/ (function(module, __webpack_exports__, __webpack_require__) {
233
234"use strict";
235eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return PackbitsDecoder; });\n/* harmony import */ var _basedecoder__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./basedecoder */ \"./node_modules/geotiff/src/compression/basedecoder.js\");\n\n\n\nclass PackbitsDecoder extends _basedecoder__WEBPACK_IMPORTED_MODULE_0__[\"default\"] {\n decodeBlock(buffer) {\n const dataView = new DataView(buffer);\n const out = [];\n\n for (let i = 0; i < buffer.byteLength; ++i) {\n let header = dataView.getInt8(i);\n if (header < 0) {\n const next = dataView.getUint8(i + 1);\n header = -header;\n for (let j = 0; j <= header; ++j) {\n out.push(next);\n }\n i += 1;\n } else {\n for (let j = 0; j <= header; ++j) {\n out.push(dataView.getUint8(i + j + 1));\n }\n i += header + 1;\n }\n }\n return new Uint8Array(out).buffer;\n }\n}\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/geotiff/src/compression/packbits.js?");
236
237/***/ }),
238
239/***/ "./node_modules/geotiff/src/compression/raw.js":
240/*!*****************************************************!*\
241 !*** ./node_modules/geotiff/src/compression/raw.js ***!
242 \*****************************************************/
243/*! exports provided: default */
244/***/ (function(module, __webpack_exports__, __webpack_require__) {
245
246"use strict";
247eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return RawDecoder; });\n/* harmony import */ var _basedecoder__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./basedecoder */ \"./node_modules/geotiff/src/compression/basedecoder.js\");\n\n\n\nclass RawDecoder extends _basedecoder__WEBPACK_IMPORTED_MODULE_0__[\"default\"] {\n decodeBlock(buffer) {\n return buffer;\n }\n}\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/geotiff/src/compression/raw.js?");
248
249/***/ }),
250
251/***/ "./node_modules/geotiff/src/dataslice.js":
252/*!***********************************************!*\
253 !*** ./node_modules/geotiff/src/dataslice.js ***!
254 \***********************************************/
255/*! exports provided: default */
256/***/ (function(module, __webpack_exports__, __webpack_require__) {
257
258"use strict";
259eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return DataSlice; });\nclass DataSlice {\n constructor(arrayBuffer, sliceOffset, littleEndian, bigTiff) {\n this._dataView = new DataView(arrayBuffer);\n this._sliceOffset = sliceOffset;\n this._littleEndian = littleEndian;\n this._bigTiff = bigTiff;\n }\n\n get sliceOffset() {\n return this._sliceOffset;\n }\n\n get sliceTop() {\n return this._sliceOffset + this.buffer.byteLength;\n }\n\n get littleEndian() {\n return this._littleEndian;\n }\n\n get bigTiff() {\n return this._bigTiff;\n }\n\n get buffer() {\n return this._dataView.buffer;\n }\n\n covers(offset, length) {\n return this.sliceOffset <= offset && this.sliceTop >= offset + length;\n }\n\n readUint8(offset) {\n return this._dataView.getUint8(\n offset - this._sliceOffset, this._littleEndian,\n );\n }\n\n readInt8(offset) {\n return this._dataView.getInt8(\n offset - this._sliceOffset, this._littleEndian,\n );\n }\n\n readUint16(offset) {\n return this._dataView.getUint16(\n offset - this._sliceOffset, this._littleEndian,\n );\n }\n\n readInt16(offset) {\n return this._dataView.getInt16(\n offset - this._sliceOffset, this._littleEndian,\n );\n }\n\n readUint32(offset) {\n return this._dataView.getUint32(\n offset - this._sliceOffset, this._littleEndian,\n );\n }\n\n readInt32(offset) {\n return this._dataView.getInt32(\n offset - this._sliceOffset, this._littleEndian,\n );\n }\n\n readFloat32(offset) {\n return this._dataView.getFloat32(\n offset - this._sliceOffset, this._littleEndian,\n );\n }\n\n readFloat64(offset) {\n return this._dataView.getFloat64(\n offset - this._sliceOffset, this._littleEndian,\n );\n }\n\n readUint64(offset) {\n const left = this.readUint32(offset);\n const right = this.readUint32(offset + 4);\n let combined;\n if (this._littleEndian) {\n combined = left + 2 ** 32 * right;\n if (!Number.isSafeInteger(combined)) {\n throw new Error(\n `${combined} exceeds MAX_SAFE_INTEGER. Precision may be lost. Please report if you get this message to https://github.com/geotiffjs/geotiff.js/issues`,\n );\n }\n return combined;\n }\n combined = 2 ** 32 * left + right;\n if (!Number.isSafeInteger(combined)) {\n throw new Error(\n `${combined} exceeds MAX_SAFE_INTEGER. Precision may be lost. Please report if you get this message to https://github.com/geotiffjs/geotiff.js/issues`,\n );\n }\n\n return combined;\n }\n\n // adapted from https://stackoverflow.com/a/55338384/8060591\n readInt64(offset) {\n let value = 0;\n const isNegative =\n (this._dataView.getUint8(offset + (this._littleEndian ? 7 : 0)) & 0x80) >\n 0;\n let carrying = true;\n for (let i = 0; i < 8; i++) {\n let byte = this._dataView.getUint8(\n offset + (this._littleEndian ? i : 7 - i)\n );\n if (isNegative) {\n if (carrying) {\n if (byte !== 0x00) {\n byte = ~(byte - 1) & 0xff;\n carrying = false;\n }\n } else {\n byte = ~byte & 0xff;\n }\n }\n value += byte * 256 ** i;\n }\n if (isNegative) {\n value = -value;\n }\n return value\n }\n\n readOffset(offset) {\n if (this._bigTiff) {\n return this.readUint64(offset);\n }\n return this.readUint32(offset);\n }\n}\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/geotiff/src/dataslice.js?");
260
261/***/ }),
262
263/***/ "./node_modules/geotiff/src/dataview64.js":
264/*!************************************************!*\
265 !*** ./node_modules/geotiff/src/dataview64.js ***!
266 \************************************************/
267/*! exports provided: default */
268/***/ (function(module, __webpack_exports__, __webpack_require__) {
269
270"use strict";
271eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return DataView64; });\nclass DataView64 {\n constructor(arrayBuffer) {\n this._dataView = new DataView(arrayBuffer);\n }\n\n get buffer() {\n return this._dataView.buffer;\n }\n\n getUint64(offset, littleEndian) {\n const left = this.getUint32(offset, littleEndian);\n const right = this.getUint32(offset + 4, littleEndian);\n let combined;\n if (littleEndian) {\n combined = left + 2 ** 32 * right;\n if (!Number.isSafeInteger(combined)) {\n throw new Error(\n `${combined} exceeds MAX_SAFE_INTEGER. Precision may be lost. Please report if you get this message to https://github.com/geotiffjs/geotiff.js/issues`\n );\n }\n return combined;\n }\n combined = 2 ** 32 * left + right;\n if (!Number.isSafeInteger(combined)) {\n throw new Error(\n `${combined} exceeds MAX_SAFE_INTEGER. Precision may be lost. Please report if you get this message to https://github.com/geotiffjs/geotiff.js/issues`\n );\n }\n\n return combined;\n }\n\n // adapted from https://stackoverflow.com/a/55338384/8060591\n getInt64(offset, littleEndian) {\n let value = 0;\n const isNegative =\n (this._dataView.getUint8(offset + (littleEndian ? 7 : 0)) & 0x80) > 0;\n let carrying = true;\n for (let i = 0; i < 8; i++) {\n let byte = this._dataView.getUint8(offset + (littleEndian ? i : 7 - i));\n if (isNegative) {\n if (carrying) {\n if (byte !== 0x00) {\n byte = ~(byte - 1) & 0xff;\n carrying = false;\n }\n } else {\n byte = ~byte & 0xff;\n }\n }\n value += byte * 256 ** i;\n }\n if (isNegative) {\n value = -value;\n }\n return value;\n }\n\n getUint8(offset, littleEndian) {\n return this._dataView.getUint8(offset, littleEndian);\n }\n\n getInt8(offset, littleEndian) {\n return this._dataView.getInt8(offset, littleEndian);\n }\n\n getUint16(offset, littleEndian) {\n return this._dataView.getUint16(offset, littleEndian);\n }\n\n getInt16(offset, littleEndian) {\n return this._dataView.getInt16(offset, littleEndian);\n }\n\n getUint32(offset, littleEndian) {\n return this._dataView.getUint32(offset, littleEndian);\n }\n\n getInt32(offset, littleEndian) {\n return this._dataView.getInt32(offset, littleEndian);\n }\n\n getFloat32(offset, littleEndian) {\n return this._dataView.getFloat32(offset, littleEndian);\n }\n\n getFloat64(offset, littleEndian) {\n return this._dataView.getFloat64(offset, littleEndian);\n }\n}\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/geotiff/src/dataview64.js?");
272
273/***/ }),
274
275/***/ "./node_modules/geotiff/src/geotiff.js":
276/*!*********************************************!*\
277 !*** ./node_modules/geotiff/src/geotiff.js ***!
278 \*********************************************/
279/*! exports provided: globals, rgb, getDecoder, setLogger, GeoTIFF, default, MultiGeoTIFF, fromUrl, fromArrayBuffer, fromFile, fromBlob, fromUrls, writeArrayBuffer, Pool */
280/***/ (function(module, __webpack_exports__, __webpack_require__) {
281
282"use strict";
283eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"GeoTIFF\", function() { return GeoTIFF; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"MultiGeoTIFF\", function() { return MultiGeoTIFF; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"fromUrl\", function() { return fromUrl; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"fromArrayBuffer\", function() { return fromArrayBuffer; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"fromFile\", function() { return fromFile; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"fromBlob\", function() { return fromBlob; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"fromUrls\", function() { return fromUrls; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"writeArrayBuffer\", function() { return writeArrayBuffer; });\n/* harmony import */ var _geotiffimage__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./geotiffimage */ \"./node_modules/geotiff/src/geotiffimage.js\");\n/* harmony import */ var _dataview64__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./dataview64 */ \"./node_modules/geotiff/src/dataview64.js\");\n/* harmony import */ var _dataslice__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./dataslice */ \"./node_modules/geotiff/src/dataslice.js\");\n/* harmony import */ var _pool__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./pool */ \"./node_modules/geotiff/src/pool.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Pool\", function() { return _pool__WEBPACK_IMPORTED_MODULE_3__[\"default\"]; });\n\n/* harmony import */ var _source__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./source */ \"./node_modules/geotiff/src/source.js\");\n/* harmony import */ var _globals__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./globals */ \"./node_modules/geotiff/src/globals.js\");\n/* harmony import */ var _geotiffwriter__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./geotiffwriter */ \"./node_modules/geotiff/src/geotiffwriter.js\");\n/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, \"globals\", function() { return _globals__WEBPACK_IMPORTED_MODULE_5__; });\n/* harmony import */ var _rgb__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./rgb */ \"./node_modules/geotiff/src/rgb.js\");\n/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, \"rgb\", function() { return _rgb__WEBPACK_IMPORTED_MODULE_7__; });\n/* harmony import */ var _compression__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./compression */ \"./node_modules/geotiff/src/compression/index.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"getDecoder\", function() { return _compression__WEBPACK_IMPORTED_MODULE_8__[\"getDecoder\"]; });\n\n/* harmony import */ var _logging__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./logging */ \"./node_modules/geotiff/src/logging.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"setLogger\", function() { return _logging__WEBPACK_IMPORTED_MODULE_9__[\"setLogger\"]; });\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nfunction getFieldTypeLength(fieldType) {\n switch (fieldType) {\n case _globals__WEBPACK_IMPORTED_MODULE_5__[\"fieldTypes\"].BYTE: case _globals__WEBPACK_IMPORTED_MODULE_5__[\"fieldTypes\"].ASCII: case _globals__WEBPACK_IMPORTED_MODULE_5__[\"fieldTypes\"].SBYTE: case _globals__WEBPACK_IMPORTED_MODULE_5__[\"fieldTypes\"].UNDEFINED:\n return 1;\n case _globals__WEBPACK_IMPORTED_MODULE_5__[\"fieldTypes\"].SHORT: case _globals__WEBPACK_IMPORTED_MODULE_5__[\"fieldTypes\"].SSHORT:\n return 2;\n case _globals__WEBPACK_IMPORTED_MODULE_5__[\"fieldTypes\"].LONG: case _globals__WEBPACK_IMPORTED_MODULE_5__[\"fieldTypes\"].SLONG: case _globals__WEBPACK_IMPORTED_MODULE_5__[\"fieldTypes\"].FLOAT: case _globals__WEBPACK_IMPORTED_MODULE_5__[\"fieldTypes\"].IFD:\n return 4;\n case _globals__WEBPACK_IMPORTED_MODULE_5__[\"fieldTypes\"].RATIONAL: case _globals__WEBPACK_IMPORTED_MODULE_5__[\"fieldTypes\"].SRATIONAL: case _globals__WEBPACK_IMPORTED_MODULE_5__[\"fieldTypes\"].DOUBLE:\n case _globals__WEBPACK_IMPORTED_MODULE_5__[\"fieldTypes\"].LONG8: case _globals__WEBPACK_IMPORTED_MODULE_5__[\"fieldTypes\"].SLONG8: case _globals__WEBPACK_IMPORTED_MODULE_5__[\"fieldTypes\"].IFD8:\n return 8;\n default:\n throw new RangeError(`Invalid field type: ${fieldType}`);\n }\n}\n\nfunction parseGeoKeyDirectory(fileDirectory) {\n const rawGeoKeyDirectory = fileDirectory.GeoKeyDirectory;\n if (!rawGeoKeyDirectory) {\n return null;\n }\n\n const geoKeyDirectory = {};\n for (let i = 4; i <= rawGeoKeyDirectory[3] * 4; i += 4) {\n const key = _globals__WEBPACK_IMPORTED_MODULE_5__[\"geoKeyNames\"][rawGeoKeyDirectory[i]];\n const location = (rawGeoKeyDirectory[i + 1])\n ? (_globals__WEBPACK_IMPORTED_MODULE_5__[\"fieldTagNames\"][rawGeoKeyDirectory[i + 1]]) : null;\n const count = rawGeoKeyDirectory[i + 2];\n const offset = rawGeoKeyDirectory[i + 3];\n\n let value = null;\n if (!location) {\n value = offset;\n } else {\n value = fileDirectory[location];\n if (typeof value === 'undefined' || value === null) {\n throw new Error(`Could not get value of geoKey '${key}'.`);\n } else if (typeof value === 'string') {\n value = value.substring(offset, offset + count - 1);\n } else if (value.subarray) {\n value = value.subarray(offset, offset + count);\n if (count === 1) {\n value = value[0];\n }\n }\n }\n geoKeyDirectory[key] = value;\n }\n return geoKeyDirectory;\n}\n\nfunction getValues(dataSlice, fieldType, count, offset) {\n let values = null;\n let readMethod = null;\n const fieldTypeLength = getFieldTypeLength(fieldType);\n\n switch (fieldType) {\n case _globals__WEBPACK_IMPORTED_MODULE_5__[\"fieldTypes\"].BYTE: case _globals__WEBPACK_IMPORTED_MODULE_5__[\"fieldTypes\"].ASCII: case _globals__WEBPACK_IMPORTED_MODULE_5__[\"fieldTypes\"].UNDEFINED:\n values = new Uint8Array(count); readMethod = dataSlice.readUint8;\n break;\n case _globals__WEBPACK_IMPORTED_MODULE_5__[\"fieldTypes\"].SBYTE:\n values = new Int8Array(count); readMethod = dataSlice.readInt8;\n break;\n case _globals__WEBPACK_IMPORTED_MODULE_5__[\"fieldTypes\"].SHORT:\n values = new Uint16Array(count); readMethod = dataSlice.readUint16;\n break;\n case _globals__WEBPACK_IMPORTED_MODULE_5__[\"fieldTypes\"].SSHORT:\n values = new Int16Array(count); readMethod = dataSlice.readInt16;\n break;\n case _globals__WEBPACK_IMPORTED_MODULE_5__[\"fieldTypes\"].LONG: case _globals__WEBPACK_IMPORTED_MODULE_5__[\"fieldTypes\"].IFD:\n values = new Uint32Array(count); readMethod = dataSlice.readUint32;\n break;\n case _globals__WEBPACK_IMPORTED_MODULE_5__[\"fieldTypes\"].SLONG:\n values = new Int32Array(count); readMethod = dataSlice.readInt32;\n break;\n case _globals__WEBPACK_IMPORTED_MODULE_5__[\"fieldTypes\"].LONG8: case _globals__WEBPACK_IMPORTED_MODULE_5__[\"fieldTypes\"].IFD8:\n values = new Array(count); readMethod = dataSlice.readUint64;\n break;\n case _globals__WEBPACK_IMPORTED_MODULE_5__[\"fieldTypes\"].SLONG8:\n values = new Array(count); readMethod = dataSlice.readInt64;\n break;\n case _globals__WEBPACK_IMPORTED_MODULE_5__[\"fieldTypes\"].RATIONAL:\n values = new Uint32Array(count * 2); readMethod = dataSlice.readUint32;\n break;\n case _globals__WEBPACK_IMPORTED_MODULE_5__[\"fieldTypes\"].SRATIONAL:\n values = new Int32Array(count * 2); readMethod = dataSlice.readInt32;\n break;\n case _globals__WEBPACK_IMPORTED_MODULE_5__[\"fieldTypes\"].FLOAT:\n values = new Float32Array(count); readMethod = dataSlice.readFloat32;\n break;\n case _globals__WEBPACK_IMPORTED_MODULE_5__[\"fieldTypes\"].DOUBLE:\n values = new Float64Array(count); readMethod = dataSlice.readFloat64;\n break;\n default:\n throw new RangeError(`Invalid field type: ${fieldType}`);\n }\n\n // normal fields\n if (!(fieldType === _globals__WEBPACK_IMPORTED_MODULE_5__[\"fieldTypes\"].RATIONAL || fieldType === _globals__WEBPACK_IMPORTED_MODULE_5__[\"fieldTypes\"].SRATIONAL)) {\n for (let i = 0; i < count; ++i) {\n values[i] = readMethod.call(\n dataSlice, offset + (i * fieldTypeLength),\n );\n }\n } else { // RATIONAL or SRATIONAL\n for (let i = 0; i < count; i += 2) {\n values[i] = readMethod.call(\n dataSlice, offset + (i * fieldTypeLength),\n );\n values[i + 1] = readMethod.call(\n dataSlice, offset + ((i * fieldTypeLength) + 4),\n );\n }\n }\n\n if (fieldType === _globals__WEBPACK_IMPORTED_MODULE_5__[\"fieldTypes\"].ASCII) {\n return String.fromCharCode.apply(null, values);\n }\n return values;\n}\n\n/**\n * Data class to store the parsed file directory, geo key directory and\n * offset to the next IFD\n */\nclass ImageFileDirectory {\n constructor(fileDirectory, geoKeyDirectory, nextIFDByteOffset) {\n this.fileDirectory = fileDirectory;\n this.geoKeyDirectory = geoKeyDirectory;\n this.nextIFDByteOffset = nextIFDByteOffset;\n }\n}\n\n/**\n * Error class for cases when an IFD index was requested, that does not exist\n * in the file.\n */\nclass GeoTIFFImageIndexError extends Error {\n constructor(index) {\n super(`No image at index ${index}`);\n this.index = index;\n }\n}\n\n\nclass GeoTIFFBase {\n /**\n * (experimental) Reads raster data from the best fitting image. This function uses\n * the image with the lowest resolution that is still a higher resolution than the\n * requested resolution.\n * When specified, the `bbox` option is translated to the `window` option and the\n * `resX` and `resY` to `width` and `height` respectively.\n * Then, the [readRasters]{@link GeoTIFFImage#readRasters} method of the selected\n * image is called and the result returned.\n * @see GeoTIFFImage.readRasters\n * @param {Object} [options={}] optional parameters\n * @param {Array} [options.window=whole image] the subset to read data from.\n * @param {Array} [options.bbox=whole image] the subset to read data from in\n * geographical coordinates.\n * @param {Array} [options.samples=all samples] the selection of samples to read from.\n * @param {Boolean} [options.interleave=false] whether the data shall be read\n * in one single array or separate\n * arrays.\n * @param {Number} [options.pool=null] The optional decoder pool to use.\n * @param {Number} [options.width] The desired width of the output. When the width is not the\n * same as the images, resampling will be performed.\n * @param {Number} [options.height] The desired height of the output. When the width is not the\n * same as the images, resampling will be performed.\n * @param {String} [options.resampleMethod='nearest'] The desired resampling method.\n * @param {Number|Number[]} [options.fillValue] The value to use for parts of the image\n * outside of the images extent. When multiple\n * samples are requested, an array of fill values\n * can be passed.\n * @returns {Promise.<(TypedArray|TypedArray[])>} the decoded arrays as a promise\n */\n async readRasters(options = {}) {\n const { window: imageWindow, width, height } = options;\n let { resX, resY, bbox } = options;\n\n const firstImage = await this.getImage();\n let usedImage = firstImage;\n const imageCount = await this.getImageCount();\n const imgBBox = firstImage.getBoundingBox();\n\n if (imageWindow && bbox) {\n throw new Error('Both \"bbox\" and \"window\" passed.');\n }\n\n // if width/height is passed, transform it to resolution\n if (width || height) {\n // if we have an image window (pixel coordinates), transform it to a BBox\n // using the origin/resolution of the first image.\n if (imageWindow) {\n const [oX, oY] = firstImage.getOrigin();\n const [rX, rY] = firstImage.getResolution();\n\n bbox = [\n oX + (imageWindow[0] * rX),\n oY + (imageWindow[1] * rY),\n oX + (imageWindow[2] * rX),\n oY + (imageWindow[3] * rY),\n ];\n }\n\n // if we have a bbox (or calculated one)\n\n const usedBBox = bbox || imgBBox;\n\n if (width) {\n if (resX) {\n throw new Error('Both width and resX passed');\n }\n resX = (usedBBox[2] - usedBBox[0]) / width;\n }\n if (height) {\n if (resY) {\n throw new Error('Both width and resY passed');\n }\n resY = (usedBBox[3] - usedBBox[1]) / height;\n }\n }\n\n // if resolution is set or calculated, try to get the image with the worst acceptable resolution\n if (resX || resY) {\n const allImages = [];\n for (let i = 0; i < imageCount; ++i) {\n const image = await this.getImage(i);\n const { SubfileType: subfileType, NewSubfileType: newSubfileType } = image.fileDirectory;\n if (i === 0 || subfileType === 2 || newSubfileType & 1) {\n allImages.push(image);\n }\n }\n\n allImages.sort((a, b) => a.getWidth() - b.getWidth());\n for (let i = 0; i < allImages.length; ++i) {\n const image = allImages[i];\n const imgResX = (imgBBox[2] - imgBBox[0]) / image.getWidth();\n const imgResY = (imgBBox[3] - imgBBox[1]) / image.getHeight();\n\n usedImage = image;\n if ((resX && resX > imgResX) || (resY && resY > imgResY)) {\n break;\n }\n }\n }\n\n let wnd = imageWindow;\n if (bbox) {\n const [oX, oY] = firstImage.getOrigin();\n const [imageResX, imageResY] = usedImage.getResolution(firstImage);\n\n wnd = [\n Math.round((bbox[0] - oX) / imageResX),\n Math.round((bbox[1] - oY) / imageResY),\n Math.round((bbox[2] - oX) / imageResX),\n Math.round((bbox[3] - oY) / imageResY),\n ];\n wnd = [\n Math.min(wnd[0], wnd[2]),\n Math.min(wnd[1], wnd[3]),\n Math.max(wnd[0], wnd[2]),\n Math.max(wnd[1], wnd[3]),\n ];\n }\n\n return usedImage.readRasters({ ...options, window: wnd });\n }\n}\n\n\n/**\n * The abstraction for a whole GeoTIFF file.\n * @augments GeoTIFFBase\n */\nclass GeoTIFF extends GeoTIFFBase {\n /**\n * @constructor\n * @param {Source} source The datasource to read from.\n * @param {Boolean} littleEndian Whether the image uses little endian.\n * @param {Boolean} bigTiff Whether the image uses bigTIFF conventions.\n * @param {Number} firstIFDOffset The numeric byte-offset from the start of the image\n * to the first IFD.\n * @param {Object} [options] further options.\n * @param {Boolean} [options.cache=false] whether or not decoded tiles shall be cached.\n */\n constructor(source, littleEndian, bigTiff, firstIFDOffset, options = {}) {\n super();\n this.source = source;\n this.littleEndian = littleEndian;\n this.bigTiff = bigTiff;\n this.firstIFDOffset = firstIFDOffset;\n this.cache = options.cache || false;\n this.ifdRequests = [];\n this.ghostValues = null;\n }\n\n async getSlice(offset, size) {\n const fallbackSize = this.bigTiff ? 4048 : 1024;\n return new _dataslice__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\n await this.source.fetch(\n offset, typeof size !== 'undefined' ? size : fallbackSize,\n ), offset, this.littleEndian, this.bigTiff,\n );\n }\n\n /**\n * Instructs to parse an image file directory at the given file offset.\n * As there is no way to ensure that a location is indeed the start of an IFD,\n * this function must be called with caution (e.g only using the IFD offsets from\n * the headers or other IFDs).\n * @param {number} offset the offset to parse the IFD at\n * @returns {ImageFileDirectory} the parsed IFD\n */\n async parseFileDirectoryAt(offset) {\n const entrySize = this.bigTiff ? 20 : 12;\n const offsetSize = this.bigTiff ? 8 : 2;\n\n let dataSlice = await this.getSlice(offset);\n const numDirEntries = this.bigTiff ?\n dataSlice.readUint64(offset) :\n dataSlice.readUint16(offset);\n\n // if the slice does not cover the whole IFD, request a bigger slice, where the\n // whole IFD fits: num of entries + n x tag length + offset to next IFD\n const byteSize = (numDirEntries * entrySize) + (this.bigTiff ? 16 : 6);\n if (!dataSlice.covers(offset, byteSize)) {\n dataSlice = await this.getSlice(offset, byteSize);\n }\n\n const fileDirectory = {};\n\n // loop over the IFD and create a file directory object\n let i = offset + (this.bigTiff ? 8 : 2);\n for (let entryCount = 0; entryCount < numDirEntries; i += entrySize, ++entryCount) {\n const fieldTag = dataSlice.readUint16(i);\n const fieldType = dataSlice.readUint16(i + 2);\n const typeCount = this.bigTiff ?\n dataSlice.readUint64(i + 4) :\n dataSlice.readUint32(i + 4);\n\n let fieldValues;\n let value;\n const fieldTypeLength = getFieldTypeLength(fieldType);\n const valueOffset = i + (this.bigTiff ? 12 : 8);\n\n // check whether the value is directly encoded in the tag or refers to a\n // different external byte range\n if (fieldTypeLength * typeCount <= (this.bigTiff ? 8 : 4)) {\n fieldValues = getValues(dataSlice, fieldType, typeCount, valueOffset);\n } else {\n // resolve the reference to the actual byte range\n const actualOffset = dataSlice.readOffset(valueOffset);\n const length = getFieldTypeLength(fieldType) * typeCount;\n\n // check, whether we actually cover the referenced byte range; if not,\n // request a new slice of bytes to read from it\n if (dataSlice.covers(actualOffset, length)) {\n fieldValues = getValues(dataSlice, fieldType, typeCount, actualOffset);\n } else {\n const fieldDataSlice = await this.getSlice(actualOffset, length);\n fieldValues = getValues(fieldDataSlice, fieldType, typeCount, actualOffset);\n }\n }\n\n // unpack single values from the array\n if (typeCount === 1 && _globals__WEBPACK_IMPORTED_MODULE_5__[\"arrayFields\"].indexOf(fieldTag) === -1 &&\n !(fieldType === _globals__WEBPACK_IMPORTED_MODULE_5__[\"fieldTypes\"].RATIONAL || fieldType === _globals__WEBPACK_IMPORTED_MODULE_5__[\"fieldTypes\"].SRATIONAL)) {\n value = fieldValues[0];\n } else {\n value = fieldValues;\n }\n\n // write the tags value to the file directly\n fileDirectory[_globals__WEBPACK_IMPORTED_MODULE_5__[\"fieldTagNames\"][fieldTag]] = value;\n }\n const geoKeyDirectory = parseGeoKeyDirectory(fileDirectory);\n const nextIFDByteOffset = dataSlice.readOffset(\n offset + offsetSize + (entrySize * numDirEntries),\n );\n\n return new ImageFileDirectory(\n fileDirectory,\n geoKeyDirectory,\n nextIFDByteOffset,\n );\n }\n\n async requestIFD(index) {\n // see if we already have that IFD index requested.\n if (this.ifdRequests[index]) {\n // attach to an already requested IFD\n return this.ifdRequests[index];\n } else if (index === 0) {\n // special case for index 0\n this.ifdRequests[index] = this.parseFileDirectoryAt(this.firstIFDOffset);\n return this.ifdRequests[index];\n } else if (!this.ifdRequests[index - 1]) {\n // if the previous IFD was not yet loaded, load that one first\n // this is the recursive call.\n try {\n this.ifdRequests[index - 1] = this.requestIFD(index - 1);\n } catch (e) {\n // if the previous one already was an index error, rethrow\n // with the current index\n if (e instanceof GeoTIFFImageIndexError) {\n throw new GeoTIFFImageIndexError(index);\n }\n // rethrow anything else\n throw e;\n }\n }\n // if the previous IFD was loaded, we can finally fetch the one we are interested in.\n // we need to wrap this in an IIFE, otherwise this.ifdRequests[index] would be delayed\n this.ifdRequests[index] = (async () => {\n const previousIfd = await this.ifdRequests[index - 1];\n if (previousIfd.nextIFDByteOffset === 0) {\n throw new GeoTIFFImageIndexError(index);\n }\n return this.parseFileDirectoryAt(previousIfd.nextIFDByteOffset);\n })();\n return this.ifdRequests[index];\n }\n\n /**\n * Get the n-th internal subfile of an image. By default, the first is returned.\n *\n * @param {Number} [index=0] the index of the image to return.\n * @returns {GeoTIFFImage} the image at the given index\n */\n async getImage(index = 0) {\n const ifd = await this.requestIFD(index);\n return new _geotiffimage__WEBPACK_IMPORTED_MODULE_0__[\"default\"](\n ifd.fileDirectory, ifd.geoKeyDirectory,\n this.dataView, this.littleEndian, this.cache, this.source,\n );\n }\n\n /**\n * Returns the count of the internal subfiles.\n *\n * @returns {Number} the number of internal subfile images\n */\n async getImageCount() {\n let index = 0;\n // loop until we run out of IFDs\n let hasNext = true;\n while (hasNext) {\n try {\n await this.requestIFD(index);\n ++index;\n } catch (e) {\n if (e instanceof GeoTIFFImageIndexError) {\n hasNext = false;\n } else {\n throw e;\n }\n }\n }\n return index;\n }\n\n /**\n * Get the values of the COG ghost area as a parsed map.\n * See https://gdal.org/drivers/raster/cog.html#header-ghost-area for reference\n * @returns {Object} the parsed ghost area or null, if no such area was found\n */\n async getGhostValues() {\n const offset = this.bigTiff ? 16 : 8;\n if (this.ghostValues) {\n return this.ghostValues;\n }\n const detectionString = 'GDAL_STRUCTURAL_METADATA_SIZE=';\n const heuristicAreaSize = detectionString.length + 100;\n let slice = await this.getSlice(offset, heuristicAreaSize);\n if (detectionString === getValues(slice, _globals__WEBPACK_IMPORTED_MODULE_5__[\"fieldTypes\"].ASCII, detectionString.length, offset)) {\n const valuesString = getValues(slice, _globals__WEBPACK_IMPORTED_MODULE_5__[\"fieldTypes\"].ASCII, heuristicAreaSize, offset);\n const firstLine = valuesString.split('\\n')[0];\n const metadataSize = Number(firstLine.split('=')[1].split(' ')[0]) + firstLine.length;\n if (metadataSize > heuristicAreaSize) {\n slice = await this.getSlice(offset, metadataSize);\n }\n const fullString = getValues(slice, _globals__WEBPACK_IMPORTED_MODULE_5__[\"fieldTypes\"].ASCII, metadataSize, offset);\n this.ghostValues = {};\n fullString\n .split('\\n')\n .filter(line => line.length > 0)\n .map(line => line.split('='))\n .forEach(([key, value]) => {\n this.ghostValues[key] = value;\n });\n }\n return this.ghostValues;\n }\n\n /**\n * Parse a (Geo)TIFF file from the given source.\n *\n * @param {source~Source} source The source of data to parse from.\n * @param {object} options Additional options.\n */\n static async fromSource(source, options) {\n const headerData = await source.fetch(0, 1024);\n const dataView = new _dataview64__WEBPACK_IMPORTED_MODULE_1__[\"default\"](headerData);\n\n const BOM = dataView.getUint16(0, 0);\n let littleEndian;\n if (BOM === 0x4949) {\n littleEndian = true;\n } else if (BOM === 0x4D4D) {\n littleEndian = false;\n } else {\n throw new TypeError('Invalid byte order value.');\n }\n\n const magicNumber = dataView.getUint16(2, littleEndian);\n let bigTiff;\n if (magicNumber === 42) {\n bigTiff = false;\n } else if (magicNumber === 43) {\n bigTiff = true;\n const offsetByteSize = dataView.getUint16(4, littleEndian);\n if (offsetByteSize !== 8) {\n throw new Error('Unsupported offset byte-size.');\n }\n } else {\n throw new TypeError('Invalid magic number.');\n }\n\n const firstIFDOffset = bigTiff\n ? dataView.getUint64(8, littleEndian)\n : dataView.getUint32(4, littleEndian);\n return new GeoTIFF(source, littleEndian, bigTiff, firstIFDOffset, options);\n }\n\n /**\n * Closes the underlying file buffer\n * N.B. After the GeoTIFF has been completely processed it needs\n * to be closed but only if it has been constructed from a file.\n */\n close() {\n if (typeof this.source.close === 'function') {\n return this.source.close();\n }\n return false;\n }\n}\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (GeoTIFF);\n\n/**\n * Wrapper for GeoTIFF files that have external overviews.\n * @augments GeoTIFFBase\n */\nclass MultiGeoTIFF extends GeoTIFFBase {\n /**\n * Construct a new MultiGeoTIFF from a main and several overview files.\n * @param {GeoTIFF} mainFile The main GeoTIFF file.\n * @param {GeoTIFF[]} overviewFiles An array of overview files.\n */\n constructor(mainFile, overviewFiles) {\n super();\n this.mainFile = mainFile;\n this.overviewFiles = overviewFiles;\n this.imageFiles = [mainFile].concat(overviewFiles);\n\n this.fileDirectoriesPerFile = null;\n this.fileDirectoriesPerFileParsing = null;\n this.imageCount = null;\n }\n\n async parseFileDirectoriesPerFile() {\n const requests = [this.mainFile.parseFileDirectoryAt(this.mainFile.firstIFDOffset)]\n .concat(this.overviewFiles.map((file) => file.parseFileDirectoryAt(file.firstIFDOffset)));\n\n this.fileDirectoriesPerFile = await Promise.all(requests);\n return this.fileDirectoriesPerFile;\n }\n\n /**\n * Get the n-th internal subfile of an image. By default, the first is returned.\n *\n * @param {Number} [index=0] the index of the image to return.\n * @returns {GeoTIFFImage} the image at the given index\n */\n async getImage(index = 0) {\n await this.getImageCount();\n await this.parseFileDirectoriesPerFile();\n let visited = 0;\n let relativeIndex = 0;\n for (let i = 0; i < this.imageFiles.length; i++) {\n const imageFile = this.imageFiles[i];\n for (let ii = 0; ii < this.imageCounts[i]; ii++) {\n if (index === visited) {\n const ifd = await imageFile.requestIFD(relativeIndex);\n return new _geotiffimage__WEBPACK_IMPORTED_MODULE_0__[\"default\"](\n ifd.fileDirectory, imageFile.geoKeyDirectory,\n imageFile.dataView, imageFile.littleEndian, imageFile.cache, imageFile.source,\n );\n }\n visited++;\n relativeIndex++;\n }\n relativeIndex = 0;\n }\n\n throw new RangeError('Invalid image index');\n }\n\n /**\n * Returns the count of the internal subfiles.\n *\n * @returns {Number} the number of internal subfile images\n */\n async getImageCount() {\n if (this.imageCount !== null) {\n return this.imageCount;\n }\n const requests = [this.mainFile.getImageCount()]\n .concat(this.overviewFiles.map((file) => file.getImageCount()));\n this.imageCounts = await Promise.all(requests);\n this.imageCount = this.imageCounts.reduce((count, ifds) => count + ifds, 0);\n return this.imageCount;\n }\n}\n\n\n\n/**\n * Creates a new GeoTIFF from a remote URL.\n * @param {string} url The URL to access the image from\n * @param {object} [options] Additional options to pass to the source.\n * See {@link makeRemoteSource} for details.\n * @returns {Promise.<GeoTIFF>} The resulting GeoTIFF file.\n */\nasync function fromUrl(url, options = {}) {\n return GeoTIFF.fromSource(Object(_source__WEBPACK_IMPORTED_MODULE_4__[\"makeRemoteSource\"])(url, options));\n}\n\n/**\n * Construct a new GeoTIFF from an\n * [ArrayBuffer]{@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer}.\n * @param {ArrayBuffer} arrayBuffer The data to read the file from.\n * @returns {Promise.<GeoTIFF>} The resulting GeoTIFF file.\n */\nasync function fromArrayBuffer(arrayBuffer) {\n return GeoTIFF.fromSource(Object(_source__WEBPACK_IMPORTED_MODULE_4__[\"makeBufferSource\"])(arrayBuffer));\n}\n\n/**\n * Construct a GeoTIFF from a local file path. This uses the node\n * [filesystem API]{@link https://nodejs.org/api/fs.html} and is\n * not available on browsers.\n *\n * N.B. After the GeoTIFF has been completely processed it needs\n * to be closed but only if it has been constructed from a file.\n * @param {string} path The file path to read from.\n * @returns {Promise.<GeoTIFF>} The resulting GeoTIFF file.\n */\nasync function fromFile(path) {\n return GeoTIFF.fromSource(Object(_source__WEBPACK_IMPORTED_MODULE_4__[\"makeFileSource\"])(path));\n}\n\n/**\n * Construct a GeoTIFF from an HTML\n * [Blob]{@link https://developer.mozilla.org/en-US/docs/Web/API/Blob} or\n * [File]{@link https://developer.mozilla.org/en-US/docs/Web/API/File}\n * object.\n * @param {Blob|File} blob The Blob or File object to read from.\n * @returns {Promise.<GeoTIFF>} The resulting GeoTIFF file.\n */\nasync function fromBlob(blob) {\n return GeoTIFF.fromSource(Object(_source__WEBPACK_IMPORTED_MODULE_4__[\"makeFileReaderSource\"])(blob));\n}\n\n/**\n * Construct a MultiGeoTIFF from the given URLs.\n * @param {string} mainUrl The URL for the main file.\n * @param {string[]} overviewUrls An array of URLs for the overview images.\n * @param {object} [options] Additional options to pass to the source.\n * See [makeRemoteSource]{@link module:source.makeRemoteSource}\n * for details.\n * @returns {Promise.<MultiGeoTIFF>} The resulting MultiGeoTIFF file.\n */\nasync function fromUrls(mainUrl, overviewUrls = [], options = {}) {\n const mainFile = await GeoTIFF.fromSource(Object(_source__WEBPACK_IMPORTED_MODULE_4__[\"makeRemoteSource\"])(mainUrl, options));\n const overviewFiles = await Promise.all(\n overviewUrls.map((url) => GeoTIFF.fromSource(Object(_source__WEBPACK_IMPORTED_MODULE_4__[\"makeRemoteSource\"])(url, options))),\n );\n\n return new MultiGeoTIFF(mainFile, overviewFiles);\n}\n\n/**\n * Main creating function for GeoTIFF files.\n * @param {(Array)} array of pixel values\n * @returns {metadata} metadata\n */\nasync function writeArrayBuffer(values, metadata) {\n return Object(_geotiffwriter__WEBPACK_IMPORTED_MODULE_6__[\"writeGeotiff\"])(values, metadata);\n}\n\n\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/geotiff/src/geotiff.js?");
284
285/***/ }),
286
287/***/ "./node_modules/geotiff/src/geotiffimage.js":
288/*!**************************************************!*\
289 !*** ./node_modules/geotiff/src/geotiffimage.js ***!
290 \**************************************************/
291/*! exports provided: default */
292/***/ (function(module, __webpack_exports__, __webpack_require__) {
293
294"use strict";
295eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var txml__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! txml */ \"./node_modules/txml/tXml.js\");\n/* harmony import */ var txml__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(txml__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _globals__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./globals */ \"./node_modules/geotiff/src/globals.js\");\n/* harmony import */ var _rgb__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./rgb */ \"./node_modules/geotiff/src/rgb.js\");\n/* harmony import */ var _compression__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./compression */ \"./node_modules/geotiff/src/compression/index.js\");\n/* harmony import */ var _resample__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./resample */ \"./node_modules/geotiff/src/resample.js\");\n/* eslint max-len: [\"error\", { \"code\": 120 }] */\n\n\n\n\n\n\n\nfunction sum(array, start, end) {\n let s = 0;\n for (let i = start; i < end; ++i) {\n s += array[i];\n }\n return s;\n}\n\nfunction arrayForType(format, bitsPerSample, size) {\n switch (format) {\n case 1: // unsigned integer data\n switch (bitsPerSample) {\n case 8:\n return new Uint8Array(size);\n case 16:\n return new Uint16Array(size);\n case 32:\n return new Uint32Array(size);\n default:\n break;\n }\n break;\n case 2: // twos complement signed integer data\n switch (bitsPerSample) {\n case 8:\n return new Int8Array(size);\n case 16:\n return new Int16Array(size);\n case 32:\n return new Int32Array(size);\n default:\n break;\n }\n break;\n case 3: // floating point data\n switch (bitsPerSample) {\n case 32:\n return new Float32Array(size);\n case 64:\n return new Float64Array(size);\n default:\n break;\n }\n break;\n default:\n break;\n }\n throw Error('Unsupported data format/bitsPerSample');\n}\n\n/**\n * GeoTIFF sub-file image.\n */\nclass GeoTIFFImage {\n /**\n * @constructor\n * @param {Object} fileDirectory The parsed file directory\n * @param {Object} geoKeys The parsed geo-keys\n * @param {DataView} dataView The DataView for the underlying file.\n * @param {Boolean} littleEndian Whether the file is encoded in little or big endian\n * @param {Boolean} cache Whether or not decoded tiles shall be cached\n * @param {Source} source The datasource to read from\n */\n constructor(fileDirectory, geoKeys, dataView, littleEndian, cache, source) {\n this.fileDirectory = fileDirectory;\n this.geoKeys = geoKeys;\n this.dataView = dataView;\n this.littleEndian = littleEndian;\n this.tiles = cache ? {} : null;\n this.isTiled = !fileDirectory.StripOffsets;\n const planarConfiguration = fileDirectory.PlanarConfiguration;\n this.planarConfiguration = (typeof planarConfiguration === 'undefined') ? 1 : planarConfiguration;\n if (this.planarConfiguration !== 1 && this.planarConfiguration !== 2) {\n throw new Error('Invalid planar configuration.');\n }\n\n this.source = source;\n }\n\n /**\n * Returns the associated parsed file directory.\n * @returns {Object} the parsed file directory\n */\n getFileDirectory() {\n return this.fileDirectory;\n }\n\n /**\n * Returns the associated parsed geo keys.\n * @returns {Object} the parsed geo keys\n */\n getGeoKeys() {\n return this.geoKeys;\n }\n\n /**\n * Returns the width of the image.\n * @returns {Number} the width of the image\n */\n getWidth() {\n return this.fileDirectory.ImageWidth;\n }\n\n /**\n * Returns the height of the image.\n * @returns {Number} the height of the image\n */\n getHeight() {\n return this.fileDirectory.ImageLength;\n }\n\n /**\n * Returns the number of samples per pixel.\n * @returns {Number} the number of samples per pixel\n */\n getSamplesPerPixel() {\n return this.fileDirectory.SamplesPerPixel;\n }\n\n /**\n * Returns the width of each tile.\n * @returns {Number} the width of each tile\n */\n getTileWidth() {\n return this.isTiled ? this.fileDirectory.TileWidth : this.getWidth();\n }\n\n /**\n * Returns the height of each tile.\n * @returns {Number} the height of each tile\n */\n getTileHeight() {\n if (this.isTiled) {\n return this.fileDirectory.TileLength;\n }\n if (typeof this.fileDirectory.RowsPerStrip !== 'undefined') {\n return Math.min(this.fileDirectory.RowsPerStrip, this.getHeight());\n }\n return this.getHeight();\n }\n\n /**\n * Calculates the number of bytes for each pixel across all samples. Only full\n * bytes are supported, an exception is thrown when this is not the case.\n * @returns {Number} the bytes per pixel\n */\n getBytesPerPixel() {\n let bitsPerSample = 0;\n for (let i = 0; i < this.fileDirectory.BitsPerSample.length; ++i) {\n const bits = this.fileDirectory.BitsPerSample[i];\n if ((bits % 8) !== 0) {\n throw new Error(`Sample bit-width of ${bits} is not supported.`);\n } else if (bits !== this.fileDirectory.BitsPerSample[0]) {\n throw new Error('Differing size of samples in a pixel are not supported.');\n }\n bitsPerSample += bits;\n }\n return bitsPerSample / 8;\n }\n\n getSampleByteSize(i) {\n if (i >= this.fileDirectory.BitsPerSample.length) {\n throw new RangeError(`Sample index ${i} is out of range.`);\n }\n const bits = this.fileDirectory.BitsPerSample[i];\n if ((bits % 8) !== 0) {\n throw new Error(`Sample bit-width of ${bits} is not supported.`);\n }\n return (bits / 8);\n }\n\n getReaderForSample(sampleIndex) {\n const format = this.fileDirectory.SampleFormat\n ? this.fileDirectory.SampleFormat[sampleIndex] : 1;\n const bitsPerSample = this.fileDirectory.BitsPerSample[sampleIndex];\n switch (format) {\n case 1: // unsigned integer data\n switch (bitsPerSample) {\n case 8:\n return DataView.prototype.getUint8;\n case 16:\n return DataView.prototype.getUint16;\n case 32:\n return DataView.prototype.getUint32;\n default:\n break;\n }\n break;\n case 2: // twos complement signed integer data\n switch (bitsPerSample) {\n case 8:\n return DataView.prototype.getInt8;\n case 16:\n return DataView.prototype.getInt16;\n case 32:\n return DataView.prototype.getInt32;\n default:\n break;\n }\n break;\n case 3:\n switch (bitsPerSample) {\n case 32:\n return DataView.prototype.getFloat32;\n case 64:\n return DataView.prototype.getFloat64;\n default:\n break;\n }\n break;\n default:\n break;\n }\n throw Error('Unsupported data format/bitsPerSample');\n }\n\n getArrayForSample(sampleIndex, size) {\n const format = this.fileDirectory.SampleFormat\n ? this.fileDirectory.SampleFormat[sampleIndex] : 1;\n const bitsPerSample = this.fileDirectory.BitsPerSample[sampleIndex];\n return arrayForType(format, bitsPerSample, size);\n }\n\n /**\n * Returns the decoded strip or tile.\n * @param {Number} x the strip or tile x-offset\n * @param {Number} y the tile y-offset (0 for stripped images)\n * @param {Number} sample the sample to get for separated samples\n * @param {Pool|AbstractDecoder} poolOrDecoder the decoder or decoder pool\n * @returns {Promise.<ArrayBuffer>}\n */\n async getTileOrStrip(x, y, sample, poolOrDecoder) {\n const numTilesPerRow = Math.ceil(this.getWidth() / this.getTileWidth());\n const numTilesPerCol = Math.ceil(this.getHeight() / this.getTileHeight());\n let index;\n const { tiles } = this;\n if (this.planarConfiguration === 1) {\n index = (y * numTilesPerRow) + x;\n } else if (this.planarConfiguration === 2) {\n index = (sample * numTilesPerRow * numTilesPerCol) + (y * numTilesPerRow) + x;\n }\n\n let offset;\n let byteCount;\n if (this.isTiled) {\n offset = this.fileDirectory.TileOffsets[index];\n byteCount = this.fileDirectory.TileByteCounts[index];\n } else {\n offset = this.fileDirectory.StripOffsets[index];\n byteCount = this.fileDirectory.StripByteCounts[index];\n }\n const slice = await this.source.fetch(offset, byteCount);\n\n // either use the provided pool or decoder to decode the data\n let request;\n if (tiles === null) {\n request = poolOrDecoder.decode(this.fileDirectory, slice);\n } else if (!tiles[index]) {\n request = poolOrDecoder.decode(this.fileDirectory, slice);\n tiles[index] = request;\n }\n return { x, y, sample, data: await request };\n }\n\n /**\n * Internal read function.\n * @private\n * @param {Array} imageWindow The image window in pixel coordinates\n * @param {Array} samples The selected samples (0-based indices)\n * @param {TypedArray[]|TypedArray} valueArrays The array(s) to write into\n * @param {Boolean} interleave Whether or not to write in an interleaved manner\n * @param {Pool} pool The decoder pool\n * @returns {Promise<TypedArray[]>|Promise<TypedArray>}\n */\n async _readRaster(imageWindow, samples, valueArrays, interleave, poolOrDecoder, width, height, resampleMethod) {\n const tileWidth = this.getTileWidth();\n const tileHeight = this.getTileHeight();\n\n const minXTile = Math.max(Math.floor(imageWindow[0] / tileWidth), 0);\n const maxXTile = Math.min(\n Math.ceil(imageWindow[2] / tileWidth),\n Math.ceil(this.getWidth() / this.getTileWidth()),\n );\n const minYTile = Math.max(Math.floor(imageWindow[1] / tileHeight), 0);\n const maxYTile = Math.min(\n Math.ceil(imageWindow[3] / tileHeight),\n Math.ceil(this.getHeight() / this.getTileHeight()),\n );\n const windowWidth = imageWindow[2] - imageWindow[0];\n\n let bytesPerPixel = this.getBytesPerPixel();\n\n const srcSampleOffsets = [];\n const sampleReaders = [];\n for (let i = 0; i < samples.length; ++i) {\n if (this.planarConfiguration === 1) {\n srcSampleOffsets.push(sum(this.fileDirectory.BitsPerSample, 0, samples[i]) / 8);\n } else {\n srcSampleOffsets.push(0);\n }\n sampleReaders.push(this.getReaderForSample(samples[i]));\n }\n\n const promises = [];\n const { littleEndian } = this;\n\n for (let yTile = minYTile; yTile < maxYTile; ++yTile) {\n for (let xTile = minXTile; xTile < maxXTile; ++xTile) {\n for (let sampleIndex = 0; sampleIndex < samples.length; ++sampleIndex) {\n const si = sampleIndex;\n const sample = samples[sampleIndex];\n if (this.planarConfiguration === 2) {\n bytesPerPixel = this.getSampleByteSize(sample);\n }\n const promise = this.getTileOrStrip(xTile, yTile, sample, poolOrDecoder);\n promises.push(promise);\n promise.then((tile) => {\n const buffer = tile.data;\n const dataView = new DataView(buffer);\n const firstLine = tile.y * tileHeight;\n const firstCol = tile.x * tileWidth;\n const lastLine = (tile.y + 1) * tileHeight;\n const lastCol = (tile.x + 1) * tileWidth;\n const reader = sampleReaders[si];\n\n const ymax = Math.min(tileHeight, tileHeight - (lastLine - imageWindow[3]));\n const xmax = Math.min(tileWidth, tileWidth - (lastCol - imageWindow[2]));\n\n for (let y = Math.max(0, imageWindow[1] - firstLine); y < ymax; ++y) {\n for (let x = Math.max(0, imageWindow[0] - firstCol); x < xmax; ++x) {\n const pixelOffset = ((y * tileWidth) + x) * bytesPerPixel;\n const value = reader.call(\n dataView, pixelOffset + srcSampleOffsets[si], littleEndian,\n );\n let windowCoordinate;\n if (interleave) {\n windowCoordinate = ((y + firstLine - imageWindow[1]) * windowWidth * samples.length)\n + ((x + firstCol - imageWindow[0]) * samples.length)\n + si;\n valueArrays[windowCoordinate] = value;\n } else {\n windowCoordinate = (\n (y + firstLine - imageWindow[1]) * windowWidth\n ) + x + firstCol - imageWindow[0];\n valueArrays[si][windowCoordinate] = value;\n }\n }\n }\n });\n }\n }\n }\n await Promise.all(promises);\n\n if ((width && (imageWindow[2] - imageWindow[0]) !== width)\n || (height && (imageWindow[3] - imageWindow[1]) !== height)) {\n let resampled;\n if (interleave) {\n resampled = Object(_resample__WEBPACK_IMPORTED_MODULE_4__[\"resampleInterleaved\"])(\n valueArrays,\n imageWindow[2] - imageWindow[0],\n imageWindow[3] - imageWindow[1],\n width, height,\n samples.length,\n resampleMethod,\n );\n } else {\n resampled = Object(_resample__WEBPACK_IMPORTED_MODULE_4__[\"resample\"])(\n valueArrays,\n imageWindow[2] - imageWindow[0],\n imageWindow[3] - imageWindow[1],\n width, height,\n resampleMethod,\n );\n }\n resampled.width = width;\n resampled.height = height;\n return resampled;\n }\n\n valueArrays.width = width || imageWindow[2] - imageWindow[0];\n valueArrays.height = height || imageWindow[3] - imageWindow[1];\n\n return valueArrays;\n }\n\n /**\n * Reads raster data from the image. This function reads all selected samples\n * into separate arrays of the correct type for that sample or into a single\n * combined array when `interleave` is set. When provided, only a subset\n * of the raster is read for each sample.\n *\n * @param {Object} [options={}] optional parameters\n * @param {Array} [options.window=whole image] the subset to read data from.\n * @param {Array} [options.samples=all samples] the selection of samples to read from.\n * @param {Boolean} [options.interleave=false] whether the data shall be read\n * in one single array or separate\n * arrays.\n * @param {Number} [options.pool=null] The optional decoder pool to use.\n * @param {number} [options.width] The desired width of the output. When the width is\n * not the same as the images, resampling will be\n * performed.\n * @param {number} [options.height] The desired height of the output. When the width\n * is not the same as the images, resampling will\n * be performed.\n * @param {string} [options.resampleMethod='nearest'] The desired resampling method.\n * @param {number|number[]} [options.fillValue] The value to use for parts of the image\n * outside of the images extent. When\n * multiple samples are requested, an\n * array of fill values can be passed.\n * @returns {Promise.<(TypedArray|TypedArray[])>} the decoded arrays as a promise\n */\n async readRasters({\n window: wnd, samples = [], interleave, pool = null,\n width, height, resampleMethod, fillValue,\n } = {}) {\n const imageWindow = wnd || [0, 0, this.getWidth(), this.getHeight()];\n\n // check parameters\n if (imageWindow[0] > imageWindow[2] || imageWindow[1] > imageWindow[3]) {\n throw new Error('Invalid subsets');\n }\n\n const imageWindowWidth = imageWindow[2] - imageWindow[0];\n const imageWindowHeight = imageWindow[3] - imageWindow[1];\n const numPixels = imageWindowWidth * imageWindowHeight;\n\n if (!samples || !samples.length) {\n for (let i = 0; i < this.fileDirectory.SamplesPerPixel; ++i) {\n samples.push(i);\n }\n } else {\n for (let i = 0; i < samples.length; ++i) {\n if (samples[i] >= this.fileDirectory.SamplesPerPixel) {\n return Promise.reject(new RangeError(`Invalid sample index '${samples[i]}'.`));\n }\n }\n }\n let valueArrays;\n if (interleave) {\n const format = this.fileDirectory.SampleFormat\n ? Math.max.apply(null, this.fileDirectory.SampleFormat) : 1;\n const bitsPerSample = Math.max.apply(null, this.fileDirectory.BitsPerSample);\n valueArrays = arrayForType(format, bitsPerSample, numPixels * samples.length);\n if (fillValue) {\n valueArrays.fill(fillValue);\n }\n } else {\n valueArrays = [];\n for (let i = 0; i < samples.length; ++i) {\n const valueArray = this.getArrayForSample(samples[i], numPixels);\n if (Array.isArray(fillValue) && i < fillValue.length) {\n valueArray.fill(fillValue[i]);\n } else if (fillValue && !Array.isArray(fillValue)) {\n valueArray.fill(fillValue);\n }\n valueArrays.push(valueArray);\n }\n }\n\n const poolOrDecoder = pool || Object(_compression__WEBPACK_IMPORTED_MODULE_3__[\"getDecoder\"])(this.fileDirectory);\n\n const result = await this._readRaster(\n imageWindow, samples, valueArrays, interleave, poolOrDecoder, width, height, resampleMethod,\n );\n return result;\n }\n\n /**\n * Reads raster data from the image as RGB. The result is always an\n * interleaved typed array.\n * Colorspaces other than RGB will be transformed to RGB, color maps expanded.\n * When no other method is applicable, the first sample is used to produce a\n * greayscale image.\n * When provided, only a subset of the raster is read for each sample.\n *\n * @param {Object} [options] optional parameters\n * @param {Array} [options.window=whole image] the subset to read data from.\n * @param {Number} [pool=null] The optional decoder pool to use.\n * @param {number} [width] The desired width of the output. When the width is no the\n * same as the images, resampling will be performed.\n * @param {number} [height] The desired height of the output. When the width is no the\n * same as the images, resampling will be performed.\n * @param {string} [resampleMethod='nearest'] The desired resampling method.\n * @param {bool} [enableAlpha=false] Enable reading alpha channel if present.\n * @returns {Promise.<TypedArray|TypedArray[]>} the RGB array as a Promise\n */\n async readRGB({ window, pool = null, width, height, resampleMethod, enableAlpha = false } = {}) {\n const imageWindow = window || [0, 0, this.getWidth(), this.getHeight()];\n\n // check parameters\n if (imageWindow[0] > imageWindow[2] || imageWindow[1] > imageWindow[3]) {\n throw new Error('Invalid subsets');\n }\n\n const pi = this.fileDirectory.PhotometricInterpretation;\n\n if (pi === _globals__WEBPACK_IMPORTED_MODULE_1__[\"photometricInterpretations\"].RGB) {\n let s = [0, 1, 2];\n if ((!(this.fileDirectory.ExtraSamples === _globals__WEBPACK_IMPORTED_MODULE_1__[\"ExtraSamplesValues\"].Unspecified)) && enableAlpha) {\n s = [];\n for (let i = 0; i < this.fileDirectory.BitsPerSample.length; i += 1) {\n s.push(i);\n }\n }\n return this.readRasters({\n window,\n interleave: true,\n samples: s,\n pool,\n width,\n height,\n });\n }\n\n let samples;\n switch (pi) {\n case _globals__WEBPACK_IMPORTED_MODULE_1__[\"photometricInterpretations\"].WhiteIsZero:\n case _globals__WEBPACK_IMPORTED_MODULE_1__[\"photometricInterpretations\"].BlackIsZero:\n case _globals__WEBPACK_IMPORTED_MODULE_1__[\"photometricInterpretations\"].Palette:\n samples = [0];\n break;\n case _globals__WEBPACK_IMPORTED_MODULE_1__[\"photometricInterpretations\"].CMYK:\n samples = [0, 1, 2, 3];\n break;\n case _globals__WEBPACK_IMPORTED_MODULE_1__[\"photometricInterpretations\"].YCbCr:\n case _globals__WEBPACK_IMPORTED_MODULE_1__[\"photometricInterpretations\"].CIELab:\n samples = [0, 1, 2];\n break;\n default:\n throw new Error('Invalid or unsupported photometric interpretation.');\n }\n\n const subOptions = {\n window: imageWindow,\n interleave: true,\n samples,\n pool,\n width,\n height,\n resampleMethod,\n };\n const { fileDirectory } = this;\n const raster = await this.readRasters(subOptions);\n\n const max = 2 ** this.fileDirectory.BitsPerSample[0];\n let data;\n switch (pi) {\n case _globals__WEBPACK_IMPORTED_MODULE_1__[\"photometricInterpretations\"].WhiteIsZero:\n data = Object(_rgb__WEBPACK_IMPORTED_MODULE_2__[\"fromWhiteIsZero\"])(raster, max);\n break;\n case _globals__WEBPACK_IMPORTED_MODULE_1__[\"photometricInterpretations\"].BlackIsZero:\n data = Object(_rgb__WEBPACK_IMPORTED_MODULE_2__[\"fromBlackIsZero\"])(raster, max);\n break;\n case _globals__WEBPACK_IMPORTED_MODULE_1__[\"photometricInterpretations\"].Palette:\n data = Object(_rgb__WEBPACK_IMPORTED_MODULE_2__[\"fromPalette\"])(raster, fileDirectory.ColorMap);\n break;\n case _globals__WEBPACK_IMPORTED_MODULE_1__[\"photometricInterpretations\"].CMYK:\n data = Object(_rgb__WEBPACK_IMPORTED_MODULE_2__[\"fromCMYK\"])(raster);\n break;\n case _globals__WEBPACK_IMPORTED_MODULE_1__[\"photometricInterpretations\"].YCbCr:\n data = Object(_rgb__WEBPACK_IMPORTED_MODULE_2__[\"fromYCbCr\"])(raster);\n break;\n case _globals__WEBPACK_IMPORTED_MODULE_1__[\"photometricInterpretations\"].CIELab:\n data = Object(_rgb__WEBPACK_IMPORTED_MODULE_2__[\"fromCIELab\"])(raster);\n break;\n default:\n throw new Error('Unsupported photometric interpretation.');\n }\n data.width = raster.width;\n data.height = raster.height;\n return data;\n }\n\n /**\n * Returns an array of tiepoints.\n * @returns {Object[]}\n */\n getTiePoints() {\n if (!this.fileDirectory.ModelTiepoint) {\n return [];\n }\n\n const tiePoints = [];\n for (let i = 0; i < this.fileDirectory.ModelTiepoint.length; i += 6) {\n tiePoints.push({\n i: this.fileDirectory.ModelTiepoint[i],\n j: this.fileDirectory.ModelTiepoint[i + 1],\n k: this.fileDirectory.ModelTiepoint[i + 2],\n x: this.fileDirectory.ModelTiepoint[i + 3],\n y: this.fileDirectory.ModelTiepoint[i + 4],\n z: this.fileDirectory.ModelTiepoint[i + 5],\n });\n }\n return tiePoints;\n }\n\n /**\n * Returns the parsed GDAL metadata items.\n *\n * If sample is passed to null, dataset-level metadata will be returned.\n * Otherwise only metadata specific to the provided sample will be returned.\n *\n * @param {Number} [sample=null] The sample index.\n * @returns {Object}\n */\n getGDALMetadata(sample = null) {\n const metadata = {};\n if (!this.fileDirectory.GDAL_METADATA) {\n return null;\n }\n const string = this.fileDirectory.GDAL_METADATA;\n const xmlDom = txml__WEBPACK_IMPORTED_MODULE_0___default()(string.substring(0, string.length - 1));\n\n if (!xmlDom[0].tagName) {\n throw new Error('Failed to parse GDAL metadata XML.');\n }\n\n const root = xmlDom[0];\n if (root.tagName !== 'GDALMetadata') {\n throw new Error('Unexpected GDAL metadata XML tag.');\n }\n\n let items = root.children\n .filter((child) => child.tagName === 'Item');\n\n if (sample) {\n items = items.filter((item) => Number(item.attributes.sample) === sample);\n }\n\n for (let i = 0; i < items.length; ++i) {\n const item = items[i];\n metadata[item.attributes.name] = item.children[0];\n }\n return metadata;\n }\n\n /**\n * Returns the GDAL nodata value\n * @returns {Number} or null\n */\n getGDALNoData() {\n if (!this.fileDirectory.GDAL_NODATA) {\n return null;\n }\n const string = this.fileDirectory.GDAL_NODATA;\n return Number(string.substring(0, string.length - 1));\n }\n\n /**\n * Returns the image origin as a XYZ-vector. When the image has no affine\n * transformation, then an exception is thrown.\n * @returns {Array} The origin as a vector\n */\n getOrigin() {\n const tiePoints = this.fileDirectory.ModelTiepoint;\n const modelTransformation = this.fileDirectory.ModelTransformation;\n if (tiePoints && tiePoints.length === 6) {\n return [\n tiePoints[3],\n tiePoints[4],\n tiePoints[5],\n ];\n }\n if (modelTransformation) {\n return [\n modelTransformation[3],\n modelTransformation[7],\n modelTransformation[11],\n ];\n }\n throw new Error('The image does not have an affine transformation.');\n }\n\n /**\n * Returns the image resolution as a XYZ-vector. When the image has no affine\n * transformation, then an exception is thrown.\n * @param {GeoTIFFImage} [referenceImage=null] A reference image to calculate the resolution from\n * in cases when the current image does not have the\n * required tags on its own.\n * @returns {Array} The resolution as a vector\n */\n getResolution(referenceImage = null) {\n const modelPixelScale = this.fileDirectory.ModelPixelScale;\n const modelTransformation = this.fileDirectory.ModelTransformation;\n\n if (modelPixelScale) {\n return [\n modelPixelScale[0],\n -modelPixelScale[1],\n modelPixelScale[2],\n ];\n }\n if (modelTransformation) {\n return [\n modelTransformation[0],\n modelTransformation[5],\n modelTransformation[10],\n ];\n }\n\n if (referenceImage) {\n const [refResX, refResY, refResZ] = referenceImage.getResolution();\n return [\n refResX * referenceImage.getWidth() / this.getWidth(),\n refResY * referenceImage.getHeight() / this.getHeight(),\n refResZ * referenceImage.getWidth() / this.getWidth(),\n ];\n }\n\n throw new Error('The image does not have an affine transformation.');\n }\n\n /**\n * Returns whether or not the pixels of the image depict an area (or point).\n * @returns {Boolean} Whether the pixels are a point\n */\n pixelIsArea() {\n return this.geoKeys.GTRasterTypeGeoKey === 1;\n }\n\n /**\n * Returns the image bounding box as an array of 4 values: min-x, min-y,\n * max-x and max-y. When the image has no affine transformation, then an\n * exception is thrown.\n * @returns {Array} The bounding box\n */\n getBoundingBox() {\n const origin = this.getOrigin();\n const resolution = this.getResolution();\n\n const x1 = origin[0];\n const y1 = origin[1];\n\n const x2 = x1 + (resolution[0] * this.getWidth());\n const y2 = y1 + (resolution[1] * this.getHeight());\n\n return [\n Math.min(x1, x2),\n Math.min(y1, y2),\n Math.max(x1, x2),\n Math.max(y1, y2),\n ];\n }\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (GeoTIFFImage);\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/geotiff/src/geotiffimage.js?");
296
297/***/ }),
298
299/***/ "./node_modules/geotiff/src/geotiffwriter.js":
300/*!***************************************************!*\
301 !*** ./node_modules/geotiff/src/geotiffwriter.js ***!
302 \***************************************************/
303/*! exports provided: writeGeotiff */
304/***/ (function(module, __webpack_exports__, __webpack_require__) {
305
306"use strict";
307eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"writeGeotiff\", function() { return writeGeotiff; });\n/* harmony import */ var _globals__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./globals */ \"./node_modules/geotiff/src/globals.js\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./utils */ \"./node_modules/geotiff/src/utils.js\");\n/*\n Some parts of this file are based on UTIF.js,\n which was released under the MIT License.\n You can view that here:\n https://github.com/photopea/UTIF.js/blob/master/LICENSE\n*/\n\n\n\nconst tagName2Code = Object(_utils__WEBPACK_IMPORTED_MODULE_1__[\"invert\"])(_globals__WEBPACK_IMPORTED_MODULE_0__[\"fieldTagNames\"]);\nconst geoKeyName2Code = Object(_utils__WEBPACK_IMPORTED_MODULE_1__[\"invert\"])(_globals__WEBPACK_IMPORTED_MODULE_0__[\"geoKeyNames\"]);\nconst name2code = {};\nObject(_utils__WEBPACK_IMPORTED_MODULE_1__[\"assign\"])(name2code, tagName2Code);\nObject(_utils__WEBPACK_IMPORTED_MODULE_1__[\"assign\"])(name2code, geoKeyName2Code);\nconst typeName2byte = Object(_utils__WEBPACK_IMPORTED_MODULE_1__[\"invert\"])(_globals__WEBPACK_IMPORTED_MODULE_0__[\"fieldTypeNames\"]);\n\n// config variables\nconst numBytesInIfd = 1000;\n\nconst _binBE = {\n nextZero: (data, o) => {\n let oincr = o;\n while (data[oincr] !== 0) {\n oincr++;\n }\n return oincr;\n },\n readUshort: (buff, p) => {\n return (buff[p] << 8) | buff[p + 1];\n },\n readShort: (buff, p) => {\n const a = _binBE.ui8;\n a[0] = buff[p + 1];\n a[1] = buff[p + 0];\n return _binBE.i16[0];\n },\n readInt: (buff, p) => {\n const a = _binBE.ui8;\n a[0] = buff[p + 3];\n a[1] = buff[p + 2];\n a[2] = buff[p + 1];\n a[3] = buff[p + 0];\n return _binBE.i32[0];\n },\n readUint: (buff, p) => {\n const a = _binBE.ui8;\n a[0] = buff[p + 3];\n a[1] = buff[p + 2];\n a[2] = buff[p + 1];\n a[3] = buff[p + 0];\n return _binBE.ui32[0];\n },\n readASCII: (buff, p, l) => {\n return l.map((i) => String.fromCharCode(buff[p + i])).join('');\n },\n readFloat: (buff, p) => {\n const a = _binBE.ui8;\n Object(_utils__WEBPACK_IMPORTED_MODULE_1__[\"times\"])(4, (i) => {\n a[i] = buff[p + 3 - i];\n });\n return _binBE.fl32[0];\n },\n readDouble: (buff, p) => {\n const a = _binBE.ui8;\n Object(_utils__WEBPACK_IMPORTED_MODULE_1__[\"times\"])(8, (i) => {\n a[i] = buff[p + 7 - i];\n });\n return _binBE.fl64[0];\n },\n writeUshort: (buff, p, n) => {\n buff[p] = (n >> 8) & 255;\n buff[p + 1] = n & 255;\n },\n writeUint: (buff, p, n) => {\n buff[p] = (n >> 24) & 255;\n buff[p + 1] = (n >> 16) & 255;\n buff[p + 2] = (n >> 8) & 255;\n buff[p + 3] = (n >> 0) & 255;\n },\n writeASCII: (buff, p, s) => {\n Object(_utils__WEBPACK_IMPORTED_MODULE_1__[\"times\"])(s.length, (i) => {\n buff[p + i] = s.charCodeAt(i);\n });\n },\n ui8: new Uint8Array(8),\n};\n\n_binBE.fl64 = new Float64Array(_binBE.ui8.buffer);\n\n_binBE.writeDouble = (buff, p, n) => {\n _binBE.fl64[0] = n;\n Object(_utils__WEBPACK_IMPORTED_MODULE_1__[\"times\"])(8, (i) => {\n buff[p + i] = _binBE.ui8[7 - i];\n });\n};\n\n\nconst _writeIFD = (bin, data, _offset, ifd) => {\n let offset = _offset;\n\n const keys = Object.keys(ifd).filter((key) => {\n return key !== undefined && key !== null && key !== 'undefined';\n });\n\n bin.writeUshort(data, offset, keys.length);\n offset += 2;\n\n let eoff = offset + (12 * keys.length) + 4;\n\n for (const key of keys) {\n let tag = null;\n if (typeof key === 'number') {\n tag = key;\n } else if (typeof key === 'string') {\n tag = parseInt(key, 10);\n }\n\n const typeName = _globals__WEBPACK_IMPORTED_MODULE_0__[\"fieldTagTypes\"][tag];\n const typeNum = typeName2byte[typeName];\n\n if (typeName == null || typeName === undefined || typeof typeName === 'undefined') {\n throw new Error(`unknown type of tag: ${tag}`);\n }\n\n let val = ifd[key];\n\n if (typeof val === 'undefined') {\n throw new Error(`failed to get value for key ${key}`);\n }\n\n // ASCIIZ format with trailing 0 character\n // http://www.fileformat.info/format/tiff/corion.htm\n // https://stackoverflow.com/questions/7783044/whats-the-difference-between-asciiz-vs-ascii\n if (typeName === 'ASCII' && typeof val === 'string' && Object(_utils__WEBPACK_IMPORTED_MODULE_1__[\"endsWith\"])(val, '\\u0000') === false) {\n val += '\\u0000';\n }\n\n const num = val.length;\n\n bin.writeUshort(data, offset, tag);\n offset += 2;\n\n bin.writeUshort(data, offset, typeNum);\n offset += 2;\n\n bin.writeUint(data, offset, num);\n offset += 4;\n\n let dlen = [-1, 1, 1, 2, 4, 8, 0, 0, 0, 0, 0, 0, 8][typeNum] * num;\n let toff = offset;\n\n if (dlen > 4) {\n bin.writeUint(data, offset, eoff);\n toff = eoff;\n }\n\n if (typeName === 'ASCII') {\n bin.writeASCII(data, toff, val);\n } else if (typeName === 'SHORT') {\n Object(_utils__WEBPACK_IMPORTED_MODULE_1__[\"times\"])(num, (i) => {\n bin.writeUshort(data, toff + (2 * i), val[i]);\n });\n } else if (typeName === 'LONG') {\n Object(_utils__WEBPACK_IMPORTED_MODULE_1__[\"times\"])(num, (i) => {\n bin.writeUint(data, toff + (4 * i), val[i]);\n });\n } else if (typeName === 'RATIONAL') {\n Object(_utils__WEBPACK_IMPORTED_MODULE_1__[\"times\"])(num, (i) => {\n bin.writeUint(data, toff + (8 * i), Math.round(val[i] * 10000));\n bin.writeUint(data, toff + (8 * i) + 4, 10000);\n });\n } else if (typeName === 'DOUBLE') {\n Object(_utils__WEBPACK_IMPORTED_MODULE_1__[\"times\"])(num, (i) => {\n bin.writeDouble(data, toff + (8 * i), val[i]);\n });\n }\n\n if (dlen > 4) {\n dlen += (dlen & 1);\n eoff += dlen;\n }\n\n offset += 4;\n }\n\n return [offset, eoff];\n};\n\nconst encodeIfds = (ifds) => {\n const data = new Uint8Array(numBytesInIfd);\n let offset = 4;\n const bin = _binBE;\n\n // set big-endian byte-order\n // https://en.wikipedia.org/wiki/TIFF#Byte_order\n data[0] = 77;\n data[1] = 77;\n\n // set format-version number\n // https://en.wikipedia.org/wiki/TIFF#Byte_order\n data[3] = 42;\n\n let ifdo = 8;\n\n bin.writeUint(data, offset, ifdo);\n\n offset += 4;\n\n ifds.forEach((ifd, i) => {\n const noffs = _writeIFD(bin, data, ifdo, ifd);\n ifdo = noffs[1];\n if (i < ifds.length - 1) {\n bin.writeUint(data, noffs[0], ifdo);\n }\n });\n\n if (data.slice) {\n return data.slice(0, ifdo).buffer;\n }\n\n // node hasn't implemented slice on Uint8Array yet\n const result = new Uint8Array(ifdo);\n for (let i = 0; i < ifdo; i++) {\n result[i] = data[i];\n }\n return result.buffer;\n};\n\nconst encodeImage = (values, width, height, metadata) => {\n if (height === undefined || height === null) {\n throw new Error(`you passed into encodeImage a width of type ${height}`);\n }\n\n if (width === undefined || width === null) {\n throw new Error(`you passed into encodeImage a width of type ${width}`);\n }\n\n const ifd = {\n 256: [width], // ImageWidth\n 257: [height], // ImageLength\n 273: [numBytesInIfd], // strips offset\n 278: [height], // RowsPerStrip\n 305: 'geotiff.js', // no array for ASCII(Z)\n };\n\n if (metadata) {\n for (const i in metadata) {\n if (metadata.hasOwnProperty(i)) {\n ifd[i] = metadata[i];\n }\n }\n }\n\n const prfx = new Uint8Array(encodeIfds([ifd]));\n\n const img = new Uint8Array(values);\n\n const samplesPerPixel = ifd[277];\n\n const data = new Uint8Array(numBytesInIfd + (width * height * samplesPerPixel));\n Object(_utils__WEBPACK_IMPORTED_MODULE_1__[\"times\"])(prfx.length, (i) => {\n data[i] = prfx[i];\n });\n Object(_utils__WEBPACK_IMPORTED_MODULE_1__[\"forEach\"])(img, (value, i) => {\n data[numBytesInIfd + i] = value;\n });\n\n return data.buffer;\n};\n\nconst convertToTids = (input) => {\n const result = {};\n for (const key in input) {\n if (key !== 'StripOffsets') {\n if (!name2code[key]) {\n console.error(key, 'not in name2code:', Object.keys(name2code));\n }\n result[name2code[key]] = input[key];\n }\n }\n return result;\n};\n\nconst toArray = (input) => {\n if (Array.isArray(input)) {\n return input;\n }\n return [input];\n};\n\nconst metadataDefaults = [\n ['Compression', 1], // no compression\n ['PlanarConfiguration', 1],\n ['XPosition', 0],\n ['YPosition', 0],\n ['ResolutionUnit', 1], // Code 1 for actual pixel count or 2 for pixels per inch.\n ['ExtraSamples', 0], // should this be an array??\n ['GeoAsciiParams', 'WGS 84\\u0000'],\n ['ModelTiepoint', [0, 0, 0, -180, 90, 0]], // raster fits whole globe\n ['GTModelTypeGeoKey', 2],\n ['GTRasterTypeGeoKey', 1],\n ['GeographicTypeGeoKey', 4326],\n ['GeogCitationGeoKey', 'WGS 84'],\n];\n\nfunction writeGeotiff(data, metadata) {\n const isFlattened = typeof data[0] === 'number';\n\n let height;\n let numBands;\n let width;\n let flattenedValues;\n\n if (isFlattened) {\n height = metadata.height || metadata.ImageLength;\n width = metadata.width || metadata.ImageWidth;\n numBands = data.length / (height * width);\n flattenedValues = data;\n } else {\n numBands = data.length;\n height = data[0].length;\n width = data[0][0].length;\n flattenedValues = [];\n Object(_utils__WEBPACK_IMPORTED_MODULE_1__[\"times\"])(height, (rowIndex) => {\n Object(_utils__WEBPACK_IMPORTED_MODULE_1__[\"times\"])(width, (columnIndex) => {\n Object(_utils__WEBPACK_IMPORTED_MODULE_1__[\"times\"])(numBands, (bandIndex) => {\n flattenedValues.push(data[bandIndex][rowIndex][columnIndex]);\n });\n });\n });\n }\n\n metadata.ImageLength = height;\n delete metadata.height;\n metadata.ImageWidth = width;\n delete metadata.width;\n\n // consult https://www.loc.gov/preservation/digital/formats/content/tiff_tags.shtml\n\n if (!metadata.BitsPerSample) {\n metadata.BitsPerSample = Object(_utils__WEBPACK_IMPORTED_MODULE_1__[\"times\"])(numBands, () => 8);\n }\n\n metadataDefaults.forEach((tag) => {\n const key = tag[0];\n if (!metadata[key]) {\n const value = tag[1];\n metadata[key] = value;\n }\n });\n\n // The color space of the image data.\n // 1=black is zero and 2=RGB.\n if (!metadata.PhotometricInterpretation) {\n metadata.PhotometricInterpretation = metadata.BitsPerSample.length === 3 ? 2 : 1;\n }\n\n // The number of components per pixel.\n if (!metadata.SamplesPerPixel) {\n metadata.SamplesPerPixel = [numBands];\n }\n\n if (!metadata.StripByteCounts) {\n // we are only writing one strip\n metadata.StripByteCounts = [numBands * height * width];\n }\n\n if (!metadata.ModelPixelScale) {\n // assumes raster takes up exactly the whole globe\n metadata.ModelPixelScale = [360 / width, 180 / height, 0];\n }\n\n if (!metadata.SampleFormat) {\n metadata.SampleFormat = Object(_utils__WEBPACK_IMPORTED_MODULE_1__[\"times\"])(numBands, () => 1);\n }\n\n\n const geoKeys = Object.keys(metadata)\n .filter((key) => Object(_utils__WEBPACK_IMPORTED_MODULE_1__[\"endsWith\"])(key, 'GeoKey'))\n .sort((a, b) => name2code[a] - name2code[b]);\n\n if (!metadata.GeoKeyDirectory) {\n const NumberOfKeys = geoKeys.length;\n\n const GeoKeyDirectory = [1, 1, 0, NumberOfKeys];\n geoKeys.forEach((geoKey) => {\n const KeyID = Number(name2code[geoKey]);\n GeoKeyDirectory.push(KeyID);\n\n let Count;\n let TIFFTagLocation;\n let valueOffset;\n if (_globals__WEBPACK_IMPORTED_MODULE_0__[\"fieldTagTypes\"][KeyID] === 'SHORT') {\n Count = 1;\n TIFFTagLocation = 0;\n valueOffset = metadata[geoKey];\n } else if (geoKey === 'GeogCitationGeoKey') {\n Count = metadata.GeoAsciiParams.length;\n TIFFTagLocation = Number(name2code.GeoAsciiParams);\n valueOffset = 0;\n } else {\n console.log(`[geotiff.js] couldn't get TIFFTagLocation for ${geoKey}`);\n }\n GeoKeyDirectory.push(TIFFTagLocation);\n GeoKeyDirectory.push(Count);\n GeoKeyDirectory.push(valueOffset);\n });\n metadata.GeoKeyDirectory = GeoKeyDirectory;\n }\n\n // delete GeoKeys from metadata, because stored in GeoKeyDirectory tag\n for (const geoKey in geoKeys) {\n if (geoKeys.hasOwnProperty(geoKey)) {\n delete metadata[geoKey];\n }\n }\n\n [\n 'Compression',\n 'ExtraSamples',\n 'GeographicTypeGeoKey',\n 'GTModelTypeGeoKey',\n 'GTRasterTypeGeoKey',\n 'ImageLength', // synonym of ImageHeight\n 'ImageWidth',\n 'PhotometricInterpretation',\n 'PlanarConfiguration',\n 'ResolutionUnit',\n 'SamplesPerPixel',\n 'XPosition',\n 'YPosition',\n ].forEach((name) => {\n if (metadata[name]) {\n metadata[name] = toArray(metadata[name]);\n }\n });\n\n\n const encodedMetadata = convertToTids(metadata);\n\n const outputImage = encodeImage(flattenedValues, width, height, encodedMetadata);\n\n return outputImage;\n}\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/geotiff/src/geotiffwriter.js?");
308
309/***/ }),
310
311/***/ "./node_modules/geotiff/src/globals.js":
312/*!*********************************************!*\
313 !*** ./node_modules/geotiff/src/globals.js ***!
314 \*********************************************/
315/*! exports provided: fieldTagNames, fieldTags, fieldTagTypes, arrayFields, fieldTypeNames, fieldTypes, photometricInterpretations, ExtraSamplesValues, geoKeyNames, geoKeys */
316/***/ (function(module, __webpack_exports__, __webpack_require__) {
317
318"use strict";
319eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"fieldTagNames\", function() { return fieldTagNames; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"fieldTags\", function() { return fieldTags; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"fieldTagTypes\", function() { return fieldTagTypes; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"arrayFields\", function() { return arrayFields; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"fieldTypeNames\", function() { return fieldTypeNames; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"fieldTypes\", function() { return fieldTypes; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"photometricInterpretations\", function() { return photometricInterpretations; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"ExtraSamplesValues\", function() { return ExtraSamplesValues; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"geoKeyNames\", function() { return geoKeyNames; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"geoKeys\", function() { return geoKeys; });\nconst fieldTagNames = {\n // TIFF Baseline\n 0x013B: 'Artist',\n 0x0102: 'BitsPerSample',\n 0x0109: 'CellLength',\n 0x0108: 'CellWidth',\n 0x0140: 'ColorMap',\n 0x0103: 'Compression',\n 0x8298: 'Copyright',\n 0x0132: 'DateTime',\n 0x0152: 'ExtraSamples',\n 0x010A: 'FillOrder',\n 0x0121: 'FreeByteCounts',\n 0x0120: 'FreeOffsets',\n 0x0123: 'GrayResponseCurve',\n 0x0122: 'GrayResponseUnit',\n 0x013C: 'HostComputer',\n 0x010E: 'ImageDescription',\n 0x0101: 'ImageLength',\n 0x0100: 'ImageWidth',\n 0x010F: 'Make',\n 0x0119: 'MaxSampleValue',\n 0x0118: 'MinSampleValue',\n 0x0110: 'Model',\n 0x00FE: 'NewSubfileType',\n 0x0112: 'Orientation',\n 0x0106: 'PhotometricInterpretation',\n 0x011C: 'PlanarConfiguration',\n 0x0128: 'ResolutionUnit',\n 0x0116: 'RowsPerStrip',\n 0x0115: 'SamplesPerPixel',\n 0x0131: 'Software',\n 0x0117: 'StripByteCounts',\n 0x0111: 'StripOffsets',\n 0x00FF: 'SubfileType',\n 0x0107: 'Threshholding',\n 0x011A: 'XResolution',\n 0x011B: 'YResolution',\n\n // TIFF Extended\n 0x0146: 'BadFaxLines',\n 0x0147: 'CleanFaxData',\n 0x0157: 'ClipPath',\n 0x0148: 'ConsecutiveBadFaxLines',\n 0x01B1: 'Decode',\n 0x01B2: 'DefaultImageColor',\n 0x010D: 'DocumentName',\n 0x0150: 'DotRange',\n 0x0141: 'HalftoneHints',\n 0x015A: 'Indexed',\n 0x015B: 'JPEGTables',\n 0x011D: 'PageName',\n 0x0129: 'PageNumber',\n 0x013D: 'Predictor',\n 0x013F: 'PrimaryChromaticities',\n 0x0214: 'ReferenceBlackWhite',\n 0x0153: 'SampleFormat',\n 0x0154: 'SMinSampleValue',\n 0x0155: 'SMaxSampleValue',\n 0x022F: 'StripRowCounts',\n 0x014A: 'SubIFDs',\n 0x0124: 'T4Options',\n 0x0125: 'T6Options',\n 0x0145: 'TileByteCounts',\n 0x0143: 'TileLength',\n 0x0144: 'TileOffsets',\n 0x0142: 'TileWidth',\n 0x012D: 'TransferFunction',\n 0x013E: 'WhitePoint',\n 0x0158: 'XClipPathUnits',\n 0x011E: 'XPosition',\n 0x0211: 'YCbCrCoefficients',\n 0x0213: 'YCbCrPositioning',\n 0x0212: 'YCbCrSubSampling',\n 0x0159: 'YClipPathUnits',\n 0x011F: 'YPosition',\n\n // EXIF\n 0x9202: 'ApertureValue',\n 0xA001: 'ColorSpace',\n 0x9004: 'DateTimeDigitized',\n 0x9003: 'DateTimeOriginal',\n 0x8769: 'Exif IFD',\n 0x9000: 'ExifVersion',\n 0x829A: 'ExposureTime',\n 0xA300: 'FileSource',\n 0x9209: 'Flash',\n 0xA000: 'FlashpixVersion',\n 0x829D: 'FNumber',\n 0xA420: 'ImageUniqueID',\n 0x9208: 'LightSource',\n 0x927C: 'MakerNote',\n 0x9201: 'ShutterSpeedValue',\n 0x9286: 'UserComment',\n\n // IPTC\n 0x83BB: 'IPTC',\n\n // ICC\n 0x8773: 'ICC Profile',\n\n // XMP\n 0x02BC: 'XMP',\n\n // GDAL\n 0xA480: 'GDAL_METADATA',\n 0xA481: 'GDAL_NODATA',\n\n // Photoshop\n 0x8649: 'Photoshop',\n\n // GeoTiff\n 0x830E: 'ModelPixelScale',\n 0x8482: 'ModelTiepoint',\n 0x85D8: 'ModelTransformation',\n 0x87AF: 'GeoKeyDirectory',\n 0x87B0: 'GeoDoubleParams',\n 0x87B1: 'GeoAsciiParams',\n};\n\nconst fieldTags = {};\nfor (const key in fieldTagNames) {\n if (fieldTagNames.hasOwnProperty(key)) {\n fieldTags[fieldTagNames[key]] = parseInt(key, 10);\n }\n}\n\nconst fieldTagTypes = {\n 256: 'SHORT',\n 257: 'SHORT',\n 258: 'SHORT',\n 259: 'SHORT',\n 262: 'SHORT',\n 273: 'LONG',\n 274: 'SHORT',\n 277: 'SHORT',\n 278: 'LONG',\n 279: 'LONG',\n 282: 'RATIONAL',\n 283: 'RATIONAL',\n 284: 'SHORT',\n 286: 'SHORT',\n 287: 'RATIONAL',\n 296: 'SHORT',\n 305: 'ASCII',\n 306: 'ASCII',\n 338: 'SHORT',\n 339: 'SHORT',\n 513: 'LONG',\n 514: 'LONG',\n 1024: 'SHORT',\n 1025: 'SHORT',\n 2048: 'SHORT',\n 2049: 'ASCII',\n 33550: 'DOUBLE',\n 33922: 'DOUBLE',\n 34665: 'LONG',\n 34735: 'SHORT',\n 34737: 'ASCII',\n 42113: 'ASCII',\n};\n\nconst arrayFields = [\n fieldTags.BitsPerSample,\n fieldTags.ExtraSamples,\n fieldTags.SampleFormat,\n fieldTags.StripByteCounts,\n fieldTags.StripOffsets,\n fieldTags.StripRowCounts,\n fieldTags.TileByteCounts,\n fieldTags.TileOffsets,\n];\n\nconst fieldTypeNames = {\n 0x0001: 'BYTE',\n 0x0002: 'ASCII',\n 0x0003: 'SHORT',\n 0x0004: 'LONG',\n 0x0005: 'RATIONAL',\n 0x0006: 'SBYTE',\n 0x0007: 'UNDEFINED',\n 0x0008: 'SSHORT',\n 0x0009: 'SLONG',\n 0x000A: 'SRATIONAL',\n 0x000B: 'FLOAT',\n 0x000C: 'DOUBLE',\n // IFD offset, suggested by https://owl.phy.queensu.ca/~phil/exiftool/standards.html\n 0x000D: 'IFD',\n // introduced by BigTIFF\n 0x0010: 'LONG8',\n 0x0011: 'SLONG8',\n 0x0012: 'IFD8',\n};\n\nconst fieldTypes = {};\nfor (const key in fieldTypeNames) {\n if (fieldTypeNames.hasOwnProperty(key)) {\n fieldTypes[fieldTypeNames[key]] = parseInt(key, 10);\n }\n}\n\nconst photometricInterpretations = {\n WhiteIsZero: 0,\n BlackIsZero: 1,\n RGB: 2,\n Palette: 3,\n TransparencyMask: 4,\n CMYK: 5,\n YCbCr: 6,\n\n CIELab: 8,\n ICCLab: 9,\n};\n\nconst ExtraSamplesValues = {\n Unspecified: 0,\n Assocalpha: 1,\n Unassalpha: 2,\n};\n\n\nconst geoKeyNames = {\n 1024: 'GTModelTypeGeoKey',\n 1025: 'GTRasterTypeGeoKey',\n 1026: 'GTCitationGeoKey',\n 2048: 'GeographicTypeGeoKey',\n 2049: 'GeogCitationGeoKey',\n 2050: 'GeogGeodeticDatumGeoKey',\n 2051: 'GeogPrimeMeridianGeoKey',\n 2052: 'GeogLinearUnitsGeoKey',\n 2053: 'GeogLinearUnitSizeGeoKey',\n 2054: 'GeogAngularUnitsGeoKey',\n 2055: 'GeogAngularUnitSizeGeoKey',\n 2056: 'GeogEllipsoidGeoKey',\n 2057: 'GeogSemiMajorAxisGeoKey',\n 2058: 'GeogSemiMinorAxisGeoKey',\n 2059: 'GeogInvFlatteningGeoKey',\n 2060: 'GeogAzimuthUnitsGeoKey',\n 2061: 'GeogPrimeMeridianLongGeoKey',\n 2062: 'GeogTOWGS84GeoKey',\n 3072: 'ProjectedCSTypeGeoKey',\n 3073: 'PCSCitationGeoKey',\n 3074: 'ProjectionGeoKey',\n 3075: 'ProjCoordTransGeoKey',\n 3076: 'ProjLinearUnitsGeoKey',\n 3077: 'ProjLinearUnitSizeGeoKey',\n 3078: 'ProjStdParallel1GeoKey',\n 3079: 'ProjStdParallel2GeoKey',\n 3080: 'ProjNatOriginLongGeoKey',\n 3081: 'ProjNatOriginLatGeoKey',\n 3082: 'ProjFalseEastingGeoKey',\n 3083: 'ProjFalseNorthingGeoKey',\n 3084: 'ProjFalseOriginLongGeoKey',\n 3085: 'ProjFalseOriginLatGeoKey',\n 3086: 'ProjFalseOriginEastingGeoKey',\n 3087: 'ProjFalseOriginNorthingGeoKey',\n 3088: 'ProjCenterLongGeoKey',\n 3089: 'ProjCenterLatGeoKey',\n 3090: 'ProjCenterEastingGeoKey',\n 3091: 'ProjCenterNorthingGeoKey',\n 3092: 'ProjScaleAtNatOriginGeoKey',\n 3093: 'ProjScaleAtCenterGeoKey',\n 3094: 'ProjAzimuthAngleGeoKey',\n 3095: 'ProjStraightVertPoleLongGeoKey',\n 3096: 'ProjRectifiedGridAngleGeoKey',\n 4096: 'VerticalCSTypeGeoKey',\n 4097: 'VerticalCitationGeoKey',\n 4098: 'VerticalDatumGeoKey',\n 4099: 'VerticalUnitsGeoKey',\n};\n\nconst geoKeys = {};\nfor (const key in geoKeyNames) {\n if (geoKeyNames.hasOwnProperty(key)) {\n geoKeys[geoKeyNames[key]] = parseInt(key, 10);\n }\n}\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/geotiff/src/globals.js?");
320
321/***/ }),
322
323/***/ "./node_modules/geotiff/src/logging.js":
324/*!*********************************************!*\
325 !*** ./node_modules/geotiff/src/logging.js ***!
326 \*********************************************/
327/*! exports provided: setLogger, log, info, warn, error, time, timeEnd */
328/***/ (function(module, __webpack_exports__, __webpack_require__) {
329
330"use strict";
331eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"setLogger\", function() { return setLogger; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"log\", function() { return log; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"info\", function() { return info; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"warn\", function() { return warn; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"error\", function() { return error; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"time\", function() { return time; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"timeEnd\", function() { return timeEnd; });\n\n/**\n * A no-op logger\n */\nclass DummyLogger {\n log() {}\n\n info() {}\n\n warn() {}\n\n error() {}\n\n time() {}\n\n timeEnd() {}\n}\n\nlet LOGGER = new DummyLogger();\n\n/**\n *\n * @param {object} logger the new logger. e.g `console`\n */\nfunction setLogger(logger = new DummyLogger()) {\n LOGGER = logger;\n}\n\nfunction log(...args) {\n return LOGGER.log(...args);\n}\n\nfunction info(...args) {\n return LOGGER.info(...args);\n}\n\nfunction warn(...args) {\n return LOGGER.warn(...args);\n}\n\nfunction error(...args) {\n return LOGGER.error(...args);\n}\n\nfunction time(...args) {\n return LOGGER.time(...args);\n}\n\nfunction timeEnd(...args) {\n return LOGGER.timeEnd(...args);\n}\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/geotiff/src/logging.js?");
332
333/***/ }),
334
335/***/ "./node_modules/geotiff/src/pool.js":
336/*!******************************************!*\
337 !*** ./node_modules/geotiff/src/pool.js ***!
338 \******************************************/
339/*! exports provided: default */
340/***/ (function(module, __webpack_exports__, __webpack_require__) {
341
342"use strict";
343eval("__webpack_require__.r(__webpack_exports__);\n/* WEBPACK VAR INJECTION */(function(__webpack__worker__0) {/* harmony import */ var threads__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! threads */ \"./node_modules/threads/dist-esm/index.js\");\n\n\nconst defaultPoolSize = typeof navigator !== 'undefined' ? navigator.hardwareConcurrency : null;\n\n/**\n * @module pool\n */\n\n/**\n * Pool for workers to decode chunks of the images.\n */\nclass Pool {\n /**\n * @constructor\n * @param {Number} size The size of the pool. Defaults to the number of CPUs\n * available. When this parameter is `null` or 0, then the\n * decoding will be done in the main thread.\n */\n constructor(size = defaultPoolSize) {\n const worker = new threads__WEBPACK_IMPORTED_MODULE_0__[\"Worker\"](__webpack__worker__0);\n this.pool = Object(threads__WEBPACK_IMPORTED_MODULE_0__[\"Pool\"])(() => Object(threads__WEBPACK_IMPORTED_MODULE_0__[\"spawn\"])(worker), size);\n }\n\n /**\n * Decode the given block of bytes with the set compression method.\n * @param {ArrayBuffer} buffer the array buffer of bytes to decode.\n * @returns {Promise.<ArrayBuffer>} the decoded result as a `Promise`\n */\n async decode(fileDirectory, buffer) {\n return new Promise((resolve, reject) => {\n this.pool.queue(async (decode) => {\n try {\n const data = await decode(fileDirectory, buffer);\n resolve(data);\n } catch (err) {\n reject(err);\n }\n });\n });\n }\n\n destroy() {\n this.pool.terminate(true);\n }\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Pool);\n\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/threads-plugin/dist/loader.js?{\"name\":\"0\"}!./decoder.worker.js */ \"./node_modules/threads-plugin/dist/loader.js?{\\\"name\\\":\\\"0\\\"}!./node_modules/geotiff/src/decoder.worker.js\")))\n\n//# sourceURL=webpack://GeoRaster/./node_modules/geotiff/src/pool.js?");
344
345/***/ }),
346
347/***/ "./node_modules/geotiff/src/predictor.js":
348/*!***********************************************!*\
349 !*** ./node_modules/geotiff/src/predictor.js ***!
350 \***********************************************/
351/*! exports provided: applyPredictor */
352/***/ (function(module, __webpack_exports__, __webpack_require__) {
353
354"use strict";
355eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"applyPredictor\", function() { return applyPredictor; });\n\nfunction decodeRowAcc(row, stride) {\n let length = row.length - stride;\n let offset = 0;\n do {\n for (let i = stride; i > 0; i--) {\n row[offset + stride] += row[offset];\n offset++;\n }\n\n length -= stride;\n } while (length > 0);\n}\n\nfunction decodeRowFloatingPoint(row, stride, bytesPerSample) {\n let index = 0;\n let count = row.length;\n const wc = count / bytesPerSample;\n\n while (count > stride) {\n for (let i = stride; i > 0; --i) {\n row[index + stride] += row[index];\n ++index;\n }\n count -= stride;\n }\n\n const copy = row.slice();\n for (let i = 0; i < wc; ++i) {\n for (let b = 0; b < bytesPerSample; ++b) {\n row[(bytesPerSample * i) + b] = copy[((bytesPerSample - b - 1) * wc) + i];\n }\n }\n}\n\nfunction applyPredictor(block, predictor, width, height, bitsPerSample,\n planarConfiguration) {\n if (!predictor || predictor === 1) {\n return block;\n }\n\n for (let i = 0; i < bitsPerSample.length; ++i) {\n if (bitsPerSample[i] % 8 !== 0) {\n throw new Error('When decoding with predictor, only multiple of 8 bits are supported.');\n }\n if (bitsPerSample[i] !== bitsPerSample[0]) {\n throw new Error('When decoding with predictor, all samples must have the same size.');\n }\n }\n\n const bytesPerSample = bitsPerSample[0] / 8;\n const stride = planarConfiguration === 2 ? 1 : bitsPerSample.length;\n\n for (let i = 0; i < height; ++i) {\n // Last strip will be truncated if height % stripHeight != 0\n if (i * stride * width * bytesPerSample >= block.byteLength) {\n break;\n }\n let row;\n if (predictor === 2) { // horizontal prediction\n switch (bitsPerSample[0]) {\n case 8:\n row = new Uint8Array(\n block, i * stride * width * bytesPerSample, stride * width * bytesPerSample,\n );\n break;\n case 16:\n row = new Uint16Array(\n block, i * stride * width * bytesPerSample, stride * width * bytesPerSample / 2,\n );\n break;\n case 32:\n row = new Uint32Array(\n block, i * stride * width * bytesPerSample, stride * width * bytesPerSample / 4,\n );\n break;\n default:\n throw new Error(`Predictor 2 not allowed with ${bitsPerSample[0]} bits per sample.`);\n }\n decodeRowAcc(row, stride, bytesPerSample);\n } else if (predictor === 3) { // horizontal floating point\n row = new Uint8Array(\n block, i * stride * width * bytesPerSample, stride * width * bytesPerSample,\n );\n decodeRowFloatingPoint(row, stride, bytesPerSample);\n }\n }\n return block;\n}\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/geotiff/src/predictor.js?");
356
357/***/ }),
358
359/***/ "./node_modules/geotiff/src/resample.js":
360/*!**********************************************!*\
361 !*** ./node_modules/geotiff/src/resample.js ***!
362 \**********************************************/
363/*! exports provided: resampleNearest, resampleBilinear, resample, resampleNearestInterleaved, resampleBilinearInterleaved, resampleInterleaved */
364/***/ (function(module, __webpack_exports__, __webpack_require__) {
365
366"use strict";
367eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"resampleNearest\", function() { return resampleNearest; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"resampleBilinear\", function() { return resampleBilinear; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"resample\", function() { return resample; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"resampleNearestInterleaved\", function() { return resampleNearestInterleaved; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"resampleBilinearInterleaved\", function() { return resampleBilinearInterleaved; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"resampleInterleaved\", function() { return resampleInterleaved; });\n/**\n * @module resample\n */\n\nfunction copyNewSize(array, width, height, samplesPerPixel = 1) {\n return new (Object.getPrototypeOf(array).constructor)(width * height * samplesPerPixel);\n}\n\n/**\n * Resample the input arrays using nearest neighbor value selection.\n * @param {TypedArray[]} valueArrays The input arrays to resample\n * @param {number} inWidth The width of the input rasters\n * @param {number} inHeight The height of the input rasters\n * @param {number} outWidth The desired width of the output rasters\n * @param {number} outHeight The desired height of the output rasters\n * @returns {TypedArray[]} The resampled rasters\n */\nfunction resampleNearest(valueArrays, inWidth, inHeight, outWidth, outHeight) {\n const relX = inWidth / outWidth;\n const relY = inHeight / outHeight;\n return valueArrays.map((array) => {\n const newArray = copyNewSize(array, outWidth, outHeight);\n for (let y = 0; y < outHeight; ++y) {\n const cy = Math.min(Math.round(relY * y), inHeight - 1);\n for (let x = 0; x < outWidth; ++x) {\n const cx = Math.min(Math.round(relX * x), inWidth - 1);\n const value = array[(cy * inWidth) + cx];\n newArray[(y * outWidth) + x] = value;\n }\n }\n return newArray;\n });\n}\n\n// simple linear interpolation, code from:\n// https://en.wikipedia.org/wiki/Linear_interpolation#Programming_language_support\nfunction lerp(v0, v1, t) {\n return ((1 - t) * v0) + (t * v1);\n}\n\n/**\n * Resample the input arrays using bilinear interpolation.\n * @param {TypedArray[]} valueArrays The input arrays to resample\n * @param {number} inWidth The width of the input rasters\n * @param {number} inHeight The height of the input rasters\n * @param {number} outWidth The desired width of the output rasters\n * @param {number} outHeight The desired height of the output rasters\n * @returns {TypedArray[]} The resampled rasters\n */\nfunction resampleBilinear(valueArrays, inWidth, inHeight, outWidth, outHeight) {\n const relX = inWidth / outWidth;\n const relY = inHeight / outHeight;\n\n return valueArrays.map((array) => {\n const newArray = copyNewSize(array, outWidth, outHeight);\n for (let y = 0; y < outHeight; ++y) {\n const rawY = relY * y;\n\n const yl = Math.floor(rawY);\n const yh = Math.min(Math.ceil(rawY), (inHeight - 1));\n\n for (let x = 0; x < outWidth; ++x) {\n const rawX = relX * x;\n const tx = rawX % 1;\n\n const xl = Math.floor(rawX);\n const xh = Math.min(Math.ceil(rawX), (inWidth - 1));\n\n const ll = array[(yl * inWidth) + xl];\n const hl = array[(yl * inWidth) + xh];\n const lh = array[(yh * inWidth) + xl];\n const hh = array[(yh * inWidth) + xh];\n\n const value = lerp(\n lerp(ll, hl, tx),\n lerp(lh, hh, tx),\n rawY % 1,\n );\n newArray[(y * outWidth) + x] = value;\n }\n }\n return newArray;\n });\n}\n\n/**\n * Resample the input arrays using the selected resampling method.\n * @param {TypedArray[]} valueArrays The input arrays to resample\n * @param {number} inWidth The width of the input rasters\n * @param {number} inHeight The height of the input rasters\n * @param {number} outWidth The desired width of the output rasters\n * @param {number} outHeight The desired height of the output rasters\n * @param {string} [method = 'nearest'] The desired resampling method\n * @returns {TypedArray[]} The resampled rasters\n */\nfunction resample(valueArrays, inWidth, inHeight, outWidth, outHeight, method = 'nearest') {\n switch (method.toLowerCase()) {\n case 'nearest':\n return resampleNearest(valueArrays, inWidth, inHeight, outWidth, outHeight);\n case 'bilinear':\n case 'linear':\n return resampleBilinear(valueArrays, inWidth, inHeight, outWidth, outHeight);\n default:\n throw new Error(`Unsupported resampling method: '${method}'`);\n }\n}\n\n/**\n * Resample the pixel interleaved input array using nearest neighbor value selection.\n * @param {TypedArray} valueArrays The input arrays to resample\n * @param {number} inWidth The width of the input rasters\n * @param {number} inHeight The height of the input rasters\n * @param {number} outWidth The desired width of the output rasters\n * @param {number} outHeight The desired height of the output rasters\n * @param {number} samples The number of samples per pixel for pixel\n * interleaved data\n * @returns {TypedArray} The resampled raster\n */\nfunction resampleNearestInterleaved(\n valueArray, inWidth, inHeight, outWidth, outHeight, samples) {\n const relX = inWidth / outWidth;\n const relY = inHeight / outHeight;\n\n const newArray = copyNewSize(valueArray, outWidth, outHeight, samples);\n for (let y = 0; y < outHeight; ++y) {\n const cy = Math.min(Math.round(relY * y), inHeight - 1);\n for (let x = 0; x < outWidth; ++x) {\n const cx = Math.min(Math.round(relX * x), inWidth - 1);\n for (let i = 0; i < samples; ++i) {\n const value = valueArray[(cy * inWidth * samples) + (cx * samples) + i];\n newArray[(y * outWidth * samples) + (x * samples) + i] = value;\n }\n }\n }\n return newArray;\n}\n\n/**\n * Resample the pixel interleaved input array using bilinear interpolation.\n * @param {TypedArray} valueArrays The input arrays to resample\n * @param {number} inWidth The width of the input rasters\n * @param {number} inHeight The height of the input rasters\n * @param {number} outWidth The desired width of the output rasters\n * @param {number} outHeight The desired height of the output rasters\n * @param {number} samples The number of samples per pixel for pixel\n * interleaved data\n * @returns {TypedArray} The resampled raster\n */\nfunction resampleBilinearInterleaved(\n valueArray, inWidth, inHeight, outWidth, outHeight, samples) {\n const relX = inWidth / outWidth;\n const relY = inHeight / outHeight;\n const newArray = copyNewSize(valueArray, outWidth, outHeight, samples);\n for (let y = 0; y < outHeight; ++y) {\n const rawY = relY * y;\n\n const yl = Math.floor(rawY);\n const yh = Math.min(Math.ceil(rawY), (inHeight - 1));\n\n for (let x = 0; x < outWidth; ++x) {\n const rawX = relX * x;\n const tx = rawX % 1;\n\n const xl = Math.floor(rawX);\n const xh = Math.min(Math.ceil(rawX), (inWidth - 1));\n\n for (let i = 0; i < samples; ++i) {\n const ll = valueArray[(yl * inWidth * samples) + (xl * samples) + i];\n const hl = valueArray[(yl * inWidth * samples) + (xh * samples) + i];\n const lh = valueArray[(yh * inWidth * samples) + (xl * samples) + i];\n const hh = valueArray[(yh * inWidth * samples) + (xh * samples) + i];\n\n const value = lerp(\n lerp(ll, hl, tx),\n lerp(lh, hh, tx),\n rawY % 1,\n );\n newArray[(y * outWidth * samples) + (x * samples) + i] = value;\n }\n }\n }\n return newArray;\n}\n\n/**\n * Resample the pixel interleaved input array using the selected resampling method.\n * @param {TypedArray} valueArray The input array to resample\n * @param {number} inWidth The width of the input rasters\n * @param {number} inHeight The height of the input rasters\n * @param {number} outWidth The desired width of the output rasters\n * @param {number} outHeight The desired height of the output rasters\n * @param {number} samples The number of samples per pixel for pixel\n * interleaved data\n * @param {string} [method = 'nearest'] The desired resampling method\n * @returns {TypedArray} The resampled rasters\n */\nfunction resampleInterleaved(valueArray, inWidth, inHeight, outWidth, outHeight, samples, method = 'nearest') {\n switch (method.toLowerCase()) {\n case 'nearest':\n return resampleNearestInterleaved(\n valueArray, inWidth, inHeight, outWidth, outHeight, samples,\n );\n case 'bilinear':\n case 'linear':\n return resampleBilinearInterleaved(\n valueArray, inWidth, inHeight, outWidth, outHeight, samples,\n );\n default:\n throw new Error(`Unsupported resampling method: '${method}'`);\n }\n}\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/geotiff/src/resample.js?");
368
369/***/ }),
370
371/***/ "./node_modules/geotiff/src/rgb.js":
372/*!*****************************************!*\
373 !*** ./node_modules/geotiff/src/rgb.js ***!
374 \*****************************************/
375/*! exports provided: fromWhiteIsZero, fromBlackIsZero, fromPalette, fromCMYK, fromYCbCr, fromCIELab */
376/***/ (function(module, __webpack_exports__, __webpack_require__) {
377
378"use strict";
379eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"fromWhiteIsZero\", function() { return fromWhiteIsZero; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"fromBlackIsZero\", function() { return fromBlackIsZero; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"fromPalette\", function() { return fromPalette; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"fromCMYK\", function() { return fromCMYK; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"fromYCbCr\", function() { return fromYCbCr; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"fromCIELab\", function() { return fromCIELab; });\nfunction fromWhiteIsZero(raster, max) {\n const { width, height } = raster;\n const rgbRaster = new Uint8Array(width * height * 3);\n let value;\n for (let i = 0, j = 0; i < raster.length; ++i, j += 3) {\n value = 256 - (raster[i] / max * 256);\n rgbRaster[j] = value;\n rgbRaster[j + 1] = value;\n rgbRaster[j + 2] = value;\n }\n return rgbRaster;\n}\n\nfunction fromBlackIsZero(raster, max) {\n const { width, height } = raster;\n const rgbRaster = new Uint8Array(width * height * 3);\n let value;\n for (let i = 0, j = 0; i < raster.length; ++i, j += 3) {\n value = raster[i] / max * 256;\n rgbRaster[j] = value;\n rgbRaster[j + 1] = value;\n rgbRaster[j + 2] = value;\n }\n return rgbRaster;\n}\n\nfunction fromPalette(raster, colorMap) {\n const { width, height } = raster;\n const rgbRaster = new Uint8Array(width * height * 3);\n const greenOffset = colorMap.length / 3;\n const blueOffset = colorMap.length / 3 * 2;\n for (let i = 0, j = 0; i < raster.length; ++i, j += 3) {\n const mapIndex = raster[i];\n rgbRaster[j] = colorMap[mapIndex] / 65536 * 256;\n rgbRaster[j + 1] = colorMap[mapIndex + greenOffset] / 65536 * 256;\n rgbRaster[j + 2] = colorMap[mapIndex + blueOffset] / 65536 * 256;\n }\n return rgbRaster;\n}\n\nfunction fromCMYK(cmykRaster) {\n const { width, height } = cmykRaster;\n const rgbRaster = new Uint8Array(width * height * 3);\n for (let i = 0, j = 0; i < cmykRaster.length; i += 4, j += 3) {\n const c = cmykRaster[i];\n const m = cmykRaster[i + 1];\n const y = cmykRaster[i + 2];\n const k = cmykRaster[i + 3];\n\n rgbRaster[j] = 255 * ((255 - c) / 256) * ((255 - k) / 256);\n rgbRaster[j + 1] = 255 * ((255 - m) / 256) * ((255 - k) / 256);\n rgbRaster[j + 2] = 255 * ((255 - y) / 256) * ((255 - k) / 256);\n }\n return rgbRaster;\n}\n\nfunction fromYCbCr(yCbCrRaster) {\n const { width, height } = yCbCrRaster;\n const rgbRaster = new Uint8ClampedArray(width * height * 3);\n for (let i = 0, j = 0; i < yCbCrRaster.length; i += 3, j += 3) {\n const y = yCbCrRaster[i];\n const cb = yCbCrRaster[i + 1];\n const cr = yCbCrRaster[i + 2];\n\n rgbRaster[j] = (y + (1.40200 * (cr - 0x80)));\n rgbRaster[j + 1] = (y - (0.34414 * (cb - 0x80)) - (0.71414 * (cr - 0x80)));\n rgbRaster[j + 2] = (y + (1.77200 * (cb - 0x80)));\n }\n return rgbRaster;\n}\n\nconst Xn = 0.95047;\nconst Yn = 1.00000;\nconst Zn = 1.08883;\n\n// from https://github.com/antimatter15/rgb-lab/blob/master/color.js\n\nfunction fromCIELab(cieLabRaster) {\n const { width, height } = cieLabRaster;\n const rgbRaster = new Uint8Array(width * height * 3);\n\n for (let i = 0, j = 0; i < cieLabRaster.length; i += 3, j += 3) {\n const L = cieLabRaster[i + 0];\n const a_ = cieLabRaster[i + 1] << 24 >> 24; // conversion from uint8 to int8\n const b_ = cieLabRaster[i + 2] << 24 >> 24; // same\n\n let y = (L + 16) / 116;\n let x = (a_ / 500) + y;\n let z = y - (b_ / 200);\n let r;\n let g;\n let b;\n\n x = Xn * ((x * x * x > 0.008856) ? x * x * x : (x - (16 / 116)) / 7.787);\n y = Yn * ((y * y * y > 0.008856) ? y * y * y : (y - (16 / 116)) / 7.787);\n z = Zn * ((z * z * z > 0.008856) ? z * z * z : (z - (16 / 116)) / 7.787);\n\n r = (x * 3.2406) + (y * -1.5372) + (z * -0.4986);\n g = (x * -0.9689) + (y * 1.8758) + (z * 0.0415);\n b = (x * 0.0557) + (y * -0.2040) + (z * 1.0570);\n\n r = (r > 0.0031308) ? ((1.055 * (r ** (1 / 2.4))) - 0.055) : 12.92 * r;\n g = (g > 0.0031308) ? ((1.055 * (g ** (1 / 2.4))) - 0.055) : 12.92 * g;\n b = (b > 0.0031308) ? ((1.055 * (b ** (1 / 2.4))) - 0.055) : 12.92 * b;\n\n rgbRaster[j] = Math.max(0, Math.min(1, r)) * 255;\n rgbRaster[j + 1] = Math.max(0, Math.min(1, g)) * 255;\n rgbRaster[j + 2] = Math.max(0, Math.min(1, b)) * 255;\n }\n return rgbRaster;\n}\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/geotiff/src/rgb.js?");
380
381/***/ }),
382
383/***/ "./node_modules/geotiff/src/source.js":
384/*!********************************************!*\
385 !*** ./node_modules/geotiff/src/source.js ***!
386 \********************************************/
387/*! exports provided: makeFetchSource, makeXHRSource, makeHttpSource, makeRemoteSource, makeBufferSource, makeFileSource, makeFileReaderSource */
388/***/ (function(module, __webpack_exports__, __webpack_require__) {
389
390"use strict";
391eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"makeFetchSource\", function() { return makeFetchSource; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"makeXHRSource\", function() { return makeXHRSource; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"makeHttpSource\", function() { return makeHttpSource; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"makeRemoteSource\", function() { return makeRemoteSource; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"makeBufferSource\", function() { return makeBufferSource; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"makeFileSource\", function() { return makeFileSource; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"makeFileReaderSource\", function() { return makeFileReaderSource; });\n/* harmony import */ var buffer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! buffer */ \"./node_modules/node-libs-browser/node_modules/buffer/index.js\");\n/* harmony import */ var buffer__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(buffer__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fs */ \"./node_modules/node-libs-browser/mock/empty.js\");\n/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(fs__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var http__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! http */ \"./node_modules/stream-http/index.js\");\n/* harmony import */ var http__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(http__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var https__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! https */ \"./node_modules/https-browserify/index.js\");\n/* harmony import */ var https__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(https__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var url__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! url */ \"./node_modules/url/url.js\");\n/* harmony import */ var url__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(url__WEBPACK_IMPORTED_MODULE_4__);\n\n\n\n\n\n\n\nfunction readRangeFromBlocks(blocks, rangeOffset, rangeLength) {\n const rangeTop = rangeOffset + rangeLength;\n const rangeData = new ArrayBuffer(rangeLength);\n const rangeView = new Uint8Array(rangeData);\n\n for (const block of blocks) {\n const delta = block.offset - rangeOffset;\n const topDelta = block.top - rangeTop;\n let blockInnerOffset = 0;\n let rangeInnerOffset = 0;\n let usedBlockLength;\n\n if (delta < 0) {\n blockInnerOffset = -delta;\n } else if (delta > 0) {\n rangeInnerOffset = delta;\n }\n\n if (topDelta < 0) {\n usedBlockLength = block.length - blockInnerOffset;\n } else {\n usedBlockLength = rangeTop - block.offset - blockInnerOffset;\n }\n\n const blockView = new Uint8Array(block.data, blockInnerOffset, usedBlockLength);\n rangeView.set(blockView, rangeInnerOffset);\n }\n\n return rangeData;\n}\n\n/**\n * Interface for Source objects.\n * @interface Source\n */\n\n/**\n * @function Source#fetch\n * @summary The main method to retrieve the data from the source.\n * @param {number} offset The offset to read from in the source\n * @param {number} length The requested number of bytes\n */\n\n/**\n * @typedef {object} Block\n * @property {ArrayBuffer} data The actual data of the block.\n * @property {number} offset The actual offset of the block within the file.\n * @property {number} length The actual size of the block in bytes.\n */\n\n/**\n * Callback type for sources to request patches of data.\n * @callback requestCallback\n * @async\n * @param {number} offset The offset within the file.\n * @param {number} length The desired length of data to be read.\n * @returns {Promise<Block>} The block of data.\n */\n\n/**\n * @module source\n */\n\n/*\n * Split a list of identifiers to form groups of coherent ones\n */\nfunction getCoherentBlockGroups(blockIds) {\n if (blockIds.length === 0) {\n return [];\n }\n\n const groups = [];\n let current = [];\n groups.push(current);\n\n for (let i = 0; i < blockIds.length; ++i) {\n if (i === 0 || blockIds[i] === blockIds[i - 1] + 1) {\n current.push(blockIds[i]);\n } else {\n current = [blockIds[i]];\n groups.push(current);\n }\n }\n return groups;\n}\n\n\n/*\n * Promisified wrapper around 'setTimeout' to allow 'await'\n */\nasync function wait(milliseconds) {\n return new Promise((resolve) => setTimeout(resolve, milliseconds));\n}\n\n/**\n * BlockedSource - an abstraction of (remote) files.\n * @implements Source\n */\nclass BlockedSource {\n /**\n * @param {requestCallback} retrievalFunction Callback function to request data\n * @param {object} options Additional options\n * @param {object} options.blockSize Size of blocks to be fetched\n */\n constructor(retrievalFunction, { blockSize = 65536 } = {}) {\n this.retrievalFunction = retrievalFunction;\n this.blockSize = blockSize;\n\n // currently running block requests\n this.blockRequests = new Map();\n\n // already retrieved blocks\n this.blocks = new Map();\n\n // block ids waiting for a batched request. Either a Set or null\n this.blockIdsAwaitingRequest = null;\n }\n\n /**\n * Fetch a subset of the file.\n * @param {number} offset The offset within the file to read from.\n * @param {number} length The length in bytes to read from.\n * @returns {ArrayBuffer} The subset of the file.\n */\n async fetch(offset, length, immediate = false) {\n const top = offset + length;\n\n // calculate what blocks intersect the specified range (offset + length)\n // determine what blocks are already stored or beeing requested\n const firstBlockOffset = Math.floor(offset / this.blockSize) * this.blockSize;\n const allBlockIds = [];\n const missingBlockIds = [];\n const blockRequests = [];\n\n for (let current = firstBlockOffset; current < top; current += this.blockSize) {\n const blockId = Math.floor(current / this.blockSize);\n if (!this.blocks.has(blockId) && !this.blockRequests.has(blockId)) {\n missingBlockIds.push(blockId);\n }\n if (this.blockRequests.has(blockId)) {\n blockRequests.push(this.blockRequests.get(blockId));\n }\n allBlockIds.push(blockId);\n }\n\n // determine whether there are already blocks in the queue to be requested\n // if so, add the missing blocks to this list\n if (!this.blockIdsAwaitingRequest) {\n this.blockIdsAwaitingRequest = new Set(missingBlockIds);\n } else {\n for (let i = 0; i < missingBlockIds.length; ++i) {\n const id = missingBlockIds[i];\n this.blockIdsAwaitingRequest.add(id);\n }\n }\n\n // in immediate mode, we don't want to wait for possible additional requests coming in\n if (!immediate) {\n await wait();\n }\n\n // determine if we are the thread to start the requests.\n if (this.blockIdsAwaitingRequest) {\n // get all coherent blocks as groups to be requested in a single request\n const groups = getCoherentBlockGroups(\n Array.from(this.blockIdsAwaitingRequest).sort(),\n );\n\n // iterate over all blocks\n for (const group of groups) {\n // fetch a group as in a single request\n const request = this.requestData(\n group[0] * this.blockSize, group.length * this.blockSize,\n );\n\n // for each block in the request, make a small 'splitter',\n // i.e: wait for the request to finish, then cut out the bytes for\n // that block and store it there.\n // we keep that as a promise in 'blockRequests' to allow waiting on\n // a single block.\n for (let i = 0; i < group.length; ++i) {\n const id = group[i];\n this.blockRequests.set(id, (async () => {\n const response = await request;\n const o = i * this.blockSize;\n const t = Math.min(o + this.blockSize, response.data.byteLength);\n const data = response.data.slice(o, t);\n this.blockRequests.delete(id);\n this.blocks.set(id, {\n data,\n offset: response.offset + o,\n length: data.byteLength,\n top: response.offset + t,\n });\n })());\n }\n }\n this.blockIdsAwaitingRequest = null;\n }\n\n // get a list of currently running requests for the blocks still missing\n const missingRequests = [];\n for (const blockId of missingBlockIds) {\n if (this.blockRequests.has(blockId)) {\n missingRequests.push(this.blockRequests.get(blockId));\n }\n }\n\n // wait for all missing requests to finish\n await Promise.all(missingRequests);\n await Promise.all(blockRequests);\n\n // now get all blocks for the request and return a summary buffer\n const blocks = allBlockIds.map((id) => this.blocks.get(id));\n return readRangeFromBlocks(blocks, offset, length);\n }\n\n async requestData(requestedOffset, requestedLength) {\n const response = await this.retrievalFunction(requestedOffset, requestedLength);\n if (!response.length) {\n response.length = response.data.byteLength;\n } else if (response.length !== response.data.byteLength) {\n response.data = response.data.slice(0, response.length);\n }\n response.top = response.offset + response.length;\n return response;\n }\n}\n\n/**\n * Create a new source to read from a remote file using the\n * [fetch]{@link https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API} API.\n * @param {string} url The URL to send requests to.\n * @param {Object} [options] Additional options.\n * @param {Number} [options.blockSize] The block size to use.\n * @param {object} [options.headers] Additional headers to be sent to the server.\n * @returns The constructed source\n */\nfunction makeFetchSource(url, { headers = {}, blockSize } = {}) {\n return new BlockedSource(async (offset, length) => {\n const response = await fetch(url, {\n headers: {\n ...headers, Range: `bytes=${offset}-${offset + length - 1}`,\n },\n });\n\n // check the response was okay and if the server actually understands range requests\n if (!response.ok) {\n throw new Error('Error fetching data.');\n } else if (response.status === 206) {\n const data = response.arrayBuffer\n ? await response.arrayBuffer() : (await response.buffer()).buffer;\n return {\n data,\n offset,\n length,\n };\n } else {\n const data = response.arrayBuffer\n ? await response.arrayBuffer() : (await response.buffer()).buffer;\n return {\n data,\n offset: 0,\n length: data.byteLength,\n };\n }\n }, { blockSize });\n}\n\n/**\n * Create a new source to read from a remote file using the\n * [XHR]{@link https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest} API.\n * @param {string} url The URL to send requests to.\n * @param {Object} [options] Additional options.\n * @param {Number} [options.blockSize] The block size to use.\n * @param {object} [options.headers] Additional headers to be sent to the server.\n * @returns The constructed source\n */\nfunction makeXHRSource(url, { headers = {}, blockSize } = {}) {\n return new BlockedSource(async (offset, length) => {\n return new Promise((resolve, reject) => {\n const request = new XMLHttpRequest();\n request.open('GET', url);\n request.responseType = 'arraybuffer';\n const requestHeaders = { ...headers, Range: `bytes=${offset}-${offset + length - 1}` };\n for (const [key, value] of Object.entries(requestHeaders)) {\n request.setRequestHeader(key, value);\n }\n\n request.onload = () => {\n const data = request.response;\n if (request.status === 206) {\n resolve({\n data,\n offset,\n length,\n });\n } else {\n resolve({\n data,\n offset: 0,\n length: data.byteLength,\n });\n }\n };\n request.onerror = reject;\n request.send();\n });\n }, { blockSize });\n}\n\n/**\n * Create a new source to read from a remote file using the node\n * [http]{@link https://nodejs.org/api/http.html} API.\n * @param {string} url The URL to send requests to.\n * @param {Object} [options] Additional options.\n * @param {Number} [options.blockSize] The block size to use.\n * @param {object} [options.headers] Additional headers to be sent to the server.\n */\nfunction makeHttpSource(url, { headers = {}, blockSize } = {}) {\n return new BlockedSource(async (offset, length) => new Promise((resolve, reject) => {\n const parsed = url__WEBPACK_IMPORTED_MODULE_4___default.a.parse(url);\n const request = (parsed.protocol === 'http:' ? http__WEBPACK_IMPORTED_MODULE_2___default.a : https__WEBPACK_IMPORTED_MODULE_3___default.a).get(\n { ...parsed,\n headers: {\n ...headers, Range: `bytes=${offset}-${offset + length - 1}`,\n } }, (result) => {\n const chunks = [];\n // collect chunks\n result.on('data', (chunk) => {\n chunks.push(chunk);\n });\n\n // concatenate all chunks and resolve the promise with the resulting buffer\n result.on('end', () => {\n const data = buffer__WEBPACK_IMPORTED_MODULE_0__[\"Buffer\"].concat(chunks).buffer;\n resolve({\n data,\n offset,\n length: data.byteLength,\n });\n });\n },\n );\n request.on('error', reject);\n }), { blockSize });\n}\n\n/**\n * Create a new source to read from a remote file. Uses either XHR, fetch or nodes http API.\n * @param {string} url The URL to send requests to.\n * @param {Object} [options] Additional options.\n * @param {Boolean} [options.forceXHR] Force the usage of XMLHttpRequest.\n * @param {Number} [options.blockSize] The block size to use.\n * @param {object} [options.headers] Additional headers to be sent to the server.\n * @returns The constructed source\n */\nfunction makeRemoteSource(url, options) {\n const { forceXHR } = options;\n if (typeof fetch === 'function' && !forceXHR) {\n return makeFetchSource(url, options);\n }\n if (typeof XMLHttpRequest !== 'undefined') {\n return makeXHRSource(url, options);\n }\n if (http__WEBPACK_IMPORTED_MODULE_2___default.a.get) {\n return makeHttpSource(url, options);\n }\n throw new Error('No remote source available');\n}\n\n/**\n * Create a new source to read from a local\n * [ArrayBuffer]{@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer}.\n * @param {ArrayBuffer} arrayBuffer The ArrayBuffer to parse the GeoTIFF from.\n * @returns The constructed source\n */\nfunction makeBufferSource(arrayBuffer) {\n return {\n async fetch(offset, length) {\n return arrayBuffer.slice(offset, offset + length);\n },\n };\n}\n\nfunction closeAsync(fd) {\n return new Promise((resolve, reject) => {\n Object(fs__WEBPACK_IMPORTED_MODULE_1__[\"close\"])(fd, err => {\n if (err) {\n reject(err)\n } else {\n resolve()\n }\n });\n });\n}\n\nfunction openAsync(path, flags, mode = undefined) {\n return new Promise((resolve, reject) => {\n Object(fs__WEBPACK_IMPORTED_MODULE_1__[\"open\"])(path, flags, mode, (err, fd) => {\n if (err) {\n reject(err);\n } else {\n resolve(fd);\n }\n });\n });\n}\n\nfunction readAsync(...args) {\n return new Promise((resolve, reject) => {\n Object(fs__WEBPACK_IMPORTED_MODULE_1__[\"read\"])(...args, (err, bytesRead, buffer) => {\n if (err) {\n reject(err);\n } else {\n resolve({ bytesRead, buffer });\n }\n });\n });\n}\n\n/**\n * Creates a new source using the node filesystem API.\n * @param {string} path The path to the file in the local filesystem.\n * @returns The constructed source\n */\nfunction makeFileSource(path) {\n const fileOpen = openAsync(path, 'r');\n\n return {\n async fetch(offset, length) {\n const fd = await fileOpen;\n const { buffer } = await readAsync(fd, buffer__WEBPACK_IMPORTED_MODULE_0__[\"Buffer\"].alloc(length), 0, length, offset);\n return buffer.buffer;\n },\n async close() {\n const fd = await fileOpen;\n return await closeAsync(fd);\n },\n };\n}\n\n/**\n * Create a new source from a given file/blob.\n * @param {Blob} file The file or blob to read from.\n * @returns The constructed source\n */\nfunction makeFileReaderSource(file) {\n return {\n async fetch(offset, length) {\n return new Promise((resolve, reject) => {\n const blob = file.slice(offset, offset + length);\n const reader = new FileReader();\n reader.onload = (event) => resolve(event.target.result);\n reader.onerror = reject;\n reader.readAsArrayBuffer(blob);\n });\n },\n };\n}\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/geotiff/src/source.js?");
392
393/***/ }),
394
395/***/ "./node_modules/geotiff/src/utils.js":
396/*!*******************************************!*\
397 !*** ./node_modules/geotiff/src/utils.js ***!
398 \*******************************************/
399/*! exports provided: assign, chunk, endsWith, forEach, invert, range, times, toArray, toArrayRecursively */
400/***/ (function(module, __webpack_exports__, __webpack_require__) {
401
402"use strict";
403eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"assign\", function() { return assign; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"chunk\", function() { return chunk; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"endsWith\", function() { return endsWith; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"forEach\", function() { return forEach; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"invert\", function() { return invert; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"range\", function() { return range; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"times\", function() { return times; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"toArray\", function() { return toArray; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"toArrayRecursively\", function() { return toArrayRecursively; });\nfunction assign(target, source) {\n for (const key in source) {\n if (source.hasOwnProperty(key)) {\n target[key] = source[key];\n }\n }\n}\n\nfunction chunk(iterable, length) {\n const results = [];\n const lengthOfIterable = iterable.length;\n for (let i = 0; i < lengthOfIterable; i += length) {\n const chunked = [];\n for (let ci = i; ci < i + length; ci++) {\n chunked.push(iterable[ci]);\n }\n results.push(chunked);\n }\n return results;\n}\n\nfunction endsWith(string, expectedEnding) {\n if (string.length < expectedEnding.length) {\n return false;\n }\n const actualEnding = string.substr(string.length - expectedEnding.length);\n return actualEnding === expectedEnding;\n}\n\nfunction forEach(iterable, func) {\n const { length } = iterable;\n for (let i = 0; i < length; i++) {\n func(iterable[i], i);\n }\n}\n\nfunction invert(oldObj) {\n const newObj = {};\n for (const key in oldObj) {\n if (oldObj.hasOwnProperty(key)) {\n const value = oldObj[key];\n newObj[value] = key;\n }\n }\n return newObj;\n}\n\nfunction range(n) {\n const results = [];\n for (let i = 0; i < n; i++) {\n results.push(i);\n }\n return results;\n}\n\nfunction times(numTimes, func) {\n const results = [];\n for (let i = 0; i < numTimes; i++) {\n results.push(func(i));\n }\n return results;\n}\n\nfunction toArray(iterable) {\n const results = [];\n const { length } = iterable;\n for (let i = 0; i < length; i++) {\n results.push(iterable[i]);\n }\n return results;\n}\n\nfunction toArrayRecursively(input) {\n if (input.length) {\n return toArray(input).map(toArrayRecursively);\n }\n return input;\n}\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/geotiff/src/utils.js?");
404
405/***/ }),
406
407/***/ "./node_modules/https-browserify/index.js":
408/*!************************************************!*\
409 !*** ./node_modules/https-browserify/index.js ***!
410 \************************************************/
411/*! no static exports found */
412/***/ (function(module, exports, __webpack_require__) {
413
414eval("var http = __webpack_require__(/*! http */ \"./node_modules/stream-http/index.js\")\nvar url = __webpack_require__(/*! url */ \"./node_modules/url/url.js\")\n\nvar https = module.exports\n\nfor (var key in http) {\n if (http.hasOwnProperty(key)) https[key] = http[key]\n}\n\nhttps.request = function (params, cb) {\n params = validateParams(params)\n return http.request.call(this, params, cb)\n}\n\nhttps.get = function (params, cb) {\n params = validateParams(params)\n return http.get.call(this, params, cb)\n}\n\nfunction validateParams (params) {\n if (typeof params === 'string') {\n params = url.parse(params)\n }\n if (!params.protocol) {\n params.protocol = 'https:'\n }\n if (params.protocol !== 'https:') {\n throw new Error('Protocol \"' + params.protocol + '\" not supported. Expected \"https:\"')\n }\n return params\n}\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/https-browserify/index.js?");
415
416/***/ }),
417
418/***/ "./node_modules/ieee754/index.js":
419/*!***************************************!*\
420 !*** ./node_modules/ieee754/index.js ***!
421 \***************************************/
422/*! no static exports found */
423/***/ (function(module, exports) {
424
425eval("/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */\nexports.read = function (buffer, offset, isLE, mLen, nBytes) {\n var e, m\n var eLen = (nBytes * 8) - mLen - 1\n var eMax = (1 << eLen) - 1\n var eBias = eMax >> 1\n var nBits = -7\n var i = isLE ? (nBytes - 1) : 0\n var d = isLE ? -1 : 1\n var s = buffer[offset + i]\n\n i += d\n\n e = s & ((1 << (-nBits)) - 1)\n s >>= (-nBits)\n nBits += eLen\n for (; nBits > 0; e = (e * 256) + buffer[offset + i], i += d, nBits -= 8) {}\n\n m = e & ((1 << (-nBits)) - 1)\n e >>= (-nBits)\n nBits += mLen\n for (; nBits > 0; m = (m * 256) + buffer[offset + i], i += d, nBits -= 8) {}\n\n if (e === 0) {\n e = 1 - eBias\n } else if (e === eMax) {\n return m ? NaN : ((s ? -1 : 1) * Infinity)\n } else {\n m = m + Math.pow(2, mLen)\n e = e - eBias\n }\n return (s ? -1 : 1) * m * Math.pow(2, e - mLen)\n}\n\nexports.write = function (buffer, value, offset, isLE, mLen, nBytes) {\n var e, m, c\n var eLen = (nBytes * 8) - mLen - 1\n var eMax = (1 << eLen) - 1\n var eBias = eMax >> 1\n var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0)\n var i = isLE ? 0 : (nBytes - 1)\n var d = isLE ? 1 : -1\n var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0\n\n value = Math.abs(value)\n\n if (isNaN(value) || value === Infinity) {\n m = isNaN(value) ? 1 : 0\n e = eMax\n } else {\n e = Math.floor(Math.log(value) / Math.LN2)\n if (value * (c = Math.pow(2, -e)) < 1) {\n e--\n c *= 2\n }\n if (e + eBias >= 1) {\n value += rt / c\n } else {\n value += rt * Math.pow(2, 1 - eBias)\n }\n if (value * c >= 2) {\n e++\n c /= 2\n }\n\n if (e + eBias >= eMax) {\n m = 0\n e = eMax\n } else if (e + eBias >= 1) {\n m = ((value * c) - 1) * Math.pow(2, mLen)\n e = e + eBias\n } else {\n m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen)\n e = 0\n }\n }\n\n for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}\n\n e = (e << mLen) | m\n eLen += mLen\n for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}\n\n buffer[offset + i - d] |= s * 128\n}\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/ieee754/index.js?");
426
427/***/ }),
428
429/***/ "./node_modules/inherits/inherits_browser.js":
430/*!***************************************************!*\
431 !*** ./node_modules/inherits/inherits_browser.js ***!
432 \***************************************************/
433/*! no static exports found */
434/***/ (function(module, exports) {
435
436eval("if (typeof Object.create === 'function') {\n // implementation from standard node.js 'util' module\n module.exports = function inherits(ctor, superCtor) {\n if (superCtor) {\n ctor.super_ = superCtor\n ctor.prototype = Object.create(superCtor.prototype, {\n constructor: {\n value: ctor,\n enumerable: false,\n writable: true,\n configurable: true\n }\n })\n }\n };\n} else {\n // old school shim for old browsers\n module.exports = function inherits(ctor, superCtor) {\n if (superCtor) {\n ctor.super_ = superCtor\n var TempCtor = function () {}\n TempCtor.prototype = superCtor.prototype\n ctor.prototype = new TempCtor()\n ctor.prototype.constructor = ctor\n }\n }\n}\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/inherits/inherits_browser.js?");
437
438/***/ }),
439
440/***/ "./node_modules/is-observable/index.js":
441/*!*********************************************!*\
442 !*** ./node_modules/is-observable/index.js ***!
443 \*********************************************/
444/*! no static exports found */
445/***/ (function(module, exports, __webpack_require__) {
446
447"use strict";
448eval("\n\nmodule.exports = value => {\n\tif (!value) {\n\t\treturn false;\n\t}\n\n\t// eslint-disable-next-line no-use-extend-native/no-use-extend-native\n\tif (typeof Symbol.observable === 'symbol' && typeof value[Symbol.observable] === 'function') {\n\t\t// eslint-disable-next-line no-use-extend-native/no-use-extend-native\n\t\treturn value === value[Symbol.observable]();\n\t}\n\n\tif (typeof value['@@observable'] === 'function') {\n\t\treturn value === value['@@observable']();\n\t}\n\n\treturn false;\n};\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/is-observable/index.js?");
449
450/***/ }),
451
452/***/ "./node_modules/isarray/index.js":
453/*!***************************************!*\
454 !*** ./node_modules/isarray/index.js ***!
455 \***************************************/
456/*! no static exports found */
457/***/ (function(module, exports) {
458
459eval("var toString = {}.toString;\n\nmodule.exports = Array.isArray || function (arr) {\n return toString.call(arr) == '[object Array]';\n};\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/isarray/index.js?");
460
461/***/ }),
462
463/***/ "./node_modules/node-libs-browser/mock/empty.js":
464/*!******************************************************!*\
465 !*** ./node_modules/node-libs-browser/mock/empty.js ***!
466 \******************************************************/
467/*! no static exports found */
468/***/ (function(module, exports) {
469
470eval("\n\n//# sourceURL=webpack://GeoRaster/./node_modules/node-libs-browser/mock/empty.js?");
471
472/***/ }),
473
474/***/ "./node_modules/node-libs-browser/node_modules/buffer/index.js":
475/*!*********************************************************************!*\
476 !*** ./node_modules/node-libs-browser/node_modules/buffer/index.js ***!
477 \*********************************************************************/
478/*! no static exports found */
479/***/ (function(module, exports, __webpack_require__) {
480
481"use strict";
482eval("/* WEBPACK VAR INJECTION */(function(global) {/*!\n * The buffer module from node.js, for the browser.\n *\n * @author Feross Aboukhadijeh <http://feross.org>\n * @license MIT\n */\n/* eslint-disable no-proto */\n\n\n\nvar base64 = __webpack_require__(/*! base64-js */ \"./node_modules/base64-js/index.js\")\nvar ieee754 = __webpack_require__(/*! ieee754 */ \"./node_modules/ieee754/index.js\")\nvar isArray = __webpack_require__(/*! isarray */ \"./node_modules/isarray/index.js\")\n\nexports.Buffer = Buffer\nexports.SlowBuffer = SlowBuffer\nexports.INSPECT_MAX_BYTES = 50\n\n/**\n * If `Buffer.TYPED_ARRAY_SUPPORT`:\n * === true Use Uint8Array implementation (fastest)\n * === false Use Object implementation (most compatible, even IE6)\n *\n * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,\n * Opera 11.6+, iOS 4.2+.\n *\n * Due to various browser bugs, sometimes the Object implementation will be used even\n * when the browser supports typed arrays.\n *\n * Note:\n *\n * - Firefox 4-29 lacks support for adding new properties to `Uint8Array` instances,\n * See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438.\n *\n * - Chrome 9-10 is missing the `TypedArray.prototype.subarray` function.\n *\n * - IE10 has a broken `TypedArray.prototype.subarray` function which returns arrays of\n * incorrect length in some situations.\n\n * We detect these buggy browsers and set `Buffer.TYPED_ARRAY_SUPPORT` to `false` so they\n * get the Object implementation, which is slower but behaves correctly.\n */\nBuffer.TYPED_ARRAY_SUPPORT = global.TYPED_ARRAY_SUPPORT !== undefined\n ? global.TYPED_ARRAY_SUPPORT\n : typedArraySupport()\n\n/*\n * Export kMaxLength after typed array support is determined.\n */\nexports.kMaxLength = kMaxLength()\n\nfunction typedArraySupport () {\n try {\n var arr = new Uint8Array(1)\n arr.__proto__ = {__proto__: Uint8Array.prototype, foo: function () { return 42 }}\n return arr.foo() === 42 && // typed array instances can be augmented\n typeof arr.subarray === 'function' && // chrome 9-10 lack `subarray`\n arr.subarray(1, 1).byteLength === 0 // ie10 has broken `subarray`\n } catch (e) {\n return false\n }\n}\n\nfunction kMaxLength () {\n return Buffer.TYPED_ARRAY_SUPPORT\n ? 0x7fffffff\n : 0x3fffffff\n}\n\nfunction createBuffer (that, length) {\n if (kMaxLength() < length) {\n throw new RangeError('Invalid typed array length')\n }\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n // Return an augmented `Uint8Array` instance, for best performance\n that = new Uint8Array(length)\n that.__proto__ = Buffer.prototype\n } else {\n // Fallback: Return an object instance of the Buffer class\n if (that === null) {\n that = new Buffer(length)\n }\n that.length = length\n }\n\n return that\n}\n\n/**\n * The Buffer constructor returns instances of `Uint8Array` that have their\n * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of\n * `Uint8Array`, so the returned instances will have all the node `Buffer` methods\n * and the `Uint8Array` methods. Square bracket notation works as expected -- it\n * returns a single octet.\n *\n * The `Uint8Array` prototype remains unmodified.\n */\n\nfunction Buffer (arg, encodingOrOffset, length) {\n if (!Buffer.TYPED_ARRAY_SUPPORT && !(this instanceof Buffer)) {\n return new Buffer(arg, encodingOrOffset, length)\n }\n\n // Common case.\n if (typeof arg === 'number') {\n if (typeof encodingOrOffset === 'string') {\n throw new Error(\n 'If encoding is specified then the first argument must be a string'\n )\n }\n return allocUnsafe(this, arg)\n }\n return from(this, arg, encodingOrOffset, length)\n}\n\nBuffer.poolSize = 8192 // not used by this implementation\n\n// TODO: Legacy, not needed anymore. Remove in next major version.\nBuffer._augment = function (arr) {\n arr.__proto__ = Buffer.prototype\n return arr\n}\n\nfunction from (that, value, encodingOrOffset, length) {\n if (typeof value === 'number') {\n throw new TypeError('\"value\" argument must not be a number')\n }\n\n if (typeof ArrayBuffer !== 'undefined' && value instanceof ArrayBuffer) {\n return fromArrayBuffer(that, value, encodingOrOffset, length)\n }\n\n if (typeof value === 'string') {\n return fromString(that, value, encodingOrOffset)\n }\n\n return fromObject(that, value)\n}\n\n/**\n * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError\n * if value is a number.\n * Buffer.from(str[, encoding])\n * Buffer.from(array)\n * Buffer.from(buffer)\n * Buffer.from(arrayBuffer[, byteOffset[, length]])\n **/\nBuffer.from = function (value, encodingOrOffset, length) {\n return from(null, value, encodingOrOffset, length)\n}\n\nif (Buffer.TYPED_ARRAY_SUPPORT) {\n Buffer.prototype.__proto__ = Uint8Array.prototype\n Buffer.__proto__ = Uint8Array\n if (typeof Symbol !== 'undefined' && Symbol.species &&\n Buffer[Symbol.species] === Buffer) {\n // Fix subarray() in ES2016. See: https://github.com/feross/buffer/pull/97\n Object.defineProperty(Buffer, Symbol.species, {\n value: null,\n configurable: true\n })\n }\n}\n\nfunction assertSize (size) {\n if (typeof size !== 'number') {\n throw new TypeError('\"size\" argument must be a number')\n } else if (size < 0) {\n throw new RangeError('\"size\" argument must not be negative')\n }\n}\n\nfunction alloc (that, size, fill, encoding) {\n assertSize(size)\n if (size <= 0) {\n return createBuffer(that, size)\n }\n if (fill !== undefined) {\n // Only pay attention to encoding if it's a string. This\n // prevents accidentally sending in a number that would\n // be interpretted as a start offset.\n return typeof encoding === 'string'\n ? createBuffer(that, size).fill(fill, encoding)\n : createBuffer(that, size).fill(fill)\n }\n return createBuffer(that, size)\n}\n\n/**\n * Creates a new filled Buffer instance.\n * alloc(size[, fill[, encoding]])\n **/\nBuffer.alloc = function (size, fill, encoding) {\n return alloc(null, size, fill, encoding)\n}\n\nfunction allocUnsafe (that, size) {\n assertSize(size)\n that = createBuffer(that, size < 0 ? 0 : checked(size) | 0)\n if (!Buffer.TYPED_ARRAY_SUPPORT) {\n for (var i = 0; i < size; ++i) {\n that[i] = 0\n }\n }\n return that\n}\n\n/**\n * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.\n * */\nBuffer.allocUnsafe = function (size) {\n return allocUnsafe(null, size)\n}\n/**\n * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance.\n */\nBuffer.allocUnsafeSlow = function (size) {\n return allocUnsafe(null, size)\n}\n\nfunction fromString (that, string, encoding) {\n if (typeof encoding !== 'string' || encoding === '') {\n encoding = 'utf8'\n }\n\n if (!Buffer.isEncoding(encoding)) {\n throw new TypeError('\"encoding\" must be a valid string encoding')\n }\n\n var length = byteLength(string, encoding) | 0\n that = createBuffer(that, length)\n\n var actual = that.write(string, encoding)\n\n if (actual !== length) {\n // Writing a hex string, for example, that contains invalid characters will\n // cause everything after the first invalid character to be ignored. (e.g.\n // 'abxxcd' will be treated as 'ab')\n that = that.slice(0, actual)\n }\n\n return that\n}\n\nfunction fromArrayLike (that, array) {\n var length = array.length < 0 ? 0 : checked(array.length) | 0\n that = createBuffer(that, length)\n for (var i = 0; i < length; i += 1) {\n that[i] = array[i] & 255\n }\n return that\n}\n\nfunction fromArrayBuffer (that, array, byteOffset, length) {\n array.byteLength // this throws if `array` is not a valid ArrayBuffer\n\n if (byteOffset < 0 || array.byteLength < byteOffset) {\n throw new RangeError('\\'offset\\' is out of bounds')\n }\n\n if (array.byteLength < byteOffset + (length || 0)) {\n throw new RangeError('\\'length\\' is out of bounds')\n }\n\n if (byteOffset === undefined && length === undefined) {\n array = new Uint8Array(array)\n } else if (length === undefined) {\n array = new Uint8Array(array, byteOffset)\n } else {\n array = new Uint8Array(array, byteOffset, length)\n }\n\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n // Return an augmented `Uint8Array` instance, for best performance\n that = array\n that.__proto__ = Buffer.prototype\n } else {\n // Fallback: Return an object instance of the Buffer class\n that = fromArrayLike(that, array)\n }\n return that\n}\n\nfunction fromObject (that, obj) {\n if (Buffer.isBuffer(obj)) {\n var len = checked(obj.length) | 0\n that = createBuffer(that, len)\n\n if (that.length === 0) {\n return that\n }\n\n obj.copy(that, 0, 0, len)\n return that\n }\n\n if (obj) {\n if ((typeof ArrayBuffer !== 'undefined' &&\n obj.buffer instanceof ArrayBuffer) || 'length' in obj) {\n if (typeof obj.length !== 'number' || isnan(obj.length)) {\n return createBuffer(that, 0)\n }\n return fromArrayLike(that, obj)\n }\n\n if (obj.type === 'Buffer' && isArray(obj.data)) {\n return fromArrayLike(that, obj.data)\n }\n }\n\n throw new TypeError('First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.')\n}\n\nfunction checked (length) {\n // Note: cannot use `length < kMaxLength()` here because that fails when\n // length is NaN (which is otherwise coerced to zero.)\n if (length >= kMaxLength()) {\n throw new RangeError('Attempt to allocate Buffer larger than maximum ' +\n 'size: 0x' + kMaxLength().toString(16) + ' bytes')\n }\n return length | 0\n}\n\nfunction SlowBuffer (length) {\n if (+length != length) { // eslint-disable-line eqeqeq\n length = 0\n }\n return Buffer.alloc(+length)\n}\n\nBuffer.isBuffer = function isBuffer (b) {\n return !!(b != null && b._isBuffer)\n}\n\nBuffer.compare = function compare (a, b) {\n if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {\n throw new TypeError('Arguments must be Buffers')\n }\n\n if (a === b) return 0\n\n var x = a.length\n var y = b.length\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i]\n y = b[i]\n break\n }\n }\n\n if (x < y) return -1\n if (y < x) return 1\n return 0\n}\n\nBuffer.isEncoding = function isEncoding (encoding) {\n switch (String(encoding).toLowerCase()) {\n case 'hex':\n case 'utf8':\n case 'utf-8':\n case 'ascii':\n case 'latin1':\n case 'binary':\n case 'base64':\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return true\n default:\n return false\n }\n}\n\nBuffer.concat = function concat (list, length) {\n if (!isArray(list)) {\n throw new TypeError('\"list\" argument must be an Array of Buffers')\n }\n\n if (list.length === 0) {\n return Buffer.alloc(0)\n }\n\n var i\n if (length === undefined) {\n length = 0\n for (i = 0; i < list.length; ++i) {\n length += list[i].length\n }\n }\n\n var buffer = Buffer.allocUnsafe(length)\n var pos = 0\n for (i = 0; i < list.length; ++i) {\n var buf = list[i]\n if (!Buffer.isBuffer(buf)) {\n throw new TypeError('\"list\" argument must be an Array of Buffers')\n }\n buf.copy(buffer, pos)\n pos += buf.length\n }\n return buffer\n}\n\nfunction byteLength (string, encoding) {\n if (Buffer.isBuffer(string)) {\n return string.length\n }\n if (typeof ArrayBuffer !== 'undefined' && typeof ArrayBuffer.isView === 'function' &&\n (ArrayBuffer.isView(string) || string instanceof ArrayBuffer)) {\n return string.byteLength\n }\n if (typeof string !== 'string') {\n string = '' + string\n }\n\n var len = string.length\n if (len === 0) return 0\n\n // Use a for loop to avoid recursion\n var loweredCase = false\n for (;;) {\n switch (encoding) {\n case 'ascii':\n case 'latin1':\n case 'binary':\n return len\n case 'utf8':\n case 'utf-8':\n case undefined:\n return utf8ToBytes(string).length\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return len * 2\n case 'hex':\n return len >>> 1\n case 'base64':\n return base64ToBytes(string).length\n default:\n if (loweredCase) return utf8ToBytes(string).length // assume utf8\n encoding = ('' + encoding).toLowerCase()\n loweredCase = true\n }\n }\n}\nBuffer.byteLength = byteLength\n\nfunction slowToString (encoding, start, end) {\n var loweredCase = false\n\n // No need to verify that \"this.length <= MAX_UINT32\" since it's a read-only\n // property of a typed array.\n\n // This behaves neither like String nor Uint8Array in that we set start/end\n // to their upper/lower bounds if the value passed is out of range.\n // undefined is handled specially as per ECMA-262 6th Edition,\n // Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization.\n if (start === undefined || start < 0) {\n start = 0\n }\n // Return early if start > this.length. Done here to prevent potential uint32\n // coercion fail below.\n if (start > this.length) {\n return ''\n }\n\n if (end === undefined || end > this.length) {\n end = this.length\n }\n\n if (end <= 0) {\n return ''\n }\n\n // Force coersion to uint32. This will also coerce falsey/NaN values to 0.\n end >>>= 0\n start >>>= 0\n\n if (end <= start) {\n return ''\n }\n\n if (!encoding) encoding = 'utf8'\n\n while (true) {\n switch (encoding) {\n case 'hex':\n return hexSlice(this, start, end)\n\n case 'utf8':\n case 'utf-8':\n return utf8Slice(this, start, end)\n\n case 'ascii':\n return asciiSlice(this, start, end)\n\n case 'latin1':\n case 'binary':\n return latin1Slice(this, start, end)\n\n case 'base64':\n return base64Slice(this, start, end)\n\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return utf16leSlice(this, start, end)\n\n default:\n if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)\n encoding = (encoding + '').toLowerCase()\n loweredCase = true\n }\n }\n}\n\n// The property is used by `Buffer.isBuffer` and `is-buffer` (in Safari 5-7) to detect\n// Buffer instances.\nBuffer.prototype._isBuffer = true\n\nfunction swap (b, n, m) {\n var i = b[n]\n b[n] = b[m]\n b[m] = i\n}\n\nBuffer.prototype.swap16 = function swap16 () {\n var len = this.length\n if (len % 2 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 16-bits')\n }\n for (var i = 0; i < len; i += 2) {\n swap(this, i, i + 1)\n }\n return this\n}\n\nBuffer.prototype.swap32 = function swap32 () {\n var len = this.length\n if (len % 4 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 32-bits')\n }\n for (var i = 0; i < len; i += 4) {\n swap(this, i, i + 3)\n swap(this, i + 1, i + 2)\n }\n return this\n}\n\nBuffer.prototype.swap64 = function swap64 () {\n var len = this.length\n if (len % 8 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 64-bits')\n }\n for (var i = 0; i < len; i += 8) {\n swap(this, i, i + 7)\n swap(this, i + 1, i + 6)\n swap(this, i + 2, i + 5)\n swap(this, i + 3, i + 4)\n }\n return this\n}\n\nBuffer.prototype.toString = function toString () {\n var length = this.length | 0\n if (length === 0) return ''\n if (arguments.length === 0) return utf8Slice(this, 0, length)\n return slowToString.apply(this, arguments)\n}\n\nBuffer.prototype.equals = function equals (b) {\n if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')\n if (this === b) return true\n return Buffer.compare(this, b) === 0\n}\n\nBuffer.prototype.inspect = function inspect () {\n var str = ''\n var max = exports.INSPECT_MAX_BYTES\n if (this.length > 0) {\n str = this.toString('hex', 0, max).match(/.{2}/g).join(' ')\n if (this.length > max) str += ' ... '\n }\n return '<Buffer ' + str + '>'\n}\n\nBuffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {\n if (!Buffer.isBuffer(target)) {\n throw new TypeError('Argument must be a Buffer')\n }\n\n if (start === undefined) {\n start = 0\n }\n if (end === undefined) {\n end = target ? target.length : 0\n }\n if (thisStart === undefined) {\n thisStart = 0\n }\n if (thisEnd === undefined) {\n thisEnd = this.length\n }\n\n if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) {\n throw new RangeError('out of range index')\n }\n\n if (thisStart >= thisEnd && start >= end) {\n return 0\n }\n if (thisStart >= thisEnd) {\n return -1\n }\n if (start >= end) {\n return 1\n }\n\n start >>>= 0\n end >>>= 0\n thisStart >>>= 0\n thisEnd >>>= 0\n\n if (this === target) return 0\n\n var x = thisEnd - thisStart\n var y = end - start\n var len = Math.min(x, y)\n\n var thisCopy = this.slice(thisStart, thisEnd)\n var targetCopy = target.slice(start, end)\n\n for (var i = 0; i < len; ++i) {\n if (thisCopy[i] !== targetCopy[i]) {\n x = thisCopy[i]\n y = targetCopy[i]\n break\n }\n }\n\n if (x < y) return -1\n if (y < x) return 1\n return 0\n}\n\n// Finds either the first index of `val` in `buffer` at offset >= `byteOffset`,\n// OR the last index of `val` in `buffer` at offset <= `byteOffset`.\n//\n// Arguments:\n// - buffer - a Buffer to search\n// - val - a string, Buffer, or number\n// - byteOffset - an index into `buffer`; will be clamped to an int32\n// - encoding - an optional encoding, relevant is val is a string\n// - dir - true for indexOf, false for lastIndexOf\nfunction bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {\n // Empty buffer means no match\n if (buffer.length === 0) return -1\n\n // Normalize byteOffset\n if (typeof byteOffset === 'string') {\n encoding = byteOffset\n byteOffset = 0\n } else if (byteOffset > 0x7fffffff) {\n byteOffset = 0x7fffffff\n } else if (byteOffset < -0x80000000) {\n byteOffset = -0x80000000\n }\n byteOffset = +byteOffset // Coerce to Number.\n if (isNaN(byteOffset)) {\n // byteOffset: it it's undefined, null, NaN, \"foo\", etc, search whole buffer\n byteOffset = dir ? 0 : (buffer.length - 1)\n }\n\n // Normalize byteOffset: negative offsets start from the end of the buffer\n if (byteOffset < 0) byteOffset = buffer.length + byteOffset\n if (byteOffset >= buffer.length) {\n if (dir) return -1\n else byteOffset = buffer.length - 1\n } else if (byteOffset < 0) {\n if (dir) byteOffset = 0\n else return -1\n }\n\n // Normalize val\n if (typeof val === 'string') {\n val = Buffer.from(val, encoding)\n }\n\n // Finally, search either indexOf (if dir is true) or lastIndexOf\n if (Buffer.isBuffer(val)) {\n // Special case: looking for empty string/buffer always fails\n if (val.length === 0) {\n return -1\n }\n return arrayIndexOf(buffer, val, byteOffset, encoding, dir)\n } else if (typeof val === 'number') {\n val = val & 0xFF // Search for a byte value [0-255]\n if (Buffer.TYPED_ARRAY_SUPPORT &&\n typeof Uint8Array.prototype.indexOf === 'function') {\n if (dir) {\n return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset)\n } else {\n return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset)\n }\n }\n return arrayIndexOf(buffer, [ val ], byteOffset, encoding, dir)\n }\n\n throw new TypeError('val must be string, number or Buffer')\n}\n\nfunction arrayIndexOf (arr, val, byteOffset, encoding, dir) {\n var indexSize = 1\n var arrLength = arr.length\n var valLength = val.length\n\n if (encoding !== undefined) {\n encoding = String(encoding).toLowerCase()\n if (encoding === 'ucs2' || encoding === 'ucs-2' ||\n encoding === 'utf16le' || encoding === 'utf-16le') {\n if (arr.length < 2 || val.length < 2) {\n return -1\n }\n indexSize = 2\n arrLength /= 2\n valLength /= 2\n byteOffset /= 2\n }\n }\n\n function read (buf, i) {\n if (indexSize === 1) {\n return buf[i]\n } else {\n return buf.readUInt16BE(i * indexSize)\n }\n }\n\n var i\n if (dir) {\n var foundIndex = -1\n for (i = byteOffset; i < arrLength; i++) {\n if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {\n if (foundIndex === -1) foundIndex = i\n if (i - foundIndex + 1 === valLength) return foundIndex * indexSize\n } else {\n if (foundIndex !== -1) i -= i - foundIndex\n foundIndex = -1\n }\n }\n } else {\n if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength\n for (i = byteOffset; i >= 0; i--) {\n var found = true\n for (var j = 0; j < valLength; j++) {\n if (read(arr, i + j) !== read(val, j)) {\n found = false\n break\n }\n }\n if (found) return i\n }\n }\n\n return -1\n}\n\nBuffer.prototype.includes = function includes (val, byteOffset, encoding) {\n return this.indexOf(val, byteOffset, encoding) !== -1\n}\n\nBuffer.prototype.indexOf = function indexOf (val, byteOffset, encoding) {\n return bidirectionalIndexOf(this, val, byteOffset, encoding, true)\n}\n\nBuffer.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding) {\n return bidirectionalIndexOf(this, val, byteOffset, encoding, false)\n}\n\nfunction hexWrite (buf, string, offset, length) {\n offset = Number(offset) || 0\n var remaining = buf.length - offset\n if (!length) {\n length = remaining\n } else {\n length = Number(length)\n if (length > remaining) {\n length = remaining\n }\n }\n\n // must be an even number of digits\n var strLen = string.length\n if (strLen % 2 !== 0) throw new TypeError('Invalid hex string')\n\n if (length > strLen / 2) {\n length = strLen / 2\n }\n for (var i = 0; i < length; ++i) {\n var parsed = parseInt(string.substr(i * 2, 2), 16)\n if (isNaN(parsed)) return i\n buf[offset + i] = parsed\n }\n return i\n}\n\nfunction utf8Write (buf, string, offset, length) {\n return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length)\n}\n\nfunction asciiWrite (buf, string, offset, length) {\n return blitBuffer(asciiToBytes(string), buf, offset, length)\n}\n\nfunction latin1Write (buf, string, offset, length) {\n return asciiWrite(buf, string, offset, length)\n}\n\nfunction base64Write (buf, string, offset, length) {\n return blitBuffer(base64ToBytes(string), buf, offset, length)\n}\n\nfunction ucs2Write (buf, string, offset, length) {\n return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)\n}\n\nBuffer.prototype.write = function write (string, offset, length, encoding) {\n // Buffer#write(string)\n if (offset === undefined) {\n encoding = 'utf8'\n length = this.length\n offset = 0\n // Buffer#write(string, encoding)\n } else if (length === undefined && typeof offset === 'string') {\n encoding = offset\n length = this.length\n offset = 0\n // Buffer#write(string, offset[, length][, encoding])\n } else if (isFinite(offset)) {\n offset = offset | 0\n if (isFinite(length)) {\n length = length | 0\n if (encoding === undefined) encoding = 'utf8'\n } else {\n encoding = length\n length = undefined\n }\n // legacy write(string, encoding, offset, length) - remove in v0.13\n } else {\n throw new Error(\n 'Buffer.write(string, encoding, offset[, length]) is no longer supported'\n )\n }\n\n var remaining = this.length - offset\n if (length === undefined || length > remaining) length = remaining\n\n if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) {\n throw new RangeError('Attempt to write outside buffer bounds')\n }\n\n if (!encoding) encoding = 'utf8'\n\n var loweredCase = false\n for (;;) {\n switch (encoding) {\n case 'hex':\n return hexWrite(this, string, offset, length)\n\n case 'utf8':\n case 'utf-8':\n return utf8Write(this, string, offset, length)\n\n case 'ascii':\n return asciiWrite(this, string, offset, length)\n\n case 'latin1':\n case 'binary':\n return latin1Write(this, string, offset, length)\n\n case 'base64':\n // Warning: maxLength not taken into account in base64Write\n return base64Write(this, string, offset, length)\n\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return ucs2Write(this, string, offset, length)\n\n default:\n if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)\n encoding = ('' + encoding).toLowerCase()\n loweredCase = true\n }\n }\n}\n\nBuffer.prototype.toJSON = function toJSON () {\n return {\n type: 'Buffer',\n data: Array.prototype.slice.call(this._arr || this, 0)\n }\n}\n\nfunction base64Slice (buf, start, end) {\n if (start === 0 && end === buf.length) {\n return base64.fromByteArray(buf)\n } else {\n return base64.fromByteArray(buf.slice(start, end))\n }\n}\n\nfunction utf8Slice (buf, start, end) {\n end = Math.min(buf.length, end)\n var res = []\n\n var i = start\n while (i < end) {\n var firstByte = buf[i]\n var codePoint = null\n var bytesPerSequence = (firstByte > 0xEF) ? 4\n : (firstByte > 0xDF) ? 3\n : (firstByte > 0xBF) ? 2\n : 1\n\n if (i + bytesPerSequence <= end) {\n var secondByte, thirdByte, fourthByte, tempCodePoint\n\n switch (bytesPerSequence) {\n case 1:\n if (firstByte < 0x80) {\n codePoint = firstByte\n }\n break\n case 2:\n secondByte = buf[i + 1]\n if ((secondByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F)\n if (tempCodePoint > 0x7F) {\n codePoint = tempCodePoint\n }\n }\n break\n case 3:\n secondByte = buf[i + 1]\n thirdByte = buf[i + 2]\n if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F)\n if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {\n codePoint = tempCodePoint\n }\n }\n break\n case 4:\n secondByte = buf[i + 1]\n thirdByte = buf[i + 2]\n fourthByte = buf[i + 3]\n if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F)\n if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) {\n codePoint = tempCodePoint\n }\n }\n }\n }\n\n if (codePoint === null) {\n // we did not generate a valid codePoint so insert a\n // replacement char (U+FFFD) and advance only 1 byte\n codePoint = 0xFFFD\n bytesPerSequence = 1\n } else if (codePoint > 0xFFFF) {\n // encode to utf16 (surrogate pair dance)\n codePoint -= 0x10000\n res.push(codePoint >>> 10 & 0x3FF | 0xD800)\n codePoint = 0xDC00 | codePoint & 0x3FF\n }\n\n res.push(codePoint)\n i += bytesPerSequence\n }\n\n return decodeCodePointsArray(res)\n}\n\n// Based on http://stackoverflow.com/a/22747272/680742, the browser with\n// the lowest limit is Chrome, with 0x10000 args.\n// We go 1 magnitude less, for safety\nvar MAX_ARGUMENTS_LENGTH = 0x1000\n\nfunction decodeCodePointsArray (codePoints) {\n var len = codePoints.length\n if (len <= MAX_ARGUMENTS_LENGTH) {\n return String.fromCharCode.apply(String, codePoints) // avoid extra slice()\n }\n\n // Decode in chunks to avoid \"call stack size exceeded\".\n var res = ''\n var i = 0\n while (i < len) {\n res += String.fromCharCode.apply(\n String,\n codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH)\n )\n }\n return res\n}\n\nfunction asciiSlice (buf, start, end) {\n var ret = ''\n end = Math.min(buf.length, end)\n\n for (var i = start; i < end; ++i) {\n ret += String.fromCharCode(buf[i] & 0x7F)\n }\n return ret\n}\n\nfunction latin1Slice (buf, start, end) {\n var ret = ''\n end = Math.min(buf.length, end)\n\n for (var i = start; i < end; ++i) {\n ret += String.fromCharCode(buf[i])\n }\n return ret\n}\n\nfunction hexSlice (buf, start, end) {\n var len = buf.length\n\n if (!start || start < 0) start = 0\n if (!end || end < 0 || end > len) end = len\n\n var out = ''\n for (var i = start; i < end; ++i) {\n out += toHex(buf[i])\n }\n return out\n}\n\nfunction utf16leSlice (buf, start, end) {\n var bytes = buf.slice(start, end)\n var res = ''\n for (var i = 0; i < bytes.length; i += 2) {\n res += String.fromCharCode(bytes[i] + bytes[i + 1] * 256)\n }\n return res\n}\n\nBuffer.prototype.slice = function slice (start, end) {\n var len = this.length\n start = ~~start\n end = end === undefined ? len : ~~end\n\n if (start < 0) {\n start += len\n if (start < 0) start = 0\n } else if (start > len) {\n start = len\n }\n\n if (end < 0) {\n end += len\n if (end < 0) end = 0\n } else if (end > len) {\n end = len\n }\n\n if (end < start) end = start\n\n var newBuf\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n newBuf = this.subarray(start, end)\n newBuf.__proto__ = Buffer.prototype\n } else {\n var sliceLen = end - start\n newBuf = new Buffer(sliceLen, undefined)\n for (var i = 0; i < sliceLen; ++i) {\n newBuf[i] = this[i + start]\n }\n }\n\n return newBuf\n}\n\n/*\n * Need to make sure that buffer isn't trying to write out of bounds.\n */\nfunction checkOffset (offset, ext, length) {\n if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint')\n if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length')\n}\n\nBuffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) {\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n var val = this[offset]\n var mul = 1\n var i = 0\n while (++i < byteLength && (mul *= 0x100)) {\n val += this[offset + i] * mul\n }\n\n return val\n}\n\nBuffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) {\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) {\n checkOffset(offset, byteLength, this.length)\n }\n\n var val = this[offset + --byteLength]\n var mul = 1\n while (byteLength > 0 && (mul *= 0x100)) {\n val += this[offset + --byteLength] * mul\n }\n\n return val\n}\n\nBuffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 1, this.length)\n return this[offset]\n}\n\nBuffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 2, this.length)\n return this[offset] | (this[offset + 1] << 8)\n}\n\nBuffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 2, this.length)\n return (this[offset] << 8) | this[offset + 1]\n}\n\nBuffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return ((this[offset]) |\n (this[offset + 1] << 8) |\n (this[offset + 2] << 16)) +\n (this[offset + 3] * 0x1000000)\n}\n\nBuffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset] * 0x1000000) +\n ((this[offset + 1] << 16) |\n (this[offset + 2] << 8) |\n this[offset + 3])\n}\n\nBuffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) {\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n var val = this[offset]\n var mul = 1\n var i = 0\n while (++i < byteLength && (mul *= 0x100)) {\n val += this[offset + i] * mul\n }\n mul *= 0x80\n\n if (val >= mul) val -= Math.pow(2, 8 * byteLength)\n\n return val\n}\n\nBuffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) {\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n var i = byteLength\n var mul = 1\n var val = this[offset + --i]\n while (i > 0 && (mul *= 0x100)) {\n val += this[offset + --i] * mul\n }\n mul *= 0x80\n\n if (val >= mul) val -= Math.pow(2, 8 * byteLength)\n\n return val\n}\n\nBuffer.prototype.readInt8 = function readInt8 (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 1, this.length)\n if (!(this[offset] & 0x80)) return (this[offset])\n return ((0xff - this[offset] + 1) * -1)\n}\n\nBuffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 2, this.length)\n var val = this[offset] | (this[offset + 1] << 8)\n return (val & 0x8000) ? val | 0xFFFF0000 : val\n}\n\nBuffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 2, this.length)\n var val = this[offset + 1] | (this[offset] << 8)\n return (val & 0x8000) ? val | 0xFFFF0000 : val\n}\n\nBuffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset]) |\n (this[offset + 1] << 8) |\n (this[offset + 2] << 16) |\n (this[offset + 3] << 24)\n}\n\nBuffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset] << 24) |\n (this[offset + 1] << 16) |\n (this[offset + 2] << 8) |\n (this[offset + 3])\n}\n\nBuffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n return ieee754.read(this, offset, true, 23, 4)\n}\n\nBuffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n return ieee754.read(this, offset, false, 23, 4)\n}\n\nBuffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 8, this.length)\n return ieee754.read(this, offset, true, 52, 8)\n}\n\nBuffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 8, this.length)\n return ieee754.read(this, offset, false, 52, 8)\n}\n\nfunction checkInt (buf, value, offset, ext, max, min) {\n if (!Buffer.isBuffer(buf)) throw new TypeError('\"buffer\" argument must be a Buffer instance')\n if (value > max || value < min) throw new RangeError('\"value\" argument is out of bounds')\n if (offset + ext > buf.length) throw new RangeError('Index out of range')\n}\n\nBuffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) {\n var maxBytes = Math.pow(2, 8 * byteLength) - 1\n checkInt(this, value, offset, byteLength, maxBytes, 0)\n }\n\n var mul = 1\n var i = 0\n this[offset] = value & 0xFF\n while (++i < byteLength && (mul *= 0x100)) {\n this[offset + i] = (value / mul) & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) {\n var maxBytes = Math.pow(2, 8 * byteLength) - 1\n checkInt(this, value, offset, byteLength, maxBytes, 0)\n }\n\n var i = byteLength - 1\n var mul = 1\n this[offset + i] = value & 0xFF\n while (--i >= 0 && (mul *= 0x100)) {\n this[offset + i] = (value / mul) & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0)\n if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)\n this[offset] = (value & 0xff)\n return offset + 1\n}\n\nfunction objectWriteUInt16 (buf, value, offset, littleEndian) {\n if (value < 0) value = 0xffff + value + 1\n for (var i = 0, j = Math.min(buf.length - offset, 2); i < j; ++i) {\n buf[offset + i] = (value & (0xff << (8 * (littleEndian ? i : 1 - i)))) >>>\n (littleEndian ? i : 1 - i) * 8\n }\n}\n\nBuffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n } else {\n objectWriteUInt16(this, value, offset, true)\n }\n return offset + 2\n}\n\nBuffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value >>> 8)\n this[offset + 1] = (value & 0xff)\n } else {\n objectWriteUInt16(this, value, offset, false)\n }\n return offset + 2\n}\n\nfunction objectWriteUInt32 (buf, value, offset, littleEndian) {\n if (value < 0) value = 0xffffffff + value + 1\n for (var i = 0, j = Math.min(buf.length - offset, 4); i < j; ++i) {\n buf[offset + i] = (value >>> (littleEndian ? i : 3 - i) * 8) & 0xff\n }\n}\n\nBuffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset + 3] = (value >>> 24)\n this[offset + 2] = (value >>> 16)\n this[offset + 1] = (value >>> 8)\n this[offset] = (value & 0xff)\n } else {\n objectWriteUInt32(this, value, offset, true)\n }\n return offset + 4\n}\n\nBuffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value >>> 24)\n this[offset + 1] = (value >>> 16)\n this[offset + 2] = (value >>> 8)\n this[offset + 3] = (value & 0xff)\n } else {\n objectWriteUInt32(this, value, offset, false)\n }\n return offset + 4\n}\n\nBuffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) {\n var limit = Math.pow(2, 8 * byteLength - 1)\n\n checkInt(this, value, offset, byteLength, limit - 1, -limit)\n }\n\n var i = 0\n var mul = 1\n var sub = 0\n this[offset] = value & 0xFF\n while (++i < byteLength && (mul *= 0x100)) {\n if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {\n sub = 1\n }\n this[offset + i] = ((value / mul) >> 0) - sub & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) {\n var limit = Math.pow(2, 8 * byteLength - 1)\n\n checkInt(this, value, offset, byteLength, limit - 1, -limit)\n }\n\n var i = byteLength - 1\n var mul = 1\n var sub = 0\n this[offset + i] = value & 0xFF\n while (--i >= 0 && (mul *= 0x100)) {\n if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {\n sub = 1\n }\n this[offset + i] = ((value / mul) >> 0) - sub & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80)\n if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)\n if (value < 0) value = 0xff + value + 1\n this[offset] = (value & 0xff)\n return offset + 1\n}\n\nBuffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n } else {\n objectWriteUInt16(this, value, offset, true)\n }\n return offset + 2\n}\n\nBuffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value >>> 8)\n this[offset + 1] = (value & 0xff)\n } else {\n objectWriteUInt16(this, value, offset, false)\n }\n return offset + 2\n}\n\nBuffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n this[offset + 2] = (value >>> 16)\n this[offset + 3] = (value >>> 24)\n } else {\n objectWriteUInt32(this, value, offset, true)\n }\n return offset + 4\n}\n\nBuffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)\n if (value < 0) value = 0xffffffff + value + 1\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value >>> 24)\n this[offset + 1] = (value >>> 16)\n this[offset + 2] = (value >>> 8)\n this[offset + 3] = (value & 0xff)\n } else {\n objectWriteUInt32(this, value, offset, false)\n }\n return offset + 4\n}\n\nfunction checkIEEE754 (buf, value, offset, ext, max, min) {\n if (offset + ext > buf.length) throw new RangeError('Index out of range')\n if (offset < 0) throw new RangeError('Index out of range')\n}\n\nfunction writeFloat (buf, value, offset, littleEndian, noAssert) {\n if (!noAssert) {\n checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38)\n }\n ieee754.write(buf, value, offset, littleEndian, 23, 4)\n return offset + 4\n}\n\nBuffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {\n return writeFloat(this, value, offset, true, noAssert)\n}\n\nBuffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) {\n return writeFloat(this, value, offset, false, noAssert)\n}\n\nfunction writeDouble (buf, value, offset, littleEndian, noAssert) {\n if (!noAssert) {\n checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308)\n }\n ieee754.write(buf, value, offset, littleEndian, 52, 8)\n return offset + 8\n}\n\nBuffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) {\n return writeDouble(this, value, offset, true, noAssert)\n}\n\nBuffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) {\n return writeDouble(this, value, offset, false, noAssert)\n}\n\n// copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)\nBuffer.prototype.copy = function copy (target, targetStart, start, end) {\n if (!start) start = 0\n if (!end && end !== 0) end = this.length\n if (targetStart >= target.length) targetStart = target.length\n if (!targetStart) targetStart = 0\n if (end > 0 && end < start) end = start\n\n // Copy 0 bytes; we're done\n if (end === start) return 0\n if (target.length === 0 || this.length === 0) return 0\n\n // Fatal error conditions\n if (targetStart < 0) {\n throw new RangeError('targetStart out of bounds')\n }\n if (start < 0 || start >= this.length) throw new RangeError('sourceStart out of bounds')\n if (end < 0) throw new RangeError('sourceEnd out of bounds')\n\n // Are we oob?\n if (end > this.length) end = this.length\n if (target.length - targetStart < end - start) {\n end = target.length - targetStart + start\n }\n\n var len = end - start\n var i\n\n if (this === target && start < targetStart && targetStart < end) {\n // descending copy from end\n for (i = len - 1; i >= 0; --i) {\n target[i + targetStart] = this[i + start]\n }\n } else if (len < 1000 || !Buffer.TYPED_ARRAY_SUPPORT) {\n // ascending copy from start\n for (i = 0; i < len; ++i) {\n target[i + targetStart] = this[i + start]\n }\n } else {\n Uint8Array.prototype.set.call(\n target,\n this.subarray(start, start + len),\n targetStart\n )\n }\n\n return len\n}\n\n// Usage:\n// buffer.fill(number[, offset[, end]])\n// buffer.fill(buffer[, offset[, end]])\n// buffer.fill(string[, offset[, end]][, encoding])\nBuffer.prototype.fill = function fill (val, start, end, encoding) {\n // Handle string cases:\n if (typeof val === 'string') {\n if (typeof start === 'string') {\n encoding = start\n start = 0\n end = this.length\n } else if (typeof end === 'string') {\n encoding = end\n end = this.length\n }\n if (val.length === 1) {\n var code = val.charCodeAt(0)\n if (code < 256) {\n val = code\n }\n }\n if (encoding !== undefined && typeof encoding !== 'string') {\n throw new TypeError('encoding must be a string')\n }\n if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) {\n throw new TypeError('Unknown encoding: ' + encoding)\n }\n } else if (typeof val === 'number') {\n val = val & 255\n }\n\n // Invalid ranges are not set to a default, so can range check early.\n if (start < 0 || this.length < start || this.length < end) {\n throw new RangeError('Out of range index')\n }\n\n if (end <= start) {\n return this\n }\n\n start = start >>> 0\n end = end === undefined ? this.length : end >>> 0\n\n if (!val) val = 0\n\n var i\n if (typeof val === 'number') {\n for (i = start; i < end; ++i) {\n this[i] = val\n }\n } else {\n var bytes = Buffer.isBuffer(val)\n ? val\n : utf8ToBytes(new Buffer(val, encoding).toString())\n var len = bytes.length\n for (i = 0; i < end - start; ++i) {\n this[i + start] = bytes[i % len]\n }\n }\n\n return this\n}\n\n// HELPER FUNCTIONS\n// ================\n\nvar INVALID_BASE64_RE = /[^+\\/0-9A-Za-z-_]/g\n\nfunction base64clean (str) {\n // Node strips out invalid characters like \\n and \\t from the string, base64-js does not\n str = stringtrim(str).replace(INVALID_BASE64_RE, '')\n // Node converts strings with length < 2 to ''\n if (str.length < 2) return ''\n // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not\n while (str.length % 4 !== 0) {\n str = str + '='\n }\n return str\n}\n\nfunction stringtrim (str) {\n if (str.trim) return str.trim()\n return str.replace(/^\\s+|\\s+$/g, '')\n}\n\nfunction toHex (n) {\n if (n < 16) return '0' + n.toString(16)\n return n.toString(16)\n}\n\nfunction utf8ToBytes (string, units) {\n units = units || Infinity\n var codePoint\n var length = string.length\n var leadSurrogate = null\n var bytes = []\n\n for (var i = 0; i < length; ++i) {\n codePoint = string.charCodeAt(i)\n\n // is surrogate component\n if (codePoint > 0xD7FF && codePoint < 0xE000) {\n // last char was a lead\n if (!leadSurrogate) {\n // no lead yet\n if (codePoint > 0xDBFF) {\n // unexpected trail\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n continue\n } else if (i + 1 === length) {\n // unpaired lead\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n continue\n }\n\n // valid lead\n leadSurrogate = codePoint\n\n continue\n }\n\n // 2 leads in a row\n if (codePoint < 0xDC00) {\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n leadSurrogate = codePoint\n continue\n }\n\n // valid surrogate pair\n codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000\n } else if (leadSurrogate) {\n // valid bmp char, but last char was a lead\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n }\n\n leadSurrogate = null\n\n // encode utf8\n if (codePoint < 0x80) {\n if ((units -= 1) < 0) break\n bytes.push(codePoint)\n } else if (codePoint < 0x800) {\n if ((units -= 2) < 0) break\n bytes.push(\n codePoint >> 0x6 | 0xC0,\n codePoint & 0x3F | 0x80\n )\n } else if (codePoint < 0x10000) {\n if ((units -= 3) < 0) break\n bytes.push(\n codePoint >> 0xC | 0xE0,\n codePoint >> 0x6 & 0x3F | 0x80,\n codePoint & 0x3F | 0x80\n )\n } else if (codePoint < 0x110000) {\n if ((units -= 4) < 0) break\n bytes.push(\n codePoint >> 0x12 | 0xF0,\n codePoint >> 0xC & 0x3F | 0x80,\n codePoint >> 0x6 & 0x3F | 0x80,\n codePoint & 0x3F | 0x80\n )\n } else {\n throw new Error('Invalid code point')\n }\n }\n\n return bytes\n}\n\nfunction asciiToBytes (str) {\n var byteArray = []\n for (var i = 0; i < str.length; ++i) {\n // Node's code seems to be doing this and not & 0x7F..\n byteArray.push(str.charCodeAt(i) & 0xFF)\n }\n return byteArray\n}\n\nfunction utf16leToBytes (str, units) {\n var c, hi, lo\n var byteArray = []\n for (var i = 0; i < str.length; ++i) {\n if ((units -= 2) < 0) break\n\n c = str.charCodeAt(i)\n hi = c >> 8\n lo = c % 256\n byteArray.push(lo)\n byteArray.push(hi)\n }\n\n return byteArray\n}\n\nfunction base64ToBytes (str) {\n return base64.toByteArray(base64clean(str))\n}\n\nfunction blitBuffer (src, dst, offset, length) {\n for (var i = 0; i < length; ++i) {\n if ((i + offset >= dst.length) || (i >= src.length)) break\n dst[i + offset] = src[i]\n }\n return i\n}\n\nfunction isnan (val) {\n return val !== val // eslint-disable-line no-self-compare\n}\n\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../webpack/buildin/global.js */ \"./node_modules/webpack/buildin/global.js\")))\n\n//# sourceURL=webpack://GeoRaster/./node_modules/node-libs-browser/node_modules/buffer/index.js?");
483
484/***/ }),
485
486/***/ "./node_modules/node-libs-browser/node_modules/events/events.js":
487/*!**********************************************************************!*\
488 !*** ./node_modules/node-libs-browser/node_modules/events/events.js ***!
489 \**********************************************************************/
490/*! no static exports found */
491/***/ (function(module, exports, __webpack_require__) {
492
493"use strict";
494eval("// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n\n\nvar R = typeof Reflect === 'object' ? Reflect : null\nvar ReflectApply = R && typeof R.apply === 'function'\n ? R.apply\n : function ReflectApply(target, receiver, args) {\n return Function.prototype.apply.call(target, receiver, args);\n }\n\nvar ReflectOwnKeys\nif (R && typeof R.ownKeys === 'function') {\n ReflectOwnKeys = R.ownKeys\n} else if (Object.getOwnPropertySymbols) {\n ReflectOwnKeys = function ReflectOwnKeys(target) {\n return Object.getOwnPropertyNames(target)\n .concat(Object.getOwnPropertySymbols(target));\n };\n} else {\n ReflectOwnKeys = function ReflectOwnKeys(target) {\n return Object.getOwnPropertyNames(target);\n };\n}\n\nfunction ProcessEmitWarning(warning) {\n if (console && console.warn) console.warn(warning);\n}\n\nvar NumberIsNaN = Number.isNaN || function NumberIsNaN(value) {\n return value !== value;\n}\n\nfunction EventEmitter() {\n EventEmitter.init.call(this);\n}\nmodule.exports = EventEmitter;\nmodule.exports.once = once;\n\n// Backwards-compat with node 0.10.x\nEventEmitter.EventEmitter = EventEmitter;\n\nEventEmitter.prototype._events = undefined;\nEventEmitter.prototype._eventsCount = 0;\nEventEmitter.prototype._maxListeners = undefined;\n\n// By default EventEmitters will print a warning if more than 10 listeners are\n// added to it. This is a useful default which helps finding memory leaks.\nvar defaultMaxListeners = 10;\n\nfunction checkListener(listener) {\n if (typeof listener !== 'function') {\n throw new TypeError('The \"listener\" argument must be of type Function. Received type ' + typeof listener);\n }\n}\n\nObject.defineProperty(EventEmitter, 'defaultMaxListeners', {\n enumerable: true,\n get: function() {\n return defaultMaxListeners;\n },\n set: function(arg) {\n if (typeof arg !== 'number' || arg < 0 || NumberIsNaN(arg)) {\n throw new RangeError('The value of \"defaultMaxListeners\" is out of range. It must be a non-negative number. Received ' + arg + '.');\n }\n defaultMaxListeners = arg;\n }\n});\n\nEventEmitter.init = function() {\n\n if (this._events === undefined ||\n this._events === Object.getPrototypeOf(this)._events) {\n this._events = Object.create(null);\n this._eventsCount = 0;\n }\n\n this._maxListeners = this._maxListeners || undefined;\n};\n\n// Obviously not all Emitters should be limited to 10. This function allows\n// that to be increased. Set to zero for unlimited.\nEventEmitter.prototype.setMaxListeners = function setMaxListeners(n) {\n if (typeof n !== 'number' || n < 0 || NumberIsNaN(n)) {\n throw new RangeError('The value of \"n\" is out of range. It must be a non-negative number. Received ' + n + '.');\n }\n this._maxListeners = n;\n return this;\n};\n\nfunction _getMaxListeners(that) {\n if (that._maxListeners === undefined)\n return EventEmitter.defaultMaxListeners;\n return that._maxListeners;\n}\n\nEventEmitter.prototype.getMaxListeners = function getMaxListeners() {\n return _getMaxListeners(this);\n};\n\nEventEmitter.prototype.emit = function emit(type) {\n var args = [];\n for (var i = 1; i < arguments.length; i++) args.push(arguments[i]);\n var doError = (type === 'error');\n\n var events = this._events;\n if (events !== undefined)\n doError = (doError && events.error === undefined);\n else if (!doError)\n return false;\n\n // If there is no 'error' event listener then throw.\n if (doError) {\n var er;\n if (args.length > 0)\n er = args[0];\n if (er instanceof Error) {\n // Note: The comments on the `throw` lines are intentional, they show\n // up in Node's output if this results in an unhandled exception.\n throw er; // Unhandled 'error' event\n }\n // At least give some kind of context to the user\n var err = new Error('Unhandled error.' + (er ? ' (' + er.message + ')' : ''));\n err.context = er;\n throw err; // Unhandled 'error' event\n }\n\n var handler = events[type];\n\n if (handler === undefined)\n return false;\n\n if (typeof handler === 'function') {\n ReflectApply(handler, this, args);\n } else {\n var len = handler.length;\n var listeners = arrayClone(handler, len);\n for (var i = 0; i < len; ++i)\n ReflectApply(listeners[i], this, args);\n }\n\n return true;\n};\n\nfunction _addListener(target, type, listener, prepend) {\n var m;\n var events;\n var existing;\n\n checkListener(listener);\n\n events = target._events;\n if (events === undefined) {\n events = target._events = Object.create(null);\n target._eventsCount = 0;\n } else {\n // To avoid recursion in the case that type === \"newListener\"! Before\n // adding it to the listeners, first emit \"newListener\".\n if (events.newListener !== undefined) {\n target.emit('newListener', type,\n listener.listener ? listener.listener : listener);\n\n // Re-assign `events` because a newListener handler could have caused the\n // this._events to be assigned to a new object\n events = target._events;\n }\n existing = events[type];\n }\n\n if (existing === undefined) {\n // Optimize the case of one listener. Don't need the extra array object.\n existing = events[type] = listener;\n ++target._eventsCount;\n } else {\n if (typeof existing === 'function') {\n // Adding the second element, need to change to array.\n existing = events[type] =\n prepend ? [listener, existing] : [existing, listener];\n // If we've already got an array, just append.\n } else if (prepend) {\n existing.unshift(listener);\n } else {\n existing.push(listener);\n }\n\n // Check for listener leak\n m = _getMaxListeners(target);\n if (m > 0 && existing.length > m && !existing.warned) {\n existing.warned = true;\n // No error code for this since it is a Warning\n // eslint-disable-next-line no-restricted-syntax\n var w = new Error('Possible EventEmitter memory leak detected. ' +\n existing.length + ' ' + String(type) + ' listeners ' +\n 'added. Use emitter.setMaxListeners() to ' +\n 'increase limit');\n w.name = 'MaxListenersExceededWarning';\n w.emitter = target;\n w.type = type;\n w.count = existing.length;\n ProcessEmitWarning(w);\n }\n }\n\n return target;\n}\n\nEventEmitter.prototype.addListener = function addListener(type, listener) {\n return _addListener(this, type, listener, false);\n};\n\nEventEmitter.prototype.on = EventEmitter.prototype.addListener;\n\nEventEmitter.prototype.prependListener =\n function prependListener(type, listener) {\n return _addListener(this, type, listener, true);\n };\n\nfunction onceWrapper() {\n if (!this.fired) {\n this.target.removeListener(this.type, this.wrapFn);\n this.fired = true;\n if (arguments.length === 0)\n return this.listener.call(this.target);\n return this.listener.apply(this.target, arguments);\n }\n}\n\nfunction _onceWrap(target, type, listener) {\n var state = { fired: false, wrapFn: undefined, target: target, type: type, listener: listener };\n var wrapped = onceWrapper.bind(state);\n wrapped.listener = listener;\n state.wrapFn = wrapped;\n return wrapped;\n}\n\nEventEmitter.prototype.once = function once(type, listener) {\n checkListener(listener);\n this.on(type, _onceWrap(this, type, listener));\n return this;\n};\n\nEventEmitter.prototype.prependOnceListener =\n function prependOnceListener(type, listener) {\n checkListener(listener);\n this.prependListener(type, _onceWrap(this, type, listener));\n return this;\n };\n\n// Emits a 'removeListener' event if and only if the listener was removed.\nEventEmitter.prototype.removeListener =\n function removeListener(type, listener) {\n var list, events, position, i, originalListener;\n\n checkListener(listener);\n\n events = this._events;\n if (events === undefined)\n return this;\n\n list = events[type];\n if (list === undefined)\n return this;\n\n if (list === listener || list.listener === listener) {\n if (--this._eventsCount === 0)\n this._events = Object.create(null);\n else {\n delete events[type];\n if (events.removeListener)\n this.emit('removeListener', type, list.listener || listener);\n }\n } else if (typeof list !== 'function') {\n position = -1;\n\n for (i = list.length - 1; i >= 0; i--) {\n if (list[i] === listener || list[i].listener === listener) {\n originalListener = list[i].listener;\n position = i;\n break;\n }\n }\n\n if (position < 0)\n return this;\n\n if (position === 0)\n list.shift();\n else {\n spliceOne(list, position);\n }\n\n if (list.length === 1)\n events[type] = list[0];\n\n if (events.removeListener !== undefined)\n this.emit('removeListener', type, originalListener || listener);\n }\n\n return this;\n };\n\nEventEmitter.prototype.off = EventEmitter.prototype.removeListener;\n\nEventEmitter.prototype.removeAllListeners =\n function removeAllListeners(type) {\n var listeners, events, i;\n\n events = this._events;\n if (events === undefined)\n return this;\n\n // not listening for removeListener, no need to emit\n if (events.removeListener === undefined) {\n if (arguments.length === 0) {\n this._events = Object.create(null);\n this._eventsCount = 0;\n } else if (events[type] !== undefined) {\n if (--this._eventsCount === 0)\n this._events = Object.create(null);\n else\n delete events[type];\n }\n return this;\n }\n\n // emit removeListener for all listeners on all events\n if (arguments.length === 0) {\n var keys = Object.keys(events);\n var key;\n for (i = 0; i < keys.length; ++i) {\n key = keys[i];\n if (key === 'removeListener') continue;\n this.removeAllListeners(key);\n }\n this.removeAllListeners('removeListener');\n this._events = Object.create(null);\n this._eventsCount = 0;\n return this;\n }\n\n listeners = events[type];\n\n if (typeof listeners === 'function') {\n this.removeListener(type, listeners);\n } else if (listeners !== undefined) {\n // LIFO order\n for (i = listeners.length - 1; i >= 0; i--) {\n this.removeListener(type, listeners[i]);\n }\n }\n\n return this;\n };\n\nfunction _listeners(target, type, unwrap) {\n var events = target._events;\n\n if (events === undefined)\n return [];\n\n var evlistener = events[type];\n if (evlistener === undefined)\n return [];\n\n if (typeof evlistener === 'function')\n return unwrap ? [evlistener.listener || evlistener] : [evlistener];\n\n return unwrap ?\n unwrapListeners(evlistener) : arrayClone(evlistener, evlistener.length);\n}\n\nEventEmitter.prototype.listeners = function listeners(type) {\n return _listeners(this, type, true);\n};\n\nEventEmitter.prototype.rawListeners = function rawListeners(type) {\n return _listeners(this, type, false);\n};\n\nEventEmitter.listenerCount = function(emitter, type) {\n if (typeof emitter.listenerCount === 'function') {\n return emitter.listenerCount(type);\n } else {\n return listenerCount.call(emitter, type);\n }\n};\n\nEventEmitter.prototype.listenerCount = listenerCount;\nfunction listenerCount(type) {\n var events = this._events;\n\n if (events !== undefined) {\n var evlistener = events[type];\n\n if (typeof evlistener === 'function') {\n return 1;\n } else if (evlistener !== undefined) {\n return evlistener.length;\n }\n }\n\n return 0;\n}\n\nEventEmitter.prototype.eventNames = function eventNames() {\n return this._eventsCount > 0 ? ReflectOwnKeys(this._events) : [];\n};\n\nfunction arrayClone(arr, n) {\n var copy = new Array(n);\n for (var i = 0; i < n; ++i)\n copy[i] = arr[i];\n return copy;\n}\n\nfunction spliceOne(list, index) {\n for (; index + 1 < list.length; index++)\n list[index] = list[index + 1];\n list.pop();\n}\n\nfunction unwrapListeners(arr) {\n var ret = new Array(arr.length);\n for (var i = 0; i < ret.length; ++i) {\n ret[i] = arr[i].listener || arr[i];\n }\n return ret;\n}\n\nfunction once(emitter, name) {\n return new Promise(function (resolve, reject) {\n function errorListener(err) {\n emitter.removeListener(name, resolver);\n reject(err);\n }\n\n function resolver() {\n if (typeof emitter.removeListener === 'function') {\n emitter.removeListener('error', errorListener);\n }\n resolve([].slice.call(arguments));\n };\n\n eventTargetAgnosticAddListener(emitter, name, resolver, { once: true });\n if (name !== 'error') {\n addErrorHandlerIfEventEmitter(emitter, errorListener, { once: true });\n }\n });\n}\n\nfunction addErrorHandlerIfEventEmitter(emitter, handler, flags) {\n if (typeof emitter.on === 'function') {\n eventTargetAgnosticAddListener(emitter, 'error', handler, flags);\n }\n}\n\nfunction eventTargetAgnosticAddListener(emitter, name, listener, flags) {\n if (typeof emitter.on === 'function') {\n if (flags.once) {\n emitter.once(name, listener);\n } else {\n emitter.on(name, listener);\n }\n } else if (typeof emitter.addEventListener === 'function') {\n // EventTarget does not have `error` event semantics like Node\n // EventEmitters, we do not listen for `error` events here.\n emitter.addEventListener(name, function wrapListener(arg) {\n // IE does not have builtin `{ once: true }` support so we\n // have to do it manually.\n if (flags.once) {\n emitter.removeEventListener(name, wrapListener);\n }\n listener(arg);\n });\n } else {\n throw new TypeError('The \"emitter\" argument must be of type EventEmitter. Received type ' + typeof emitter);\n }\n}\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/node-libs-browser/node_modules/events/events.js?");
495
496/***/ }),
497
498/***/ "./node_modules/node-libs-browser/node_modules/timers-browserify/main.js":
499/*!*******************************************************************************!*\
500 !*** ./node_modules/node-libs-browser/node_modules/timers-browserify/main.js ***!
501 \*******************************************************************************/
502/*! no static exports found */
503/***/ (function(module, exports, __webpack_require__) {
504
505eval("/* WEBPACK VAR INJECTION */(function(global) {var scope = (typeof global !== \"undefined\" && global) ||\n (typeof self !== \"undefined\" && self) ||\n window;\nvar apply = Function.prototype.apply;\n\n// DOM APIs, for completeness\n\nexports.setTimeout = function() {\n return new Timeout(apply.call(setTimeout, scope, arguments), clearTimeout);\n};\nexports.setInterval = function() {\n return new Timeout(apply.call(setInterval, scope, arguments), clearInterval);\n};\nexports.clearTimeout =\nexports.clearInterval = function(timeout) {\n if (timeout) {\n timeout.close();\n }\n};\n\nfunction Timeout(id, clearFn) {\n this._id = id;\n this._clearFn = clearFn;\n}\nTimeout.prototype.unref = Timeout.prototype.ref = function() {};\nTimeout.prototype.close = function() {\n this._clearFn.call(scope, this._id);\n};\n\n// Does not start the time, just sets up the members needed.\nexports.enroll = function(item, msecs) {\n clearTimeout(item._idleTimeoutId);\n item._idleTimeout = msecs;\n};\n\nexports.unenroll = function(item) {\n clearTimeout(item._idleTimeoutId);\n item._idleTimeout = -1;\n};\n\nexports._unrefActive = exports.active = function(item) {\n clearTimeout(item._idleTimeoutId);\n\n var msecs = item._idleTimeout;\n if (msecs >= 0) {\n item._idleTimeoutId = setTimeout(function onTimeout() {\n if (item._onTimeout)\n item._onTimeout();\n }, msecs);\n }\n};\n\n// setimmediate attaches itself to the global object\n__webpack_require__(/*! setimmediate */ \"./node_modules/setimmediate/setImmediate.js\");\n// On some exotic environments, it's not clear which object `setimmediate` was\n// able to install onto. Search each possibility in the same order as the\n// `setimmediate` library.\nexports.setImmediate = (typeof self !== \"undefined\" && self.setImmediate) ||\n (typeof global !== \"undefined\" && global.setImmediate) ||\n (this && this.setImmediate);\nexports.clearImmediate = (typeof self !== \"undefined\" && self.clearImmediate) ||\n (typeof global !== \"undefined\" && global.clearImmediate) ||\n (this && this.clearImmediate);\n\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../webpack/buildin/global.js */ \"./node_modules/webpack/buildin/global.js\")))\n\n//# sourceURL=webpack://GeoRaster/./node_modules/node-libs-browser/node_modules/timers-browserify/main.js?");
506
507/***/ }),
508
509/***/ "./node_modules/observable-fns/dist.esm/_scheduler.js":
510/*!************************************************************!*\
511 !*** ./node_modules/observable-fns/dist.esm/_scheduler.js ***!
512 \************************************************************/
513/*! exports provided: AsyncSerialScheduler */
514/***/ (function(module, __webpack_exports__, __webpack_require__) {
515
516"use strict";
517eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"AsyncSerialScheduler\", function() { return AsyncSerialScheduler; });\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nclass AsyncSerialScheduler {\n constructor(observer) {\n this._baseObserver = observer;\n this._pendingPromises = new Set();\n }\n complete() {\n Promise.all(this._pendingPromises)\n .then(() => this._baseObserver.complete())\n .catch(error => this._baseObserver.error(error));\n }\n error(error) {\n this._baseObserver.error(error);\n }\n schedule(task) {\n const prevPromisesCompletion = Promise.all(this._pendingPromises);\n const values = [];\n const next = (value) => values.push(value);\n const promise = Promise.resolve()\n .then(() => __awaiter(this, void 0, void 0, function* () {\n yield prevPromisesCompletion;\n yield task(next);\n this._pendingPromises.delete(promise);\n for (const value of values) {\n this._baseObserver.next(value);\n }\n }))\n .catch(error => {\n this._pendingPromises.delete(promise);\n this._baseObserver.error(error);\n });\n this._pendingPromises.add(promise);\n }\n}\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/observable-fns/dist.esm/_scheduler.js?");
518
519/***/ }),
520
521/***/ "./node_modules/observable-fns/dist.esm/_symbols.js":
522/*!**********************************************************!*\
523 !*** ./node_modules/observable-fns/dist.esm/_symbols.js ***!
524 \**********************************************************/
525/*! exports provided: hasSymbols, hasSymbol, getSymbol, registerObservableSymbol */
526/***/ (function(module, __webpack_exports__, __webpack_require__) {
527
528"use strict";
529eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"hasSymbols\", function() { return hasSymbols; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"hasSymbol\", function() { return hasSymbol; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getSymbol\", function() { return getSymbol; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"registerObservableSymbol\", function() { return registerObservableSymbol; });\nconst hasSymbols = () => typeof Symbol === \"function\";\nconst hasSymbol = (name) => hasSymbols() && Boolean(Symbol[name]);\nconst getSymbol = (name) => hasSymbol(name) ? Symbol[name] : \"@@\" + name;\nfunction registerObservableSymbol() {\n if (hasSymbols() && !hasSymbol(\"observable\")) {\n Symbol.observable = Symbol(\"observable\");\n }\n}\nif (!hasSymbol(\"asyncIterator\")) {\n Symbol.asyncIterator = Symbol.asyncIterator || Symbol.for(\"Symbol.asyncIterator\");\n}\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/observable-fns/dist.esm/_symbols.js?");
530
531/***/ }),
532
533/***/ "./node_modules/observable-fns/dist.esm/_util.js":
534/*!*******************************************************!*\
535 !*** ./node_modules/observable-fns/dist.esm/_util.js ***!
536 \*******************************************************/
537/*! exports provided: isAsyncIterator, isIterator */
538/***/ (function(module, __webpack_exports__, __webpack_require__) {
539
540"use strict";
541eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isAsyncIterator\", function() { return isAsyncIterator; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isIterator\", function() { return isIterator; });\n/* harmony import */ var _symbols__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./_symbols */ \"./node_modules/observable-fns/dist.esm/_symbols.js\");\n/// <reference lib=\"es2018\" />\n\nfunction isAsyncIterator(thing) {\n return thing && Object(_symbols__WEBPACK_IMPORTED_MODULE_0__[\"hasSymbol\"])(\"asyncIterator\") && thing[Symbol.asyncIterator];\n}\nfunction isIterator(thing) {\n return thing && Object(_symbols__WEBPACK_IMPORTED_MODULE_0__[\"hasSymbol\"])(\"iterator\") && thing[Symbol.iterator];\n}\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/observable-fns/dist.esm/_util.js?");
542
543/***/ }),
544
545/***/ "./node_modules/observable-fns/dist.esm/filter.js":
546/*!********************************************************!*\
547 !*** ./node_modules/observable-fns/dist.esm/filter.js ***!
548 \********************************************************/
549/*! exports provided: default */
550/***/ (function(module, __webpack_exports__, __webpack_require__) {
551
552"use strict";
553eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _scheduler__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./_scheduler */ \"./node_modules/observable-fns/dist.esm/_scheduler.js\");\n/* harmony import */ var _observable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./observable */ \"./node_modules/observable-fns/dist.esm/observable.js\");\n/* harmony import */ var _unsubscribe__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./unsubscribe */ \"./node_modules/observable-fns/dist.esm/unsubscribe.js\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\n\n\n\n/**\n * Filters the values emitted by another observable.\n * To be applied to an input observable using `pipe()`.\n */\nfunction filter(test) {\n return (observable) => {\n return new _observable__WEBPACK_IMPORTED_MODULE_1__[\"default\"](observer => {\n const scheduler = new _scheduler__WEBPACK_IMPORTED_MODULE_0__[\"AsyncSerialScheduler\"](observer);\n const subscription = observable.subscribe({\n complete() {\n scheduler.complete();\n },\n error(error) {\n scheduler.error(error);\n },\n next(input) {\n scheduler.schedule((next) => __awaiter(this, void 0, void 0, function* () {\n if (yield test(input)) {\n next(input);\n }\n }));\n }\n });\n return () => Object(_unsubscribe__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(subscription);\n });\n };\n}\n/* harmony default export */ __webpack_exports__[\"default\"] = (filter);\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/observable-fns/dist.esm/filter.js?");
554
555/***/ }),
556
557/***/ "./node_modules/observable-fns/dist.esm/flatMap.js":
558/*!*********************************************************!*\
559 !*** ./node_modules/observable-fns/dist.esm/flatMap.js ***!
560 \*********************************************************/
561/*! exports provided: default */
562/***/ (function(module, __webpack_exports__, __webpack_require__) {
563
564"use strict";
565eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _scheduler__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./_scheduler */ \"./node_modules/observable-fns/dist.esm/_scheduler.js\");\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./_util */ \"./node_modules/observable-fns/dist.esm/_util.js\");\n/* harmony import */ var _observable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./observable */ \"./node_modules/observable-fns/dist.esm/observable.js\");\n/* harmony import */ var _unsubscribe__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./unsubscribe */ \"./node_modules/observable-fns/dist.esm/unsubscribe.js\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __asyncValues = (undefined && undefined.__asyncValues) || function (o) {\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var m = o[Symbol.asyncIterator], i;\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\n};\n\n\n\n\n/**\n * Maps the values emitted by another observable. In contrast to `map()`\n * the `mapper` function returns an array of values that will be emitted\n * separately.\n * Use `flatMap()` to map input values to zero, one or multiple output\n * values. To be applied to an input observable using `pipe()`.\n */\nfunction flatMap(mapper) {\n return (observable) => {\n return new _observable__WEBPACK_IMPORTED_MODULE_2__[\"default\"](observer => {\n const scheduler = new _scheduler__WEBPACK_IMPORTED_MODULE_0__[\"AsyncSerialScheduler\"](observer);\n const subscription = observable.subscribe({\n complete() {\n scheduler.complete();\n },\n error(error) {\n scheduler.error(error);\n },\n next(input) {\n scheduler.schedule((next) => __awaiter(this, void 0, void 0, function* () {\n var e_1, _a;\n const mapped = yield mapper(input);\n if (Object(_util__WEBPACK_IMPORTED_MODULE_1__[\"isIterator\"])(mapped) || Object(_util__WEBPACK_IMPORTED_MODULE_1__[\"isAsyncIterator\"])(mapped)) {\n try {\n for (var mapped_1 = __asyncValues(mapped), mapped_1_1; mapped_1_1 = yield mapped_1.next(), !mapped_1_1.done;) {\n const element = mapped_1_1.value;\n next(element);\n }\n }\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\n finally {\n try {\n if (mapped_1_1 && !mapped_1_1.done && (_a = mapped_1.return)) yield _a.call(mapped_1);\n }\n finally { if (e_1) throw e_1.error; }\n }\n }\n else {\n mapped.map(output => next(output));\n }\n }));\n }\n });\n return () => Object(_unsubscribe__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(subscription);\n });\n };\n}\n/* harmony default export */ __webpack_exports__[\"default\"] = (flatMap);\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/observable-fns/dist.esm/flatMap.js?");
566
567/***/ }),
568
569/***/ "./node_modules/observable-fns/dist.esm/index.js":
570/*!*******************************************************!*\
571 !*** ./node_modules/observable-fns/dist.esm/index.js ***!
572 \*******************************************************/
573/*! exports provided: filter, flatMap, interval, map, merge, multicast, Observable, scan, Subject, unsubscribe */
574/***/ (function(module, __webpack_exports__, __webpack_require__) {
575
576"use strict";
577eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _filter__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./filter */ \"./node_modules/observable-fns/dist.esm/filter.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"filter\", function() { return _filter__WEBPACK_IMPORTED_MODULE_0__[\"default\"]; });\n\n/* harmony import */ var _flatMap__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./flatMap */ \"./node_modules/observable-fns/dist.esm/flatMap.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"flatMap\", function() { return _flatMap__WEBPACK_IMPORTED_MODULE_1__[\"default\"]; });\n\n/* harmony import */ var _interval__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./interval */ \"./node_modules/observable-fns/dist.esm/interval.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"interval\", function() { return _interval__WEBPACK_IMPORTED_MODULE_2__[\"default\"]; });\n\n/* harmony import */ var _map__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./map */ \"./node_modules/observable-fns/dist.esm/map.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"map\", function() { return _map__WEBPACK_IMPORTED_MODULE_3__[\"default\"]; });\n\n/* harmony import */ var _merge__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./merge */ \"./node_modules/observable-fns/dist.esm/merge.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"merge\", function() { return _merge__WEBPACK_IMPORTED_MODULE_4__[\"default\"]; });\n\n/* harmony import */ var _multicast__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./multicast */ \"./node_modules/observable-fns/dist.esm/multicast.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"multicast\", function() { return _multicast__WEBPACK_IMPORTED_MODULE_5__[\"default\"]; });\n\n/* harmony import */ var _observable__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./observable */ \"./node_modules/observable-fns/dist.esm/observable.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Observable\", function() { return _observable__WEBPACK_IMPORTED_MODULE_6__[\"default\"]; });\n\n/* harmony import */ var _scan__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./scan */ \"./node_modules/observable-fns/dist.esm/scan.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"scan\", function() { return _scan__WEBPACK_IMPORTED_MODULE_7__[\"default\"]; });\n\n/* harmony import */ var _subject__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./subject */ \"./node_modules/observable-fns/dist.esm/subject.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Subject\", function() { return _subject__WEBPACK_IMPORTED_MODULE_8__[\"default\"]; });\n\n/* harmony import */ var _unsubscribe__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./unsubscribe */ \"./node_modules/observable-fns/dist.esm/unsubscribe.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"unsubscribe\", function() { return _unsubscribe__WEBPACK_IMPORTED_MODULE_9__[\"default\"]; });\n\n\n\n\n\n\n\n\n\n\n\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/observable-fns/dist.esm/index.js?");
578
579/***/ }),
580
581/***/ "./node_modules/observable-fns/dist.esm/interval.js":
582/*!**********************************************************!*\
583 !*** ./node_modules/observable-fns/dist.esm/interval.js ***!
584 \**********************************************************/
585/*! exports provided: default */
586/***/ (function(module, __webpack_exports__, __webpack_require__) {
587
588"use strict";
589eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return interval; });\n/* harmony import */ var _observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./observable */ \"./node_modules/observable-fns/dist.esm/observable.js\");\n\n/**\n * Creates an observable that yields a new value every `period` milliseconds.\n * The first value emitted is 0, then 1, 2, etc. The first value is not emitted\n * immediately, but after the first interval.\n */\nfunction interval(period) {\n return new _observable__WEBPACK_IMPORTED_MODULE_0__[\"Observable\"](observer => {\n let counter = 0;\n const handle = setInterval(() => {\n observer.next(counter++);\n }, period);\n return () => clearInterval(handle);\n });\n}\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/observable-fns/dist.esm/interval.js?");
590
591/***/ }),
592
593/***/ "./node_modules/observable-fns/dist.esm/map.js":
594/*!*****************************************************!*\
595 !*** ./node_modules/observable-fns/dist.esm/map.js ***!
596 \*****************************************************/
597/*! exports provided: default */
598/***/ (function(module, __webpack_exports__, __webpack_require__) {
599
600"use strict";
601eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _scheduler__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./_scheduler */ \"./node_modules/observable-fns/dist.esm/_scheduler.js\");\n/* harmony import */ var _observable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./observable */ \"./node_modules/observable-fns/dist.esm/observable.js\");\n/* harmony import */ var _unsubscribe__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./unsubscribe */ \"./node_modules/observable-fns/dist.esm/unsubscribe.js\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\n\n\n\n/**\n * Maps the values emitted by another observable to different values.\n * To be applied to an input observable using `pipe()`.\n */\nfunction map(mapper) {\n return (observable) => {\n return new _observable__WEBPACK_IMPORTED_MODULE_1__[\"default\"](observer => {\n const scheduler = new _scheduler__WEBPACK_IMPORTED_MODULE_0__[\"AsyncSerialScheduler\"](observer);\n const subscription = observable.subscribe({\n complete() {\n scheduler.complete();\n },\n error(error) {\n scheduler.error(error);\n },\n next(input) {\n scheduler.schedule((next) => __awaiter(this, void 0, void 0, function* () {\n const mapped = yield mapper(input);\n next(mapped);\n }));\n }\n });\n return () => Object(_unsubscribe__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(subscription);\n });\n };\n}\n/* harmony default export */ __webpack_exports__[\"default\"] = (map);\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/observable-fns/dist.esm/map.js?");
602
603/***/ }),
604
605/***/ "./node_modules/observable-fns/dist.esm/merge.js":
606/*!*******************************************************!*\
607 !*** ./node_modules/observable-fns/dist.esm/merge.js ***!
608 \*******************************************************/
609/*! exports provided: default */
610/***/ (function(module, __webpack_exports__, __webpack_require__) {
611
612"use strict";
613eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./observable */ \"./node_modules/observable-fns/dist.esm/observable.js\");\n/* harmony import */ var _unsubscribe__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./unsubscribe */ \"./node_modules/observable-fns/dist.esm/unsubscribe.js\");\n\n\nfunction merge(...observables) {\n if (observables.length === 0) {\n return _observable__WEBPACK_IMPORTED_MODULE_0__[\"Observable\"].from([]);\n }\n return new _observable__WEBPACK_IMPORTED_MODULE_0__[\"Observable\"](observer => {\n let completed = 0;\n const subscriptions = observables.map(input => {\n return input.subscribe({\n error(error) {\n observer.error(error);\n unsubscribeAll();\n },\n next(value) {\n observer.next(value);\n },\n complete() {\n if (++completed === observables.length) {\n observer.complete();\n unsubscribeAll();\n }\n }\n });\n });\n const unsubscribeAll = () => {\n subscriptions.forEach(subscription => Object(_unsubscribe__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(subscription));\n };\n return unsubscribeAll;\n });\n}\n/* harmony default export */ __webpack_exports__[\"default\"] = (merge);\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/observable-fns/dist.esm/merge.js?");
614
615/***/ }),
616
617/***/ "./node_modules/observable-fns/dist.esm/multicast.js":
618/*!***********************************************************!*\
619 !*** ./node_modules/observable-fns/dist.esm/multicast.js ***!
620 \***********************************************************/
621/*! exports provided: default */
622/***/ (function(module, __webpack_exports__, __webpack_require__) {
623
624"use strict";
625eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./observable */ \"./node_modules/observable-fns/dist.esm/observable.js\");\n/* harmony import */ var _subject__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./subject */ \"./node_modules/observable-fns/dist.esm/subject.js\");\n/* harmony import */ var _unsubscribe__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./unsubscribe */ \"./node_modules/observable-fns/dist.esm/unsubscribe.js\");\n\n\n\n// TODO: Subject already creates additional observables \"under the hood\",\n// now we introduce even more. A true native MulticastObservable\n// would be preferable.\n/**\n * Takes a \"cold\" observable and returns a wrapping \"hot\" observable that\n * proxies the input observable's values and errors.\n *\n * An observable is called \"cold\" when its initialization function is run\n * for each new subscriber. This is how observable-fns's `Observable`\n * implementation works.\n *\n * A hot observable is an observable where new subscribers subscribe to\n * the upcoming values of an already-initialiazed observable.\n *\n * The multicast observable will lazily subscribe to the source observable\n * once it has its first own subscriber and will unsubscribe from the\n * source observable when its last own subscriber unsubscribed.\n */\nfunction multicast(coldObservable) {\n const subject = new _subject__WEBPACK_IMPORTED_MODULE_1__[\"default\"]();\n let sourceSubscription;\n let subscriberCount = 0;\n return new _observable__WEBPACK_IMPORTED_MODULE_0__[\"default\"](observer => {\n // Init source subscription lazily\n if (!sourceSubscription) {\n sourceSubscription = coldObservable.subscribe(subject);\n }\n // Pipe all events from `subject` into this observable\n const subscription = subject.subscribe(observer);\n subscriberCount++;\n return () => {\n subscriberCount--;\n subscription.unsubscribe();\n // Close source subscription once last subscriber has unsubscribed\n if (subscriberCount === 0) {\n Object(_unsubscribe__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(sourceSubscription);\n sourceSubscription = undefined;\n }\n };\n });\n}\n/* harmony default export */ __webpack_exports__[\"default\"] = (multicast);\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/observable-fns/dist.esm/multicast.js?");
626
627/***/ }),
628
629/***/ "./node_modules/observable-fns/dist.esm/observable.js":
630/*!************************************************************!*\
631 !*** ./node_modules/observable-fns/dist.esm/observable.js ***!
632 \************************************************************/
633/*! exports provided: Subscription, SubscriptionObserver, Observable, default */
634/***/ (function(module, __webpack_exports__, __webpack_require__) {
635
636"use strict";
637eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"Subscription\", function() { return Subscription; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"SubscriptionObserver\", function() { return SubscriptionObserver; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"Observable\", function() { return Observable; });\n/* harmony import */ var _symbols__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./symbols */ \"./node_modules/observable-fns/dist.esm/symbols.js\");\n/* harmony import */ var _symbols__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./_symbols */ \"./node_modules/observable-fns/dist.esm/_symbols.js\");\n/**\n * Based on <https://raw.githubusercontent.com/zenparsing/zen-observable/master/src/Observable.js>\n * At commit: f63849a8c60af5d514efc8e9d6138d8273c49ad6\n */\n\n\nconst SymbolIterator = Object(_symbols__WEBPACK_IMPORTED_MODULE_1__[\"getSymbol\"])(\"iterator\");\nconst SymbolObservable = Object(_symbols__WEBPACK_IMPORTED_MODULE_1__[\"getSymbol\"])(\"observable\");\nconst SymbolSpecies = Object(_symbols__WEBPACK_IMPORTED_MODULE_1__[\"getSymbol\"])(\"species\");\n// === Abstract Operations ===\nfunction getMethod(obj, key) {\n const value = obj[key];\n if (value == null) {\n return undefined;\n }\n if (typeof value !== \"function\") {\n throw new TypeError(value + \" is not a function\");\n }\n return value;\n}\nfunction getSpecies(obj) {\n let ctor = obj.constructor;\n if (ctor !== undefined) {\n ctor = ctor[SymbolSpecies];\n if (ctor === null) {\n ctor = undefined;\n }\n }\n return ctor !== undefined ? ctor : Observable;\n}\nfunction isObservable(x) {\n return x instanceof Observable; // SPEC: Brand check\n}\nfunction hostReportError(error) {\n if (hostReportError.log) {\n hostReportError.log(error);\n }\n else {\n setTimeout(() => { throw error; }, 0);\n }\n}\nfunction enqueue(fn) {\n Promise.resolve().then(() => {\n try {\n fn();\n }\n catch (e) {\n hostReportError(e);\n }\n });\n}\nfunction cleanupSubscription(subscription) {\n const cleanup = subscription._cleanup;\n if (cleanup === undefined) {\n return;\n }\n subscription._cleanup = undefined;\n if (!cleanup) {\n return;\n }\n try {\n if (typeof cleanup === \"function\") {\n cleanup();\n }\n else {\n const unsubscribe = getMethod(cleanup, \"unsubscribe\");\n if (unsubscribe) {\n unsubscribe.call(cleanup);\n }\n }\n }\n catch (e) {\n hostReportError(e);\n }\n}\nfunction closeSubscription(subscription) {\n subscription._observer = undefined;\n subscription._queue = undefined;\n subscription._state = \"closed\";\n}\nfunction flushSubscription(subscription) {\n const queue = subscription._queue;\n if (!queue) {\n return;\n }\n subscription._queue = undefined;\n subscription._state = \"ready\";\n for (const item of queue) {\n notifySubscription(subscription, item.type, item.value);\n if (subscription._state === \"closed\") {\n break;\n }\n }\n}\nfunction notifySubscription(subscription, type, value) {\n subscription._state = \"running\";\n const observer = subscription._observer;\n try {\n const m = observer ? getMethod(observer, type) : undefined;\n switch (type) {\n case \"next\":\n if (m)\n m.call(observer, value);\n break;\n case \"error\":\n closeSubscription(subscription);\n if (m)\n m.call(observer, value);\n else\n throw value;\n break;\n case \"complete\":\n closeSubscription(subscription);\n if (m)\n m.call(observer);\n break;\n }\n }\n catch (e) {\n hostReportError(e);\n }\n if (subscription._state === \"closed\") {\n cleanupSubscription(subscription);\n }\n else if (subscription._state === \"running\") {\n subscription._state = \"ready\";\n }\n}\nfunction onNotify(subscription, type, value) {\n if (subscription._state === \"closed\") {\n return;\n }\n if (subscription._state === \"buffering\") {\n subscription._queue = subscription._queue || [];\n subscription._queue.push({ type, value });\n return;\n }\n if (subscription._state !== \"ready\") {\n subscription._state = \"buffering\";\n subscription._queue = [{ type, value }];\n enqueue(() => flushSubscription(subscription));\n return;\n }\n notifySubscription(subscription, type, value);\n}\nclass Subscription {\n constructor(observer, subscriber) {\n // ASSERT: observer is an object\n // ASSERT: subscriber is callable\n this._cleanup = undefined;\n this._observer = observer;\n this._queue = undefined;\n this._state = \"initializing\";\n const subscriptionObserver = new SubscriptionObserver(this);\n try {\n this._cleanup = subscriber.call(undefined, subscriptionObserver);\n }\n catch (e) {\n subscriptionObserver.error(e);\n }\n if (this._state === \"initializing\") {\n this._state = \"ready\";\n }\n }\n get closed() {\n return this._state === \"closed\";\n }\n unsubscribe() {\n if (this._state !== \"closed\") {\n closeSubscription(this);\n cleanupSubscription(this);\n }\n }\n}\nclass SubscriptionObserver {\n constructor(subscription) { this._subscription = subscription; }\n get closed() { return this._subscription._state === \"closed\"; }\n next(value) { onNotify(this._subscription, \"next\", value); }\n error(value) { onNotify(this._subscription, \"error\", value); }\n complete() { onNotify(this._subscription, \"complete\"); }\n}\n/**\n * The basic Observable class. This primitive is used to wrap asynchronous\n * data streams in a common standardized data type that is interoperable\n * between libraries and can be composed to represent more complex processes.\n */\nclass Observable {\n constructor(subscriber) {\n if (!(this instanceof Observable)) {\n throw new TypeError(\"Observable cannot be called as a function\");\n }\n if (typeof subscriber !== \"function\") {\n throw new TypeError(\"Observable initializer must be a function\");\n }\n this._subscriber = subscriber;\n }\n subscribe(nextOrObserver, onError, onComplete) {\n if (typeof nextOrObserver !== \"object\" || nextOrObserver === null) {\n nextOrObserver = {\n next: nextOrObserver,\n error: onError,\n complete: onComplete\n };\n }\n return new Subscription(nextOrObserver, this._subscriber);\n }\n pipe(first, ...mappers) {\n // tslint:disable-next-line no-this-assignment\n let intermediate = this;\n for (const mapper of [first, ...mappers]) {\n intermediate = mapper(intermediate);\n }\n return intermediate;\n }\n tap(nextOrObserver, onError, onComplete) {\n const tapObserver = typeof nextOrObserver !== \"object\" || nextOrObserver === null\n ? {\n next: nextOrObserver,\n error: onError,\n complete: onComplete\n }\n : nextOrObserver;\n return new Observable(observer => {\n return this.subscribe({\n next(value) {\n tapObserver.next && tapObserver.next(value);\n observer.next(value);\n },\n error(error) {\n tapObserver.error && tapObserver.error(error);\n observer.error(error);\n },\n complete() {\n tapObserver.complete && tapObserver.complete();\n observer.complete();\n },\n start(subscription) {\n tapObserver.start && tapObserver.start(subscription);\n }\n });\n });\n }\n forEach(fn) {\n return new Promise((resolve, reject) => {\n if (typeof fn !== \"function\") {\n reject(new TypeError(fn + \" is not a function\"));\n return;\n }\n function done() {\n subscription.unsubscribe();\n resolve(undefined);\n }\n const subscription = this.subscribe({\n next(value) {\n try {\n fn(value, done);\n }\n catch (e) {\n reject(e);\n subscription.unsubscribe();\n }\n },\n error(error) {\n reject(error);\n },\n complete() {\n resolve(undefined);\n }\n });\n });\n }\n map(fn) {\n if (typeof fn !== \"function\") {\n throw new TypeError(fn + \" is not a function\");\n }\n const C = getSpecies(this);\n return new C(observer => this.subscribe({\n next(value) {\n let propagatedValue = value;\n try {\n propagatedValue = fn(value);\n }\n catch (e) {\n return observer.error(e);\n }\n observer.next(propagatedValue);\n },\n error(e) { observer.error(e); },\n complete() { observer.complete(); },\n }));\n }\n filter(fn) {\n if (typeof fn !== \"function\") {\n throw new TypeError(fn + \" is not a function\");\n }\n const C = getSpecies(this);\n return new C(observer => this.subscribe({\n next(value) {\n try {\n if (!fn(value))\n return;\n }\n catch (e) {\n return observer.error(e);\n }\n observer.next(value);\n },\n error(e) { observer.error(e); },\n complete() { observer.complete(); },\n }));\n }\n reduce(fn, seed) {\n if (typeof fn !== \"function\") {\n throw new TypeError(fn + \" is not a function\");\n }\n const C = getSpecies(this);\n const hasSeed = arguments.length > 1;\n let hasValue = false;\n let acc = seed;\n return new C(observer => this.subscribe({\n next(value) {\n const first = !hasValue;\n hasValue = true;\n if (!first || hasSeed) {\n try {\n acc = fn(acc, value);\n }\n catch (e) {\n return observer.error(e);\n }\n }\n else {\n acc = value;\n }\n },\n error(e) { observer.error(e); },\n complete() {\n if (!hasValue && !hasSeed) {\n return observer.error(new TypeError(\"Cannot reduce an empty sequence\"));\n }\n observer.next(acc);\n observer.complete();\n },\n }));\n }\n concat(...sources) {\n const C = getSpecies(this);\n return new C(observer => {\n let subscription;\n let index = 0;\n function startNext(next) {\n subscription = next.subscribe({\n next(v) { observer.next(v); },\n error(e) { observer.error(e); },\n complete() {\n if (index === sources.length) {\n subscription = undefined;\n observer.complete();\n }\n else {\n startNext(C.from(sources[index++]));\n }\n },\n });\n }\n startNext(this);\n return () => {\n if (subscription) {\n subscription.unsubscribe();\n subscription = undefined;\n }\n };\n });\n }\n flatMap(fn) {\n if (typeof fn !== \"function\") {\n throw new TypeError(fn + \" is not a function\");\n }\n const C = getSpecies(this);\n return new C(observer => {\n const subscriptions = [];\n const outer = this.subscribe({\n next(value) {\n let normalizedValue;\n if (fn) {\n try {\n normalizedValue = fn(value);\n }\n catch (e) {\n return observer.error(e);\n }\n }\n else {\n normalizedValue = value;\n }\n const inner = C.from(normalizedValue).subscribe({\n next(innerValue) { observer.next(innerValue); },\n error(e) { observer.error(e); },\n complete() {\n const i = subscriptions.indexOf(inner);\n if (i >= 0)\n subscriptions.splice(i, 1);\n completeIfDone();\n },\n });\n subscriptions.push(inner);\n },\n error(e) { observer.error(e); },\n complete() { completeIfDone(); },\n });\n function completeIfDone() {\n if (outer.closed && subscriptions.length === 0) {\n observer.complete();\n }\n }\n return () => {\n subscriptions.forEach(s => s.unsubscribe());\n outer.unsubscribe();\n };\n });\n }\n [(Symbol.observable, SymbolObservable)]() { return this; }\n static from(x) {\n const C = (typeof this === \"function\" ? this : Observable);\n if (x == null) {\n throw new TypeError(x + \" is not an object\");\n }\n const observableMethod = getMethod(x, SymbolObservable);\n if (observableMethod) {\n const observable = observableMethod.call(x);\n if (Object(observable) !== observable) {\n throw new TypeError(observable + \" is not an object\");\n }\n if (isObservable(observable) && observable.constructor === C) {\n return observable;\n }\n return new C(observer => observable.subscribe(observer));\n }\n if (Object(_symbols__WEBPACK_IMPORTED_MODULE_1__[\"hasSymbol\"])(\"iterator\")) {\n const iteratorMethod = getMethod(x, SymbolIterator);\n if (iteratorMethod) {\n return new C(observer => {\n enqueue(() => {\n if (observer.closed)\n return;\n for (const item of iteratorMethod.call(x)) {\n observer.next(item);\n if (observer.closed)\n return;\n }\n observer.complete();\n });\n });\n }\n }\n if (Array.isArray(x)) {\n return new C(observer => {\n enqueue(() => {\n if (observer.closed)\n return;\n for (const item of x) {\n observer.next(item);\n if (observer.closed)\n return;\n }\n observer.complete();\n });\n });\n }\n throw new TypeError(x + \" is not observable\");\n }\n static of(...items) {\n const C = (typeof this === \"function\" ? this : Observable);\n return new C(observer => {\n enqueue(() => {\n if (observer.closed)\n return;\n for (const item of items) {\n observer.next(item);\n if (observer.closed)\n return;\n }\n observer.complete();\n });\n });\n }\n static get [SymbolSpecies]() { return this; }\n}\nif (Object(_symbols__WEBPACK_IMPORTED_MODULE_1__[\"hasSymbols\"])()) {\n Object.defineProperty(Observable, Symbol(\"extensions\"), {\n value: {\n symbol: SymbolObservable,\n hostReportError,\n },\n configurable: true,\n });\n}\n/* harmony default export */ __webpack_exports__[\"default\"] = (Observable);\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/observable-fns/dist.esm/observable.js?");
638
639/***/ }),
640
641/***/ "./node_modules/observable-fns/dist.esm/scan.js":
642/*!******************************************************!*\
643 !*** ./node_modules/observable-fns/dist.esm/scan.js ***!
644 \******************************************************/
645/*! exports provided: default */
646/***/ (function(module, __webpack_exports__, __webpack_require__) {
647
648"use strict";
649eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _scheduler__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./_scheduler */ \"./node_modules/observable-fns/dist.esm/_scheduler.js\");\n/* harmony import */ var _observable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./observable */ \"./node_modules/observable-fns/dist.esm/observable.js\");\n/* harmony import */ var _unsubscribe__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./unsubscribe */ \"./node_modules/observable-fns/dist.esm/unsubscribe.js\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\n\n\n\nfunction scan(accumulator, seed) {\n return (observable) => {\n return new _observable__WEBPACK_IMPORTED_MODULE_1__[\"default\"](observer => {\n let accumulated;\n let index = 0;\n const scheduler = new _scheduler__WEBPACK_IMPORTED_MODULE_0__[\"AsyncSerialScheduler\"](observer);\n const subscription = observable.subscribe({\n complete() {\n scheduler.complete();\n },\n error(error) {\n scheduler.error(error);\n },\n next(value) {\n scheduler.schedule((next) => __awaiter(this, void 0, void 0, function* () {\n const prevAcc = index === 0\n ? (typeof seed === \"undefined\" ? value : seed)\n : accumulated;\n accumulated = yield accumulator(prevAcc, value, index++);\n next(accumulated);\n }));\n }\n });\n return () => Object(_unsubscribe__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(subscription);\n });\n };\n}\n/* harmony default export */ __webpack_exports__[\"default\"] = (scan);\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/observable-fns/dist.esm/scan.js?");
650
651/***/ }),
652
653/***/ "./node_modules/observable-fns/dist.esm/subject.js":
654/*!*********************************************************!*\
655 !*** ./node_modules/observable-fns/dist.esm/subject.js ***!
656 \*********************************************************/
657/*! exports provided: default */
658/***/ (function(module, __webpack_exports__, __webpack_require__) {
659
660"use strict";
661eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./observable */ \"./node_modules/observable-fns/dist.esm/observable.js\");\n\n// TODO: This observer iteration approach looks inelegant and expensive\n// Idea: Come up with super class for Subscription that contains the\n// notify*, ... methods and use it here\n/**\n * A subject is a \"hot\" observable (see `multicast`) that has its observer\n * methods (`.next(value)`, `.error(error)`, `.complete()`) exposed.\n *\n * Be careful, though! With great power comes great responsibility. Only use\n * the `Subject` when you really need to trigger updates \"from the outside\" and\n * try to keep the code that can access it to a minimum. Return\n * `Observable.from(mySubject)` to not allow other code to mutate.\n */\nclass MulticastSubject extends _observable__WEBPACK_IMPORTED_MODULE_0__[\"default\"] {\n constructor() {\n super(observer => {\n this._observers.add(observer);\n return () => this._observers.delete(observer);\n });\n this._observers = new Set();\n }\n next(value) {\n for (const observer of this._observers) {\n observer.next(value);\n }\n }\n error(error) {\n for (const observer of this._observers) {\n observer.error(error);\n }\n }\n complete() {\n for (const observer of this._observers) {\n observer.complete();\n }\n }\n}\n/* harmony default export */ __webpack_exports__[\"default\"] = (MulticastSubject);\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/observable-fns/dist.esm/subject.js?");
662
663/***/ }),
664
665/***/ "./node_modules/observable-fns/dist.esm/symbols.js":
666/*!*********************************************************!*\
667 !*** ./node_modules/observable-fns/dist.esm/symbols.js ***!
668 \*********************************************************/
669/*! no exports provided */
670/***/ (function(module, __webpack_exports__, __webpack_require__) {
671
672"use strict";
673eval("__webpack_require__.r(__webpack_exports__);\n\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/observable-fns/dist.esm/symbols.js?");
674
675/***/ }),
676
677/***/ "./node_modules/observable-fns/dist.esm/unsubscribe.js":
678/*!*************************************************************!*\
679 !*** ./node_modules/observable-fns/dist.esm/unsubscribe.js ***!
680 \*************************************************************/
681/*! exports provided: default */
682/***/ (function(module, __webpack_exports__, __webpack_require__) {
683
684"use strict";
685eval("__webpack_require__.r(__webpack_exports__);\n/**\n * Unsubscribe from a subscription returned by something that looks like an observable,\n * but is not necessarily our observable implementation.\n */\nfunction unsubscribe(subscription) {\n if (typeof subscription === \"function\") {\n subscription();\n }\n else if (subscription && typeof subscription.unsubscribe === \"function\") {\n subscription.unsubscribe();\n }\n}\n/* harmony default export */ __webpack_exports__[\"default\"] = (unsubscribe);\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/observable-fns/dist.esm/unsubscribe.js?");
686
687/***/ }),
688
689/***/ "./node_modules/pako/lib/inflate.js":
690/*!******************************************!*\
691 !*** ./node_modules/pako/lib/inflate.js ***!
692 \******************************************/
693/*! no static exports found */
694/***/ (function(module, exports, __webpack_require__) {
695
696"use strict";
697eval("\n\n\nvar zlib_inflate = __webpack_require__(/*! ./zlib/inflate */ \"./node_modules/pako/lib/zlib/inflate.js\");\nvar utils = __webpack_require__(/*! ./utils/common */ \"./node_modules/pako/lib/utils/common.js\");\nvar strings = __webpack_require__(/*! ./utils/strings */ \"./node_modules/pako/lib/utils/strings.js\");\nvar c = __webpack_require__(/*! ./zlib/constants */ \"./node_modules/pako/lib/zlib/constants.js\");\nvar msg = __webpack_require__(/*! ./zlib/messages */ \"./node_modules/pako/lib/zlib/messages.js\");\nvar ZStream = __webpack_require__(/*! ./zlib/zstream */ \"./node_modules/pako/lib/zlib/zstream.js\");\nvar GZheader = __webpack_require__(/*! ./zlib/gzheader */ \"./node_modules/pako/lib/zlib/gzheader.js\");\n\nvar toString = Object.prototype.toString;\n\n/**\n * class Inflate\n *\n * Generic JS-style wrapper for zlib calls. If you don't need\n * streaming behaviour - use more simple functions: [[inflate]]\n * and [[inflateRaw]].\n **/\n\n/* internal\n * inflate.chunks -> Array\n *\n * Chunks of output data, if [[Inflate#onData]] not overridden.\n **/\n\n/**\n * Inflate.result -> Uint8Array|Array|String\n *\n * Uncompressed result, generated by default [[Inflate#onData]]\n * and [[Inflate#onEnd]] handlers. Filled after you push last chunk\n * (call [[Inflate#push]] with `Z_FINISH` / `true` param) or if you\n * push a chunk with explicit flush (call [[Inflate#push]] with\n * `Z_SYNC_FLUSH` param).\n **/\n\n/**\n * Inflate.err -> Number\n *\n * Error code after inflate finished. 0 (Z_OK) on success.\n * Should be checked if broken data possible.\n **/\n\n/**\n * Inflate.msg -> String\n *\n * Error message, if [[Inflate.err]] != 0\n **/\n\n\n/**\n * new Inflate(options)\n * - options (Object): zlib inflate options.\n *\n * Creates new inflator instance with specified params. Throws exception\n * on bad params. Supported options:\n *\n * - `windowBits`\n * - `dictionary`\n *\n * [http://zlib.net/manual.html#Advanced](http://zlib.net/manual.html#Advanced)\n * for more information on these.\n *\n * Additional options, for internal needs:\n *\n * - `chunkSize` - size of generated data chunks (16K by default)\n * - `raw` (Boolean) - do raw inflate\n * - `to` (String) - if equal to 'string', then result will be converted\n * from utf8 to utf16 (javascript) string. When string output requested,\n * chunk length can differ from `chunkSize`, depending on content.\n *\n * By default, when no options set, autodetect deflate/gzip data format via\n * wrapper header.\n *\n * ##### Example:\n *\n * ```javascript\n * var pako = require('pako')\n * , chunk1 = Uint8Array([1,2,3,4,5,6,7,8,9])\n * , chunk2 = Uint8Array([10,11,12,13,14,15,16,17,18,19]);\n *\n * var inflate = new pako.Inflate({ level: 3});\n *\n * inflate.push(chunk1, false);\n * inflate.push(chunk2, true); // true -> last chunk\n *\n * if (inflate.err) { throw new Error(inflate.err); }\n *\n * console.log(inflate.result);\n * ```\n **/\nfunction Inflate(options) {\n if (!(this instanceof Inflate)) return new Inflate(options);\n\n this.options = utils.assign({\n chunkSize: 16384,\n windowBits: 0,\n to: ''\n }, options || {});\n\n var opt = this.options;\n\n // Force window size for `raw` data, if not set directly,\n // because we have no header for autodetect.\n if (opt.raw && (opt.windowBits >= 0) && (opt.windowBits < 16)) {\n opt.windowBits = -opt.windowBits;\n if (opt.windowBits === 0) { opt.windowBits = -15; }\n }\n\n // If `windowBits` not defined (and mode not raw) - set autodetect flag for gzip/deflate\n if ((opt.windowBits >= 0) && (opt.windowBits < 16) &&\n !(options && options.windowBits)) {\n opt.windowBits += 32;\n }\n\n // Gzip header has no info about windows size, we can do autodetect only\n // for deflate. So, if window size not set, force it to max when gzip possible\n if ((opt.windowBits > 15) && (opt.windowBits < 48)) {\n // bit 3 (16) -> gzipped data\n // bit 4 (32) -> autodetect gzip/deflate\n if ((opt.windowBits & 15) === 0) {\n opt.windowBits |= 15;\n }\n }\n\n this.err = 0; // error code, if happens (0 = Z_OK)\n this.msg = ''; // error message\n this.ended = false; // used to avoid multiple onEnd() calls\n this.chunks = []; // chunks of compressed data\n\n this.strm = new ZStream();\n this.strm.avail_out = 0;\n\n var status = zlib_inflate.inflateInit2(\n this.strm,\n opt.windowBits\n );\n\n if (status !== c.Z_OK) {\n throw new Error(msg[status]);\n }\n\n this.header = new GZheader();\n\n zlib_inflate.inflateGetHeader(this.strm, this.header);\n\n // Setup dictionary\n if (opt.dictionary) {\n // Convert data if needed\n if (typeof opt.dictionary === 'string') {\n opt.dictionary = strings.string2buf(opt.dictionary);\n } else if (toString.call(opt.dictionary) === '[object ArrayBuffer]') {\n opt.dictionary = new Uint8Array(opt.dictionary);\n }\n if (opt.raw) { //In raw mode we need to set the dictionary early\n status = zlib_inflate.inflateSetDictionary(this.strm, opt.dictionary);\n if (status !== c.Z_OK) {\n throw new Error(msg[status]);\n }\n }\n }\n}\n\n/**\n * Inflate#push(data[, mode]) -> Boolean\n * - data (Uint8Array|Array|ArrayBuffer|String): input data\n * - mode (Number|Boolean): 0..6 for corresponding Z_NO_FLUSH..Z_TREE modes.\n * See constants. Skipped or `false` means Z_NO_FLUSH, `true` means Z_FINISH.\n *\n * Sends input data to inflate pipe, generating [[Inflate#onData]] calls with\n * new output chunks. Returns `true` on success. The last data block must have\n * mode Z_FINISH (or `true`). That will flush internal pending buffers and call\n * [[Inflate#onEnd]]. For interim explicit flushes (without ending the stream) you\n * can use mode Z_SYNC_FLUSH, keeping the decompression context.\n *\n * On fail call [[Inflate#onEnd]] with error code and return false.\n *\n * We strongly recommend to use `Uint8Array` on input for best speed (output\n * format is detected automatically). Also, don't skip last param and always\n * use the same type in your code (boolean or number). That will improve JS speed.\n *\n * For regular `Array`-s make sure all elements are [0..255].\n *\n * ##### Example\n *\n * ```javascript\n * push(chunk, false); // push one of data chunks\n * ...\n * push(chunk, true); // push last chunk\n * ```\n **/\nInflate.prototype.push = function (data, mode) {\n var strm = this.strm;\n var chunkSize = this.options.chunkSize;\n var dictionary = this.options.dictionary;\n var status, _mode;\n var next_out_utf8, tail, utf8str;\n\n // Flag to properly process Z_BUF_ERROR on testing inflate call\n // when we check that all output data was flushed.\n var allowBufError = false;\n\n if (this.ended) { return false; }\n _mode = (mode === ~~mode) ? mode : ((mode === true) ? c.Z_FINISH : c.Z_NO_FLUSH);\n\n // Convert data if needed\n if (typeof data === 'string') {\n // Only binary strings can be decompressed on practice\n strm.input = strings.binstring2buf(data);\n } else if (toString.call(data) === '[object ArrayBuffer]') {\n strm.input = new Uint8Array(data);\n } else {\n strm.input = data;\n }\n\n strm.next_in = 0;\n strm.avail_in = strm.input.length;\n\n do {\n if (strm.avail_out === 0) {\n strm.output = new utils.Buf8(chunkSize);\n strm.next_out = 0;\n strm.avail_out = chunkSize;\n }\n\n status = zlib_inflate.inflate(strm, c.Z_NO_FLUSH); /* no bad return value */\n\n if (status === c.Z_NEED_DICT && dictionary) {\n status = zlib_inflate.inflateSetDictionary(this.strm, dictionary);\n }\n\n if (status === c.Z_BUF_ERROR && allowBufError === true) {\n status = c.Z_OK;\n allowBufError = false;\n }\n\n if (status !== c.Z_STREAM_END && status !== c.Z_OK) {\n this.onEnd(status);\n this.ended = true;\n return false;\n }\n\n if (strm.next_out) {\n if (strm.avail_out === 0 || status === c.Z_STREAM_END || (strm.avail_in === 0 && (_mode === c.Z_FINISH || _mode === c.Z_SYNC_FLUSH))) {\n\n if (this.options.to === 'string') {\n\n next_out_utf8 = strings.utf8border(strm.output, strm.next_out);\n\n tail = strm.next_out - next_out_utf8;\n utf8str = strings.buf2string(strm.output, next_out_utf8);\n\n // move tail\n strm.next_out = tail;\n strm.avail_out = chunkSize - tail;\n if (tail) { utils.arraySet(strm.output, strm.output, next_out_utf8, tail, 0); }\n\n this.onData(utf8str);\n\n } else {\n this.onData(utils.shrinkBuf(strm.output, strm.next_out));\n }\n }\n }\n\n // When no more input data, we should check that internal inflate buffers\n // are flushed. The only way to do it when avail_out = 0 - run one more\n // inflate pass. But if output data not exists, inflate return Z_BUF_ERROR.\n // Here we set flag to process this error properly.\n //\n // NOTE. Deflate does not return error in this case and does not needs such\n // logic.\n if (strm.avail_in === 0 && strm.avail_out === 0) {\n allowBufError = true;\n }\n\n } while ((strm.avail_in > 0 || strm.avail_out === 0) && status !== c.Z_STREAM_END);\n\n if (status === c.Z_STREAM_END) {\n _mode = c.Z_FINISH;\n }\n\n // Finalize on the last chunk.\n if (_mode === c.Z_FINISH) {\n status = zlib_inflate.inflateEnd(this.strm);\n this.onEnd(status);\n this.ended = true;\n return status === c.Z_OK;\n }\n\n // callback interim results if Z_SYNC_FLUSH.\n if (_mode === c.Z_SYNC_FLUSH) {\n this.onEnd(c.Z_OK);\n strm.avail_out = 0;\n return true;\n }\n\n return true;\n};\n\n\n/**\n * Inflate#onData(chunk) -> Void\n * - chunk (Uint8Array|Array|String): output data. Type of array depends\n * on js engine support. When string output requested, each chunk\n * will be string.\n *\n * By default, stores data blocks in `chunks[]` property and glue\n * those in `onEnd`. Override this handler, if you need another behaviour.\n **/\nInflate.prototype.onData = function (chunk) {\n this.chunks.push(chunk);\n};\n\n\n/**\n * Inflate#onEnd(status) -> Void\n * - status (Number): inflate status. 0 (Z_OK) on success,\n * other if not.\n *\n * Called either after you tell inflate that the input stream is\n * complete (Z_FINISH) or should be flushed (Z_SYNC_FLUSH)\n * or if an error happened. By default - join collected chunks,\n * free memory and fill `results` / `err` properties.\n **/\nInflate.prototype.onEnd = function (status) {\n // On success - join\n if (status === c.Z_OK) {\n if (this.options.to === 'string') {\n // Glue & convert here, until we teach pako to send\n // utf8 aligned strings to onData\n this.result = this.chunks.join('');\n } else {\n this.result = utils.flattenChunks(this.chunks);\n }\n }\n this.chunks = [];\n this.err = status;\n this.msg = this.strm.msg;\n};\n\n\n/**\n * inflate(data[, options]) -> Uint8Array|Array|String\n * - data (Uint8Array|Array|String): input data to decompress.\n * - options (Object): zlib inflate options.\n *\n * Decompress `data` with inflate/ungzip and `options`. Autodetect\n * format via wrapper header by default. That's why we don't provide\n * separate `ungzip` method.\n *\n * Supported options are:\n *\n * - windowBits\n *\n * [http://zlib.net/manual.html#Advanced](http://zlib.net/manual.html#Advanced)\n * for more information.\n *\n * Sugar (options):\n *\n * - `raw` (Boolean) - say that we work with raw stream, if you don't wish to specify\n * negative windowBits implicitly.\n * - `to` (String) - if equal to 'string', then result will be converted\n * from utf8 to utf16 (javascript) string. When string output requested,\n * chunk length can differ from `chunkSize`, depending on content.\n *\n *\n * ##### Example:\n *\n * ```javascript\n * var pako = require('pako')\n * , input = pako.deflate([1,2,3,4,5,6,7,8,9])\n * , output;\n *\n * try {\n * output = pako.inflate(input);\n * } catch (err)\n * console.log(err);\n * }\n * ```\n **/\nfunction inflate(input, options) {\n var inflator = new Inflate(options);\n\n inflator.push(input, true);\n\n // That will never happens, if you don't cheat with options :)\n if (inflator.err) { throw inflator.msg || msg[inflator.err]; }\n\n return inflator.result;\n}\n\n\n/**\n * inflateRaw(data[, options]) -> Uint8Array|Array|String\n * - data (Uint8Array|Array|String): input data to decompress.\n * - options (Object): zlib inflate options.\n *\n * The same as [[inflate]], but creates raw data, without wrapper\n * (header and adler32 crc).\n **/\nfunction inflateRaw(input, options) {\n options = options || {};\n options.raw = true;\n return inflate(input, options);\n}\n\n\n/**\n * ungzip(data[, options]) -> Uint8Array|Array|String\n * - data (Uint8Array|Array|String): input data to decompress.\n * - options (Object): zlib inflate options.\n *\n * Just shortcut to [[inflate]], because it autodetects format\n * by header.content. Done for convenience.\n **/\n\n\nexports.Inflate = Inflate;\nexports.inflate = inflate;\nexports.inflateRaw = inflateRaw;\nexports.ungzip = inflate;\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/pako/lib/inflate.js?");
698
699/***/ }),
700
701/***/ "./node_modules/pako/lib/utils/common.js":
702/*!***********************************************!*\
703 !*** ./node_modules/pako/lib/utils/common.js ***!
704 \***********************************************/
705/*! no static exports found */
706/***/ (function(module, exports, __webpack_require__) {
707
708"use strict";
709eval("\n\n\nvar TYPED_OK = (typeof Uint8Array !== 'undefined') &&\n (typeof Uint16Array !== 'undefined') &&\n (typeof Int32Array !== 'undefined');\n\nfunction _has(obj, key) {\n return Object.prototype.hasOwnProperty.call(obj, key);\n}\n\nexports.assign = function (obj /*from1, from2, from3, ...*/) {\n var sources = Array.prototype.slice.call(arguments, 1);\n while (sources.length) {\n var source = sources.shift();\n if (!source) { continue; }\n\n if (typeof source !== 'object') {\n throw new TypeError(source + 'must be non-object');\n }\n\n for (var p in source) {\n if (_has(source, p)) {\n obj[p] = source[p];\n }\n }\n }\n\n return obj;\n};\n\n\n// reduce buffer size, avoiding mem copy\nexports.shrinkBuf = function (buf, size) {\n if (buf.length === size) { return buf; }\n if (buf.subarray) { return buf.subarray(0, size); }\n buf.length = size;\n return buf;\n};\n\n\nvar fnTyped = {\n arraySet: function (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 }\n // Fallback to ordinary array\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 (chunks) {\n var i, l, len, pos, chunk, result;\n\n // calculate data length\n len = 0;\n for (i = 0, l = chunks.length; i < l; i++) {\n len += chunks[i].length;\n }\n\n // join chunks\n result = new Uint8Array(len);\n pos = 0;\n for (i = 0, l = chunks.length; i < l; i++) {\n chunk = chunks[i];\n result.set(chunk, pos);\n pos += chunk.length;\n }\n\n return result;\n }\n};\n\nvar fnUntyped = {\n arraySet: function (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 (chunks) {\n return [].concat.apply([], chunks);\n }\n};\n\n\n// Enable/Disable typed arrays use, for testing\n//\nexports.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};\n\nexports.setTyped(TYPED_OK);\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/pako/lib/utils/common.js?");
710
711/***/ }),
712
713/***/ "./node_modules/pako/lib/utils/strings.js":
714/*!************************************************!*\
715 !*** ./node_modules/pako/lib/utils/strings.js ***!
716 \************************************************/
717/*! no static exports found */
718/***/ (function(module, exports, __webpack_require__) {
719
720"use strict";
721eval("// String encode/decode helpers\n\n\n\nvar utils = __webpack_require__(/*! ./common */ \"./node_modules/pako/lib/utils/common.js\");\n\n\n// Quick check if we can use fast array to bin string conversion\n//\n// - apply(Array) can fail on Android 2.2\n// - apply(Uint8Array) can fail on iOS 5.1 Safari\n//\nvar STR_APPLY_OK = true;\nvar STR_APPLY_UIA_OK = true;\n\ntry { String.fromCharCode.apply(null, [ 0 ]); } catch (__) { STR_APPLY_OK = false; }\ntry { String.fromCharCode.apply(null, new Uint8Array(1)); } catch (__) { STR_APPLY_UIA_OK = false; }\n\n\n// Table with utf8 lengths (calculated by first byte of sequence)\n// Note, that 5 & 6-byte values and some 4-byte values can not be represented in JS,\n// because max possible codepoint is 0x10ffff\nvar _utf8len = new utils.Buf8(256);\nfor (var q = 0; q < 256; q++) {\n _utf8len[q] = (q >= 252 ? 6 : q >= 248 ? 5 : q >= 240 ? 4 : q >= 224 ? 3 : q >= 192 ? 2 : 1);\n}\n_utf8len[254] = _utf8len[254] = 1; // Invalid sequence start\n\n\n// convert string to array (typed, when possible)\nexports.string2buf = function (str) {\n var buf, c, c2, m_pos, i, str_len = str.length, buf_len = 0;\n\n // count binary size\n for (m_pos = 0; m_pos < str_len; m_pos++) {\n c = str.charCodeAt(m_pos);\n if ((c & 0xfc00) === 0xd800 && (m_pos + 1 < str_len)) {\n c2 = str.charCodeAt(m_pos + 1);\n if ((c2 & 0xfc00) === 0xdc00) {\n c = 0x10000 + ((c - 0xd800) << 10) + (c2 - 0xdc00);\n m_pos++;\n }\n }\n buf_len += c < 0x80 ? 1 : c < 0x800 ? 2 : c < 0x10000 ? 3 : 4;\n }\n\n // allocate buffer\n buf = new utils.Buf8(buf_len);\n\n // convert\n for (i = 0, m_pos = 0; i < buf_len; m_pos++) {\n c = str.charCodeAt(m_pos);\n if ((c & 0xfc00) === 0xd800 && (m_pos + 1 < str_len)) {\n c2 = str.charCodeAt(m_pos + 1);\n if ((c2 & 0xfc00) === 0xdc00) {\n c = 0x10000 + ((c - 0xd800) << 10) + (c2 - 0xdc00);\n m_pos++;\n }\n }\n if (c < 0x80) {\n /* one byte */\n buf[i++] = c;\n } else if (c < 0x800) {\n /* two bytes */\n buf[i++] = 0xC0 | (c >>> 6);\n buf[i++] = 0x80 | (c & 0x3f);\n } else if (c < 0x10000) {\n /* three bytes */\n buf[i++] = 0xE0 | (c >>> 12);\n buf[i++] = 0x80 | (c >>> 6 & 0x3f);\n buf[i++] = 0x80 | (c & 0x3f);\n } else {\n /* four bytes */\n buf[i++] = 0xf0 | (c >>> 18);\n buf[i++] = 0x80 | (c >>> 12 & 0x3f);\n buf[i++] = 0x80 | (c >>> 6 & 0x3f);\n buf[i++] = 0x80 | (c & 0x3f);\n }\n }\n\n return buf;\n};\n\n// Helper (used in 2 places)\nfunction buf2binstring(buf, len) {\n // On Chrome, the arguments in a function call that are allowed is `65534`.\n // If the length of the buffer is smaller than that, we can use this optimization,\n // otherwise we will take a slower path.\n if (len < 65534) {\n if ((buf.subarray && STR_APPLY_UIA_OK) || (!buf.subarray && STR_APPLY_OK)) {\n return String.fromCharCode.apply(null, utils.shrinkBuf(buf, len));\n }\n }\n\n var result = '';\n for (var i = 0; i < len; i++) {\n result += String.fromCharCode(buf[i]);\n }\n return result;\n}\n\n\n// Convert byte array to binary string\nexports.buf2binstring = function (buf) {\n return buf2binstring(buf, buf.length);\n};\n\n\n// Convert binary string (typed, when possible)\nexports.binstring2buf = function (str) {\n var buf = new utils.Buf8(str.length);\n for (var i = 0, len = buf.length; i < len; i++) {\n buf[i] = str.charCodeAt(i);\n }\n return buf;\n};\n\n\n// convert array to string\nexports.buf2string = function (buf, max) {\n var i, out, c, c_len;\n var len = max || buf.length;\n\n // Reserve max possible length (2 words per char)\n // NB: by unknown reasons, Array is significantly faster for\n // String.fromCharCode.apply than Uint16Array.\n var utf16buf = new Array(len * 2);\n\n for (out = 0, i = 0; i < len;) {\n c = buf[i++];\n // quick process ascii\n if (c < 0x80) { utf16buf[out++] = c; continue; }\n\n c_len = _utf8len[c];\n // skip 5 & 6 byte codes\n if (c_len > 4) { utf16buf[out++] = 0xfffd; i += c_len - 1; continue; }\n\n // apply mask on first byte\n c &= c_len === 2 ? 0x1f : c_len === 3 ? 0x0f : 0x07;\n // join the rest\n while (c_len > 1 && i < len) {\n c = (c << 6) | (buf[i++] & 0x3f);\n c_len--;\n }\n\n // terminated by end of string?\n if (c_len > 1) { utf16buf[out++] = 0xfffd; continue; }\n\n if (c < 0x10000) {\n utf16buf[out++] = c;\n } else {\n c -= 0x10000;\n utf16buf[out++] = 0xd800 | ((c >> 10) & 0x3ff);\n utf16buf[out++] = 0xdc00 | (c & 0x3ff);\n }\n }\n\n return buf2binstring(utf16buf, out);\n};\n\n\n// Calculate max possible position in utf8 buffer,\n// that will not break sequence. If that's not possible\n// - (very small limits) return max size as is.\n//\n// buf[] - utf8 bytes array\n// max - length limit (mandatory);\nexports.utf8border = function (buf, max) {\n var pos;\n\n max = max || buf.length;\n if (max > buf.length) { max = buf.length; }\n\n // go back from last position, until start of sequence found\n pos = max - 1;\n while (pos >= 0 && (buf[pos] & 0xC0) === 0x80) { pos--; }\n\n // Very small and broken sequence,\n // return max, because we should return something anyway.\n if (pos < 0) { return max; }\n\n // If we came to start of buffer - that means buffer is too small,\n // return max too.\n if (pos === 0) { return max; }\n\n return (pos + _utf8len[buf[pos]] > max) ? pos : max;\n};\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/pako/lib/utils/strings.js?");
722
723/***/ }),
724
725/***/ "./node_modules/pako/lib/zlib/adler32.js":
726/*!***********************************************!*\
727 !*** ./node_modules/pako/lib/zlib/adler32.js ***!
728 \***********************************************/
729/*! no static exports found */
730/***/ (function(module, exports, __webpack_require__) {
731
732"use strict";
733eval("\n\n// Note: adler32 takes 12% for level 0 and 2% for level 6.\n// It isn't worth it to make additional optimizations as in original.\n// Small size is preferable.\n\n// (C) 1995-2013 Jean-loup Gailly and Mark Adler\n// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin\n//\n// This software is provided 'as-is', without any express or implied\n// warranty. In no event will the authors be held liable for any damages\n// arising from the use of this software.\n//\n// Permission is granted to anyone to use this software for any purpose,\n// including commercial applications, and to alter it and redistribute it\n// freely, subject to the following restrictions:\n//\n// 1. The origin of this software must not be misrepresented; you must not\n// claim that you wrote the original software. If you use this software\n// in a product, an acknowledgment in the product documentation would be\n// appreciated but is not required.\n// 2. Altered source versions must be plainly marked as such, and must not be\n// misrepresented as being the original software.\n// 3. This notice may not be removed or altered from any source distribution.\n\nfunction adler32(adler, buf, len, pos) {\n var s1 = (adler & 0xffff) |0,\n s2 = ((adler >>> 16) & 0xffff) |0,\n n = 0;\n\n while (len !== 0) {\n // Set limit ~ twice less than 5552, to keep\n // s2 in 31-bits, because we force signed ints.\n // in other case %= will fail.\n n = len > 2000 ? 2000 : len;\n len -= n;\n\n do {\n s1 = (s1 + buf[pos++]) |0;\n s2 = (s2 + s1) |0;\n } while (--n);\n\n s1 %= 65521;\n s2 %= 65521;\n }\n\n return (s1 | (s2 << 16)) |0;\n}\n\n\nmodule.exports = adler32;\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/pako/lib/zlib/adler32.js?");
734
735/***/ }),
736
737/***/ "./node_modules/pako/lib/zlib/constants.js":
738/*!*************************************************!*\
739 !*** ./node_modules/pako/lib/zlib/constants.js ***!
740 \*************************************************/
741/*! no static exports found */
742/***/ (function(module, exports, __webpack_require__) {
743
744"use strict";
745eval("\n\n// (C) 1995-2013 Jean-loup Gailly and Mark Adler\n// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin\n//\n// This software is provided 'as-is', without any express or implied\n// warranty. In no event will the authors be held liable for any damages\n// arising from the use of this software.\n//\n// Permission is granted to anyone to use this software for any purpose,\n// including commercial applications, and to alter it and redistribute it\n// freely, subject to the following restrictions:\n//\n// 1. The origin of this software must not be misrepresented; you must not\n// claim that you wrote the original software. If you use this software\n// in a product, an acknowledgment in the product documentation would be\n// appreciated but is not required.\n// 2. Altered source versions must be plainly marked as such, and must not be\n// misrepresented as being the original software.\n// 3. This notice may not be removed or altered from any source distribution.\n\nmodule.exports = {\n\n /* Allowed flush values; see deflate() and inflate() below for details */\n Z_NO_FLUSH: 0,\n Z_PARTIAL_FLUSH: 1,\n Z_SYNC_FLUSH: 2,\n Z_FULL_FLUSH: 3,\n Z_FINISH: 4,\n Z_BLOCK: 5,\n Z_TREES: 6,\n\n /* Return codes for the compression/decompression functions. Negative values\n * are errors, positive values are used for special but normal events.\n */\n Z_OK: 0,\n Z_STREAM_END: 1,\n Z_NEED_DICT: 2,\n Z_ERRNO: -1,\n Z_STREAM_ERROR: -2,\n Z_DATA_ERROR: -3,\n //Z_MEM_ERROR: -4,\n Z_BUF_ERROR: -5,\n //Z_VERSION_ERROR: -6,\n\n /* compression levels */\n Z_NO_COMPRESSION: 0,\n Z_BEST_SPEED: 1,\n Z_BEST_COMPRESSION: 9,\n Z_DEFAULT_COMPRESSION: -1,\n\n\n Z_FILTERED: 1,\n Z_HUFFMAN_ONLY: 2,\n Z_RLE: 3,\n Z_FIXED: 4,\n Z_DEFAULT_STRATEGY: 0,\n\n /* Possible values of the data_type field (though see inflate()) */\n Z_BINARY: 0,\n Z_TEXT: 1,\n //Z_ASCII: 1, // = Z_TEXT (deprecated)\n Z_UNKNOWN: 2,\n\n /* The deflate compression method */\n Z_DEFLATED: 8\n //Z_NULL: null // Use -1 or null inline, depending on var type\n};\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/pako/lib/zlib/constants.js?");
746
747/***/ }),
748
749/***/ "./node_modules/pako/lib/zlib/crc32.js":
750/*!*********************************************!*\
751 !*** ./node_modules/pako/lib/zlib/crc32.js ***!
752 \*********************************************/
753/*! no static exports found */
754/***/ (function(module, exports, __webpack_require__) {
755
756"use strict";
757eval("\n\n// Note: we can't get significant speed boost here.\n// So write code to minimize size - no pregenerated tables\n// and array tools dependencies.\n\n// (C) 1995-2013 Jean-loup Gailly and Mark Adler\n// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin\n//\n// This software is provided 'as-is', without any express or implied\n// warranty. In no event will the authors be held liable for any damages\n// arising from the use of this software.\n//\n// Permission is granted to anyone to use this software for any purpose,\n// including commercial applications, and to alter it and redistribute it\n// freely, subject to the following restrictions:\n//\n// 1. The origin of this software must not be misrepresented; you must not\n// claim that you wrote the original software. If you use this software\n// in a product, an acknowledgment in the product documentation would be\n// appreciated but is not required.\n// 2. Altered source versions must be plainly marked as such, and must not be\n// misrepresented as being the original software.\n// 3. This notice may not be removed or altered from any source distribution.\n\n// Use ordinary array, since untyped makes no boost here\nfunction makeTable() {\n var c, table = [];\n\n for (var n = 0; n < 256; n++) {\n c = n;\n for (var k = 0; k < 8; k++) {\n c = ((c & 1) ? (0xEDB88320 ^ (c >>> 1)) : (c >>> 1));\n }\n table[n] = c;\n }\n\n return table;\n}\n\n// Create table on load. Just 255 signed longs. Not a problem.\nvar crcTable = makeTable();\n\n\nfunction crc32(crc, buf, len, pos) {\n var t = crcTable,\n end = pos + len;\n\n crc ^= -1;\n\n for (var i = pos; i < end; i++) {\n crc = (crc >>> 8) ^ t[(crc ^ buf[i]) & 0xFF];\n }\n\n return (crc ^ (-1)); // >>> 0;\n}\n\n\nmodule.exports = crc32;\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/pako/lib/zlib/crc32.js?");
758
759/***/ }),
760
761/***/ "./node_modules/pako/lib/zlib/gzheader.js":
762/*!************************************************!*\
763 !*** ./node_modules/pako/lib/zlib/gzheader.js ***!
764 \************************************************/
765/*! no static exports found */
766/***/ (function(module, exports, __webpack_require__) {
767
768"use strict";
769eval("\n\n// (C) 1995-2013 Jean-loup Gailly and Mark Adler\n// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin\n//\n// This software is provided 'as-is', without any express or implied\n// warranty. In no event will the authors be held liable for any damages\n// arising from the use of this software.\n//\n// Permission is granted to anyone to use this software for any purpose,\n// including commercial applications, and to alter it and redistribute it\n// freely, subject to the following restrictions:\n//\n// 1. The origin of this software must not be misrepresented; you must not\n// claim that you wrote the original software. If you use this software\n// in a product, an acknowledgment in the product documentation would be\n// appreciated but is not required.\n// 2. Altered source versions must be plainly marked as such, and must not be\n// misrepresented as being the original software.\n// 3. This notice may not be removed or altered from any source distribution.\n\nfunction GZheader() {\n /* true if compressed data believed to be text */\n this.text = 0;\n /* modification time */\n this.time = 0;\n /* extra flags (not used when writing a gzip file) */\n this.xflags = 0;\n /* operating system */\n this.os = 0;\n /* pointer to extra field or Z_NULL if none */\n this.extra = null;\n /* extra field length (valid if extra != Z_NULL) */\n this.extra_len = 0; // Actually, we don't need it in JS,\n // but leave for few code modifications\n\n //\n // Setup limits is not necessary because in js we should not preallocate memory\n // for inflate use constant limit in 65536 bytes\n //\n\n /* space at extra (only when reading header) */\n // this.extra_max = 0;\n /* pointer to zero-terminated file name or Z_NULL */\n this.name = '';\n /* space at name (only when reading header) */\n // this.name_max = 0;\n /* pointer to zero-terminated comment or Z_NULL */\n this.comment = '';\n /* space at comment (only when reading header) */\n // this.comm_max = 0;\n /* true if there was or will be a header crc */\n this.hcrc = 0;\n /* true when done reading gzip header (not used when writing a gzip file) */\n this.done = false;\n}\n\nmodule.exports = GZheader;\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/pako/lib/zlib/gzheader.js?");
770
771/***/ }),
772
773/***/ "./node_modules/pako/lib/zlib/inffast.js":
774/*!***********************************************!*\
775 !*** ./node_modules/pako/lib/zlib/inffast.js ***!
776 \***********************************************/
777/*! no static exports found */
778/***/ (function(module, exports, __webpack_require__) {
779
780"use strict";
781eval("\n\n// (C) 1995-2013 Jean-loup Gailly and Mark Adler\n// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin\n//\n// This software is provided 'as-is', without any express or implied\n// warranty. In no event will the authors be held liable for any damages\n// arising from the use of this software.\n//\n// Permission is granted to anyone to use this software for any purpose,\n// including commercial applications, and to alter it and redistribute it\n// freely, subject to the following restrictions:\n//\n// 1. The origin of this software must not be misrepresented; you must not\n// claim that you wrote the original software. If you use this software\n// in a product, an acknowledgment in the product documentation would be\n// appreciated but is not required.\n// 2. Altered source versions must be plainly marked as such, and must not be\n// misrepresented as being the original software.\n// 3. This notice may not be removed or altered from any source distribution.\n\n// See state defs from inflate.js\nvar BAD = 30; /* got a data error -- remain here until reset */\nvar TYPE = 12; /* i: waiting for type bits, including last-flag bit */\n\n/*\n Decode literal, length, and distance codes and write out the resulting\n literal and match bytes until either not enough input or output is\n available, an end-of-block is encountered, or a data error is encountered.\n When large enough input and output buffers are supplied to inflate(), for\n example, a 16K input buffer and a 64K output buffer, more than 95% of the\n inflate execution time is spent in this routine.\n\n Entry assumptions:\n\n state.mode === LEN\n strm.avail_in >= 6\n strm.avail_out >= 258\n start >= strm.avail_out\n state.bits < 8\n\n On return, state.mode is one of:\n\n LEN -- ran out of enough output space or enough available input\n TYPE -- reached end of block code, inflate() to interpret next block\n BAD -- error in block data\n\n Notes:\n\n - The maximum input bits used by a length/distance pair is 15 bits for the\n length code, 5 bits for the length extra, 15 bits for the distance code,\n and 13 bits for the distance extra. This totals 48 bits, or six bytes.\n Therefore if strm.avail_in >= 6, then there is enough input to avoid\n checking for available input while decoding.\n\n - The maximum bytes that a single length/distance pair can output is 258\n bytes, which is the maximum length that can be coded. inflate_fast()\n requires strm.avail_out >= 258 for each loop to avoid checking for\n output space.\n */\nmodule.exports = function inflate_fast(strm, start) {\n var state;\n var _in; /* local strm.input */\n var last; /* have enough input while in < last */\n var _out; /* local strm.output */\n var beg; /* inflate()'s initial strm.output */\n var end; /* while out < end, enough space available */\n//#ifdef INFLATE_STRICT\n var dmax; /* maximum distance from zlib header */\n//#endif\n var wsize; /* window size or zero if not using window */\n var whave; /* valid bytes in the window */\n var wnext; /* window write index */\n // Use `s_window` instead `window`, avoid conflict with instrumentation tools\n var s_window; /* allocated sliding window, if wsize != 0 */\n var hold; /* local strm.hold */\n var bits; /* local strm.bits */\n var lcode; /* local strm.lencode */\n var dcode; /* local strm.distcode */\n var lmask; /* mask for first level of length codes */\n var dmask; /* mask for first level of distance codes */\n var here; /* retrieved table entry */\n var op; /* code bits, operation, extra bits, or */\n /* window position, window bytes to copy */\n var len; /* match length, unused bytes */\n var dist; /* match distance */\n var from; /* where to copy match from */\n var from_source;\n\n\n var input, output; // JS specific, because we have no pointers\n\n /* copy state to local variables */\n state = strm.state;\n //here = state.here;\n _in = strm.next_in;\n input = strm.input;\n last = _in + (strm.avail_in - 5);\n _out = strm.next_out;\n output = strm.output;\n beg = _out - (start - strm.avail_out);\n end = _out + (strm.avail_out - 257);\n//#ifdef INFLATE_STRICT\n dmax = state.dmax;\n//#endif\n wsize = state.wsize;\n whave = state.whave;\n wnext = state.wnext;\n s_window = state.window;\n hold = state.hold;\n bits = state.bits;\n lcode = state.lencode;\n dcode = state.distcode;\n lmask = (1 << state.lenbits) - 1;\n dmask = (1 << state.distbits) - 1;\n\n\n /* decode literals and length/distances until end-of-block or not enough\n input data or output space */\n\n top:\n do {\n if (bits < 15) {\n hold += input[_in++] << bits;\n bits += 8;\n hold += input[_in++] << bits;\n bits += 8;\n }\n\n here = lcode[hold & lmask];\n\n dolen:\n for (;;) { // Goto emulation\n op = here >>> 24/*here.bits*/;\n hold >>>= op;\n bits -= op;\n op = (here >>> 16) & 0xff/*here.op*/;\n if (op === 0) { /* literal */\n //Tracevv((stderr, here.val >= 0x20 && here.val < 0x7f ?\n // \"inflate: literal '%c'\\n\" :\n // \"inflate: literal 0x%02x\\n\", here.val));\n output[_out++] = here & 0xffff/*here.val*/;\n }\n else if (op & 16) { /* length base */\n len = here & 0xffff/*here.val*/;\n op &= 15; /* number of extra bits */\n if (op) {\n if (bits < op) {\n hold += input[_in++] << bits;\n bits += 8;\n }\n len += hold & ((1 << op) - 1);\n hold >>>= op;\n bits -= op;\n }\n //Tracevv((stderr, \"inflate: length %u\\n\", len));\n if (bits < 15) {\n hold += input[_in++] << bits;\n bits += 8;\n hold += input[_in++] << bits;\n bits += 8;\n }\n here = dcode[hold & dmask];\n\n dodist:\n for (;;) { // goto emulation\n op = here >>> 24/*here.bits*/;\n hold >>>= op;\n bits -= op;\n op = (here >>> 16) & 0xff/*here.op*/;\n\n if (op & 16) { /* distance base */\n dist = here & 0xffff/*here.val*/;\n op &= 15; /* number of extra bits */\n if (bits < op) {\n hold += input[_in++] << bits;\n bits += 8;\n if (bits < op) {\n hold += input[_in++] << bits;\n bits += 8;\n }\n }\n dist += hold & ((1 << op) - 1);\n//#ifdef INFLATE_STRICT\n if (dist > dmax) {\n strm.msg = 'invalid distance too far back';\n state.mode = BAD;\n break top;\n }\n//#endif\n hold >>>= op;\n bits -= op;\n //Tracevv((stderr, \"inflate: distance %u\\n\", dist));\n op = _out - beg; /* max distance in output */\n if (dist > op) { /* see if copy from window */\n op = dist - op; /* distance back in window */\n if (op > whave) {\n if (state.sane) {\n strm.msg = 'invalid distance too far back';\n state.mode = BAD;\n break top;\n }\n\n// (!) This block is disabled in zlib defaults,\n// don't enable it for binary compatibility\n//#ifdef INFLATE_ALLOW_INVALID_DISTANCE_TOOFAR_ARRR\n// if (len <= op - whave) {\n// do {\n// output[_out++] = 0;\n// } while (--len);\n// continue top;\n// }\n// len -= op - whave;\n// do {\n// output[_out++] = 0;\n// } while (--op > whave);\n// if (op === 0) {\n// from = _out - dist;\n// do {\n// output[_out++] = output[from++];\n// } while (--len);\n// continue top;\n// }\n//#endif\n }\n from = 0; // window index\n from_source = s_window;\n if (wnext === 0) { /* very common case */\n from += wsize - op;\n if (op < len) { /* some from window */\n len -= op;\n do {\n output[_out++] = s_window[from++];\n } while (--op);\n from = _out - dist; /* rest from output */\n from_source = output;\n }\n }\n else if (wnext < op) { /* wrap around window */\n from += wsize + wnext - op;\n op -= wnext;\n if (op < len) { /* some from end of window */\n len -= op;\n do {\n output[_out++] = s_window[from++];\n } while (--op);\n from = 0;\n if (wnext < len) { /* some from start of window */\n op = wnext;\n len -= op;\n do {\n output[_out++] = s_window[from++];\n } while (--op);\n from = _out - dist; /* rest from output */\n from_source = output;\n }\n }\n }\n else { /* contiguous in window */\n from += wnext - op;\n if (op < len) { /* some from window */\n len -= op;\n do {\n output[_out++] = s_window[from++];\n } while (--op);\n from = _out - dist; /* rest from output */\n from_source = output;\n }\n }\n while (len > 2) {\n output[_out++] = from_source[from++];\n output[_out++] = from_source[from++];\n output[_out++] = from_source[from++];\n len -= 3;\n }\n if (len) {\n output[_out++] = from_source[from++];\n if (len > 1) {\n output[_out++] = from_source[from++];\n }\n }\n }\n else {\n from = _out - dist; /* copy direct from output */\n do { /* minimum length is three */\n output[_out++] = output[from++];\n output[_out++] = output[from++];\n output[_out++] = output[from++];\n len -= 3;\n } while (len > 2);\n if (len) {\n output[_out++] = output[from++];\n if (len > 1) {\n output[_out++] = output[from++];\n }\n }\n }\n }\n else if ((op & 64) === 0) { /* 2nd level distance code */\n here = dcode[(here & 0xffff)/*here.val*/ + (hold & ((1 << op) - 1))];\n continue dodist;\n }\n else {\n strm.msg = 'invalid distance code';\n state.mode = BAD;\n break top;\n }\n\n break; // need to emulate goto via \"continue\"\n }\n }\n else if ((op & 64) === 0) { /* 2nd level length code */\n here = lcode[(here & 0xffff)/*here.val*/ + (hold & ((1 << op) - 1))];\n continue dolen;\n }\n else if (op & 32) { /* end-of-block */\n //Tracevv((stderr, \"inflate: end of block\\n\"));\n state.mode = TYPE;\n break top;\n }\n else {\n strm.msg = 'invalid literal/length code';\n state.mode = BAD;\n break top;\n }\n\n break; // need to emulate goto via \"continue\"\n }\n } while (_in < last && _out < end);\n\n /* return unused bytes (on entry, bits < 8, so in won't go too far back) */\n len = bits >> 3;\n _in -= len;\n bits -= len << 3;\n hold &= (1 << bits) - 1;\n\n /* update state and return */\n strm.next_in = _in;\n strm.next_out = _out;\n strm.avail_in = (_in < last ? 5 + (last - _in) : 5 - (_in - last));\n strm.avail_out = (_out < end ? 257 + (end - _out) : 257 - (_out - end));\n state.hold = hold;\n state.bits = bits;\n return;\n};\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/pako/lib/zlib/inffast.js?");
782
783/***/ }),
784
785/***/ "./node_modules/pako/lib/zlib/inflate.js":
786/*!***********************************************!*\
787 !*** ./node_modules/pako/lib/zlib/inflate.js ***!
788 \***********************************************/
789/*! no static exports found */
790/***/ (function(module, exports, __webpack_require__) {
791
792"use strict";
793eval("\n\n// (C) 1995-2013 Jean-loup Gailly and Mark Adler\n// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin\n//\n// This software is provided 'as-is', without any express or implied\n// warranty. In no event will the authors be held liable for any damages\n// arising from the use of this software.\n//\n// Permission is granted to anyone to use this software for any purpose,\n// including commercial applications, and to alter it and redistribute it\n// freely, subject to the following restrictions:\n//\n// 1. The origin of this software must not be misrepresented; you must not\n// claim that you wrote the original software. If you use this software\n// in a product, an acknowledgment in the product documentation would be\n// appreciated but is not required.\n// 2. Altered source versions must be plainly marked as such, and must not be\n// misrepresented as being the original software.\n// 3. This notice may not be removed or altered from any source distribution.\n\nvar utils = __webpack_require__(/*! ../utils/common */ \"./node_modules/pako/lib/utils/common.js\");\nvar adler32 = __webpack_require__(/*! ./adler32 */ \"./node_modules/pako/lib/zlib/adler32.js\");\nvar crc32 = __webpack_require__(/*! ./crc32 */ \"./node_modules/pako/lib/zlib/crc32.js\");\nvar inflate_fast = __webpack_require__(/*! ./inffast */ \"./node_modules/pako/lib/zlib/inffast.js\");\nvar inflate_table = __webpack_require__(/*! ./inftrees */ \"./node_modules/pako/lib/zlib/inftrees.js\");\n\nvar CODES = 0;\nvar LENS = 1;\nvar DISTS = 2;\n\n/* Public constants ==========================================================*/\n/* ===========================================================================*/\n\n\n/* Allowed flush values; see deflate() and inflate() below for details */\n//var Z_NO_FLUSH = 0;\n//var Z_PARTIAL_FLUSH = 1;\n//var Z_SYNC_FLUSH = 2;\n//var Z_FULL_FLUSH = 3;\nvar Z_FINISH = 4;\nvar Z_BLOCK = 5;\nvar Z_TREES = 6;\n\n\n/* Return codes for the compression/decompression functions. Negative values\n * are errors, positive values are used for special but normal events.\n */\nvar Z_OK = 0;\nvar Z_STREAM_END = 1;\nvar Z_NEED_DICT = 2;\n//var Z_ERRNO = -1;\nvar Z_STREAM_ERROR = -2;\nvar Z_DATA_ERROR = -3;\nvar Z_MEM_ERROR = -4;\nvar Z_BUF_ERROR = -5;\n//var Z_VERSION_ERROR = -6;\n\n/* The deflate compression method */\nvar Z_DEFLATED = 8;\n\n\n/* STATES ====================================================================*/\n/* ===========================================================================*/\n\n\nvar HEAD = 1; /* i: waiting for magic header */\nvar FLAGS = 2; /* i: waiting for method and flags (gzip) */\nvar TIME = 3; /* i: waiting for modification time (gzip) */\nvar OS = 4; /* i: waiting for extra flags and operating system (gzip) */\nvar EXLEN = 5; /* i: waiting for extra length (gzip) */\nvar EXTRA = 6; /* i: waiting for extra bytes (gzip) */\nvar NAME = 7; /* i: waiting for end of file name (gzip) */\nvar COMMENT = 8; /* i: waiting for end of comment (gzip) */\nvar HCRC = 9; /* i: waiting for header crc (gzip) */\nvar DICTID = 10; /* i: waiting for dictionary check value */\nvar DICT = 11; /* waiting for inflateSetDictionary() call */\nvar TYPE = 12; /* i: waiting for type bits, including last-flag bit */\nvar TYPEDO = 13; /* i: same, but skip check to exit inflate on new block */\nvar STORED = 14; /* i: waiting for stored size (length and complement) */\nvar COPY_ = 15; /* i/o: same as COPY below, but only first time in */\nvar COPY = 16; /* i/o: waiting for input or output to copy stored block */\nvar TABLE = 17; /* i: waiting for dynamic block table lengths */\nvar LENLENS = 18; /* i: waiting for code length code lengths */\nvar CODELENS = 19; /* i: waiting for length/lit and distance code lengths */\nvar LEN_ = 20; /* i: same as LEN below, but only first time in */\nvar LEN = 21; /* i: waiting for length/lit/eob code */\nvar LENEXT = 22; /* i: waiting for length extra bits */\nvar DIST = 23; /* i: waiting for distance code */\nvar DISTEXT = 24; /* i: waiting for distance extra bits */\nvar MATCH = 25; /* o: waiting for output space to copy string */\nvar LIT = 26; /* o: waiting for output space to write literal */\nvar CHECK = 27; /* i: waiting for 32-bit check value */\nvar LENGTH = 28; /* i: waiting for 32-bit length (gzip) */\nvar DONE = 29; /* finished check, done -- remain here until reset */\nvar BAD = 30; /* got a data error -- remain here until reset */\nvar MEM = 31; /* got an inflate() memory error -- remain here until reset */\nvar SYNC = 32; /* looking for synchronization bytes to restart inflate() */\n\n/* ===========================================================================*/\n\n\n\nvar ENOUGH_LENS = 852;\nvar ENOUGH_DISTS = 592;\n//var ENOUGH = (ENOUGH_LENS+ENOUGH_DISTS);\n\nvar MAX_WBITS = 15;\n/* 32K LZ77 window */\nvar DEF_WBITS = MAX_WBITS;\n\n\nfunction zswap32(q) {\n return (((q >>> 24) & 0xff) +\n ((q >>> 8) & 0xff00) +\n ((q & 0xff00) << 8) +\n ((q & 0xff) << 24));\n}\n\n\nfunction InflateState() {\n this.mode = 0; /* current inflate mode */\n this.last = false; /* true if processing last block */\n this.wrap = 0; /* bit 0 true for zlib, bit 1 true for gzip */\n this.havedict = false; /* true if dictionary provided */\n this.flags = 0; /* gzip header method and flags (0 if zlib) */\n this.dmax = 0; /* zlib header max distance (INFLATE_STRICT) */\n this.check = 0; /* protected copy of check value */\n this.total = 0; /* protected copy of output count */\n // TODO: may be {}\n this.head = null; /* where to save gzip header information */\n\n /* sliding window */\n this.wbits = 0; /* log base 2 of requested window size */\n this.wsize = 0; /* window size or zero if not using window */\n this.whave = 0; /* valid bytes in the window */\n this.wnext = 0; /* window write index */\n this.window = null; /* allocated sliding window, if needed */\n\n /* bit accumulator */\n this.hold = 0; /* input bit accumulator */\n this.bits = 0; /* number of bits in \"in\" */\n\n /* for string and stored block copying */\n this.length = 0; /* literal or length of data to copy */\n this.offset = 0; /* distance back to copy string from */\n\n /* for table and code decoding */\n this.extra = 0; /* extra bits needed */\n\n /* fixed and dynamic code tables */\n this.lencode = null; /* starting table for length/literal codes */\n this.distcode = null; /* starting table for distance codes */\n this.lenbits = 0; /* index bits for lencode */\n this.distbits = 0; /* index bits for distcode */\n\n /* dynamic table building */\n this.ncode = 0; /* number of code length code lengths */\n this.nlen = 0; /* number of length code lengths */\n this.ndist = 0; /* number of distance code lengths */\n this.have = 0; /* number of code lengths in lens[] */\n this.next = null; /* next available space in codes[] */\n\n this.lens = new utils.Buf16(320); /* temporary storage for code lengths */\n this.work = new utils.Buf16(288); /* work area for code table building */\n\n /*\n because we don't have pointers in js, we use lencode and distcode directly\n as buffers so we don't need codes\n */\n //this.codes = new utils.Buf32(ENOUGH); /* space for code tables */\n this.lendyn = null; /* dynamic table for length/literal codes (JS specific) */\n this.distdyn = null; /* dynamic table for distance codes (JS specific) */\n this.sane = 0; /* if false, allow invalid distance too far */\n this.back = 0; /* bits back of last unprocessed length/lit */\n this.was = 0; /* initial length of match */\n}\n\nfunction inflateResetKeep(strm) {\n var state;\n\n if (!strm || !strm.state) { return Z_STREAM_ERROR; }\n state = strm.state;\n strm.total_in = strm.total_out = state.total = 0;\n strm.msg = ''; /*Z_NULL*/\n if (state.wrap) { /* to support ill-conceived Java test suite */\n strm.adler = state.wrap & 1;\n }\n state.mode = HEAD;\n state.last = 0;\n state.havedict = 0;\n state.dmax = 32768;\n state.head = null/*Z_NULL*/;\n state.hold = 0;\n state.bits = 0;\n //state.lencode = state.distcode = state.next = state.codes;\n state.lencode = state.lendyn = new utils.Buf32(ENOUGH_LENS);\n state.distcode = state.distdyn = new utils.Buf32(ENOUGH_DISTS);\n\n state.sane = 1;\n state.back = -1;\n //Tracev((stderr, \"inflate: reset\\n\"));\n return Z_OK;\n}\n\nfunction inflateReset(strm) {\n var state;\n\n if (!strm || !strm.state) { return Z_STREAM_ERROR; }\n state = strm.state;\n state.wsize = 0;\n state.whave = 0;\n state.wnext = 0;\n return inflateResetKeep(strm);\n\n}\n\nfunction inflateReset2(strm, windowBits) {\n var wrap;\n var state;\n\n /* get the state */\n if (!strm || !strm.state) { return Z_STREAM_ERROR; }\n state = strm.state;\n\n /* extract wrap request from windowBits parameter */\n if (windowBits < 0) {\n wrap = 0;\n windowBits = -windowBits;\n }\n else {\n wrap = (windowBits >> 4) + 1;\n if (windowBits < 48) {\n windowBits &= 15;\n }\n }\n\n /* set number of window bits, free window if different */\n if (windowBits && (windowBits < 8 || windowBits > 15)) {\n return Z_STREAM_ERROR;\n }\n if (state.window !== null && state.wbits !== windowBits) {\n state.window = null;\n }\n\n /* update state and reset the rest of it */\n state.wrap = wrap;\n state.wbits = windowBits;\n return inflateReset(strm);\n}\n\nfunction inflateInit2(strm, windowBits) {\n var ret;\n var state;\n\n if (!strm) { return Z_STREAM_ERROR; }\n //strm.msg = Z_NULL; /* in case we return an error */\n\n state = new InflateState();\n\n //if (state === Z_NULL) return Z_MEM_ERROR;\n //Tracev((stderr, \"inflate: allocated\\n\"));\n strm.state = state;\n state.window = null/*Z_NULL*/;\n ret = inflateReset2(strm, windowBits);\n if (ret !== Z_OK) {\n strm.state = null/*Z_NULL*/;\n }\n return ret;\n}\n\nfunction inflateInit(strm) {\n return inflateInit2(strm, DEF_WBITS);\n}\n\n\n/*\n Return state with length and distance decoding tables and index sizes set to\n fixed code decoding. Normally this returns fixed tables from inffixed.h.\n If BUILDFIXED is defined, then instead this routine builds the tables the\n first time it's called, and returns those tables the first time and\n thereafter. This reduces the size of the code by about 2K bytes, in\n exchange for a little execution time. However, BUILDFIXED should not be\n used for threaded applications, since the rewriting of the tables and virgin\n may not be thread-safe.\n */\nvar virgin = true;\n\nvar lenfix, distfix; // We have no pointers in JS, so keep tables separate\n\nfunction fixedtables(state) {\n /* build fixed huffman tables if first call (may not be thread safe) */\n if (virgin) {\n var sym;\n\n lenfix = new utils.Buf32(512);\n distfix = new utils.Buf32(32);\n\n /* literal/length table */\n sym = 0;\n while (sym < 144) { state.lens[sym++] = 8; }\n while (sym < 256) { state.lens[sym++] = 9; }\n while (sym < 280) { state.lens[sym++] = 7; }\n while (sym < 288) { state.lens[sym++] = 8; }\n\n inflate_table(LENS, state.lens, 0, 288, lenfix, 0, state.work, { bits: 9 });\n\n /* distance table */\n sym = 0;\n while (sym < 32) { state.lens[sym++] = 5; }\n\n inflate_table(DISTS, state.lens, 0, 32, distfix, 0, state.work, { bits: 5 });\n\n /* do this just once */\n virgin = false;\n }\n\n state.lencode = lenfix;\n state.lenbits = 9;\n state.distcode = distfix;\n state.distbits = 5;\n}\n\n\n/*\n Update the window with the last wsize (normally 32K) bytes written before\n returning. If window does not exist yet, create it. This is only called\n when a window is already in use, or when output has been written during this\n inflate call, but the end of the deflate stream has not been reached yet.\n It is also called to create a window for dictionary data when a dictionary\n is loaded.\n\n Providing output buffers larger than 32K to inflate() should provide a speed\n advantage, since only the last 32K of output is copied to the sliding window\n upon return from inflate(), and since all distances after the first 32K of\n output will fall in the output data, making match copies simpler and faster.\n The advantage may be dependent on the size of the processor's data caches.\n */\nfunction updatewindow(strm, src, end, copy) {\n var dist;\n var state = strm.state;\n\n /* if it hasn't been done already, allocate space for the window */\n if (state.window === null) {\n state.wsize = 1 << state.wbits;\n state.wnext = 0;\n state.whave = 0;\n\n state.window = new utils.Buf8(state.wsize);\n }\n\n /* copy state->wsize or less output bytes into the circular window */\n if (copy >= state.wsize) {\n utils.arraySet(state.window, src, end - state.wsize, state.wsize, 0);\n state.wnext = 0;\n state.whave = state.wsize;\n }\n else {\n dist = state.wsize - state.wnext;\n if (dist > copy) {\n dist = copy;\n }\n //zmemcpy(state->window + state->wnext, end - copy, dist);\n utils.arraySet(state.window, src, end - copy, dist, state.wnext);\n copy -= dist;\n if (copy) {\n //zmemcpy(state->window, end - copy, copy);\n utils.arraySet(state.window, src, end - copy, copy, 0);\n state.wnext = copy;\n state.whave = state.wsize;\n }\n else {\n state.wnext += dist;\n if (state.wnext === state.wsize) { state.wnext = 0; }\n if (state.whave < state.wsize) { state.whave += dist; }\n }\n }\n return 0;\n}\n\nfunction inflate(strm, flush) {\n var state;\n var input, output; // input/output buffers\n var next; /* next input INDEX */\n var put; /* next output INDEX */\n var have, left; /* available input and output */\n var hold; /* bit buffer */\n var bits; /* bits in bit buffer */\n var _in, _out; /* save starting available input and output */\n var copy; /* number of stored or match bytes to copy */\n var from; /* where to copy match bytes from */\n var from_source;\n var here = 0; /* current decoding table entry */\n var here_bits, here_op, here_val; // paked \"here\" denormalized (JS specific)\n //var last; /* parent table entry */\n var last_bits, last_op, last_val; // paked \"last\" denormalized (JS specific)\n var len; /* length to copy for repeats, bits to drop */\n var ret; /* return code */\n var hbuf = new utils.Buf8(4); /* buffer for gzip header crc calculation */\n var opts;\n\n var n; // temporary var for NEED_BITS\n\n var order = /* permutation of code lengths */\n [ 16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15 ];\n\n\n if (!strm || !strm.state || !strm.output ||\n (!strm.input && strm.avail_in !== 0)) {\n return Z_STREAM_ERROR;\n }\n\n state = strm.state;\n if (state.mode === TYPE) { state.mode = TYPEDO; } /* skip check */\n\n\n //--- LOAD() ---\n put = strm.next_out;\n output = strm.output;\n left = strm.avail_out;\n next = strm.next_in;\n input = strm.input;\n have = strm.avail_in;\n hold = state.hold;\n bits = state.bits;\n //---\n\n _in = have;\n _out = left;\n ret = Z_OK;\n\n inf_leave: // goto emulation\n for (;;) {\n switch (state.mode) {\n case HEAD:\n if (state.wrap === 0) {\n state.mode = TYPEDO;\n break;\n }\n //=== NEEDBITS(16);\n while (bits < 16) {\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n if ((state.wrap & 2) && hold === 0x8b1f) { /* gzip header */\n state.check = 0/*crc32(0L, Z_NULL, 0)*/;\n //=== CRC2(state.check, hold);\n hbuf[0] = hold & 0xff;\n hbuf[1] = (hold >>> 8) & 0xff;\n state.check = crc32(state.check, hbuf, 2, 0);\n //===//\n\n //=== INITBITS();\n hold = 0;\n bits = 0;\n //===//\n state.mode = FLAGS;\n break;\n }\n state.flags = 0; /* expect zlib header */\n if (state.head) {\n state.head.done = false;\n }\n if (!(state.wrap & 1) || /* check if zlib header allowed */\n (((hold & 0xff)/*BITS(8)*/ << 8) + (hold >> 8)) % 31) {\n strm.msg = 'incorrect header check';\n state.mode = BAD;\n break;\n }\n if ((hold & 0x0f)/*BITS(4)*/ !== Z_DEFLATED) {\n strm.msg = 'unknown compression method';\n state.mode = BAD;\n break;\n }\n //--- DROPBITS(4) ---//\n hold >>>= 4;\n bits -= 4;\n //---//\n len = (hold & 0x0f)/*BITS(4)*/ + 8;\n if (state.wbits === 0) {\n state.wbits = len;\n }\n else if (len > state.wbits) {\n strm.msg = 'invalid window size';\n state.mode = BAD;\n break;\n }\n state.dmax = 1 << len;\n //Tracev((stderr, \"inflate: zlib header ok\\n\"));\n strm.adler = state.check = 1/*adler32(0L, Z_NULL, 0)*/;\n state.mode = hold & 0x200 ? DICTID : TYPE;\n //=== INITBITS();\n hold = 0;\n bits = 0;\n //===//\n break;\n case FLAGS:\n //=== NEEDBITS(16); */\n while (bits < 16) {\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n state.flags = hold;\n if ((state.flags & 0xff) !== Z_DEFLATED) {\n strm.msg = 'unknown compression method';\n state.mode = BAD;\n break;\n }\n if (state.flags & 0xe000) {\n strm.msg = 'unknown header flags set';\n state.mode = BAD;\n break;\n }\n if (state.head) {\n state.head.text = ((hold >> 8) & 1);\n }\n if (state.flags & 0x0200) {\n //=== CRC2(state.check, hold);\n hbuf[0] = hold & 0xff;\n hbuf[1] = (hold >>> 8) & 0xff;\n state.check = crc32(state.check, hbuf, 2, 0);\n //===//\n }\n //=== INITBITS();\n hold = 0;\n bits = 0;\n //===//\n state.mode = TIME;\n /* falls through */\n case TIME:\n //=== NEEDBITS(32); */\n while (bits < 32) {\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n if (state.head) {\n state.head.time = hold;\n }\n if (state.flags & 0x0200) {\n //=== CRC4(state.check, hold)\n hbuf[0] = hold & 0xff;\n hbuf[1] = (hold >>> 8) & 0xff;\n hbuf[2] = (hold >>> 16) & 0xff;\n hbuf[3] = (hold >>> 24) & 0xff;\n state.check = crc32(state.check, hbuf, 4, 0);\n //===\n }\n //=== INITBITS();\n hold = 0;\n bits = 0;\n //===//\n state.mode = OS;\n /* falls through */\n case OS:\n //=== NEEDBITS(16); */\n while (bits < 16) {\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n if (state.head) {\n state.head.xflags = (hold & 0xff);\n state.head.os = (hold >> 8);\n }\n if (state.flags & 0x0200) {\n //=== CRC2(state.check, hold);\n hbuf[0] = hold & 0xff;\n hbuf[1] = (hold >>> 8) & 0xff;\n state.check = crc32(state.check, hbuf, 2, 0);\n //===//\n }\n //=== INITBITS();\n hold = 0;\n bits = 0;\n //===//\n state.mode = EXLEN;\n /* falls through */\n case EXLEN:\n if (state.flags & 0x0400) {\n //=== NEEDBITS(16); */\n while (bits < 16) {\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n state.length = hold;\n if (state.head) {\n state.head.extra_len = hold;\n }\n if (state.flags & 0x0200) {\n //=== CRC2(state.check, hold);\n hbuf[0] = hold & 0xff;\n hbuf[1] = (hold >>> 8) & 0xff;\n state.check = crc32(state.check, hbuf, 2, 0);\n //===//\n }\n //=== INITBITS();\n hold = 0;\n bits = 0;\n //===//\n }\n else if (state.head) {\n state.head.extra = null/*Z_NULL*/;\n }\n state.mode = EXTRA;\n /* falls through */\n case EXTRA:\n if (state.flags & 0x0400) {\n copy = state.length;\n if (copy > have) { copy = have; }\n if (copy) {\n if (state.head) {\n len = state.head.extra_len - state.length;\n if (!state.head.extra) {\n // Use untyped array for more convenient processing later\n state.head.extra = new Array(state.head.extra_len);\n }\n utils.arraySet(\n state.head.extra,\n input,\n next,\n // extra field is limited to 65536 bytes\n // - no need for additional size check\n copy,\n /*len + copy > state.head.extra_max - len ? state.head.extra_max : copy,*/\n len\n );\n //zmemcpy(state.head.extra + len, next,\n // len + copy > state.head.extra_max ?\n // state.head.extra_max - len : copy);\n }\n if (state.flags & 0x0200) {\n state.check = crc32(state.check, input, copy, next);\n }\n have -= copy;\n next += copy;\n state.length -= copy;\n }\n if (state.length) { break inf_leave; }\n }\n state.length = 0;\n state.mode = NAME;\n /* falls through */\n case NAME:\n if (state.flags & 0x0800) {\n if (have === 0) { break inf_leave; }\n copy = 0;\n do {\n // TODO: 2 or 1 bytes?\n len = input[next + copy++];\n /* use constant limit because in js we should not preallocate memory */\n if (state.head && len &&\n (state.length < 65536 /*state.head.name_max*/)) {\n state.head.name += String.fromCharCode(len);\n }\n } while (len && copy < have);\n\n if (state.flags & 0x0200) {\n state.check = crc32(state.check, input, copy, next);\n }\n have -= copy;\n next += copy;\n if (len) { break inf_leave; }\n }\n else if (state.head) {\n state.head.name = null;\n }\n state.length = 0;\n state.mode = COMMENT;\n /* falls through */\n case COMMENT:\n if (state.flags & 0x1000) {\n if (have === 0) { break inf_leave; }\n copy = 0;\n do {\n len = input[next + copy++];\n /* use constant limit because in js we should not preallocate memory */\n if (state.head && len &&\n (state.length < 65536 /*state.head.comm_max*/)) {\n state.head.comment += String.fromCharCode(len);\n }\n } while (len && copy < have);\n if (state.flags & 0x0200) {\n state.check = crc32(state.check, input, copy, next);\n }\n have -= copy;\n next += copy;\n if (len) { break inf_leave; }\n }\n else if (state.head) {\n state.head.comment = null;\n }\n state.mode = HCRC;\n /* falls through */\n case HCRC:\n if (state.flags & 0x0200) {\n //=== NEEDBITS(16); */\n while (bits < 16) {\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n if (hold !== (state.check & 0xffff)) {\n strm.msg = 'header crc mismatch';\n state.mode = BAD;\n break;\n }\n //=== INITBITS();\n hold = 0;\n bits = 0;\n //===//\n }\n if (state.head) {\n state.head.hcrc = ((state.flags >> 9) & 1);\n state.head.done = true;\n }\n strm.adler = state.check = 0;\n state.mode = TYPE;\n break;\n case DICTID:\n //=== NEEDBITS(32); */\n while (bits < 32) {\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n strm.adler = state.check = zswap32(hold);\n //=== INITBITS();\n hold = 0;\n bits = 0;\n //===//\n state.mode = DICT;\n /* falls through */\n case DICT:\n if (state.havedict === 0) {\n //--- RESTORE() ---\n strm.next_out = put;\n strm.avail_out = left;\n strm.next_in = next;\n strm.avail_in = have;\n state.hold = hold;\n state.bits = bits;\n //---\n return Z_NEED_DICT;\n }\n strm.adler = state.check = 1/*adler32(0L, Z_NULL, 0)*/;\n state.mode = TYPE;\n /* falls through */\n case TYPE:\n if (flush === Z_BLOCK || flush === Z_TREES) { break inf_leave; }\n /* falls through */\n case TYPEDO:\n if (state.last) {\n //--- BYTEBITS() ---//\n hold >>>= bits & 7;\n bits -= bits & 7;\n //---//\n state.mode = CHECK;\n break;\n }\n //=== NEEDBITS(3); */\n while (bits < 3) {\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n state.last = (hold & 0x01)/*BITS(1)*/;\n //--- DROPBITS(1) ---//\n hold >>>= 1;\n bits -= 1;\n //---//\n\n switch ((hold & 0x03)/*BITS(2)*/) {\n case 0: /* stored block */\n //Tracev((stderr, \"inflate: stored block%s\\n\",\n // state.last ? \" (last)\" : \"\"));\n state.mode = STORED;\n break;\n case 1: /* fixed block */\n fixedtables(state);\n //Tracev((stderr, \"inflate: fixed codes block%s\\n\",\n // state.last ? \" (last)\" : \"\"));\n state.mode = LEN_; /* decode codes */\n if (flush === Z_TREES) {\n //--- DROPBITS(2) ---//\n hold >>>= 2;\n bits -= 2;\n //---//\n break inf_leave;\n }\n break;\n case 2: /* dynamic block */\n //Tracev((stderr, \"inflate: dynamic codes block%s\\n\",\n // state.last ? \" (last)\" : \"\"));\n state.mode = TABLE;\n break;\n case 3:\n strm.msg = 'invalid block type';\n state.mode = BAD;\n }\n //--- DROPBITS(2) ---//\n hold >>>= 2;\n bits -= 2;\n //---//\n break;\n case STORED:\n //--- BYTEBITS() ---// /* go to byte boundary */\n hold >>>= bits & 7;\n bits -= bits & 7;\n //---//\n //=== NEEDBITS(32); */\n while (bits < 32) {\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n if ((hold & 0xffff) !== ((hold >>> 16) ^ 0xffff)) {\n strm.msg = 'invalid stored block lengths';\n state.mode = BAD;\n break;\n }\n state.length = hold & 0xffff;\n //Tracev((stderr, \"inflate: stored length %u\\n\",\n // state.length));\n //=== INITBITS();\n hold = 0;\n bits = 0;\n //===//\n state.mode = COPY_;\n if (flush === Z_TREES) { break inf_leave; }\n /* falls through */\n case COPY_:\n state.mode = COPY;\n /* falls through */\n case COPY:\n copy = state.length;\n if (copy) {\n if (copy > have) { copy = have; }\n if (copy > left) { copy = left; }\n if (copy === 0) { break inf_leave; }\n //--- zmemcpy(put, next, copy); ---\n utils.arraySet(output, input, next, copy, put);\n //---//\n have -= copy;\n next += copy;\n left -= copy;\n put += copy;\n state.length -= copy;\n break;\n }\n //Tracev((stderr, \"inflate: stored end\\n\"));\n state.mode = TYPE;\n break;\n case TABLE:\n //=== NEEDBITS(14); */\n while (bits < 14) {\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n state.nlen = (hold & 0x1f)/*BITS(5)*/ + 257;\n //--- DROPBITS(5) ---//\n hold >>>= 5;\n bits -= 5;\n //---//\n state.ndist = (hold & 0x1f)/*BITS(5)*/ + 1;\n //--- DROPBITS(5) ---//\n hold >>>= 5;\n bits -= 5;\n //---//\n state.ncode = (hold & 0x0f)/*BITS(4)*/ + 4;\n //--- DROPBITS(4) ---//\n hold >>>= 4;\n bits -= 4;\n //---//\n//#ifndef PKZIP_BUG_WORKAROUND\n if (state.nlen > 286 || state.ndist > 30) {\n strm.msg = 'too many length or distance symbols';\n state.mode = BAD;\n break;\n }\n//#endif\n //Tracev((stderr, \"inflate: table sizes ok\\n\"));\n state.have = 0;\n state.mode = LENLENS;\n /* falls through */\n case LENLENS:\n while (state.have < state.ncode) {\n //=== NEEDBITS(3);\n while (bits < 3) {\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n state.lens[order[state.have++]] = (hold & 0x07);//BITS(3);\n //--- DROPBITS(3) ---//\n hold >>>= 3;\n bits -= 3;\n //---//\n }\n while (state.have < 19) {\n state.lens[order[state.have++]] = 0;\n }\n // We have separate tables & no pointers. 2 commented lines below not needed.\n //state.next = state.codes;\n //state.lencode = state.next;\n // Switch to use dynamic table\n state.lencode = state.lendyn;\n state.lenbits = 7;\n\n opts = { bits: state.lenbits };\n ret = inflate_table(CODES, state.lens, 0, 19, state.lencode, 0, state.work, opts);\n state.lenbits = opts.bits;\n\n if (ret) {\n strm.msg = 'invalid code lengths set';\n state.mode = BAD;\n break;\n }\n //Tracev((stderr, \"inflate: code lengths ok\\n\"));\n state.have = 0;\n state.mode = CODELENS;\n /* falls through */\n case CODELENS:\n while (state.have < state.nlen + state.ndist) {\n for (;;) {\n here = state.lencode[hold & ((1 << state.lenbits) - 1)];/*BITS(state.lenbits)*/\n here_bits = here >>> 24;\n here_op = (here >>> 16) & 0xff;\n here_val = here & 0xffff;\n\n if ((here_bits) <= bits) { break; }\n //--- PULLBYTE() ---//\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n //---//\n }\n if (here_val < 16) {\n //--- DROPBITS(here.bits) ---//\n hold >>>= here_bits;\n bits -= here_bits;\n //---//\n state.lens[state.have++] = here_val;\n }\n else {\n if (here_val === 16) {\n //=== NEEDBITS(here.bits + 2);\n n = here_bits + 2;\n while (bits < n) {\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n //--- DROPBITS(here.bits) ---//\n hold >>>= here_bits;\n bits -= here_bits;\n //---//\n if (state.have === 0) {\n strm.msg = 'invalid bit length repeat';\n state.mode = BAD;\n break;\n }\n len = state.lens[state.have - 1];\n copy = 3 + (hold & 0x03);//BITS(2);\n //--- DROPBITS(2) ---//\n hold >>>= 2;\n bits -= 2;\n //---//\n }\n else if (here_val === 17) {\n //=== NEEDBITS(here.bits + 3);\n n = here_bits + 3;\n while (bits < n) {\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n //--- DROPBITS(here.bits) ---//\n hold >>>= here_bits;\n bits -= here_bits;\n //---//\n len = 0;\n copy = 3 + (hold & 0x07);//BITS(3);\n //--- DROPBITS(3) ---//\n hold >>>= 3;\n bits -= 3;\n //---//\n }\n else {\n //=== NEEDBITS(here.bits + 7);\n n = here_bits + 7;\n while (bits < n) {\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n //--- DROPBITS(here.bits) ---//\n hold >>>= here_bits;\n bits -= here_bits;\n //---//\n len = 0;\n copy = 11 + (hold & 0x7f);//BITS(7);\n //--- DROPBITS(7) ---//\n hold >>>= 7;\n bits -= 7;\n //---//\n }\n if (state.have + copy > state.nlen + state.ndist) {\n strm.msg = 'invalid bit length repeat';\n state.mode = BAD;\n break;\n }\n while (copy--) {\n state.lens[state.have++] = len;\n }\n }\n }\n\n /* handle error breaks in while */\n if (state.mode === BAD) { break; }\n\n /* check for end-of-block code (better have one) */\n if (state.lens[256] === 0) {\n strm.msg = 'invalid code -- missing end-of-block';\n state.mode = BAD;\n break;\n }\n\n /* build code tables -- note: do not change the lenbits or distbits\n values here (9 and 6) without reading the comments in inftrees.h\n concerning the ENOUGH constants, which depend on those values */\n state.lenbits = 9;\n\n opts = { bits: state.lenbits };\n ret = inflate_table(LENS, state.lens, 0, state.nlen, state.lencode, 0, state.work, opts);\n // We have separate tables & no pointers. 2 commented lines below not needed.\n // state.next_index = opts.table_index;\n state.lenbits = opts.bits;\n // state.lencode = state.next;\n\n if (ret) {\n strm.msg = 'invalid literal/lengths set';\n state.mode = BAD;\n break;\n }\n\n state.distbits = 6;\n //state.distcode.copy(state.codes);\n // Switch to use dynamic table\n state.distcode = state.distdyn;\n opts = { bits: state.distbits };\n ret = inflate_table(DISTS, state.lens, state.nlen, state.ndist, state.distcode, 0, state.work, opts);\n // We have separate tables & no pointers. 2 commented lines below not needed.\n // state.next_index = opts.table_index;\n state.distbits = opts.bits;\n // state.distcode = state.next;\n\n if (ret) {\n strm.msg = 'invalid distances set';\n state.mode = BAD;\n break;\n }\n //Tracev((stderr, 'inflate: codes ok\\n'));\n state.mode = LEN_;\n if (flush === Z_TREES) { break inf_leave; }\n /* falls through */\n case LEN_:\n state.mode = LEN;\n /* falls through */\n case LEN:\n if (have >= 6 && left >= 258) {\n //--- RESTORE() ---\n strm.next_out = put;\n strm.avail_out = left;\n strm.next_in = next;\n strm.avail_in = have;\n state.hold = hold;\n state.bits = bits;\n //---\n inflate_fast(strm, _out);\n //--- LOAD() ---\n put = strm.next_out;\n output = strm.output;\n left = strm.avail_out;\n next = strm.next_in;\n input = strm.input;\n have = strm.avail_in;\n hold = state.hold;\n bits = state.bits;\n //---\n\n if (state.mode === TYPE) {\n state.back = -1;\n }\n break;\n }\n state.back = 0;\n for (;;) {\n here = state.lencode[hold & ((1 << state.lenbits) - 1)]; /*BITS(state.lenbits)*/\n here_bits = here >>> 24;\n here_op = (here >>> 16) & 0xff;\n here_val = here & 0xffff;\n\n if (here_bits <= bits) { break; }\n //--- PULLBYTE() ---//\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n //---//\n }\n if (here_op && (here_op & 0xf0) === 0) {\n last_bits = here_bits;\n last_op = here_op;\n last_val = here_val;\n for (;;) {\n here = state.lencode[last_val +\n ((hold & ((1 << (last_bits + last_op)) - 1))/*BITS(last.bits + last.op)*/ >> last_bits)];\n here_bits = here >>> 24;\n here_op = (here >>> 16) & 0xff;\n here_val = here & 0xffff;\n\n if ((last_bits + here_bits) <= bits) { break; }\n //--- PULLBYTE() ---//\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n //---//\n }\n //--- DROPBITS(last.bits) ---//\n hold >>>= last_bits;\n bits -= last_bits;\n //---//\n state.back += last_bits;\n }\n //--- DROPBITS(here.bits) ---//\n hold >>>= here_bits;\n bits -= here_bits;\n //---//\n state.back += here_bits;\n state.length = here_val;\n if (here_op === 0) {\n //Tracevv((stderr, here.val >= 0x20 && here.val < 0x7f ?\n // \"inflate: literal '%c'\\n\" :\n // \"inflate: literal 0x%02x\\n\", here.val));\n state.mode = LIT;\n break;\n }\n if (here_op & 32) {\n //Tracevv((stderr, \"inflate: end of block\\n\"));\n state.back = -1;\n state.mode = TYPE;\n break;\n }\n if (here_op & 64) {\n strm.msg = 'invalid literal/length code';\n state.mode = BAD;\n break;\n }\n state.extra = here_op & 15;\n state.mode = LENEXT;\n /* falls through */\n case LENEXT:\n if (state.extra) {\n //=== NEEDBITS(state.extra);\n n = state.extra;\n while (bits < n) {\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n state.length += hold & ((1 << state.extra) - 1)/*BITS(state.extra)*/;\n //--- DROPBITS(state.extra) ---//\n hold >>>= state.extra;\n bits -= state.extra;\n //---//\n state.back += state.extra;\n }\n //Tracevv((stderr, \"inflate: length %u\\n\", state.length));\n state.was = state.length;\n state.mode = DIST;\n /* falls through */\n case DIST:\n for (;;) {\n here = state.distcode[hold & ((1 << state.distbits) - 1)];/*BITS(state.distbits)*/\n here_bits = here >>> 24;\n here_op = (here >>> 16) & 0xff;\n here_val = here & 0xffff;\n\n if ((here_bits) <= bits) { break; }\n //--- PULLBYTE() ---//\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n //---//\n }\n if ((here_op & 0xf0) === 0) {\n last_bits = here_bits;\n last_op = here_op;\n last_val = here_val;\n for (;;) {\n here = state.distcode[last_val +\n ((hold & ((1 << (last_bits + last_op)) - 1))/*BITS(last.bits + last.op)*/ >> last_bits)];\n here_bits = here >>> 24;\n here_op = (here >>> 16) & 0xff;\n here_val = here & 0xffff;\n\n if ((last_bits + here_bits) <= bits) { break; }\n //--- PULLBYTE() ---//\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n //---//\n }\n //--- DROPBITS(last.bits) ---//\n hold >>>= last_bits;\n bits -= last_bits;\n //---//\n state.back += last_bits;\n }\n //--- DROPBITS(here.bits) ---//\n hold >>>= here_bits;\n bits -= here_bits;\n //---//\n state.back += here_bits;\n if (here_op & 64) {\n strm.msg = 'invalid distance code';\n state.mode = BAD;\n break;\n }\n state.offset = here_val;\n state.extra = (here_op) & 15;\n state.mode = DISTEXT;\n /* falls through */\n case DISTEXT:\n if (state.extra) {\n //=== NEEDBITS(state.extra);\n n = state.extra;\n while (bits < n) {\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n state.offset += hold & ((1 << state.extra) - 1)/*BITS(state.extra)*/;\n //--- DROPBITS(state.extra) ---//\n hold >>>= state.extra;\n bits -= state.extra;\n //---//\n state.back += state.extra;\n }\n//#ifdef INFLATE_STRICT\n if (state.offset > state.dmax) {\n strm.msg = 'invalid distance too far back';\n state.mode = BAD;\n break;\n }\n//#endif\n //Tracevv((stderr, \"inflate: distance %u\\n\", state.offset));\n state.mode = MATCH;\n /* falls through */\n case MATCH:\n if (left === 0) { break inf_leave; }\n copy = _out - left;\n if (state.offset > copy) { /* copy from window */\n copy = state.offset - copy;\n if (copy > state.whave) {\n if (state.sane) {\n strm.msg = 'invalid distance too far back';\n state.mode = BAD;\n break;\n }\n// (!) This block is disabled in zlib defaults,\n// don't enable it for binary compatibility\n//#ifdef INFLATE_ALLOW_INVALID_DISTANCE_TOOFAR_ARRR\n// Trace((stderr, \"inflate.c too far\\n\"));\n// copy -= state.whave;\n// if (copy > state.length) { copy = state.length; }\n// if (copy > left) { copy = left; }\n// left -= copy;\n// state.length -= copy;\n// do {\n// output[put++] = 0;\n// } while (--copy);\n// if (state.length === 0) { state.mode = LEN; }\n// break;\n//#endif\n }\n if (copy > state.wnext) {\n copy -= state.wnext;\n from = state.wsize - copy;\n }\n else {\n from = state.wnext - copy;\n }\n if (copy > state.length) { copy = state.length; }\n from_source = state.window;\n }\n else { /* copy from output */\n from_source = output;\n from = put - state.offset;\n copy = state.length;\n }\n if (copy > left) { copy = left; }\n left -= copy;\n state.length -= copy;\n do {\n output[put++] = from_source[from++];\n } while (--copy);\n if (state.length === 0) { state.mode = LEN; }\n break;\n case LIT:\n if (left === 0) { break inf_leave; }\n output[put++] = state.length;\n left--;\n state.mode = LEN;\n break;\n case CHECK:\n if (state.wrap) {\n //=== NEEDBITS(32);\n while (bits < 32) {\n if (have === 0) { break inf_leave; }\n have--;\n // Use '|' instead of '+' to make sure that result is signed\n hold |= input[next++] << bits;\n bits += 8;\n }\n //===//\n _out -= left;\n strm.total_out += _out;\n state.total += _out;\n if (_out) {\n strm.adler = state.check =\n /*UPDATE(state.check, put - _out, _out);*/\n (state.flags ? crc32(state.check, output, _out, put - _out) : adler32(state.check, output, _out, put - _out));\n\n }\n _out = left;\n // NB: crc32 stored as signed 32-bit int, zswap32 returns signed too\n if ((state.flags ? hold : zswap32(hold)) !== state.check) {\n strm.msg = 'incorrect data check';\n state.mode = BAD;\n break;\n }\n //=== INITBITS();\n hold = 0;\n bits = 0;\n //===//\n //Tracev((stderr, \"inflate: check matches trailer\\n\"));\n }\n state.mode = LENGTH;\n /* falls through */\n case LENGTH:\n if (state.wrap && state.flags) {\n //=== NEEDBITS(32);\n while (bits < 32) {\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n if (hold !== (state.total & 0xffffffff)) {\n strm.msg = 'incorrect length check';\n state.mode = BAD;\n break;\n }\n //=== INITBITS();\n hold = 0;\n bits = 0;\n //===//\n //Tracev((stderr, \"inflate: length matches trailer\\n\"));\n }\n state.mode = DONE;\n /* falls through */\n case DONE:\n ret = Z_STREAM_END;\n break inf_leave;\n case BAD:\n ret = Z_DATA_ERROR;\n break inf_leave;\n case MEM:\n return Z_MEM_ERROR;\n case SYNC:\n /* falls through */\n default:\n return Z_STREAM_ERROR;\n }\n }\n\n // inf_leave <- here is real place for \"goto inf_leave\", emulated via \"break inf_leave\"\n\n /*\n Return from inflate(), updating the total counts and the check value.\n If there was no progress during the inflate() call, return a buffer\n error. Call updatewindow() to create and/or update the window state.\n Note: a memory error from inflate() is non-recoverable.\n */\n\n //--- RESTORE() ---\n strm.next_out = put;\n strm.avail_out = left;\n strm.next_in = next;\n strm.avail_in = have;\n state.hold = hold;\n state.bits = bits;\n //---\n\n if (state.wsize || (_out !== strm.avail_out && state.mode < BAD &&\n (state.mode < CHECK || flush !== Z_FINISH))) {\n if (updatewindow(strm, strm.output, strm.next_out, _out - strm.avail_out)) {\n state.mode = MEM;\n return Z_MEM_ERROR;\n }\n }\n _in -= strm.avail_in;\n _out -= strm.avail_out;\n strm.total_in += _in;\n strm.total_out += _out;\n state.total += _out;\n if (state.wrap && _out) {\n strm.adler = state.check = /*UPDATE(state.check, strm.next_out - _out, _out);*/\n (state.flags ? crc32(state.check, output, _out, strm.next_out - _out) : adler32(state.check, output, _out, strm.next_out - _out));\n }\n strm.data_type = state.bits + (state.last ? 64 : 0) +\n (state.mode === TYPE ? 128 : 0) +\n (state.mode === LEN_ || state.mode === COPY_ ? 256 : 0);\n if (((_in === 0 && _out === 0) || flush === Z_FINISH) && ret === Z_OK) {\n ret = Z_BUF_ERROR;\n }\n return ret;\n}\n\nfunction inflateEnd(strm) {\n\n if (!strm || !strm.state /*|| strm->zfree == (free_func)0*/) {\n return Z_STREAM_ERROR;\n }\n\n var state = strm.state;\n if (state.window) {\n state.window = null;\n }\n strm.state = null;\n return Z_OK;\n}\n\nfunction inflateGetHeader(strm, head) {\n var state;\n\n /* check state */\n if (!strm || !strm.state) { return Z_STREAM_ERROR; }\n state = strm.state;\n if ((state.wrap & 2) === 0) { return Z_STREAM_ERROR; }\n\n /* save header structure */\n state.head = head;\n head.done = false;\n return Z_OK;\n}\n\nfunction inflateSetDictionary(strm, dictionary) {\n var dictLength = dictionary.length;\n\n var state;\n var dictid;\n var ret;\n\n /* check state */\n if (!strm /* == Z_NULL */ || !strm.state /* == Z_NULL */) { return Z_STREAM_ERROR; }\n state = strm.state;\n\n if (state.wrap !== 0 && state.mode !== DICT) {\n return Z_STREAM_ERROR;\n }\n\n /* check for correct dictionary identifier */\n if (state.mode === DICT) {\n dictid = 1; /* adler32(0, null, 0)*/\n /* dictid = adler32(dictid, dictionary, dictLength); */\n dictid = adler32(dictid, dictionary, dictLength, 0);\n if (dictid !== state.check) {\n return Z_DATA_ERROR;\n }\n }\n /* copy dictionary to window using updatewindow(), which will amend the\n existing dictionary if appropriate */\n ret = updatewindow(strm, dictionary, dictLength, dictLength);\n if (ret) {\n state.mode = MEM;\n return Z_MEM_ERROR;\n }\n state.havedict = 1;\n // Tracev((stderr, \"inflate: dictionary set\\n\"));\n return Z_OK;\n}\n\nexports.inflateReset = inflateReset;\nexports.inflateReset2 = inflateReset2;\nexports.inflateResetKeep = inflateResetKeep;\nexports.inflateInit = inflateInit;\nexports.inflateInit2 = inflateInit2;\nexports.inflate = inflate;\nexports.inflateEnd = inflateEnd;\nexports.inflateGetHeader = inflateGetHeader;\nexports.inflateSetDictionary = inflateSetDictionary;\nexports.inflateInfo = 'pako inflate (from Nodeca project)';\n\n/* Not implemented\nexports.inflateCopy = inflateCopy;\nexports.inflateGetDictionary = inflateGetDictionary;\nexports.inflateMark = inflateMark;\nexports.inflatePrime = inflatePrime;\nexports.inflateSync = inflateSync;\nexports.inflateSyncPoint = inflateSyncPoint;\nexports.inflateUndermine = inflateUndermine;\n*/\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/pako/lib/zlib/inflate.js?");
794
795/***/ }),
796
797/***/ "./node_modules/pako/lib/zlib/inftrees.js":
798/*!************************************************!*\
799 !*** ./node_modules/pako/lib/zlib/inftrees.js ***!
800 \************************************************/
801/*! no static exports found */
802/***/ (function(module, exports, __webpack_require__) {
803
804"use strict";
805eval("\n\n// (C) 1995-2013 Jean-loup Gailly and Mark Adler\n// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin\n//\n// This software is provided 'as-is', without any express or implied\n// warranty. In no event will the authors be held liable for any damages\n// arising from the use of this software.\n//\n// Permission is granted to anyone to use this software for any purpose,\n// including commercial applications, and to alter it and redistribute it\n// freely, subject to the following restrictions:\n//\n// 1. The origin of this software must not be misrepresented; you must not\n// claim that you wrote the original software. If you use this software\n// in a product, an acknowledgment in the product documentation would be\n// appreciated but is not required.\n// 2. Altered source versions must be plainly marked as such, and must not be\n// misrepresented as being the original software.\n// 3. This notice may not be removed or altered from any source distribution.\n\nvar utils = __webpack_require__(/*! ../utils/common */ \"./node_modules/pako/lib/utils/common.js\");\n\nvar MAXBITS = 15;\nvar ENOUGH_LENS = 852;\nvar ENOUGH_DISTS = 592;\n//var ENOUGH = (ENOUGH_LENS+ENOUGH_DISTS);\n\nvar CODES = 0;\nvar LENS = 1;\nvar DISTS = 2;\n\nvar lbase = [ /* Length codes 257..285 base */\n 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31,\n 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0\n];\n\nvar lext = [ /* Length codes 257..285 extra */\n 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18,\n 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 72, 78\n];\n\nvar dbase = [ /* Distance codes 0..29 base */\n 1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193,\n 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145,\n 8193, 12289, 16385, 24577, 0, 0\n];\n\nvar dext = [ /* Distance codes 0..29 extra */\n 16, 16, 16, 16, 17, 17, 18, 18, 19, 19, 20, 20, 21, 21, 22, 22,\n 23, 23, 24, 24, 25, 25, 26, 26, 27, 27,\n 28, 28, 29, 29, 64, 64\n];\n\nmodule.exports = function inflate_table(type, lens, lens_index, codes, table, table_index, work, opts)\n{\n var bits = opts.bits;\n //here = opts.here; /* table entry for duplication */\n\n var len = 0; /* a code's length in bits */\n var sym = 0; /* index of code symbols */\n var min = 0, max = 0; /* minimum and maximum code lengths */\n var root = 0; /* number of index bits for root table */\n var curr = 0; /* number of index bits for current table */\n var drop = 0; /* code bits to drop for sub-table */\n var left = 0; /* number of prefix codes available */\n var used = 0; /* code entries in table used */\n var huff = 0; /* Huffman code */\n var incr; /* for incrementing code, index */\n var fill; /* index for replicating entries */\n var low; /* low bits for current root entry */\n var mask; /* mask for low root bits */\n var next; /* next available space in table */\n var base = null; /* base value table to use */\n var base_index = 0;\n// var shoextra; /* extra bits table to use */\n var end; /* use base and extra for symbol > end */\n var count = new utils.Buf16(MAXBITS + 1); //[MAXBITS+1]; /* number of codes of each length */\n var offs = new utils.Buf16(MAXBITS + 1); //[MAXBITS+1]; /* offsets in table for each length */\n var extra = null;\n var extra_index = 0;\n\n var here_bits, here_op, here_val;\n\n /*\n Process a set of code lengths to create a canonical Huffman code. The\n code lengths are lens[0..codes-1]. Each length corresponds to the\n symbols 0..codes-1. The Huffman code is generated by first sorting the\n symbols by length from short to long, and retaining the symbol order\n for codes with equal lengths. Then the code starts with all zero bits\n for the first code of the shortest length, and the codes are integer\n increments for the same length, and zeros are appended as the length\n increases. For the deflate format, these bits are stored backwards\n from their more natural integer increment ordering, and so when the\n decoding tables are built in the large loop below, the integer codes\n are incremented backwards.\n\n This routine assumes, but does not check, that all of the entries in\n lens[] are in the range 0..MAXBITS. The caller must assure this.\n 1..MAXBITS is interpreted as that code length. zero means that that\n symbol does not occur in this code.\n\n The codes are sorted by computing a count of codes for each length,\n creating from that a table of starting indices for each length in the\n sorted table, and then entering the symbols in order in the sorted\n table. The sorted table is work[], with that space being provided by\n the caller.\n\n The length counts are used for other purposes as well, i.e. finding\n the minimum and maximum length codes, determining if there are any\n codes at all, checking for a valid set of lengths, and looking ahead\n at length counts to determine sub-table sizes when building the\n decoding tables.\n */\n\n /* accumulate lengths for codes (assumes lens[] all in 0..MAXBITS) */\n for (len = 0; len <= MAXBITS; len++) {\n count[len] = 0;\n }\n for (sym = 0; sym < codes; sym++) {\n count[lens[lens_index + sym]]++;\n }\n\n /* bound code lengths, force root to be within code lengths */\n root = bits;\n for (max = MAXBITS; max >= 1; max--) {\n if (count[max] !== 0) { break; }\n }\n if (root > max) {\n root = max;\n }\n if (max === 0) { /* no symbols to code at all */\n //table.op[opts.table_index] = 64; //here.op = (var char)64; /* invalid code marker */\n //table.bits[opts.table_index] = 1; //here.bits = (var char)1;\n //table.val[opts.table_index++] = 0; //here.val = (var short)0;\n table[table_index++] = (1 << 24) | (64 << 16) | 0;\n\n\n //table.op[opts.table_index] = 64;\n //table.bits[opts.table_index] = 1;\n //table.val[opts.table_index++] = 0;\n table[table_index++] = (1 << 24) | (64 << 16) | 0;\n\n opts.bits = 1;\n return 0; /* no symbols, but wait for decoding to report error */\n }\n for (min = 1; min < max; min++) {\n if (count[min] !== 0) { break; }\n }\n if (root < min) {\n root = min;\n }\n\n /* check for an over-subscribed or incomplete set of lengths */\n left = 1;\n for (len = 1; len <= MAXBITS; len++) {\n left <<= 1;\n left -= count[len];\n if (left < 0) {\n return -1;\n } /* over-subscribed */\n }\n if (left > 0 && (type === CODES || max !== 1)) {\n return -1; /* incomplete set */\n }\n\n /* generate offsets into symbol table for each length for sorting */\n offs[1] = 0;\n for (len = 1; len < MAXBITS; len++) {\n offs[len + 1] = offs[len] + count[len];\n }\n\n /* sort symbols by length, by symbol order within each length */\n for (sym = 0; sym < codes; sym++) {\n if (lens[lens_index + sym] !== 0) {\n work[offs[lens[lens_index + sym]]++] = sym;\n }\n }\n\n /*\n Create and fill in decoding tables. In this loop, the table being\n filled is at next and has curr index bits. The code being used is huff\n with length len. That code is converted to an index by dropping drop\n bits off of the bottom. For codes where len is less than drop + curr,\n those top drop + curr - len bits are incremented through all values to\n fill the table with replicated entries.\n\n root is the number of index bits for the root table. When len exceeds\n root, sub-tables are created pointed to by the root entry with an index\n of the low root bits of huff. This is saved in low to check for when a\n new sub-table should be started. drop is zero when the root table is\n being filled, and drop is root when sub-tables are being filled.\n\n When a new sub-table is needed, it is necessary to look ahead in the\n code lengths to determine what size sub-table is needed. The length\n counts are used for this, and so count[] is decremented as codes are\n entered in the tables.\n\n used keeps track of how many table entries have been allocated from the\n provided *table space. It is checked for LENS and DIST tables against\n the constants ENOUGH_LENS and ENOUGH_DISTS to guard against changes in\n the initial root table size constants. See the comments in inftrees.h\n for more information.\n\n sym increments through all symbols, and the loop terminates when\n all codes of length max, i.e. all codes, have been processed. This\n routine permits incomplete codes, so another loop after this one fills\n in the rest of the decoding tables with invalid code markers.\n */\n\n /* set up for code type */\n // poor man optimization - use if-else instead of switch,\n // to avoid deopts in old v8\n if (type === CODES) {\n base = extra = work; /* dummy value--not used */\n end = 19;\n\n } else if (type === LENS) {\n base = lbase;\n base_index -= 257;\n extra = lext;\n extra_index -= 257;\n end = 256;\n\n } else { /* DISTS */\n base = dbase;\n extra = dext;\n end = -1;\n }\n\n /* initialize opts for loop */\n huff = 0; /* starting code */\n sym = 0; /* starting code symbol */\n len = min; /* starting code length */\n next = table_index; /* current table to fill in */\n curr = root; /* current table index bits */\n drop = 0; /* current bits to drop from code for index */\n low = -1; /* trigger new sub-table when len > root */\n used = 1 << root; /* use root table entries */\n mask = used - 1; /* mask for comparing low */\n\n /* check available table space */\n if ((type === LENS && used > ENOUGH_LENS) ||\n (type === DISTS && used > ENOUGH_DISTS)) {\n return 1;\n }\n\n /* process all codes and make table entries */\n for (;;) {\n /* create table entry */\n here_bits = len - drop;\n if (work[sym] < end) {\n here_op = 0;\n here_val = work[sym];\n }\n else if (work[sym] > end) {\n here_op = extra[extra_index + work[sym]];\n here_val = base[base_index + work[sym]];\n }\n else {\n here_op = 32 + 64; /* end of block */\n here_val = 0;\n }\n\n /* replicate for those indices with low len bits equal to huff */\n incr = 1 << (len - drop);\n fill = 1 << curr;\n min = fill; /* save offset to next table */\n do {\n fill -= incr;\n table[next + (huff >> drop) + fill] = (here_bits << 24) | (here_op << 16) | here_val |0;\n } while (fill !== 0);\n\n /* backwards increment the len-bit code huff */\n incr = 1 << (len - 1);\n while (huff & incr) {\n incr >>= 1;\n }\n if (incr !== 0) {\n huff &= incr - 1;\n huff += incr;\n } else {\n huff = 0;\n }\n\n /* go to next symbol, update count, len */\n sym++;\n if (--count[len] === 0) {\n if (len === max) { break; }\n len = lens[lens_index + work[sym]];\n }\n\n /* create new sub-table if needed */\n if (len > root && (huff & mask) !== low) {\n /* if first time, transition to sub-tables */\n if (drop === 0) {\n drop = root;\n }\n\n /* increment past last table */\n next += min; /* here min is 1 << curr */\n\n /* determine length of next table */\n curr = len - drop;\n left = 1 << curr;\n while (curr + drop < max) {\n left -= count[curr + drop];\n if (left <= 0) { break; }\n curr++;\n left <<= 1;\n }\n\n /* check for enough space */\n used += 1 << curr;\n if ((type === LENS && used > ENOUGH_LENS) ||\n (type === DISTS && used > ENOUGH_DISTS)) {\n return 1;\n }\n\n /* point entry in root table to sub-table */\n low = huff & mask;\n /*table.op[low] = curr;\n table.bits[low] = root;\n table.val[low] = next - opts.table_index;*/\n table[low] = (root << 24) | (curr << 16) | (next - table_index) |0;\n }\n }\n\n /* fill in remaining table entry if code is incomplete (guaranteed to have\n at most one remaining entry, since if the code is incomplete, the\n maximum code length that was allowed to get this far is one bit) */\n if (huff !== 0) {\n //table.op[next + huff] = 64; /* invalid code marker */\n //table.bits[next + huff] = len - drop;\n //table.val[next + huff] = 0;\n table[next + huff] = ((len - drop) << 24) | (64 << 16) |0;\n }\n\n /* set return parameters */\n //opts.table_index += used;\n opts.bits = root;\n return 0;\n};\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/pako/lib/zlib/inftrees.js?");
806
807/***/ }),
808
809/***/ "./node_modules/pako/lib/zlib/messages.js":
810/*!************************************************!*\
811 !*** ./node_modules/pako/lib/zlib/messages.js ***!
812 \************************************************/
813/*! no static exports found */
814/***/ (function(module, exports, __webpack_require__) {
815
816"use strict";
817eval("\n\n// (C) 1995-2013 Jean-loup Gailly and Mark Adler\n// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin\n//\n// This software is provided 'as-is', without any express or implied\n// warranty. In no event will the authors be held liable for any damages\n// arising from the use of this software.\n//\n// Permission is granted to anyone to use this software for any purpose,\n// including commercial applications, and to alter it and redistribute it\n// freely, subject to the following restrictions:\n//\n// 1. The origin of this software must not be misrepresented; you must not\n// claim that you wrote the original software. If you use this software\n// in a product, an acknowledgment in the product documentation would be\n// appreciated but is not required.\n// 2. Altered source versions must be plainly marked as such, and must not be\n// misrepresented as being the original software.\n// 3. This notice may not be removed or altered from any source distribution.\n\nmodule.exports = {\n 2: 'need dictionary', /* Z_NEED_DICT 2 */\n 1: 'stream end', /* Z_STREAM_END 1 */\n 0: '', /* Z_OK 0 */\n '-1': 'file error', /* Z_ERRNO (-1) */\n '-2': 'stream error', /* Z_STREAM_ERROR (-2) */\n '-3': 'data error', /* Z_DATA_ERROR (-3) */\n '-4': 'insufficient memory', /* Z_MEM_ERROR (-4) */\n '-5': 'buffer error', /* Z_BUF_ERROR (-5) */\n '-6': 'incompatible version' /* Z_VERSION_ERROR (-6) */\n};\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/pako/lib/zlib/messages.js?");
818
819/***/ }),
820
821/***/ "./node_modules/pako/lib/zlib/zstream.js":
822/*!***********************************************!*\
823 !*** ./node_modules/pako/lib/zlib/zstream.js ***!
824 \***********************************************/
825/*! no static exports found */
826/***/ (function(module, exports, __webpack_require__) {
827
828"use strict";
829eval("\n\n// (C) 1995-2013 Jean-loup Gailly and Mark Adler\n// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin\n//\n// This software is provided 'as-is', without any express or implied\n// warranty. In no event will the authors be held liable for any damages\n// arising from the use of this software.\n//\n// Permission is granted to anyone to use this software for any purpose,\n// including commercial applications, and to alter it and redistribute it\n// freely, subject to the following restrictions:\n//\n// 1. The origin of this software must not be misrepresented; you must not\n// claim that you wrote the original software. If you use this software\n// in a product, an acknowledgment in the product documentation would be\n// appreciated but is not required.\n// 2. Altered source versions must be plainly marked as such, and must not be\n// misrepresented as being the original software.\n// 3. This notice may not be removed or altered from any source distribution.\n\nfunction ZStream() {\n /* next input byte */\n this.input = null; // JS specific, because we have no pointers\n this.next_in = 0;\n /* number of bytes available at input */\n this.avail_in = 0;\n /* total number of input bytes read so far */\n this.total_in = 0;\n /* next output byte should be put there */\n this.output = null; // JS specific, because we have no pointers\n this.next_out = 0;\n /* remaining free space at output */\n this.avail_out = 0;\n /* total number of bytes output so far */\n this.total_out = 0;\n /* last error message, NULL if no error */\n this.msg = ''/*Z_NULL*/;\n /* not visible by applications */\n this.state = null;\n /* best guess about the data type: binary or text */\n this.data_type = 2/*Z_UNKNOWN*/;\n /* adler32 value of the uncompressed data */\n this.adler = 0;\n}\n\nmodule.exports = ZStream;\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/pako/lib/zlib/zstream.js?");
830
831/***/ }),
832
833/***/ "./node_modules/process-nextick-args/index.js":
834/*!****************************************************!*\
835 !*** ./node_modules/process-nextick-args/index.js ***!
836 \****************************************************/
837/*! no static exports found */
838/***/ (function(module, exports, __webpack_require__) {
839
840"use strict";
841eval("/* WEBPACK VAR INJECTION */(function(process) {\n\nif (typeof process === 'undefined' ||\n !process.version ||\n process.version.indexOf('v0.') === 0 ||\n process.version.indexOf('v1.') === 0 && process.version.indexOf('v1.8.') !== 0) {\n module.exports = { nextTick: nextTick };\n} else {\n module.exports = process\n}\n\nfunction nextTick(fn, arg1, arg2, arg3) {\n if (typeof fn !== 'function') {\n throw new TypeError('\"callback\" argument must be a function');\n }\n var len = arguments.length;\n var args, i;\n switch (len) {\n case 0:\n case 1:\n return process.nextTick(fn);\n case 2:\n return process.nextTick(function afterTickOne() {\n fn.call(null, arg1);\n });\n case 3:\n return process.nextTick(function afterTickTwo() {\n fn.call(null, arg1, arg2);\n });\n case 4:\n return process.nextTick(function afterTickThree() {\n fn.call(null, arg1, arg2, arg3);\n });\n default:\n args = new Array(len - 1);\n i = 0;\n while (i < args.length) {\n args[i++] = arguments[i];\n }\n return process.nextTick(function afterTick() {\n fn.apply(null, args);\n });\n }\n}\n\n\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../process/browser.js */ \"./node_modules/process/browser.js\")))\n\n//# sourceURL=webpack://GeoRaster/./node_modules/process-nextick-args/index.js?");
842
843/***/ }),
844
845/***/ "./node_modules/process/browser.js":
846/*!*****************************************!*\
847 !*** ./node_modules/process/browser.js ***!
848 \*****************************************/
849/*! no static exports found */
850/***/ (function(module, exports) {
851
852eval("// shim for using process in browser\nvar process = module.exports = {};\n\n// cached from whatever global is present so that test runners that stub it\n// don't break things. But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals. It's inside a\n// function because try/catches deoptimize in certain engines.\n\nvar cachedSetTimeout;\nvar cachedClearTimeout;\n\nfunction defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n}\nfunction defaultClearTimeout () {\n throw new Error('clearTimeout has not been defined');\n}\n(function () {\n try {\n if (typeof setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n } else {\n cachedSetTimeout = defaultSetTimout;\n }\n } catch (e) {\n cachedSetTimeout = defaultSetTimout;\n }\n try {\n if (typeof clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n } else {\n cachedClearTimeout = defaultClearTimeout;\n }\n } catch (e) {\n cachedClearTimeout = defaultClearTimeout;\n }\n} ())\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n }\n // if setTimeout wasn't available but was latter defined\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch(e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch(e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n\n\n}\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n }\n // if clearTimeout wasn't available but was latter defined\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n\n\n\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n\n var len = queue.length;\n while(len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n};\n\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\nprocess.prependListener = noop;\nprocess.prependOnceListener = noop;\n\nprocess.listeners = function (name) { return [] }\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\nprocess.umask = function() { return 0; };\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/process/browser.js?");
853
854/***/ }),
855
856/***/ "./node_modules/punycode/punycode.js":
857/*!*******************************************!*\
858 !*** ./node_modules/punycode/punycode.js ***!
859 \*******************************************/
860/*! no static exports found */
861/***/ (function(module, exports, __webpack_require__) {
862
863eval("/* WEBPACK VAR INJECTION */(function(module, global) {var __WEBPACK_AMD_DEFINE_RESULT__;/*! https://mths.be/punycode v1.4.1 by @mathias */\n;(function(root) {\n\n\t/** Detect free variables */\n\tvar freeExports = true && exports &&\n\t\t!exports.nodeType && exports;\n\tvar freeModule = true && module &&\n\t\t!module.nodeType && module;\n\tvar freeGlobal = typeof global == 'object' && global;\n\tif (\n\t\tfreeGlobal.global === freeGlobal ||\n\t\tfreeGlobal.window === freeGlobal ||\n\t\tfreeGlobal.self === freeGlobal\n\t) {\n\t\troot = freeGlobal;\n\t}\n\n\t/**\n\t * The `punycode` object.\n\t * @name punycode\n\t * @type Object\n\t */\n\tvar punycode,\n\n\t/** Highest positive signed 32-bit float value */\n\tmaxInt = 2147483647, // aka. 0x7FFFFFFF or 2^31-1\n\n\t/** Bootstring parameters */\n\tbase = 36,\n\ttMin = 1,\n\ttMax = 26,\n\tskew = 38,\n\tdamp = 700,\n\tinitialBias = 72,\n\tinitialN = 128, // 0x80\n\tdelimiter = '-', // '\\x2D'\n\n\t/** Regular expressions */\n\tregexPunycode = /^xn--/,\n\tregexNonASCII = /[^\\x20-\\x7E]/, // unprintable ASCII chars + non-ASCII chars\n\tregexSeparators = /[\\x2E\\u3002\\uFF0E\\uFF61]/g, // RFC 3490 separators\n\n\t/** Error messages */\n\terrors = {\n\t\t'overflow': 'Overflow: input needs wider integers to process',\n\t\t'not-basic': 'Illegal input >= 0x80 (not a basic code point)',\n\t\t'invalid-input': 'Invalid input'\n\t},\n\n\t/** Convenience shortcuts */\n\tbaseMinusTMin = base - tMin,\n\tfloor = Math.floor,\n\tstringFromCharCode = String.fromCharCode,\n\n\t/** Temporary variable */\n\tkey;\n\n\t/*--------------------------------------------------------------------------*/\n\n\t/**\n\t * A generic error utility function.\n\t * @private\n\t * @param {String} type The error type.\n\t * @returns {Error} Throws a `RangeError` with the applicable error message.\n\t */\n\tfunction error(type) {\n\t\tthrow new RangeError(errors[type]);\n\t}\n\n\t/**\n\t * A generic `Array#map` utility function.\n\t * @private\n\t * @param {Array} array The array to iterate over.\n\t * @param {Function} callback The function that gets called for every array\n\t * item.\n\t * @returns {Array} A new array of values returned by the callback function.\n\t */\n\tfunction map(array, fn) {\n\t\tvar length = array.length;\n\t\tvar result = [];\n\t\twhile (length--) {\n\t\t\tresult[length] = fn(array[length]);\n\t\t}\n\t\treturn result;\n\t}\n\n\t/**\n\t * A simple `Array#map`-like wrapper to work with domain name strings or email\n\t * addresses.\n\t * @private\n\t * @param {String} domain The domain name or email address.\n\t * @param {Function} callback The function that gets called for every\n\t * character.\n\t * @returns {Array} A new string of characters returned by the callback\n\t * function.\n\t */\n\tfunction mapDomain(string, fn) {\n\t\tvar parts = string.split('@');\n\t\tvar result = '';\n\t\tif (parts.length > 1) {\n\t\t\t// In email addresses, only the domain name should be punycoded. Leave\n\t\t\t// the local part (i.e. everything up to `@`) intact.\n\t\t\tresult = parts[0] + '@';\n\t\t\tstring = parts[1];\n\t\t}\n\t\t// Avoid `split(regex)` for IE8 compatibility. See #17.\n\t\tstring = string.replace(regexSeparators, '\\x2E');\n\t\tvar labels = string.split('.');\n\t\tvar encoded = map(labels, fn).join('.');\n\t\treturn result + encoded;\n\t}\n\n\t/**\n\t * Creates an array containing the numeric code points of each Unicode\n\t * character in the string. While JavaScript uses UCS-2 internally,\n\t * this function will convert a pair of surrogate halves (each of which\n\t * UCS-2 exposes as separate characters) into a single code point,\n\t * matching UTF-16.\n\t * @see `punycode.ucs2.encode`\n\t * @see <https://mathiasbynens.be/notes/javascript-encoding>\n\t * @memberOf punycode.ucs2\n\t * @name decode\n\t * @param {String} string The Unicode input string (UCS-2).\n\t * @returns {Array} The new array of code points.\n\t */\n\tfunction ucs2decode(string) {\n\t\tvar output = [],\n\t\t counter = 0,\n\t\t length = string.length,\n\t\t value,\n\t\t extra;\n\t\twhile (counter < length) {\n\t\t\tvalue = string.charCodeAt(counter++);\n\t\t\tif (value >= 0xD800 && value <= 0xDBFF && counter < length) {\n\t\t\t\t// high surrogate, and there is a next character\n\t\t\t\textra = string.charCodeAt(counter++);\n\t\t\t\tif ((extra & 0xFC00) == 0xDC00) { // low surrogate\n\t\t\t\t\toutput.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000);\n\t\t\t\t} else {\n\t\t\t\t\t// unmatched surrogate; only append this code unit, in case the next\n\t\t\t\t\t// code unit is the high surrogate of a surrogate pair\n\t\t\t\t\toutput.push(value);\n\t\t\t\t\tcounter--;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\toutput.push(value);\n\t\t\t}\n\t\t}\n\t\treturn output;\n\t}\n\n\t/**\n\t * Creates a string based on an array of numeric code points.\n\t * @see `punycode.ucs2.decode`\n\t * @memberOf punycode.ucs2\n\t * @name encode\n\t * @param {Array} codePoints The array of numeric code points.\n\t * @returns {String} The new Unicode string (UCS-2).\n\t */\n\tfunction ucs2encode(array) {\n\t\treturn map(array, function(value) {\n\t\t\tvar output = '';\n\t\t\tif (value > 0xFFFF) {\n\t\t\t\tvalue -= 0x10000;\n\t\t\t\toutput += stringFromCharCode(value >>> 10 & 0x3FF | 0xD800);\n\t\t\t\tvalue = 0xDC00 | value & 0x3FF;\n\t\t\t}\n\t\t\toutput += stringFromCharCode(value);\n\t\t\treturn output;\n\t\t}).join('');\n\t}\n\n\t/**\n\t * Converts a basic code point into a digit/integer.\n\t * @see `digitToBasic()`\n\t * @private\n\t * @param {Number} codePoint The basic numeric code point value.\n\t * @returns {Number} The numeric value of a basic code point (for use in\n\t * representing integers) in the range `0` to `base - 1`, or `base` if\n\t * the code point does not represent a value.\n\t */\n\tfunction basicToDigit(codePoint) {\n\t\tif (codePoint - 48 < 10) {\n\t\t\treturn codePoint - 22;\n\t\t}\n\t\tif (codePoint - 65 < 26) {\n\t\t\treturn codePoint - 65;\n\t\t}\n\t\tif (codePoint - 97 < 26) {\n\t\t\treturn codePoint - 97;\n\t\t}\n\t\treturn base;\n\t}\n\n\t/**\n\t * Converts a digit/integer into a basic code point.\n\t * @see `basicToDigit()`\n\t * @private\n\t * @param {Number} digit The numeric value of a basic code point.\n\t * @returns {Number} The basic code point whose value (when used for\n\t * representing integers) is `digit`, which needs to be in the range\n\t * `0` to `base - 1`. If `flag` is non-zero, the uppercase form is\n\t * used; else, the lowercase form is used. The behavior is undefined\n\t * if `flag` is non-zero and `digit` has no uppercase form.\n\t */\n\tfunction digitToBasic(digit, flag) {\n\t\t// 0..25 map to ASCII a..z or A..Z\n\t\t// 26..35 map to ASCII 0..9\n\t\treturn digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5);\n\t}\n\n\t/**\n\t * Bias adaptation function as per section 3.4 of RFC 3492.\n\t * https://tools.ietf.org/html/rfc3492#section-3.4\n\t * @private\n\t */\n\tfunction adapt(delta, numPoints, firstTime) {\n\t\tvar k = 0;\n\t\tdelta = firstTime ? floor(delta / damp) : delta >> 1;\n\t\tdelta += floor(delta / numPoints);\n\t\tfor (/* no initialization */; delta > baseMinusTMin * tMax >> 1; k += base) {\n\t\t\tdelta = floor(delta / baseMinusTMin);\n\t\t}\n\t\treturn floor(k + (baseMinusTMin + 1) * delta / (delta + skew));\n\t}\n\n\t/**\n\t * Converts a Punycode string of ASCII-only symbols to a string of Unicode\n\t * symbols.\n\t * @memberOf punycode\n\t * @param {String} input The Punycode string of ASCII-only symbols.\n\t * @returns {String} The resulting string of Unicode symbols.\n\t */\n\tfunction decode(input) {\n\t\t// Don't use UCS-2\n\t\tvar output = [],\n\t\t inputLength = input.length,\n\t\t out,\n\t\t i = 0,\n\t\t n = initialN,\n\t\t bias = initialBias,\n\t\t basic,\n\t\t j,\n\t\t index,\n\t\t oldi,\n\t\t w,\n\t\t k,\n\t\t digit,\n\t\t t,\n\t\t /** Cached calculation results */\n\t\t baseMinusT;\n\n\t\t// Handle the basic code points: let `basic` be the number of input code\n\t\t// points before the last delimiter, or `0` if there is none, then copy\n\t\t// the first basic code points to the output.\n\n\t\tbasic = input.lastIndexOf(delimiter);\n\t\tif (basic < 0) {\n\t\t\tbasic = 0;\n\t\t}\n\n\t\tfor (j = 0; j < basic; ++j) {\n\t\t\t// if it's not a basic code point\n\t\t\tif (input.charCodeAt(j) >= 0x80) {\n\t\t\t\terror('not-basic');\n\t\t\t}\n\t\t\toutput.push(input.charCodeAt(j));\n\t\t}\n\n\t\t// Main decoding loop: start just after the last delimiter if any basic code\n\t\t// points were copied; start at the beginning otherwise.\n\n\t\tfor (index = basic > 0 ? basic + 1 : 0; index < inputLength; /* no final expression */) {\n\n\t\t\t// `index` is the index of the next character to be consumed.\n\t\t\t// Decode a generalized variable-length integer into `delta`,\n\t\t\t// which gets added to `i`. The overflow checking is easier\n\t\t\t// if we increase `i` as we go, then subtract off its starting\n\t\t\t// value at the end to obtain `delta`.\n\t\t\tfor (oldi = i, w = 1, k = base; /* no condition */; k += base) {\n\n\t\t\t\tif (index >= inputLength) {\n\t\t\t\t\terror('invalid-input');\n\t\t\t\t}\n\n\t\t\t\tdigit = basicToDigit(input.charCodeAt(index++));\n\n\t\t\t\tif (digit >= base || digit > floor((maxInt - i) / w)) {\n\t\t\t\t\terror('overflow');\n\t\t\t\t}\n\n\t\t\t\ti += digit * w;\n\t\t\t\tt = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);\n\n\t\t\t\tif (digit < t) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tbaseMinusT = base - t;\n\t\t\t\tif (w > floor(maxInt / baseMinusT)) {\n\t\t\t\t\terror('overflow');\n\t\t\t\t}\n\n\t\t\t\tw *= baseMinusT;\n\n\t\t\t}\n\n\t\t\tout = output.length + 1;\n\t\t\tbias = adapt(i - oldi, out, oldi == 0);\n\n\t\t\t// `i` was supposed to wrap around from `out` to `0`,\n\t\t\t// incrementing `n` each time, so we'll fix that now:\n\t\t\tif (floor(i / out) > maxInt - n) {\n\t\t\t\terror('overflow');\n\t\t\t}\n\n\t\t\tn += floor(i / out);\n\t\t\ti %= out;\n\n\t\t\t// Insert `n` at position `i` of the output\n\t\t\toutput.splice(i++, 0, n);\n\n\t\t}\n\n\t\treturn ucs2encode(output);\n\t}\n\n\t/**\n\t * Converts a string of Unicode symbols (e.g. a domain name label) to a\n\t * Punycode string of ASCII-only symbols.\n\t * @memberOf punycode\n\t * @param {String} input The string of Unicode symbols.\n\t * @returns {String} The resulting Punycode string of ASCII-only symbols.\n\t */\n\tfunction encode(input) {\n\t\tvar n,\n\t\t delta,\n\t\t handledCPCount,\n\t\t basicLength,\n\t\t bias,\n\t\t j,\n\t\t m,\n\t\t q,\n\t\t k,\n\t\t t,\n\t\t currentValue,\n\t\t output = [],\n\t\t /** `inputLength` will hold the number of code points in `input`. */\n\t\t inputLength,\n\t\t /** Cached calculation results */\n\t\t handledCPCountPlusOne,\n\t\t baseMinusT,\n\t\t qMinusT;\n\n\t\t// Convert the input in UCS-2 to Unicode\n\t\tinput = ucs2decode(input);\n\n\t\t// Cache the length\n\t\tinputLength = input.length;\n\n\t\t// Initialize the state\n\t\tn = initialN;\n\t\tdelta = 0;\n\t\tbias = initialBias;\n\n\t\t// Handle the basic code points\n\t\tfor (j = 0; j < inputLength; ++j) {\n\t\t\tcurrentValue = input[j];\n\t\t\tif (currentValue < 0x80) {\n\t\t\t\toutput.push(stringFromCharCode(currentValue));\n\t\t\t}\n\t\t}\n\n\t\thandledCPCount = basicLength = output.length;\n\n\t\t// `handledCPCount` is the number of code points that have been handled;\n\t\t// `basicLength` is the number of basic code points.\n\n\t\t// Finish the basic string - if it is not empty - with a delimiter\n\t\tif (basicLength) {\n\t\t\toutput.push(delimiter);\n\t\t}\n\n\t\t// Main encoding loop:\n\t\twhile (handledCPCount < inputLength) {\n\n\t\t\t// All non-basic code points < n have been handled already. Find the next\n\t\t\t// larger one:\n\t\t\tfor (m = maxInt, j = 0; j < inputLength; ++j) {\n\t\t\t\tcurrentValue = input[j];\n\t\t\t\tif (currentValue >= n && currentValue < m) {\n\t\t\t\t\tm = currentValue;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Increase `delta` enough to advance the decoder's <n,i> state to <m,0>,\n\t\t\t// but guard against overflow\n\t\t\thandledCPCountPlusOne = handledCPCount + 1;\n\t\t\tif (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) {\n\t\t\t\terror('overflow');\n\t\t\t}\n\n\t\t\tdelta += (m - n) * handledCPCountPlusOne;\n\t\t\tn = m;\n\n\t\t\tfor (j = 0; j < inputLength; ++j) {\n\t\t\t\tcurrentValue = input[j];\n\n\t\t\t\tif (currentValue < n && ++delta > maxInt) {\n\t\t\t\t\terror('overflow');\n\t\t\t\t}\n\n\t\t\t\tif (currentValue == n) {\n\t\t\t\t\t// Represent delta as a generalized variable-length integer\n\t\t\t\t\tfor (q = delta, k = base; /* no condition */; k += base) {\n\t\t\t\t\t\tt = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);\n\t\t\t\t\t\tif (q < t) {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tqMinusT = q - t;\n\t\t\t\t\t\tbaseMinusT = base - t;\n\t\t\t\t\t\toutput.push(\n\t\t\t\t\t\t\tstringFromCharCode(digitToBasic(t + qMinusT % baseMinusT, 0))\n\t\t\t\t\t\t);\n\t\t\t\t\t\tq = floor(qMinusT / baseMinusT);\n\t\t\t\t\t}\n\n\t\t\t\t\toutput.push(stringFromCharCode(digitToBasic(q, 0)));\n\t\t\t\t\tbias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength);\n\t\t\t\t\tdelta = 0;\n\t\t\t\t\t++handledCPCount;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t++delta;\n\t\t\t++n;\n\n\t\t}\n\t\treturn output.join('');\n\t}\n\n\t/**\n\t * Converts a Punycode string representing a domain name or an email address\n\t * to Unicode. Only the Punycoded parts of the input will be converted, i.e.\n\t * it doesn't matter if you call it on a string that has already been\n\t * converted to Unicode.\n\t * @memberOf punycode\n\t * @param {String} input The Punycoded domain name or email address to\n\t * convert to Unicode.\n\t * @returns {String} The Unicode representation of the given Punycode\n\t * string.\n\t */\n\tfunction toUnicode(input) {\n\t\treturn mapDomain(input, function(string) {\n\t\t\treturn regexPunycode.test(string)\n\t\t\t\t? decode(string.slice(4).toLowerCase())\n\t\t\t\t: string;\n\t\t});\n\t}\n\n\t/**\n\t * Converts a Unicode string representing a domain name or an email address to\n\t * Punycode. Only the non-ASCII parts of the domain name will be converted,\n\t * i.e. it doesn't matter if you call it with a domain that's already in\n\t * ASCII.\n\t * @memberOf punycode\n\t * @param {String} input The domain name or email address to convert, as a\n\t * Unicode string.\n\t * @returns {String} The Punycode representation of the given domain name or\n\t * email address.\n\t */\n\tfunction toASCII(input) {\n\t\treturn mapDomain(input, function(string) {\n\t\t\treturn regexNonASCII.test(string)\n\t\t\t\t? 'xn--' + encode(string)\n\t\t\t\t: string;\n\t\t});\n\t}\n\n\t/*--------------------------------------------------------------------------*/\n\n\t/** Define the public API */\n\tpunycode = {\n\t\t/**\n\t\t * A string representing the current Punycode.js version number.\n\t\t * @memberOf punycode\n\t\t * @type String\n\t\t */\n\t\t'version': '1.4.1',\n\t\t/**\n\t\t * An object of methods to convert from JavaScript's internal character\n\t\t * representation (UCS-2) to Unicode code points, and back.\n\t\t * @see <https://mathiasbynens.be/notes/javascript-encoding>\n\t\t * @memberOf punycode\n\t\t * @type Object\n\t\t */\n\t\t'ucs2': {\n\t\t\t'decode': ucs2decode,\n\t\t\t'encode': ucs2encode\n\t\t},\n\t\t'decode': decode,\n\t\t'encode': encode,\n\t\t'toASCII': toASCII,\n\t\t'toUnicode': toUnicode\n\t};\n\n\t/** Expose `punycode` */\n\t// Some AMD build optimizers, like r.js, check for specific condition patterns\n\t// like the following:\n\tif (\n\t\ttrue\n\t) {\n\t\t!(__WEBPACK_AMD_DEFINE_RESULT__ = (function() {\n\t\t\treturn punycode;\n\t\t}).call(exports, __webpack_require__, exports, module),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\t} else {}\n\n}(this));\n\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/module.js */ \"./node_modules/webpack/buildin/module.js\")(module), __webpack_require__(/*! ./../webpack/buildin/global.js */ \"./node_modules/webpack/buildin/global.js\")))\n\n//# sourceURL=webpack://GeoRaster/./node_modules/punycode/punycode.js?");
864
865/***/ }),
866
867/***/ "./node_modules/querystring-es3/decode.js":
868/*!************************************************!*\
869 !*** ./node_modules/querystring-es3/decode.js ***!
870 \************************************************/
871/*! no static exports found */
872/***/ (function(module, exports, __webpack_require__) {
873
874"use strict";
875eval("// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n\n\n// If obj.hasOwnProperty has been overridden, then calling\n// obj.hasOwnProperty(prop) will break.\n// See: https://github.com/joyent/node/issues/1707\nfunction hasOwnProperty(obj, prop) {\n return Object.prototype.hasOwnProperty.call(obj, prop);\n}\n\nmodule.exports = function(qs, sep, eq, options) {\n sep = sep || '&';\n eq = eq || '=';\n var obj = {};\n\n if (typeof qs !== 'string' || qs.length === 0) {\n return obj;\n }\n\n var regexp = /\\+/g;\n qs = qs.split(sep);\n\n var maxKeys = 1000;\n if (options && typeof options.maxKeys === 'number') {\n maxKeys = options.maxKeys;\n }\n\n var len = qs.length;\n // maxKeys <= 0 means that we should not limit keys count\n if (maxKeys > 0 && len > maxKeys) {\n len = maxKeys;\n }\n\n for (var i = 0; i < len; ++i) {\n var x = qs[i].replace(regexp, '%20'),\n idx = x.indexOf(eq),\n kstr, vstr, k, v;\n\n if (idx >= 0) {\n kstr = x.substr(0, idx);\n vstr = x.substr(idx + 1);\n } else {\n kstr = x;\n vstr = '';\n }\n\n k = decodeURIComponent(kstr);\n v = decodeURIComponent(vstr);\n\n if (!hasOwnProperty(obj, k)) {\n obj[k] = v;\n } else if (isArray(obj[k])) {\n obj[k].push(v);\n } else {\n obj[k] = [obj[k], v];\n }\n }\n\n return obj;\n};\n\nvar isArray = Array.isArray || function (xs) {\n return Object.prototype.toString.call(xs) === '[object Array]';\n};\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/querystring-es3/decode.js?");
876
877/***/ }),
878
879/***/ "./node_modules/querystring-es3/encode.js":
880/*!************************************************!*\
881 !*** ./node_modules/querystring-es3/encode.js ***!
882 \************************************************/
883/*! no static exports found */
884/***/ (function(module, exports, __webpack_require__) {
885
886"use strict";
887eval("// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n\n\nvar stringifyPrimitive = function(v) {\n switch (typeof v) {\n case 'string':\n return v;\n\n case 'boolean':\n return v ? 'true' : 'false';\n\n case 'number':\n return isFinite(v) ? v : '';\n\n default:\n return '';\n }\n};\n\nmodule.exports = function(obj, sep, eq, name) {\n sep = sep || '&';\n eq = eq || '=';\n if (obj === null) {\n obj = undefined;\n }\n\n if (typeof obj === 'object') {\n return map(objectKeys(obj), function(k) {\n var ks = encodeURIComponent(stringifyPrimitive(k)) + eq;\n if (isArray(obj[k])) {\n return map(obj[k], function(v) {\n return ks + encodeURIComponent(stringifyPrimitive(v));\n }).join(sep);\n } else {\n return ks + encodeURIComponent(stringifyPrimitive(obj[k]));\n }\n }).join(sep);\n\n }\n\n if (!name) return '';\n return encodeURIComponent(stringifyPrimitive(name)) + eq +\n encodeURIComponent(stringifyPrimitive(obj));\n};\n\nvar isArray = Array.isArray || function (xs) {\n return Object.prototype.toString.call(xs) === '[object Array]';\n};\n\nfunction map (xs, f) {\n if (xs.map) return xs.map(f);\n var res = [];\n for (var i = 0; i < xs.length; i++) {\n res.push(f(xs[i], i));\n }\n return res;\n}\n\nvar objectKeys = Object.keys || function (obj) {\n var res = [];\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) res.push(key);\n }\n return res;\n};\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/querystring-es3/encode.js?");
888
889/***/ }),
890
891/***/ "./node_modules/querystring-es3/index.js":
892/*!***********************************************!*\
893 !*** ./node_modules/querystring-es3/index.js ***!
894 \***********************************************/
895/*! no static exports found */
896/***/ (function(module, exports, __webpack_require__) {
897
898"use strict";
899eval("\n\nexports.decode = exports.parse = __webpack_require__(/*! ./decode */ \"./node_modules/querystring-es3/decode.js\");\nexports.encode = exports.stringify = __webpack_require__(/*! ./encode */ \"./node_modules/querystring-es3/encode.js\");\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/querystring-es3/index.js?");
900
901/***/ }),
902
903/***/ "./node_modules/readable-stream/lib/_stream_duplex.js":
904/*!************************************************************!*\
905 !*** ./node_modules/readable-stream/lib/_stream_duplex.js ***!
906 \************************************************************/
907/*! no static exports found */
908/***/ (function(module, exports, __webpack_require__) {
909
910"use strict";
911eval("// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// a duplex stream is just a stream that is both readable and writable.\n// Since JS doesn't have multiple prototypal inheritance, this class\n// prototypally inherits from Readable, and then parasitically from\n// Writable.\n\n\n\n/*<replacement>*/\n\nvar pna = __webpack_require__(/*! process-nextick-args */ \"./node_modules/process-nextick-args/index.js\");\n/*</replacement>*/\n\n/*<replacement>*/\nvar objectKeys = Object.keys || function (obj) {\n var keys = [];\n for (var key in obj) {\n keys.push(key);\n }return keys;\n};\n/*</replacement>*/\n\nmodule.exports = Duplex;\n\n/*<replacement>*/\nvar util = Object.create(__webpack_require__(/*! core-util-is */ \"./node_modules/core-util-is/lib/util.js\"));\nutil.inherits = __webpack_require__(/*! inherits */ \"./node_modules/inherits/inherits_browser.js\");\n/*</replacement>*/\n\nvar Readable = __webpack_require__(/*! ./_stream_readable */ \"./node_modules/readable-stream/lib/_stream_readable.js\");\nvar Writable = __webpack_require__(/*! ./_stream_writable */ \"./node_modules/readable-stream/lib/_stream_writable.js\");\n\nutil.inherits(Duplex, Readable);\n\n{\n // avoid scope creep, the keys array can then be collected\n var keys = objectKeys(Writable.prototype);\n for (var v = 0; v < keys.length; v++) {\n var method = keys[v];\n if (!Duplex.prototype[method]) Duplex.prototype[method] = Writable.prototype[method];\n }\n}\n\nfunction Duplex(options) {\n if (!(this instanceof Duplex)) return new Duplex(options);\n\n Readable.call(this, options);\n Writable.call(this, options);\n\n if (options && options.readable === false) this.readable = false;\n\n if (options && options.writable === false) this.writable = false;\n\n this.allowHalfOpen = true;\n if (options && options.allowHalfOpen === false) this.allowHalfOpen = false;\n\n this.once('end', onend);\n}\n\nObject.defineProperty(Duplex.prototype, 'writableHighWaterMark', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function () {\n return this._writableState.highWaterMark;\n }\n});\n\n// the no-half-open enforcer\nfunction onend() {\n // if we allow half-open state, or if the writable side ended,\n // then we're ok.\n if (this.allowHalfOpen || this._writableState.ended) return;\n\n // no more data can be written.\n // But allow more writes to happen in this tick.\n pna.nextTick(onEndNT, this);\n}\n\nfunction onEndNT(self) {\n self.end();\n}\n\nObject.defineProperty(Duplex.prototype, 'destroyed', {\n get: function () {\n if (this._readableState === undefined || this._writableState === undefined) {\n return false;\n }\n return this._readableState.destroyed && this._writableState.destroyed;\n },\n set: function (value) {\n // we ignore the value if the stream\n // has not been initialized yet\n if (this._readableState === undefined || this._writableState === undefined) {\n return;\n }\n\n // backward compatibility, the user is explicitly\n // managing destroyed\n this._readableState.destroyed = value;\n this._writableState.destroyed = value;\n }\n});\n\nDuplex.prototype._destroy = function (err, cb) {\n this.push(null);\n this.end();\n\n pna.nextTick(cb, err);\n};\n\n//# sourceURL=webpack://GeoRaster/./node_modules/readable-stream/lib/_stream_duplex.js?");
912
913/***/ }),
914
915/***/ "./node_modules/readable-stream/lib/_stream_passthrough.js":
916/*!*****************************************************************!*\
917 !*** ./node_modules/readable-stream/lib/_stream_passthrough.js ***!
918 \*****************************************************************/
919/*! no static exports found */
920/***/ (function(module, exports, __webpack_require__) {
921
922"use strict";
923eval("// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// a passthrough stream.\n// basically just the most minimal sort of Transform stream.\n// Every written chunk gets output as-is.\n\n\n\nmodule.exports = PassThrough;\n\nvar Transform = __webpack_require__(/*! ./_stream_transform */ \"./node_modules/readable-stream/lib/_stream_transform.js\");\n\n/*<replacement>*/\nvar util = Object.create(__webpack_require__(/*! core-util-is */ \"./node_modules/core-util-is/lib/util.js\"));\nutil.inherits = __webpack_require__(/*! inherits */ \"./node_modules/inherits/inherits_browser.js\");\n/*</replacement>*/\n\nutil.inherits(PassThrough, Transform);\n\nfunction PassThrough(options) {\n if (!(this instanceof PassThrough)) return new PassThrough(options);\n\n Transform.call(this, options);\n}\n\nPassThrough.prototype._transform = function (chunk, encoding, cb) {\n cb(null, chunk);\n};\n\n//# sourceURL=webpack://GeoRaster/./node_modules/readable-stream/lib/_stream_passthrough.js?");
924
925/***/ }),
926
927/***/ "./node_modules/readable-stream/lib/_stream_readable.js":
928/*!**************************************************************!*\
929 !*** ./node_modules/readable-stream/lib/_stream_readable.js ***!
930 \**************************************************************/
931/*! no static exports found */
932/***/ (function(module, exports, __webpack_require__) {
933
934"use strict";
935eval("/* WEBPACK VAR INJECTION */(function(global, process) {// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n\n\n/*<replacement>*/\n\nvar pna = __webpack_require__(/*! process-nextick-args */ \"./node_modules/process-nextick-args/index.js\");\n/*</replacement>*/\n\nmodule.exports = Readable;\n\n/*<replacement>*/\nvar isArray = __webpack_require__(/*! isarray */ \"./node_modules/isarray/index.js\");\n/*</replacement>*/\n\n/*<replacement>*/\nvar Duplex;\n/*</replacement>*/\n\nReadable.ReadableState = ReadableState;\n\n/*<replacement>*/\nvar EE = __webpack_require__(/*! events */ \"./node_modules/node-libs-browser/node_modules/events/events.js\").EventEmitter;\n\nvar EElistenerCount = function (emitter, type) {\n return emitter.listeners(type).length;\n};\n/*</replacement>*/\n\n/*<replacement>*/\nvar Stream = __webpack_require__(/*! ./internal/streams/stream */ \"./node_modules/readable-stream/lib/internal/streams/stream-browser.js\");\n/*</replacement>*/\n\n/*<replacement>*/\n\nvar Buffer = __webpack_require__(/*! safe-buffer */ \"./node_modules/readable-stream/node_modules/safe-buffer/index.js\").Buffer;\nvar OurUint8Array = global.Uint8Array || function () {};\nfunction _uint8ArrayToBuffer(chunk) {\n return Buffer.from(chunk);\n}\nfunction _isUint8Array(obj) {\n return Buffer.isBuffer(obj) || obj instanceof OurUint8Array;\n}\n\n/*</replacement>*/\n\n/*<replacement>*/\nvar util = Object.create(__webpack_require__(/*! core-util-is */ \"./node_modules/core-util-is/lib/util.js\"));\nutil.inherits = __webpack_require__(/*! inherits */ \"./node_modules/inherits/inherits_browser.js\");\n/*</replacement>*/\n\n/*<replacement>*/\nvar debugUtil = __webpack_require__(/*! util */ 0);\nvar debug = void 0;\nif (debugUtil && debugUtil.debuglog) {\n debug = debugUtil.debuglog('stream');\n} else {\n debug = function () {};\n}\n/*</replacement>*/\n\nvar BufferList = __webpack_require__(/*! ./internal/streams/BufferList */ \"./node_modules/readable-stream/lib/internal/streams/BufferList.js\");\nvar destroyImpl = __webpack_require__(/*! ./internal/streams/destroy */ \"./node_modules/readable-stream/lib/internal/streams/destroy.js\");\nvar StringDecoder;\n\nutil.inherits(Readable, Stream);\n\nvar kProxyEvents = ['error', 'close', 'destroy', 'pause', 'resume'];\n\nfunction prependListener(emitter, event, fn) {\n // Sadly this is not cacheable as some libraries bundle their own\n // event emitter implementation with them.\n if (typeof emitter.prependListener === 'function') return emitter.prependListener(event, fn);\n\n // This is a hack to make sure that our error handler is attached before any\n // userland ones. NEVER DO THIS. This is here only because this code needs\n // to continue to work with older versions of Node.js that do not include\n // the prependListener() method. The goal is to eventually remove this hack.\n if (!emitter._events || !emitter._events[event]) emitter.on(event, fn);else if (isArray(emitter._events[event])) emitter._events[event].unshift(fn);else emitter._events[event] = [fn, emitter._events[event]];\n}\n\nfunction ReadableState(options, stream) {\n Duplex = Duplex || __webpack_require__(/*! ./_stream_duplex */ \"./node_modules/readable-stream/lib/_stream_duplex.js\");\n\n options = options || {};\n\n // Duplex streams are both readable and writable, but share\n // the same options object.\n // However, some cases require setting options to different\n // values for the readable and the writable sides of the duplex stream.\n // These options can be provided separately as readableXXX and writableXXX.\n var isDuplex = stream instanceof Duplex;\n\n // object stream flag. Used to make read(n) ignore n and to\n // make all the buffer merging and length checks go away\n this.objectMode = !!options.objectMode;\n\n if (isDuplex) this.objectMode = this.objectMode || !!options.readableObjectMode;\n\n // the point at which it stops calling _read() to fill the buffer\n // Note: 0 is a valid value, means \"don't call _read preemptively ever\"\n var hwm = options.highWaterMark;\n var readableHwm = options.readableHighWaterMark;\n var defaultHwm = this.objectMode ? 16 : 16 * 1024;\n\n if (hwm || hwm === 0) this.highWaterMark = hwm;else if (isDuplex && (readableHwm || readableHwm === 0)) this.highWaterMark = readableHwm;else this.highWaterMark = defaultHwm;\n\n // cast to ints.\n this.highWaterMark = Math.floor(this.highWaterMark);\n\n // A linked list is used to store data chunks instead of an array because the\n // linked list can remove elements from the beginning faster than\n // array.shift()\n this.buffer = new BufferList();\n this.length = 0;\n this.pipes = null;\n this.pipesCount = 0;\n this.flowing = null;\n this.ended = false;\n this.endEmitted = false;\n this.reading = false;\n\n // a flag to be able to tell if the event 'readable'/'data' is emitted\n // immediately, or on a later tick. We set this to true at first, because\n // any actions that shouldn't happen until \"later\" should generally also\n // not happen before the first read call.\n this.sync = true;\n\n // whenever we return null, then we set a flag to say\n // that we're awaiting a 'readable' event emission.\n this.needReadable = false;\n this.emittedReadable = false;\n this.readableListening = false;\n this.resumeScheduled = false;\n\n // has it been destroyed\n this.destroyed = false;\n\n // Crypto is kind of old and crusty. Historically, its default string\n // encoding is 'binary' so we have to make this configurable.\n // Everything else in the universe uses 'utf8', though.\n this.defaultEncoding = options.defaultEncoding || 'utf8';\n\n // the number of writers that are awaiting a drain event in .pipe()s\n this.awaitDrain = 0;\n\n // if true, a maybeReadMore has been scheduled\n this.readingMore = false;\n\n this.decoder = null;\n this.encoding = null;\n if (options.encoding) {\n if (!StringDecoder) StringDecoder = __webpack_require__(/*! string_decoder/ */ \"./node_modules/string_decoder/lib/string_decoder.js\").StringDecoder;\n this.decoder = new StringDecoder(options.encoding);\n this.encoding = options.encoding;\n }\n}\n\nfunction Readable(options) {\n Duplex = Duplex || __webpack_require__(/*! ./_stream_duplex */ \"./node_modules/readable-stream/lib/_stream_duplex.js\");\n\n if (!(this instanceof Readable)) return new Readable(options);\n\n this._readableState = new ReadableState(options, this);\n\n // legacy\n this.readable = true;\n\n if (options) {\n if (typeof options.read === 'function') this._read = options.read;\n\n if (typeof options.destroy === 'function') this._destroy = options.destroy;\n }\n\n Stream.call(this);\n}\n\nObject.defineProperty(Readable.prototype, 'destroyed', {\n get: function () {\n if (this._readableState === undefined) {\n return false;\n }\n return this._readableState.destroyed;\n },\n set: function (value) {\n // we ignore the value if the stream\n // has not been initialized yet\n if (!this._readableState) {\n return;\n }\n\n // backward compatibility, the user is explicitly\n // managing destroyed\n this._readableState.destroyed = value;\n }\n});\n\nReadable.prototype.destroy = destroyImpl.destroy;\nReadable.prototype._undestroy = destroyImpl.undestroy;\nReadable.prototype._destroy = function (err, cb) {\n this.push(null);\n cb(err);\n};\n\n// Manually shove something into the read() buffer.\n// This returns true if the highWaterMark has not been hit yet,\n// similar to how Writable.write() returns true if you should\n// write() some more.\nReadable.prototype.push = function (chunk, encoding) {\n var state = this._readableState;\n var skipChunkCheck;\n\n if (!state.objectMode) {\n if (typeof chunk === 'string') {\n encoding = encoding || state.defaultEncoding;\n if (encoding !== state.encoding) {\n chunk = Buffer.from(chunk, encoding);\n encoding = '';\n }\n skipChunkCheck = true;\n }\n } else {\n skipChunkCheck = true;\n }\n\n return readableAddChunk(this, chunk, encoding, false, skipChunkCheck);\n};\n\n// Unshift should *always* be something directly out of read()\nReadable.prototype.unshift = function (chunk) {\n return readableAddChunk(this, chunk, null, true, false);\n};\n\nfunction readableAddChunk(stream, chunk, encoding, addToFront, skipChunkCheck) {\n var state = stream._readableState;\n if (chunk === null) {\n state.reading = false;\n onEofChunk(stream, state);\n } else {\n var er;\n if (!skipChunkCheck) er = chunkInvalid(state, chunk);\n if (er) {\n stream.emit('error', er);\n } else if (state.objectMode || chunk && chunk.length > 0) {\n if (typeof chunk !== 'string' && !state.objectMode && Object.getPrototypeOf(chunk) !== Buffer.prototype) {\n chunk = _uint8ArrayToBuffer(chunk);\n }\n\n if (addToFront) {\n if (state.endEmitted) stream.emit('error', new Error('stream.unshift() after end event'));else addChunk(stream, state, chunk, true);\n } else if (state.ended) {\n stream.emit('error', new Error('stream.push() after EOF'));\n } else {\n state.reading = false;\n if (state.decoder && !encoding) {\n chunk = state.decoder.write(chunk);\n if (state.objectMode || chunk.length !== 0) addChunk(stream, state, chunk, false);else maybeReadMore(stream, state);\n } else {\n addChunk(stream, state, chunk, false);\n }\n }\n } else if (!addToFront) {\n state.reading = false;\n }\n }\n\n return needMoreData(state);\n}\n\nfunction addChunk(stream, state, chunk, addToFront) {\n if (state.flowing && state.length === 0 && !state.sync) {\n stream.emit('data', chunk);\n stream.read(0);\n } else {\n // update the buffer info.\n state.length += state.objectMode ? 1 : chunk.length;\n if (addToFront) state.buffer.unshift(chunk);else state.buffer.push(chunk);\n\n if (state.needReadable) emitReadable(stream);\n }\n maybeReadMore(stream, state);\n}\n\nfunction chunkInvalid(state, chunk) {\n var er;\n if (!_isUint8Array(chunk) && typeof chunk !== 'string' && chunk !== undefined && !state.objectMode) {\n er = new TypeError('Invalid non-string/buffer chunk');\n }\n return er;\n}\n\n// if it's past the high water mark, we can push in some more.\n// Also, if we have no data yet, we can stand some\n// more bytes. This is to work around cases where hwm=0,\n// such as the repl. Also, if the push() triggered a\n// readable event, and the user called read(largeNumber) such that\n// needReadable was set, then we ought to push more, so that another\n// 'readable' event will be triggered.\nfunction needMoreData(state) {\n return !state.ended && (state.needReadable || state.length < state.highWaterMark || state.length === 0);\n}\n\nReadable.prototype.isPaused = function () {\n return this._readableState.flowing === false;\n};\n\n// backwards compatibility.\nReadable.prototype.setEncoding = function (enc) {\n if (!StringDecoder) StringDecoder = __webpack_require__(/*! string_decoder/ */ \"./node_modules/string_decoder/lib/string_decoder.js\").StringDecoder;\n this._readableState.decoder = new StringDecoder(enc);\n this._readableState.encoding = enc;\n return this;\n};\n\n// Don't raise the hwm > 8MB\nvar MAX_HWM = 0x800000;\nfunction computeNewHighWaterMark(n) {\n if (n >= MAX_HWM) {\n n = MAX_HWM;\n } else {\n // Get the next highest power of 2 to prevent increasing hwm excessively in\n // tiny amounts\n n--;\n n |= n >>> 1;\n n |= n >>> 2;\n n |= n >>> 4;\n n |= n >>> 8;\n n |= n >>> 16;\n n++;\n }\n return n;\n}\n\n// This function is designed to be inlinable, so please take care when making\n// changes to the function body.\nfunction howMuchToRead(n, state) {\n if (n <= 0 || state.length === 0 && state.ended) return 0;\n if (state.objectMode) return 1;\n if (n !== n) {\n // Only flow one buffer at a time\n if (state.flowing && state.length) return state.buffer.head.data.length;else return state.length;\n }\n // If we're asking for more than the current hwm, then raise the hwm.\n if (n > state.highWaterMark) state.highWaterMark = computeNewHighWaterMark(n);\n if (n <= state.length) return n;\n // Don't have enough\n if (!state.ended) {\n state.needReadable = true;\n return 0;\n }\n return state.length;\n}\n\n// you can override either this method, or the async _read(n) below.\nReadable.prototype.read = function (n) {\n debug('read', n);\n n = parseInt(n, 10);\n var state = this._readableState;\n var nOrig = n;\n\n if (n !== 0) state.emittedReadable = false;\n\n // if we're doing read(0) to trigger a readable event, but we\n // already have a bunch of data in the buffer, then just trigger\n // the 'readable' event and move on.\n if (n === 0 && state.needReadable && (state.length >= state.highWaterMark || state.ended)) {\n debug('read: emitReadable', state.length, state.ended);\n if (state.length === 0 && state.ended) endReadable(this);else emitReadable(this);\n return null;\n }\n\n n = howMuchToRead(n, state);\n\n // if we've ended, and we're now clear, then finish it up.\n if (n === 0 && state.ended) {\n if (state.length === 0) endReadable(this);\n return null;\n }\n\n // All the actual chunk generation logic needs to be\n // *below* the call to _read. The reason is that in certain\n // synthetic stream cases, such as passthrough streams, _read\n // may be a completely synchronous operation which may change\n // the state of the read buffer, providing enough data when\n // before there was *not* enough.\n //\n // So, the steps are:\n // 1. Figure out what the state of things will be after we do\n // a read from the buffer.\n //\n // 2. If that resulting state will trigger a _read, then call _read.\n // Note that this may be asynchronous, or synchronous. Yes, it is\n // deeply ugly to write APIs this way, but that still doesn't mean\n // that the Readable class should behave improperly, as streams are\n // designed to be sync/async agnostic.\n // Take note if the _read call is sync or async (ie, if the read call\n // has returned yet), so that we know whether or not it's safe to emit\n // 'readable' etc.\n //\n // 3. Actually pull the requested chunks out of the buffer and return.\n\n // if we need a readable event, then we need to do some reading.\n var doRead = state.needReadable;\n debug('need readable', doRead);\n\n // if we currently have less than the highWaterMark, then also read some\n if (state.length === 0 || state.length - n < state.highWaterMark) {\n doRead = true;\n debug('length less than watermark', doRead);\n }\n\n // however, if we've ended, then there's no point, and if we're already\n // reading, then it's unnecessary.\n if (state.ended || state.reading) {\n doRead = false;\n debug('reading or ended', doRead);\n } else if (doRead) {\n debug('do read');\n state.reading = true;\n state.sync = true;\n // if the length is currently zero, then we *need* a readable event.\n if (state.length === 0) state.needReadable = true;\n // call internal read method\n this._read(state.highWaterMark);\n state.sync = false;\n // If _read pushed data synchronously, then `reading` will be false,\n // and we need to re-evaluate how much data we can return to the user.\n if (!state.reading) n = howMuchToRead(nOrig, state);\n }\n\n var ret;\n if (n > 0) ret = fromList(n, state);else ret = null;\n\n if (ret === null) {\n state.needReadable = true;\n n = 0;\n } else {\n state.length -= n;\n }\n\n if (state.length === 0) {\n // If we have nothing in the buffer, then we want to know\n // as soon as we *do* get something into the buffer.\n if (!state.ended) state.needReadable = true;\n\n // If we tried to read() past the EOF, then emit end on the next tick.\n if (nOrig !== n && state.ended) endReadable(this);\n }\n\n if (ret !== null) this.emit('data', ret);\n\n return ret;\n};\n\nfunction onEofChunk(stream, state) {\n if (state.ended) return;\n if (state.decoder) {\n var chunk = state.decoder.end();\n if (chunk && chunk.length) {\n state.buffer.push(chunk);\n state.length += state.objectMode ? 1 : chunk.length;\n }\n }\n state.ended = true;\n\n // emit 'readable' now to make sure it gets picked up.\n emitReadable(stream);\n}\n\n// Don't emit readable right away in sync mode, because this can trigger\n// another read() call => stack overflow. This way, it might trigger\n// a nextTick recursion warning, but that's not so bad.\nfunction emitReadable(stream) {\n var state = stream._readableState;\n state.needReadable = false;\n if (!state.emittedReadable) {\n debug('emitReadable', state.flowing);\n state.emittedReadable = true;\n if (state.sync) pna.nextTick(emitReadable_, stream);else emitReadable_(stream);\n }\n}\n\nfunction emitReadable_(stream) {\n debug('emit readable');\n stream.emit('readable');\n flow(stream);\n}\n\n// at this point, the user has presumably seen the 'readable' event,\n// and called read() to consume some data. that may have triggered\n// in turn another _read(n) call, in which case reading = true if\n// it's in progress.\n// However, if we're not ended, or reading, and the length < hwm,\n// then go ahead and try to read some more preemptively.\nfunction maybeReadMore(stream, state) {\n if (!state.readingMore) {\n state.readingMore = true;\n pna.nextTick(maybeReadMore_, stream, state);\n }\n}\n\nfunction maybeReadMore_(stream, state) {\n var len = state.length;\n while (!state.reading && !state.flowing && !state.ended && state.length < state.highWaterMark) {\n debug('maybeReadMore read 0');\n stream.read(0);\n if (len === state.length)\n // didn't get any data, stop spinning.\n break;else len = state.length;\n }\n state.readingMore = false;\n}\n\n// abstract method. to be overridden in specific implementation classes.\n// call cb(er, data) where data is <= n in length.\n// for virtual (non-string, non-buffer) streams, \"length\" is somewhat\n// arbitrary, and perhaps not very meaningful.\nReadable.prototype._read = function (n) {\n this.emit('error', new Error('_read() is not implemented'));\n};\n\nReadable.prototype.pipe = function (dest, pipeOpts) {\n var src = this;\n var state = this._readableState;\n\n switch (state.pipesCount) {\n case 0:\n state.pipes = dest;\n break;\n case 1:\n state.pipes = [state.pipes, dest];\n break;\n default:\n state.pipes.push(dest);\n break;\n }\n state.pipesCount += 1;\n debug('pipe count=%d opts=%j', state.pipesCount, pipeOpts);\n\n var doEnd = (!pipeOpts || pipeOpts.end !== false) && dest !== process.stdout && dest !== process.stderr;\n\n var endFn = doEnd ? onend : unpipe;\n if (state.endEmitted) pna.nextTick(endFn);else src.once('end', endFn);\n\n dest.on('unpipe', onunpipe);\n function onunpipe(readable, unpipeInfo) {\n debug('onunpipe');\n if (readable === src) {\n if (unpipeInfo && unpipeInfo.hasUnpiped === false) {\n unpipeInfo.hasUnpiped = true;\n cleanup();\n }\n }\n }\n\n function onend() {\n debug('onend');\n dest.end();\n }\n\n // when the dest drains, it reduces the awaitDrain counter\n // on the source. This would be more elegant with a .once()\n // handler in flow(), but adding and removing repeatedly is\n // too slow.\n var ondrain = pipeOnDrain(src);\n dest.on('drain', ondrain);\n\n var cleanedUp = false;\n function cleanup() {\n debug('cleanup');\n // cleanup event handlers once the pipe is broken\n dest.removeListener('close', onclose);\n dest.removeListener('finish', onfinish);\n dest.removeListener('drain', ondrain);\n dest.removeListener('error', onerror);\n dest.removeListener('unpipe', onunpipe);\n src.removeListener('end', onend);\n src.removeListener('end', unpipe);\n src.removeListener('data', ondata);\n\n cleanedUp = true;\n\n // if the reader is waiting for a drain event from this\n // specific writer, then it would cause it to never start\n // flowing again.\n // So, if this is awaiting a drain, then we just call it now.\n // If we don't know, then assume that we are waiting for one.\n if (state.awaitDrain && (!dest._writableState || dest._writableState.needDrain)) ondrain();\n }\n\n // If the user pushes more data while we're writing to dest then we'll end up\n // in ondata again. However, we only want to increase awaitDrain once because\n // dest will only emit one 'drain' event for the multiple writes.\n // => Introduce a guard on increasing awaitDrain.\n var increasedAwaitDrain = false;\n src.on('data', ondata);\n function ondata(chunk) {\n debug('ondata');\n increasedAwaitDrain = false;\n var ret = dest.write(chunk);\n if (false === ret && !increasedAwaitDrain) {\n // If the user unpiped during `dest.write()`, it is possible\n // to get stuck in a permanently paused state if that write\n // also returned false.\n // => Check whether `dest` is still a piping destination.\n if ((state.pipesCount === 1 && state.pipes === dest || state.pipesCount > 1 && indexOf(state.pipes, dest) !== -1) && !cleanedUp) {\n debug('false write response, pause', src._readableState.awaitDrain);\n src._readableState.awaitDrain++;\n increasedAwaitDrain = true;\n }\n src.pause();\n }\n }\n\n // if the dest has an error, then stop piping into it.\n // however, don't suppress the throwing behavior for this.\n function onerror(er) {\n debug('onerror', er);\n unpipe();\n dest.removeListener('error', onerror);\n if (EElistenerCount(dest, 'error') === 0) dest.emit('error', er);\n }\n\n // Make sure our error handler is attached before userland ones.\n prependListener(dest, 'error', onerror);\n\n // Both close and finish should trigger unpipe, but only once.\n function onclose() {\n dest.removeListener('finish', onfinish);\n unpipe();\n }\n dest.once('close', onclose);\n function onfinish() {\n debug('onfinish');\n dest.removeListener('close', onclose);\n unpipe();\n }\n dest.once('finish', onfinish);\n\n function unpipe() {\n debug('unpipe');\n src.unpipe(dest);\n }\n\n // tell the dest that it's being piped to\n dest.emit('pipe', src);\n\n // start the flow if it hasn't been started already.\n if (!state.flowing) {\n debug('pipe resume');\n src.resume();\n }\n\n return dest;\n};\n\nfunction pipeOnDrain(src) {\n return function () {\n var state = src._readableState;\n debug('pipeOnDrain', state.awaitDrain);\n if (state.awaitDrain) state.awaitDrain--;\n if (state.awaitDrain === 0 && EElistenerCount(src, 'data')) {\n state.flowing = true;\n flow(src);\n }\n };\n}\n\nReadable.prototype.unpipe = function (dest) {\n var state = this._readableState;\n var unpipeInfo = { hasUnpiped: false };\n\n // if we're not piping anywhere, then do nothing.\n if (state.pipesCount === 0) return this;\n\n // just one destination. most common case.\n if (state.pipesCount === 1) {\n // passed in one, but it's not the right one.\n if (dest && dest !== state.pipes) return this;\n\n if (!dest) dest = state.pipes;\n\n // got a match.\n state.pipes = null;\n state.pipesCount = 0;\n state.flowing = false;\n if (dest) dest.emit('unpipe', this, unpipeInfo);\n return this;\n }\n\n // slow case. multiple pipe destinations.\n\n if (!dest) {\n // remove all.\n var dests = state.pipes;\n var len = state.pipesCount;\n state.pipes = null;\n state.pipesCount = 0;\n state.flowing = false;\n\n for (var i = 0; i < len; i++) {\n dests[i].emit('unpipe', this, unpipeInfo);\n }return this;\n }\n\n // try to find the right one.\n var index = indexOf(state.pipes, dest);\n if (index === -1) return this;\n\n state.pipes.splice(index, 1);\n state.pipesCount -= 1;\n if (state.pipesCount === 1) state.pipes = state.pipes[0];\n\n dest.emit('unpipe', this, unpipeInfo);\n\n return this;\n};\n\n// set up data events if they are asked for\n// Ensure readable listeners eventually get something\nReadable.prototype.on = function (ev, fn) {\n var res = Stream.prototype.on.call(this, ev, fn);\n\n if (ev === 'data') {\n // Start flowing on next tick if stream isn't explicitly paused\n if (this._readableState.flowing !== false) this.resume();\n } else if (ev === 'readable') {\n var state = this._readableState;\n if (!state.endEmitted && !state.readableListening) {\n state.readableListening = state.needReadable = true;\n state.emittedReadable = false;\n if (!state.reading) {\n pna.nextTick(nReadingNextTick, this);\n } else if (state.length) {\n emitReadable(this);\n }\n }\n }\n\n return res;\n};\nReadable.prototype.addListener = Readable.prototype.on;\n\nfunction nReadingNextTick(self) {\n debug('readable nexttick read 0');\n self.read(0);\n}\n\n// pause() and resume() are remnants of the legacy readable stream API\n// If the user uses them, then switch into old mode.\nReadable.prototype.resume = function () {\n var state = this._readableState;\n if (!state.flowing) {\n debug('resume');\n state.flowing = true;\n resume(this, state);\n }\n return this;\n};\n\nfunction resume(stream, state) {\n if (!state.resumeScheduled) {\n state.resumeScheduled = true;\n pna.nextTick(resume_, stream, state);\n }\n}\n\nfunction resume_(stream, state) {\n if (!state.reading) {\n debug('resume read 0');\n stream.read(0);\n }\n\n state.resumeScheduled = false;\n state.awaitDrain = 0;\n stream.emit('resume');\n flow(stream);\n if (state.flowing && !state.reading) stream.read(0);\n}\n\nReadable.prototype.pause = function () {\n debug('call pause flowing=%j', this._readableState.flowing);\n if (false !== this._readableState.flowing) {\n debug('pause');\n this._readableState.flowing = false;\n this.emit('pause');\n }\n return this;\n};\n\nfunction flow(stream) {\n var state = stream._readableState;\n debug('flow', state.flowing);\n while (state.flowing && stream.read() !== null) {}\n}\n\n// wrap an old-style stream as the async data source.\n// This is *not* part of the readable stream interface.\n// It is an ugly unfortunate mess of history.\nReadable.prototype.wrap = function (stream) {\n var _this = this;\n\n var state = this._readableState;\n var paused = false;\n\n stream.on('end', function () {\n debug('wrapped end');\n if (state.decoder && !state.ended) {\n var chunk = state.decoder.end();\n if (chunk && chunk.length) _this.push(chunk);\n }\n\n _this.push(null);\n });\n\n stream.on('data', function (chunk) {\n debug('wrapped data');\n if (state.decoder) chunk = state.decoder.write(chunk);\n\n // don't skip over falsy values in objectMode\n if (state.objectMode && (chunk === null || chunk === undefined)) return;else if (!state.objectMode && (!chunk || !chunk.length)) return;\n\n var ret = _this.push(chunk);\n if (!ret) {\n paused = true;\n stream.pause();\n }\n });\n\n // proxy all the other methods.\n // important when wrapping filters and duplexes.\n for (var i in stream) {\n if (this[i] === undefined && typeof stream[i] === 'function') {\n this[i] = function (method) {\n return function () {\n return stream[method].apply(stream, arguments);\n };\n }(i);\n }\n }\n\n // proxy certain important events.\n for (var n = 0; n < kProxyEvents.length; n++) {\n stream.on(kProxyEvents[n], this.emit.bind(this, kProxyEvents[n]));\n }\n\n // when we try to consume some more bytes, simply unpause the\n // underlying stream.\n this._read = function (n) {\n debug('wrapped _read', n);\n if (paused) {\n paused = false;\n stream.resume();\n }\n };\n\n return this;\n};\n\nObject.defineProperty(Readable.prototype, 'readableHighWaterMark', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function () {\n return this._readableState.highWaterMark;\n }\n});\n\n// exposed for testing purposes only.\nReadable._fromList = fromList;\n\n// Pluck off n bytes from an array of buffers.\n// Length is the combined lengths of all the buffers in the list.\n// This function is designed to be inlinable, so please take care when making\n// changes to the function body.\nfunction fromList(n, state) {\n // nothing buffered\n if (state.length === 0) return null;\n\n var ret;\n if (state.objectMode) ret = state.buffer.shift();else if (!n || n >= state.length) {\n // read it all, truncate the list\n if (state.decoder) ret = state.buffer.join('');else if (state.buffer.length === 1) ret = state.buffer.head.data;else ret = state.buffer.concat(state.length);\n state.buffer.clear();\n } else {\n // read part of list\n ret = fromListPartial(n, state.buffer, state.decoder);\n }\n\n return ret;\n}\n\n// Extracts only enough buffered data to satisfy the amount requested.\n// This function is designed to be inlinable, so please take care when making\n// changes to the function body.\nfunction fromListPartial(n, list, hasStrings) {\n var ret;\n if (n < list.head.data.length) {\n // slice is the same for buffers and strings\n ret = list.head.data.slice(0, n);\n list.head.data = list.head.data.slice(n);\n } else if (n === list.head.data.length) {\n // first chunk is a perfect match\n ret = list.shift();\n } else {\n // result spans more than one buffer\n ret = hasStrings ? copyFromBufferString(n, list) : copyFromBuffer(n, list);\n }\n return ret;\n}\n\n// Copies a specified amount of characters from the list of buffered data\n// chunks.\n// This function is designed to be inlinable, so please take care when making\n// changes to the function body.\nfunction copyFromBufferString(n, list) {\n var p = list.head;\n var c = 1;\n var ret = p.data;\n n -= ret.length;\n while (p = p.next) {\n var str = p.data;\n var nb = n > str.length ? str.length : n;\n if (nb === str.length) ret += str;else ret += str.slice(0, n);\n n -= nb;\n if (n === 0) {\n if (nb === str.length) {\n ++c;\n if (p.next) list.head = p.next;else list.head = list.tail = null;\n } else {\n list.head = p;\n p.data = str.slice(nb);\n }\n break;\n }\n ++c;\n }\n list.length -= c;\n return ret;\n}\n\n// Copies a specified amount of bytes from the list of buffered data chunks.\n// This function is designed to be inlinable, so please take care when making\n// changes to the function body.\nfunction copyFromBuffer(n, list) {\n var ret = Buffer.allocUnsafe(n);\n var p = list.head;\n var c = 1;\n p.data.copy(ret);\n n -= p.data.length;\n while (p = p.next) {\n var buf = p.data;\n var nb = n > buf.length ? buf.length : n;\n buf.copy(ret, ret.length - n, 0, nb);\n n -= nb;\n if (n === 0) {\n if (nb === buf.length) {\n ++c;\n if (p.next) list.head = p.next;else list.head = list.tail = null;\n } else {\n list.head = p;\n p.data = buf.slice(nb);\n }\n break;\n }\n ++c;\n }\n list.length -= c;\n return ret;\n}\n\nfunction endReadable(stream) {\n var state = stream._readableState;\n\n // If we get here before consuming all the bytes, then that is a\n // bug in node. Should never happen.\n if (state.length > 0) throw new Error('\"endReadable()\" called on non-empty stream');\n\n if (!state.endEmitted) {\n state.ended = true;\n pna.nextTick(endReadableNT, state, stream);\n }\n}\n\nfunction endReadableNT(state, stream) {\n // Check that we didn't get one last unshift.\n if (!state.endEmitted && state.length === 0) {\n state.endEmitted = true;\n stream.readable = false;\n stream.emit('end');\n }\n}\n\nfunction indexOf(xs, x) {\n for (var i = 0, l = xs.length; i < l; i++) {\n if (xs[i] === x) return i;\n }\n return -1;\n}\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../webpack/buildin/global.js */ \"./node_modules/webpack/buildin/global.js\"), __webpack_require__(/*! ./../../process/browser.js */ \"./node_modules/process/browser.js\")))\n\n//# sourceURL=webpack://GeoRaster/./node_modules/readable-stream/lib/_stream_readable.js?");
936
937/***/ }),
938
939/***/ "./node_modules/readable-stream/lib/_stream_transform.js":
940/*!***************************************************************!*\
941 !*** ./node_modules/readable-stream/lib/_stream_transform.js ***!
942 \***************************************************************/
943/*! no static exports found */
944/***/ (function(module, exports, __webpack_require__) {
945
946"use strict";
947eval("// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// a transform stream is a readable/writable stream where you do\n// something with the data. Sometimes it's called a \"filter\",\n// but that's not a great name for it, since that implies a thing where\n// some bits pass through, and others are simply ignored. (That would\n// be a valid example of a transform, of course.)\n//\n// While the output is causally related to the input, it's not a\n// necessarily symmetric or synchronous transformation. For example,\n// a zlib stream might take multiple plain-text writes(), and then\n// emit a single compressed chunk some time in the future.\n//\n// Here's how this works:\n//\n// The Transform stream has all the aspects of the readable and writable\n// stream classes. When you write(chunk), that calls _write(chunk,cb)\n// internally, and returns false if there's a lot of pending writes\n// buffered up. When you call read(), that calls _read(n) until\n// there's enough pending readable data buffered up.\n//\n// In a transform stream, the written data is placed in a buffer. When\n// _read(n) is called, it transforms the queued up data, calling the\n// buffered _write cb's as it consumes chunks. If consuming a single\n// written chunk would result in multiple output chunks, then the first\n// outputted bit calls the readcb, and subsequent chunks just go into\n// the read buffer, and will cause it to emit 'readable' if necessary.\n//\n// This way, back-pressure is actually determined by the reading side,\n// since _read has to be called to start processing a new chunk. However,\n// a pathological inflate type of transform can cause excessive buffering\n// here. For example, imagine a stream where every byte of input is\n// interpreted as an integer from 0-255, and then results in that many\n// bytes of output. Writing the 4 bytes {ff,ff,ff,ff} would result in\n// 1kb of data being output. In this case, you could write a very small\n// amount of input, and end up with a very large amount of output. In\n// such a pathological inflating mechanism, there'd be no way to tell\n// the system to stop doing the transform. A single 4MB write could\n// cause the system to run out of memory.\n//\n// However, even in such a pathological case, only a single written chunk\n// would be consumed, and then the rest would wait (un-transformed) until\n// the results of the previous transformed chunk were consumed.\n\n\n\nmodule.exports = Transform;\n\nvar Duplex = __webpack_require__(/*! ./_stream_duplex */ \"./node_modules/readable-stream/lib/_stream_duplex.js\");\n\n/*<replacement>*/\nvar util = Object.create(__webpack_require__(/*! core-util-is */ \"./node_modules/core-util-is/lib/util.js\"));\nutil.inherits = __webpack_require__(/*! inherits */ \"./node_modules/inherits/inherits_browser.js\");\n/*</replacement>*/\n\nutil.inherits(Transform, Duplex);\n\nfunction afterTransform(er, data) {\n var ts = this._transformState;\n ts.transforming = false;\n\n var cb = ts.writecb;\n\n if (!cb) {\n return this.emit('error', new Error('write callback called multiple times'));\n }\n\n ts.writechunk = null;\n ts.writecb = null;\n\n if (data != null) // single equals check for both `null` and `undefined`\n this.push(data);\n\n cb(er);\n\n var rs = this._readableState;\n rs.reading = false;\n if (rs.needReadable || rs.length < rs.highWaterMark) {\n this._read(rs.highWaterMark);\n }\n}\n\nfunction Transform(options) {\n if (!(this instanceof Transform)) return new Transform(options);\n\n Duplex.call(this, options);\n\n this._transformState = {\n afterTransform: afterTransform.bind(this),\n needTransform: false,\n transforming: false,\n writecb: null,\n writechunk: null,\n writeencoding: null\n };\n\n // start out asking for a readable event once data is transformed.\n this._readableState.needReadable = true;\n\n // we have implemented the _read method, and done the other things\n // that Readable wants before the first _read call, so unset the\n // sync guard flag.\n this._readableState.sync = false;\n\n if (options) {\n if (typeof options.transform === 'function') this._transform = options.transform;\n\n if (typeof options.flush === 'function') this._flush = options.flush;\n }\n\n // When the writable side finishes, then flush out anything remaining.\n this.on('prefinish', prefinish);\n}\n\nfunction prefinish() {\n var _this = this;\n\n if (typeof this._flush === 'function') {\n this._flush(function (er, data) {\n done(_this, er, data);\n });\n } else {\n done(this, null, null);\n }\n}\n\nTransform.prototype.push = function (chunk, encoding) {\n this._transformState.needTransform = false;\n return Duplex.prototype.push.call(this, chunk, encoding);\n};\n\n// This is the part where you do stuff!\n// override this function in implementation classes.\n// 'chunk' is an input chunk.\n//\n// Call `push(newChunk)` to pass along transformed output\n// to the readable side. You may call 'push' zero or more times.\n//\n// Call `cb(err)` when you are done with this chunk. If you pass\n// an error, then that'll put the hurt on the whole operation. If you\n// never call cb(), then you'll never get another chunk.\nTransform.prototype._transform = function (chunk, encoding, cb) {\n throw new Error('_transform() is not implemented');\n};\n\nTransform.prototype._write = function (chunk, encoding, cb) {\n var ts = this._transformState;\n ts.writecb = cb;\n ts.writechunk = chunk;\n ts.writeencoding = encoding;\n if (!ts.transforming) {\n var rs = this._readableState;\n if (ts.needTransform || rs.needReadable || rs.length < rs.highWaterMark) this._read(rs.highWaterMark);\n }\n};\n\n// Doesn't matter what the args are here.\n// _transform does all the work.\n// That we got here means that the readable side wants more data.\nTransform.prototype._read = function (n) {\n var ts = this._transformState;\n\n if (ts.writechunk !== null && ts.writecb && !ts.transforming) {\n ts.transforming = true;\n this._transform(ts.writechunk, ts.writeencoding, ts.afterTransform);\n } else {\n // mark that we need a transform, so that any data that comes in\n // will get processed, now that we've asked for it.\n ts.needTransform = true;\n }\n};\n\nTransform.prototype._destroy = function (err, cb) {\n var _this2 = this;\n\n Duplex.prototype._destroy.call(this, err, function (err2) {\n cb(err2);\n _this2.emit('close');\n });\n};\n\nfunction done(stream, er, data) {\n if (er) return stream.emit('error', er);\n\n if (data != null) // single equals check for both `null` and `undefined`\n stream.push(data);\n\n // if there's nothing in the write buffer, then that means\n // that nothing more will ever be provided\n if (stream._writableState.length) throw new Error('Calling transform done when ws.length != 0');\n\n if (stream._transformState.transforming) throw new Error('Calling transform done when still transforming');\n\n return stream.push(null);\n}\n\n//# sourceURL=webpack://GeoRaster/./node_modules/readable-stream/lib/_stream_transform.js?");
948
949/***/ }),
950
951/***/ "./node_modules/readable-stream/lib/_stream_writable.js":
952/*!**************************************************************!*\
953 !*** ./node_modules/readable-stream/lib/_stream_writable.js ***!
954 \**************************************************************/
955/*! no static exports found */
956/***/ (function(module, exports, __webpack_require__) {
957
958"use strict";
959eval("/* WEBPACK VAR INJECTION */(function(process, setImmediate, global) {// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// A bit simpler than readable streams.\n// Implement an async ._write(chunk, encoding, cb), and it'll handle all\n// the drain event emission and buffering.\n\n\n\n/*<replacement>*/\n\nvar pna = __webpack_require__(/*! process-nextick-args */ \"./node_modules/process-nextick-args/index.js\");\n/*</replacement>*/\n\nmodule.exports = Writable;\n\n/* <replacement> */\nfunction WriteReq(chunk, encoding, cb) {\n this.chunk = chunk;\n this.encoding = encoding;\n this.callback = cb;\n this.next = null;\n}\n\n// It seems a linked list but it is not\n// there will be only 2 of these for each stream\nfunction CorkedRequest(state) {\n var _this = this;\n\n this.next = null;\n this.entry = null;\n this.finish = function () {\n onCorkedFinish(_this, state);\n };\n}\n/* </replacement> */\n\n/*<replacement>*/\nvar asyncWrite = !process.browser && ['v0.10', 'v0.9.'].indexOf(process.version.slice(0, 5)) > -1 ? setImmediate : pna.nextTick;\n/*</replacement>*/\n\n/*<replacement>*/\nvar Duplex;\n/*</replacement>*/\n\nWritable.WritableState = WritableState;\n\n/*<replacement>*/\nvar util = Object.create(__webpack_require__(/*! core-util-is */ \"./node_modules/core-util-is/lib/util.js\"));\nutil.inherits = __webpack_require__(/*! inherits */ \"./node_modules/inherits/inherits_browser.js\");\n/*</replacement>*/\n\n/*<replacement>*/\nvar internalUtil = {\n deprecate: __webpack_require__(/*! util-deprecate */ \"./node_modules/util-deprecate/browser.js\")\n};\n/*</replacement>*/\n\n/*<replacement>*/\nvar Stream = __webpack_require__(/*! ./internal/streams/stream */ \"./node_modules/readable-stream/lib/internal/streams/stream-browser.js\");\n/*</replacement>*/\n\n/*<replacement>*/\n\nvar Buffer = __webpack_require__(/*! safe-buffer */ \"./node_modules/readable-stream/node_modules/safe-buffer/index.js\").Buffer;\nvar OurUint8Array = global.Uint8Array || function () {};\nfunction _uint8ArrayToBuffer(chunk) {\n return Buffer.from(chunk);\n}\nfunction _isUint8Array(obj) {\n return Buffer.isBuffer(obj) || obj instanceof OurUint8Array;\n}\n\n/*</replacement>*/\n\nvar destroyImpl = __webpack_require__(/*! ./internal/streams/destroy */ \"./node_modules/readable-stream/lib/internal/streams/destroy.js\");\n\nutil.inherits(Writable, Stream);\n\nfunction nop() {}\n\nfunction WritableState(options, stream) {\n Duplex = Duplex || __webpack_require__(/*! ./_stream_duplex */ \"./node_modules/readable-stream/lib/_stream_duplex.js\");\n\n options = options || {};\n\n // Duplex streams are both readable and writable, but share\n // the same options object.\n // However, some cases require setting options to different\n // values for the readable and the writable sides of the duplex stream.\n // These options can be provided separately as readableXXX and writableXXX.\n var isDuplex = stream instanceof Duplex;\n\n // object stream flag to indicate whether or not this stream\n // contains buffers or objects.\n this.objectMode = !!options.objectMode;\n\n if (isDuplex) this.objectMode = this.objectMode || !!options.writableObjectMode;\n\n // the point at which write() starts returning false\n // Note: 0 is a valid value, means that we always return false if\n // the entire buffer is not flushed immediately on write()\n var hwm = options.highWaterMark;\n var writableHwm = options.writableHighWaterMark;\n var defaultHwm = this.objectMode ? 16 : 16 * 1024;\n\n if (hwm || hwm === 0) this.highWaterMark = hwm;else if (isDuplex && (writableHwm || writableHwm === 0)) this.highWaterMark = writableHwm;else this.highWaterMark = defaultHwm;\n\n // cast to ints.\n this.highWaterMark = Math.floor(this.highWaterMark);\n\n // if _final has been called\n this.finalCalled = false;\n\n // drain event flag.\n this.needDrain = false;\n // at the start of calling end()\n this.ending = false;\n // when end() has been called, and returned\n this.ended = false;\n // when 'finish' is emitted\n this.finished = false;\n\n // has it been destroyed\n this.destroyed = false;\n\n // should we decode strings into buffers before passing to _write?\n // this is here so that some node-core streams can optimize string\n // handling at a lower level.\n var noDecode = options.decodeStrings === false;\n this.decodeStrings = !noDecode;\n\n // Crypto is kind of old and crusty. Historically, its default string\n // encoding is 'binary' so we have to make this configurable.\n // Everything else in the universe uses 'utf8', though.\n this.defaultEncoding = options.defaultEncoding || 'utf8';\n\n // not an actual buffer we keep track of, but a measurement\n // of how much we're waiting to get pushed to some underlying\n // socket or file.\n this.length = 0;\n\n // a flag to see when we're in the middle of a write.\n this.writing = false;\n\n // when true all writes will be buffered until .uncork() call\n this.corked = 0;\n\n // a flag to be able to tell if the onwrite cb is called immediately,\n // or on a later tick. We set this to true at first, because any\n // actions that shouldn't happen until \"later\" should generally also\n // not happen before the first write call.\n this.sync = true;\n\n // a flag to know if we're processing previously buffered items, which\n // may call the _write() callback in the same tick, so that we don't\n // end up in an overlapped onwrite situation.\n this.bufferProcessing = false;\n\n // the callback that's passed to _write(chunk,cb)\n this.onwrite = function (er) {\n onwrite(stream, er);\n };\n\n // the callback that the user supplies to write(chunk,encoding,cb)\n this.writecb = null;\n\n // the amount that is being written when _write is called.\n this.writelen = 0;\n\n this.bufferedRequest = null;\n this.lastBufferedRequest = null;\n\n // number of pending user-supplied write callbacks\n // this must be 0 before 'finish' can be emitted\n this.pendingcb = 0;\n\n // emit prefinish if the only thing we're waiting for is _write cbs\n // This is relevant for synchronous Transform streams\n this.prefinished = false;\n\n // True if the error was already emitted and should not be thrown again\n this.errorEmitted = false;\n\n // count buffered requests\n this.bufferedRequestCount = 0;\n\n // allocate the first CorkedRequest, there is always\n // one allocated and free to use, and we maintain at most two\n this.corkedRequestsFree = new CorkedRequest(this);\n}\n\nWritableState.prototype.getBuffer = function getBuffer() {\n var current = this.bufferedRequest;\n var out = [];\n while (current) {\n out.push(current);\n current = current.next;\n }\n return out;\n};\n\n(function () {\n try {\n Object.defineProperty(WritableState.prototype, 'buffer', {\n get: internalUtil.deprecate(function () {\n return this.getBuffer();\n }, '_writableState.buffer is deprecated. Use _writableState.getBuffer ' + 'instead.', 'DEP0003')\n });\n } catch (_) {}\n})();\n\n// Test _writableState for inheritance to account for Duplex streams,\n// whose prototype chain only points to Readable.\nvar realHasInstance;\nif (typeof Symbol === 'function' && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] === 'function') {\n realHasInstance = Function.prototype[Symbol.hasInstance];\n Object.defineProperty(Writable, Symbol.hasInstance, {\n value: function (object) {\n if (realHasInstance.call(this, object)) return true;\n if (this !== Writable) return false;\n\n return object && object._writableState instanceof WritableState;\n }\n });\n} else {\n realHasInstance = function (object) {\n return object instanceof this;\n };\n}\n\nfunction Writable(options) {\n Duplex = Duplex || __webpack_require__(/*! ./_stream_duplex */ \"./node_modules/readable-stream/lib/_stream_duplex.js\");\n\n // Writable ctor is applied to Duplexes, too.\n // `realHasInstance` is necessary because using plain `instanceof`\n // would return false, as no `_writableState` property is attached.\n\n // Trying to use the custom `instanceof` for Writable here will also break the\n // Node.js LazyTransform implementation, which has a non-trivial getter for\n // `_writableState` that would lead to infinite recursion.\n if (!realHasInstance.call(Writable, this) && !(this instanceof Duplex)) {\n return new Writable(options);\n }\n\n this._writableState = new WritableState(options, this);\n\n // legacy.\n this.writable = true;\n\n if (options) {\n if (typeof options.write === 'function') this._write = options.write;\n\n if (typeof options.writev === 'function') this._writev = options.writev;\n\n if (typeof options.destroy === 'function') this._destroy = options.destroy;\n\n if (typeof options.final === 'function') this._final = options.final;\n }\n\n Stream.call(this);\n}\n\n// Otherwise people can pipe Writable streams, which is just wrong.\nWritable.prototype.pipe = function () {\n this.emit('error', new Error('Cannot pipe, not readable'));\n};\n\nfunction writeAfterEnd(stream, cb) {\n var er = new Error('write after end');\n // TODO: defer error events consistently everywhere, not just the cb\n stream.emit('error', er);\n pna.nextTick(cb, er);\n}\n\n// Checks that a user-supplied chunk is valid, especially for the particular\n// mode the stream is in. Currently this means that `null` is never accepted\n// and undefined/non-string values are only allowed in object mode.\nfunction validChunk(stream, state, chunk, cb) {\n var valid = true;\n var er = false;\n\n if (chunk === null) {\n er = new TypeError('May not write null values to stream');\n } else if (typeof chunk !== 'string' && chunk !== undefined && !state.objectMode) {\n er = new TypeError('Invalid non-string/buffer chunk');\n }\n if (er) {\n stream.emit('error', er);\n pna.nextTick(cb, er);\n valid = false;\n }\n return valid;\n}\n\nWritable.prototype.write = function (chunk, encoding, cb) {\n var state = this._writableState;\n var ret = false;\n var isBuf = !state.objectMode && _isUint8Array(chunk);\n\n if (isBuf && !Buffer.isBuffer(chunk)) {\n chunk = _uint8ArrayToBuffer(chunk);\n }\n\n if (typeof encoding === 'function') {\n cb = encoding;\n encoding = null;\n }\n\n if (isBuf) encoding = 'buffer';else if (!encoding) encoding = state.defaultEncoding;\n\n if (typeof cb !== 'function') cb = nop;\n\n if (state.ended) writeAfterEnd(this, cb);else if (isBuf || validChunk(this, state, chunk, cb)) {\n state.pendingcb++;\n ret = writeOrBuffer(this, state, isBuf, chunk, encoding, cb);\n }\n\n return ret;\n};\n\nWritable.prototype.cork = function () {\n var state = this._writableState;\n\n state.corked++;\n};\n\nWritable.prototype.uncork = function () {\n var state = this._writableState;\n\n if (state.corked) {\n state.corked--;\n\n if (!state.writing && !state.corked && !state.finished && !state.bufferProcessing && state.bufferedRequest) clearBuffer(this, state);\n }\n};\n\nWritable.prototype.setDefaultEncoding = function setDefaultEncoding(encoding) {\n // node::ParseEncoding() requires lower case.\n if (typeof encoding === 'string') encoding = encoding.toLowerCase();\n if (!(['hex', 'utf8', 'utf-8', 'ascii', 'binary', 'base64', 'ucs2', 'ucs-2', 'utf16le', 'utf-16le', 'raw'].indexOf((encoding + '').toLowerCase()) > -1)) throw new TypeError('Unknown encoding: ' + encoding);\n this._writableState.defaultEncoding = encoding;\n return this;\n};\n\nfunction decodeChunk(state, chunk, encoding) {\n if (!state.objectMode && state.decodeStrings !== false && typeof chunk === 'string') {\n chunk = Buffer.from(chunk, encoding);\n }\n return chunk;\n}\n\nObject.defineProperty(Writable.prototype, 'writableHighWaterMark', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function () {\n return this._writableState.highWaterMark;\n }\n});\n\n// if we're already writing something, then just put this\n// in the queue, and wait our turn. Otherwise, call _write\n// If we return false, then we need a drain event, so set that flag.\nfunction writeOrBuffer(stream, state, isBuf, chunk, encoding, cb) {\n if (!isBuf) {\n var newChunk = decodeChunk(state, chunk, encoding);\n if (chunk !== newChunk) {\n isBuf = true;\n encoding = 'buffer';\n chunk = newChunk;\n }\n }\n var len = state.objectMode ? 1 : chunk.length;\n\n state.length += len;\n\n var ret = state.length < state.highWaterMark;\n // we must ensure that previous needDrain will not be reset to false.\n if (!ret) state.needDrain = true;\n\n if (state.writing || state.corked) {\n var last = state.lastBufferedRequest;\n state.lastBufferedRequest = {\n chunk: chunk,\n encoding: encoding,\n isBuf: isBuf,\n callback: cb,\n next: null\n };\n if (last) {\n last.next = state.lastBufferedRequest;\n } else {\n state.bufferedRequest = state.lastBufferedRequest;\n }\n state.bufferedRequestCount += 1;\n } else {\n doWrite(stream, state, false, len, chunk, encoding, cb);\n }\n\n return ret;\n}\n\nfunction doWrite(stream, state, writev, len, chunk, encoding, cb) {\n state.writelen = len;\n state.writecb = cb;\n state.writing = true;\n state.sync = true;\n if (writev) stream._writev(chunk, state.onwrite);else stream._write(chunk, encoding, state.onwrite);\n state.sync = false;\n}\n\nfunction onwriteError(stream, state, sync, er, cb) {\n --state.pendingcb;\n\n if (sync) {\n // defer the callback if we are being called synchronously\n // to avoid piling up things on the stack\n pna.nextTick(cb, er);\n // this can emit finish, and it will always happen\n // after error\n pna.nextTick(finishMaybe, stream, state);\n stream._writableState.errorEmitted = true;\n stream.emit('error', er);\n } else {\n // the caller expect this to happen before if\n // it is async\n cb(er);\n stream._writableState.errorEmitted = true;\n stream.emit('error', er);\n // this can emit finish, but finish must\n // always follow error\n finishMaybe(stream, state);\n }\n}\n\nfunction onwriteStateUpdate(state) {\n state.writing = false;\n state.writecb = null;\n state.length -= state.writelen;\n state.writelen = 0;\n}\n\nfunction onwrite(stream, er) {\n var state = stream._writableState;\n var sync = state.sync;\n var cb = state.writecb;\n\n onwriteStateUpdate(state);\n\n if (er) onwriteError(stream, state, sync, er, cb);else {\n // Check if we're actually ready to finish, but don't emit yet\n var finished = needFinish(state);\n\n if (!finished && !state.corked && !state.bufferProcessing && state.bufferedRequest) {\n clearBuffer(stream, state);\n }\n\n if (sync) {\n /*<replacement>*/\n asyncWrite(afterWrite, stream, state, finished, cb);\n /*</replacement>*/\n } else {\n afterWrite(stream, state, finished, cb);\n }\n }\n}\n\nfunction afterWrite(stream, state, finished, cb) {\n if (!finished) onwriteDrain(stream, state);\n state.pendingcb--;\n cb();\n finishMaybe(stream, state);\n}\n\n// Must force callback to be called on nextTick, so that we don't\n// emit 'drain' before the write() consumer gets the 'false' return\n// value, and has a chance to attach a 'drain' listener.\nfunction onwriteDrain(stream, state) {\n if (state.length === 0 && state.needDrain) {\n state.needDrain = false;\n stream.emit('drain');\n }\n}\n\n// if there's something in the buffer waiting, then process it\nfunction clearBuffer(stream, state) {\n state.bufferProcessing = true;\n var entry = state.bufferedRequest;\n\n if (stream._writev && entry && entry.next) {\n // Fast case, write everything using _writev()\n var l = state.bufferedRequestCount;\n var buffer = new Array(l);\n var holder = state.corkedRequestsFree;\n holder.entry = entry;\n\n var count = 0;\n var allBuffers = true;\n while (entry) {\n buffer[count] = entry;\n if (!entry.isBuf) allBuffers = false;\n entry = entry.next;\n count += 1;\n }\n buffer.allBuffers = allBuffers;\n\n doWrite(stream, state, true, state.length, buffer, '', holder.finish);\n\n // doWrite is almost always async, defer these to save a bit of time\n // as the hot path ends with doWrite\n state.pendingcb++;\n state.lastBufferedRequest = null;\n if (holder.next) {\n state.corkedRequestsFree = holder.next;\n holder.next = null;\n } else {\n state.corkedRequestsFree = new CorkedRequest(state);\n }\n state.bufferedRequestCount = 0;\n } else {\n // Slow case, write chunks one-by-one\n while (entry) {\n var chunk = entry.chunk;\n var encoding = entry.encoding;\n var cb = entry.callback;\n var len = state.objectMode ? 1 : chunk.length;\n\n doWrite(stream, state, false, len, chunk, encoding, cb);\n entry = entry.next;\n state.bufferedRequestCount--;\n // if we didn't call the onwrite immediately, then\n // it means that we need to wait until it does.\n // also, that means that the chunk and cb are currently\n // being processed, so move the buffer counter past them.\n if (state.writing) {\n break;\n }\n }\n\n if (entry === null) state.lastBufferedRequest = null;\n }\n\n state.bufferedRequest = entry;\n state.bufferProcessing = false;\n}\n\nWritable.prototype._write = function (chunk, encoding, cb) {\n cb(new Error('_write() is not implemented'));\n};\n\nWritable.prototype._writev = null;\n\nWritable.prototype.end = function (chunk, encoding, cb) {\n var state = this._writableState;\n\n if (typeof chunk === 'function') {\n cb = chunk;\n chunk = null;\n encoding = null;\n } else if (typeof encoding === 'function') {\n cb = encoding;\n encoding = null;\n }\n\n if (chunk !== null && chunk !== undefined) this.write(chunk, encoding);\n\n // .end() fully uncorks\n if (state.corked) {\n state.corked = 1;\n this.uncork();\n }\n\n // ignore unnecessary end() calls.\n if (!state.ending && !state.finished) endWritable(this, state, cb);\n};\n\nfunction needFinish(state) {\n return state.ending && state.length === 0 && state.bufferedRequest === null && !state.finished && !state.writing;\n}\nfunction callFinal(stream, state) {\n stream._final(function (err) {\n state.pendingcb--;\n if (err) {\n stream.emit('error', err);\n }\n state.prefinished = true;\n stream.emit('prefinish');\n finishMaybe(stream, state);\n });\n}\nfunction prefinish(stream, state) {\n if (!state.prefinished && !state.finalCalled) {\n if (typeof stream._final === 'function') {\n state.pendingcb++;\n state.finalCalled = true;\n pna.nextTick(callFinal, stream, state);\n } else {\n state.prefinished = true;\n stream.emit('prefinish');\n }\n }\n}\n\nfunction finishMaybe(stream, state) {\n var need = needFinish(state);\n if (need) {\n prefinish(stream, state);\n if (state.pendingcb === 0) {\n state.finished = true;\n stream.emit('finish');\n }\n }\n return need;\n}\n\nfunction endWritable(stream, state, cb) {\n state.ending = true;\n finishMaybe(stream, state);\n if (cb) {\n if (state.finished) pna.nextTick(cb);else stream.once('finish', cb);\n }\n state.ended = true;\n stream.writable = false;\n}\n\nfunction onCorkedFinish(corkReq, state, err) {\n var entry = corkReq.entry;\n corkReq.entry = null;\n while (entry) {\n var cb = entry.callback;\n state.pendingcb--;\n cb(err);\n entry = entry.next;\n }\n if (state.corkedRequestsFree) {\n state.corkedRequestsFree.next = corkReq;\n } else {\n state.corkedRequestsFree = corkReq;\n }\n}\n\nObject.defineProperty(Writable.prototype, 'destroyed', {\n get: function () {\n if (this._writableState === undefined) {\n return false;\n }\n return this._writableState.destroyed;\n },\n set: function (value) {\n // we ignore the value if the stream\n // has not been initialized yet\n if (!this._writableState) {\n return;\n }\n\n // backward compatibility, the user is explicitly\n // managing destroyed\n this._writableState.destroyed = value;\n }\n});\n\nWritable.prototype.destroy = destroyImpl.destroy;\nWritable.prototype._undestroy = destroyImpl.undestroy;\nWritable.prototype._destroy = function (err, cb) {\n this.end();\n cb(err);\n};\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../process/browser.js */ \"./node_modules/process/browser.js\"), __webpack_require__(/*! ./../../node-libs-browser/node_modules/timers-browserify/main.js */ \"./node_modules/node-libs-browser/node_modules/timers-browserify/main.js\").setImmediate, __webpack_require__(/*! ./../../webpack/buildin/global.js */ \"./node_modules/webpack/buildin/global.js\")))\n\n//# sourceURL=webpack://GeoRaster/./node_modules/readable-stream/lib/_stream_writable.js?");
960
961/***/ }),
962
963/***/ "./node_modules/readable-stream/lib/internal/streams/BufferList.js":
964/*!*************************************************************************!*\
965 !*** ./node_modules/readable-stream/lib/internal/streams/BufferList.js ***!
966 \*************************************************************************/
967/*! no static exports found */
968/***/ (function(module, exports, __webpack_require__) {
969
970"use strict";
971eval("\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nvar Buffer = __webpack_require__(/*! safe-buffer */ \"./node_modules/readable-stream/node_modules/safe-buffer/index.js\").Buffer;\nvar util = __webpack_require__(/*! util */ 1);\n\nfunction copyBuffer(src, target, offset) {\n src.copy(target, offset);\n}\n\nmodule.exports = function () {\n function BufferList() {\n _classCallCheck(this, BufferList);\n\n this.head = null;\n this.tail = null;\n this.length = 0;\n }\n\n BufferList.prototype.push = function push(v) {\n var entry = { data: v, next: null };\n if (this.length > 0) this.tail.next = entry;else this.head = entry;\n this.tail = entry;\n ++this.length;\n };\n\n BufferList.prototype.unshift = function unshift(v) {\n var entry = { data: v, next: this.head };\n if (this.length === 0) this.tail = entry;\n this.head = entry;\n ++this.length;\n };\n\n BufferList.prototype.shift = function shift() {\n if (this.length === 0) return;\n var ret = this.head.data;\n if (this.length === 1) this.head = this.tail = null;else this.head = this.head.next;\n --this.length;\n return ret;\n };\n\n BufferList.prototype.clear = function clear() {\n this.head = this.tail = null;\n this.length = 0;\n };\n\n BufferList.prototype.join = function join(s) {\n if (this.length === 0) return '';\n var p = this.head;\n var ret = '' + p.data;\n while (p = p.next) {\n ret += s + p.data;\n }return ret;\n };\n\n BufferList.prototype.concat = function concat(n) {\n if (this.length === 0) return Buffer.alloc(0);\n if (this.length === 1) return this.head.data;\n var ret = Buffer.allocUnsafe(n >>> 0);\n var p = this.head;\n var i = 0;\n while (p) {\n copyBuffer(p.data, ret, i);\n i += p.data.length;\n p = p.next;\n }\n return ret;\n };\n\n return BufferList;\n}();\n\nif (util && util.inspect && util.inspect.custom) {\n module.exports.prototype[util.inspect.custom] = function () {\n var obj = util.inspect({ length: this.length });\n return this.constructor.name + ' ' + obj;\n };\n}\n\n//# sourceURL=webpack://GeoRaster/./node_modules/readable-stream/lib/internal/streams/BufferList.js?");
972
973/***/ }),
974
975/***/ "./node_modules/readable-stream/lib/internal/streams/destroy.js":
976/*!**********************************************************************!*\
977 !*** ./node_modules/readable-stream/lib/internal/streams/destroy.js ***!
978 \**********************************************************************/
979/*! no static exports found */
980/***/ (function(module, exports, __webpack_require__) {
981
982"use strict";
983eval("\n\n/*<replacement>*/\n\nvar pna = __webpack_require__(/*! process-nextick-args */ \"./node_modules/process-nextick-args/index.js\");\n/*</replacement>*/\n\n// undocumented cb() API, needed for core, not for public API\nfunction destroy(err, cb) {\n var _this = this;\n\n var readableDestroyed = this._readableState && this._readableState.destroyed;\n var writableDestroyed = this._writableState && this._writableState.destroyed;\n\n if (readableDestroyed || writableDestroyed) {\n if (cb) {\n cb(err);\n } else if (err && (!this._writableState || !this._writableState.errorEmitted)) {\n pna.nextTick(emitErrorNT, this, err);\n }\n return this;\n }\n\n // we set destroyed to true before firing error callbacks in order\n // to make it re-entrance safe in case destroy() is called within callbacks\n\n if (this._readableState) {\n this._readableState.destroyed = true;\n }\n\n // if this is a duplex stream mark the writable part as destroyed as well\n if (this._writableState) {\n this._writableState.destroyed = true;\n }\n\n this._destroy(err || null, function (err) {\n if (!cb && err) {\n pna.nextTick(emitErrorNT, _this, err);\n if (_this._writableState) {\n _this._writableState.errorEmitted = true;\n }\n } else if (cb) {\n cb(err);\n }\n });\n\n return this;\n}\n\nfunction undestroy() {\n if (this._readableState) {\n this._readableState.destroyed = false;\n this._readableState.reading = false;\n this._readableState.ended = false;\n this._readableState.endEmitted = false;\n }\n\n if (this._writableState) {\n this._writableState.destroyed = false;\n this._writableState.ended = false;\n this._writableState.ending = false;\n this._writableState.finished = false;\n this._writableState.errorEmitted = false;\n }\n}\n\nfunction emitErrorNT(self, err) {\n self.emit('error', err);\n}\n\nmodule.exports = {\n destroy: destroy,\n undestroy: undestroy\n};\n\n//# sourceURL=webpack://GeoRaster/./node_modules/readable-stream/lib/internal/streams/destroy.js?");
984
985/***/ }),
986
987/***/ "./node_modules/readable-stream/lib/internal/streams/stream-browser.js":
988/*!*****************************************************************************!*\
989 !*** ./node_modules/readable-stream/lib/internal/streams/stream-browser.js ***!
990 \*****************************************************************************/
991/*! no static exports found */
992/***/ (function(module, exports, __webpack_require__) {
993
994eval("module.exports = __webpack_require__(/*! events */ \"./node_modules/node-libs-browser/node_modules/events/events.js\").EventEmitter;\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/readable-stream/lib/internal/streams/stream-browser.js?");
995
996/***/ }),
997
998/***/ "./node_modules/readable-stream/node_modules/safe-buffer/index.js":
999/*!************************************************************************!*\
1000 !*** ./node_modules/readable-stream/node_modules/safe-buffer/index.js ***!
1001 \************************************************************************/
1002/*! no static exports found */
1003/***/ (function(module, exports, __webpack_require__) {
1004
1005eval("/* eslint-disable node/no-deprecated-api */\nvar buffer = __webpack_require__(/*! buffer */ \"./node_modules/node-libs-browser/node_modules/buffer/index.js\")\nvar Buffer = buffer.Buffer\n\n// alternative to using Object.keys for old browsers\nfunction copyProps (src, dst) {\n for (var key in src) {\n dst[key] = src[key]\n }\n}\nif (Buffer.from && Buffer.alloc && Buffer.allocUnsafe && Buffer.allocUnsafeSlow) {\n module.exports = buffer\n} else {\n // Copy properties from require('buffer')\n copyProps(buffer, exports)\n exports.Buffer = SafeBuffer\n}\n\nfunction SafeBuffer (arg, encodingOrOffset, length) {\n return Buffer(arg, encodingOrOffset, length)\n}\n\n// Copy static methods from Buffer\ncopyProps(Buffer, SafeBuffer)\n\nSafeBuffer.from = function (arg, encodingOrOffset, length) {\n if (typeof arg === 'number') {\n throw new TypeError('Argument must not be a number')\n }\n return Buffer(arg, encodingOrOffset, length)\n}\n\nSafeBuffer.alloc = function (size, fill, encoding) {\n if (typeof size !== 'number') {\n throw new TypeError('Argument must be a number')\n }\n var buf = Buffer(size)\n if (fill !== undefined) {\n if (typeof encoding === 'string') {\n buf.fill(fill, encoding)\n } else {\n buf.fill(fill)\n }\n } else {\n buf.fill(0)\n }\n return buf\n}\n\nSafeBuffer.allocUnsafe = function (size) {\n if (typeof size !== 'number') {\n throw new TypeError('Argument must be a number')\n }\n return Buffer(size)\n}\n\nSafeBuffer.allocUnsafeSlow = function (size) {\n if (typeof size !== 'number') {\n throw new TypeError('Argument must be a number')\n }\n return buffer.SlowBuffer(size)\n}\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/readable-stream/node_modules/safe-buffer/index.js?");
1006
1007/***/ }),
1008
1009/***/ "./node_modules/readable-stream/readable-browser.js":
1010/*!**********************************************************!*\
1011 !*** ./node_modules/readable-stream/readable-browser.js ***!
1012 \**********************************************************/
1013/*! no static exports found */
1014/***/ (function(module, exports, __webpack_require__) {
1015
1016eval("exports = module.exports = __webpack_require__(/*! ./lib/_stream_readable.js */ \"./node_modules/readable-stream/lib/_stream_readable.js\");\nexports.Stream = exports;\nexports.Readable = exports;\nexports.Writable = __webpack_require__(/*! ./lib/_stream_writable.js */ \"./node_modules/readable-stream/lib/_stream_writable.js\");\nexports.Duplex = __webpack_require__(/*! ./lib/_stream_duplex.js */ \"./node_modules/readable-stream/lib/_stream_duplex.js\");\nexports.Transform = __webpack_require__(/*! ./lib/_stream_transform.js */ \"./node_modules/readable-stream/lib/_stream_transform.js\");\nexports.PassThrough = __webpack_require__(/*! ./lib/_stream_passthrough.js */ \"./node_modules/readable-stream/lib/_stream_passthrough.js\");\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/readable-stream/readable-browser.js?");
1017
1018/***/ }),
1019
1020/***/ "./node_modules/setimmediate/setImmediate.js":
1021/*!***************************************************!*\
1022 !*** ./node_modules/setimmediate/setImmediate.js ***!
1023 \***************************************************/
1024/*! no static exports found */
1025/***/ (function(module, exports, __webpack_require__) {
1026
1027eval("/* WEBPACK VAR INJECTION */(function(global, process) {(function (global, undefined) {\n \"use strict\";\n\n if (global.setImmediate) {\n return;\n }\n\n var nextHandle = 1; // Spec says greater than zero\n var tasksByHandle = {};\n var currentlyRunningATask = false;\n var doc = global.document;\n var registerImmediate;\n\n function setImmediate(callback) {\n // Callback can either be a function or a string\n if (typeof callback !== \"function\") {\n callback = new Function(\"\" + callback);\n }\n // Copy function arguments\n var args = new Array(arguments.length - 1);\n for (var i = 0; i < args.length; i++) {\n args[i] = arguments[i + 1];\n }\n // Store and register the task\n var task = { callback: callback, args: args };\n tasksByHandle[nextHandle] = task;\n registerImmediate(nextHandle);\n return nextHandle++;\n }\n\n function clearImmediate(handle) {\n delete tasksByHandle[handle];\n }\n\n function run(task) {\n var callback = task.callback;\n var args = task.args;\n switch (args.length) {\n case 0:\n callback();\n break;\n case 1:\n callback(args[0]);\n break;\n case 2:\n callback(args[0], args[1]);\n break;\n case 3:\n callback(args[0], args[1], args[2]);\n break;\n default:\n callback.apply(undefined, args);\n break;\n }\n }\n\n function runIfPresent(handle) {\n // From the spec: \"Wait until any invocations of this algorithm started before this one have completed.\"\n // So if we're currently running a task, we'll need to delay this invocation.\n if (currentlyRunningATask) {\n // Delay by doing a setTimeout. setImmediate was tried instead, but in Firefox 7 it generated a\n // \"too much recursion\" error.\n setTimeout(runIfPresent, 0, handle);\n } else {\n var task = tasksByHandle[handle];\n if (task) {\n currentlyRunningATask = true;\n try {\n run(task);\n } finally {\n clearImmediate(handle);\n currentlyRunningATask = false;\n }\n }\n }\n }\n\n function installNextTickImplementation() {\n registerImmediate = function(handle) {\n process.nextTick(function () { runIfPresent(handle); });\n };\n }\n\n function canUsePostMessage() {\n // The test against `importScripts` prevents this implementation from being installed inside a web worker,\n // where `global.postMessage` means something completely different and can't be used for this purpose.\n if (global.postMessage && !global.importScripts) {\n var postMessageIsAsynchronous = true;\n var oldOnMessage = global.onmessage;\n global.onmessage = function() {\n postMessageIsAsynchronous = false;\n };\n global.postMessage(\"\", \"*\");\n global.onmessage = oldOnMessage;\n return postMessageIsAsynchronous;\n }\n }\n\n function installPostMessageImplementation() {\n // Installs an event handler on `global` for the `message` event: see\n // * https://developer.mozilla.org/en/DOM/window.postMessage\n // * http://www.whatwg.org/specs/web-apps/current-work/multipage/comms.html#crossDocumentMessages\n\n var messagePrefix = \"setImmediate$\" + Math.random() + \"$\";\n var onGlobalMessage = function(event) {\n if (event.source === global &&\n typeof event.data === \"string\" &&\n event.data.indexOf(messagePrefix) === 0) {\n runIfPresent(+event.data.slice(messagePrefix.length));\n }\n };\n\n if (global.addEventListener) {\n global.addEventListener(\"message\", onGlobalMessage, false);\n } else {\n global.attachEvent(\"onmessage\", onGlobalMessage);\n }\n\n registerImmediate = function(handle) {\n global.postMessage(messagePrefix + handle, \"*\");\n };\n }\n\n function installMessageChannelImplementation() {\n var channel = new MessageChannel();\n channel.port1.onmessage = function(event) {\n var handle = event.data;\n runIfPresent(handle);\n };\n\n registerImmediate = function(handle) {\n channel.port2.postMessage(handle);\n };\n }\n\n function installReadyStateChangeImplementation() {\n var html = doc.documentElement;\n registerImmediate = function(handle) {\n // Create a <script> element; its readystatechange event will be fired asynchronously once it is inserted\n // into the document. Do so, thus queuing up the task. Remember to clean up once it's been called.\n var script = doc.createElement(\"script\");\n script.onreadystatechange = function () {\n runIfPresent(handle);\n script.onreadystatechange = null;\n html.removeChild(script);\n script = null;\n };\n html.appendChild(script);\n };\n }\n\n function installSetTimeoutImplementation() {\n registerImmediate = function(handle) {\n setTimeout(runIfPresent, 0, handle);\n };\n }\n\n // If supported, we should attach to the prototype of global, since that is where setTimeout et al. live.\n var attachTo = Object.getPrototypeOf && Object.getPrototypeOf(global);\n attachTo = attachTo && attachTo.setTimeout ? attachTo : global;\n\n // Don't get fooled by e.g. browserify environments.\n if ({}.toString.call(global.process) === \"[object process]\") {\n // For Node.js before 0.9\n installNextTickImplementation();\n\n } else if (canUsePostMessage()) {\n // For non-IE10 modern browsers\n installPostMessageImplementation();\n\n } else if (global.MessageChannel) {\n // For web workers, where supported\n installMessageChannelImplementation();\n\n } else if (doc && \"onreadystatechange\" in doc.createElement(\"script\")) {\n // For IE 6–8\n installReadyStateChangeImplementation();\n\n } else {\n // For older browsers\n installSetTimeoutImplementation();\n }\n\n attachTo.setImmediate = setImmediate;\n attachTo.clearImmediate = clearImmediate;\n}(typeof self === \"undefined\" ? typeof global === \"undefined\" ? this : global : self));\n\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ \"./node_modules/webpack/buildin/global.js\"), __webpack_require__(/*! ./../process/browser.js */ \"./node_modules/process/browser.js\")))\n\n//# sourceURL=webpack://GeoRaster/./node_modules/setimmediate/setImmediate.js?");
1028
1029/***/ }),
1030
1031/***/ "./node_modules/stream-http/index.js":
1032/*!*******************************************!*\
1033 !*** ./node_modules/stream-http/index.js ***!
1034 \*******************************************/
1035/*! no static exports found */
1036/***/ (function(module, exports, __webpack_require__) {
1037
1038eval("/* WEBPACK VAR INJECTION */(function(global) {var ClientRequest = __webpack_require__(/*! ./lib/request */ \"./node_modules/stream-http/lib/request.js\")\nvar response = __webpack_require__(/*! ./lib/response */ \"./node_modules/stream-http/lib/response.js\")\nvar extend = __webpack_require__(/*! xtend */ \"./node_modules/xtend/immutable.js\")\nvar statusCodes = __webpack_require__(/*! builtin-status-codes */ \"./node_modules/builtin-status-codes/browser.js\")\nvar url = __webpack_require__(/*! url */ \"./node_modules/url/url.js\")\n\nvar http = exports\n\nhttp.request = function (opts, cb) {\n\tif (typeof opts === 'string')\n\t\topts = url.parse(opts)\n\telse\n\t\topts = extend(opts)\n\n\t// Normally, the page is loaded from http or https, so not specifying a protocol\n\t// will result in a (valid) protocol-relative url. However, this won't work if\n\t// the protocol is something else, like 'file:'\n\tvar defaultProtocol = global.location.protocol.search(/^https?:$/) === -1 ? 'http:' : ''\n\n\tvar protocol = opts.protocol || defaultProtocol\n\tvar host = opts.hostname || opts.host\n\tvar port = opts.port\n\tvar path = opts.path || '/'\n\n\t// Necessary for IPv6 addresses\n\tif (host && host.indexOf(':') !== -1)\n\t\thost = '[' + host + ']'\n\n\t// This may be a relative url. The browser should always be able to interpret it correctly.\n\topts.url = (host ? (protocol + '//' + host) : '') + (port ? ':' + port : '') + path\n\topts.method = (opts.method || 'GET').toUpperCase()\n\topts.headers = opts.headers || {}\n\n\t// Also valid opts.auth, opts.mode\n\n\tvar req = new ClientRequest(opts)\n\tif (cb)\n\t\treq.on('response', cb)\n\treturn req\n}\n\nhttp.get = function get (opts, cb) {\n\tvar req = http.request(opts, cb)\n\treq.end()\n\treturn req\n}\n\nhttp.ClientRequest = ClientRequest\nhttp.IncomingMessage = response.IncomingMessage\n\nhttp.Agent = function () {}\nhttp.Agent.defaultMaxSockets = 4\n\nhttp.globalAgent = new http.Agent()\n\nhttp.STATUS_CODES = statusCodes\n\nhttp.METHODS = [\n\t'CHECKOUT',\n\t'CONNECT',\n\t'COPY',\n\t'DELETE',\n\t'GET',\n\t'HEAD',\n\t'LOCK',\n\t'M-SEARCH',\n\t'MERGE',\n\t'MKACTIVITY',\n\t'MKCOL',\n\t'MOVE',\n\t'NOTIFY',\n\t'OPTIONS',\n\t'PATCH',\n\t'POST',\n\t'PROPFIND',\n\t'PROPPATCH',\n\t'PURGE',\n\t'PUT',\n\t'REPORT',\n\t'SEARCH',\n\t'SUBSCRIBE',\n\t'TRACE',\n\t'UNLOCK',\n\t'UNSUBSCRIBE'\n]\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ \"./node_modules/webpack/buildin/global.js\")))\n\n//# sourceURL=webpack://GeoRaster/./node_modules/stream-http/index.js?");
1039
1040/***/ }),
1041
1042/***/ "./node_modules/stream-http/lib/capability.js":
1043/*!****************************************************!*\
1044 !*** ./node_modules/stream-http/lib/capability.js ***!
1045 \****************************************************/
1046/*! no static exports found */
1047/***/ (function(module, exports, __webpack_require__) {
1048
1049eval("/* WEBPACK VAR INJECTION */(function(global) {exports.fetch = isFunction(global.fetch) && isFunction(global.ReadableStream)\n\nexports.writableStream = isFunction(global.WritableStream)\n\nexports.abortController = isFunction(global.AbortController)\n\nexports.blobConstructor = false\ntry {\n\tnew Blob([new ArrayBuffer(1)])\n\texports.blobConstructor = true\n} catch (e) {}\n\n// The xhr request to example.com may violate some restrictive CSP configurations,\n// so if we're running in a browser that supports `fetch`, avoid calling getXHR()\n// and assume support for certain features below.\nvar xhr\nfunction getXHR () {\n\t// Cache the xhr value\n\tif (xhr !== undefined) return xhr\n\n\tif (global.XMLHttpRequest) {\n\t\txhr = new global.XMLHttpRequest()\n\t\t// If XDomainRequest is available (ie only, where xhr might not work\n\t\t// cross domain), use the page location. Otherwise use example.com\n\t\t// Note: this doesn't actually make an http request.\n\t\ttry {\n\t\t\txhr.open('GET', global.XDomainRequest ? '/' : 'https://example.com')\n\t\t} catch(e) {\n\t\t\txhr = null\n\t\t}\n\t} else {\n\t\t// Service workers don't have XHR\n\t\txhr = null\n\t}\n\treturn xhr\n}\n\nfunction checkTypeSupport (type) {\n\tvar xhr = getXHR()\n\tif (!xhr) return false\n\ttry {\n\t\txhr.responseType = type\n\t\treturn xhr.responseType === type\n\t} catch (e) {}\n\treturn false\n}\n\n// For some strange reason, Safari 7.0 reports typeof global.ArrayBuffer === 'object'.\n// Safari 7.1 appears to have fixed this bug.\nvar haveArrayBuffer = typeof global.ArrayBuffer !== 'undefined'\nvar haveSlice = haveArrayBuffer && isFunction(global.ArrayBuffer.prototype.slice)\n\n// If fetch is supported, then arraybuffer will be supported too. Skip calling\n// checkTypeSupport(), since that calls getXHR().\nexports.arraybuffer = exports.fetch || (haveArrayBuffer && checkTypeSupport('arraybuffer'))\n\n// These next two tests unavoidably show warnings in Chrome. Since fetch will always\n// be used if it's available, just return false for these to avoid the warnings.\nexports.msstream = !exports.fetch && haveSlice && checkTypeSupport('ms-stream')\nexports.mozchunkedarraybuffer = !exports.fetch && haveArrayBuffer &&\n\tcheckTypeSupport('moz-chunked-arraybuffer')\n\n// If fetch is supported, then overrideMimeType will be supported too. Skip calling\n// getXHR().\nexports.overrideMimeType = exports.fetch || (getXHR() ? isFunction(getXHR().overrideMimeType) : false)\n\nexports.vbArray = isFunction(global.VBArray)\n\nfunction isFunction (value) {\n\treturn typeof value === 'function'\n}\n\nxhr = null // Help gc\n\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../webpack/buildin/global.js */ \"./node_modules/webpack/buildin/global.js\")))\n\n//# sourceURL=webpack://GeoRaster/./node_modules/stream-http/lib/capability.js?");
1050
1051/***/ }),
1052
1053/***/ "./node_modules/stream-http/lib/request.js":
1054/*!*************************************************!*\
1055 !*** ./node_modules/stream-http/lib/request.js ***!
1056 \*************************************************/
1057/*! no static exports found */
1058/***/ (function(module, exports, __webpack_require__) {
1059
1060eval("/* WEBPACK VAR INJECTION */(function(Buffer, global, process) {var capability = __webpack_require__(/*! ./capability */ \"./node_modules/stream-http/lib/capability.js\")\nvar inherits = __webpack_require__(/*! inherits */ \"./node_modules/inherits/inherits_browser.js\")\nvar response = __webpack_require__(/*! ./response */ \"./node_modules/stream-http/lib/response.js\")\nvar stream = __webpack_require__(/*! readable-stream */ \"./node_modules/readable-stream/readable-browser.js\")\nvar toArrayBuffer = __webpack_require__(/*! to-arraybuffer */ \"./node_modules/to-arraybuffer/index.js\")\n\nvar IncomingMessage = response.IncomingMessage\nvar rStates = response.readyStates\n\nfunction decideMode (preferBinary, useFetch) {\n\tif (capability.fetch && useFetch) {\n\t\treturn 'fetch'\n\t} else if (capability.mozchunkedarraybuffer) {\n\t\treturn 'moz-chunked-arraybuffer'\n\t} else if (capability.msstream) {\n\t\treturn 'ms-stream'\n\t} else if (capability.arraybuffer && preferBinary) {\n\t\treturn 'arraybuffer'\n\t} else if (capability.vbArray && preferBinary) {\n\t\treturn 'text:vbarray'\n\t} else {\n\t\treturn 'text'\n\t}\n}\n\nvar ClientRequest = module.exports = function (opts) {\n\tvar self = this\n\tstream.Writable.call(self)\n\n\tself._opts = opts\n\tself._body = []\n\tself._headers = {}\n\tif (opts.auth)\n\t\tself.setHeader('Authorization', 'Basic ' + new Buffer(opts.auth).toString('base64'))\n\tObject.keys(opts.headers).forEach(function (name) {\n\t\tself.setHeader(name, opts.headers[name])\n\t})\n\n\tvar preferBinary\n\tvar useFetch = true\n\tif (opts.mode === 'disable-fetch' || ('requestTimeout' in opts && !capability.abortController)) {\n\t\t// If the use of XHR should be preferred. Not typically needed.\n\t\tuseFetch = false\n\t\tpreferBinary = true\n\t} else if (opts.mode === 'prefer-streaming') {\n\t\t// If streaming is a high priority but binary compatibility and\n\t\t// the accuracy of the 'content-type' header aren't\n\t\tpreferBinary = false\n\t} else if (opts.mode === 'allow-wrong-content-type') {\n\t\t// If streaming is more important than preserving the 'content-type' header\n\t\tpreferBinary = !capability.overrideMimeType\n\t} else if (!opts.mode || opts.mode === 'default' || opts.mode === 'prefer-fast') {\n\t\t// Use binary if text streaming may corrupt data or the content-type header, or for speed\n\t\tpreferBinary = true\n\t} else {\n\t\tthrow new Error('Invalid value for opts.mode')\n\t}\n\tself._mode = decideMode(preferBinary, useFetch)\n\tself._fetchTimer = null\n\n\tself.on('finish', function () {\n\t\tself._onFinish()\n\t})\n}\n\ninherits(ClientRequest, stream.Writable)\n\nClientRequest.prototype.setHeader = function (name, value) {\n\tvar self = this\n\tvar lowerName = name.toLowerCase()\n\t// This check is not necessary, but it prevents warnings from browsers about setting unsafe\n\t// headers. To be honest I'm not entirely sure hiding these warnings is a good thing, but\n\t// http-browserify did it, so I will too.\n\tif (unsafeHeaders.indexOf(lowerName) !== -1)\n\t\treturn\n\n\tself._headers[lowerName] = {\n\t\tname: name,\n\t\tvalue: value\n\t}\n}\n\nClientRequest.prototype.getHeader = function (name) {\n\tvar header = this._headers[name.toLowerCase()]\n\tif (header)\n\t\treturn header.value\n\treturn null\n}\n\nClientRequest.prototype.removeHeader = function (name) {\n\tvar self = this\n\tdelete self._headers[name.toLowerCase()]\n}\n\nClientRequest.prototype._onFinish = function () {\n\tvar self = this\n\n\tif (self._destroyed)\n\t\treturn\n\tvar opts = self._opts\n\n\tvar headersObj = self._headers\n\tvar body = null\n\tif (opts.method !== 'GET' && opts.method !== 'HEAD') {\n\t\tif (capability.arraybuffer) {\n\t\t\tbody = toArrayBuffer(Buffer.concat(self._body))\n\t\t} else if (capability.blobConstructor) {\n\t\t\tbody = new global.Blob(self._body.map(function (buffer) {\n\t\t\t\treturn toArrayBuffer(buffer)\n\t\t\t}), {\n\t\t\t\ttype: (headersObj['content-type'] || {}).value || ''\n\t\t\t})\n\t\t} else {\n\t\t\t// get utf8 string\n\t\t\tbody = Buffer.concat(self._body).toString()\n\t\t}\n\t}\n\n\t// create flattened list of headers\n\tvar headersList = []\n\tObject.keys(headersObj).forEach(function (keyName) {\n\t\tvar name = headersObj[keyName].name\n\t\tvar value = headersObj[keyName].value\n\t\tif (Array.isArray(value)) {\n\t\t\tvalue.forEach(function (v) {\n\t\t\t\theadersList.push([name, v])\n\t\t\t})\n\t\t} else {\n\t\t\theadersList.push([name, value])\n\t\t}\n\t})\n\n\tif (self._mode === 'fetch') {\n\t\tvar signal = null\n\t\tvar fetchTimer = null\n\t\tif (capability.abortController) {\n\t\t\tvar controller = new AbortController()\n\t\t\tsignal = controller.signal\n\t\t\tself._fetchAbortController = controller\n\n\t\t\tif ('requestTimeout' in opts && opts.requestTimeout !== 0) {\n\t\t\t\tself._fetchTimer = global.setTimeout(function () {\n\t\t\t\t\tself.emit('requestTimeout')\n\t\t\t\t\tif (self._fetchAbortController)\n\t\t\t\t\t\tself._fetchAbortController.abort()\n\t\t\t\t}, opts.requestTimeout)\n\t\t\t}\n\t\t}\n\n\t\tglobal.fetch(self._opts.url, {\n\t\t\tmethod: self._opts.method,\n\t\t\theaders: headersList,\n\t\t\tbody: body || undefined,\n\t\t\tmode: 'cors',\n\t\t\tcredentials: opts.withCredentials ? 'include' : 'same-origin',\n\t\t\tsignal: signal\n\t\t}).then(function (response) {\n\t\t\tself._fetchResponse = response\n\t\t\tself._connect()\n\t\t}, function (reason) {\n\t\t\tglobal.clearTimeout(self._fetchTimer)\n\t\t\tif (!self._destroyed)\n\t\t\t\tself.emit('error', reason)\n\t\t})\n\t} else {\n\t\tvar xhr = self._xhr = new global.XMLHttpRequest()\n\t\ttry {\n\t\t\txhr.open(self._opts.method, self._opts.url, true)\n\t\t} catch (err) {\n\t\t\tprocess.nextTick(function () {\n\t\t\t\tself.emit('error', err)\n\t\t\t})\n\t\t\treturn\n\t\t}\n\n\t\t// Can't set responseType on really old browsers\n\t\tif ('responseType' in xhr)\n\t\t\txhr.responseType = self._mode.split(':')[0]\n\n\t\tif ('withCredentials' in xhr)\n\t\t\txhr.withCredentials = !!opts.withCredentials\n\n\t\tif (self._mode === 'text' && 'overrideMimeType' in xhr)\n\t\t\txhr.overrideMimeType('text/plain; charset=x-user-defined')\n\n\t\tif ('requestTimeout' in opts) {\n\t\t\txhr.timeout = opts.requestTimeout\n\t\t\txhr.ontimeout = function () {\n\t\t\t\tself.emit('requestTimeout')\n\t\t\t}\n\t\t}\n\n\t\theadersList.forEach(function (header) {\n\t\t\txhr.setRequestHeader(header[0], header[1])\n\t\t})\n\n\t\tself._response = null\n\t\txhr.onreadystatechange = function () {\n\t\t\tswitch (xhr.readyState) {\n\t\t\t\tcase rStates.LOADING:\n\t\t\t\tcase rStates.DONE:\n\t\t\t\t\tself._onXHRProgress()\n\t\t\t\t\tbreak\n\t\t\t}\n\t\t}\n\t\t// Necessary for streaming in Firefox, since xhr.response is ONLY defined\n\t\t// in onprogress, not in onreadystatechange with xhr.readyState = 3\n\t\tif (self._mode === 'moz-chunked-arraybuffer') {\n\t\t\txhr.onprogress = function () {\n\t\t\t\tself._onXHRProgress()\n\t\t\t}\n\t\t}\n\n\t\txhr.onerror = function () {\n\t\t\tif (self._destroyed)\n\t\t\t\treturn\n\t\t\tself.emit('error', new Error('XHR error'))\n\t\t}\n\n\t\ttry {\n\t\t\txhr.send(body)\n\t\t} catch (err) {\n\t\t\tprocess.nextTick(function () {\n\t\t\t\tself.emit('error', err)\n\t\t\t})\n\t\t\treturn\n\t\t}\n\t}\n}\n\n/**\n * Checks if xhr.status is readable and non-zero, indicating no error.\n * Even though the spec says it should be available in readyState 3,\n * accessing it throws an exception in IE8\n */\nfunction statusValid (xhr) {\n\ttry {\n\t\tvar status = xhr.status\n\t\treturn (status !== null && status !== 0)\n\t} catch (e) {\n\t\treturn false\n\t}\n}\n\nClientRequest.prototype._onXHRProgress = function () {\n\tvar self = this\n\n\tif (!statusValid(self._xhr) || self._destroyed)\n\t\treturn\n\n\tif (!self._response)\n\t\tself._connect()\n\n\tself._response._onXHRProgress()\n}\n\nClientRequest.prototype._connect = function () {\n\tvar self = this\n\n\tif (self._destroyed)\n\t\treturn\n\n\tself._response = new IncomingMessage(self._xhr, self._fetchResponse, self._mode, self._fetchTimer)\n\tself._response.on('error', function(err) {\n\t\tself.emit('error', err)\n\t})\n\n\tself.emit('response', self._response)\n}\n\nClientRequest.prototype._write = function (chunk, encoding, cb) {\n\tvar self = this\n\n\tself._body.push(chunk)\n\tcb()\n}\n\nClientRequest.prototype.abort = ClientRequest.prototype.destroy = function () {\n\tvar self = this\n\tself._destroyed = true\n\tglobal.clearTimeout(self._fetchTimer)\n\tif (self._response)\n\t\tself._response._destroyed = true\n\tif (self._xhr)\n\t\tself._xhr.abort()\n\telse if (self._fetchAbortController)\n\t\tself._fetchAbortController.abort()\n}\n\nClientRequest.prototype.end = function (data, encoding, cb) {\n\tvar self = this\n\tif (typeof data === 'function') {\n\t\tcb = data\n\t\tdata = undefined\n\t}\n\n\tstream.Writable.prototype.end.call(self, data, encoding, cb)\n}\n\nClientRequest.prototype.flushHeaders = function () {}\nClientRequest.prototype.setTimeout = function () {}\nClientRequest.prototype.setNoDelay = function () {}\nClientRequest.prototype.setSocketKeepAlive = function () {}\n\n// Taken from http://www.w3.org/TR/XMLHttpRequest/#the-setrequestheader%28%29-method\nvar unsafeHeaders = [\n\t'accept-charset',\n\t'accept-encoding',\n\t'access-control-request-headers',\n\t'access-control-request-method',\n\t'connection',\n\t'content-length',\n\t'cookie',\n\t'cookie2',\n\t'date',\n\t'dnt',\n\t'expect',\n\t'host',\n\t'keep-alive',\n\t'origin',\n\t'referer',\n\t'te',\n\t'trailer',\n\t'transfer-encoding',\n\t'upgrade',\n\t'via'\n]\n\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../node-libs-browser/node_modules/buffer/index.js */ \"./node_modules/node-libs-browser/node_modules/buffer/index.js\").Buffer, __webpack_require__(/*! ./../../webpack/buildin/global.js */ \"./node_modules/webpack/buildin/global.js\"), __webpack_require__(/*! ./../../process/browser.js */ \"./node_modules/process/browser.js\")))\n\n//# sourceURL=webpack://GeoRaster/./node_modules/stream-http/lib/request.js?");
1061
1062/***/ }),
1063
1064/***/ "./node_modules/stream-http/lib/response.js":
1065/*!**************************************************!*\
1066 !*** ./node_modules/stream-http/lib/response.js ***!
1067 \**************************************************/
1068/*! no static exports found */
1069/***/ (function(module, exports, __webpack_require__) {
1070
1071eval("/* WEBPACK VAR INJECTION */(function(process, Buffer, global) {var capability = __webpack_require__(/*! ./capability */ \"./node_modules/stream-http/lib/capability.js\")\nvar inherits = __webpack_require__(/*! inherits */ \"./node_modules/inherits/inherits_browser.js\")\nvar stream = __webpack_require__(/*! readable-stream */ \"./node_modules/readable-stream/readable-browser.js\")\n\nvar rStates = exports.readyStates = {\n\tUNSENT: 0,\n\tOPENED: 1,\n\tHEADERS_RECEIVED: 2,\n\tLOADING: 3,\n\tDONE: 4\n}\n\nvar IncomingMessage = exports.IncomingMessage = function (xhr, response, mode, fetchTimer) {\n\tvar self = this\n\tstream.Readable.call(self)\n\n\tself._mode = mode\n\tself.headers = {}\n\tself.rawHeaders = []\n\tself.trailers = {}\n\tself.rawTrailers = []\n\n\t// Fake the 'close' event, but only once 'end' fires\n\tself.on('end', function () {\n\t\t// The nextTick is necessary to prevent the 'request' module from causing an infinite loop\n\t\tprocess.nextTick(function () {\n\t\t\tself.emit('close')\n\t\t})\n\t})\n\n\tif (mode === 'fetch') {\n\t\tself._fetchResponse = response\n\n\t\tself.url = response.url\n\t\tself.statusCode = response.status\n\t\tself.statusMessage = response.statusText\n\t\t\n\t\tresponse.headers.forEach(function (header, key){\n\t\t\tself.headers[key.toLowerCase()] = header\n\t\t\tself.rawHeaders.push(key, header)\n\t\t})\n\n\t\tif (capability.writableStream) {\n\t\t\tvar writable = new WritableStream({\n\t\t\t\twrite: function (chunk) {\n\t\t\t\t\treturn new Promise(function (resolve, reject) {\n\t\t\t\t\t\tif (self._destroyed) {\n\t\t\t\t\t\t\treject()\n\t\t\t\t\t\t} else if(self.push(new Buffer(chunk))) {\n\t\t\t\t\t\t\tresolve()\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tself._resumeFetch = resolve\n\t\t\t\t\t\t}\n\t\t\t\t\t})\n\t\t\t\t},\n\t\t\t\tclose: function () {\n\t\t\t\t\tglobal.clearTimeout(fetchTimer)\n\t\t\t\t\tif (!self._destroyed)\n\t\t\t\t\t\tself.push(null)\n\t\t\t\t},\n\t\t\t\tabort: function (err) {\n\t\t\t\t\tif (!self._destroyed)\n\t\t\t\t\t\tself.emit('error', err)\n\t\t\t\t}\n\t\t\t})\n\n\t\t\ttry {\n\t\t\t\tresponse.body.pipeTo(writable).catch(function (err) {\n\t\t\t\t\tglobal.clearTimeout(fetchTimer)\n\t\t\t\t\tif (!self._destroyed)\n\t\t\t\t\t\tself.emit('error', err)\n\t\t\t\t})\n\t\t\t\treturn\n\t\t\t} catch (e) {} // pipeTo method isn't defined. Can't find a better way to feature test this\n\t\t}\n\t\t// fallback for when writableStream or pipeTo aren't available\n\t\tvar reader = response.body.getReader()\n\t\tfunction read () {\n\t\t\treader.read().then(function (result) {\n\t\t\t\tif (self._destroyed)\n\t\t\t\t\treturn\n\t\t\t\tif (result.done) {\n\t\t\t\t\tglobal.clearTimeout(fetchTimer)\n\t\t\t\t\tself.push(null)\n\t\t\t\t\treturn\n\t\t\t\t}\n\t\t\t\tself.push(new Buffer(result.value))\n\t\t\t\tread()\n\t\t\t}).catch(function (err) {\n\t\t\t\tglobal.clearTimeout(fetchTimer)\n\t\t\t\tif (!self._destroyed)\n\t\t\t\t\tself.emit('error', err)\n\t\t\t})\n\t\t}\n\t\tread()\n\t} else {\n\t\tself._xhr = xhr\n\t\tself._pos = 0\n\n\t\tself.url = xhr.responseURL\n\t\tself.statusCode = xhr.status\n\t\tself.statusMessage = xhr.statusText\n\t\tvar headers = xhr.getAllResponseHeaders().split(/\\r?\\n/)\n\t\theaders.forEach(function (header) {\n\t\t\tvar matches = header.match(/^([^:]+):\\s*(.*)/)\n\t\t\tif (matches) {\n\t\t\t\tvar key = matches[1].toLowerCase()\n\t\t\t\tif (key === 'set-cookie') {\n\t\t\t\t\tif (self.headers[key] === undefined) {\n\t\t\t\t\t\tself.headers[key] = []\n\t\t\t\t\t}\n\t\t\t\t\tself.headers[key].push(matches[2])\n\t\t\t\t} else if (self.headers[key] !== undefined) {\n\t\t\t\t\tself.headers[key] += ', ' + matches[2]\n\t\t\t\t} else {\n\t\t\t\t\tself.headers[key] = matches[2]\n\t\t\t\t}\n\t\t\t\tself.rawHeaders.push(matches[1], matches[2])\n\t\t\t}\n\t\t})\n\n\t\tself._charset = 'x-user-defined'\n\t\tif (!capability.overrideMimeType) {\n\t\t\tvar mimeType = self.rawHeaders['mime-type']\n\t\t\tif (mimeType) {\n\t\t\t\tvar charsetMatch = mimeType.match(/;\\s*charset=([^;])(;|$)/)\n\t\t\t\tif (charsetMatch) {\n\t\t\t\t\tself._charset = charsetMatch[1].toLowerCase()\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!self._charset)\n\t\t\t\tself._charset = 'utf-8' // best guess\n\t\t}\n\t}\n}\n\ninherits(IncomingMessage, stream.Readable)\n\nIncomingMessage.prototype._read = function () {\n\tvar self = this\n\n\tvar resolve = self._resumeFetch\n\tif (resolve) {\n\t\tself._resumeFetch = null\n\t\tresolve()\n\t}\n}\n\nIncomingMessage.prototype._onXHRProgress = function () {\n\tvar self = this\n\n\tvar xhr = self._xhr\n\n\tvar response = null\n\tswitch (self._mode) {\n\t\tcase 'text:vbarray': // For IE9\n\t\t\tif (xhr.readyState !== rStates.DONE)\n\t\t\t\tbreak\n\t\t\ttry {\n\t\t\t\t// This fails in IE8\n\t\t\t\tresponse = new global.VBArray(xhr.responseBody).toArray()\n\t\t\t} catch (e) {}\n\t\t\tif (response !== null) {\n\t\t\t\tself.push(new Buffer(response))\n\t\t\t\tbreak\n\t\t\t}\n\t\t\t// Falls through in IE8\t\n\t\tcase 'text':\n\t\t\ttry { // This will fail when readyState = 3 in IE9. Switch mode and wait for readyState = 4\n\t\t\t\tresponse = xhr.responseText\n\t\t\t} catch (e) {\n\t\t\t\tself._mode = 'text:vbarray'\n\t\t\t\tbreak\n\t\t\t}\n\t\t\tif (response.length > self._pos) {\n\t\t\t\tvar newData = response.substr(self._pos)\n\t\t\t\tif (self._charset === 'x-user-defined') {\n\t\t\t\t\tvar buffer = new Buffer(newData.length)\n\t\t\t\t\tfor (var i = 0; i < newData.length; i++)\n\t\t\t\t\t\tbuffer[i] = newData.charCodeAt(i) & 0xff\n\n\t\t\t\t\tself.push(buffer)\n\t\t\t\t} else {\n\t\t\t\t\tself.push(newData, self._charset)\n\t\t\t\t}\n\t\t\t\tself._pos = response.length\n\t\t\t}\n\t\t\tbreak\n\t\tcase 'arraybuffer':\n\t\t\tif (xhr.readyState !== rStates.DONE || !xhr.response)\n\t\t\t\tbreak\n\t\t\tresponse = xhr.response\n\t\t\tself.push(new Buffer(new Uint8Array(response)))\n\t\t\tbreak\n\t\tcase 'moz-chunked-arraybuffer': // take whole\n\t\t\tresponse = xhr.response\n\t\t\tif (xhr.readyState !== rStates.LOADING || !response)\n\t\t\t\tbreak\n\t\t\tself.push(new Buffer(new Uint8Array(response)))\n\t\t\tbreak\n\t\tcase 'ms-stream':\n\t\t\tresponse = xhr.response\n\t\t\tif (xhr.readyState !== rStates.LOADING)\n\t\t\t\tbreak\n\t\t\tvar reader = new global.MSStreamReader()\n\t\t\treader.onprogress = function () {\n\t\t\t\tif (reader.result.byteLength > self._pos) {\n\t\t\t\t\tself.push(new Buffer(new Uint8Array(reader.result.slice(self._pos))))\n\t\t\t\t\tself._pos = reader.result.byteLength\n\t\t\t\t}\n\t\t\t}\n\t\t\treader.onload = function () {\n\t\t\t\tself.push(null)\n\t\t\t}\n\t\t\t// reader.onerror = ??? // TODO: this\n\t\t\treader.readAsArrayBuffer(response)\n\t\t\tbreak\n\t}\n\n\t// The ms-stream case handles end separately in reader.onload()\n\tif (self._xhr.readyState === rStates.DONE && self._mode !== 'ms-stream') {\n\t\tself.push(null)\n\t}\n}\n\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../process/browser.js */ \"./node_modules/process/browser.js\"), __webpack_require__(/*! ./../../node-libs-browser/node_modules/buffer/index.js */ \"./node_modules/node-libs-browser/node_modules/buffer/index.js\").Buffer, __webpack_require__(/*! ./../../webpack/buildin/global.js */ \"./node_modules/webpack/buildin/global.js\")))\n\n//# sourceURL=webpack://GeoRaster/./node_modules/stream-http/lib/response.js?");
1072
1073/***/ }),
1074
1075/***/ "./node_modules/string_decoder/lib/string_decoder.js":
1076/*!***********************************************************!*\
1077 !*** ./node_modules/string_decoder/lib/string_decoder.js ***!
1078 \***********************************************************/
1079/*! no static exports found */
1080/***/ (function(module, exports, __webpack_require__) {
1081
1082"use strict";
1083eval("\n\nvar Buffer = __webpack_require__(/*! safe-buffer */ \"./node_modules/string_decoder/node_modules/safe-buffer/index.js\").Buffer;\n\nvar isEncoding = Buffer.isEncoding || function (encoding) {\n encoding = '' + encoding;\n switch (encoding && encoding.toLowerCase()) {\n case 'hex':case 'utf8':case 'utf-8':case 'ascii':case 'binary':case 'base64':case 'ucs2':case 'ucs-2':case 'utf16le':case 'utf-16le':case 'raw':\n return true;\n default:\n return false;\n }\n};\n\nfunction _normalizeEncoding(enc) {\n if (!enc) return 'utf8';\n var retried;\n while (true) {\n switch (enc) {\n case 'utf8':\n case 'utf-8':\n return 'utf8';\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return 'utf16le';\n case 'latin1':\n case 'binary':\n return 'latin1';\n case 'base64':\n case 'ascii':\n case 'hex':\n return enc;\n default:\n if (retried) return; // undefined\n enc = ('' + enc).toLowerCase();\n retried = true;\n }\n }\n};\n\n// Do not cache `Buffer.isEncoding` when checking encoding names as some\n// modules monkey-patch it to support additional encodings\nfunction normalizeEncoding(enc) {\n var nenc = _normalizeEncoding(enc);\n if (typeof nenc !== 'string' && (Buffer.isEncoding === isEncoding || !isEncoding(enc))) throw new Error('Unknown encoding: ' + enc);\n return nenc || enc;\n}\n\n// StringDecoder provides an interface for efficiently splitting a series of\n// buffers into a series of JS strings without breaking apart multi-byte\n// characters.\nexports.StringDecoder = StringDecoder;\nfunction StringDecoder(encoding) {\n this.encoding = normalizeEncoding(encoding);\n var nb;\n switch (this.encoding) {\n case 'utf16le':\n this.text = utf16Text;\n this.end = utf16End;\n nb = 4;\n break;\n case 'utf8':\n this.fillLast = utf8FillLast;\n nb = 4;\n break;\n case 'base64':\n this.text = base64Text;\n this.end = base64End;\n nb = 3;\n break;\n default:\n this.write = simpleWrite;\n this.end = simpleEnd;\n return;\n }\n this.lastNeed = 0;\n this.lastTotal = 0;\n this.lastChar = Buffer.allocUnsafe(nb);\n}\n\nStringDecoder.prototype.write = function (buf) {\n if (buf.length === 0) return '';\n var r;\n var i;\n if (this.lastNeed) {\n r = this.fillLast(buf);\n if (r === undefined) return '';\n i = this.lastNeed;\n this.lastNeed = 0;\n } else {\n i = 0;\n }\n if (i < buf.length) return r ? r + this.text(buf, i) : this.text(buf, i);\n return r || '';\n};\n\nStringDecoder.prototype.end = utf8End;\n\n// Returns only complete characters in a Buffer\nStringDecoder.prototype.text = utf8Text;\n\n// Attempts to complete a partial non-UTF-8 character using bytes from a Buffer\nStringDecoder.prototype.fillLast = function (buf) {\n if (this.lastNeed <= buf.length) {\n buf.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed);\n return this.lastChar.toString(this.encoding, 0, this.lastTotal);\n }\n buf.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, buf.length);\n this.lastNeed -= buf.length;\n};\n\n// Checks the type of a UTF-8 byte, whether it's ASCII, a leading byte, or a\n// continuation byte.\nfunction utf8CheckByte(byte) {\n if (byte <= 0x7F) return 0;else if (byte >> 5 === 0x06) return 2;else if (byte >> 4 === 0x0E) return 3;else if (byte >> 3 === 0x1E) return 4;\n return -1;\n}\n\n// Checks at most 3 bytes at the end of a Buffer in order to detect an\n// incomplete multi-byte UTF-8 character. The total number of bytes (2, 3, or 4)\n// needed to complete the UTF-8 character (if applicable) are returned.\nfunction utf8CheckIncomplete(self, buf, i) {\n var j = buf.length - 1;\n if (j < i) return 0;\n var nb = utf8CheckByte(buf[j]);\n if (nb >= 0) {\n if (nb > 0) self.lastNeed = nb - 1;\n return nb;\n }\n if (--j < i) return 0;\n nb = utf8CheckByte(buf[j]);\n if (nb >= 0) {\n if (nb > 0) self.lastNeed = nb - 2;\n return nb;\n }\n if (--j < i) return 0;\n nb = utf8CheckByte(buf[j]);\n if (nb >= 0) {\n if (nb > 0) {\n if (nb === 2) nb = 0;else self.lastNeed = nb - 3;\n }\n return nb;\n }\n return 0;\n}\n\n// Validates as many continuation bytes for a multi-byte UTF-8 character as\n// needed or are available. If we see a non-continuation byte where we expect\n// one, we \"replace\" the validated continuation bytes we've seen so far with\n// UTF-8 replacement characters ('\\ufffd'), to match v8's UTF-8 decoding\n// behavior. The continuation byte check is included three times in the case\n// where all of the continuation bytes for a character exist in the same buffer.\n// It is also done this way as a slight performance increase instead of using a\n// loop.\nfunction utf8CheckExtraBytes(self, buf, p) {\n if ((buf[0] & 0xC0) !== 0x80) {\n self.lastNeed = 0;\n return '\\ufffd'.repeat(p);\n }\n if (self.lastNeed > 1 && buf.length > 1) {\n if ((buf[1] & 0xC0) !== 0x80) {\n self.lastNeed = 1;\n return '\\ufffd'.repeat(p + 1);\n }\n if (self.lastNeed > 2 && buf.length > 2) {\n if ((buf[2] & 0xC0) !== 0x80) {\n self.lastNeed = 2;\n return '\\ufffd'.repeat(p + 2);\n }\n }\n }\n}\n\n// Attempts to complete a multi-byte UTF-8 character using bytes from a Buffer.\nfunction utf8FillLast(buf) {\n var p = this.lastTotal - this.lastNeed;\n var r = utf8CheckExtraBytes(this, buf, p);\n if (r !== undefined) return r;\n if (this.lastNeed <= buf.length) {\n buf.copy(this.lastChar, p, 0, this.lastNeed);\n return this.lastChar.toString(this.encoding, 0, this.lastTotal);\n }\n buf.copy(this.lastChar, p, 0, buf.length);\n this.lastNeed -= buf.length;\n}\n\n// Returns all complete UTF-8 characters in a Buffer. If the Buffer ended on a\n// partial character, the character's bytes are buffered until the required\n// number of bytes are available.\nfunction utf8Text(buf, i) {\n var total = utf8CheckIncomplete(this, buf, i);\n if (!this.lastNeed) return buf.toString('utf8', i);\n this.lastTotal = total;\n var end = buf.length - (total - this.lastNeed);\n buf.copy(this.lastChar, 0, end);\n return buf.toString('utf8', i, end);\n}\n\n// For UTF-8, a replacement character for each buffered byte of a (partial)\n// character needs to be added to the output.\nfunction utf8End(buf) {\n var r = buf && buf.length ? this.write(buf) : '';\n if (this.lastNeed) return r + '\\ufffd'.repeat(this.lastTotal - this.lastNeed);\n return r;\n}\n\n// UTF-16LE typically needs two bytes per character, but even if we have an even\n// number of bytes available, we need to check if we end on a leading/high\n// surrogate. In that case, we need to wait for the next two bytes in order to\n// decode the last character properly.\nfunction utf16Text(buf, i) {\n if ((buf.length - i) % 2 === 0) {\n var r = buf.toString('utf16le', i);\n if (r) {\n var c = r.charCodeAt(r.length - 1);\n if (c >= 0xD800 && c <= 0xDBFF) {\n this.lastNeed = 2;\n this.lastTotal = 4;\n this.lastChar[0] = buf[buf.length - 2];\n this.lastChar[1] = buf[buf.length - 1];\n return r.slice(0, -1);\n }\n }\n return r;\n }\n this.lastNeed = 1;\n this.lastTotal = 2;\n this.lastChar[0] = buf[buf.length - 1];\n return buf.toString('utf16le', i, buf.length - 1);\n}\n\n// For UTF-16LE we do not explicitly append special replacement characters if we\n// end on a partial character, we simply let v8 handle that.\nfunction utf16End(buf) {\n var r = buf && buf.length ? this.write(buf) : '';\n if (this.lastNeed) {\n var end = this.lastTotal - this.lastNeed;\n return r + this.lastChar.toString('utf16le', 0, end);\n }\n return r;\n}\n\nfunction base64Text(buf, i) {\n var n = (buf.length - i) % 3;\n if (n === 0) return buf.toString('base64', i);\n this.lastNeed = 3 - n;\n this.lastTotal = 3;\n if (n === 1) {\n this.lastChar[0] = buf[buf.length - 1];\n } else {\n this.lastChar[0] = buf[buf.length - 2];\n this.lastChar[1] = buf[buf.length - 1];\n }\n return buf.toString('base64', i, buf.length - n);\n}\n\nfunction base64End(buf) {\n var r = buf && buf.length ? this.write(buf) : '';\n if (this.lastNeed) return r + this.lastChar.toString('base64', 0, 3 - this.lastNeed);\n return r;\n}\n\n// Pass bytes on through for single-byte encodings (e.g. ascii, latin1, hex)\nfunction simpleWrite(buf) {\n return buf.toString(this.encoding);\n}\n\nfunction simpleEnd(buf) {\n return buf && buf.length ? this.write(buf) : '';\n}\n\n//# sourceURL=webpack://GeoRaster/./node_modules/string_decoder/lib/string_decoder.js?");
1084
1085/***/ }),
1086
1087/***/ "./node_modules/string_decoder/node_modules/safe-buffer/index.js":
1088/*!***********************************************************************!*\
1089 !*** ./node_modules/string_decoder/node_modules/safe-buffer/index.js ***!
1090 \***********************************************************************/
1091/*! no static exports found */
1092/***/ (function(module, exports, __webpack_require__) {
1093
1094eval("/* eslint-disable node/no-deprecated-api */\nvar buffer = __webpack_require__(/*! buffer */ \"./node_modules/node-libs-browser/node_modules/buffer/index.js\")\nvar Buffer = buffer.Buffer\n\n// alternative to using Object.keys for old browsers\nfunction copyProps (src, dst) {\n for (var key in src) {\n dst[key] = src[key]\n }\n}\nif (Buffer.from && Buffer.alloc && Buffer.allocUnsafe && Buffer.allocUnsafeSlow) {\n module.exports = buffer\n} else {\n // Copy properties from require('buffer')\n copyProps(buffer, exports)\n exports.Buffer = SafeBuffer\n}\n\nfunction SafeBuffer (arg, encodingOrOffset, length) {\n return Buffer(arg, encodingOrOffset, length)\n}\n\n// Copy static methods from Buffer\ncopyProps(Buffer, SafeBuffer)\n\nSafeBuffer.from = function (arg, encodingOrOffset, length) {\n if (typeof arg === 'number') {\n throw new TypeError('Argument must not be a number')\n }\n return Buffer(arg, encodingOrOffset, length)\n}\n\nSafeBuffer.alloc = function (size, fill, encoding) {\n if (typeof size !== 'number') {\n throw new TypeError('Argument must be a number')\n }\n var buf = Buffer(size)\n if (fill !== undefined) {\n if (typeof encoding === 'string') {\n buf.fill(fill, encoding)\n } else {\n buf.fill(fill)\n }\n } else {\n buf.fill(0)\n }\n return buf\n}\n\nSafeBuffer.allocUnsafe = function (size) {\n if (typeof size !== 'number') {\n throw new TypeError('Argument must be a number')\n }\n return Buffer(size)\n}\n\nSafeBuffer.allocUnsafeSlow = function (size) {\n if (typeof size !== 'number') {\n throw new TypeError('Argument must be a number')\n }\n return buffer.SlowBuffer(size)\n}\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/string_decoder/node_modules/safe-buffer/index.js?");
1095
1096/***/ }),
1097
1098/***/ "./node_modules/threads-plugin/dist/loader.js?{\"name\":\"0\"}!./node_modules/geotiff/src/decoder.worker.js":
1099/*!**************************************************************************************************************!*\
1100 !*** ./node_modules/threads-plugin/dist/loader.js?{"name":"0"}!./node_modules/geotiff/src/decoder.worker.js ***!
1101 \**************************************************************************************************************/
1102/*! no static exports found */
1103/***/ (function(module, exports, __webpack_require__) {
1104
1105eval("module.exports = __webpack_require__.p + \"0.georaster.browser.bundle.worker.js\"\n\n//# sourceURL=webpack://GeoRaster/./node_modules/geotiff/src/decoder.worker.js?./node_modules/threads-plugin/dist/loader.js?%7B%22name%22:%220%22%7D");
1106
1107/***/ }),
1108
1109/***/ "./node_modules/threads/dist-esm/common.js":
1110/*!*************************************************!*\
1111 !*** ./node_modules/threads/dist-esm/common.js ***!
1112 \*************************************************/
1113/*! exports provided: registerSerializer, deserialize, serialize */
1114/***/ (function(module, __webpack_exports__, __webpack_require__) {
1115
1116"use strict";
1117eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"registerSerializer\", function() { return registerSerializer; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"deserialize\", function() { return deserialize; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"serialize\", function() { return serialize; });\n/* harmony import */ var _serializers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./serializers */ \"./node_modules/threads/dist-esm/serializers.js\");\n\nlet registeredSerializer = _serializers__WEBPACK_IMPORTED_MODULE_0__[\"DefaultSerializer\"];\nfunction registerSerializer(serializer) {\n registeredSerializer = Object(_serializers__WEBPACK_IMPORTED_MODULE_0__[\"extendSerializer\"])(registeredSerializer, serializer);\n}\nfunction deserialize(message) {\n return registeredSerializer.deserialize(message);\n}\nfunction serialize(input) {\n return registeredSerializer.serialize(input);\n}\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/threads/dist-esm/common.js?");
1118
1119/***/ }),
1120
1121/***/ "./node_modules/threads/dist-esm/index.js":
1122/*!************************************************!*\
1123 !*** ./node_modules/threads/dist-esm/index.js ***!
1124 \************************************************/
1125/*! exports provided: registerSerializer, Pool, spawn, Thread, isWorkerRuntime, BlobWorker, Worker, expose, DefaultSerializer, Transfer */
1126/***/ (function(module, __webpack_exports__, __webpack_require__) {
1127
1128"use strict";
1129eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _common__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./common */ \"./node_modules/threads/dist-esm/common.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"registerSerializer\", function() { return _common__WEBPACK_IMPORTED_MODULE_0__[\"registerSerializer\"]; });\n\n/* harmony import */ var _master_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./master/index */ \"./node_modules/threads/dist-esm/master/index.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Pool\", function() { return _master_index__WEBPACK_IMPORTED_MODULE_1__[\"Pool\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"spawn\", function() { return _master_index__WEBPACK_IMPORTED_MODULE_1__[\"spawn\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Thread\", function() { return _master_index__WEBPACK_IMPORTED_MODULE_1__[\"Thread\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"isWorkerRuntime\", function() { return _master_index__WEBPACK_IMPORTED_MODULE_1__[\"isWorkerRuntime\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"BlobWorker\", function() { return _master_index__WEBPACK_IMPORTED_MODULE_1__[\"BlobWorker\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Worker\", function() { return _master_index__WEBPACK_IMPORTED_MODULE_1__[\"Worker\"]; });\n\n/* harmony import */ var _worker_index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./worker/index */ \"./node_modules/threads/dist-esm/worker/index.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"expose\", function() { return _worker_index__WEBPACK_IMPORTED_MODULE_2__[\"expose\"]; });\n\n/* harmony import */ var _serializers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./serializers */ \"./node_modules/threads/dist-esm/serializers.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"DefaultSerializer\", function() { return _serializers__WEBPACK_IMPORTED_MODULE_3__[\"DefaultSerializer\"]; });\n\n/* harmony import */ var _transferable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./transferable */ \"./node_modules/threads/dist-esm/transferable.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Transfer\", function() { return _transferable__WEBPACK_IMPORTED_MODULE_4__[\"Transfer\"]; });\n\n\n\n\n\n\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/threads/dist-esm/index.js?");
1130
1131/***/ }),
1132
1133/***/ "./node_modules/threads/dist-esm/master/get-bundle-url.browser.js":
1134/*!************************************************************************!*\
1135 !*** ./node_modules/threads/dist-esm/master/get-bundle-url.browser.js ***!
1136 \************************************************************************/
1137/*! exports provided: getBaseURL, getBundleURL */
1138/***/ (function(module, __webpack_exports__, __webpack_require__) {
1139
1140"use strict";
1141eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getBaseURL\", function() { return getBaseURL; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getBundleURL\", function() { return getBundleURLCached; });\n// Source: <https://github.com/parcel-bundler/parcel/blob/master/packages/core/parcel-bundler/src/builtins/bundle-url.js>\nlet bundleURL;\nfunction getBundleURLCached() {\n if (!bundleURL) {\n bundleURL = getBundleURL();\n }\n return bundleURL;\n}\nfunction getBundleURL() {\n // Attempt to find the URL of the current script and use that as the base URL\n try {\n throw new Error;\n }\n catch (err) {\n const matches = (\"\" + err.stack).match(/(https?|file|ftp|chrome-extension|moz-extension):\\/\\/[^)\\n]+/g);\n if (matches) {\n return getBaseURL(matches[0]);\n }\n }\n return \"/\";\n}\nfunction getBaseURL(url) {\n return (\"\" + url).replace(/^((?:https?|file|ftp|chrome-extension|moz-extension):\\/\\/.+)?\\/[^/]+(?:\\?.*)?$/, '$1') + '/';\n}\n\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/threads/dist-esm/master/get-bundle-url.browser.js?");
1142
1143/***/ }),
1144
1145/***/ "./node_modules/threads/dist-esm/master/implementation.browser.js":
1146/*!************************************************************************!*\
1147 !*** ./node_modules/threads/dist-esm/master/implementation.browser.js ***!
1148 \************************************************************************/
1149/*! exports provided: defaultPoolSize, getWorkerImplementation, isWorkerRuntime */
1150/***/ (function(module, __webpack_exports__, __webpack_require__) {
1151
1152"use strict";
1153eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"defaultPoolSize\", function() { return defaultPoolSize; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getWorkerImplementation\", function() { return getWorkerImplementation; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isWorkerRuntime\", function() { return isWorkerRuntime; });\n/* harmony import */ var _get_bundle_url_browser__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./get-bundle-url.browser */ \"./node_modules/threads/dist-esm/master/get-bundle-url.browser.js\");\n// tslint:disable max-classes-per-file\n\nconst defaultPoolSize = typeof navigator !== \"undefined\" && navigator.hardwareConcurrency\n ? navigator.hardwareConcurrency\n : 4;\nconst isAbsoluteURL = (value) => /^[a-zA-Z][a-zA-Z\\d+\\-.]*:/.test(value);\nfunction createSourceBlobURL(code) {\n const blob = new Blob([code], { type: \"application/javascript\" });\n return URL.createObjectURL(blob);\n}\nfunction selectWorkerImplementation() {\n if (typeof Worker === \"undefined\") {\n // Might happen on Safari, for instance\n // The idea is to only fail if the constructor is actually used\n return class NoWebWorker {\n constructor() {\n throw Error(\"No web worker implementation available. You might have tried to spawn a worker within a worker in a browser that doesn't support workers in workers.\");\n }\n };\n }\n class WebWorker extends Worker {\n constructor(url, options) {\n var _a, _b;\n if (typeof url === \"string\" && options && options._baseURL) {\n url = new URL(url, options._baseURL);\n }\n else if (typeof url === \"string\" && !isAbsoluteURL(url) && Object(_get_bundle_url_browser__WEBPACK_IMPORTED_MODULE_0__[\"getBundleURL\"])().match(/^file:\\/\\//i)) {\n url = new URL(url, Object(_get_bundle_url_browser__WEBPACK_IMPORTED_MODULE_0__[\"getBundleURL\"])().replace(/\\/[^\\/]+$/, \"/\"));\n if ((_a = options === null || options === void 0 ? void 0 : options.CORSWorkaround) !== null && _a !== void 0 ? _a : true) {\n url = createSourceBlobURL(`importScripts(${JSON.stringify(url)});`);\n }\n }\n if (typeof url === \"string\" && isAbsoluteURL(url)) {\n // Create source code blob loading JS file via `importScripts()`\n // to circumvent worker CORS restrictions\n if ((_b = options === null || options === void 0 ? void 0 : options.CORSWorkaround) !== null && _b !== void 0 ? _b : true) {\n url = createSourceBlobURL(`importScripts(${JSON.stringify(url)});`);\n }\n }\n super(url, options);\n }\n }\n class BlobWorker extends WebWorker {\n constructor(blob, options) {\n const url = window.URL.createObjectURL(blob);\n super(url, options);\n }\n static fromText(source, options) {\n const blob = new window.Blob([source], { type: \"text/javascript\" });\n return new BlobWorker(blob, options);\n }\n }\n return {\n blob: BlobWorker,\n default: WebWorker\n };\n}\nlet implementation;\nfunction getWorkerImplementation() {\n if (!implementation) {\n implementation = selectWorkerImplementation();\n }\n return implementation;\n}\nfunction isWorkerRuntime() {\n const isWindowContext = typeof self !== \"undefined\" && typeof Window !== \"undefined\" && self instanceof Window;\n return typeof self !== \"undefined\" && self.postMessage && !isWindowContext ? true : false;\n}\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/threads/dist-esm/master/implementation.browser.js?");
1154
1155/***/ }),
1156
1157/***/ "./node_modules/threads/dist-esm/master/index.js":
1158/*!*******************************************************!*\
1159 !*** ./node_modules/threads/dist-esm/master/index.js ***!
1160 \*******************************************************/
1161/*! exports provided: Pool, spawn, Thread, isWorkerRuntime, BlobWorker, Worker */
1162/***/ (function(module, __webpack_exports__, __webpack_require__) {
1163
1164"use strict";
1165eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"BlobWorker\", function() { return BlobWorker; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"Worker\", function() { return Worker; });\n/* harmony import */ var _implementation__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./implementation */ \"./node_modules/threads/dist-esm/master/implementation.browser.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"isWorkerRuntime\", function() { return _implementation__WEBPACK_IMPORTED_MODULE_0__[\"isWorkerRuntime\"]; });\n\n/* harmony import */ var _pool__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./pool */ \"./node_modules/threads/dist-esm/master/pool.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Pool\", function() { return _pool__WEBPACK_IMPORTED_MODULE_1__[\"Pool\"]; });\n\n/* harmony import */ var _spawn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./spawn */ \"./node_modules/threads/dist-esm/master/spawn.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"spawn\", function() { return _spawn__WEBPACK_IMPORTED_MODULE_2__[\"spawn\"]; });\n\n/* harmony import */ var _thread__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./thread */ \"./node_modules/threads/dist-esm/master/thread.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Thread\", function() { return _thread__WEBPACK_IMPORTED_MODULE_3__[\"Thread\"]; });\n\n\n\n\n\n\n/** Separate class to spawn workers from source code blobs or strings. */\nconst BlobWorker = Object(_implementation__WEBPACK_IMPORTED_MODULE_0__[\"getWorkerImplementation\"])().blob;\n/** Worker implementation. Either web worker or a node.js Worker class. */\nconst Worker = Object(_implementation__WEBPACK_IMPORTED_MODULE_0__[\"getWorkerImplementation\"])().default;\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/threads/dist-esm/master/index.js?");
1166
1167/***/ }),
1168
1169/***/ "./node_modules/threads/dist-esm/master/invocation-proxy.js":
1170/*!******************************************************************!*\
1171 !*** ./node_modules/threads/dist-esm/master/invocation-proxy.js ***!
1172 \******************************************************************/
1173/*! exports provided: createProxyFunction, createProxyModule */
1174/***/ (function(module, __webpack_exports__, __webpack_require__) {
1175
1176"use strict";
1177eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"createProxyFunction\", function() { return createProxyFunction; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"createProxyModule\", function() { return createProxyModule; });\n/* harmony import */ var debug__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! debug */ \"./node_modules/threads/node_modules/debug/src/browser.js\");\n/* harmony import */ var debug__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(debug__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var observable_fns__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! observable-fns */ \"./node_modules/observable-fns/dist.esm/index.js\");\n/* harmony import */ var _common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common */ \"./node_modules/threads/dist-esm/common.js\");\n/* harmony import */ var _observable_promise__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../observable-promise */ \"./node_modules/threads/dist-esm/observable-promise.js\");\n/* harmony import */ var _transferable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../transferable */ \"./node_modules/threads/dist-esm/transferable.js\");\n/* harmony import */ var _types_messages__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../types/messages */ \"./node_modules/threads/dist-esm/types/messages.js\");\n/*\n * This source file contains the code for proxying calls in the master thread to calls in the workers\n * by `.postMessage()`-ing.\n *\n * Keep in mind that this code can make or break the program's performance! Need to optimize more…\n */\n\n\n\n\n\n\nconst debugMessages = debug__WEBPACK_IMPORTED_MODULE_0___default()(\"threads:master:messages\");\nlet nextJobUID = 1;\nconst dedupe = (array) => Array.from(new Set(array));\nconst isJobErrorMessage = (data) => data && data.type === _types_messages__WEBPACK_IMPORTED_MODULE_5__[\"WorkerMessageType\"].error;\nconst isJobResultMessage = (data) => data && data.type === _types_messages__WEBPACK_IMPORTED_MODULE_5__[\"WorkerMessageType\"].result;\nconst isJobStartMessage = (data) => data && data.type === _types_messages__WEBPACK_IMPORTED_MODULE_5__[\"WorkerMessageType\"].running;\nfunction createObservableForJob(worker, jobUID) {\n return new observable_fns__WEBPACK_IMPORTED_MODULE_1__[\"Observable\"](observer => {\n let asyncType;\n const messageHandler = ((event) => {\n debugMessages(\"Message from worker:\", event.data);\n if (!event.data || event.data.uid !== jobUID)\n return;\n if (isJobStartMessage(event.data)) {\n asyncType = event.data.resultType;\n }\n else if (isJobResultMessage(event.data)) {\n if (asyncType === \"promise\") {\n if (typeof event.data.payload !== \"undefined\") {\n observer.next(Object(_common__WEBPACK_IMPORTED_MODULE_2__[\"deserialize\"])(event.data.payload));\n }\n observer.complete();\n worker.removeEventListener(\"message\", messageHandler);\n }\n else {\n if (event.data.payload) {\n observer.next(Object(_common__WEBPACK_IMPORTED_MODULE_2__[\"deserialize\"])(event.data.payload));\n }\n if (event.data.complete) {\n observer.complete();\n worker.removeEventListener(\"message\", messageHandler);\n }\n }\n }\n else if (isJobErrorMessage(event.data)) {\n const error = Object(_common__WEBPACK_IMPORTED_MODULE_2__[\"deserialize\"])(event.data.error);\n if (asyncType === \"promise\" || !asyncType) {\n observer.error(error);\n }\n else {\n observer.error(error);\n }\n worker.removeEventListener(\"message\", messageHandler);\n }\n });\n worker.addEventListener(\"message\", messageHandler);\n return () => {\n if (asyncType === \"observable\" || !asyncType) {\n const cancelMessage = {\n type: _types_messages__WEBPACK_IMPORTED_MODULE_5__[\"MasterMessageType\"].cancel,\n uid: jobUID\n };\n worker.postMessage(cancelMessage);\n }\n worker.removeEventListener(\"message\", messageHandler);\n };\n });\n}\nfunction prepareArguments(rawArgs) {\n if (rawArgs.length === 0) {\n // Exit early if possible\n return {\n args: [],\n transferables: []\n };\n }\n const args = [];\n const transferables = [];\n for (const arg of rawArgs) {\n if (Object(_transferable__WEBPACK_IMPORTED_MODULE_4__[\"isTransferDescriptor\"])(arg)) {\n args.push(Object(_common__WEBPACK_IMPORTED_MODULE_2__[\"serialize\"])(arg.send));\n transferables.push(...arg.transferables);\n }\n else {\n args.push(Object(_common__WEBPACK_IMPORTED_MODULE_2__[\"serialize\"])(arg));\n }\n }\n return {\n args,\n transferables: transferables.length === 0 ? transferables : dedupe(transferables)\n };\n}\nfunction createProxyFunction(worker, method) {\n return ((...rawArgs) => {\n const uid = nextJobUID++;\n const { args, transferables } = prepareArguments(rawArgs);\n const runMessage = {\n type: _types_messages__WEBPACK_IMPORTED_MODULE_5__[\"MasterMessageType\"].run,\n uid,\n method,\n args\n };\n debugMessages(\"Sending command to run function to worker:\", runMessage);\n try {\n worker.postMessage(runMessage, transferables);\n }\n catch (error) {\n return _observable_promise__WEBPACK_IMPORTED_MODULE_3__[\"ObservablePromise\"].from(Promise.reject(error));\n }\n return _observable_promise__WEBPACK_IMPORTED_MODULE_3__[\"ObservablePromise\"].from(Object(observable_fns__WEBPACK_IMPORTED_MODULE_1__[\"multicast\"])(createObservableForJob(worker, uid)));\n });\n}\nfunction createProxyModule(worker, methodNames) {\n const proxy = {};\n for (const methodName of methodNames) {\n proxy[methodName] = createProxyFunction(worker, methodName);\n }\n return proxy;\n}\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/threads/dist-esm/master/invocation-proxy.js?");
1178
1179/***/ }),
1180
1181/***/ "./node_modules/threads/dist-esm/master/pool-types.js":
1182/*!************************************************************!*\
1183 !*** ./node_modules/threads/dist-esm/master/pool-types.js ***!
1184 \************************************************************/
1185/*! exports provided: PoolEventType */
1186/***/ (function(module, __webpack_exports__, __webpack_require__) {
1187
1188"use strict";
1189eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"PoolEventType\", function() { return PoolEventType; });\n/** Pool event type. Specifies the type of each `PoolEvent`. */\nvar PoolEventType;\n(function (PoolEventType) {\n PoolEventType[\"initialized\"] = \"initialized\";\n PoolEventType[\"taskCanceled\"] = \"taskCanceled\";\n PoolEventType[\"taskCompleted\"] = \"taskCompleted\";\n PoolEventType[\"taskFailed\"] = \"taskFailed\";\n PoolEventType[\"taskQueued\"] = \"taskQueued\";\n PoolEventType[\"taskQueueDrained\"] = \"taskQueueDrained\";\n PoolEventType[\"taskStart\"] = \"taskStart\";\n PoolEventType[\"terminated\"] = \"terminated\";\n})(PoolEventType || (PoolEventType = {}));\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/threads/dist-esm/master/pool-types.js?");
1190
1191/***/ }),
1192
1193/***/ "./node_modules/threads/dist-esm/master/pool.js":
1194/*!******************************************************!*\
1195 !*** ./node_modules/threads/dist-esm/master/pool.js ***!
1196 \******************************************************/
1197/*! exports provided: PoolEventType, Thread, Pool */
1198/***/ (function(module, __webpack_exports__, __webpack_require__) {
1199
1200"use strict";
1201eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"Pool\", function() { return Pool; });\n/* harmony import */ var debug__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! debug */ \"./node_modules/threads/node_modules/debug/src/browser.js\");\n/* harmony import */ var debug__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(debug__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var observable_fns__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! observable-fns */ \"./node_modules/observable-fns/dist.esm/index.js\");\n/* harmony import */ var _ponyfills__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../ponyfills */ \"./node_modules/threads/dist-esm/ponyfills.js\");\n/* harmony import */ var _implementation__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./implementation */ \"./node_modules/threads/dist-esm/master/implementation.browser.js\");\n/* harmony import */ var _pool_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./pool-types */ \"./node_modules/threads/dist-esm/master/pool-types.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"PoolEventType\", function() { return _pool_types__WEBPACK_IMPORTED_MODULE_4__[\"PoolEventType\"]; });\n\n/* harmony import */ var _thread__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./thread */ \"./node_modules/threads/dist-esm/master/thread.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Thread\", function() { return _thread__WEBPACK_IMPORTED_MODULE_5__[\"Thread\"]; });\n\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\n\n\n\n\n\n\n\nlet nextPoolID = 1;\nfunction createArray(size) {\n const array = [];\n for (let index = 0; index < size; index++) {\n array.push(index);\n }\n return array;\n}\nfunction delay(ms) {\n return new Promise(resolve => setTimeout(resolve, ms));\n}\nfunction flatMap(array, mapper) {\n return array.reduce((flattened, element) => [...flattened, ...mapper(element)], []);\n}\nfunction slugify(text) {\n return text.replace(/\\W/g, \" \").trim().replace(/\\s+/g, \"-\");\n}\nfunction spawnWorkers(spawnWorker, count) {\n return createArray(count).map(() => ({\n init: spawnWorker(),\n runningTasks: []\n }));\n}\nclass WorkerPool {\n constructor(spawnWorker, optionsOrSize) {\n this.eventSubject = new observable_fns__WEBPACK_IMPORTED_MODULE_1__[\"Subject\"]();\n this.initErrors = [];\n this.isClosing = false;\n this.nextTaskID = 1;\n this.taskQueue = [];\n const options = typeof optionsOrSize === \"number\"\n ? { size: optionsOrSize }\n : optionsOrSize || {};\n const { size = _implementation__WEBPACK_IMPORTED_MODULE_3__[\"defaultPoolSize\"] } = options;\n this.debug = debug__WEBPACK_IMPORTED_MODULE_0___default()(`threads:pool:${slugify(options.name || String(nextPoolID++))}`);\n this.options = options;\n this.workers = spawnWorkers(spawnWorker, size);\n this.eventObservable = Object(observable_fns__WEBPACK_IMPORTED_MODULE_1__[\"multicast\"])(observable_fns__WEBPACK_IMPORTED_MODULE_1__[\"Observable\"].from(this.eventSubject));\n Promise.all(this.workers.map(worker => worker.init)).then(() => this.eventSubject.next({\n type: _pool_types__WEBPACK_IMPORTED_MODULE_4__[\"PoolEventType\"].initialized,\n size: this.workers.length\n }), error => {\n this.debug(\"Error while initializing pool worker:\", error);\n this.eventSubject.error(error);\n this.initErrors.push(error);\n });\n }\n findIdlingWorker() {\n const { concurrency = 1 } = this.options;\n return this.workers.find(worker => worker.runningTasks.length < concurrency);\n }\n runPoolTask(worker, task) {\n return __awaiter(this, void 0, void 0, function* () {\n const workerID = this.workers.indexOf(worker) + 1;\n this.debug(`Running task #${task.id} on worker #${workerID}...`);\n this.eventSubject.next({\n type: _pool_types__WEBPACK_IMPORTED_MODULE_4__[\"PoolEventType\"].taskStart,\n taskID: task.id,\n workerID\n });\n try {\n const returnValue = yield task.run(yield worker.init);\n this.debug(`Task #${task.id} completed successfully`);\n this.eventSubject.next({\n type: _pool_types__WEBPACK_IMPORTED_MODULE_4__[\"PoolEventType\"].taskCompleted,\n returnValue,\n taskID: task.id,\n workerID\n });\n }\n catch (error) {\n this.debug(`Task #${task.id} failed`);\n this.eventSubject.next({\n type: _pool_types__WEBPACK_IMPORTED_MODULE_4__[\"PoolEventType\"].taskFailed,\n taskID: task.id,\n error,\n workerID\n });\n }\n });\n }\n run(worker, task) {\n return __awaiter(this, void 0, void 0, function* () {\n const runPromise = (() => __awaiter(this, void 0, void 0, function* () {\n const removeTaskFromWorkersRunningTasks = () => {\n worker.runningTasks = worker.runningTasks.filter(someRunPromise => someRunPromise !== runPromise);\n };\n // Defer task execution by one tick to give handlers time to subscribe\n yield delay(0);\n try {\n yield this.runPoolTask(worker, task);\n }\n finally {\n removeTaskFromWorkersRunningTasks();\n if (!this.isClosing) {\n this.scheduleWork();\n }\n }\n }))();\n worker.runningTasks.push(runPromise);\n });\n }\n scheduleWork() {\n this.debug(`Attempt de-queueing a task in order to run it...`);\n const availableWorker = this.findIdlingWorker();\n if (!availableWorker)\n return;\n const nextTask = this.taskQueue.shift();\n if (!nextTask) {\n this.debug(`Task queue is empty`);\n this.eventSubject.next({ type: _pool_types__WEBPACK_IMPORTED_MODULE_4__[\"PoolEventType\"].taskQueueDrained });\n return;\n }\n this.run(availableWorker, nextTask);\n }\n taskCompletion(taskID) {\n return new Promise((resolve, reject) => {\n const eventSubscription = this.events().subscribe(event => {\n if (event.type === _pool_types__WEBPACK_IMPORTED_MODULE_4__[\"PoolEventType\"].taskCompleted && event.taskID === taskID) {\n eventSubscription.unsubscribe();\n resolve(event.returnValue);\n }\n else if (event.type === _pool_types__WEBPACK_IMPORTED_MODULE_4__[\"PoolEventType\"].taskFailed && event.taskID === taskID) {\n eventSubscription.unsubscribe();\n reject(event.error);\n }\n else if (event.type === _pool_types__WEBPACK_IMPORTED_MODULE_4__[\"PoolEventType\"].terminated) {\n eventSubscription.unsubscribe();\n reject(Error(\"Pool has been terminated before task was run.\"));\n }\n });\n });\n }\n settled(allowResolvingImmediately = false) {\n return __awaiter(this, void 0, void 0, function* () {\n const getCurrentlyRunningTasks = () => flatMap(this.workers, worker => worker.runningTasks);\n const taskFailures = [];\n const failureSubscription = this.eventObservable.subscribe(event => {\n if (event.type === _pool_types__WEBPACK_IMPORTED_MODULE_4__[\"PoolEventType\"].taskFailed) {\n taskFailures.push(event.error);\n }\n });\n if (this.initErrors.length > 0) {\n return Promise.reject(this.initErrors[0]);\n }\n if (allowResolvingImmediately && this.taskQueue.length === 0) {\n yield Object(_ponyfills__WEBPACK_IMPORTED_MODULE_2__[\"allSettled\"])(getCurrentlyRunningTasks());\n return taskFailures;\n }\n yield new Promise((resolve, reject) => {\n const subscription = this.eventObservable.subscribe({\n next(event) {\n if (event.type === _pool_types__WEBPACK_IMPORTED_MODULE_4__[\"PoolEventType\"].taskQueueDrained) {\n subscription.unsubscribe();\n resolve(void 0);\n }\n },\n error: reject // make a pool-wide error reject the completed() result promise\n });\n });\n yield Object(_ponyfills__WEBPACK_IMPORTED_MODULE_2__[\"allSettled\"])(getCurrentlyRunningTasks());\n failureSubscription.unsubscribe();\n return taskFailures;\n });\n }\n completed(allowResolvingImmediately = false) {\n return __awaiter(this, void 0, void 0, function* () {\n const settlementPromise = this.settled(allowResolvingImmediately);\n const earlyExitPromise = new Promise((resolve, reject) => {\n const subscription = this.eventObservable.subscribe({\n next(event) {\n if (event.type === _pool_types__WEBPACK_IMPORTED_MODULE_4__[\"PoolEventType\"].taskQueueDrained) {\n subscription.unsubscribe();\n resolve(settlementPromise);\n }\n else if (event.type === _pool_types__WEBPACK_IMPORTED_MODULE_4__[\"PoolEventType\"].taskFailed) {\n subscription.unsubscribe();\n reject(event.error);\n }\n },\n error: reject // make a pool-wide error reject the completed() result promise\n });\n });\n const errors = yield Promise.race([\n settlementPromise,\n earlyExitPromise\n ]);\n if (errors.length > 0) {\n throw errors[0];\n }\n });\n }\n events() {\n return this.eventObservable;\n }\n queue(taskFunction) {\n const { maxQueuedJobs = Infinity } = this.options;\n if (this.isClosing) {\n throw Error(`Cannot schedule pool tasks after terminate() has been called.`);\n }\n if (this.initErrors.length > 0) {\n throw this.initErrors[0];\n }\n const taskID = this.nextTaskID++;\n const taskCompletion = this.taskCompletion(taskID);\n taskCompletion.catch((error) => {\n // Prevent unhandled rejections here as we assume the user will use\n // `pool.completed()`, `pool.settled()` or `task.catch()` to handle errors\n this.debug(`Task #${taskID} errored:`, error);\n });\n const task = {\n id: taskID,\n run: taskFunction,\n cancel: () => {\n if (this.taskQueue.indexOf(task) === -1)\n return;\n this.taskQueue = this.taskQueue.filter(someTask => someTask !== task);\n this.eventSubject.next({\n type: _pool_types__WEBPACK_IMPORTED_MODULE_4__[\"PoolEventType\"].taskCanceled,\n taskID: task.id\n });\n },\n then: taskCompletion.then.bind(taskCompletion)\n };\n if (this.taskQueue.length >= maxQueuedJobs) {\n throw Error(\"Maximum number of pool tasks queued. Refusing to queue another one.\\n\" +\n \"This usually happens for one of two reasons: We are either at peak \" +\n \"workload right now or some tasks just won't finish, thus blocking the pool.\");\n }\n this.debug(`Queueing task #${task.id}...`);\n this.taskQueue.push(task);\n this.eventSubject.next({\n type: _pool_types__WEBPACK_IMPORTED_MODULE_4__[\"PoolEventType\"].taskQueued,\n taskID: task.id\n });\n this.scheduleWork();\n return task;\n }\n terminate(force) {\n return __awaiter(this, void 0, void 0, function* () {\n this.isClosing = true;\n if (!force) {\n yield this.completed(true);\n }\n this.eventSubject.next({\n type: _pool_types__WEBPACK_IMPORTED_MODULE_4__[\"PoolEventType\"].terminated,\n remainingQueue: [...this.taskQueue]\n });\n this.eventSubject.complete();\n yield Promise.all(this.workers.map((worker) => __awaiter(this, void 0, void 0, function* () { return _thread__WEBPACK_IMPORTED_MODULE_5__[\"Thread\"].terminate(yield worker.init); })));\n });\n }\n}\nWorkerPool.EventType = _pool_types__WEBPACK_IMPORTED_MODULE_4__[\"PoolEventType\"];\n/**\n * Thread pool constructor. Creates a new pool and spawns its worker threads.\n */\nfunction PoolConstructor(spawnWorker, optionsOrSize) {\n // The function exists only so we don't need to use `new` to create a pool (we still can, though).\n // If the Pool is a class or not is an implementation detail that should not concern the user.\n return new WorkerPool(spawnWorker, optionsOrSize);\n}\nPoolConstructor.EventType = _pool_types__WEBPACK_IMPORTED_MODULE_4__[\"PoolEventType\"];\n/**\n * Thread pool constructor. Creates a new pool and spawns its worker threads.\n */\nconst Pool = PoolConstructor;\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/threads/dist-esm/master/pool.js?");
1202
1203/***/ }),
1204
1205/***/ "./node_modules/threads/dist-esm/master/spawn.js":
1206/*!*******************************************************!*\
1207 !*** ./node_modules/threads/dist-esm/master/spawn.js ***!
1208 \*******************************************************/
1209/*! exports provided: spawn */
1210/***/ (function(module, __webpack_exports__, __webpack_require__) {
1211
1212"use strict";
1213eval("__webpack_require__.r(__webpack_exports__);\n/* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"spawn\", function() { return spawn; });\n/* harmony import */ var debug__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! debug */ \"./node_modules/threads/node_modules/debug/src/browser.js\");\n/* harmony import */ var debug__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(debug__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var observable_fns__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! observable-fns */ \"./node_modules/observable-fns/dist.esm/index.js\");\n/* harmony import */ var _common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common */ \"./node_modules/threads/dist-esm/common.js\");\n/* harmony import */ var _promise__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../promise */ \"./node_modules/threads/dist-esm/promise.js\");\n/* harmony import */ var _symbols__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../symbols */ \"./node_modules/threads/dist-esm/symbols.js\");\n/* harmony import */ var _types_master__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../types/master */ \"./node_modules/threads/dist-esm/types/master.js\");\n/* harmony import */ var _invocation_proxy__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./invocation-proxy */ \"./node_modules/threads/dist-esm/master/invocation-proxy.js\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\n\n\n\n\n\n\n\nconst debugMessages = debug__WEBPACK_IMPORTED_MODULE_0___default()(\"threads:master:messages\");\nconst debugSpawn = debug__WEBPACK_IMPORTED_MODULE_0___default()(\"threads:master:spawn\");\nconst debugThreadUtils = debug__WEBPACK_IMPORTED_MODULE_0___default()(\"threads:master:thread-utils\");\nconst isInitMessage = (data) => data && data.type === \"init\";\nconst isUncaughtErrorMessage = (data) => data && data.type === \"uncaughtError\";\nconst initMessageTimeout = typeof process !== \"undefined\" && process.env.THREADS_WORKER_INIT_TIMEOUT\n ? Number.parseInt(process.env.THREADS_WORKER_INIT_TIMEOUT, 10)\n : 10000;\nfunction withTimeout(promise, timeoutInMs, errorMessage) {\n return __awaiter(this, void 0, void 0, function* () {\n let timeoutHandle;\n const timeout = new Promise((resolve, reject) => {\n timeoutHandle = setTimeout(() => reject(Error(errorMessage)), timeoutInMs);\n });\n const result = yield Promise.race([\n promise,\n timeout\n ]);\n clearTimeout(timeoutHandle);\n return result;\n });\n}\nfunction receiveInitMessage(worker) {\n return new Promise((resolve, reject) => {\n const messageHandler = ((event) => {\n debugMessages(\"Message from worker before finishing initialization:\", event.data);\n if (isInitMessage(event.data)) {\n worker.removeEventListener(\"message\", messageHandler);\n resolve(event.data);\n }\n else if (isUncaughtErrorMessage(event.data)) {\n worker.removeEventListener(\"message\", messageHandler);\n reject(Object(_common__WEBPACK_IMPORTED_MODULE_2__[\"deserialize\"])(event.data.error));\n }\n });\n worker.addEventListener(\"message\", messageHandler);\n });\n}\nfunction createEventObservable(worker, workerTermination) {\n return new observable_fns__WEBPACK_IMPORTED_MODULE_1__[\"Observable\"](observer => {\n const messageHandler = ((messageEvent) => {\n const workerEvent = {\n type: _types_master__WEBPACK_IMPORTED_MODULE_5__[\"WorkerEventType\"].message,\n data: messageEvent.data\n };\n observer.next(workerEvent);\n });\n const rejectionHandler = ((errorEvent) => {\n debugThreadUtils(\"Unhandled promise rejection event in thread:\", errorEvent);\n const workerEvent = {\n type: _types_master__WEBPACK_IMPORTED_MODULE_5__[\"WorkerEventType\"].internalError,\n error: Error(errorEvent.reason)\n };\n observer.next(workerEvent);\n });\n worker.addEventListener(\"message\", messageHandler);\n worker.addEventListener(\"unhandledrejection\", rejectionHandler);\n workerTermination.then(() => {\n const terminationEvent = {\n type: _types_master__WEBPACK_IMPORTED_MODULE_5__[\"WorkerEventType\"].termination\n };\n worker.removeEventListener(\"message\", messageHandler);\n worker.removeEventListener(\"unhandledrejection\", rejectionHandler);\n observer.next(terminationEvent);\n observer.complete();\n });\n });\n}\nfunction createTerminator(worker) {\n const [termination, resolver] = Object(_promise__WEBPACK_IMPORTED_MODULE_3__[\"createPromiseWithResolver\"])();\n const terminate = () => __awaiter(this, void 0, void 0, function* () {\n debugThreadUtils(\"Terminating worker\");\n // Newer versions of worker_threads workers return a promise\n yield worker.terminate();\n resolver();\n });\n return { terminate, termination };\n}\nfunction setPrivateThreadProps(raw, worker, workerEvents, terminate) {\n const workerErrors = workerEvents\n .filter(event => event.type === _types_master__WEBPACK_IMPORTED_MODULE_5__[\"WorkerEventType\"].internalError)\n .map(errorEvent => errorEvent.error);\n // tslint:disable-next-line prefer-object-spread\n return Object.assign(raw, {\n [_symbols__WEBPACK_IMPORTED_MODULE_4__[\"$errors\"]]: workerErrors,\n [_symbols__WEBPACK_IMPORTED_MODULE_4__[\"$events\"]]: workerEvents,\n [_symbols__WEBPACK_IMPORTED_MODULE_4__[\"$terminate\"]]: terminate,\n [_symbols__WEBPACK_IMPORTED_MODULE_4__[\"$worker\"]]: worker\n });\n}\n/**\n * Spawn a new thread. Takes a fresh worker instance, wraps it in a thin\n * abstraction layer to provide the transparent API and verifies that\n * the worker has initialized successfully.\n *\n * @param worker Instance of `Worker`. Either a web worker, `worker_threads` worker or `tiny-worker` worker.\n * @param [options]\n * @param [options.timeout] Init message timeout. Default: 10000 or set by environment variable.\n */\nfunction spawn(worker, options) {\n return __awaiter(this, void 0, void 0, function* () {\n debugSpawn(\"Initializing new thread\");\n const timeout = options && options.timeout ? options.timeout : initMessageTimeout;\n const initMessage = yield withTimeout(receiveInitMessage(worker), timeout, `Timeout: Did not receive an init message from worker after ${timeout}ms. Make sure the worker calls expose().`);\n const exposed = initMessage.exposed;\n const { termination, terminate } = createTerminator(worker);\n const events = createEventObservable(worker, termination);\n if (exposed.type === \"function\") {\n const proxy = Object(_invocation_proxy__WEBPACK_IMPORTED_MODULE_6__[\"createProxyFunction\"])(worker);\n return setPrivateThreadProps(proxy, worker, events, terminate);\n }\n else if (exposed.type === \"module\") {\n const proxy = Object(_invocation_proxy__WEBPACK_IMPORTED_MODULE_6__[\"createProxyModule\"])(worker, exposed.methods);\n return setPrivateThreadProps(proxy, worker, events, terminate);\n }\n else {\n const type = exposed.type;\n throw Error(`Worker init message states unexpected type of expose(): ${type}`);\n }\n });\n}\n\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../process/browser.js */ \"./node_modules/process/browser.js\")))\n\n//# sourceURL=webpack://GeoRaster/./node_modules/threads/dist-esm/master/spawn.js?");
1214
1215/***/ }),
1216
1217/***/ "./node_modules/threads/dist-esm/master/thread.js":
1218/*!********************************************************!*\
1219 !*** ./node_modules/threads/dist-esm/master/thread.js ***!
1220 \********************************************************/
1221/*! exports provided: Thread */
1222/***/ (function(module, __webpack_exports__, __webpack_require__) {
1223
1224"use strict";
1225eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"Thread\", function() { return Thread; });\n/* harmony import */ var _symbols__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../symbols */ \"./node_modules/threads/dist-esm/symbols.js\");\n\nfunction fail(message) {\n throw Error(message);\n}\n/** Thread utility functions. Use them to manage or inspect a `spawn()`-ed thread. */\nconst Thread = {\n /** Return an observable that can be used to subscribe to all errors happening in the thread. */\n errors(thread) {\n return thread[_symbols__WEBPACK_IMPORTED_MODULE_0__[\"$errors\"]] || fail(\"Error observable not found. Make sure to pass a thread instance as returned by the spawn() promise.\");\n },\n /** Return an observable that can be used to subscribe to internal events happening in the thread. Useful for debugging. */\n events(thread) {\n return thread[_symbols__WEBPACK_IMPORTED_MODULE_0__[\"$events\"]] || fail(\"Events observable not found. Make sure to pass a thread instance as returned by the spawn() promise.\");\n },\n /** Terminate a thread. Remember to terminate every thread when you are done using it. */\n terminate(thread) {\n return thread[_symbols__WEBPACK_IMPORTED_MODULE_0__[\"$terminate\"]]();\n }\n};\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/threads/dist-esm/master/thread.js?");
1226
1227/***/ }),
1228
1229/***/ "./node_modules/threads/dist-esm/observable-promise.js":
1230/*!*************************************************************!*\
1231 !*** ./node_modules/threads/dist-esm/observable-promise.js ***!
1232 \*************************************************************/
1233/*! exports provided: ObservablePromise */
1234/***/ (function(module, __webpack_exports__, __webpack_require__) {
1235
1236"use strict";
1237eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"ObservablePromise\", function() { return ObservablePromise; });\n/* harmony import */ var observable_fns__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! observable-fns */ \"./node_modules/observable-fns/dist.esm/index.js\");\n\nconst doNothing = () => undefined;\nconst returnInput = (input) => input;\nconst runDeferred = (fn) => Promise.resolve().then(fn);\nfunction fail(error) {\n throw error;\n}\nfunction isThenable(thing) {\n return thing && typeof thing.then === \"function\";\n}\n/**\n * Creates a hybrid, combining the APIs of an Observable and a Promise.\n *\n * It is used to proxy async process states when we are initially not sure\n * if that async process will yield values once (-> Promise) or multiple\n * times (-> Observable).\n *\n * Note that the observable promise inherits some of the observable's characteristics:\n * The `init` function will be called *once for every time anyone subscribes to it*.\n *\n * If this is undesired, derive a hot observable from it using `makeHot()` and\n * subscribe to that.\n */\nclass ObservablePromise extends observable_fns__WEBPACK_IMPORTED_MODULE_0__[\"Observable\"] {\n constructor(init) {\n super((originalObserver) => {\n // tslint:disable-next-line no-this-assignment\n const self = this;\n const observer = Object.assign(Object.assign({}, originalObserver), { complete() {\n originalObserver.complete();\n self.onCompletion();\n }, error(error) {\n originalObserver.error(error);\n self.onError(error);\n },\n next(value) {\n originalObserver.next(value);\n self.onNext(value);\n } });\n try {\n this.initHasRun = true;\n return init(observer);\n }\n catch (error) {\n observer.error(error);\n }\n });\n this.initHasRun = false;\n this.fulfillmentCallbacks = [];\n this.rejectionCallbacks = [];\n this.firstValueSet = false;\n this.state = \"pending\";\n }\n onNext(value) {\n if (!this.firstValueSet) {\n this.firstValue = value;\n this.firstValueSet = true;\n }\n }\n onError(error) {\n this.state = \"rejected\";\n this.rejection = error;\n for (const onRejected of this.rejectionCallbacks) {\n // Promisifying the call to turn errors into unhandled promise rejections\n // instead of them failing sync and cancelling the iteration\n runDeferred(() => onRejected(error));\n }\n }\n onCompletion() {\n this.state = \"fulfilled\";\n for (const onFulfilled of this.fulfillmentCallbacks) {\n // Promisifying the call to turn errors into unhandled promise rejections\n // instead of them failing sync and cancelling the iteration\n runDeferred(() => onFulfilled(this.firstValue));\n }\n }\n then(onFulfilledRaw, onRejectedRaw) {\n const onFulfilled = onFulfilledRaw || returnInput;\n const onRejected = onRejectedRaw || fail;\n let onRejectedCalled = false;\n return new Promise((resolve, reject) => {\n const rejectionCallback = (error) => {\n if (onRejectedCalled)\n return;\n onRejectedCalled = true;\n try {\n resolve(onRejected(error));\n }\n catch (anotherError) {\n reject(anotherError);\n }\n };\n const fulfillmentCallback = (value) => {\n try {\n resolve(onFulfilled(value));\n }\n catch (error) {\n rejectionCallback(error);\n }\n };\n if (!this.initHasRun) {\n this.subscribe({ error: rejectionCallback });\n }\n if (this.state === \"fulfilled\") {\n return resolve(onFulfilled(this.firstValue));\n }\n if (this.state === \"rejected\") {\n onRejectedCalled = true;\n return resolve(onRejected(this.rejection));\n }\n this.fulfillmentCallbacks.push(fulfillmentCallback);\n this.rejectionCallbacks.push(rejectionCallback);\n });\n }\n catch(onRejected) {\n return this.then(undefined, onRejected);\n }\n finally(onCompleted) {\n const handler = onCompleted || doNothing;\n return this.then((value) => {\n handler();\n return value;\n }, () => handler());\n }\n static from(thing) {\n if (isThenable(thing)) {\n return new ObservablePromise(observer => {\n const onFulfilled = (value) => {\n observer.next(value);\n observer.complete();\n };\n const onRejected = (error) => {\n observer.error(error);\n };\n thing.then(onFulfilled, onRejected);\n });\n }\n else {\n return super.from(thing);\n }\n }\n}\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/threads/dist-esm/observable-promise.js?");
1238
1239/***/ }),
1240
1241/***/ "./node_modules/threads/dist-esm/ponyfills.js":
1242/*!****************************************************!*\
1243 !*** ./node_modules/threads/dist-esm/ponyfills.js ***!
1244 \****************************************************/
1245/*! exports provided: allSettled */
1246/***/ (function(module, __webpack_exports__, __webpack_require__) {
1247
1248"use strict";
1249eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"allSettled\", function() { return allSettled; });\n// Based on <https://github.com/es-shims/Promise.allSettled/blob/master/implementation.js>\nfunction allSettled(values) {\n return Promise.all(values.map(item => {\n const onFulfill = (value) => {\n return { status: 'fulfilled', value };\n };\n const onReject = (reason) => {\n return { status: 'rejected', reason };\n };\n const itemPromise = Promise.resolve(item);\n try {\n return itemPromise.then(onFulfill, onReject);\n }\n catch (error) {\n return Promise.reject(error);\n }\n }));\n}\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/threads/dist-esm/ponyfills.js?");
1250
1251/***/ }),
1252
1253/***/ "./node_modules/threads/dist-esm/promise.js":
1254/*!**************************************************!*\
1255 !*** ./node_modules/threads/dist-esm/promise.js ***!
1256 \**************************************************/
1257/*! exports provided: createPromiseWithResolver */
1258/***/ (function(module, __webpack_exports__, __webpack_require__) {
1259
1260"use strict";
1261eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"createPromiseWithResolver\", function() { return createPromiseWithResolver; });\nconst doNothing = () => undefined;\n/**\n * Creates a new promise and exposes its resolver function.\n * Use with care!\n */\nfunction createPromiseWithResolver() {\n let alreadyResolved = false;\n let resolvedTo;\n let resolver = doNothing;\n const promise = new Promise(resolve => {\n if (alreadyResolved) {\n resolve(resolvedTo);\n }\n else {\n resolver = resolve;\n }\n });\n const exposedResolver = (value) => {\n alreadyResolved = true;\n resolvedTo = value;\n resolver(resolvedTo);\n };\n return [promise, exposedResolver];\n}\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/threads/dist-esm/promise.js?");
1262
1263/***/ }),
1264
1265/***/ "./node_modules/threads/dist-esm/serializers.js":
1266/*!******************************************************!*\
1267 !*** ./node_modules/threads/dist-esm/serializers.js ***!
1268 \******************************************************/
1269/*! exports provided: extendSerializer, DefaultSerializer */
1270/***/ (function(module, __webpack_exports__, __webpack_require__) {
1271
1272"use strict";
1273eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"extendSerializer\", function() { return extendSerializer; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"DefaultSerializer\", function() { return DefaultSerializer; });\nfunction extendSerializer(extend, implementation) {\n const fallbackDeserializer = extend.deserialize.bind(extend);\n const fallbackSerializer = extend.serialize.bind(extend);\n return {\n deserialize(message) {\n return implementation.deserialize(message, fallbackDeserializer);\n },\n serialize(input) {\n return implementation.serialize(input, fallbackSerializer);\n }\n };\n}\nconst DefaultErrorSerializer = {\n deserialize(message) {\n return Object.assign(Error(message.message), {\n name: message.name,\n stack: message.stack\n });\n },\n serialize(error) {\n return {\n __error_marker: \"$$error\",\n message: error.message,\n name: error.name,\n stack: error.stack\n };\n }\n};\nconst isSerializedError = (thing) => thing && typeof thing === \"object\" && \"__error_marker\" in thing && thing.__error_marker === \"$$error\";\nconst DefaultSerializer = {\n deserialize(message) {\n if (isSerializedError(message)) {\n return DefaultErrorSerializer.deserialize(message);\n }\n else {\n return message;\n }\n },\n serialize(input) {\n if (input instanceof Error) {\n return DefaultErrorSerializer.serialize(input);\n }\n else {\n return input;\n }\n }\n};\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/threads/dist-esm/serializers.js?");
1274
1275/***/ }),
1276
1277/***/ "./node_modules/threads/dist-esm/symbols.js":
1278/*!**************************************************!*\
1279 !*** ./node_modules/threads/dist-esm/symbols.js ***!
1280 \**************************************************/
1281/*! exports provided: $errors, $events, $terminate, $transferable, $worker */
1282/***/ (function(module, __webpack_exports__, __webpack_require__) {
1283
1284"use strict";
1285eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"$errors\", function() { return $errors; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"$events\", function() { return $events; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"$terminate\", function() { return $terminate; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"$transferable\", function() { return $transferable; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"$worker\", function() { return $worker; });\nconst $errors = Symbol(\"thread.errors\");\nconst $events = Symbol(\"thread.events\");\nconst $terminate = Symbol(\"thread.terminate\");\nconst $transferable = Symbol(\"thread.transferable\");\nconst $worker = Symbol(\"thread.worker\");\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/threads/dist-esm/symbols.js?");
1286
1287/***/ }),
1288
1289/***/ "./node_modules/threads/dist-esm/transferable.js":
1290/*!*******************************************************!*\
1291 !*** ./node_modules/threads/dist-esm/transferable.js ***!
1292 \*******************************************************/
1293/*! exports provided: isTransferDescriptor, Transfer */
1294/***/ (function(module, __webpack_exports__, __webpack_require__) {
1295
1296"use strict";
1297eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isTransferDescriptor\", function() { return isTransferDescriptor; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"Transfer\", function() { return Transfer; });\n/* harmony import */ var _symbols__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./symbols */ \"./node_modules/threads/dist-esm/symbols.js\");\n\nfunction isTransferable(thing) {\n if (!thing || typeof thing !== \"object\")\n return false;\n // Don't check too thoroughly, since the list of transferable things in JS might grow over time\n return true;\n}\nfunction isTransferDescriptor(thing) {\n return thing && typeof thing === \"object\" && thing[_symbols__WEBPACK_IMPORTED_MODULE_0__[\"$transferable\"]];\n}\nfunction Transfer(payload, transferables) {\n if (!transferables) {\n if (!isTransferable(payload))\n throw Error();\n transferables = [payload];\n }\n return {\n [_symbols__WEBPACK_IMPORTED_MODULE_0__[\"$transferable\"]]: true,\n send: payload,\n transferables\n };\n}\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/threads/dist-esm/transferable.js?");
1298
1299/***/ }),
1300
1301/***/ "./node_modules/threads/dist-esm/types/master.js":
1302/*!*******************************************************!*\
1303 !*** ./node_modules/threads/dist-esm/types/master.js ***!
1304 \*******************************************************/
1305/*! exports provided: WorkerEventType */
1306/***/ (function(module, __webpack_exports__, __webpack_require__) {
1307
1308"use strict";
1309eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"WorkerEventType\", function() { return WorkerEventType; });\n/* harmony import */ var _symbols__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../symbols */ \"./node_modules/threads/dist-esm/symbols.js\");\n/// <reference lib=\"dom\" />\n// tslint:disable max-classes-per-file\n\n/** Event as emitted by worker thread. Subscribe to using `Thread.events(thread)`. */\nvar WorkerEventType;\n(function (WorkerEventType) {\n WorkerEventType[\"internalError\"] = \"internalError\";\n WorkerEventType[\"message\"] = \"message\";\n WorkerEventType[\"termination\"] = \"termination\";\n})(WorkerEventType || (WorkerEventType = {}));\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/threads/dist-esm/types/master.js?");
1310
1311/***/ }),
1312
1313/***/ "./node_modules/threads/dist-esm/types/messages.js":
1314/*!*********************************************************!*\
1315 !*** ./node_modules/threads/dist-esm/types/messages.js ***!
1316 \*********************************************************/
1317/*! exports provided: MasterMessageType, WorkerMessageType */
1318/***/ (function(module, __webpack_exports__, __webpack_require__) {
1319
1320"use strict";
1321eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"MasterMessageType\", function() { return MasterMessageType; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"WorkerMessageType\", function() { return WorkerMessageType; });\n/////////////////////////////\n// Messages sent by master:\nvar MasterMessageType;\n(function (MasterMessageType) {\n MasterMessageType[\"cancel\"] = \"cancel\";\n MasterMessageType[\"run\"] = \"run\";\n})(MasterMessageType || (MasterMessageType = {}));\n////////////////////////////\n// Messages sent by worker:\nvar WorkerMessageType;\n(function (WorkerMessageType) {\n WorkerMessageType[\"error\"] = \"error\";\n WorkerMessageType[\"init\"] = \"init\";\n WorkerMessageType[\"result\"] = \"result\";\n WorkerMessageType[\"running\"] = \"running\";\n WorkerMessageType[\"uncaughtError\"] = \"uncaughtError\";\n})(WorkerMessageType || (WorkerMessageType = {}));\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/threads/dist-esm/types/messages.js?");
1322
1323/***/ }),
1324
1325/***/ "./node_modules/threads/dist-esm/worker/implementation.browser.js":
1326/*!************************************************************************!*\
1327 !*** ./node_modules/threads/dist-esm/worker/implementation.browser.js ***!
1328 \************************************************************************/
1329/*! exports provided: default */
1330/***/ (function(module, __webpack_exports__, __webpack_require__) {
1331
1332"use strict";
1333eval("__webpack_require__.r(__webpack_exports__);\n/// <reference lib=\"dom\" />\n// tslint:disable no-shadowed-variable\nconst isWorkerRuntime = function isWorkerRuntime() {\n const isWindowContext = typeof self !== \"undefined\" && typeof Window !== \"undefined\" && self instanceof Window;\n return typeof self !== \"undefined\" && self.postMessage && !isWindowContext ? true : false;\n};\nconst postMessageToMaster = function postMessageToMaster(data, transferList) {\n self.postMessage(data, transferList);\n};\nconst subscribeToMasterMessages = function subscribeToMasterMessages(onMessage) {\n const messageHandler = (messageEvent) => {\n onMessage(messageEvent.data);\n };\n const unsubscribe = () => {\n self.removeEventListener(\"message\", messageHandler);\n };\n self.addEventListener(\"message\", messageHandler);\n return unsubscribe;\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n isWorkerRuntime,\n postMessageToMaster,\n subscribeToMasterMessages\n});\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/threads/dist-esm/worker/implementation.browser.js?");
1334
1335/***/ }),
1336
1337/***/ "./node_modules/threads/dist-esm/worker/index.js":
1338/*!*******************************************************!*\
1339 !*** ./node_modules/threads/dist-esm/worker/index.js ***!
1340 \*******************************************************/
1341/*! exports provided: registerSerializer, Transfer, isWorkerRuntime, expose */
1342/***/ (function(module, __webpack_exports__, __webpack_require__) {
1343
1344"use strict";
1345eval("__webpack_require__.r(__webpack_exports__);\n/* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isWorkerRuntime\", function() { return isWorkerRuntime; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"expose\", function() { return expose; });\n/* harmony import */ var is_observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! is-observable */ \"./node_modules/is-observable/index.js\");\n/* harmony import */ var is_observable__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(is_observable__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../common */ \"./node_modules/threads/dist-esm/common.js\");\n/* harmony import */ var _transferable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../transferable */ \"./node_modules/threads/dist-esm/transferable.js\");\n/* harmony import */ var _types_messages__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../types/messages */ \"./node_modules/threads/dist-esm/types/messages.js\");\n/* harmony import */ var _implementation__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./implementation */ \"./node_modules/threads/dist-esm/worker/implementation.browser.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"registerSerializer\", function() { return _common__WEBPACK_IMPORTED_MODULE_1__[\"registerSerializer\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Transfer\", function() { return _transferable__WEBPACK_IMPORTED_MODULE_2__[\"Transfer\"]; });\n\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\n\n\n\n\n\n\n\n/** Returns `true` if this code is currently running in a worker. */\nconst isWorkerRuntime = _implementation__WEBPACK_IMPORTED_MODULE_4__[\"default\"].isWorkerRuntime;\nlet exposeCalled = false;\nconst activeSubscriptions = new Map();\nconst isMasterJobCancelMessage = (thing) => thing && thing.type === _types_messages__WEBPACK_IMPORTED_MODULE_3__[\"MasterMessageType\"].cancel;\nconst isMasterJobRunMessage = (thing) => thing && thing.type === _types_messages__WEBPACK_IMPORTED_MODULE_3__[\"MasterMessageType\"].run;\n/**\n * There are issues with `is-observable` not recognizing zen-observable's instances.\n * We are using `observable-fns`, but it's based on zen-observable, too.\n */\nconst isObservable = (thing) => is_observable__WEBPACK_IMPORTED_MODULE_0___default()(thing) || isZenObservable(thing);\nfunction isZenObservable(thing) {\n return thing && typeof thing === \"object\" && typeof thing.subscribe === \"function\";\n}\nfunction deconstructTransfer(thing) {\n return Object(_transferable__WEBPACK_IMPORTED_MODULE_2__[\"isTransferDescriptor\"])(thing)\n ? { payload: thing.send, transferables: thing.transferables }\n : { payload: thing, transferables: undefined };\n}\nfunction postFunctionInitMessage() {\n const initMessage = {\n type: _types_messages__WEBPACK_IMPORTED_MODULE_3__[\"WorkerMessageType\"].init,\n exposed: {\n type: \"function\"\n }\n };\n _implementation__WEBPACK_IMPORTED_MODULE_4__[\"default\"].postMessageToMaster(initMessage);\n}\nfunction postModuleInitMessage(methodNames) {\n const initMessage = {\n type: _types_messages__WEBPACK_IMPORTED_MODULE_3__[\"WorkerMessageType\"].init,\n exposed: {\n type: \"module\",\n methods: methodNames\n }\n };\n _implementation__WEBPACK_IMPORTED_MODULE_4__[\"default\"].postMessageToMaster(initMessage);\n}\nfunction postJobErrorMessage(uid, rawError) {\n const { payload: error, transferables } = deconstructTransfer(rawError);\n const errorMessage = {\n type: _types_messages__WEBPACK_IMPORTED_MODULE_3__[\"WorkerMessageType\"].error,\n uid,\n error: Object(_common__WEBPACK_IMPORTED_MODULE_1__[\"serialize\"])(error)\n };\n _implementation__WEBPACK_IMPORTED_MODULE_4__[\"default\"].postMessageToMaster(errorMessage, transferables);\n}\nfunction postJobResultMessage(uid, completed, resultValue) {\n const { payload, transferables } = deconstructTransfer(resultValue);\n const resultMessage = {\n type: _types_messages__WEBPACK_IMPORTED_MODULE_3__[\"WorkerMessageType\"].result,\n uid,\n complete: completed ? true : undefined,\n payload\n };\n _implementation__WEBPACK_IMPORTED_MODULE_4__[\"default\"].postMessageToMaster(resultMessage, transferables);\n}\nfunction postJobStartMessage(uid, resultType) {\n const startMessage = {\n type: _types_messages__WEBPACK_IMPORTED_MODULE_3__[\"WorkerMessageType\"].running,\n uid,\n resultType\n };\n _implementation__WEBPACK_IMPORTED_MODULE_4__[\"default\"].postMessageToMaster(startMessage);\n}\nfunction postUncaughtErrorMessage(error) {\n try {\n const errorMessage = {\n type: _types_messages__WEBPACK_IMPORTED_MODULE_3__[\"WorkerMessageType\"].uncaughtError,\n error: Object(_common__WEBPACK_IMPORTED_MODULE_1__[\"serialize\"])(error)\n };\n _implementation__WEBPACK_IMPORTED_MODULE_4__[\"default\"].postMessageToMaster(errorMessage);\n }\n catch (subError) {\n // tslint:disable-next-line no-console\n console.error(\"Not reporting uncaught error back to master thread as it \" +\n \"occured while reporting an uncaught error already.\" +\n \"\\nLatest error:\", subError, \"\\nOriginal error:\", error);\n }\n}\nfunction runFunction(jobUID, fn, args) {\n return __awaiter(this, void 0, void 0, function* () {\n let syncResult;\n try {\n syncResult = fn(...args);\n }\n catch (error) {\n return postJobErrorMessage(jobUID, error);\n }\n const resultType = isObservable(syncResult) ? \"observable\" : \"promise\";\n postJobStartMessage(jobUID, resultType);\n if (isObservable(syncResult)) {\n const subscription = syncResult.subscribe(value => postJobResultMessage(jobUID, false, Object(_common__WEBPACK_IMPORTED_MODULE_1__[\"serialize\"])(value)), error => {\n postJobErrorMessage(jobUID, Object(_common__WEBPACK_IMPORTED_MODULE_1__[\"serialize\"])(error));\n activeSubscriptions.delete(jobUID);\n }, () => {\n postJobResultMessage(jobUID, true);\n activeSubscriptions.delete(jobUID);\n });\n activeSubscriptions.set(jobUID, subscription);\n }\n else {\n try {\n const result = yield syncResult;\n postJobResultMessage(jobUID, true, Object(_common__WEBPACK_IMPORTED_MODULE_1__[\"serialize\"])(result));\n }\n catch (error) {\n postJobErrorMessage(jobUID, Object(_common__WEBPACK_IMPORTED_MODULE_1__[\"serialize\"])(error));\n }\n }\n });\n}\n/**\n * Expose a function or a module (an object whose values are functions)\n * to the main thread. Must be called exactly once in every worker thread\n * to signal its API to the main thread.\n *\n * @param exposed Function or object whose values are functions\n */\nfunction expose(exposed) {\n if (!_implementation__WEBPACK_IMPORTED_MODULE_4__[\"default\"].isWorkerRuntime()) {\n throw Error(\"expose() called in the master thread.\");\n }\n if (exposeCalled) {\n throw Error(\"expose() called more than once. This is not possible. Pass an object to expose() if you want to expose multiple functions.\");\n }\n exposeCalled = true;\n if (typeof exposed === \"function\") {\n _implementation__WEBPACK_IMPORTED_MODULE_4__[\"default\"].subscribeToMasterMessages(messageData => {\n if (isMasterJobRunMessage(messageData) && !messageData.method) {\n runFunction(messageData.uid, exposed, messageData.args.map(_common__WEBPACK_IMPORTED_MODULE_1__[\"deserialize\"]));\n }\n });\n postFunctionInitMessage();\n }\n else if (typeof exposed === \"object\" && exposed) {\n _implementation__WEBPACK_IMPORTED_MODULE_4__[\"default\"].subscribeToMasterMessages(messageData => {\n if (isMasterJobRunMessage(messageData) && messageData.method) {\n runFunction(messageData.uid, exposed[messageData.method], messageData.args.map(_common__WEBPACK_IMPORTED_MODULE_1__[\"deserialize\"]));\n }\n });\n const methodNames = Object.keys(exposed).filter(key => typeof exposed[key] === \"function\");\n postModuleInitMessage(methodNames);\n }\n else {\n throw Error(`Invalid argument passed to expose(). Expected a function or an object, got: ${exposed}`);\n }\n _implementation__WEBPACK_IMPORTED_MODULE_4__[\"default\"].subscribeToMasterMessages(messageData => {\n if (isMasterJobCancelMessage(messageData)) {\n const jobUID = messageData.uid;\n const subscription = activeSubscriptions.get(jobUID);\n if (subscription) {\n subscription.unsubscribe();\n activeSubscriptions.delete(jobUID);\n }\n }\n });\n}\nif (typeof self !== \"undefined\" && typeof self.addEventListener === \"function\" && _implementation__WEBPACK_IMPORTED_MODULE_4__[\"default\"].isWorkerRuntime()) {\n self.addEventListener(\"error\", event => {\n // Post with some delay, so the master had some time to subscribe to messages\n setTimeout(() => postUncaughtErrorMessage(event.error || event), 250);\n });\n self.addEventListener(\"unhandledrejection\", event => {\n const error = event.reason;\n if (error && typeof error.message === \"string\") {\n // Post with some delay, so the master had some time to subscribe to messages\n setTimeout(() => postUncaughtErrorMessage(error), 250);\n }\n });\n}\nif (typeof process !== \"undefined\" && typeof process.on === \"function\" && _implementation__WEBPACK_IMPORTED_MODULE_4__[\"default\"].isWorkerRuntime()) {\n process.on(\"uncaughtException\", (error) => {\n // Post with some delay, so the master had some time to subscribe to messages\n setTimeout(() => postUncaughtErrorMessage(error), 250);\n });\n process.on(\"unhandledRejection\", (error) => {\n if (error && typeof error.message === \"string\") {\n // Post with some delay, so the master had some time to subscribe to messages\n setTimeout(() => postUncaughtErrorMessage(error), 250);\n }\n });\n}\n\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../process/browser.js */ \"./node_modules/process/browser.js\")))\n\n//# sourceURL=webpack://GeoRaster/./node_modules/threads/dist-esm/worker/index.js?");
1346
1347/***/ }),
1348
1349/***/ "./node_modules/threads/node_modules/debug/src/browser.js":
1350/*!****************************************************************!*\
1351 !*** ./node_modules/threads/node_modules/debug/src/browser.js ***!
1352 \****************************************************************/
1353/*! no static exports found */
1354/***/ (function(module, exports, __webpack_require__) {
1355
1356eval("/* WEBPACK VAR INJECTION */(function(process) {/* eslint-env browser */\n\n/**\n * This is the web browser implementation of `debug()`.\n */\n\nexports.formatArgs = formatArgs;\nexports.save = save;\nexports.load = load;\nexports.useColors = useColors;\nexports.storage = localstorage();\nexports.destroy = (() => {\n\tlet warned = false;\n\n\treturn () => {\n\t\tif (!warned) {\n\t\t\twarned = true;\n\t\t\tconsole.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');\n\t\t}\n\t};\n})();\n\n/**\n * Colors.\n */\n\nexports.colors = [\n\t'#0000CC',\n\t'#0000FF',\n\t'#0033CC',\n\t'#0033FF',\n\t'#0066CC',\n\t'#0066FF',\n\t'#0099CC',\n\t'#0099FF',\n\t'#00CC00',\n\t'#00CC33',\n\t'#00CC66',\n\t'#00CC99',\n\t'#00CCCC',\n\t'#00CCFF',\n\t'#3300CC',\n\t'#3300FF',\n\t'#3333CC',\n\t'#3333FF',\n\t'#3366CC',\n\t'#3366FF',\n\t'#3399CC',\n\t'#3399FF',\n\t'#33CC00',\n\t'#33CC33',\n\t'#33CC66',\n\t'#33CC99',\n\t'#33CCCC',\n\t'#33CCFF',\n\t'#6600CC',\n\t'#6600FF',\n\t'#6633CC',\n\t'#6633FF',\n\t'#66CC00',\n\t'#66CC33',\n\t'#9900CC',\n\t'#9900FF',\n\t'#9933CC',\n\t'#9933FF',\n\t'#99CC00',\n\t'#99CC33',\n\t'#CC0000',\n\t'#CC0033',\n\t'#CC0066',\n\t'#CC0099',\n\t'#CC00CC',\n\t'#CC00FF',\n\t'#CC3300',\n\t'#CC3333',\n\t'#CC3366',\n\t'#CC3399',\n\t'#CC33CC',\n\t'#CC33FF',\n\t'#CC6600',\n\t'#CC6633',\n\t'#CC9900',\n\t'#CC9933',\n\t'#CCCC00',\n\t'#CCCC33',\n\t'#FF0000',\n\t'#FF0033',\n\t'#FF0066',\n\t'#FF0099',\n\t'#FF00CC',\n\t'#FF00FF',\n\t'#FF3300',\n\t'#FF3333',\n\t'#FF3366',\n\t'#FF3399',\n\t'#FF33CC',\n\t'#FF33FF',\n\t'#FF6600',\n\t'#FF6633',\n\t'#FF9900',\n\t'#FF9933',\n\t'#FFCC00',\n\t'#FFCC33'\n];\n\n/**\n * Currently only WebKit-based Web Inspectors, Firefox >= v31,\n * and the Firebug extension (any Firefox version) are known\n * to support \"%c\" CSS customizations.\n *\n * TODO: add a `localStorage` variable to explicitly enable/disable colors\n */\n\n// eslint-disable-next-line complexity\nfunction useColors() {\n\t// NB: In an Electron preload script, document will be defined but not fully\n\t// initialized. Since we know we're in Chrome, we'll just detect this case\n\t// explicitly\n\tif (typeof window !== 'undefined' && window.process && (window.process.type === 'renderer' || window.process.__nwjs)) {\n\t\treturn true;\n\t}\n\n\t// Internet Explorer and Edge do not support colors.\n\tif (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\\/(\\d+)/)) {\n\t\treturn false;\n\t}\n\n\t// Is webkit? http://stackoverflow.com/a/16459606/376773\n\t// document is undefined in react-native: https://github.com/facebook/react-native/pull/1632\n\treturn (typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) ||\n\t\t// Is firebug? http://stackoverflow.com/a/398120/376773\n\t\t(typeof window !== 'undefined' && window.console && (window.console.firebug || (window.console.exception && window.console.table))) ||\n\t\t// Is firefox >= v31?\n\t\t// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages\n\t\t(typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\\/(\\d+)/) && parseInt(RegExp.$1, 10) >= 31) ||\n\t\t// Double check webkit in userAgent just in case we are in a worker\n\t\t(typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\\/(\\d+)/));\n}\n\n/**\n * Colorize log arguments if enabled.\n *\n * @api public\n */\n\nfunction formatArgs(args) {\n\targs[0] = (this.useColors ? '%c' : '') +\n\t\tthis.namespace +\n\t\t(this.useColors ? ' %c' : ' ') +\n\t\targs[0] +\n\t\t(this.useColors ? '%c ' : ' ') +\n\t\t'+' + module.exports.humanize(this.diff);\n\n\tif (!this.useColors) {\n\t\treturn;\n\t}\n\n\tconst c = 'color: ' + this.color;\n\targs.splice(1, 0, c, 'color: inherit');\n\n\t// The final \"%c\" is somewhat tricky, because there could be other\n\t// arguments passed either before or after the %c, so we need to\n\t// figure out the correct index to insert the CSS into\n\tlet index = 0;\n\tlet lastC = 0;\n\targs[0].replace(/%[a-zA-Z%]/g, match => {\n\t\tif (match === '%%') {\n\t\t\treturn;\n\t\t}\n\t\tindex++;\n\t\tif (match === '%c') {\n\t\t\t// We only are interested in the *last* %c\n\t\t\t// (the user may have provided their own)\n\t\t\tlastC = index;\n\t\t}\n\t});\n\n\targs.splice(lastC, 0, c);\n}\n\n/**\n * Invokes `console.debug()` when available.\n * No-op when `console.debug` is not a \"function\".\n * If `console.debug` is not available, falls back\n * to `console.log`.\n *\n * @api public\n */\nexports.log = console.debug || console.log || (() => {});\n\n/**\n * Save `namespaces`.\n *\n * @param {String} namespaces\n * @api private\n */\nfunction save(namespaces) {\n\ttry {\n\t\tif (namespaces) {\n\t\t\texports.storage.setItem('debug', namespaces);\n\t\t} else {\n\t\t\texports.storage.removeItem('debug');\n\t\t}\n\t} catch (error) {\n\t\t// Swallow\n\t\t// XXX (@Qix-) should we be logging these?\n\t}\n}\n\n/**\n * Load `namespaces`.\n *\n * @return {String} returns the previously persisted debug modes\n * @api private\n */\nfunction load() {\n\tlet r;\n\ttry {\n\t\tr = exports.storage.getItem('debug');\n\t} catch (error) {\n\t\t// Swallow\n\t\t// XXX (@Qix-) should we be logging these?\n\t}\n\n\t// If debug isn't set in LS, and we're in Electron, try to load $DEBUG\n\tif (!r && typeof process !== 'undefined' && 'env' in process) {\n\t\tr = process.env.DEBUG;\n\t}\n\n\treturn r;\n}\n\n/**\n * Localstorage attempts to return the localstorage.\n *\n * This is necessary because safari throws\n * when a user disables cookies/localstorage\n * and you attempt to access it.\n *\n * @return {LocalStorage}\n * @api private\n */\n\nfunction localstorage() {\n\ttry {\n\t\t// TVMLKit (Apple TV JS Runtime) does not have a window object, just localStorage in the global context\n\t\t// The Browser also has localStorage in the global context.\n\t\treturn localStorage;\n\t} catch (error) {\n\t\t// Swallow\n\t\t// XXX (@Qix-) should we be logging these?\n\t}\n}\n\nmodule.exports = __webpack_require__(/*! ./common */ \"./node_modules/threads/node_modules/debug/src/common.js\")(exports);\n\nconst {formatters} = module.exports;\n\n/**\n * Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.\n */\n\nformatters.j = function (v) {\n\ttry {\n\t\treturn JSON.stringify(v);\n\t} catch (error) {\n\t\treturn '[UnexpectedJSONParseError]: ' + error.message;\n\t}\n};\n\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../process/browser.js */ \"./node_modules/process/browser.js\")))\n\n//# sourceURL=webpack://GeoRaster/./node_modules/threads/node_modules/debug/src/browser.js?");
1357
1358/***/ }),
1359
1360/***/ "./node_modules/threads/node_modules/debug/src/common.js":
1361/*!***************************************************************!*\
1362 !*** ./node_modules/threads/node_modules/debug/src/common.js ***!
1363 \***************************************************************/
1364/*! no static exports found */
1365/***/ (function(module, exports, __webpack_require__) {
1366
1367eval("\n/**\n * This is the common logic for both the Node.js and web browser\n * implementations of `debug()`.\n */\n\nfunction setup(env) {\n\tcreateDebug.debug = createDebug;\n\tcreateDebug.default = createDebug;\n\tcreateDebug.coerce = coerce;\n\tcreateDebug.disable = disable;\n\tcreateDebug.enable = enable;\n\tcreateDebug.enabled = enabled;\n\tcreateDebug.humanize = __webpack_require__(/*! ms */ \"./node_modules/threads/node_modules/ms/index.js\");\n\tcreateDebug.destroy = destroy;\n\n\tObject.keys(env).forEach(key => {\n\t\tcreateDebug[key] = env[key];\n\t});\n\n\t/**\n\t* The currently active debug mode names, and names to skip.\n\t*/\n\n\tcreateDebug.names = [];\n\tcreateDebug.skips = [];\n\n\t/**\n\t* Map of special \"%n\" handling functions, for the debug \"format\" argument.\n\t*\n\t* Valid key names are a single, lower or upper-case letter, i.e. \"n\" and \"N\".\n\t*/\n\tcreateDebug.formatters = {};\n\n\t/**\n\t* Selects a color for a debug namespace\n\t* @param {String} namespace The namespace string for the for the debug instance to be colored\n\t* @return {Number|String} An ANSI color code for the given namespace\n\t* @api private\n\t*/\n\tfunction selectColor(namespace) {\n\t\tlet hash = 0;\n\n\t\tfor (let i = 0; i < namespace.length; i++) {\n\t\t\thash = ((hash << 5) - hash) + namespace.charCodeAt(i);\n\t\t\thash |= 0; // Convert to 32bit integer\n\t\t}\n\n\t\treturn createDebug.colors[Math.abs(hash) % createDebug.colors.length];\n\t}\n\tcreateDebug.selectColor = selectColor;\n\n\t/**\n\t* Create a debugger with the given `namespace`.\n\t*\n\t* @param {String} namespace\n\t* @return {Function}\n\t* @api public\n\t*/\n\tfunction createDebug(namespace) {\n\t\tlet prevTime;\n\t\tlet enableOverride = null;\n\t\tlet namespacesCache;\n\t\tlet enabledCache;\n\n\t\tfunction debug(...args) {\n\t\t\t// Disabled?\n\t\t\tif (!debug.enabled) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tconst self = debug;\n\n\t\t\t// Set `diff` timestamp\n\t\t\tconst curr = Number(new Date());\n\t\t\tconst ms = curr - (prevTime || curr);\n\t\t\tself.diff = ms;\n\t\t\tself.prev = prevTime;\n\t\t\tself.curr = curr;\n\t\t\tprevTime = curr;\n\n\t\t\targs[0] = createDebug.coerce(args[0]);\n\n\t\t\tif (typeof args[0] !== 'string') {\n\t\t\t\t// Anything else let's inspect with %O\n\t\t\t\targs.unshift('%O');\n\t\t\t}\n\n\t\t\t// Apply any `formatters` transformations\n\t\t\tlet index = 0;\n\t\t\targs[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {\n\t\t\t\t// If we encounter an escaped % then don't increase the array index\n\t\t\t\tif (match === '%%') {\n\t\t\t\t\treturn '%';\n\t\t\t\t}\n\t\t\t\tindex++;\n\t\t\t\tconst formatter = createDebug.formatters[format];\n\t\t\t\tif (typeof formatter === 'function') {\n\t\t\t\t\tconst val = args[index];\n\t\t\t\t\tmatch = formatter.call(self, val);\n\n\t\t\t\t\t// Now we need to remove `args[index]` since it's inlined in the `format`\n\t\t\t\t\targs.splice(index, 1);\n\t\t\t\t\tindex--;\n\t\t\t\t}\n\t\t\t\treturn match;\n\t\t\t});\n\n\t\t\t// Apply env-specific formatting (colors, etc.)\n\t\t\tcreateDebug.formatArgs.call(self, args);\n\n\t\t\tconst logFn = self.log || createDebug.log;\n\t\t\tlogFn.apply(self, args);\n\t\t}\n\n\t\tdebug.namespace = namespace;\n\t\tdebug.useColors = createDebug.useColors();\n\t\tdebug.color = createDebug.selectColor(namespace);\n\t\tdebug.extend = extend;\n\t\tdebug.destroy = createDebug.destroy; // XXX Temporary. Will be removed in the next major release.\n\n\t\tObject.defineProperty(debug, 'enabled', {\n\t\t\tenumerable: true,\n\t\t\tconfigurable: false,\n\t\t\tget: () => {\n\t\t\t\tif (enableOverride !== null) {\n\t\t\t\t\treturn enableOverride;\n\t\t\t\t}\n\t\t\t\tif (namespacesCache !== createDebug.namespaces) {\n\t\t\t\t\tnamespacesCache = createDebug.namespaces;\n\t\t\t\t\tenabledCache = createDebug.enabled(namespace);\n\t\t\t\t}\n\n\t\t\t\treturn enabledCache;\n\t\t\t},\n\t\t\tset: v => {\n\t\t\t\tenableOverride = v;\n\t\t\t}\n\t\t});\n\n\t\t// Env-specific initialization logic for debug instances\n\t\tif (typeof createDebug.init === 'function') {\n\t\t\tcreateDebug.init(debug);\n\t\t}\n\n\t\treturn debug;\n\t}\n\n\tfunction extend(namespace, delimiter) {\n\t\tconst newDebug = createDebug(this.namespace + (typeof delimiter === 'undefined' ? ':' : delimiter) + namespace);\n\t\tnewDebug.log = this.log;\n\t\treturn newDebug;\n\t}\n\n\t/**\n\t* Enables a debug mode by namespaces. This can include modes\n\t* separated by a colon and wildcards.\n\t*\n\t* @param {String} namespaces\n\t* @api public\n\t*/\n\tfunction enable(namespaces) {\n\t\tcreateDebug.save(namespaces);\n\t\tcreateDebug.namespaces = namespaces;\n\n\t\tcreateDebug.names = [];\n\t\tcreateDebug.skips = [];\n\n\t\tlet i;\n\t\tconst split = (typeof namespaces === 'string' ? namespaces : '').split(/[\\s,]+/);\n\t\tconst len = split.length;\n\n\t\tfor (i = 0; i < len; i++) {\n\t\t\tif (!split[i]) {\n\t\t\t\t// ignore empty strings\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tnamespaces = split[i].replace(/\\*/g, '.*?');\n\n\t\t\tif (namespaces[0] === '-') {\n\t\t\t\tcreateDebug.skips.push(new RegExp('^' + namespaces.substr(1) + '$'));\n\t\t\t} else {\n\t\t\t\tcreateDebug.names.push(new RegExp('^' + namespaces + '$'));\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t* Disable debug output.\n\t*\n\t* @return {String} namespaces\n\t* @api public\n\t*/\n\tfunction disable() {\n\t\tconst namespaces = [\n\t\t\t...createDebug.names.map(toNamespace),\n\t\t\t...createDebug.skips.map(toNamespace).map(namespace => '-' + namespace)\n\t\t].join(',');\n\t\tcreateDebug.enable('');\n\t\treturn namespaces;\n\t}\n\n\t/**\n\t* Returns true if the given mode name is enabled, false otherwise.\n\t*\n\t* @param {String} name\n\t* @return {Boolean}\n\t* @api public\n\t*/\n\tfunction enabled(name) {\n\t\tif (name[name.length - 1] === '*') {\n\t\t\treturn true;\n\t\t}\n\n\t\tlet i;\n\t\tlet len;\n\n\t\tfor (i = 0, len = createDebug.skips.length; i < len; i++) {\n\t\t\tif (createDebug.skips[i].test(name)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\tfor (i = 0, len = createDebug.names.length; i < len; i++) {\n\t\t\tif (createDebug.names[i].test(name)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}\n\n\t/**\n\t* Convert regexp to namespace\n\t*\n\t* @param {RegExp} regxep\n\t* @return {String} namespace\n\t* @api private\n\t*/\n\tfunction toNamespace(regexp) {\n\t\treturn regexp.toString()\n\t\t\t.substring(2, regexp.toString().length - 2)\n\t\t\t.replace(/\\.\\*\\?$/, '*');\n\t}\n\n\t/**\n\t* Coerce `val`.\n\t*\n\t* @param {Mixed} val\n\t* @return {Mixed}\n\t* @api private\n\t*/\n\tfunction coerce(val) {\n\t\tif (val instanceof Error) {\n\t\t\treturn val.stack || val.message;\n\t\t}\n\t\treturn val;\n\t}\n\n\t/**\n\t* XXX DO NOT USE. This is a temporary stub function.\n\t* XXX It WILL be removed in the next major release.\n\t*/\n\tfunction destroy() {\n\t\tconsole.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');\n\t}\n\n\tcreateDebug.enable(createDebug.load());\n\n\treturn createDebug;\n}\n\nmodule.exports = setup;\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/threads/node_modules/debug/src/common.js?");
1368
1369/***/ }),
1370
1371/***/ "./node_modules/threads/node_modules/ms/index.js":
1372/*!*******************************************************!*\
1373 !*** ./node_modules/threads/node_modules/ms/index.js ***!
1374 \*******************************************************/
1375/*! no static exports found */
1376/***/ (function(module, exports) {
1377
1378eval("/**\n * Helpers.\n */\n\nvar s = 1000;\nvar m = s * 60;\nvar h = m * 60;\nvar d = h * 24;\nvar w = d * 7;\nvar y = d * 365.25;\n\n/**\n * Parse or format the given `val`.\n *\n * Options:\n *\n * - `long` verbose formatting [false]\n *\n * @param {String|Number} val\n * @param {Object} [options]\n * @throws {Error} throw an error if val is not a non-empty string or a number\n * @return {String|Number}\n * @api public\n */\n\nmodule.exports = function(val, options) {\n options = options || {};\n var type = typeof val;\n if (type === 'string' && val.length > 0) {\n return parse(val);\n } else if (type === 'number' && isFinite(val)) {\n return options.long ? fmtLong(val) : fmtShort(val);\n }\n throw new Error(\n 'val is not a non-empty string or a valid number. val=' +\n JSON.stringify(val)\n );\n};\n\n/**\n * Parse the given `str` and return milliseconds.\n *\n * @param {String} str\n * @return {Number}\n * @api private\n */\n\nfunction parse(str) {\n str = String(str);\n if (str.length > 100) {\n return;\n }\n var match = /^(-?(?:\\d+)?\\.?\\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(\n str\n );\n if (!match) {\n return;\n }\n var n = parseFloat(match[1]);\n var type = (match[2] || 'ms').toLowerCase();\n switch (type) {\n case 'years':\n case 'year':\n case 'yrs':\n case 'yr':\n case 'y':\n return n * y;\n case 'weeks':\n case 'week':\n case 'w':\n return n * w;\n case 'days':\n case 'day':\n case 'd':\n return n * d;\n case 'hours':\n case 'hour':\n case 'hrs':\n case 'hr':\n case 'h':\n return n * h;\n case 'minutes':\n case 'minute':\n case 'mins':\n case 'min':\n case 'm':\n return n * m;\n case 'seconds':\n case 'second':\n case 'secs':\n case 'sec':\n case 's':\n return n * s;\n case 'milliseconds':\n case 'millisecond':\n case 'msecs':\n case 'msec':\n case 'ms':\n return n;\n default:\n return undefined;\n }\n}\n\n/**\n * Short format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtShort(ms) {\n var msAbs = Math.abs(ms);\n if (msAbs >= d) {\n return Math.round(ms / d) + 'd';\n }\n if (msAbs >= h) {\n return Math.round(ms / h) + 'h';\n }\n if (msAbs >= m) {\n return Math.round(ms / m) + 'm';\n }\n if (msAbs >= s) {\n return Math.round(ms / s) + 's';\n }\n return ms + 'ms';\n}\n\n/**\n * Long format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtLong(ms) {\n var msAbs = Math.abs(ms);\n if (msAbs >= d) {\n return plural(ms, msAbs, d, 'day');\n }\n if (msAbs >= h) {\n return plural(ms, msAbs, h, 'hour');\n }\n if (msAbs >= m) {\n return plural(ms, msAbs, m, 'minute');\n }\n if (msAbs >= s) {\n return plural(ms, msAbs, s, 'second');\n }\n return ms + ' ms';\n}\n\n/**\n * Pluralization helper.\n */\n\nfunction plural(ms, msAbs, n, name) {\n var isPlural = msAbs >= n * 1.5;\n return Math.round(ms / n) + ' ' + name + (isPlural ? 's' : '');\n}\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/threads/node_modules/ms/index.js?");
1379
1380/***/ }),
1381
1382/***/ "./node_modules/to-arraybuffer/index.js":
1383/*!**********************************************!*\
1384 !*** ./node_modules/to-arraybuffer/index.js ***!
1385 \**********************************************/
1386/*! no static exports found */
1387/***/ (function(module, exports, __webpack_require__) {
1388
1389eval("var Buffer = __webpack_require__(/*! buffer */ \"./node_modules/node-libs-browser/node_modules/buffer/index.js\").Buffer\n\nmodule.exports = function (buf) {\n\t// If the buffer is backed by a Uint8Array, a faster version will work\n\tif (buf instanceof Uint8Array) {\n\t\t// If the buffer isn't a subarray, return the underlying ArrayBuffer\n\t\tif (buf.byteOffset === 0 && buf.byteLength === buf.buffer.byteLength) {\n\t\t\treturn buf.buffer\n\t\t} else if (typeof buf.buffer.slice === 'function') {\n\t\t\t// Otherwise we need to get a proper copy\n\t\t\treturn buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.byteLength)\n\t\t}\n\t}\n\n\tif (Buffer.isBuffer(buf)) {\n\t\t// This is the slow version that will work with any Buffer\n\t\t// implementation (even in old browsers)\n\t\tvar arrayCopy = new Uint8Array(buf.length)\n\t\tvar len = buf.length\n\t\tfor (var i = 0; i < len; i++) {\n\t\t\tarrayCopy[i] = buf[i]\n\t\t}\n\t\treturn arrayCopy.buffer\n\t} else {\n\t\tthrow new Error('Argument must be a Buffer')\n\t}\n}\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/to-arraybuffer/index.js?");
1390
1391/***/ }),
1392
1393/***/ "./node_modules/txml/node_modules/through2/through2.js":
1394/*!*************************************************************!*\
1395 !*** ./node_modules/txml/node_modules/through2/through2.js ***!
1396 \*************************************************************/
1397/*! no static exports found */
1398/***/ (function(module, exports, __webpack_require__) {
1399
1400eval("/* WEBPACK VAR INJECTION */(function(process) {var Transform = __webpack_require__(/*! readable-stream */ \"./node_modules/readable-stream/readable-browser.js\").Transform\n , inherits = __webpack_require__(/*! inherits */ \"./node_modules/inherits/inherits_browser.js\")\n\nfunction DestroyableTransform(opts) {\n Transform.call(this, opts)\n this._destroyed = false\n}\n\ninherits(DestroyableTransform, Transform)\n\nDestroyableTransform.prototype.destroy = function(err) {\n if (this._destroyed) return\n this._destroyed = true\n \n var self = this\n process.nextTick(function() {\n if (err)\n self.emit('error', err)\n self.emit('close')\n })\n}\n\n// a noop _transform function\nfunction noop (chunk, enc, callback) {\n callback(null, chunk)\n}\n\n\n// create a new export function, used by both the main export and\n// the .ctor export, contains common logic for dealing with arguments\nfunction through2 (construct) {\n return function (options, transform, flush) {\n if (typeof options == 'function') {\n flush = transform\n transform = options\n options = {}\n }\n\n if (typeof transform != 'function')\n transform = noop\n\n if (typeof flush != 'function')\n flush = null\n\n return construct(options, transform, flush)\n }\n}\n\n\n// main export, just make me a transform stream!\nmodule.exports = through2(function (options, transform, flush) {\n var t2 = new DestroyableTransform(options)\n\n t2._transform = transform\n\n if (flush)\n t2._flush = flush\n\n return t2\n})\n\n\n// make me a reusable prototype that I can `new`, or implicitly `new`\n// with a constructor call\nmodule.exports.ctor = through2(function (options, transform, flush) {\n function Through2 (override) {\n if (!(this instanceof Through2))\n return new Through2(override)\n\n this.options = Object.assign({}, options, override)\n\n DestroyableTransform.call(this, this.options)\n }\n\n inherits(Through2, DestroyableTransform)\n\n Through2.prototype._transform = transform\n\n if (flush)\n Through2.prototype._flush = flush\n\n return Through2\n})\n\n\nmodule.exports.obj = through2(function (options, transform, flush) {\n var t2 = new DestroyableTransform(Object.assign({ objectMode: true, highWaterMark: 16 }, options))\n\n t2._transform = transform\n\n if (flush)\n t2._flush = flush\n\n return t2\n})\n\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../process/browser.js */ \"./node_modules/process/browser.js\")))\n\n//# sourceURL=webpack://GeoRaster/./node_modules/txml/node_modules/through2/through2.js?");
1401
1402/***/ }),
1403
1404/***/ "./node_modules/txml/tXml.js":
1405/*!***********************************!*\
1406 !*** ./node_modules/txml/tXml.js ***!
1407 \***********************************/
1408/*! no static exports found */
1409/***/ (function(module, exports, __webpack_require__) {
1410
1411eval("// ==ClosureCompiler==\n// @output_file_name default.js\n// @compilation_level SIMPLE_OPTIMIZATIONS\n// ==/ClosureCompiler==\n\n/**\n * @author: Tobias Nickel\n * @created: 06.04.2015\n * I needed a small xmlparser chat can be used in a worker.\n */\n\n/**\n * @typedef tNode \n * @property {string} tagName \n * @property {object} [attributes] \n * @property {tNode|string|number[]} children \n **/\n\n/**\n * parseXML / html into a DOM Object. with no validation and some failur tolerance\n * @param {string} S your XML to parse\n * @param options {object} all other options:\n * searchId {string} the id of a single element, that should be returned. using this will increase the speed rapidly\n * filter {function} filter method, as you know it from Array.filter. but is goes throw the DOM.\n\n * @return {tNode[]}\n */\nfunction tXml(S, options) {\n \"use strict\";\n options = options || {};\n\n var pos = options.pos || 0;\n\n var openBracket = \"<\";\n var openBracketCC = \"<\".charCodeAt(0);\n var closeBracket = \">\";\n var closeBracketCC = \">\".charCodeAt(0);\n var minus = \"-\";\n var minusCC = \"-\".charCodeAt(0);\n var slash = \"/\";\n var slashCC = \"/\".charCodeAt(0);\n var exclamation = '!';\n var exclamationCC = '!'.charCodeAt(0);\n var singleQuote = \"'\";\n var singleQuoteCC = \"'\".charCodeAt(0);\n var doubleQuote = '\"';\n var doubleQuoteCC = '\"'.charCodeAt(0);\n\n /**\n * parsing a list of entries\n */\n function parseChildren() {\n var children = [];\n while (S[pos]) {\n if (S.charCodeAt(pos) == openBracketCC) {\n if (S.charCodeAt(pos + 1) === slashCC) {\n pos = S.indexOf(closeBracket, pos);\n if (pos + 1) pos += 1\n return children;\n } else if (S.charCodeAt(pos + 1) === exclamationCC) {\n if (S.charCodeAt(pos + 2) == minusCC) {\n //comment support\n while (pos !== -1 && !(S.charCodeAt(pos) === closeBracketCC && S.charCodeAt(pos - 1) == minusCC && S.charCodeAt(pos - 2) == minusCC && pos != -1)) {\n pos = S.indexOf(closeBracket, pos + 1);\n }\n if (pos === -1) {\n pos = S.length\n }\n } else {\n // doctypesupport\n pos += 2;\n while (S.charCodeAt(pos) !== closeBracketCC && S[pos]) {\n pos++;\n }\n }\n pos++;\n continue;\n }\n var node = parseNode();\n children.push(node);\n } else {\n var text = parseText()\n if (text.trim().length > 0)\n children.push(text);\n pos++;\n }\n }\n return children;\n }\n\n /**\n * returns the text outside of texts until the first '<'\n */\n function parseText() {\n var start = pos;\n pos = S.indexOf(openBracket, pos) - 1;\n if (pos === -2)\n pos = S.length;\n return S.slice(start, pos + 1);\n }\n /**\n * returns text until the first nonAlphebetic letter\n */\n var nameSpacer = '\\n\\t>/= ';\n\n function parseName() {\n var start = pos;\n while (nameSpacer.indexOf(S[pos]) === -1 && S[pos]) {\n pos++;\n }\n return S.slice(start, pos);\n }\n /**\n * is parsing a node, including tagName, Attributes and its children,\n * to parse children it uses the parseChildren again, that makes the parsing recursive\n */\n var NoChildNodes = options.noChildNodes || ['img', 'br', 'input', 'meta', 'link'];\n\n function parseNode() {\n pos++;\n const tagName = parseName();\n const attributes = {};\n let children = [];\n\n // parsing attributes\n while (S.charCodeAt(pos) !== closeBracketCC && S[pos]) {\n var c = S.charCodeAt(pos);\n if ((c > 64 && c < 91) || (c > 96 && c < 123)) {\n //if('abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'.indexOf(S[pos])!==-1 ){\n var name = parseName();\n // search beginning of the string\n var code = S.charCodeAt(pos);\n while (code && code !== singleQuoteCC && code !== doubleQuoteCC && !((code > 64 && code < 91) || (code > 96 && code < 123)) && code !== closeBracketCC) {\n pos++;\n code = S.charCodeAt(pos);\n }\n if (code === singleQuoteCC || code === doubleQuoteCC) {\n var value = parseString();\n if (pos === -1) {\n return {\n tagName,\n attributes,\n children,\n };\n }\n } else {\n value = null;\n pos--;\n }\n attributes[name] = value;\n }\n pos++;\n }\n // optional parsing of children\n if (S.charCodeAt(pos - 1) !== slashCC) {\n if (tagName == \"script\") {\n var start = pos + 1;\n pos = S.indexOf('</script>', pos);\n children = [S.slice(start, pos - 1)];\n pos += 9;\n } else if (tagName == \"style\") {\n var start = pos + 1;\n pos = S.indexOf('</style>', pos);\n children = [S.slice(start, pos - 1)];\n pos += 8;\n } else if (NoChildNodes.indexOf(tagName) == -1) {\n pos++;\n children = parseChildren(name);\n }\n } else {\n pos++;\n }\n return {\n tagName,\n attributes,\n children,\n };\n }\n\n /**\n * is parsing a string, that starts with a char and with the same usually ' or \"\n */\n\n function parseString() {\n var startChar = S[pos];\n var startpos = ++pos;\n pos = S.indexOf(startChar, startpos)\n return S.slice(startpos, pos);\n }\n\n /**\n *\n */\n function findElements() {\n var r = new RegExp('\\\\s' + options.attrName + '\\\\s*=[\\'\"]' + options.attrValue + '[\\'\"]').exec(S)\n if (r) {\n return r.index;\n } else {\n return -1;\n }\n }\n\n var out = null;\n if (options.attrValue !== undefined) {\n options.attrName = options.attrName || 'id';\n var out = [];\n\n while ((pos = findElements()) !== -1) {\n pos = S.lastIndexOf('<', pos);\n if (pos !== -1) {\n out.push(parseNode());\n }\n S = S.substr(pos);\n pos = 0;\n }\n } else if (options.parseNode) {\n out = parseNode()\n } else {\n out = parseChildren();\n }\n\n if (options.filter) {\n out = tXml.filter(out, options.filter);\n }\n\n if (options.setPos) {\n out.pos = pos;\n }\n\n return out;\n}\n\n/**\n * transform the DomObject to an object that is like the object of PHPs simplexmp_load_*() methods.\n * this format helps you to write that is more likely to keep your programm working, even if there a small changes in the XML schema.\n * be aware, that it is not possible to reproduce the original xml from a simplified version, because the order of elements is not saved.\n * therefore your programm will be more flexible and easyer to read.\n *\n * @param {tNode[]} children the childrenList\n */\ntXml.simplify = function simplify(children) {\n var out = {};\n if (!children.length) {\n return '';\n }\n\n if (children.length === 1 && typeof children[0] == 'string') {\n return children[0];\n }\n // map each object\n children.forEach(function(child) {\n if (typeof child !== 'object') {\n return;\n }\n if (!out[child.tagName])\n out[child.tagName] = [];\n var kids = tXml.simplify(child.children||[]);\n out[child.tagName].push(kids);\n if (child.attributes) {\n kids._attributes = child.attributes;\n }\n });\n\n for (var i in out) {\n if (out[i].length == 1) {\n out[i] = out[i][0];\n }\n }\n\n return out;\n};\n\n/**\n * behaves the same way as Array.filter, if the filter method return true, the element is in the resultList\n * @params children{Array} the children of a node\n * @param f{function} the filter method\n */\ntXml.filter = function(children, f) {\n var out = [];\n children.forEach(function(child) {\n if (typeof(child) === 'object' && f(child)) out.push(child);\n if (child.children) {\n var kids = tXml.filter(child.children, f);\n out = out.concat(kids);\n }\n });\n return out;\n};\n\n/**\n * stringify a previously parsed string object.\n * this is useful,\n * 1. to remove whitespaces\n * 2. to recreate xml data, with some changed data.\n * @param {tNode} O the object to Stringify\n */\ntXml.stringify = function TOMObjToXML(O) {\n var out = '';\n\n function writeChildren(O) {\n if (O)\n for (var i = 0; i < O.length; i++) {\n if (typeof O[i] == 'string') {\n out += O[i].trim();\n } else {\n writeNode(O[i]);\n }\n }\n }\n\n function writeNode(N) {\n out += \"<\" + N.tagName;\n for (var i in N.attributes) {\n if (N.attributes[i] === null) {\n out += ' ' + i;\n } else if (N.attributes[i].indexOf('\"') === -1) {\n out += ' ' + i + '=\"' + N.attributes[i].trim() + '\"';\n } else {\n out += ' ' + i + \"='\" + N.attributes[i].trim() + \"'\";\n }\n }\n out += '>';\n writeChildren(N.children);\n out += '</' + N.tagName + '>';\n }\n writeChildren(O);\n\n return out;\n};\n\n\n/**\n * use this method to read the textcontent, of some node.\n * It is great if you have mixed content like:\n * this text has some <b>big</b> text and a <a href=''>link</a>\n * @return {string}\n */\ntXml.toContentString = function(tDom) {\n if (Array.isArray(tDom)) {\n var out = '';\n tDom.forEach(function(e) {\n out += ' ' + tXml.toContentString(e);\n out = out.trim();\n });\n return out;\n } else if (typeof tDom === 'object') {\n return tXml.toContentString(tDom.children)\n } else {\n return ' ' + tDom;\n }\n};\n\ntXml.getElementById = function(S, id, simplified) {\n var out = tXml(S, {\n attrValue: id\n });\n return simplified ? tXml.simplify(out) : out[0];\n};\n/**\n * A fast parsing method, that not realy finds by classname,\n * more: the class attribute contains XXX\n * @param\n */\ntXml.getElementsByClassName = function(S, classname, simplified) {\n const out = tXml(S, {\n attrName: 'class',\n attrValue: '[a-zA-Z0-9\\-\\s ]*' + classname + '[a-zA-Z0-9\\-\\s ]*'\n });\n return simplified ? tXml.simplify(out) : out;\n};\n\ntXml.parseStream = function(stream, offset) {\n if (typeof offset === 'string') {\n offset = offset.length + 2;\n }\n if (typeof stream === 'string') {\n var fs = __webpack_require__(/*! fs */ \"./node_modules/node-libs-browser/mock/empty.js\");\n stream = fs.createReadStream(stream, { start: offset });\n offset = 0;\n }\n\n var position = offset;\n var data = '';\n stream.on('data', function(chunk) {\n data += chunk;\n var lastPos = 0;\n do {\n position = data.indexOf('<', position) + 1;\n if(!position) {\n position = lastPos;\n return;\n }\n if (data[position + 1] === '/') {\n position = position + 1;\n lastPos = pos;\n continue;\n }\n var res = tXml(data, { pos: position-1, parseNode: true, setPos: true });\n position = res.pos;\n if (position > (data.length - 1) || position < lastPos) {\n data = data.slice(lastPos);\n position = 0;\n lastPos = 0;\n return;\n } else {\n stream.emit('xml', res);\n lastPos = position;\n }\n } while (1);\n });\n stream.on('end', function() {\n console.log('end')\n });\n return stream;\n}\n\ntXml.transformStream = function (offset) {\n // require through here, so it will not get added to webpack/browserify\n const through2 = __webpack_require__(/*! through2 */ \"./node_modules/txml/node_modules/through2/through2.js\");\n if (typeof offset === 'string') {\n offset = offset.length + 2;\n }\n\n var position = offset || 0;\n var data = '';\n const stream = through2({ readableObjectMode: true }, function (chunk, enc, callback) {\n data += chunk;\n var lastPos = 0;\n do {\n position = data.indexOf('<', position) + 1;\n if (!position) {\n position = lastPos;\n return callback();;\n }\n if (data[position + 1] === '/') {\n position = position + 1;\n lastPos = pos;\n continue;\n }\n var res = tXml(data, { pos: position - 1, parseNode: true, setPos: true });\n position = res.pos;\n if (position > (data.length - 1) || position < lastPos) {\n data = data.slice(lastPos);\n position = 0;\n lastPos = 0;\n return callback();;\n } else {\n this.push(res);\n lastPos = position;\n }\n } while (1);\n callback();\n });\n\n return stream;\n}\n\nif (true) {\n module.exports = tXml;\n tXml.xml = tXml;\n}\n//console.clear();\n//console.log('here:',tXml.getElementById('<some><xml id=\"test\">dada</xml><that id=\"test\">value</that></some>','test'));\n//console.log('here:',tXml.getElementsByClassName('<some><xml id=\"test\" class=\"sdf test jsalf\">dada</xml><that id=\"test\">value</that></some>','test'));\n\n/*\nconsole.clear();\ntXml(d,'content');\n //some testCode\nvar s = document.body.innerHTML.toLowerCase();\nvar start = new Date().getTime();\nvar o = tXml(s,'content');\nvar end = new Date().getTime();\n//console.log(JSON.stringify(o,undefined,'\\t'));\nconsole.log(\"MILLISECONDS\",end-start);\nvar nodeCount=document.querySelectorAll('*').length;\nconsole.log('node count',nodeCount);\nconsole.log(\"speed:\",(1000/(end-start))*nodeCount,'Nodes / second')\n//console.log(JSON.stringify(tXml('<html><head><title>testPage</title></head><body><h1>TestPage</h1><p>this is a <b>test</b>page</p></body></html>'),undefined,'\\t'));\nvar p = new DOMParser();\nvar s2='<body>'+s+'</body>'\nvar start2= new Date().getTime();\nvar o2 = p.parseFromString(s2,'text/html').querySelector('#content')\nvar end2=new Date().getTime();\nconsole.log(\"MILLISECONDS\",end2-start2);\n// */\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/txml/tXml.js?");
1412
1413/***/ }),
1414
1415/***/ "./node_modules/url/url.js":
1416/*!*********************************!*\
1417 !*** ./node_modules/url/url.js ***!
1418 \*********************************/
1419/*! no static exports found */
1420/***/ (function(module, exports, __webpack_require__) {
1421
1422"use strict";
1423eval("// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n\n\nvar punycode = __webpack_require__(/*! punycode */ \"./node_modules/punycode/punycode.js\");\nvar util = __webpack_require__(/*! ./util */ \"./node_modules/url/util.js\");\n\nexports.parse = urlParse;\nexports.resolve = urlResolve;\nexports.resolveObject = urlResolveObject;\nexports.format = urlFormat;\n\nexports.Url = Url;\n\nfunction Url() {\n this.protocol = null;\n this.slashes = null;\n this.auth = null;\n this.host = null;\n this.port = null;\n this.hostname = null;\n this.hash = null;\n this.search = null;\n this.query = null;\n this.pathname = null;\n this.path = null;\n this.href = null;\n}\n\n// Reference: RFC 3986, RFC 1808, RFC 2396\n\n// define these here so at least they only have to be\n// compiled once on the first module load.\nvar protocolPattern = /^([a-z0-9.+-]+:)/i,\n portPattern = /:[0-9]*$/,\n\n // Special case for a simple path URL\n simplePathPattern = /^(\\/\\/?(?!\\/)[^\\?\\s]*)(\\?[^\\s]*)?$/,\n\n // RFC 2396: characters reserved for delimiting URLs.\n // We actually just auto-escape these.\n delims = ['<', '>', '\"', '`', ' ', '\\r', '\\n', '\\t'],\n\n // RFC 2396: characters not allowed for various reasons.\n unwise = ['{', '}', '|', '\\\\', '^', '`'].concat(delims),\n\n // Allowed by RFCs, but cause of XSS attacks. Always escape these.\n autoEscape = ['\\''].concat(unwise),\n // Characters that are never ever allowed in a hostname.\n // Note that any invalid chars are also handled, but these\n // are the ones that are *expected* to be seen, so we fast-path\n // them.\n nonHostChars = ['%', '/', '?', ';', '#'].concat(autoEscape),\n hostEndingChars = ['/', '?', '#'],\n hostnameMaxLen = 255,\n hostnamePartPattern = /^[+a-z0-9A-Z_-]{0,63}$/,\n hostnamePartStart = /^([+a-z0-9A-Z_-]{0,63})(.*)$/,\n // protocols that can allow \"unsafe\" and \"unwise\" chars.\n unsafeProtocol = {\n 'javascript': true,\n 'javascript:': true\n },\n // protocols that never have a hostname.\n hostlessProtocol = {\n 'javascript': true,\n 'javascript:': true\n },\n // protocols that always contain a // bit.\n slashedProtocol = {\n 'http': true,\n 'https': true,\n 'ftp': true,\n 'gopher': true,\n 'file': true,\n 'http:': true,\n 'https:': true,\n 'ftp:': true,\n 'gopher:': true,\n 'file:': true\n },\n querystring = __webpack_require__(/*! querystring */ \"./node_modules/querystring-es3/index.js\");\n\nfunction urlParse(url, parseQueryString, slashesDenoteHost) {\n if (url && util.isObject(url) && url instanceof Url) return url;\n\n var u = new Url;\n u.parse(url, parseQueryString, slashesDenoteHost);\n return u;\n}\n\nUrl.prototype.parse = function(url, parseQueryString, slashesDenoteHost) {\n if (!util.isString(url)) {\n throw new TypeError(\"Parameter 'url' must be a string, not \" + typeof url);\n }\n\n // Copy chrome, IE, opera backslash-handling behavior.\n // Back slashes before the query string get converted to forward slashes\n // See: https://code.google.com/p/chromium/issues/detail?id=25916\n var queryIndex = url.indexOf('?'),\n splitter =\n (queryIndex !== -1 && queryIndex < url.indexOf('#')) ? '?' : '#',\n uSplit = url.split(splitter),\n slashRegex = /\\\\/g;\n uSplit[0] = uSplit[0].replace(slashRegex, '/');\n url = uSplit.join(splitter);\n\n var rest = url;\n\n // trim before proceeding.\n // This is to support parse stuff like \" http://foo.com \\n\"\n rest = rest.trim();\n\n if (!slashesDenoteHost && url.split('#').length === 1) {\n // Try fast path regexp\n var simplePath = simplePathPattern.exec(rest);\n if (simplePath) {\n this.path = rest;\n this.href = rest;\n this.pathname = simplePath[1];\n if (simplePath[2]) {\n this.search = simplePath[2];\n if (parseQueryString) {\n this.query = querystring.parse(this.search.substr(1));\n } else {\n this.query = this.search.substr(1);\n }\n } else if (parseQueryString) {\n this.search = '';\n this.query = {};\n }\n return this;\n }\n }\n\n var proto = protocolPattern.exec(rest);\n if (proto) {\n proto = proto[0];\n var lowerProto = proto.toLowerCase();\n this.protocol = lowerProto;\n rest = rest.substr(proto.length);\n }\n\n // figure out if it's got a host\n // user@server is *always* interpreted as a hostname, and url\n // resolution will treat //foo/bar as host=foo,path=bar because that's\n // how the browser resolves relative URLs.\n if (slashesDenoteHost || proto || rest.match(/^\\/\\/[^@\\/]+@[^@\\/]+/)) {\n var slashes = rest.substr(0, 2) === '//';\n if (slashes && !(proto && hostlessProtocol[proto])) {\n rest = rest.substr(2);\n this.slashes = true;\n }\n }\n\n if (!hostlessProtocol[proto] &&\n (slashes || (proto && !slashedProtocol[proto]))) {\n\n // there's a hostname.\n // the first instance of /, ?, ;, or # ends the host.\n //\n // If there is an @ in the hostname, then non-host chars *are* allowed\n // to the left of the last @ sign, unless some host-ending character\n // comes *before* the @-sign.\n // URLs are obnoxious.\n //\n // ex:\n // http://a@b@c/ => user:a@b host:c\n // http://a@b?@c => user:a host:c path:/?@c\n\n // v0.12 TODO(isaacs): This is not quite how Chrome does things.\n // Review our test case against browsers more comprehensively.\n\n // find the first instance of any hostEndingChars\n var hostEnd = -1;\n for (var i = 0; i < hostEndingChars.length; i++) {\n var hec = rest.indexOf(hostEndingChars[i]);\n if (hec !== -1 && (hostEnd === -1 || hec < hostEnd))\n hostEnd = hec;\n }\n\n // at this point, either we have an explicit point where the\n // auth portion cannot go past, or the last @ char is the decider.\n var auth, atSign;\n if (hostEnd === -1) {\n // atSign can be anywhere.\n atSign = rest.lastIndexOf('@');\n } else {\n // atSign must be in auth portion.\n // http://a@b/c@d => host:b auth:a path:/c@d\n atSign = rest.lastIndexOf('@', hostEnd);\n }\n\n // Now we have a portion which is definitely the auth.\n // Pull that off.\n if (atSign !== -1) {\n auth = rest.slice(0, atSign);\n rest = rest.slice(atSign + 1);\n this.auth = decodeURIComponent(auth);\n }\n\n // the host is the remaining to the left of the first non-host char\n hostEnd = -1;\n for (var i = 0; i < nonHostChars.length; i++) {\n var hec = rest.indexOf(nonHostChars[i]);\n if (hec !== -1 && (hostEnd === -1 || hec < hostEnd))\n hostEnd = hec;\n }\n // if we still have not hit it, then the entire thing is a host.\n if (hostEnd === -1)\n hostEnd = rest.length;\n\n this.host = rest.slice(0, hostEnd);\n rest = rest.slice(hostEnd);\n\n // pull out port.\n this.parseHost();\n\n // we've indicated that there is a hostname,\n // so even if it's empty, it has to be present.\n this.hostname = this.hostname || '';\n\n // if hostname begins with [ and ends with ]\n // assume that it's an IPv6 address.\n var ipv6Hostname = this.hostname[0] === '[' &&\n this.hostname[this.hostname.length - 1] === ']';\n\n // validate a little.\n if (!ipv6Hostname) {\n var hostparts = this.hostname.split(/\\./);\n for (var i = 0, l = hostparts.length; i < l; i++) {\n var part = hostparts[i];\n if (!part) continue;\n if (!part.match(hostnamePartPattern)) {\n var newpart = '';\n for (var j = 0, k = part.length; j < k; j++) {\n if (part.charCodeAt(j) > 127) {\n // we replace non-ASCII char with a temporary placeholder\n // we need this to make sure size of hostname is not\n // broken by replacing non-ASCII by nothing\n newpart += 'x';\n } else {\n newpart += part[j];\n }\n }\n // we test again with ASCII char only\n if (!newpart.match(hostnamePartPattern)) {\n var validParts = hostparts.slice(0, i);\n var notHost = hostparts.slice(i + 1);\n var bit = part.match(hostnamePartStart);\n if (bit) {\n validParts.push(bit[1]);\n notHost.unshift(bit[2]);\n }\n if (notHost.length) {\n rest = '/' + notHost.join('.') + rest;\n }\n this.hostname = validParts.join('.');\n break;\n }\n }\n }\n }\n\n if (this.hostname.length > hostnameMaxLen) {\n this.hostname = '';\n } else {\n // hostnames are always lower case.\n this.hostname = this.hostname.toLowerCase();\n }\n\n if (!ipv6Hostname) {\n // IDNA Support: Returns a punycoded representation of \"domain\".\n // It only converts parts of the domain name that\n // have non-ASCII characters, i.e. it doesn't matter if\n // you call it with a domain that already is ASCII-only.\n this.hostname = punycode.toASCII(this.hostname);\n }\n\n var p = this.port ? ':' + this.port : '';\n var h = this.hostname || '';\n this.host = h + p;\n this.href += this.host;\n\n // strip [ and ] from the hostname\n // the host field still retains them, though\n if (ipv6Hostname) {\n this.hostname = this.hostname.substr(1, this.hostname.length - 2);\n if (rest[0] !== '/') {\n rest = '/' + rest;\n }\n }\n }\n\n // now rest is set to the post-host stuff.\n // chop off any delim chars.\n if (!unsafeProtocol[lowerProto]) {\n\n // First, make 100% sure that any \"autoEscape\" chars get\n // escaped, even if encodeURIComponent doesn't think they\n // need to be.\n for (var i = 0, l = autoEscape.length; i < l; i++) {\n var ae = autoEscape[i];\n if (rest.indexOf(ae) === -1)\n continue;\n var esc = encodeURIComponent(ae);\n if (esc === ae) {\n esc = escape(ae);\n }\n rest = rest.split(ae).join(esc);\n }\n }\n\n\n // chop off from the tail first.\n var hash = rest.indexOf('#');\n if (hash !== -1) {\n // got a fragment string.\n this.hash = rest.substr(hash);\n rest = rest.slice(0, hash);\n }\n var qm = rest.indexOf('?');\n if (qm !== -1) {\n this.search = rest.substr(qm);\n this.query = rest.substr(qm + 1);\n if (parseQueryString) {\n this.query = querystring.parse(this.query);\n }\n rest = rest.slice(0, qm);\n } else if (parseQueryString) {\n // no query string, but parseQueryString still requested\n this.search = '';\n this.query = {};\n }\n if (rest) this.pathname = rest;\n if (slashedProtocol[lowerProto] &&\n this.hostname && !this.pathname) {\n this.pathname = '/';\n }\n\n //to support http.request\n if (this.pathname || this.search) {\n var p = this.pathname || '';\n var s = this.search || '';\n this.path = p + s;\n }\n\n // finally, reconstruct the href based on what has been validated.\n this.href = this.format();\n return this;\n};\n\n// format a parsed object into a url string\nfunction urlFormat(obj) {\n // ensure it's an object, and not a string url.\n // If it's an obj, this is a no-op.\n // this way, you can call url_format() on strings\n // to clean up potentially wonky urls.\n if (util.isString(obj)) obj = urlParse(obj);\n if (!(obj instanceof Url)) return Url.prototype.format.call(obj);\n return obj.format();\n}\n\nUrl.prototype.format = function() {\n var auth = this.auth || '';\n if (auth) {\n auth = encodeURIComponent(auth);\n auth = auth.replace(/%3A/i, ':');\n auth += '@';\n }\n\n var protocol = this.protocol || '',\n pathname = this.pathname || '',\n hash = this.hash || '',\n host = false,\n query = '';\n\n if (this.host) {\n host = auth + this.host;\n } else if (this.hostname) {\n host = auth + (this.hostname.indexOf(':') === -1 ?\n this.hostname :\n '[' + this.hostname + ']');\n if (this.port) {\n host += ':' + this.port;\n }\n }\n\n if (this.query &&\n util.isObject(this.query) &&\n Object.keys(this.query).length) {\n query = querystring.stringify(this.query);\n }\n\n var search = this.search || (query && ('?' + query)) || '';\n\n if (protocol && protocol.substr(-1) !== ':') protocol += ':';\n\n // only the slashedProtocols get the //. Not mailto:, xmpp:, etc.\n // unless they had them to begin with.\n if (this.slashes ||\n (!protocol || slashedProtocol[protocol]) && host !== false) {\n host = '//' + (host || '');\n if (pathname && pathname.charAt(0) !== '/') pathname = '/' + pathname;\n } else if (!host) {\n host = '';\n }\n\n if (hash && hash.charAt(0) !== '#') hash = '#' + hash;\n if (search && search.charAt(0) !== '?') search = '?' + search;\n\n pathname = pathname.replace(/[?#]/g, function(match) {\n return encodeURIComponent(match);\n });\n search = search.replace('#', '%23');\n\n return protocol + host + pathname + search + hash;\n};\n\nfunction urlResolve(source, relative) {\n return urlParse(source, false, true).resolve(relative);\n}\n\nUrl.prototype.resolve = function(relative) {\n return this.resolveObject(urlParse(relative, false, true)).format();\n};\n\nfunction urlResolveObject(source, relative) {\n if (!source) return relative;\n return urlParse(source, false, true).resolveObject(relative);\n}\n\nUrl.prototype.resolveObject = function(relative) {\n if (util.isString(relative)) {\n var rel = new Url();\n rel.parse(relative, false, true);\n relative = rel;\n }\n\n var result = new Url();\n var tkeys = Object.keys(this);\n for (var tk = 0; tk < tkeys.length; tk++) {\n var tkey = tkeys[tk];\n result[tkey] = this[tkey];\n }\n\n // hash is always overridden, no matter what.\n // even href=\"\" will remove it.\n result.hash = relative.hash;\n\n // if the relative url is empty, then there's nothing left to do here.\n if (relative.href === '') {\n result.href = result.format();\n return result;\n }\n\n // hrefs like //foo/bar always cut to the protocol.\n if (relative.slashes && !relative.protocol) {\n // take everything except the protocol from relative\n var rkeys = Object.keys(relative);\n for (var rk = 0; rk < rkeys.length; rk++) {\n var rkey = rkeys[rk];\n if (rkey !== 'protocol')\n result[rkey] = relative[rkey];\n }\n\n //urlParse appends trailing / to urls like http://www.example.com\n if (slashedProtocol[result.protocol] &&\n result.hostname && !result.pathname) {\n result.path = result.pathname = '/';\n }\n\n result.href = result.format();\n return result;\n }\n\n if (relative.protocol && relative.protocol !== result.protocol) {\n // if it's a known url protocol, then changing\n // the protocol does weird things\n // first, if it's not file:, then we MUST have a host,\n // and if there was a path\n // to begin with, then we MUST have a path.\n // if it is file:, then the host is dropped,\n // because that's known to be hostless.\n // anything else is assumed to be absolute.\n if (!slashedProtocol[relative.protocol]) {\n var keys = Object.keys(relative);\n for (var v = 0; v < keys.length; v++) {\n var k = keys[v];\n result[k] = relative[k];\n }\n result.href = result.format();\n return result;\n }\n\n result.protocol = relative.protocol;\n if (!relative.host && !hostlessProtocol[relative.protocol]) {\n var relPath = (relative.pathname || '').split('/');\n while (relPath.length && !(relative.host = relPath.shift()));\n if (!relative.host) relative.host = '';\n if (!relative.hostname) relative.hostname = '';\n if (relPath[0] !== '') relPath.unshift('');\n if (relPath.length < 2) relPath.unshift('');\n result.pathname = relPath.join('/');\n } else {\n result.pathname = relative.pathname;\n }\n result.search = relative.search;\n result.query = relative.query;\n result.host = relative.host || '';\n result.auth = relative.auth;\n result.hostname = relative.hostname || relative.host;\n result.port = relative.port;\n // to support http.request\n if (result.pathname || result.search) {\n var p = result.pathname || '';\n var s = result.search || '';\n result.path = p + s;\n }\n result.slashes = result.slashes || relative.slashes;\n result.href = result.format();\n return result;\n }\n\n var isSourceAbs = (result.pathname && result.pathname.charAt(0) === '/'),\n isRelAbs = (\n relative.host ||\n relative.pathname && relative.pathname.charAt(0) === '/'\n ),\n mustEndAbs = (isRelAbs || isSourceAbs ||\n (result.host && relative.pathname)),\n removeAllDots = mustEndAbs,\n srcPath = result.pathname && result.pathname.split('/') || [],\n relPath = relative.pathname && relative.pathname.split('/') || [],\n psychotic = result.protocol && !slashedProtocol[result.protocol];\n\n // if the url is a non-slashed url, then relative\n // links like ../.. should be able\n // to crawl up to the hostname, as well. This is strange.\n // result.protocol has already been set by now.\n // Later on, put the first path part into the host field.\n if (psychotic) {\n result.hostname = '';\n result.port = null;\n if (result.host) {\n if (srcPath[0] === '') srcPath[0] = result.host;\n else srcPath.unshift(result.host);\n }\n result.host = '';\n if (relative.protocol) {\n relative.hostname = null;\n relative.port = null;\n if (relative.host) {\n if (relPath[0] === '') relPath[0] = relative.host;\n else relPath.unshift(relative.host);\n }\n relative.host = null;\n }\n mustEndAbs = mustEndAbs && (relPath[0] === '' || srcPath[0] === '');\n }\n\n if (isRelAbs) {\n // it's absolute.\n result.host = (relative.host || relative.host === '') ?\n relative.host : result.host;\n result.hostname = (relative.hostname || relative.hostname === '') ?\n relative.hostname : result.hostname;\n result.search = relative.search;\n result.query = relative.query;\n srcPath = relPath;\n // fall through to the dot-handling below.\n } else if (relPath.length) {\n // it's relative\n // throw away the existing file, and take the new path instead.\n if (!srcPath) srcPath = [];\n srcPath.pop();\n srcPath = srcPath.concat(relPath);\n result.search = relative.search;\n result.query = relative.query;\n } else if (!util.isNullOrUndefined(relative.search)) {\n // just pull out the search.\n // like href='?foo'.\n // Put this after the other two cases because it simplifies the booleans\n if (psychotic) {\n result.hostname = result.host = srcPath.shift();\n //occationaly the auth can get stuck only in host\n //this especially happens in cases like\n //url.resolveObject('mailto:local1@domain1', 'local2@domain2')\n var authInHost = result.host && result.host.indexOf('@') > 0 ?\n result.host.split('@') : false;\n if (authInHost) {\n result.auth = authInHost.shift();\n result.host = result.hostname = authInHost.shift();\n }\n }\n result.search = relative.search;\n result.query = relative.query;\n //to support http.request\n if (!util.isNull(result.pathname) || !util.isNull(result.search)) {\n result.path = (result.pathname ? result.pathname : '') +\n (result.search ? result.search : '');\n }\n result.href = result.format();\n return result;\n }\n\n if (!srcPath.length) {\n // no path at all. easy.\n // we've already handled the other stuff above.\n result.pathname = null;\n //to support http.request\n if (result.search) {\n result.path = '/' + result.search;\n } else {\n result.path = null;\n }\n result.href = result.format();\n return result;\n }\n\n // if a url ENDs in . or .., then it must get a trailing slash.\n // however, if it ends in anything else non-slashy,\n // then it must NOT get a trailing slash.\n var last = srcPath.slice(-1)[0];\n var hasTrailingSlash = (\n (result.host || relative.host || srcPath.length > 1) &&\n (last === '.' || last === '..') || last === '');\n\n // strip single dots, resolve double dots to parent dir\n // if the path tries to go above the root, `up` ends up > 0\n var up = 0;\n for (var i = srcPath.length; i >= 0; i--) {\n last = srcPath[i];\n if (last === '.') {\n srcPath.splice(i, 1);\n } else if (last === '..') {\n srcPath.splice(i, 1);\n up++;\n } else if (up) {\n srcPath.splice(i, 1);\n up--;\n }\n }\n\n // if the path is allowed to go above the root, restore leading ..s\n if (!mustEndAbs && !removeAllDots) {\n for (; up--; up) {\n srcPath.unshift('..');\n }\n }\n\n if (mustEndAbs && srcPath[0] !== '' &&\n (!srcPath[0] || srcPath[0].charAt(0) !== '/')) {\n srcPath.unshift('');\n }\n\n if (hasTrailingSlash && (srcPath.join('/').substr(-1) !== '/')) {\n srcPath.push('');\n }\n\n var isAbsolute = srcPath[0] === '' ||\n (srcPath[0] && srcPath[0].charAt(0) === '/');\n\n // put the host back\n if (psychotic) {\n result.hostname = result.host = isAbsolute ? '' :\n srcPath.length ? srcPath.shift() : '';\n //occationaly the auth can get stuck only in host\n //this especially happens in cases like\n //url.resolveObject('mailto:local1@domain1', 'local2@domain2')\n var authInHost = result.host && result.host.indexOf('@') > 0 ?\n result.host.split('@') : false;\n if (authInHost) {\n result.auth = authInHost.shift();\n result.host = result.hostname = authInHost.shift();\n }\n }\n\n mustEndAbs = mustEndAbs || (result.host && srcPath.length);\n\n if (mustEndAbs && !isAbsolute) {\n srcPath.unshift('');\n }\n\n if (!srcPath.length) {\n result.pathname = null;\n result.path = null;\n } else {\n result.pathname = srcPath.join('/');\n }\n\n //to support request.http\n if (!util.isNull(result.pathname) || !util.isNull(result.search)) {\n result.path = (result.pathname ? result.pathname : '') +\n (result.search ? result.search : '');\n }\n result.auth = relative.auth || result.auth;\n result.slashes = result.slashes || relative.slashes;\n result.href = result.format();\n return result;\n};\n\nUrl.prototype.parseHost = function() {\n var host = this.host;\n var port = portPattern.exec(host);\n if (port) {\n port = port[0];\n if (port !== ':') {\n this.port = port.substr(1);\n }\n host = host.substr(0, host.length - port.length);\n }\n if (host) this.hostname = host;\n};\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/url/url.js?");
1424
1425/***/ }),
1426
1427/***/ "./node_modules/url/util.js":
1428/*!**********************************!*\
1429 !*** ./node_modules/url/util.js ***!
1430 \**********************************/
1431/*! no static exports found */
1432/***/ (function(module, exports, __webpack_require__) {
1433
1434"use strict";
1435eval("\n\nmodule.exports = {\n isString: function(arg) {\n return typeof(arg) === 'string';\n },\n isObject: function(arg) {\n return typeof(arg) === 'object' && arg !== null;\n },\n isNull: function(arg) {\n return arg === null;\n },\n isNullOrUndefined: function(arg) {\n return arg == null;\n }\n};\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/url/util.js?");
1436
1437/***/ }),
1438
1439/***/ "./node_modules/util-deprecate/browser.js":
1440/*!************************************************!*\
1441 !*** ./node_modules/util-deprecate/browser.js ***!
1442 \************************************************/
1443/*! no static exports found */
1444/***/ (function(module, exports, __webpack_require__) {
1445
1446eval("/* WEBPACK VAR INJECTION */(function(global) {\n/**\n * Module exports.\n */\n\nmodule.exports = deprecate;\n\n/**\n * Mark that a method should not be used.\n * Returns a modified function which warns once by default.\n *\n * If `localStorage.noDeprecation = true` is set, then it is a no-op.\n *\n * If `localStorage.throwDeprecation = true` is set, then deprecated functions\n * will throw an Error when invoked.\n *\n * If `localStorage.traceDeprecation = true` is set, then deprecated functions\n * will invoke `console.trace()` instead of `console.error()`.\n *\n * @param {Function} fn - the function to deprecate\n * @param {String} msg - the string to print to the console when `fn` is invoked\n * @returns {Function} a new \"deprecated\" version of `fn`\n * @api public\n */\n\nfunction deprecate (fn, msg) {\n if (config('noDeprecation')) {\n return fn;\n }\n\n var warned = false;\n function deprecated() {\n if (!warned) {\n if (config('throwDeprecation')) {\n throw new Error(msg);\n } else if (config('traceDeprecation')) {\n console.trace(msg);\n } else {\n console.warn(msg);\n }\n warned = true;\n }\n return fn.apply(this, arguments);\n }\n\n return deprecated;\n}\n\n/**\n * Checks `localStorage` for boolean values for the given `name`.\n *\n * @param {String} name\n * @returns {Boolean}\n * @api private\n */\n\nfunction config (name) {\n // accessing global.localStorage can trigger a DOMException in sandboxed iframes\n try {\n if (!global.localStorage) return false;\n } catch (_) {\n return false;\n }\n var val = global.localStorage[name];\n if (null == val) return false;\n return String(val).toLowerCase() === 'true';\n}\n\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ \"./node_modules/webpack/buildin/global.js\")))\n\n//# sourceURL=webpack://GeoRaster/./node_modules/util-deprecate/browser.js?");
1447
1448/***/ }),
1449
1450/***/ "./node_modules/webpack/buildin/global.js":
1451/*!***********************************!*\
1452 !*** (webpack)/buildin/global.js ***!
1453 \***********************************/
1454/*! no static exports found */
1455/***/ (function(module, exports) {
1456
1457eval("var g;\n\n// This works in non-strict mode\ng = (function() {\n\treturn this;\n})();\n\ntry {\n\t// This works if eval is allowed (see CSP)\n\tg = g || new Function(\"return this\")();\n} catch (e) {\n\t// This works if the window reference is available\n\tif (typeof window === \"object\") g = window;\n}\n\n// g can still be undefined, but nothing to do about it...\n// We return undefined, instead of nothing here, so it's\n// easier to handle this case. if(!global) { ...}\n\nmodule.exports = g;\n\n\n//# sourceURL=webpack://GeoRaster/(webpack)/buildin/global.js?");
1458
1459/***/ }),
1460
1461/***/ "./node_modules/webpack/buildin/module.js":
1462/*!***********************************!*\
1463 !*** (webpack)/buildin/module.js ***!
1464 \***********************************/
1465/*! no static exports found */
1466/***/ (function(module, exports) {
1467
1468eval("module.exports = function(module) {\n\tif (!module.webpackPolyfill) {\n\t\tmodule.deprecate = function() {};\n\t\tmodule.paths = [];\n\t\t// module.parent = undefined by default\n\t\tif (!module.children) module.children = [];\n\t\tObject.defineProperty(module, \"loaded\", {\n\t\t\tenumerable: true,\n\t\t\tget: function() {\n\t\t\t\treturn module.l;\n\t\t\t}\n\t\t});\n\t\tObject.defineProperty(module, \"id\", {\n\t\t\tenumerable: true,\n\t\t\tget: function() {\n\t\t\t\treturn module.i;\n\t\t\t}\n\t\t});\n\t\tmodule.webpackPolyfill = 1;\n\t}\n\treturn module;\n};\n\n\n//# sourceURL=webpack://GeoRaster/(webpack)/buildin/module.js?");
1469
1470/***/ }),
1471
1472/***/ "./node_modules/worker-loader/dist/workers/InlineWorker.js":
1473/*!*****************************************************************!*\
1474 !*** ./node_modules/worker-loader/dist/workers/InlineWorker.js ***!
1475 \*****************************************************************/
1476/*! no static exports found */
1477/***/ (function(module, exports, __webpack_require__) {
1478
1479"use strict";
1480eval("\n\n// http://stackoverflow.com/questions/10343913/how-to-create-a-web-worker-from-a-string\n\nvar URL = window.URL || window.webkitURL;\n\nmodule.exports = function (content, url) {\n try {\n try {\n var blob;\n\n try {\n // BlobBuilder = Deprecated, but widely implemented\n var BlobBuilder = window.BlobBuilder || window.WebKitBlobBuilder || window.MozBlobBuilder || window.MSBlobBuilder;\n\n blob = new BlobBuilder();\n\n blob.append(content);\n\n blob = blob.getBlob();\n } catch (e) {\n // The proposed API\n blob = new Blob([content]);\n }\n\n return new Worker(URL.createObjectURL(blob));\n } catch (e) {\n return new Worker('data:application/javascript,' + encodeURIComponent(content));\n }\n } catch (e) {\n if (!url) {\n throw Error('Inline worker is not supported');\n }\n\n return new Worker(url);\n }\n};\n\n//# sourceURL=webpack://GeoRaster/./node_modules/worker-loader/dist/workers/InlineWorker.js?");
1481
1482/***/ }),
1483
1484/***/ "./node_modules/xtend/immutable.js":
1485/*!*****************************************!*\
1486 !*** ./node_modules/xtend/immutable.js ***!
1487 \*****************************************/
1488/*! no static exports found */
1489/***/ (function(module, exports) {
1490
1491eval("module.exports = extend\n\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\n\nfunction extend() {\n var target = {}\n\n for (var i = 0; i < arguments.length; i++) {\n var source = arguments[i]\n\n for (var key in source) {\n if (hasOwnProperty.call(source, key)) {\n target[key] = source[key]\n }\n }\n }\n\n return target\n}\n\n\n//# sourceURL=webpack://GeoRaster/./node_modules/xtend/immutable.js?");
1492
1493/***/ }),
1494
1495/***/ "./src/index.js":
1496/*!**********************!*\
1497 !*** ./src/index.js ***!
1498 \**********************/
1499/*! no static exports found */
1500/***/ (function(module, exports, __webpack_require__) {
1501
1502"use strict";
1503eval("/* WEBPACK VAR INJECTION */(function(Buffer) {\n/* global Blob */\n/* global URL */\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _crossFetch = __webpack_require__(/*! cross-fetch */ \"./node_modules/cross-fetch/dist/browser-ponyfill.js\");\n\nvar _crossFetch2 = _interopRequireDefault(_crossFetch);\n\nvar _worker = __webpack_require__(/*! ./worker.js */ \"./src/worker.js\");\n\nvar _worker2 = _interopRequireDefault(_worker);\n\nvar _parseData = __webpack_require__(/*! ./parseData.js */ \"./src/parseData.js\");\n\nvar _parseData2 = _interopRequireDefault(_parseData);\n\nvar _utils = __webpack_require__(/*! ./utils.js */ \"./src/utils.js\");\n\nvar _geotiff = __webpack_require__(/*! geotiff */ \"./node_modules/geotiff/src/geotiff.js\");\n\nvar _georasterToCanvas = __webpack_require__(/*! georaster-to-canvas */ \"./node_modules/georaster-to-canvas/index.js\");\n\nvar _georasterToCanvas2 = _interopRequireDefault(_georasterToCanvas);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction urlExists(url) {\n try {\n return (0, _crossFetch2.default)(url, { method: 'HEAD' }).then(function (response) {\n return response.status === 200;\n }).catch(function (error) {\n return false;\n });\n } catch (error) {\n return Promise.resolve(false);\n }\n}\n\nfunction getValues(geotiff, options) {\n var left = options.left,\n top = options.top,\n right = options.right,\n bottom = options.bottom,\n width = options.width,\n height = options.height,\n resampleMethod = options.resampleMethod;\n // note this.image and this.geotiff both have a readRasters method;\n // they are not the same thing. use this.geotiff for experimental version\n // that reads from best overview\n\n return geotiff.readRasters({\n window: [left, top, right, bottom],\n width: width,\n height: height,\n resampleMethod: resampleMethod || 'bilinear'\n }).then(function (rasters) {\n /*\n The result appears to be an array with a width and height property set.\n We only need the values, assuming the user remembers the width and height.\n Ex: [[0,27723,...11025,12924], width: 10, height: 10]\n */\n return rasters.map(function (raster) {\n return (0, _utils.unflatten)(raster, { height: height, width: width });\n });\n });\n};\n\nvar GeoRaster = function () {\n function GeoRaster(data, metadata, debug) {\n _classCallCheck(this, GeoRaster);\n\n if (debug) console.log('starting GeoRaster.constructor with', data, metadata);\n\n this._web_worker_is_available = typeof window !== 'undefined' && window.Worker !== 'undefined';\n this._blob_is_available = typeof Blob !== 'undefined';\n this._url_is_available = typeof URL !== 'undefined';\n\n // check if should convert to buffer\n if ((typeof data === 'undefined' ? 'undefined' : _typeof(data)) === 'object' && data.constructor && data.constructor.name === 'Buffer' && Buffer.isBuffer(data) === false) {\n data = new Buffer(data);\n }\n\n if (typeof data === 'string') {\n if (debug) console.log('data is a url');\n this._data = data;\n this._url = data;\n this.rasterType = 'geotiff';\n this.sourceType = 'url';\n } else if (typeof Buffer !== 'undefined' && Buffer.isBuffer(data)) {\n // this is node\n if (debug) console.log('data is a buffer');\n this._data = data.buffer.slice(data.byteOffset, data.byteOffset + data.byteLength);\n this.rasterType = 'geotiff';\n this.sourceType = 'Buffer';\n } else if (data instanceof ArrayBuffer) {\n // this is browser\n this._data = data;\n this.rasterType = 'geotiff';\n this.sourceType = 'ArrayBuffer';\n } else if (Array.isArray(data) && metadata) {\n this._data = data;\n this.rasterType = 'object';\n this._metadata = metadata;\n }\n\n if (debug) console.log('this after construction:', this);\n }\n\n _createClass(GeoRaster, [{\n key: 'preinitialize',\n value: function preinitialize(debug) {\n var _this = this;\n\n if (debug) console.log('starting preinitialize');\n if (this._url) {\n // initialize these outside worker to avoid weird worker error\n // I don't see how cache option is passed through with fromUrl,\n // though constantinius says it should work: https://github.com/geotiffjs/geotiff.js/issues/61\n var ovrURL = this._url + '.ovr';\n return urlExists(ovrURL).then(function (ovrExists) {\n if (debug) console.log('overview exists:', ovrExists);\n if (ovrExists) {\n return (0, _geotiff.fromUrls)(_this._url, [ovrURL], { cache: true, forceXHR: false });\n } else {\n return (0, _geotiff.fromUrl)(_this._url, { cache: true, forceXHR: false });\n }\n });\n } else {\n // no pre-initialization steps required if not using a Cloud Optimized GeoTIFF\n return Promise.resolve();\n }\n }\n }, {\n key: 'initialize',\n value: function initialize(debug) {\n var _this2 = this;\n\n return this.preinitialize(debug).then(function (geotiff) {\n return new Promise(function (resolve, reject) {\n if (debug) console.log('starting GeoRaster.initialize');\n if (debug) console.log('this', _this2);\n\n if (_this2.rasterType === 'object' || _this2.rasterType === 'geotiff' || _this2.rasterType === 'tiff') {\n if (_this2._web_worker_is_available) {\n var worker = new _worker2.default();\n worker.onmessage = function (e) {\n if (debug) console.log('main thread received message:', e);\n var data = e.data;\n for (var key in data) {\n _this2[key] = data[key];\n }\n if (_this2._url) {\n _this2._geotiff = geotiff;\n _this2.getValues = function (options) {\n return getValues(this._geotiff, options);\n };\n }\n _this2.toCanvas = function (options) {\n return (0, _georasterToCanvas2.default)(this, options);\n };\n resolve(_this2);\n };\n if (debug) console.log('about to postMessage');\n if (_this2._data instanceof ArrayBuffer) {\n worker.postMessage({\n data: _this2._data,\n rasterType: _this2.rasterType,\n sourceType: _this2.sourceType,\n metadata: _this2._metadata\n }, [_this2._data]);\n } else {\n worker.postMessage({\n data: _this2._data,\n rasterType: _this2.rasterType,\n sourceType: _this2.sourceType,\n metadata: _this2._metadata\n });\n }\n } else {\n if (debug) console.log('web worker is not available');\n (0, _parseData2.default)({\n data: _this2._data,\n rasterType: _this2.rasterType,\n sourceType: _this2.sourceType,\n metadata: _this2._metadata\n }, debug).then(function (result) {\n if (debug) console.log('result:', result);\n if (_this2._url) {\n result._geotiff = geotiff;\n result.getValues = function (options) {\n return getValues(this._geotiff, options);\n };\n }\n result.toCanvas = function (options) {\n return (0, _georasterToCanvas2.default)(this, options);\n };\n resolve(result);\n }).catch(reject);\n }\n } else {\n reject('couldn\\'t find a way to parse');\n }\n });\n });\n }\n }]);\n\n return GeoRaster;\n}();\n\nvar parseGeoraster = function parseGeoraster(input, metadata, debug) {\n if (debug) console.log('starting parseGeoraster with ', input, metadata);\n\n if (input === undefined) {\n var errorMessage = '[Georaster.parseGeoraster] Error. You passed in undefined to parseGeoraster. We can\\'t make a raster out of nothing!';\n throw Error(errorMessage);\n }\n\n return new GeoRaster(input, metadata, debug).initialize(debug);\n};\n\nif ( true && typeof module.exports !== 'undefined') {\n module.exports = parseGeoraster;\n}\n\n/*\n The following code allows you to use GeoRaster without requiring\n*/\nif (typeof window !== 'undefined') {\n window['parseGeoraster'] = parseGeoraster;\n} else if (typeof self !== 'undefined') {\n self['parseGeoraster'] = parseGeoraster; // jshint ignore:line\n}\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../node_modules/node-libs-browser/node_modules/buffer/index.js */ \"./node_modules/node-libs-browser/node_modules/buffer/index.js\").Buffer))\n\n//# sourceURL=webpack://GeoRaster/./src/index.js?");
1504
1505/***/ }),
1506
1507/***/ "./src/parseData.js":
1508/*!**************************!*\
1509 !*** ./src/parseData.js ***!
1510 \**************************/
1511/*! no static exports found */
1512/***/ (function(module, exports, __webpack_require__) {
1513
1514"use strict";
1515eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"]) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError(\"Invalid attempt to destructure non-iterable instance\"); } }; }();\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\nexports.default = parseData;\n\nvar _geotiff = __webpack_require__(/*! geotiff */ \"./node_modules/geotiff/src/geotiff.js\");\n\nvar _geotiffPalette = __webpack_require__(/*! geotiff-palette */ \"./node_modules/geotiff-palette/index.js\");\n\nvar _utils = __webpack_require__(/*! ./utils.js */ \"./src/utils.js\");\n\nfunction processResult(result, debug) {\n var noDataValue = result.noDataValue;\n var height = result.height;\n var width = result.width;\n\n return new Promise(function (resolve, reject) {\n result.maxs = [];\n result.mins = [];\n result.ranges = [];\n\n var max = void 0;var min = void 0;\n\n // console.log(\"starting to get min, max and ranges\");\n for (var rasterIndex = 0; rasterIndex < result.numberOfRasters; rasterIndex++) {\n var rows = result.values[rasterIndex];\n if (debug) console.log('[georaster] rows:', rows);\n\n for (var rowIndex = 0; rowIndex < height; rowIndex++) {\n var row = rows[rowIndex];\n\n for (var columnIndex = 0; columnIndex < width; columnIndex++) {\n var value = row[columnIndex];\n if (value != noDataValue && !isNaN(value)) {\n if (typeof min === 'undefined' || value < min) min = value;else if (typeof max === 'undefined' || value > max) max = value;\n }\n }\n }\n\n result.maxs.push(max);\n result.mins.push(min);\n result.ranges.push(max - min);\n }\n\n resolve(result);\n });\n}\n\n/* We're not using async because trying to avoid dependency on babel's polyfill\nThere can be conflicts when GeoRaster is used in another project that is also\nusing @babel/polyfill */\nfunction parseData(data, debug) {\n return new Promise(function (resolve, reject) {\n try {\n if (debug) console.log('starting parseData with', data);\n if (debug) console.log('\\tGeoTIFF:', typeof GeoTIFF === 'undefined' ? 'undefined' : _typeof(GeoTIFF));\n\n var result = {};\n\n var height = void 0,\n width = void 0;\n\n if (data.rasterType === 'object') {\n result.values = data.data;\n result.height = height = data.metadata.height || result.values[0].length;\n result.width = width = data.metadata.width || result.values[0][0].length;\n result.pixelHeight = data.metadata.pixelHeight;\n result.pixelWidth = data.metadata.pixelWidth;\n result.projection = data.metadata.projection;\n result.xmin = data.metadata.xmin;\n result.ymax = data.metadata.ymax;\n result.noDataValue = data.metadata.noDataValue;\n result.numberOfRasters = result.values.length;\n result.xmax = result.xmin + result.width * result.pixelWidth;\n result.ymin = result.ymax - result.height * result.pixelHeight;\n result._data = null;\n resolve(processResult(result));\n } else if (data.rasterType === 'geotiff') {\n result._data = data.data;\n\n var initFunction = _geotiff.fromArrayBuffer;\n if (data.sourceType === 'url') {\n initFunction = _geotiff.fromUrl;\n }\n\n if (debug) console.log('data.rasterType is geotiff');\n resolve(initFunction(data.data).then(function (geotiff) {\n if (debug) console.log('geotiff:', geotiff);\n return geotiff.getImage().then(function (image) {\n try {\n if (debug) console.log('image:', image);\n\n var fileDirectory = image.fileDirectory;\n\n var _image$getGeoKeys = image.getGeoKeys(),\n GeographicTypeGeoKey = _image$getGeoKeys.GeographicTypeGeoKey,\n ProjectedCSTypeGeoKey = _image$getGeoKeys.ProjectedCSTypeGeoKey;\n\n result.projection = ProjectedCSTypeGeoKey || GeographicTypeGeoKey;\n if (debug) console.log('projection:', result.projection);\n\n result.height = height = image.getHeight();\n if (debug) console.log('result.height:', result.height);\n result.width = width = image.getWidth();\n if (debug) console.log('result.width:', result.width);\n\n var _image$getResolution = image.getResolution(),\n _image$getResolution2 = _slicedToArray(_image$getResolution, 2),\n resolutionX = _image$getResolution2[0],\n resolutionY = _image$getResolution2[1];\n\n result.pixelHeight = Math.abs(resolutionY);\n result.pixelWidth = Math.abs(resolutionX);\n\n var _image$getOrigin = image.getOrigin(),\n _image$getOrigin2 = _slicedToArray(_image$getOrigin, 2),\n originX = _image$getOrigin2[0],\n originY = _image$getOrigin2[1];\n\n result.xmin = originX;\n result.xmax = result.xmin + width * result.pixelWidth;\n result.ymax = originY;\n result.ymin = result.ymax - height * result.pixelHeight;\n\n result.noDataValue = fileDirectory.GDAL_NODATA ? parseFloat(fileDirectory.GDAL_NODATA) : null;\n\n result.numberOfRasters = fileDirectory.SamplesPerPixel;\n\n if (fileDirectory.ColorMap) {\n result.palette = (0, _geotiffPalette.getPalette)(image);\n }\n\n if (data.sourceType !== 'url') {\n return image.readRasters().then(function (rasters) {\n result.values = rasters.map(function (valuesInOneDimension) {\n return (0, _utils.unflatten)(valuesInOneDimension, { height: height, width: width });\n });\n return processResult(result);\n });\n } else {\n return result;\n }\n } catch (error) {\n reject(error);\n console.error('[georaster] error parsing georaster:', error);\n }\n });\n }));\n }\n } catch (error) {\n reject(error);\n console.error('[georaster] error parsing georaster:', error);\n }\n });\n}\n\n//# sourceURL=webpack://GeoRaster/./src/parseData.js?");
1516
1517/***/ }),
1518
1519/***/ "./src/utils.js":
1520/*!**********************!*\
1521 !*** ./src/utils.js ***!
1522 \**********************/
1523/*! no static exports found */
1524/***/ (function(module, exports, __webpack_require__) {
1525
1526"use strict";
1527eval("\n\nfunction countIn1D(array) {\n return array.reduce(function (counts, value) {\n if (counts[value] === undefined) {\n counts[value] = 1;\n } else {\n counts[value]++;\n }\n return counts;\n }, {});\n}\n\nfunction countIn2D(rows) {\n return rows.reduce(function (counts, values) {\n values.forEach(function (value) {\n if (counts[value] === undefined) {\n counts[value] = 1;\n } else {\n counts[value]++;\n }\n });\n return counts;\n }, {});\n}\n\n/*\nTakes in a flattened one dimensional array\nrepresenting two-dimensional pixel values\nand returns an array of arrays.\n*/\nfunction unflatten(valuesInOneDimension, size) {\n var height = size.height,\n width = size.width;\n\n var valuesInTwoDimensions = [];\n for (var y = 0; y < height; y++) {\n var start = y * width;\n var end = start + width;\n valuesInTwoDimensions.push(valuesInOneDimension.slice(start, end));\n }\n return valuesInTwoDimensions;\n}\n\nmodule.exports = { countIn1D: countIn1D, countIn2D: countIn2D, unflatten: unflatten };\n\n//# sourceURL=webpack://GeoRaster/./src/utils.js?");
1528
1529/***/ }),
1530
1531/***/ "./src/worker.js":
1532/*!***********************!*\
1533 !*** ./src/worker.js ***!
1534 \***********************/
1535/*! no static exports found */
1536/***/ (function(module, exports, __webpack_require__) {
1537
1538"use strict";
1539eval("module.exports=function(){return __webpack_require__(/*! !./node_modules/worker-loader/dist/workers/InlineWorker.js */ \"./node_modules/worker-loader/dist/workers/InlineWorker.js\")(\"/******/ (function(modules) { // webpackBootstrap\\n/******/ \\t// The module cache\\n/******/ \\tvar installedModules = {};\\n/******/\\n/******/ \\t// The require function\\n/******/ \\tfunction __webpack_require__(moduleId) {\\n/******/\\n/******/ \\t\\t// Check if module is in cache\\n/******/ \\t\\tif(installedModules[moduleId]) {\\n/******/ \\t\\t\\treturn installedModules[moduleId].exports;\\n/******/ \\t\\t}\\n/******/ \\t\\t// Create a new module (and put it into the cache)\\n/******/ \\t\\tvar module = installedModules[moduleId] = {\\n/******/ \\t\\t\\ti: moduleId,\\n/******/ \\t\\t\\tl: false,\\n/******/ \\t\\t\\texports: {}\\n/******/ \\t\\t};\\n/******/\\n/******/ \\t\\t// Execute the module function\\n/******/ \\t\\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\\n/******/\\n/******/ \\t\\t// Flag the module as loaded\\n/******/ \\t\\tmodule.l = true;\\n/******/\\n/******/ \\t\\t// Return the exports of the module\\n/******/ \\t\\treturn module.exports;\\n/******/ \\t}\\n/******/\\n/******/\\n/******/ \\t// expose the modules object (__webpack_modules__)\\n/******/ \\t__webpack_require__.m = modules;\\n/******/\\n/******/ \\t// expose the module cache\\n/******/ \\t__webpack_require__.c = installedModules;\\n/******/\\n/******/ \\t// define getter function for harmony exports\\n/******/ \\t__webpack_require__.d = function(exports, name, getter) {\\n/******/ \\t\\tif(!__webpack_require__.o(exports, name)) {\\n/******/ \\t\\t\\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\\n/******/ \\t\\t}\\n/******/ \\t};\\n/******/\\n/******/ \\t// define __esModule on exports\\n/******/ \\t__webpack_require__.r = function(exports) {\\n/******/ \\t\\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\\n/******/ \\t\\t\\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\\n/******/ \\t\\t}\\n/******/ \\t\\tObject.defineProperty(exports, '__esModule', { value: true });\\n/******/ \\t};\\n/******/\\n/******/ \\t// create a fake namespace object\\n/******/ \\t// mode & 1: value is a module id, require it\\n/******/ \\t// mode & 2: merge all properties of value into the ns\\n/******/ \\t// mode & 4: return value when already ns object\\n/******/ \\t// mode & 8|1: behave like require\\n/******/ \\t__webpack_require__.t = function(value, mode) {\\n/******/ \\t\\tif(mode & 1) value = __webpack_require__(value);\\n/******/ \\t\\tif(mode & 8) return value;\\n/******/ \\t\\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\\n/******/ \\t\\tvar ns = Object.create(null);\\n/******/ \\t\\t__webpack_require__.r(ns);\\n/******/ \\t\\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\\n/******/ \\t\\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\\n/******/ \\t\\treturn ns;\\n/******/ \\t};\\n/******/\\n/******/ \\t// getDefaultExport function for compatibility with non-harmony modules\\n/******/ \\t__webpack_require__.n = function(module) {\\n/******/ \\t\\tvar getter = module && module.__esModule ?\\n/******/ \\t\\t\\tfunction getDefault() { return module['default']; } :\\n/******/ \\t\\t\\tfunction getModuleExports() { return module; };\\n/******/ \\t\\t__webpack_require__.d(getter, 'a', getter);\\n/******/ \\t\\treturn getter;\\n/******/ \\t};\\n/******/\\n/******/ \\t// Object.prototype.hasOwnProperty.call\\n/******/ \\t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\\n/******/\\n/******/ \\t// __webpack_public_path__\\n/******/ \\t__webpack_require__.p = \\\"\\\";\\n/******/\\n/******/\\n/******/ \\t// Load entry module and return exports\\n/******/ \\treturn __webpack_require__(__webpack_require__.s = \\\"./src/worker.js\\\");\\n/******/ })\\n/************************************************************************/\\n/******/ ({\\n\\n/***/ \\\"./node_modules/base64-js/index.js\\\":\\n/*!*****************************************!*\\\\\\n !*** ./node_modules/base64-js/index.js ***!\\n \\\\*****************************************/\\n/*! no static exports found */\\n/***/ (function(module, exports, __webpack_require__) {\\n\\n\\\"use strict\\\";\\neval(\\\"\\\\n\\\\nexports.byteLength = byteLength\\\\nexports.toByteArray = toByteArray\\\\nexports.fromByteArray = fromByteArray\\\\n\\\\nvar lookup = []\\\\nvar revLookup = []\\\\nvar Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array\\\\n\\\\nvar code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'\\\\nfor (var i = 0, len = code.length; i < len; ++i) {\\\\n lookup[i] = code[i]\\\\n revLookup[code.charCodeAt(i)] = i\\\\n}\\\\n\\\\n// Support decoding URL-safe base64 strings, as Node.js does.\\\\n// See: https://en.wikipedia.org/wiki/Base64#URL_applications\\\\nrevLookup['-'.charCodeAt(0)] = 62\\\\nrevLookup['_'.charCodeAt(0)] = 63\\\\n\\\\nfunction getLens (b64) {\\\\n var len = b64.length\\\\n\\\\n if (len % 4 > 0) {\\\\n throw new Error('Invalid string. Length must be a multiple of 4')\\\\n }\\\\n\\\\n // Trim off extra bytes after placeholder bytes are found\\\\n // See: https://github.com/beatgammit/base64-js/issues/42\\\\n var validLen = b64.indexOf('=')\\\\n if (validLen === -1) validLen = len\\\\n\\\\n var placeHoldersLen = validLen === len\\\\n ? 0\\\\n : 4 - (validLen % 4)\\\\n\\\\n return [validLen, placeHoldersLen]\\\\n}\\\\n\\\\n// base64 is 4/3 + up to two characters of the original data\\\\nfunction byteLength (b64) {\\\\n var lens = getLens(b64)\\\\n var validLen = lens[0]\\\\n var placeHoldersLen = lens[1]\\\\n return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen\\\\n}\\\\n\\\\nfunction _byteLength (b64, validLen, placeHoldersLen) {\\\\n return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen\\\\n}\\\\n\\\\nfunction toByteArray (b64) {\\\\n var tmp\\\\n var lens = getLens(b64)\\\\n var validLen = lens[0]\\\\n var placeHoldersLen = lens[1]\\\\n\\\\n var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen))\\\\n\\\\n var curByte = 0\\\\n\\\\n // if there are placeholders, only get up to the last complete 4 chars\\\\n var len = placeHoldersLen > 0\\\\n ? validLen - 4\\\\n : validLen\\\\n\\\\n var i\\\\n for (i = 0; i < len; i += 4) {\\\\n tmp =\\\\n (revLookup[b64.charCodeAt(i)] << 18) |\\\\n (revLookup[b64.charCodeAt(i + 1)] << 12) |\\\\n (revLookup[b64.charCodeAt(i + 2)] << 6) |\\\\n revLookup[b64.charCodeAt(i + 3)]\\\\n arr[curByte++] = (tmp >> 16) & 0xFF\\\\n arr[curByte++] = (tmp >> 8) & 0xFF\\\\n arr[curByte++] = tmp & 0xFF\\\\n }\\\\n\\\\n if (placeHoldersLen === 2) {\\\\n tmp =\\\\n (revLookup[b64.charCodeAt(i)] << 2) |\\\\n (revLookup[b64.charCodeAt(i + 1)] >> 4)\\\\n arr[curByte++] = tmp & 0xFF\\\\n }\\\\n\\\\n if (placeHoldersLen === 1) {\\\\n tmp =\\\\n (revLookup[b64.charCodeAt(i)] << 10) |\\\\n (revLookup[b64.charCodeAt(i + 1)] << 4) |\\\\n (revLookup[b64.charCodeAt(i + 2)] >> 2)\\\\n arr[curByte++] = (tmp >> 8) & 0xFF\\\\n arr[curByte++] = tmp & 0xFF\\\\n }\\\\n\\\\n return arr\\\\n}\\\\n\\\\nfunction tripletToBase64 (num) {\\\\n return lookup[num >> 18 & 0x3F] +\\\\n lookup[num >> 12 & 0x3F] +\\\\n lookup[num >> 6 & 0x3F] +\\\\n lookup[num & 0x3F]\\\\n}\\\\n\\\\nfunction encodeChunk (uint8, start, end) {\\\\n var tmp\\\\n var output = []\\\\n for (var i = start; i < end; i += 3) {\\\\n tmp =\\\\n ((uint8[i] << 16) & 0xFF0000) +\\\\n ((uint8[i + 1] << 8) & 0xFF00) +\\\\n (uint8[i + 2] & 0xFF)\\\\n output.push(tripletToBase64(tmp))\\\\n }\\\\n return output.join('')\\\\n}\\\\n\\\\nfunction fromByteArray (uint8) {\\\\n var tmp\\\\n var len = uint8.length\\\\n var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes\\\\n var parts = []\\\\n var maxChunkLength = 16383 // must be multiple of 3\\\\n\\\\n // go through the array every three bytes, we'll deal with trailing stuff later\\\\n for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {\\\\n parts.push(encodeChunk(uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength)))\\\\n }\\\\n\\\\n // pad the end with zeros, but make sure to not forget the extra bytes\\\\n if (extraBytes === 1) {\\\\n tmp = uint8[len - 1]\\\\n parts.push(\\\\n lookup[tmp >> 2] +\\\\n lookup[(tmp << 4) & 0x3F] +\\\\n '=='\\\\n )\\\\n } else if (extraBytes === 2) {\\\\n tmp = (uint8[len - 2] << 8) + uint8[len - 1]\\\\n parts.push(\\\\n lookup[tmp >> 10] +\\\\n lookup[(tmp >> 4) & 0x3F] +\\\\n lookup[(tmp << 2) & 0x3F] +\\\\n '='\\\\n )\\\\n }\\\\n\\\\n return parts.join('')\\\\n}\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/base64-js/index.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/builtin-status-codes/browser.js\\\":\\n/*!******************************************************!*\\\\\\n !*** ./node_modules/builtin-status-codes/browser.js ***!\\n \\\\******************************************************/\\n/*! no static exports found */\\n/***/ (function(module, exports) {\\n\\neval(\\\"module.exports = {\\\\n \\\\\\\"100\\\\\\\": \\\\\\\"Continue\\\\\\\",\\\\n \\\\\\\"101\\\\\\\": \\\\\\\"Switching Protocols\\\\\\\",\\\\n \\\\\\\"102\\\\\\\": \\\\\\\"Processing\\\\\\\",\\\\n \\\\\\\"200\\\\\\\": \\\\\\\"OK\\\\\\\",\\\\n \\\\\\\"201\\\\\\\": \\\\\\\"Created\\\\\\\",\\\\n \\\\\\\"202\\\\\\\": \\\\\\\"Accepted\\\\\\\",\\\\n \\\\\\\"203\\\\\\\": \\\\\\\"Non-Authoritative Information\\\\\\\",\\\\n \\\\\\\"204\\\\\\\": \\\\\\\"No Content\\\\\\\",\\\\n \\\\\\\"205\\\\\\\": \\\\\\\"Reset Content\\\\\\\",\\\\n \\\\\\\"206\\\\\\\": \\\\\\\"Partial Content\\\\\\\",\\\\n \\\\\\\"207\\\\\\\": \\\\\\\"Multi-Status\\\\\\\",\\\\n \\\\\\\"208\\\\\\\": \\\\\\\"Already Reported\\\\\\\",\\\\n \\\\\\\"226\\\\\\\": \\\\\\\"IM Used\\\\\\\",\\\\n \\\\\\\"300\\\\\\\": \\\\\\\"Multiple Choices\\\\\\\",\\\\n \\\\\\\"301\\\\\\\": \\\\\\\"Moved Permanently\\\\\\\",\\\\n \\\\\\\"302\\\\\\\": \\\\\\\"Found\\\\\\\",\\\\n \\\\\\\"303\\\\\\\": \\\\\\\"See Other\\\\\\\",\\\\n \\\\\\\"304\\\\\\\": \\\\\\\"Not Modified\\\\\\\",\\\\n \\\\\\\"305\\\\\\\": \\\\\\\"Use Proxy\\\\\\\",\\\\n \\\\\\\"307\\\\\\\": \\\\\\\"Temporary Redirect\\\\\\\",\\\\n \\\\\\\"308\\\\\\\": \\\\\\\"Permanent Redirect\\\\\\\",\\\\n \\\\\\\"400\\\\\\\": \\\\\\\"Bad Request\\\\\\\",\\\\n \\\\\\\"401\\\\\\\": \\\\\\\"Unauthorized\\\\\\\",\\\\n \\\\\\\"402\\\\\\\": \\\\\\\"Payment Required\\\\\\\",\\\\n \\\\\\\"403\\\\\\\": \\\\\\\"Forbidden\\\\\\\",\\\\n \\\\\\\"404\\\\\\\": \\\\\\\"Not Found\\\\\\\",\\\\n \\\\\\\"405\\\\\\\": \\\\\\\"Method Not Allowed\\\\\\\",\\\\n \\\\\\\"406\\\\\\\": \\\\\\\"Not Acceptable\\\\\\\",\\\\n \\\\\\\"407\\\\\\\": \\\\\\\"Proxy Authentication Required\\\\\\\",\\\\n \\\\\\\"408\\\\\\\": \\\\\\\"Request Timeout\\\\\\\",\\\\n \\\\\\\"409\\\\\\\": \\\\\\\"Conflict\\\\\\\",\\\\n \\\\\\\"410\\\\\\\": \\\\\\\"Gone\\\\\\\",\\\\n \\\\\\\"411\\\\\\\": \\\\\\\"Length Required\\\\\\\",\\\\n \\\\\\\"412\\\\\\\": \\\\\\\"Precondition Failed\\\\\\\",\\\\n \\\\\\\"413\\\\\\\": \\\\\\\"Payload Too Large\\\\\\\",\\\\n \\\\\\\"414\\\\\\\": \\\\\\\"URI Too Long\\\\\\\",\\\\n \\\\\\\"415\\\\\\\": \\\\\\\"Unsupported Media Type\\\\\\\",\\\\n \\\\\\\"416\\\\\\\": \\\\\\\"Range Not Satisfiable\\\\\\\",\\\\n \\\\\\\"417\\\\\\\": \\\\\\\"Expectation Failed\\\\\\\",\\\\n \\\\\\\"418\\\\\\\": \\\\\\\"I'm a teapot\\\\\\\",\\\\n \\\\\\\"421\\\\\\\": \\\\\\\"Misdirected Request\\\\\\\",\\\\n \\\\\\\"422\\\\\\\": \\\\\\\"Unprocessable Entity\\\\\\\",\\\\n \\\\\\\"423\\\\\\\": \\\\\\\"Locked\\\\\\\",\\\\n \\\\\\\"424\\\\\\\": \\\\\\\"Failed Dependency\\\\\\\",\\\\n \\\\\\\"425\\\\\\\": \\\\\\\"Unordered Collection\\\\\\\",\\\\n \\\\\\\"426\\\\\\\": \\\\\\\"Upgrade Required\\\\\\\",\\\\n \\\\\\\"428\\\\\\\": \\\\\\\"Precondition Required\\\\\\\",\\\\n \\\\\\\"429\\\\\\\": \\\\\\\"Too Many Requests\\\\\\\",\\\\n \\\\\\\"431\\\\\\\": \\\\\\\"Request Header Fields Too Large\\\\\\\",\\\\n \\\\\\\"451\\\\\\\": \\\\\\\"Unavailable For Legal Reasons\\\\\\\",\\\\n \\\\\\\"500\\\\\\\": \\\\\\\"Internal Server Error\\\\\\\",\\\\n \\\\\\\"501\\\\\\\": \\\\\\\"Not Implemented\\\\\\\",\\\\n \\\\\\\"502\\\\\\\": \\\\\\\"Bad Gateway\\\\\\\",\\\\n \\\\\\\"503\\\\\\\": \\\\\\\"Service Unavailable\\\\\\\",\\\\n \\\\\\\"504\\\\\\\": \\\\\\\"Gateway Timeout\\\\\\\",\\\\n \\\\\\\"505\\\\\\\": \\\\\\\"HTTP Version Not Supported\\\\\\\",\\\\n \\\\\\\"506\\\\\\\": \\\\\\\"Variant Also Negotiates\\\\\\\",\\\\n \\\\\\\"507\\\\\\\": \\\\\\\"Insufficient Storage\\\\\\\",\\\\n \\\\\\\"508\\\\\\\": \\\\\\\"Loop Detected\\\\\\\",\\\\n \\\\\\\"509\\\\\\\": \\\\\\\"Bandwidth Limit Exceeded\\\\\\\",\\\\n \\\\\\\"510\\\\\\\": \\\\\\\"Not Extended\\\\\\\",\\\\n \\\\\\\"511\\\\\\\": \\\\\\\"Network Authentication Required\\\\\\\"\\\\n}\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/builtin-status-codes/browser.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/core-util-is/lib/util.js\\\":\\n/*!***********************************************!*\\\\\\n !*** ./node_modules/core-util-is/lib/util.js ***!\\n \\\\***********************************************/\\n/*! no static exports found */\\n/***/ (function(module, exports, __webpack_require__) {\\n\\neval(\\\"// Copyright Joyent, Inc. and other Node contributors.\\\\n//\\\\n// Permission is hereby granted, free of charge, to any person obtaining a\\\\n// copy of this software and associated documentation files (the\\\\n// \\\\\\\"Software\\\\\\\"), to deal in the Software without restriction, including\\\\n// without limitation the rights to use, copy, modify, merge, publish,\\\\n// distribute, sublicense, and/or sell copies of the Software, and to permit\\\\n// persons to whom the Software is furnished to do so, subject to the\\\\n// following conditions:\\\\n//\\\\n// The above copyright notice and this permission notice shall be included\\\\n// in all copies or substantial portions of the Software.\\\\n//\\\\n// THE SOFTWARE IS PROVIDED \\\\\\\"AS IS\\\\\\\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\\\\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\\\\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\\\\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\\\\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\\\\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\\\\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\\\\n\\\\n// NOTE: These type checking functions intentionally don't use `instanceof`\\\\n// because it is fragile and can be easily faked with `Object.create()`.\\\\n\\\\nfunction isArray(arg) {\\\\n if (Array.isArray) {\\\\n return Array.isArray(arg);\\\\n }\\\\n return objectToString(arg) === '[object Array]';\\\\n}\\\\nexports.isArray = isArray;\\\\n\\\\nfunction isBoolean(arg) {\\\\n return typeof arg === 'boolean';\\\\n}\\\\nexports.isBoolean = isBoolean;\\\\n\\\\nfunction isNull(arg) {\\\\n return arg === null;\\\\n}\\\\nexports.isNull = isNull;\\\\n\\\\nfunction isNullOrUndefined(arg) {\\\\n return arg == null;\\\\n}\\\\nexports.isNullOrUndefined = isNullOrUndefined;\\\\n\\\\nfunction isNumber(arg) {\\\\n return typeof arg === 'number';\\\\n}\\\\nexports.isNumber = isNumber;\\\\n\\\\nfunction isString(arg) {\\\\n return typeof arg === 'string';\\\\n}\\\\nexports.isString = isString;\\\\n\\\\nfunction isSymbol(arg) {\\\\n return typeof arg === 'symbol';\\\\n}\\\\nexports.isSymbol = isSymbol;\\\\n\\\\nfunction isUndefined(arg) {\\\\n return arg === void 0;\\\\n}\\\\nexports.isUndefined = isUndefined;\\\\n\\\\nfunction isRegExp(re) {\\\\n return objectToString(re) === '[object RegExp]';\\\\n}\\\\nexports.isRegExp = isRegExp;\\\\n\\\\nfunction isObject(arg) {\\\\n return typeof arg === 'object' && arg !== null;\\\\n}\\\\nexports.isObject = isObject;\\\\n\\\\nfunction isDate(d) {\\\\n return objectToString(d) === '[object Date]';\\\\n}\\\\nexports.isDate = isDate;\\\\n\\\\nfunction isError(e) {\\\\n return (objectToString(e) === '[object Error]' || e instanceof Error);\\\\n}\\\\nexports.isError = isError;\\\\n\\\\nfunction isFunction(arg) {\\\\n return typeof arg === 'function';\\\\n}\\\\nexports.isFunction = isFunction;\\\\n\\\\nfunction isPrimitive(arg) {\\\\n return arg === null ||\\\\n typeof arg === 'boolean' ||\\\\n typeof arg === 'number' ||\\\\n typeof arg === 'string' ||\\\\n typeof arg === 'symbol' || // ES6 symbol\\\\n typeof arg === 'undefined';\\\\n}\\\\nexports.isPrimitive = isPrimitive;\\\\n\\\\nexports.isBuffer = __webpack_require__(/*! buffer */ \\\\\\\"./node_modules/node-libs-browser/node_modules/buffer/index.js\\\\\\\").Buffer.isBuffer;\\\\n\\\\nfunction objectToString(o) {\\\\n return Object.prototype.toString.call(o);\\\\n}\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/core-util-is/lib/util.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/geotiff-palette/index.js\\\":\\n/*!***********************************************!*\\\\\\n !*** ./node_modules/geotiff-palette/index.js ***!\\n \\\\***********************************************/\\n/*! no static exports found */\\n/***/ (function(module, exports) {\\n\\neval(\\\"const getPalette = (image, { debug = false } = { debug: false }) => {\\\\n if (debug) console.log(\\\\\\\"starting getPalette with image\\\\\\\", image);\\\\n const { fileDirectory } = image;\\\\n const {\\\\n BitsPerSample,\\\\n ColorMap,\\\\n ImageLength,\\\\n ImageWidth,\\\\n PhotometricInterpretation,\\\\n SampleFormat,\\\\n SamplesPerPixel\\\\n } = fileDirectory;\\\\n\\\\n if (!ColorMap) {\\\\n throw new Error(\\\\\\\"[geotiff-palette]: the image does not contain a color map, so we can't make a palette.\\\\\\\");\\\\n }\\\\n\\\\n const count = Math.pow(2, BitsPerSample);\\\\n if (debug) console.log(\\\\\\\"[geotiff-palette]: count:\\\\\\\", count);\\\\n\\\\n const bandSize = ColorMap.length / 3;\\\\n if (debug) console.log(\\\\\\\"[geotiff-palette]: bandSize:\\\\\\\", bandSize);\\\\n\\\\n if (bandSize !== count) {\\\\n throw new Error(\\\\\\\"[geotiff-palette]: can't handle situations where the color map has more or less values than the number of possible values in a raster\\\\\\\");\\\\n }\\\\n\\\\n const greenOffset = bandSize;\\\\n const redOffset = greenOffset + bandSize;\\\\n\\\\n const result = [];\\\\n for (let i = 0; i < count; i++) {\\\\n // colorMap[mapIndex] / 65536 * 256 equals colorMap[mapIndex] / 256\\\\n // because (1 / 2^16) * (2^8) equals 1 / 2^8\\\\n result.push([\\\\n Math.floor(ColorMap[i] / 256), // red\\\\n Math.floor(ColorMap[greenOffset + i] / 256), // green\\\\n Math.floor(ColorMap[redOffset + i] / 256), // blue\\\\n 255 // alpha value is always 255\\\\n ]);\\\\n }\\\\n if (debug) console.log(\\\\\\\"[geotiff-palette]: result is \\\\\\\", result);\\\\n return result;\\\\n}\\\\n\\\\nmodule.exports = { getPalette };\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/geotiff-palette/index.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/geotiff/src/compression/basedecoder.js\\\":\\n/*!*************************************************************!*\\\\\\n !*** ./node_modules/geotiff/src/compression/basedecoder.js ***!\\n \\\\*************************************************************/\\n/*! exports provided: default */\\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\\n\\n\\\"use strict\\\";\\neval(\\\"__webpack_require__.r(__webpack_exports__);\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"default\\\\\\\", function() { return BaseDecoder; });\\\\n/* harmony import */ var _predictor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../predictor */ \\\\\\\"./node_modules/geotiff/src/predictor.js\\\\\\\");\\\\n\\\\n\\\\nclass BaseDecoder {\\\\n decode(fileDirectory, buffer) {\\\\n const decoded = this.decodeBlock(buffer);\\\\n const predictor = fileDirectory.Predictor || 1;\\\\n if (predictor !== 1) {\\\\n const isTiled = !fileDirectory.StripOffsets;\\\\n const tileWidth = isTiled ? fileDirectory.TileWidth : fileDirectory.ImageWidth;\\\\n const tileHeight = isTiled ? fileDirectory.TileLength : (\\\\n fileDirectory.RowsPerStrip || fileDirectory.ImageLength\\\\n );\\\\n return Object(_predictor__WEBPACK_IMPORTED_MODULE_0__[\\\\\\\"applyPredictor\\\\\\\"])(\\\\n decoded, predictor, tileWidth, tileHeight, fileDirectory.BitsPerSample,\\\\n fileDirectory.PlanarConfiguration,\\\\n );\\\\n }\\\\n return decoded;\\\\n }\\\\n}\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/geotiff/src/compression/basedecoder.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/geotiff/src/compression/deflate.js\\\":\\n/*!*********************************************************!*\\\\\\n !*** ./node_modules/geotiff/src/compression/deflate.js ***!\\n \\\\*********************************************************/\\n/*! exports provided: default */\\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\\n\\n\\\"use strict\\\";\\neval(\\\"__webpack_require__.r(__webpack_exports__);\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"default\\\\\\\", function() { return DeflateDecoder; });\\\\n/* harmony import */ var pako_lib_inflate__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! pako/lib/inflate */ \\\\\\\"./node_modules/pako/lib/inflate.js\\\\\\\");\\\\n/* harmony import */ var pako_lib_inflate__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(pako_lib_inflate__WEBPACK_IMPORTED_MODULE_0__);\\\\n/* harmony import */ var _basedecoder__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./basedecoder */ \\\\\\\"./node_modules/geotiff/src/compression/basedecoder.js\\\\\\\");\\\\n\\\\n\\\\n\\\\nclass DeflateDecoder extends _basedecoder__WEBPACK_IMPORTED_MODULE_1__[\\\\\\\"default\\\\\\\"] {\\\\n decodeBlock(buffer) {\\\\n return Object(pako_lib_inflate__WEBPACK_IMPORTED_MODULE_0__[\\\\\\\"inflate\\\\\\\"])(new Uint8Array(buffer)).buffer;\\\\n }\\\\n}\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/geotiff/src/compression/deflate.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/geotiff/src/compression/index.js\\\":\\n/*!*******************************************************!*\\\\\\n !*** ./node_modules/geotiff/src/compression/index.js ***!\\n \\\\*******************************************************/\\n/*! exports provided: getDecoder */\\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\\n\\n\\\"use strict\\\";\\neval(\\\"__webpack_require__.r(__webpack_exports__);\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"getDecoder\\\\\\\", function() { return getDecoder; });\\\\n/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./raw */ \\\\\\\"./node_modules/geotiff/src/compression/raw.js\\\\\\\");\\\\n/* harmony import */ var _lzw__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./lzw */ \\\\\\\"./node_modules/geotiff/src/compression/lzw.js\\\\\\\");\\\\n/* harmony import */ var _jpeg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./jpeg */ \\\\\\\"./node_modules/geotiff/src/compression/jpeg.js\\\\\\\");\\\\n/* harmony import */ var _deflate__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./deflate */ \\\\\\\"./node_modules/geotiff/src/compression/deflate.js\\\\\\\");\\\\n/* harmony import */ var _packbits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./packbits */ \\\\\\\"./node_modules/geotiff/src/compression/packbits.js\\\\\\\");\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\nfunction getDecoder(fileDirectory) {\\\\n switch (fileDirectory.Compression) {\\\\n case undefined:\\\\n case 1: // no compression\\\\n return new _raw__WEBPACK_IMPORTED_MODULE_0__[\\\\\\\"default\\\\\\\"]();\\\\n case 5: // LZW\\\\n return new _lzw__WEBPACK_IMPORTED_MODULE_1__[\\\\\\\"default\\\\\\\"]();\\\\n case 6: // JPEG\\\\n throw new Error('old style JPEG compression is not supported.');\\\\n case 7: // JPEG\\\\n return new _jpeg__WEBPACK_IMPORTED_MODULE_2__[\\\\\\\"default\\\\\\\"](fileDirectory);\\\\n case 8: // Deflate as recognized by Adobe\\\\n case 32946: // Deflate GDAL default\\\\n return new _deflate__WEBPACK_IMPORTED_MODULE_3__[\\\\\\\"default\\\\\\\"]();\\\\n case 32773: // packbits\\\\n return new _packbits__WEBPACK_IMPORTED_MODULE_4__[\\\\\\\"default\\\\\\\"]();\\\\n default:\\\\n throw new Error(`Unknown compression method identifier: ${fileDirectory.Compression}`);\\\\n }\\\\n}\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/geotiff/src/compression/index.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/geotiff/src/compression/jpeg.js\\\":\\n/*!******************************************************!*\\\\\\n !*** ./node_modules/geotiff/src/compression/jpeg.js ***!\\n \\\\******************************************************/\\n/*! exports provided: default */\\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\\n\\n\\\"use strict\\\";\\neval(\\\"__webpack_require__.r(__webpack_exports__);\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"default\\\\\\\", function() { return JpegDecoder; });\\\\n/* harmony import */ var _basedecoder__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./basedecoder */ \\\\\\\"./node_modules/geotiff/src/compression/basedecoder.js\\\\\\\");\\\\n\\\\n\\\\n/* -*- tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- /\\\\n/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */\\\\n/*\\\\n Copyright 2011 notmasteryet\\\\n Licensed under the Apache License, Version 2.0 (the \\\\\\\"License\\\\\\\");\\\\n you may not use this file except in compliance with the License.\\\\n You may obtain a copy of the License at\\\\n http://www.apache.org/licenses/LICENSE-2.0\\\\n Unless required by applicable law or agreed to in writing, software\\\\n distributed under the License is distributed on an \\\\\\\"AS IS\\\\\\\" BASIS,\\\\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\\\\n See the License for the specific language governing permissions and\\\\n limitations under the License.\\\\n*/\\\\n\\\\n// - The JPEG specification can be found in the ITU CCITT Recommendation T.81\\\\n// (www.w3.org/Graphics/JPEG/itu-t81.pdf)\\\\n// - The JFIF specification can be found in the JPEG File Interchange Format\\\\n// (www.w3.org/Graphics/JPEG/jfif3.pdf)\\\\n// - The Adobe Application-Specific JPEG markers in the Supporting the DCT Filters\\\\n// in PostScript Level 2, Technical Note #5116\\\\n// (partners.adobe.com/public/developer/en/ps/sdk/5116.DCT_Filter.pdf)\\\\n\\\\n\\\\nconst dctZigZag = new Int32Array([\\\\n 0,\\\\n 1, 8,\\\\n 16, 9, 2,\\\\n 3, 10, 17, 24,\\\\n 32, 25, 18, 11, 4,\\\\n 5, 12, 19, 26, 33, 40,\\\\n 48, 41, 34, 27, 20, 13, 6,\\\\n 7, 14, 21, 28, 35, 42, 49, 56,\\\\n 57, 50, 43, 36, 29, 22, 15,\\\\n 23, 30, 37, 44, 51, 58,\\\\n 59, 52, 45, 38, 31,\\\\n 39, 46, 53, 60,\\\\n 61, 54, 47,\\\\n 55, 62,\\\\n 63,\\\\n]);\\\\n\\\\nconst dctCos1 = 4017; // cos(pi/16)\\\\nconst dctSin1 = 799; // sin(pi/16)\\\\nconst dctCos3 = 3406; // cos(3*pi/16)\\\\nconst dctSin3 = 2276; // sin(3*pi/16)\\\\nconst dctCos6 = 1567; // cos(6*pi/16)\\\\nconst dctSin6 = 3784; // sin(6*pi/16)\\\\nconst dctSqrt2 = 5793; // sqrt(2)\\\\nconst dctSqrt1d2 = 2896;// sqrt(2) / 2\\\\n\\\\nfunction buildHuffmanTable(codeLengths, values) {\\\\n let k = 0;\\\\n const code = [];\\\\n let length = 16;\\\\n while (length > 0 && !codeLengths[length - 1]) {\\\\n --length;\\\\n }\\\\n code.push({ children: [], index: 0 });\\\\n\\\\n let p = code[0];\\\\n let q;\\\\n for (let i = 0; i < length; i++) {\\\\n for (let j = 0; j < codeLengths[i]; j++) {\\\\n p = code.pop();\\\\n p.children[p.index] = values[k];\\\\n while (p.index > 0) {\\\\n p = code.pop();\\\\n }\\\\n p.index++;\\\\n code.push(p);\\\\n while (code.length <= i) {\\\\n code.push(q = { children: [], index: 0 });\\\\n p.children[p.index] = q.children;\\\\n p = q;\\\\n }\\\\n k++;\\\\n }\\\\n if (i + 1 < length) {\\\\n // p here points to last code\\\\n code.push(q = { children: [], index: 0 });\\\\n p.children[p.index] = q.children;\\\\n p = q;\\\\n }\\\\n }\\\\n return code[0].children;\\\\n}\\\\n\\\\nfunction decodeScan(data, initialOffset,\\\\n frame, components, resetInterval,\\\\n spectralStart, spectralEnd,\\\\n successivePrev, successive) {\\\\n const { mcusPerLine, progressive } = frame;\\\\n\\\\n const startOffset = initialOffset;\\\\n let offset = initialOffset;\\\\n let bitsData = 0;\\\\n let bitsCount = 0;\\\\n function readBit() {\\\\n if (bitsCount > 0) {\\\\n bitsCount--;\\\\n return (bitsData >> bitsCount) & 1;\\\\n }\\\\n bitsData = data[offset++];\\\\n if (bitsData === 0xFF) {\\\\n const nextByte = data[offset++];\\\\n if (nextByte) {\\\\n throw new Error(`unexpected marker: ${((bitsData << 8) | nextByte).toString(16)}`);\\\\n }\\\\n // unstuff 0\\\\n }\\\\n bitsCount = 7;\\\\n return bitsData >>> 7;\\\\n }\\\\n function decodeHuffman(tree) {\\\\n let node = tree;\\\\n let bit;\\\\n while ((bit = readBit()) !== null) { // eslint-disable-line no-cond-assign\\\\n node = node[bit];\\\\n if (typeof node === 'number') {\\\\n return node;\\\\n }\\\\n if (typeof node !== 'object') {\\\\n throw new Error('invalid huffman sequence');\\\\n }\\\\n }\\\\n return null;\\\\n }\\\\n function receive(initialLength) {\\\\n let length = initialLength;\\\\n let n = 0;\\\\n while (length > 0) {\\\\n const bit = readBit();\\\\n if (bit === null) {\\\\n return undefined;\\\\n }\\\\n n = (n << 1) | bit;\\\\n --length;\\\\n }\\\\n return n;\\\\n }\\\\n function receiveAndExtend(length) {\\\\n const n = receive(length);\\\\n if (n >= 1 << (length - 1)) {\\\\n return n;\\\\n }\\\\n return n + (-1 << length) + 1;\\\\n }\\\\n function decodeBaseline(component, zz) {\\\\n const t = decodeHuffman(component.huffmanTableDC);\\\\n const diff = t === 0 ? 0 : receiveAndExtend(t);\\\\n component.pred += diff;\\\\n zz[0] = component.pred;\\\\n let k = 1;\\\\n while (k < 64) {\\\\n const rs = decodeHuffman(component.huffmanTableAC);\\\\n const s = rs & 15;\\\\n const r = rs >> 4;\\\\n if (s === 0) {\\\\n if (r < 15) {\\\\n break;\\\\n }\\\\n k += 16;\\\\n } else {\\\\n k += r;\\\\n const z = dctZigZag[k];\\\\n zz[z] = receiveAndExtend(s);\\\\n k++;\\\\n }\\\\n }\\\\n }\\\\n function decodeDCFirst(component, zz) {\\\\n const t = decodeHuffman(component.huffmanTableDC);\\\\n const diff = t === 0 ? 0 : (receiveAndExtend(t) << successive);\\\\n component.pred += diff;\\\\n zz[0] = component.pred;\\\\n }\\\\n function decodeDCSuccessive(component, zz) {\\\\n zz[0] |= readBit() << successive;\\\\n }\\\\n let eobrun = 0;\\\\n function decodeACFirst(component, zz) {\\\\n if (eobrun > 0) {\\\\n eobrun--;\\\\n return;\\\\n }\\\\n let k = spectralStart;\\\\n const e = spectralEnd;\\\\n while (k <= e) {\\\\n const rs = decodeHuffman(component.huffmanTableAC);\\\\n const s = rs & 15;\\\\n const r = rs >> 4;\\\\n if (s === 0) {\\\\n if (r < 15) {\\\\n eobrun = receive(r) + (1 << r) - 1;\\\\n break;\\\\n }\\\\n k += 16;\\\\n } else {\\\\n k += r;\\\\n const z = dctZigZag[k];\\\\n zz[z] = receiveAndExtend(s) * (1 << successive);\\\\n k++;\\\\n }\\\\n }\\\\n }\\\\n let successiveACState = 0;\\\\n let successiveACNextValue;\\\\n function decodeACSuccessive(component, zz) {\\\\n let k = spectralStart;\\\\n const e = spectralEnd;\\\\n let r = 0;\\\\n while (k <= e) {\\\\n const z = dctZigZag[k];\\\\n const direction = zz[z] < 0 ? -1 : 1;\\\\n switch (successiveACState) {\\\\n case 0: { // initial state\\\\n const rs = decodeHuffman(component.huffmanTableAC);\\\\n const s = rs & 15;\\\\n r = rs >> 4;\\\\n if (s === 0) {\\\\n if (r < 15) {\\\\n eobrun = receive(r) + (1 << r);\\\\n successiveACState = 4;\\\\n } else {\\\\n r = 16;\\\\n successiveACState = 1;\\\\n }\\\\n } else {\\\\n if (s !== 1) {\\\\n throw new Error('invalid ACn encoding');\\\\n }\\\\n successiveACNextValue = receiveAndExtend(s);\\\\n successiveACState = r ? 2 : 3;\\\\n }\\\\n continue; // eslint-disable-line no-continue\\\\n }\\\\n case 1: // skipping r zero items\\\\n case 2:\\\\n if (zz[z]) {\\\\n zz[z] += (readBit() << successive) * direction;\\\\n } else {\\\\n r--;\\\\n if (r === 0) {\\\\n successiveACState = successiveACState === 2 ? 3 : 0;\\\\n }\\\\n }\\\\n break;\\\\n case 3: // set value for a zero item\\\\n if (zz[z]) {\\\\n zz[z] += (readBit() << successive) * direction;\\\\n } else {\\\\n zz[z] = successiveACNextValue << successive;\\\\n successiveACState = 0;\\\\n }\\\\n break;\\\\n case 4: // eob\\\\n if (zz[z]) {\\\\n zz[z] += (readBit() << successive) * direction;\\\\n }\\\\n break;\\\\n default:\\\\n break;\\\\n }\\\\n k++;\\\\n }\\\\n if (successiveACState === 4) {\\\\n eobrun--;\\\\n if (eobrun === 0) {\\\\n successiveACState = 0;\\\\n }\\\\n }\\\\n }\\\\n function decodeMcu(component, decodeFunction, mcu, row, col) {\\\\n const mcuRow = (mcu / mcusPerLine) | 0;\\\\n const mcuCol = mcu % mcusPerLine;\\\\n const blockRow = (mcuRow * component.v) + row;\\\\n const blockCol = (mcuCol * component.h) + col;\\\\n decodeFunction(component, component.blocks[blockRow][blockCol]);\\\\n }\\\\n function decodeBlock(component, decodeFunction, mcu) {\\\\n const blockRow = (mcu / component.blocksPerLine) | 0;\\\\n const blockCol = mcu % component.blocksPerLine;\\\\n decodeFunction(component, component.blocks[blockRow][blockCol]);\\\\n }\\\\n\\\\n const componentsLength = components.length;\\\\n let component;\\\\n let i;\\\\n let j;\\\\n let k;\\\\n let n;\\\\n let decodeFn;\\\\n if (progressive) {\\\\n if (spectralStart === 0) {\\\\n decodeFn = successivePrev === 0 ? decodeDCFirst : decodeDCSuccessive;\\\\n } else {\\\\n decodeFn = successivePrev === 0 ? decodeACFirst : decodeACSuccessive;\\\\n }\\\\n } else {\\\\n decodeFn = decodeBaseline;\\\\n }\\\\n\\\\n let mcu = 0;\\\\n let marker;\\\\n let mcuExpected;\\\\n if (componentsLength === 1) {\\\\n mcuExpected = components[0].blocksPerLine * components[0].blocksPerColumn;\\\\n } else {\\\\n mcuExpected = mcusPerLine * frame.mcusPerColumn;\\\\n }\\\\n\\\\n const usedResetInterval = resetInterval || mcuExpected;\\\\n\\\\n while (mcu < mcuExpected) {\\\\n // reset interval stuff\\\\n for (i = 0; i < componentsLength; i++) {\\\\n components[i].pred = 0;\\\\n }\\\\n eobrun = 0;\\\\n\\\\n if (componentsLength === 1) {\\\\n component = components[0];\\\\n for (n = 0; n < usedResetInterval; n++) {\\\\n decodeBlock(component, decodeFn, mcu);\\\\n mcu++;\\\\n }\\\\n } else {\\\\n for (n = 0; n < usedResetInterval; n++) {\\\\n for (i = 0; i < componentsLength; i++) {\\\\n component = components[i];\\\\n const { h, v } = component;\\\\n for (j = 0; j < v; j++) {\\\\n for (k = 0; k < h; k++) {\\\\n decodeMcu(component, decodeFn, mcu, j, k);\\\\n }\\\\n }\\\\n }\\\\n mcu++;\\\\n\\\\n // If we've reached our expected MCU's, stop decoding\\\\n if (mcu === mcuExpected) {\\\\n break;\\\\n }\\\\n }\\\\n }\\\\n\\\\n // find marker\\\\n bitsCount = 0;\\\\n marker = (data[offset] << 8) | data[offset + 1];\\\\n if (marker < 0xFF00) {\\\\n throw new Error('marker was not found');\\\\n }\\\\n\\\\n if (marker >= 0xFFD0 && marker <= 0xFFD7) { // RSTx\\\\n offset += 2;\\\\n } else {\\\\n break;\\\\n }\\\\n }\\\\n\\\\n return offset - startOffset;\\\\n}\\\\n\\\\nfunction buildComponentData(frame, component) {\\\\n const lines = [];\\\\n const { blocksPerLine, blocksPerColumn } = component;\\\\n const samplesPerLine = blocksPerLine << 3;\\\\n const R = new Int32Array(64);\\\\n const r = new Uint8Array(64);\\\\n\\\\n // A port of poppler's IDCT method which in turn is taken from:\\\\n // Christoph Loeffler, Adriaan Ligtenberg, George S. Moschytz,\\\\n // \\\\\\\"Practical Fast 1-D DCT Algorithms with 11 Multiplications\\\\\\\",\\\\n // IEEE Intl. Conf. on Acoustics, Speech & Signal Processing, 1989,\\\\n // 988-991.\\\\n function quantizeAndInverse(zz, dataOut, dataIn) {\\\\n const qt = component.quantizationTable;\\\\n let v0;\\\\n let v1;\\\\n let v2;\\\\n let v3;\\\\n let v4;\\\\n let v5;\\\\n let v6;\\\\n let v7;\\\\n let t;\\\\n const p = dataIn;\\\\n let i;\\\\n\\\\n // dequant\\\\n for (i = 0; i < 64; i++) {\\\\n p[i] = zz[i] * qt[i];\\\\n }\\\\n\\\\n // inverse DCT on rows\\\\n for (i = 0; i < 8; ++i) {\\\\n const row = 8 * i;\\\\n\\\\n // check for all-zero AC coefficients\\\\n if (p[1 + row] === 0 && p[2 + row] === 0 && p[3 + row] === 0\\\\n && p[4 + row] === 0 && p[5 + row] === 0 && p[6 + row] === 0\\\\n && p[7 + row] === 0) {\\\\n t = ((dctSqrt2 * p[0 + row]) + 512) >> 10;\\\\n p[0 + row] = t;\\\\n p[1 + row] = t;\\\\n p[2 + row] = t;\\\\n p[3 + row] = t;\\\\n p[4 + row] = t;\\\\n p[5 + row] = t;\\\\n p[6 + row] = t;\\\\n p[7 + row] = t;\\\\n continue; // eslint-disable-line no-continue\\\\n }\\\\n\\\\n // stage 4\\\\n v0 = ((dctSqrt2 * p[0 + row]) + 128) >> 8;\\\\n v1 = ((dctSqrt2 * p[4 + row]) + 128) >> 8;\\\\n v2 = p[2 + row];\\\\n v3 = p[6 + row];\\\\n v4 = ((dctSqrt1d2 * (p[1 + row] - p[7 + row])) + 128) >> 8;\\\\n v7 = ((dctSqrt1d2 * (p[1 + row] + p[7 + row])) + 128) >> 8;\\\\n v5 = p[3 + row] << 4;\\\\n v6 = p[5 + row] << 4;\\\\n\\\\n // stage 3\\\\n t = (v0 - v1 + 1) >> 1;\\\\n v0 = (v0 + v1 + 1) >> 1;\\\\n v1 = t;\\\\n t = ((v2 * dctSin6) + (v3 * dctCos6) + 128) >> 8;\\\\n v2 = ((v2 * dctCos6) - (v3 * dctSin6) + 128) >> 8;\\\\n v3 = t;\\\\n t = (v4 - v6 + 1) >> 1;\\\\n v4 = (v4 + v6 + 1) >> 1;\\\\n v6 = t;\\\\n t = (v7 + v5 + 1) >> 1;\\\\n v5 = (v7 - v5 + 1) >> 1;\\\\n v7 = t;\\\\n\\\\n // stage 2\\\\n t = (v0 - v3 + 1) >> 1;\\\\n v0 = (v0 + v3 + 1) >> 1;\\\\n v3 = t;\\\\n t = (v1 - v2 + 1) >> 1;\\\\n v1 = (v1 + v2 + 1) >> 1;\\\\n v2 = t;\\\\n t = ((v4 * dctSin3) + (v7 * dctCos3) + 2048) >> 12;\\\\n v4 = ((v4 * dctCos3) - (v7 * dctSin3) + 2048) >> 12;\\\\n v7 = t;\\\\n t = ((v5 * dctSin1) + (v6 * dctCos1) + 2048) >> 12;\\\\n v5 = ((v5 * dctCos1) - (v6 * dctSin1) + 2048) >> 12;\\\\n v6 = t;\\\\n\\\\n // stage 1\\\\n p[0 + row] = v0 + v7;\\\\n p[7 + row] = v0 - v7;\\\\n p[1 + row] = v1 + v6;\\\\n p[6 + row] = v1 - v6;\\\\n p[2 + row] = v2 + v5;\\\\n p[5 + row] = v2 - v5;\\\\n p[3 + row] = v3 + v4;\\\\n p[4 + row] = v3 - v4;\\\\n }\\\\n\\\\n // inverse DCT on columns\\\\n for (i = 0; i < 8; ++i) {\\\\n const col = i;\\\\n\\\\n // check for all-zero AC coefficients\\\\n if (p[(1 * 8) + col] === 0 && p[(2 * 8) + col] === 0 && p[(3 * 8) + col] === 0\\\\n && p[(4 * 8) + col] === 0 && p[(5 * 8) + col] === 0 && p[(6 * 8) + col] === 0\\\\n && p[(7 * 8) + col] === 0) {\\\\n t = ((dctSqrt2 * dataIn[i + 0]) + 8192) >> 14;\\\\n p[(0 * 8) + col] = t;\\\\n p[(1 * 8) + col] = t;\\\\n p[(2 * 8) + col] = t;\\\\n p[(3 * 8) + col] = t;\\\\n p[(4 * 8) + col] = t;\\\\n p[(5 * 8) + col] = t;\\\\n p[(6 * 8) + col] = t;\\\\n p[(7 * 8) + col] = t;\\\\n continue; // eslint-disable-line no-continue\\\\n }\\\\n\\\\n // stage 4\\\\n v0 = ((dctSqrt2 * p[(0 * 8) + col]) + 2048) >> 12;\\\\n v1 = ((dctSqrt2 * p[(4 * 8) + col]) + 2048) >> 12;\\\\n v2 = p[(2 * 8) + col];\\\\n v3 = p[(6 * 8) + col];\\\\n v4 = ((dctSqrt1d2 * (p[(1 * 8) + col] - p[(7 * 8) + col])) + 2048) >> 12;\\\\n v7 = ((dctSqrt1d2 * (p[(1 * 8) + col] + p[(7 * 8) + col])) + 2048) >> 12;\\\\n v5 = p[(3 * 8) + col];\\\\n v6 = p[(5 * 8) + col];\\\\n\\\\n // stage 3\\\\n t = (v0 - v1 + 1) >> 1;\\\\n v0 = (v0 + v1 + 1) >> 1;\\\\n v1 = t;\\\\n t = ((v2 * dctSin6) + (v3 * dctCos6) + 2048) >> 12;\\\\n v2 = ((v2 * dctCos6) - (v3 * dctSin6) + 2048) >> 12;\\\\n v3 = t;\\\\n t = (v4 - v6 + 1) >> 1;\\\\n v4 = (v4 + v6 + 1) >> 1;\\\\n v6 = t;\\\\n t = (v7 + v5 + 1) >> 1;\\\\n v5 = (v7 - v5 + 1) >> 1;\\\\n v7 = t;\\\\n\\\\n // stage 2\\\\n t = (v0 - v3 + 1) >> 1;\\\\n v0 = (v0 + v3 + 1) >> 1;\\\\n v3 = t;\\\\n t = (v1 - v2 + 1) >> 1;\\\\n v1 = (v1 + v2 + 1) >> 1;\\\\n v2 = t;\\\\n t = ((v4 * dctSin3) + (v7 * dctCos3) + 2048) >> 12;\\\\n v4 = ((v4 * dctCos3) - (v7 * dctSin3) + 2048) >> 12;\\\\n v7 = t;\\\\n t = ((v5 * dctSin1) + (v6 * dctCos1) + 2048) >> 12;\\\\n v5 = ((v5 * dctCos1) - (v6 * dctSin1) + 2048) >> 12;\\\\n v6 = t;\\\\n\\\\n // stage 1\\\\n p[(0 * 8) + col] = v0 + v7;\\\\n p[(7 * 8) + col] = v0 - v7;\\\\n p[(1 * 8) + col] = v1 + v6;\\\\n p[(6 * 8) + col] = v1 - v6;\\\\n p[(2 * 8) + col] = v2 + v5;\\\\n p[(5 * 8) + col] = v2 - v5;\\\\n p[(3 * 8) + col] = v3 + v4;\\\\n p[(4 * 8) + col] = v3 - v4;\\\\n }\\\\n\\\\n // convert to 8-bit integers\\\\n for (i = 0; i < 64; ++i) {\\\\n const sample = 128 + ((p[i] + 8) >> 4);\\\\n if (sample < 0) {\\\\n dataOut[i] = 0;\\\\n } else if (sample > 0XFF) {\\\\n dataOut[i] = 0xFF;\\\\n } else {\\\\n dataOut[i] = sample;\\\\n }\\\\n }\\\\n }\\\\n\\\\n for (let blockRow = 0; blockRow < blocksPerColumn; blockRow++) {\\\\n const scanLine = blockRow << 3;\\\\n for (let i = 0; i < 8; i++) {\\\\n lines.push(new Uint8Array(samplesPerLine));\\\\n }\\\\n for (let blockCol = 0; blockCol < blocksPerLine; blockCol++) {\\\\n quantizeAndInverse(component.blocks[blockRow][blockCol], r, R);\\\\n\\\\n let offset = 0;\\\\n const sample = blockCol << 3;\\\\n for (let j = 0; j < 8; j++) {\\\\n const line = lines[scanLine + j];\\\\n for (let i = 0; i < 8; i++) {\\\\n line[sample + i] = r[offset++];\\\\n }\\\\n }\\\\n }\\\\n }\\\\n return lines;\\\\n}\\\\n\\\\nclass JpegStreamReader {\\\\n constructor() {\\\\n this.jfif = null;\\\\n this.adobe = null;\\\\n\\\\n this.quantizationTables = [];\\\\n this.huffmanTablesAC = [];\\\\n this.huffmanTablesDC = [];\\\\n this.resetFrames();\\\\n }\\\\n\\\\n resetFrames() {\\\\n this.frames = [];\\\\n }\\\\n\\\\n parse(data) {\\\\n let offset = 0;\\\\n // const { length } = data;\\\\n function readUint16() {\\\\n const value = (data[offset] << 8) | data[offset + 1];\\\\n offset += 2;\\\\n return value;\\\\n }\\\\n function readDataBlock() {\\\\n const length = readUint16();\\\\n const array = data.subarray(offset, offset + length - 2);\\\\n offset += array.length;\\\\n return array;\\\\n }\\\\n function prepareComponents(frame) {\\\\n let maxH = 0;\\\\n let maxV = 0;\\\\n let component;\\\\n let componentId;\\\\n for (componentId in frame.components) {\\\\n if (frame.components.hasOwnProperty(componentId)) {\\\\n component = frame.components[componentId];\\\\n if (maxH < component.h) {\\\\n maxH = component.h;\\\\n }\\\\n if (maxV < component.v) {\\\\n maxV = component.v;\\\\n }\\\\n }\\\\n }\\\\n const mcusPerLine = Math.ceil(frame.samplesPerLine / 8 / maxH);\\\\n const mcusPerColumn = Math.ceil(frame.scanLines / 8 / maxV);\\\\n for (componentId in frame.components) {\\\\n if (frame.components.hasOwnProperty(componentId)) {\\\\n component = frame.components[componentId];\\\\n const blocksPerLine = Math.ceil(Math.ceil(frame.samplesPerLine / 8) * component.h / maxH);\\\\n const blocksPerColumn = Math.ceil(Math.ceil(frame.scanLines / 8) * component.v / maxV);\\\\n const blocksPerLineForMcu = mcusPerLine * component.h;\\\\n const blocksPerColumnForMcu = mcusPerColumn * component.v;\\\\n const blocks = [];\\\\n for (let i = 0; i < blocksPerColumnForMcu; i++) {\\\\n const row = [];\\\\n for (let j = 0; j < blocksPerLineForMcu; j++) {\\\\n row.push(new Int32Array(64));\\\\n }\\\\n blocks.push(row);\\\\n }\\\\n component.blocksPerLine = blocksPerLine;\\\\n component.blocksPerColumn = blocksPerColumn;\\\\n component.blocks = blocks;\\\\n }\\\\n }\\\\n frame.maxH = maxH;\\\\n frame.maxV = maxV;\\\\n frame.mcusPerLine = mcusPerLine;\\\\n frame.mcusPerColumn = mcusPerColumn;\\\\n }\\\\n\\\\n let fileMarker = readUint16();\\\\n if (fileMarker !== 0xFFD8) { // SOI (Start of Image)\\\\n throw new Error('SOI not found');\\\\n }\\\\n\\\\n fileMarker = readUint16();\\\\n while (fileMarker !== 0xFFD9) { // EOI (End of image)\\\\n switch (fileMarker) {\\\\n case 0xFF00: break;\\\\n case 0xFFE0: // APP0 (Application Specific)\\\\n case 0xFFE1: // APP1\\\\n case 0xFFE2: // APP2\\\\n case 0xFFE3: // APP3\\\\n case 0xFFE4: // APP4\\\\n case 0xFFE5: // APP5\\\\n case 0xFFE6: // APP6\\\\n case 0xFFE7: // APP7\\\\n case 0xFFE8: // APP8\\\\n case 0xFFE9: // APP9\\\\n case 0xFFEA: // APP10\\\\n case 0xFFEB: // APP11\\\\n case 0xFFEC: // APP12\\\\n case 0xFFED: // APP13\\\\n case 0xFFEE: // APP14\\\\n case 0xFFEF: // APP15\\\\n case 0xFFFE: { // COM (Comment)\\\\n const appData = readDataBlock();\\\\n\\\\n if (fileMarker === 0xFFE0) {\\\\n if (appData[0] === 0x4A && appData[1] === 0x46 && appData[2] === 0x49\\\\n && appData[3] === 0x46 && appData[4] === 0) { // 'JFIF\\\\\\\\x00'\\\\n this.jfif = {\\\\n version: { major: appData[5], minor: appData[6] },\\\\n densityUnits: appData[7],\\\\n xDensity: (appData[8] << 8) | appData[9],\\\\n yDensity: (appData[10] << 8) | appData[11],\\\\n thumbWidth: appData[12],\\\\n thumbHeight: appData[13],\\\\n thumbData: appData.subarray(14, 14 + (3 * appData[12] * appData[13])),\\\\n };\\\\n }\\\\n }\\\\n // TODO APP1 - Exif\\\\n if (fileMarker === 0xFFEE) {\\\\n if (appData[0] === 0x41 && appData[1] === 0x64 && appData[2] === 0x6F\\\\n && appData[3] === 0x62 && appData[4] === 0x65 && appData[5] === 0) { // 'Adobe\\\\\\\\x00'\\\\n this.adobe = {\\\\n version: appData[6],\\\\n flags0: (appData[7] << 8) | appData[8],\\\\n flags1: (appData[9] << 8) | appData[10],\\\\n transformCode: appData[11],\\\\n };\\\\n }\\\\n }\\\\n break;\\\\n }\\\\n\\\\n case 0xFFDB: { // DQT (Define Quantization Tables)\\\\n const quantizationTablesLength = readUint16();\\\\n const quantizationTablesEnd = quantizationTablesLength + offset - 2;\\\\n while (offset < quantizationTablesEnd) {\\\\n const quantizationTableSpec = data[offset++];\\\\n const tableData = new Int32Array(64);\\\\n if ((quantizationTableSpec >> 4) === 0) { // 8 bit values\\\\n for (let j = 0; j < 64; j++) {\\\\n const z = dctZigZag[j];\\\\n tableData[z] = data[offset++];\\\\n }\\\\n } else if ((quantizationTableSpec >> 4) === 1) { // 16 bit\\\\n for (let j = 0; j < 64; j++) {\\\\n const z = dctZigZag[j];\\\\n tableData[z] = readUint16();\\\\n }\\\\n } else {\\\\n throw new Error('DQT: invalid table spec');\\\\n }\\\\n this.quantizationTables[quantizationTableSpec & 15] = tableData;\\\\n }\\\\n break;\\\\n }\\\\n\\\\n case 0xFFC0: // SOF0 (Start of Frame, Baseline DCT)\\\\n case 0xFFC1: // SOF1 (Start of Frame, Extended DCT)\\\\n case 0xFFC2: { // SOF2 (Start of Frame, Progressive DCT)\\\\n readUint16(); // skip data length\\\\n const frame = {\\\\n extended: (fileMarker === 0xFFC1),\\\\n progressive: (fileMarker === 0xFFC2),\\\\n precision: data[offset++],\\\\n scanLines: readUint16(),\\\\n samplesPerLine: readUint16(),\\\\n components: {},\\\\n componentsOrder: [],\\\\n };\\\\n\\\\n const componentsCount = data[offset++];\\\\n let componentId;\\\\n // let maxH = 0;\\\\n // let maxV = 0;\\\\n for (let i = 0; i < componentsCount; i++) {\\\\n componentId = data[offset];\\\\n const h = data[offset + 1] >> 4;\\\\n const v = data[offset + 1] & 15;\\\\n const qId = data[offset + 2];\\\\n frame.componentsOrder.push(componentId);\\\\n frame.components[componentId] = {\\\\n h,\\\\n v,\\\\n quantizationIdx: qId,\\\\n };\\\\n offset += 3;\\\\n }\\\\n prepareComponents(frame);\\\\n this.frames.push(frame);\\\\n break;\\\\n }\\\\n\\\\n case 0xFFC4: { // DHT (Define Huffman Tables)\\\\n const huffmanLength = readUint16();\\\\n for (let i = 2; i < huffmanLength;) {\\\\n const huffmanTableSpec = data[offset++];\\\\n const codeLengths = new Uint8Array(16);\\\\n let codeLengthSum = 0;\\\\n for (let j = 0; j < 16; j++, offset++) {\\\\n codeLengths[j] = data[offset];\\\\n codeLengthSum += codeLengths[j];\\\\n }\\\\n const huffmanValues = new Uint8Array(codeLengthSum);\\\\n for (let j = 0; j < codeLengthSum; j++, offset++) {\\\\n huffmanValues[j] = data[offset];\\\\n }\\\\n i += 17 + codeLengthSum;\\\\n\\\\n if ((huffmanTableSpec >> 4) === 0) {\\\\n this.huffmanTablesDC[huffmanTableSpec & 15] = buildHuffmanTable(\\\\n codeLengths, huffmanValues,\\\\n );\\\\n } else {\\\\n this.huffmanTablesAC[huffmanTableSpec & 15] = buildHuffmanTable(\\\\n codeLengths, huffmanValues,\\\\n );\\\\n }\\\\n }\\\\n break;\\\\n }\\\\n\\\\n case 0xFFDD: // DRI (Define Restart Interval)\\\\n readUint16(); // skip data length\\\\n this.resetInterval = readUint16();\\\\n break;\\\\n\\\\n case 0xFFDA: { // SOS (Start of Scan)\\\\n readUint16(); // skip length\\\\n const selectorsCount = data[offset++];\\\\n const components = [];\\\\n const frame = this.frames[0];\\\\n for (let i = 0; i < selectorsCount; i++) {\\\\n const component = frame.components[data[offset++]];\\\\n const tableSpec = data[offset++];\\\\n component.huffmanTableDC = this.huffmanTablesDC[tableSpec >> 4];\\\\n component.huffmanTableAC = this.huffmanTablesAC[tableSpec & 15];\\\\n components.push(component);\\\\n }\\\\n const spectralStart = data[offset++];\\\\n const spectralEnd = data[offset++];\\\\n const successiveApproximation = data[offset++];\\\\n const processed = decodeScan(data, offset,\\\\n frame, components, this.resetInterval,\\\\n spectralStart, spectralEnd,\\\\n successiveApproximation >> 4, successiveApproximation & 15);\\\\n offset += processed;\\\\n break;\\\\n }\\\\n\\\\n case 0xFFFF: // Fill bytes\\\\n if (data[offset] !== 0xFF) { // Avoid skipping a valid marker.\\\\n offset--;\\\\n }\\\\n break;\\\\n\\\\n default:\\\\n if (data[offset - 3] === 0xFF\\\\n && data[offset - 2] >= 0xC0 && data[offset - 2] <= 0xFE) {\\\\n // could be incorrect encoding -- last 0xFF byte of the previous\\\\n // block was eaten by the encoder\\\\n offset -= 3;\\\\n break;\\\\n }\\\\n throw new Error(`unknown JPEG marker ${fileMarker.toString(16)}`);\\\\n }\\\\n fileMarker = readUint16();\\\\n }\\\\n }\\\\n\\\\n getResult() {\\\\n const { frames } = this;\\\\n if (this.frames.length === 0) {\\\\n throw new Error('no frames were decoded');\\\\n } else if (this.frames.length > 1) {\\\\n console.warn('more than one frame is not supported');\\\\n }\\\\n\\\\n // set each frame's components quantization table\\\\n for (let i = 0; i < this.frames.length; i++) {\\\\n const cp = this.frames[i].components;\\\\n for (const j of Object.keys(cp)) {\\\\n cp[j].quantizationTable = this.quantizationTables[cp[j].quantizationIdx];\\\\n delete cp[j].quantizationIdx;\\\\n }\\\\n }\\\\n\\\\n const frame = frames[0];\\\\n const { components, componentsOrder } = frame;\\\\n const outComponents = [];\\\\n const width = frame.samplesPerLine;\\\\n const height = frame.scanLines;\\\\n\\\\n for (let i = 0; i < componentsOrder.length; i++) {\\\\n const component = components[componentsOrder[i]];\\\\n outComponents.push({\\\\n lines: buildComponentData(frame, component),\\\\n scaleX: component.h / frame.maxH,\\\\n scaleY: component.v / frame.maxV,\\\\n });\\\\n }\\\\n\\\\n const out = new Uint8Array(width * height * outComponents.length);\\\\n let oi = 0;\\\\n for (let y = 0; y < height; ++y) {\\\\n for (let x = 0; x < width; ++x) {\\\\n for (let i = 0; i < outComponents.length; ++i) {\\\\n const component = outComponents[i];\\\\n out[oi] = component.lines[0 | y * component.scaleY][0 | x * component.scaleX];\\\\n ++oi;\\\\n }\\\\n }\\\\n }\\\\n return out;\\\\n }\\\\n}\\\\n\\\\nclass JpegDecoder extends _basedecoder__WEBPACK_IMPORTED_MODULE_0__[\\\\\\\"default\\\\\\\"] {\\\\n constructor(fileDirectory) {\\\\n super();\\\\n this.reader = new JpegStreamReader();\\\\n if (fileDirectory.JPEGTables) {\\\\n this.reader.parse(fileDirectory.JPEGTables);\\\\n }\\\\n }\\\\n\\\\n decodeBlock(buffer) {\\\\n this.reader.resetFrames();\\\\n this.reader.parse(new Uint8Array(buffer));\\\\n return this.reader.getResult().buffer;\\\\n }\\\\n}\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/geotiff/src/compression/jpeg.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/geotiff/src/compression/lzw.js\\\":\\n/*!*****************************************************!*\\\\\\n !*** ./node_modules/geotiff/src/compression/lzw.js ***!\\n \\\\*****************************************************/\\n/*! exports provided: default */\\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\\n\\n\\\"use strict\\\";\\neval(\\\"__webpack_require__.r(__webpack_exports__);\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"default\\\\\\\", function() { return LZWDecoder; });\\\\n/* harmony import */ var _basedecoder__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./basedecoder */ \\\\\\\"./node_modules/geotiff/src/compression/basedecoder.js\\\\\\\");\\\\n\\\\n\\\\n\\\\nconst MIN_BITS = 9;\\\\nconst CLEAR_CODE = 256; // clear code\\\\nconst EOI_CODE = 257; // end of information\\\\nconst MAX_BYTELENGTH = 12;\\\\n\\\\nfunction getByte(array, position, length) {\\\\n const d = position % 8;\\\\n const a = Math.floor(position / 8);\\\\n const de = 8 - d;\\\\n const ef = (position + length) - ((a + 1) * 8);\\\\n let fg = (8 * (a + 2)) - (position + length);\\\\n const dg = ((a + 2) * 8) - position;\\\\n fg = Math.max(0, fg);\\\\n if (a >= array.length) {\\\\n console.warn('ran off the end of the buffer before finding EOI_CODE (end on input code)');\\\\n return EOI_CODE;\\\\n }\\\\n let chunk1 = array[a] & ((2 ** (8 - d)) - 1);\\\\n chunk1 <<= (length - de);\\\\n let chunks = chunk1;\\\\n if (a + 1 < array.length) {\\\\n let chunk2 = array[a + 1] >>> fg;\\\\n chunk2 <<= Math.max(0, (length - dg));\\\\n chunks += chunk2;\\\\n }\\\\n if (ef > 8 && a + 2 < array.length) {\\\\n const hi = ((a + 3) * 8) - (position + length);\\\\n const chunk3 = array[a + 2] >>> hi;\\\\n chunks += chunk3;\\\\n }\\\\n return chunks;\\\\n}\\\\n\\\\nfunction appendReversed(dest, source) {\\\\n for (let i = source.length - 1; i >= 0; i--) {\\\\n dest.push(source[i]);\\\\n }\\\\n return dest;\\\\n}\\\\n\\\\nfunction decompress(input) {\\\\n const dictionaryIndex = new Uint16Array(4093);\\\\n const dictionaryChar = new Uint8Array(4093);\\\\n for (let i = 0; i <= 257; i++) {\\\\n dictionaryIndex[i] = 4096;\\\\n dictionaryChar[i] = i;\\\\n }\\\\n let dictionaryLength = 258;\\\\n let byteLength = MIN_BITS;\\\\n let position = 0;\\\\n\\\\n function initDictionary() {\\\\n dictionaryLength = 258;\\\\n byteLength = MIN_BITS;\\\\n }\\\\n function getNext(array) {\\\\n const byte = getByte(array, position, byteLength);\\\\n position += byteLength;\\\\n return byte;\\\\n }\\\\n function addToDictionary(i, c) {\\\\n dictionaryChar[dictionaryLength] = c;\\\\n dictionaryIndex[dictionaryLength] = i;\\\\n dictionaryLength++;\\\\n return dictionaryLength - 1;\\\\n }\\\\n function getDictionaryReversed(n) {\\\\n const rev = [];\\\\n for (let i = n; i !== 4096; i = dictionaryIndex[i]) {\\\\n rev.push(dictionaryChar[i]);\\\\n }\\\\n return rev;\\\\n }\\\\n\\\\n const result = [];\\\\n initDictionary();\\\\n const array = new Uint8Array(input);\\\\n let code = getNext(array);\\\\n let oldCode;\\\\n while (code !== EOI_CODE) {\\\\n if (code === CLEAR_CODE) {\\\\n initDictionary();\\\\n code = getNext(array);\\\\n while (code === CLEAR_CODE) {\\\\n code = getNext(array);\\\\n }\\\\n\\\\n if (code === EOI_CODE) {\\\\n break;\\\\n } else if (code > CLEAR_CODE) {\\\\n throw new Error(`corrupted code at scanline ${code}`);\\\\n } else {\\\\n const val = getDictionaryReversed(code);\\\\n appendReversed(result, val);\\\\n oldCode = code;\\\\n }\\\\n } else if (code < dictionaryLength) {\\\\n const val = getDictionaryReversed(code);\\\\n appendReversed(result, val);\\\\n addToDictionary(oldCode, val[val.length - 1]);\\\\n oldCode = code;\\\\n } else {\\\\n const oldVal = getDictionaryReversed(oldCode);\\\\n if (!oldVal) {\\\\n throw new Error(`Bogus entry. Not in dictionary, ${oldCode} / ${dictionaryLength}, position: ${position}`);\\\\n }\\\\n appendReversed(result, oldVal);\\\\n result.push(oldVal[oldVal.length - 1]);\\\\n addToDictionary(oldCode, oldVal[oldVal.length - 1]);\\\\n oldCode = code;\\\\n }\\\\n\\\\n if (dictionaryLength + 1 >= (2 ** byteLength)) {\\\\n if (byteLength === MAX_BYTELENGTH) {\\\\n oldCode = undefined;\\\\n } else {\\\\n byteLength++;\\\\n }\\\\n }\\\\n code = getNext(array);\\\\n }\\\\n return new Uint8Array(result);\\\\n}\\\\n\\\\nclass LZWDecoder extends _basedecoder__WEBPACK_IMPORTED_MODULE_0__[\\\\\\\"default\\\\\\\"] {\\\\n decodeBlock(buffer) {\\\\n return decompress(buffer, false).buffer;\\\\n }\\\\n}\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/geotiff/src/compression/lzw.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/geotiff/src/compression/packbits.js\\\":\\n/*!**********************************************************!*\\\\\\n !*** ./node_modules/geotiff/src/compression/packbits.js ***!\\n \\\\**********************************************************/\\n/*! exports provided: default */\\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\\n\\n\\\"use strict\\\";\\neval(\\\"__webpack_require__.r(__webpack_exports__);\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"default\\\\\\\", function() { return PackbitsDecoder; });\\\\n/* harmony import */ var _basedecoder__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./basedecoder */ \\\\\\\"./node_modules/geotiff/src/compression/basedecoder.js\\\\\\\");\\\\n\\\\n\\\\n\\\\nclass PackbitsDecoder extends _basedecoder__WEBPACK_IMPORTED_MODULE_0__[\\\\\\\"default\\\\\\\"] {\\\\n decodeBlock(buffer) {\\\\n const dataView = new DataView(buffer);\\\\n const out = [];\\\\n\\\\n for (let i = 0; i < buffer.byteLength; ++i) {\\\\n let header = dataView.getInt8(i);\\\\n if (header < 0) {\\\\n const next = dataView.getUint8(i + 1);\\\\n header = -header;\\\\n for (let j = 0; j <= header; ++j) {\\\\n out.push(next);\\\\n }\\\\n i += 1;\\\\n } else {\\\\n for (let j = 0; j <= header; ++j) {\\\\n out.push(dataView.getUint8(i + j + 1));\\\\n }\\\\n i += header + 1;\\\\n }\\\\n }\\\\n return new Uint8Array(out).buffer;\\\\n }\\\\n}\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/geotiff/src/compression/packbits.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/geotiff/src/compression/raw.js\\\":\\n/*!*****************************************************!*\\\\\\n !*** ./node_modules/geotiff/src/compression/raw.js ***!\\n \\\\*****************************************************/\\n/*! exports provided: default */\\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\\n\\n\\\"use strict\\\";\\neval(\\\"__webpack_require__.r(__webpack_exports__);\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"default\\\\\\\", function() { return RawDecoder; });\\\\n/* harmony import */ var _basedecoder__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./basedecoder */ \\\\\\\"./node_modules/geotiff/src/compression/basedecoder.js\\\\\\\");\\\\n\\\\n\\\\n\\\\nclass RawDecoder extends _basedecoder__WEBPACK_IMPORTED_MODULE_0__[\\\\\\\"default\\\\\\\"] {\\\\n decodeBlock(buffer) {\\\\n return buffer;\\\\n }\\\\n}\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/geotiff/src/compression/raw.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/geotiff/src/dataslice.js\\\":\\n/*!***********************************************!*\\\\\\n !*** ./node_modules/geotiff/src/dataslice.js ***!\\n \\\\***********************************************/\\n/*! exports provided: default */\\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\\n\\n\\\"use strict\\\";\\neval(\\\"__webpack_require__.r(__webpack_exports__);\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"default\\\\\\\", function() { return DataSlice; });\\\\nclass DataSlice {\\\\n constructor(arrayBuffer, sliceOffset, littleEndian, bigTiff) {\\\\n this._dataView = new DataView(arrayBuffer);\\\\n this._sliceOffset = sliceOffset;\\\\n this._littleEndian = littleEndian;\\\\n this._bigTiff = bigTiff;\\\\n }\\\\n\\\\n get sliceOffset() {\\\\n return this._sliceOffset;\\\\n }\\\\n\\\\n get sliceTop() {\\\\n return this._sliceOffset + this.buffer.byteLength;\\\\n }\\\\n\\\\n get littleEndian() {\\\\n return this._littleEndian;\\\\n }\\\\n\\\\n get bigTiff() {\\\\n return this._bigTiff;\\\\n }\\\\n\\\\n get buffer() {\\\\n return this._dataView.buffer;\\\\n }\\\\n\\\\n covers(offset, length) {\\\\n return this.sliceOffset <= offset && this.sliceTop >= offset + length;\\\\n }\\\\n\\\\n readUint8(offset) {\\\\n return this._dataView.getUint8(\\\\n offset - this._sliceOffset, this._littleEndian,\\\\n );\\\\n }\\\\n\\\\n readInt8(offset) {\\\\n return this._dataView.getInt8(\\\\n offset - this._sliceOffset, this._littleEndian,\\\\n );\\\\n }\\\\n\\\\n readUint16(offset) {\\\\n return this._dataView.getUint16(\\\\n offset - this._sliceOffset, this._littleEndian,\\\\n );\\\\n }\\\\n\\\\n readInt16(offset) {\\\\n return this._dataView.getInt16(\\\\n offset - this._sliceOffset, this._littleEndian,\\\\n );\\\\n }\\\\n\\\\n readUint32(offset) {\\\\n return this._dataView.getUint32(\\\\n offset - this._sliceOffset, this._littleEndian,\\\\n );\\\\n }\\\\n\\\\n readInt32(offset) {\\\\n return this._dataView.getInt32(\\\\n offset - this._sliceOffset, this._littleEndian,\\\\n );\\\\n }\\\\n\\\\n readFloat32(offset) {\\\\n return this._dataView.getFloat32(\\\\n offset - this._sliceOffset, this._littleEndian,\\\\n );\\\\n }\\\\n\\\\n readFloat64(offset) {\\\\n return this._dataView.getFloat64(\\\\n offset - this._sliceOffset, this._littleEndian,\\\\n );\\\\n }\\\\n\\\\n readUint64(offset) {\\\\n const left = this.readUint32(offset);\\\\n const right = this.readUint32(offset + 4);\\\\n let combined;\\\\n if (this._littleEndian) {\\\\n combined = left + 2 ** 32 * right;\\\\n if (!Number.isSafeInteger(combined)) {\\\\n throw new Error(\\\\n `${combined} exceeds MAX_SAFE_INTEGER. Precision may be lost. Please report if you get this message to https://github.com/geotiffjs/geotiff.js/issues`,\\\\n );\\\\n }\\\\n return combined;\\\\n }\\\\n combined = 2 ** 32 * left + right;\\\\n if (!Number.isSafeInteger(combined)) {\\\\n throw new Error(\\\\n `${combined} exceeds MAX_SAFE_INTEGER. Precision may be lost. Please report if you get this message to https://github.com/geotiffjs/geotiff.js/issues`,\\\\n );\\\\n }\\\\n\\\\n return combined;\\\\n }\\\\n\\\\n // adapted from https://stackoverflow.com/a/55338384/8060591\\\\n readInt64(offset) {\\\\n let value = 0;\\\\n const isNegative =\\\\n (this._dataView.getUint8(offset + (this._littleEndian ? 7 : 0)) & 0x80) >\\\\n 0;\\\\n let carrying = true;\\\\n for (let i = 0; i < 8; i++) {\\\\n let byte = this._dataView.getUint8(\\\\n offset + (this._littleEndian ? i : 7 - i)\\\\n );\\\\n if (isNegative) {\\\\n if (carrying) {\\\\n if (byte !== 0x00) {\\\\n byte = ~(byte - 1) & 0xff;\\\\n carrying = false;\\\\n }\\\\n } else {\\\\n byte = ~byte & 0xff;\\\\n }\\\\n }\\\\n value += byte * 256 ** i;\\\\n }\\\\n if (isNegative) {\\\\n value = -value;\\\\n }\\\\n return value\\\\n }\\\\n\\\\n readOffset(offset) {\\\\n if (this._bigTiff) {\\\\n return this.readUint64(offset);\\\\n }\\\\n return this.readUint32(offset);\\\\n }\\\\n}\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/geotiff/src/dataslice.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/geotiff/src/dataview64.js\\\":\\n/*!************************************************!*\\\\\\n !*** ./node_modules/geotiff/src/dataview64.js ***!\\n \\\\************************************************/\\n/*! exports provided: default */\\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\\n\\n\\\"use strict\\\";\\neval(\\\"__webpack_require__.r(__webpack_exports__);\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"default\\\\\\\", function() { return DataView64; });\\\\nclass DataView64 {\\\\n constructor(arrayBuffer) {\\\\n this._dataView = new DataView(arrayBuffer);\\\\n }\\\\n\\\\n get buffer() {\\\\n return this._dataView.buffer;\\\\n }\\\\n\\\\n getUint64(offset, littleEndian) {\\\\n const left = this.getUint32(offset, littleEndian);\\\\n const right = this.getUint32(offset + 4, littleEndian);\\\\n let combined;\\\\n if (littleEndian) {\\\\n combined = left + 2 ** 32 * right;\\\\n if (!Number.isSafeInteger(combined)) {\\\\n throw new Error(\\\\n `${combined} exceeds MAX_SAFE_INTEGER. Precision may be lost. Please report if you get this message to https://github.com/geotiffjs/geotiff.js/issues`\\\\n );\\\\n }\\\\n return combined;\\\\n }\\\\n combined = 2 ** 32 * left + right;\\\\n if (!Number.isSafeInteger(combined)) {\\\\n throw new Error(\\\\n `${combined} exceeds MAX_SAFE_INTEGER. Precision may be lost. Please report if you get this message to https://github.com/geotiffjs/geotiff.js/issues`\\\\n );\\\\n }\\\\n\\\\n return combined;\\\\n }\\\\n\\\\n // adapted from https://stackoverflow.com/a/55338384/8060591\\\\n getInt64(offset, littleEndian) {\\\\n let value = 0;\\\\n const isNegative =\\\\n (this._dataView.getUint8(offset + (littleEndian ? 7 : 0)) & 0x80) > 0;\\\\n let carrying = true;\\\\n for (let i = 0; i < 8; i++) {\\\\n let byte = this._dataView.getUint8(offset + (littleEndian ? i : 7 - i));\\\\n if (isNegative) {\\\\n if (carrying) {\\\\n if (byte !== 0x00) {\\\\n byte = ~(byte - 1) & 0xff;\\\\n carrying = false;\\\\n }\\\\n } else {\\\\n byte = ~byte & 0xff;\\\\n }\\\\n }\\\\n value += byte * 256 ** i;\\\\n }\\\\n if (isNegative) {\\\\n value = -value;\\\\n }\\\\n return value;\\\\n }\\\\n\\\\n getUint8(offset, littleEndian) {\\\\n return this._dataView.getUint8(offset, littleEndian);\\\\n }\\\\n\\\\n getInt8(offset, littleEndian) {\\\\n return this._dataView.getInt8(offset, littleEndian);\\\\n }\\\\n\\\\n getUint16(offset, littleEndian) {\\\\n return this._dataView.getUint16(offset, littleEndian);\\\\n }\\\\n\\\\n getInt16(offset, littleEndian) {\\\\n return this._dataView.getInt16(offset, littleEndian);\\\\n }\\\\n\\\\n getUint32(offset, littleEndian) {\\\\n return this._dataView.getUint32(offset, littleEndian);\\\\n }\\\\n\\\\n getInt32(offset, littleEndian) {\\\\n return this._dataView.getInt32(offset, littleEndian);\\\\n }\\\\n\\\\n getFloat32(offset, littleEndian) {\\\\n return this._dataView.getFloat32(offset, littleEndian);\\\\n }\\\\n\\\\n getFloat64(offset, littleEndian) {\\\\n return this._dataView.getFloat64(offset, littleEndian);\\\\n }\\\\n}\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/geotiff/src/dataview64.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/geotiff/src/geotiff.js\\\":\\n/*!*********************************************!*\\\\\\n !*** ./node_modules/geotiff/src/geotiff.js ***!\\n \\\\*********************************************/\\n/*! exports provided: globals, rgb, getDecoder, setLogger, GeoTIFF, default, MultiGeoTIFF, fromUrl, fromArrayBuffer, fromFile, fromBlob, fromUrls, writeArrayBuffer, Pool */\\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\\n\\n\\\"use strict\\\";\\neval(\\\"__webpack_require__.r(__webpack_exports__);\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"GeoTIFF\\\\\\\", function() { return GeoTIFF; });\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"MultiGeoTIFF\\\\\\\", function() { return MultiGeoTIFF; });\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"fromUrl\\\\\\\", function() { return fromUrl; });\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"fromArrayBuffer\\\\\\\", function() { return fromArrayBuffer; });\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"fromFile\\\\\\\", function() { return fromFile; });\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"fromBlob\\\\\\\", function() { return fromBlob; });\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"fromUrls\\\\\\\", function() { return fromUrls; });\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"writeArrayBuffer\\\\\\\", function() { return writeArrayBuffer; });\\\\n/* harmony import */ var _geotiffimage__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./geotiffimage */ \\\\\\\"./node_modules/geotiff/src/geotiffimage.js\\\\\\\");\\\\n/* harmony import */ var _dataview64__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./dataview64 */ \\\\\\\"./node_modules/geotiff/src/dataview64.js\\\\\\\");\\\\n/* harmony import */ var _dataslice__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./dataslice */ \\\\\\\"./node_modules/geotiff/src/dataslice.js\\\\\\\");\\\\n/* harmony import */ var _pool__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./pool */ \\\\\\\"./node_modules/geotiff/src/pool.js\\\\\\\");\\\\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"Pool\\\\\\\", function() { return _pool__WEBPACK_IMPORTED_MODULE_3__[\\\\\\\"default\\\\\\\"]; });\\\\n\\\\n/* harmony import */ var _source__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./source */ \\\\\\\"./node_modules/geotiff/src/source.js\\\\\\\");\\\\n/* harmony import */ var _globals__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./globals */ \\\\\\\"./node_modules/geotiff/src/globals.js\\\\\\\");\\\\n/* harmony import */ var _geotiffwriter__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./geotiffwriter */ \\\\\\\"./node_modules/geotiff/src/geotiffwriter.js\\\\\\\");\\\\n/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"globals\\\\\\\", function() { return _globals__WEBPACK_IMPORTED_MODULE_5__; });\\\\n/* harmony import */ var _rgb__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./rgb */ \\\\\\\"./node_modules/geotiff/src/rgb.js\\\\\\\");\\\\n/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"rgb\\\\\\\", function() { return _rgb__WEBPACK_IMPORTED_MODULE_7__; });\\\\n/* harmony import */ var _compression__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./compression */ \\\\\\\"./node_modules/geotiff/src/compression/index.js\\\\\\\");\\\\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"getDecoder\\\\\\\", function() { return _compression__WEBPACK_IMPORTED_MODULE_8__[\\\\\\\"getDecoder\\\\\\\"]; });\\\\n\\\\n/* harmony import */ var _logging__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./logging */ \\\\\\\"./node_modules/geotiff/src/logging.js\\\\\\\");\\\\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"setLogger\\\\\\\", function() { return _logging__WEBPACK_IMPORTED_MODULE_9__[\\\\\\\"setLogger\\\\\\\"]; });\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\nfunction getFieldTypeLength(fieldType) {\\\\n switch (fieldType) {\\\\n case _globals__WEBPACK_IMPORTED_MODULE_5__[\\\\\\\"fieldTypes\\\\\\\"].BYTE: case _globals__WEBPACK_IMPORTED_MODULE_5__[\\\\\\\"fieldTypes\\\\\\\"].ASCII: case _globals__WEBPACK_IMPORTED_MODULE_5__[\\\\\\\"fieldTypes\\\\\\\"].SBYTE: case _globals__WEBPACK_IMPORTED_MODULE_5__[\\\\\\\"fieldTypes\\\\\\\"].UNDEFINED:\\\\n return 1;\\\\n case _globals__WEBPACK_IMPORTED_MODULE_5__[\\\\\\\"fieldTypes\\\\\\\"].SHORT: case _globals__WEBPACK_IMPORTED_MODULE_5__[\\\\\\\"fieldTypes\\\\\\\"].SSHORT:\\\\n return 2;\\\\n case _globals__WEBPACK_IMPORTED_MODULE_5__[\\\\\\\"fieldTypes\\\\\\\"].LONG: case _globals__WEBPACK_IMPORTED_MODULE_5__[\\\\\\\"fieldTypes\\\\\\\"].SLONG: case _globals__WEBPACK_IMPORTED_MODULE_5__[\\\\\\\"fieldTypes\\\\\\\"].FLOAT: case _globals__WEBPACK_IMPORTED_MODULE_5__[\\\\\\\"fieldTypes\\\\\\\"].IFD:\\\\n return 4;\\\\n case _globals__WEBPACK_IMPORTED_MODULE_5__[\\\\\\\"fieldTypes\\\\\\\"].RATIONAL: case _globals__WEBPACK_IMPORTED_MODULE_5__[\\\\\\\"fieldTypes\\\\\\\"].SRATIONAL: case _globals__WEBPACK_IMPORTED_MODULE_5__[\\\\\\\"fieldTypes\\\\\\\"].DOUBLE:\\\\n case _globals__WEBPACK_IMPORTED_MODULE_5__[\\\\\\\"fieldTypes\\\\\\\"].LONG8: case _globals__WEBPACK_IMPORTED_MODULE_5__[\\\\\\\"fieldTypes\\\\\\\"].SLONG8: case _globals__WEBPACK_IMPORTED_MODULE_5__[\\\\\\\"fieldTypes\\\\\\\"].IFD8:\\\\n return 8;\\\\n default:\\\\n throw new RangeError(`Invalid field type: ${fieldType}`);\\\\n }\\\\n}\\\\n\\\\nfunction parseGeoKeyDirectory(fileDirectory) {\\\\n const rawGeoKeyDirectory = fileDirectory.GeoKeyDirectory;\\\\n if (!rawGeoKeyDirectory) {\\\\n return null;\\\\n }\\\\n\\\\n const geoKeyDirectory = {};\\\\n for (let i = 4; i <= rawGeoKeyDirectory[3] * 4; i += 4) {\\\\n const key = _globals__WEBPACK_IMPORTED_MODULE_5__[\\\\\\\"geoKeyNames\\\\\\\"][rawGeoKeyDirectory[i]];\\\\n const location = (rawGeoKeyDirectory[i + 1])\\\\n ? (_globals__WEBPACK_IMPORTED_MODULE_5__[\\\\\\\"fieldTagNames\\\\\\\"][rawGeoKeyDirectory[i + 1]]) : null;\\\\n const count = rawGeoKeyDirectory[i + 2];\\\\n const offset = rawGeoKeyDirectory[i + 3];\\\\n\\\\n let value = null;\\\\n if (!location) {\\\\n value = offset;\\\\n } else {\\\\n value = fileDirectory[location];\\\\n if (typeof value === 'undefined' || value === null) {\\\\n throw new Error(`Could not get value of geoKey '${key}'.`);\\\\n } else if (typeof value === 'string') {\\\\n value = value.substring(offset, offset + count - 1);\\\\n } else if (value.subarray) {\\\\n value = value.subarray(offset, offset + count);\\\\n if (count === 1) {\\\\n value = value[0];\\\\n }\\\\n }\\\\n }\\\\n geoKeyDirectory[key] = value;\\\\n }\\\\n return geoKeyDirectory;\\\\n}\\\\n\\\\nfunction getValues(dataSlice, fieldType, count, offset) {\\\\n let values = null;\\\\n let readMethod = null;\\\\n const fieldTypeLength = getFieldTypeLength(fieldType);\\\\n\\\\n switch (fieldType) {\\\\n case _globals__WEBPACK_IMPORTED_MODULE_5__[\\\\\\\"fieldTypes\\\\\\\"].BYTE: case _globals__WEBPACK_IMPORTED_MODULE_5__[\\\\\\\"fieldTypes\\\\\\\"].ASCII: case _globals__WEBPACK_IMPORTED_MODULE_5__[\\\\\\\"fieldTypes\\\\\\\"].UNDEFINED:\\\\n values = new Uint8Array(count); readMethod = dataSlice.readUint8;\\\\n break;\\\\n case _globals__WEBPACK_IMPORTED_MODULE_5__[\\\\\\\"fieldTypes\\\\\\\"].SBYTE:\\\\n values = new Int8Array(count); readMethod = dataSlice.readInt8;\\\\n break;\\\\n case _globals__WEBPACK_IMPORTED_MODULE_5__[\\\\\\\"fieldTypes\\\\\\\"].SHORT:\\\\n values = new Uint16Array(count); readMethod = dataSlice.readUint16;\\\\n break;\\\\n case _globals__WEBPACK_IMPORTED_MODULE_5__[\\\\\\\"fieldTypes\\\\\\\"].SSHORT:\\\\n values = new Int16Array(count); readMethod = dataSlice.readInt16;\\\\n break;\\\\n case _globals__WEBPACK_IMPORTED_MODULE_5__[\\\\\\\"fieldTypes\\\\\\\"].LONG: case _globals__WEBPACK_IMPORTED_MODULE_5__[\\\\\\\"fieldTypes\\\\\\\"].IFD:\\\\n values = new Uint32Array(count); readMethod = dataSlice.readUint32;\\\\n break;\\\\n case _globals__WEBPACK_IMPORTED_MODULE_5__[\\\\\\\"fieldTypes\\\\\\\"].SLONG:\\\\n values = new Int32Array(count); readMethod = dataSlice.readInt32;\\\\n break;\\\\n case _globals__WEBPACK_IMPORTED_MODULE_5__[\\\\\\\"fieldTypes\\\\\\\"].LONG8: case _globals__WEBPACK_IMPORTED_MODULE_5__[\\\\\\\"fieldTypes\\\\\\\"].IFD8:\\\\n values = new Array(count); readMethod = dataSlice.readUint64;\\\\n break;\\\\n case _globals__WEBPACK_IMPORTED_MODULE_5__[\\\\\\\"fieldTypes\\\\\\\"].SLONG8:\\\\n values = new Array(count); readMethod = dataSlice.readInt64;\\\\n break;\\\\n case _globals__WEBPACK_IMPORTED_MODULE_5__[\\\\\\\"fieldTypes\\\\\\\"].RATIONAL:\\\\n values = new Uint32Array(count * 2); readMethod = dataSlice.readUint32;\\\\n break;\\\\n case _globals__WEBPACK_IMPORTED_MODULE_5__[\\\\\\\"fieldTypes\\\\\\\"].SRATIONAL:\\\\n values = new Int32Array(count * 2); readMethod = dataSlice.readInt32;\\\\n break;\\\\n case _globals__WEBPACK_IMPORTED_MODULE_5__[\\\\\\\"fieldTypes\\\\\\\"].FLOAT:\\\\n values = new Float32Array(count); readMethod = dataSlice.readFloat32;\\\\n break;\\\\n case _globals__WEBPACK_IMPORTED_MODULE_5__[\\\\\\\"fieldTypes\\\\\\\"].DOUBLE:\\\\n values = new Float64Array(count); readMethod = dataSlice.readFloat64;\\\\n break;\\\\n default:\\\\n throw new RangeError(`Invalid field type: ${fieldType}`);\\\\n }\\\\n\\\\n // normal fields\\\\n if (!(fieldType === _globals__WEBPACK_IMPORTED_MODULE_5__[\\\\\\\"fieldTypes\\\\\\\"].RATIONAL || fieldType === _globals__WEBPACK_IMPORTED_MODULE_5__[\\\\\\\"fieldTypes\\\\\\\"].SRATIONAL)) {\\\\n for (let i = 0; i < count; ++i) {\\\\n values[i] = readMethod.call(\\\\n dataSlice, offset + (i * fieldTypeLength),\\\\n );\\\\n }\\\\n } else { // RATIONAL or SRATIONAL\\\\n for (let i = 0; i < count; i += 2) {\\\\n values[i] = readMethod.call(\\\\n dataSlice, offset + (i * fieldTypeLength),\\\\n );\\\\n values[i + 1] = readMethod.call(\\\\n dataSlice, offset + ((i * fieldTypeLength) + 4),\\\\n );\\\\n }\\\\n }\\\\n\\\\n if (fieldType === _globals__WEBPACK_IMPORTED_MODULE_5__[\\\\\\\"fieldTypes\\\\\\\"].ASCII) {\\\\n return String.fromCharCode.apply(null, values);\\\\n }\\\\n return values;\\\\n}\\\\n\\\\n/**\\\\n * Data class to store the parsed file directory, geo key directory and\\\\n * offset to the next IFD\\\\n */\\\\nclass ImageFileDirectory {\\\\n constructor(fileDirectory, geoKeyDirectory, nextIFDByteOffset) {\\\\n this.fileDirectory = fileDirectory;\\\\n this.geoKeyDirectory = geoKeyDirectory;\\\\n this.nextIFDByteOffset = nextIFDByteOffset;\\\\n }\\\\n}\\\\n\\\\n/**\\\\n * Error class for cases when an IFD index was requested, that does not exist\\\\n * in the file.\\\\n */\\\\nclass GeoTIFFImageIndexError extends Error {\\\\n constructor(index) {\\\\n super(`No image at index ${index}`);\\\\n this.index = index;\\\\n }\\\\n}\\\\n\\\\n\\\\nclass GeoTIFFBase {\\\\n /**\\\\n * (experimental) Reads raster data from the best fitting image. This function uses\\\\n * the image with the lowest resolution that is still a higher resolution than the\\\\n * requested resolution.\\\\n * When specified, the `bbox` option is translated to the `window` option and the\\\\n * `resX` and `resY` to `width` and `height` respectively.\\\\n * Then, the [readRasters]{@link GeoTIFFImage#readRasters} method of the selected\\\\n * image is called and the result returned.\\\\n * @see GeoTIFFImage.readRasters\\\\n * @param {Object} [options={}] optional parameters\\\\n * @param {Array} [options.window=whole image] the subset to read data from.\\\\n * @param {Array} [options.bbox=whole image] the subset to read data from in\\\\n * geographical coordinates.\\\\n * @param {Array} [options.samples=all samples] the selection of samples to read from.\\\\n * @param {Boolean} [options.interleave=false] whether the data shall be read\\\\n * in one single array or separate\\\\n * arrays.\\\\n * @param {Number} [options.pool=null] The optional decoder pool to use.\\\\n * @param {Number} [options.width] The desired width of the output. When the width is not the\\\\n * same as the images, resampling will be performed.\\\\n * @param {Number} [options.height] The desired height of the output. When the width is not the\\\\n * same as the images, resampling will be performed.\\\\n * @param {String} [options.resampleMethod='nearest'] The desired resampling method.\\\\n * @param {Number|Number[]} [options.fillValue] The value to use for parts of the image\\\\n * outside of the images extent. When multiple\\\\n * samples are requested, an array of fill values\\\\n * can be passed.\\\\n * @returns {Promise.<(TypedArray|TypedArray[])>} the decoded arrays as a promise\\\\n */\\\\n async readRasters(options = {}) {\\\\n const { window: imageWindow, width, height } = options;\\\\n let { resX, resY, bbox } = options;\\\\n\\\\n const firstImage = await this.getImage();\\\\n let usedImage = firstImage;\\\\n const imageCount = await this.getImageCount();\\\\n const imgBBox = firstImage.getBoundingBox();\\\\n\\\\n if (imageWindow && bbox) {\\\\n throw new Error('Both \\\\\\\"bbox\\\\\\\" and \\\\\\\"window\\\\\\\" passed.');\\\\n }\\\\n\\\\n // if width/height is passed, transform it to resolution\\\\n if (width || height) {\\\\n // if we have an image window (pixel coordinates), transform it to a BBox\\\\n // using the origin/resolution of the first image.\\\\n if (imageWindow) {\\\\n const [oX, oY] = firstImage.getOrigin();\\\\n const [rX, rY] = firstImage.getResolution();\\\\n\\\\n bbox = [\\\\n oX + (imageWindow[0] * rX),\\\\n oY + (imageWindow[1] * rY),\\\\n oX + (imageWindow[2] * rX),\\\\n oY + (imageWindow[3] * rY),\\\\n ];\\\\n }\\\\n\\\\n // if we have a bbox (or calculated one)\\\\n\\\\n const usedBBox = bbox || imgBBox;\\\\n\\\\n if (width) {\\\\n if (resX) {\\\\n throw new Error('Both width and resX passed');\\\\n }\\\\n resX = (usedBBox[2] - usedBBox[0]) / width;\\\\n }\\\\n if (height) {\\\\n if (resY) {\\\\n throw new Error('Both width and resY passed');\\\\n }\\\\n resY = (usedBBox[3] - usedBBox[1]) / height;\\\\n }\\\\n }\\\\n\\\\n // if resolution is set or calculated, try to get the image with the worst acceptable resolution\\\\n if (resX || resY) {\\\\n const allImages = [];\\\\n for (let i = 0; i < imageCount; ++i) {\\\\n const image = await this.getImage(i);\\\\n const { SubfileType: subfileType, NewSubfileType: newSubfileType } = image.fileDirectory;\\\\n if (i === 0 || subfileType === 2 || newSubfileType & 1) {\\\\n allImages.push(image);\\\\n }\\\\n }\\\\n\\\\n allImages.sort((a, b) => a.getWidth() - b.getWidth());\\\\n for (let i = 0; i < allImages.length; ++i) {\\\\n const image = allImages[i];\\\\n const imgResX = (imgBBox[2] - imgBBox[0]) / image.getWidth();\\\\n const imgResY = (imgBBox[3] - imgBBox[1]) / image.getHeight();\\\\n\\\\n usedImage = image;\\\\n if ((resX && resX > imgResX) || (resY && resY > imgResY)) {\\\\n break;\\\\n }\\\\n }\\\\n }\\\\n\\\\n let wnd = imageWindow;\\\\n if (bbox) {\\\\n const [oX, oY] = firstImage.getOrigin();\\\\n const [imageResX, imageResY] = usedImage.getResolution(firstImage);\\\\n\\\\n wnd = [\\\\n Math.round((bbox[0] - oX) / imageResX),\\\\n Math.round((bbox[1] - oY) / imageResY),\\\\n Math.round((bbox[2] - oX) / imageResX),\\\\n Math.round((bbox[3] - oY) / imageResY),\\\\n ];\\\\n wnd = [\\\\n Math.min(wnd[0], wnd[2]),\\\\n Math.min(wnd[1], wnd[3]),\\\\n Math.max(wnd[0], wnd[2]),\\\\n Math.max(wnd[1], wnd[3]),\\\\n ];\\\\n }\\\\n\\\\n return usedImage.readRasters({ ...options, window: wnd });\\\\n }\\\\n}\\\\n\\\\n\\\\n/**\\\\n * The abstraction for a whole GeoTIFF file.\\\\n * @augments GeoTIFFBase\\\\n */\\\\nclass GeoTIFF extends GeoTIFFBase {\\\\n /**\\\\n * @constructor\\\\n * @param {Source} source The datasource to read from.\\\\n * @param {Boolean} littleEndian Whether the image uses little endian.\\\\n * @param {Boolean} bigTiff Whether the image uses bigTIFF conventions.\\\\n * @param {Number} firstIFDOffset The numeric byte-offset from the start of the image\\\\n * to the first IFD.\\\\n * @param {Object} [options] further options.\\\\n * @param {Boolean} [options.cache=false] whether or not decoded tiles shall be cached.\\\\n */\\\\n constructor(source, littleEndian, bigTiff, firstIFDOffset, options = {}) {\\\\n super();\\\\n this.source = source;\\\\n this.littleEndian = littleEndian;\\\\n this.bigTiff = bigTiff;\\\\n this.firstIFDOffset = firstIFDOffset;\\\\n this.cache = options.cache || false;\\\\n this.ifdRequests = [];\\\\n this.ghostValues = null;\\\\n }\\\\n\\\\n async getSlice(offset, size) {\\\\n const fallbackSize = this.bigTiff ? 4048 : 1024;\\\\n return new _dataslice__WEBPACK_IMPORTED_MODULE_2__[\\\\\\\"default\\\\\\\"](\\\\n await this.source.fetch(\\\\n offset, typeof size !== 'undefined' ? size : fallbackSize,\\\\n ), offset, this.littleEndian, this.bigTiff,\\\\n );\\\\n }\\\\n\\\\n /**\\\\n * Instructs to parse an image file directory at the given file offset.\\\\n * As there is no way to ensure that a location is indeed the start of an IFD,\\\\n * this function must be called with caution (e.g only using the IFD offsets from\\\\n * the headers or other IFDs).\\\\n * @param {number} offset the offset to parse the IFD at\\\\n * @returns {ImageFileDirectory} the parsed IFD\\\\n */\\\\n async parseFileDirectoryAt(offset) {\\\\n const entrySize = this.bigTiff ? 20 : 12;\\\\n const offsetSize = this.bigTiff ? 8 : 2;\\\\n\\\\n let dataSlice = await this.getSlice(offset);\\\\n const numDirEntries = this.bigTiff ?\\\\n dataSlice.readUint64(offset) :\\\\n dataSlice.readUint16(offset);\\\\n\\\\n // if the slice does not cover the whole IFD, request a bigger slice, where the\\\\n // whole IFD fits: num of entries + n x tag length + offset to next IFD\\\\n const byteSize = (numDirEntries * entrySize) + (this.bigTiff ? 16 : 6);\\\\n if (!dataSlice.covers(offset, byteSize)) {\\\\n dataSlice = await this.getSlice(offset, byteSize);\\\\n }\\\\n\\\\n const fileDirectory = {};\\\\n\\\\n // loop over the IFD and create a file directory object\\\\n let i = offset + (this.bigTiff ? 8 : 2);\\\\n for (let entryCount = 0; entryCount < numDirEntries; i += entrySize, ++entryCount) {\\\\n const fieldTag = dataSlice.readUint16(i);\\\\n const fieldType = dataSlice.readUint16(i + 2);\\\\n const typeCount = this.bigTiff ?\\\\n dataSlice.readUint64(i + 4) :\\\\n dataSlice.readUint32(i + 4);\\\\n\\\\n let fieldValues;\\\\n let value;\\\\n const fieldTypeLength = getFieldTypeLength(fieldType);\\\\n const valueOffset = i + (this.bigTiff ? 12 : 8);\\\\n\\\\n // check whether the value is directly encoded in the tag or refers to a\\\\n // different external byte range\\\\n if (fieldTypeLength * typeCount <= (this.bigTiff ? 8 : 4)) {\\\\n fieldValues = getValues(dataSlice, fieldType, typeCount, valueOffset);\\\\n } else {\\\\n // resolve the reference to the actual byte range\\\\n const actualOffset = dataSlice.readOffset(valueOffset);\\\\n const length = getFieldTypeLength(fieldType) * typeCount;\\\\n\\\\n // check, whether we actually cover the referenced byte range; if not,\\\\n // request a new slice of bytes to read from it\\\\n if (dataSlice.covers(actualOffset, length)) {\\\\n fieldValues = getValues(dataSlice, fieldType, typeCount, actualOffset);\\\\n } else {\\\\n const fieldDataSlice = await this.getSlice(actualOffset, length);\\\\n fieldValues = getValues(fieldDataSlice, fieldType, typeCount, actualOffset);\\\\n }\\\\n }\\\\n\\\\n // unpack single values from the array\\\\n if (typeCount === 1 && _globals__WEBPACK_IMPORTED_MODULE_5__[\\\\\\\"arrayFields\\\\\\\"].indexOf(fieldTag) === -1 &&\\\\n !(fieldType === _globals__WEBPACK_IMPORTED_MODULE_5__[\\\\\\\"fieldTypes\\\\\\\"].RATIONAL || fieldType === _globals__WEBPACK_IMPORTED_MODULE_5__[\\\\\\\"fieldTypes\\\\\\\"].SRATIONAL)) {\\\\n value = fieldValues[0];\\\\n } else {\\\\n value = fieldValues;\\\\n }\\\\n\\\\n // write the tags value to the file directly\\\\n fileDirectory[_globals__WEBPACK_IMPORTED_MODULE_5__[\\\\\\\"fieldTagNames\\\\\\\"][fieldTag]] = value;\\\\n }\\\\n const geoKeyDirectory = parseGeoKeyDirectory(fileDirectory);\\\\n const nextIFDByteOffset = dataSlice.readOffset(\\\\n offset + offsetSize + (entrySize * numDirEntries),\\\\n );\\\\n\\\\n return new ImageFileDirectory(\\\\n fileDirectory,\\\\n geoKeyDirectory,\\\\n nextIFDByteOffset,\\\\n );\\\\n }\\\\n\\\\n async requestIFD(index) {\\\\n // see if we already have that IFD index requested.\\\\n if (this.ifdRequests[index]) {\\\\n // attach to an already requested IFD\\\\n return this.ifdRequests[index];\\\\n } else if (index === 0) {\\\\n // special case for index 0\\\\n this.ifdRequests[index] = this.parseFileDirectoryAt(this.firstIFDOffset);\\\\n return this.ifdRequests[index];\\\\n } else if (!this.ifdRequests[index - 1]) {\\\\n // if the previous IFD was not yet loaded, load that one first\\\\n // this is the recursive call.\\\\n try {\\\\n this.ifdRequests[index - 1] = this.requestIFD(index - 1);\\\\n } catch (e) {\\\\n // if the previous one already was an index error, rethrow\\\\n // with the current index\\\\n if (e instanceof GeoTIFFImageIndexError) {\\\\n throw new GeoTIFFImageIndexError(index);\\\\n }\\\\n // rethrow anything else\\\\n throw e;\\\\n }\\\\n }\\\\n // if the previous IFD was loaded, we can finally fetch the one we are interested in.\\\\n // we need to wrap this in an IIFE, otherwise this.ifdRequests[index] would be delayed\\\\n this.ifdRequests[index] = (async () => {\\\\n const previousIfd = await this.ifdRequests[index - 1];\\\\n if (previousIfd.nextIFDByteOffset === 0) {\\\\n throw new GeoTIFFImageIndexError(index);\\\\n }\\\\n return this.parseFileDirectoryAt(previousIfd.nextIFDByteOffset);\\\\n })();\\\\n return this.ifdRequests[index];\\\\n }\\\\n\\\\n /**\\\\n * Get the n-th internal subfile of an image. By default, the first is returned.\\\\n *\\\\n * @param {Number} [index=0] the index of the image to return.\\\\n * @returns {GeoTIFFImage} the image at the given index\\\\n */\\\\n async getImage(index = 0) {\\\\n const ifd = await this.requestIFD(index);\\\\n return new _geotiffimage__WEBPACK_IMPORTED_MODULE_0__[\\\\\\\"default\\\\\\\"](\\\\n ifd.fileDirectory, ifd.geoKeyDirectory,\\\\n this.dataView, this.littleEndian, this.cache, this.source,\\\\n );\\\\n }\\\\n\\\\n /**\\\\n * Returns the count of the internal subfiles.\\\\n *\\\\n * @returns {Number} the number of internal subfile images\\\\n */\\\\n async getImageCount() {\\\\n let index = 0;\\\\n // loop until we run out of IFDs\\\\n let hasNext = true;\\\\n while (hasNext) {\\\\n try {\\\\n await this.requestIFD(index);\\\\n ++index;\\\\n } catch (e) {\\\\n if (e instanceof GeoTIFFImageIndexError) {\\\\n hasNext = false;\\\\n } else {\\\\n throw e;\\\\n }\\\\n }\\\\n }\\\\n return index;\\\\n }\\\\n\\\\n /**\\\\n * Get the values of the COG ghost area as a parsed map.\\\\n * See https://gdal.org/drivers/raster/cog.html#header-ghost-area for reference\\\\n * @returns {Object} the parsed ghost area or null, if no such area was found\\\\n */\\\\n async getGhostValues() {\\\\n const offset = this.bigTiff ? 16 : 8;\\\\n if (this.ghostValues) {\\\\n return this.ghostValues;\\\\n }\\\\n const detectionString = 'GDAL_STRUCTURAL_METADATA_SIZE=';\\\\n const heuristicAreaSize = detectionString.length + 100;\\\\n let slice = await this.getSlice(offset, heuristicAreaSize);\\\\n if (detectionString === getValues(slice, _globals__WEBPACK_IMPORTED_MODULE_5__[\\\\\\\"fieldTypes\\\\\\\"].ASCII, detectionString.length, offset)) {\\\\n const valuesString = getValues(slice, _globals__WEBPACK_IMPORTED_MODULE_5__[\\\\\\\"fieldTypes\\\\\\\"].ASCII, heuristicAreaSize, offset);\\\\n const firstLine = valuesString.split('\\\\\\\\n')[0];\\\\n const metadataSize = Number(firstLine.split('=')[1].split(' ')[0]) + firstLine.length;\\\\n if (metadataSize > heuristicAreaSize) {\\\\n slice = await this.getSlice(offset, metadataSize);\\\\n }\\\\n const fullString = getValues(slice, _globals__WEBPACK_IMPORTED_MODULE_5__[\\\\\\\"fieldTypes\\\\\\\"].ASCII, metadataSize, offset);\\\\n this.ghostValues = {};\\\\n fullString\\\\n .split('\\\\\\\\n')\\\\n .filter(line => line.length > 0)\\\\n .map(line => line.split('='))\\\\n .forEach(([key, value]) => {\\\\n this.ghostValues[key] = value;\\\\n });\\\\n }\\\\n return this.ghostValues;\\\\n }\\\\n\\\\n /**\\\\n * Parse a (Geo)TIFF file from the given source.\\\\n *\\\\n * @param {source~Source} source The source of data to parse from.\\\\n * @param {object} options Additional options.\\\\n */\\\\n static async fromSource(source, options) {\\\\n const headerData = await source.fetch(0, 1024);\\\\n const dataView = new _dataview64__WEBPACK_IMPORTED_MODULE_1__[\\\\\\\"default\\\\\\\"](headerData);\\\\n\\\\n const BOM = dataView.getUint16(0, 0);\\\\n let littleEndian;\\\\n if (BOM === 0x4949) {\\\\n littleEndian = true;\\\\n } else if (BOM === 0x4D4D) {\\\\n littleEndian = false;\\\\n } else {\\\\n throw new TypeError('Invalid byte order value.');\\\\n }\\\\n\\\\n const magicNumber = dataView.getUint16(2, littleEndian);\\\\n let bigTiff;\\\\n if (magicNumber === 42) {\\\\n bigTiff = false;\\\\n } else if (magicNumber === 43) {\\\\n bigTiff = true;\\\\n const offsetByteSize = dataView.getUint16(4, littleEndian);\\\\n if (offsetByteSize !== 8) {\\\\n throw new Error('Unsupported offset byte-size.');\\\\n }\\\\n } else {\\\\n throw new TypeError('Invalid magic number.');\\\\n }\\\\n\\\\n const firstIFDOffset = bigTiff\\\\n ? dataView.getUint64(8, littleEndian)\\\\n : dataView.getUint32(4, littleEndian);\\\\n return new GeoTIFF(source, littleEndian, bigTiff, firstIFDOffset, options);\\\\n }\\\\n\\\\n /**\\\\n * Closes the underlying file buffer\\\\n * N.B. After the GeoTIFF has been completely processed it needs\\\\n * to be closed but only if it has been constructed from a file.\\\\n */\\\\n close() {\\\\n if (typeof this.source.close === 'function') {\\\\n return this.source.close();\\\\n }\\\\n return false;\\\\n }\\\\n}\\\\n\\\\n\\\\n/* harmony default export */ __webpack_exports__[\\\\\\\"default\\\\\\\"] = (GeoTIFF);\\\\n\\\\n/**\\\\n * Wrapper for GeoTIFF files that have external overviews.\\\\n * @augments GeoTIFFBase\\\\n */\\\\nclass MultiGeoTIFF extends GeoTIFFBase {\\\\n /**\\\\n * Construct a new MultiGeoTIFF from a main and several overview files.\\\\n * @param {GeoTIFF} mainFile The main GeoTIFF file.\\\\n * @param {GeoTIFF[]} overviewFiles An array of overview files.\\\\n */\\\\n constructor(mainFile, overviewFiles) {\\\\n super();\\\\n this.mainFile = mainFile;\\\\n this.overviewFiles = overviewFiles;\\\\n this.imageFiles = [mainFile].concat(overviewFiles);\\\\n\\\\n this.fileDirectoriesPerFile = null;\\\\n this.fileDirectoriesPerFileParsing = null;\\\\n this.imageCount = null;\\\\n }\\\\n\\\\n async parseFileDirectoriesPerFile() {\\\\n const requests = [this.mainFile.parseFileDirectoryAt(this.mainFile.firstIFDOffset)]\\\\n .concat(this.overviewFiles.map((file) => file.parseFileDirectoryAt(file.firstIFDOffset)));\\\\n\\\\n this.fileDirectoriesPerFile = await Promise.all(requests);\\\\n return this.fileDirectoriesPerFile;\\\\n }\\\\n\\\\n /**\\\\n * Get the n-th internal subfile of an image. By default, the first is returned.\\\\n *\\\\n * @param {Number} [index=0] the index of the image to return.\\\\n * @returns {GeoTIFFImage} the image at the given index\\\\n */\\\\n async getImage(index = 0) {\\\\n await this.getImageCount();\\\\n await this.parseFileDirectoriesPerFile();\\\\n let visited = 0;\\\\n let relativeIndex = 0;\\\\n for (let i = 0; i < this.imageFiles.length; i++) {\\\\n const imageFile = this.imageFiles[i];\\\\n for (let ii = 0; ii < this.imageCounts[i]; ii++) {\\\\n if (index === visited) {\\\\n const ifd = await imageFile.requestIFD(relativeIndex);\\\\n return new _geotiffimage__WEBPACK_IMPORTED_MODULE_0__[\\\\\\\"default\\\\\\\"](\\\\n ifd.fileDirectory, imageFile.geoKeyDirectory,\\\\n imageFile.dataView, imageFile.littleEndian, imageFile.cache, imageFile.source,\\\\n );\\\\n }\\\\n visited++;\\\\n relativeIndex++;\\\\n }\\\\n relativeIndex = 0;\\\\n }\\\\n\\\\n throw new RangeError('Invalid image index');\\\\n }\\\\n\\\\n /**\\\\n * Returns the count of the internal subfiles.\\\\n *\\\\n * @returns {Number} the number of internal subfile images\\\\n */\\\\n async getImageCount() {\\\\n if (this.imageCount !== null) {\\\\n return this.imageCount;\\\\n }\\\\n const requests = [this.mainFile.getImageCount()]\\\\n .concat(this.overviewFiles.map((file) => file.getImageCount()));\\\\n this.imageCounts = await Promise.all(requests);\\\\n this.imageCount = this.imageCounts.reduce((count, ifds) => count + ifds, 0);\\\\n return this.imageCount;\\\\n }\\\\n}\\\\n\\\\n\\\\n\\\\n/**\\\\n * Creates a new GeoTIFF from a remote URL.\\\\n * @param {string} url The URL to access the image from\\\\n * @param {object} [options] Additional options to pass to the source.\\\\n * See {@link makeRemoteSource} for details.\\\\n * @returns {Promise.<GeoTIFF>} The resulting GeoTIFF file.\\\\n */\\\\nasync function fromUrl(url, options = {}) {\\\\n return GeoTIFF.fromSource(Object(_source__WEBPACK_IMPORTED_MODULE_4__[\\\\\\\"makeRemoteSource\\\\\\\"])(url, options));\\\\n}\\\\n\\\\n/**\\\\n * Construct a new GeoTIFF from an\\\\n * [ArrayBuffer]{@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer}.\\\\n * @param {ArrayBuffer} arrayBuffer The data to read the file from.\\\\n * @returns {Promise.<GeoTIFF>} The resulting GeoTIFF file.\\\\n */\\\\nasync function fromArrayBuffer(arrayBuffer) {\\\\n return GeoTIFF.fromSource(Object(_source__WEBPACK_IMPORTED_MODULE_4__[\\\\\\\"makeBufferSource\\\\\\\"])(arrayBuffer));\\\\n}\\\\n\\\\n/**\\\\n * Construct a GeoTIFF from a local file path. This uses the node\\\\n * [filesystem API]{@link https://nodejs.org/api/fs.html} and is\\\\n * not available on browsers.\\\\n *\\\\n * N.B. After the GeoTIFF has been completely processed it needs\\\\n * to be closed but only if it has been constructed from a file.\\\\n * @param {string} path The file path to read from.\\\\n * @returns {Promise.<GeoTIFF>} The resulting GeoTIFF file.\\\\n */\\\\nasync function fromFile(path) {\\\\n return GeoTIFF.fromSource(Object(_source__WEBPACK_IMPORTED_MODULE_4__[\\\\\\\"makeFileSource\\\\\\\"])(path));\\\\n}\\\\n\\\\n/**\\\\n * Construct a GeoTIFF from an HTML\\\\n * [Blob]{@link https://developer.mozilla.org/en-US/docs/Web/API/Blob} or\\\\n * [File]{@link https://developer.mozilla.org/en-US/docs/Web/API/File}\\\\n * object.\\\\n * @param {Blob|File} blob The Blob or File object to read from.\\\\n * @returns {Promise.<GeoTIFF>} The resulting GeoTIFF file.\\\\n */\\\\nasync function fromBlob(blob) {\\\\n return GeoTIFF.fromSource(Object(_source__WEBPACK_IMPORTED_MODULE_4__[\\\\\\\"makeFileReaderSource\\\\\\\"])(blob));\\\\n}\\\\n\\\\n/**\\\\n * Construct a MultiGeoTIFF from the given URLs.\\\\n * @param {string} mainUrl The URL for the main file.\\\\n * @param {string[]} overviewUrls An array of URLs for the overview images.\\\\n * @param {object} [options] Additional options to pass to the source.\\\\n * See [makeRemoteSource]{@link module:source.makeRemoteSource}\\\\n * for details.\\\\n * @returns {Promise.<MultiGeoTIFF>} The resulting MultiGeoTIFF file.\\\\n */\\\\nasync function fromUrls(mainUrl, overviewUrls = [], options = {}) {\\\\n const mainFile = await GeoTIFF.fromSource(Object(_source__WEBPACK_IMPORTED_MODULE_4__[\\\\\\\"makeRemoteSource\\\\\\\"])(mainUrl, options));\\\\n const overviewFiles = await Promise.all(\\\\n overviewUrls.map((url) => GeoTIFF.fromSource(Object(_source__WEBPACK_IMPORTED_MODULE_4__[\\\\\\\"makeRemoteSource\\\\\\\"])(url, options))),\\\\n );\\\\n\\\\n return new MultiGeoTIFF(mainFile, overviewFiles);\\\\n}\\\\n\\\\n/**\\\\n * Main creating function for GeoTIFF files.\\\\n * @param {(Array)} array of pixel values\\\\n * @returns {metadata} metadata\\\\n */\\\\nasync function writeArrayBuffer(values, metadata) {\\\\n return Object(_geotiffwriter__WEBPACK_IMPORTED_MODULE_6__[\\\\\\\"writeGeotiff\\\\\\\"])(values, metadata);\\\\n}\\\\n\\\\n\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/geotiff/src/geotiff.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/geotiff/src/geotiffimage.js\\\":\\n/*!**************************************************!*\\\\\\n !*** ./node_modules/geotiff/src/geotiffimage.js ***!\\n \\\\**************************************************/\\n/*! exports provided: default */\\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\\n\\n\\\"use strict\\\";\\neval(\\\"__webpack_require__.r(__webpack_exports__);\\\\n/* harmony import */ var txml__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! txml */ \\\\\\\"./node_modules/txml/tXml.js\\\\\\\");\\\\n/* harmony import */ var txml__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(txml__WEBPACK_IMPORTED_MODULE_0__);\\\\n/* harmony import */ var _globals__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./globals */ \\\\\\\"./node_modules/geotiff/src/globals.js\\\\\\\");\\\\n/* harmony import */ var _rgb__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./rgb */ \\\\\\\"./node_modules/geotiff/src/rgb.js\\\\\\\");\\\\n/* harmony import */ var _compression__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./compression */ \\\\\\\"./node_modules/geotiff/src/compression/index.js\\\\\\\");\\\\n/* harmony import */ var _resample__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./resample */ \\\\\\\"./node_modules/geotiff/src/resample.js\\\\\\\");\\\\n/* eslint max-len: [\\\\\\\"error\\\\\\\", { \\\\\\\"code\\\\\\\": 120 }] */\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\nfunction sum(array, start, end) {\\\\n let s = 0;\\\\n for (let i = start; i < end; ++i) {\\\\n s += array[i];\\\\n }\\\\n return s;\\\\n}\\\\n\\\\nfunction arrayForType(format, bitsPerSample, size) {\\\\n switch (format) {\\\\n case 1: // unsigned integer data\\\\n switch (bitsPerSample) {\\\\n case 8:\\\\n return new Uint8Array(size);\\\\n case 16:\\\\n return new Uint16Array(size);\\\\n case 32:\\\\n return new Uint32Array(size);\\\\n default:\\\\n break;\\\\n }\\\\n break;\\\\n case 2: // twos complement signed integer data\\\\n switch (bitsPerSample) {\\\\n case 8:\\\\n return new Int8Array(size);\\\\n case 16:\\\\n return new Int16Array(size);\\\\n case 32:\\\\n return new Int32Array(size);\\\\n default:\\\\n break;\\\\n }\\\\n break;\\\\n case 3: // floating point data\\\\n switch (bitsPerSample) {\\\\n case 32:\\\\n return new Float32Array(size);\\\\n case 64:\\\\n return new Float64Array(size);\\\\n default:\\\\n break;\\\\n }\\\\n break;\\\\n default:\\\\n break;\\\\n }\\\\n throw Error('Unsupported data format/bitsPerSample');\\\\n}\\\\n\\\\n/**\\\\n * GeoTIFF sub-file image.\\\\n */\\\\nclass GeoTIFFImage {\\\\n /**\\\\n * @constructor\\\\n * @param {Object} fileDirectory The parsed file directory\\\\n * @param {Object} geoKeys The parsed geo-keys\\\\n * @param {DataView} dataView The DataView for the underlying file.\\\\n * @param {Boolean} littleEndian Whether the file is encoded in little or big endian\\\\n * @param {Boolean} cache Whether or not decoded tiles shall be cached\\\\n * @param {Source} source The datasource to read from\\\\n */\\\\n constructor(fileDirectory, geoKeys, dataView, littleEndian, cache, source) {\\\\n this.fileDirectory = fileDirectory;\\\\n this.geoKeys = geoKeys;\\\\n this.dataView = dataView;\\\\n this.littleEndian = littleEndian;\\\\n this.tiles = cache ? {} : null;\\\\n this.isTiled = !fileDirectory.StripOffsets;\\\\n const planarConfiguration = fileDirectory.PlanarConfiguration;\\\\n this.planarConfiguration = (typeof planarConfiguration === 'undefined') ? 1 : planarConfiguration;\\\\n if (this.planarConfiguration !== 1 && this.planarConfiguration !== 2) {\\\\n throw new Error('Invalid planar configuration.');\\\\n }\\\\n\\\\n this.source = source;\\\\n }\\\\n\\\\n /**\\\\n * Returns the associated parsed file directory.\\\\n * @returns {Object} the parsed file directory\\\\n */\\\\n getFileDirectory() {\\\\n return this.fileDirectory;\\\\n }\\\\n\\\\n /**\\\\n * Returns the associated parsed geo keys.\\\\n * @returns {Object} the parsed geo keys\\\\n */\\\\n getGeoKeys() {\\\\n return this.geoKeys;\\\\n }\\\\n\\\\n /**\\\\n * Returns the width of the image.\\\\n * @returns {Number} the width of the image\\\\n */\\\\n getWidth() {\\\\n return this.fileDirectory.ImageWidth;\\\\n }\\\\n\\\\n /**\\\\n * Returns the height of the image.\\\\n * @returns {Number} the height of the image\\\\n */\\\\n getHeight() {\\\\n return this.fileDirectory.ImageLength;\\\\n }\\\\n\\\\n /**\\\\n * Returns the number of samples per pixel.\\\\n * @returns {Number} the number of samples per pixel\\\\n */\\\\n getSamplesPerPixel() {\\\\n return this.fileDirectory.SamplesPerPixel;\\\\n }\\\\n\\\\n /**\\\\n * Returns the width of each tile.\\\\n * @returns {Number} the width of each tile\\\\n */\\\\n getTileWidth() {\\\\n return this.isTiled ? this.fileDirectory.TileWidth : this.getWidth();\\\\n }\\\\n\\\\n /**\\\\n * Returns the height of each tile.\\\\n * @returns {Number} the height of each tile\\\\n */\\\\n getTileHeight() {\\\\n if (this.isTiled) {\\\\n return this.fileDirectory.TileLength;\\\\n }\\\\n if (typeof this.fileDirectory.RowsPerStrip !== 'undefined') {\\\\n return Math.min(this.fileDirectory.RowsPerStrip, this.getHeight());\\\\n }\\\\n return this.getHeight();\\\\n }\\\\n\\\\n /**\\\\n * Calculates the number of bytes for each pixel across all samples. Only full\\\\n * bytes are supported, an exception is thrown when this is not the case.\\\\n * @returns {Number} the bytes per pixel\\\\n */\\\\n getBytesPerPixel() {\\\\n let bitsPerSample = 0;\\\\n for (let i = 0; i < this.fileDirectory.BitsPerSample.length; ++i) {\\\\n const bits = this.fileDirectory.BitsPerSample[i];\\\\n if ((bits % 8) !== 0) {\\\\n throw new Error(`Sample bit-width of ${bits} is not supported.`);\\\\n } else if (bits !== this.fileDirectory.BitsPerSample[0]) {\\\\n throw new Error('Differing size of samples in a pixel are not supported.');\\\\n }\\\\n bitsPerSample += bits;\\\\n }\\\\n return bitsPerSample / 8;\\\\n }\\\\n\\\\n getSampleByteSize(i) {\\\\n if (i >= this.fileDirectory.BitsPerSample.length) {\\\\n throw new RangeError(`Sample index ${i} is out of range.`);\\\\n }\\\\n const bits = this.fileDirectory.BitsPerSample[i];\\\\n if ((bits % 8) !== 0) {\\\\n throw new Error(`Sample bit-width of ${bits} is not supported.`);\\\\n }\\\\n return (bits / 8);\\\\n }\\\\n\\\\n getReaderForSample(sampleIndex) {\\\\n const format = this.fileDirectory.SampleFormat\\\\n ? this.fileDirectory.SampleFormat[sampleIndex] : 1;\\\\n const bitsPerSample = this.fileDirectory.BitsPerSample[sampleIndex];\\\\n switch (format) {\\\\n case 1: // unsigned integer data\\\\n switch (bitsPerSample) {\\\\n case 8:\\\\n return DataView.prototype.getUint8;\\\\n case 16:\\\\n return DataView.prototype.getUint16;\\\\n case 32:\\\\n return DataView.prototype.getUint32;\\\\n default:\\\\n break;\\\\n }\\\\n break;\\\\n case 2: // twos complement signed integer data\\\\n switch (bitsPerSample) {\\\\n case 8:\\\\n return DataView.prototype.getInt8;\\\\n case 16:\\\\n return DataView.prototype.getInt16;\\\\n case 32:\\\\n return DataView.prototype.getInt32;\\\\n default:\\\\n break;\\\\n }\\\\n break;\\\\n case 3:\\\\n switch (bitsPerSample) {\\\\n case 32:\\\\n return DataView.prototype.getFloat32;\\\\n case 64:\\\\n return DataView.prototype.getFloat64;\\\\n default:\\\\n break;\\\\n }\\\\n break;\\\\n default:\\\\n break;\\\\n }\\\\n throw Error('Unsupported data format/bitsPerSample');\\\\n }\\\\n\\\\n getArrayForSample(sampleIndex, size) {\\\\n const format = this.fileDirectory.SampleFormat\\\\n ? this.fileDirectory.SampleFormat[sampleIndex] : 1;\\\\n const bitsPerSample = this.fileDirectory.BitsPerSample[sampleIndex];\\\\n return arrayForType(format, bitsPerSample, size);\\\\n }\\\\n\\\\n /**\\\\n * Returns the decoded strip or tile.\\\\n * @param {Number} x the strip or tile x-offset\\\\n * @param {Number} y the tile y-offset (0 for stripped images)\\\\n * @param {Number} sample the sample to get for separated samples\\\\n * @param {Pool|AbstractDecoder} poolOrDecoder the decoder or decoder pool\\\\n * @returns {Promise.<ArrayBuffer>}\\\\n */\\\\n async getTileOrStrip(x, y, sample, poolOrDecoder) {\\\\n const numTilesPerRow = Math.ceil(this.getWidth() / this.getTileWidth());\\\\n const numTilesPerCol = Math.ceil(this.getHeight() / this.getTileHeight());\\\\n let index;\\\\n const { tiles } = this;\\\\n if (this.planarConfiguration === 1) {\\\\n index = (y * numTilesPerRow) + x;\\\\n } else if (this.planarConfiguration === 2) {\\\\n index = (sample * numTilesPerRow * numTilesPerCol) + (y * numTilesPerRow) + x;\\\\n }\\\\n\\\\n let offset;\\\\n let byteCount;\\\\n if (this.isTiled) {\\\\n offset = this.fileDirectory.TileOffsets[index];\\\\n byteCount = this.fileDirectory.TileByteCounts[index];\\\\n } else {\\\\n offset = this.fileDirectory.StripOffsets[index];\\\\n byteCount = this.fileDirectory.StripByteCounts[index];\\\\n }\\\\n const slice = await this.source.fetch(offset, byteCount);\\\\n\\\\n // either use the provided pool or decoder to decode the data\\\\n let request;\\\\n if (tiles === null) {\\\\n request = poolOrDecoder.decode(this.fileDirectory, slice);\\\\n } else if (!tiles[index]) {\\\\n request = poolOrDecoder.decode(this.fileDirectory, slice);\\\\n tiles[index] = request;\\\\n }\\\\n return { x, y, sample, data: await request };\\\\n }\\\\n\\\\n /**\\\\n * Internal read function.\\\\n * @private\\\\n * @param {Array} imageWindow The image window in pixel coordinates\\\\n * @param {Array} samples The selected samples (0-based indices)\\\\n * @param {TypedArray[]|TypedArray} valueArrays The array(s) to write into\\\\n * @param {Boolean} interleave Whether or not to write in an interleaved manner\\\\n * @param {Pool} pool The decoder pool\\\\n * @returns {Promise<TypedArray[]>|Promise<TypedArray>}\\\\n */\\\\n async _readRaster(imageWindow, samples, valueArrays, interleave, poolOrDecoder, width, height, resampleMethod) {\\\\n const tileWidth = this.getTileWidth();\\\\n const tileHeight = this.getTileHeight();\\\\n\\\\n const minXTile = Math.max(Math.floor(imageWindow[0] / tileWidth), 0);\\\\n const maxXTile = Math.min(\\\\n Math.ceil(imageWindow[2] / tileWidth),\\\\n Math.ceil(this.getWidth() / this.getTileWidth()),\\\\n );\\\\n const minYTile = Math.max(Math.floor(imageWindow[1] / tileHeight), 0);\\\\n const maxYTile = Math.min(\\\\n Math.ceil(imageWindow[3] / tileHeight),\\\\n Math.ceil(this.getHeight() / this.getTileHeight()),\\\\n );\\\\n const windowWidth = imageWindow[2] - imageWindow[0];\\\\n\\\\n let bytesPerPixel = this.getBytesPerPixel();\\\\n\\\\n const srcSampleOffsets = [];\\\\n const sampleReaders = [];\\\\n for (let i = 0; i < samples.length; ++i) {\\\\n if (this.planarConfiguration === 1) {\\\\n srcSampleOffsets.push(sum(this.fileDirectory.BitsPerSample, 0, samples[i]) / 8);\\\\n } else {\\\\n srcSampleOffsets.push(0);\\\\n }\\\\n sampleReaders.push(this.getReaderForSample(samples[i]));\\\\n }\\\\n\\\\n const promises = [];\\\\n const { littleEndian } = this;\\\\n\\\\n for (let yTile = minYTile; yTile < maxYTile; ++yTile) {\\\\n for (let xTile = minXTile; xTile < maxXTile; ++xTile) {\\\\n for (let sampleIndex = 0; sampleIndex < samples.length; ++sampleIndex) {\\\\n const si = sampleIndex;\\\\n const sample = samples[sampleIndex];\\\\n if (this.planarConfiguration === 2) {\\\\n bytesPerPixel = this.getSampleByteSize(sample);\\\\n }\\\\n const promise = this.getTileOrStrip(xTile, yTile, sample, poolOrDecoder);\\\\n promises.push(promise);\\\\n promise.then((tile) => {\\\\n const buffer = tile.data;\\\\n const dataView = new DataView(buffer);\\\\n const firstLine = tile.y * tileHeight;\\\\n const firstCol = tile.x * tileWidth;\\\\n const lastLine = (tile.y + 1) * tileHeight;\\\\n const lastCol = (tile.x + 1) * tileWidth;\\\\n const reader = sampleReaders[si];\\\\n\\\\n const ymax = Math.min(tileHeight, tileHeight - (lastLine - imageWindow[3]));\\\\n const xmax = Math.min(tileWidth, tileWidth - (lastCol - imageWindow[2]));\\\\n\\\\n for (let y = Math.max(0, imageWindow[1] - firstLine); y < ymax; ++y) {\\\\n for (let x = Math.max(0, imageWindow[0] - firstCol); x < xmax; ++x) {\\\\n const pixelOffset = ((y * tileWidth) + x) * bytesPerPixel;\\\\n const value = reader.call(\\\\n dataView, pixelOffset + srcSampleOffsets[si], littleEndian,\\\\n );\\\\n let windowCoordinate;\\\\n if (interleave) {\\\\n windowCoordinate = ((y + firstLine - imageWindow[1]) * windowWidth * samples.length)\\\\n + ((x + firstCol - imageWindow[0]) * samples.length)\\\\n + si;\\\\n valueArrays[windowCoordinate] = value;\\\\n } else {\\\\n windowCoordinate = (\\\\n (y + firstLine - imageWindow[1]) * windowWidth\\\\n ) + x + firstCol - imageWindow[0];\\\\n valueArrays[si][windowCoordinate] = value;\\\\n }\\\\n }\\\\n }\\\\n });\\\\n }\\\\n }\\\\n }\\\\n await Promise.all(promises);\\\\n\\\\n if ((width && (imageWindow[2] - imageWindow[0]) !== width)\\\\n || (height && (imageWindow[3] - imageWindow[1]) !== height)) {\\\\n let resampled;\\\\n if (interleave) {\\\\n resampled = Object(_resample__WEBPACK_IMPORTED_MODULE_4__[\\\\\\\"resampleInterleaved\\\\\\\"])(\\\\n valueArrays,\\\\n imageWindow[2] - imageWindow[0],\\\\n imageWindow[3] - imageWindow[1],\\\\n width, height,\\\\n samples.length,\\\\n resampleMethod,\\\\n );\\\\n } else {\\\\n resampled = Object(_resample__WEBPACK_IMPORTED_MODULE_4__[\\\\\\\"resample\\\\\\\"])(\\\\n valueArrays,\\\\n imageWindow[2] - imageWindow[0],\\\\n imageWindow[3] - imageWindow[1],\\\\n width, height,\\\\n resampleMethod,\\\\n );\\\\n }\\\\n resampled.width = width;\\\\n resampled.height = height;\\\\n return resampled;\\\\n }\\\\n\\\\n valueArrays.width = width || imageWindow[2] - imageWindow[0];\\\\n valueArrays.height = height || imageWindow[3] - imageWindow[1];\\\\n\\\\n return valueArrays;\\\\n }\\\\n\\\\n /**\\\\n * Reads raster data from the image. This function reads all selected samples\\\\n * into separate arrays of the correct type for that sample or into a single\\\\n * combined array when `interleave` is set. When provided, only a subset\\\\n * of the raster is read for each sample.\\\\n *\\\\n * @param {Object} [options={}] optional parameters\\\\n * @param {Array} [options.window=whole image] the subset to read data from.\\\\n * @param {Array} [options.samples=all samples] the selection of samples to read from.\\\\n * @param {Boolean} [options.interleave=false] whether the data shall be read\\\\n * in one single array or separate\\\\n * arrays.\\\\n * @param {Number} [options.pool=null] The optional decoder pool to use.\\\\n * @param {number} [options.width] The desired width of the output. When the width is\\\\n * not the same as the images, resampling will be\\\\n * performed.\\\\n * @param {number} [options.height] The desired height of the output. When the width\\\\n * is not the same as the images, resampling will\\\\n * be performed.\\\\n * @param {string} [options.resampleMethod='nearest'] The desired resampling method.\\\\n * @param {number|number[]} [options.fillValue] The value to use for parts of the image\\\\n * outside of the images extent. When\\\\n * multiple samples are requested, an\\\\n * array of fill values can be passed.\\\\n * @returns {Promise.<(TypedArray|TypedArray[])>} the decoded arrays as a promise\\\\n */\\\\n async readRasters({\\\\n window: wnd, samples = [], interleave, pool = null,\\\\n width, height, resampleMethod, fillValue,\\\\n } = {}) {\\\\n const imageWindow = wnd || [0, 0, this.getWidth(), this.getHeight()];\\\\n\\\\n // check parameters\\\\n if (imageWindow[0] > imageWindow[2] || imageWindow[1] > imageWindow[3]) {\\\\n throw new Error('Invalid subsets');\\\\n }\\\\n\\\\n const imageWindowWidth = imageWindow[2] - imageWindow[0];\\\\n const imageWindowHeight = imageWindow[3] - imageWindow[1];\\\\n const numPixels = imageWindowWidth * imageWindowHeight;\\\\n\\\\n if (!samples || !samples.length) {\\\\n for (let i = 0; i < this.fileDirectory.SamplesPerPixel; ++i) {\\\\n samples.push(i);\\\\n }\\\\n } else {\\\\n for (let i = 0; i < samples.length; ++i) {\\\\n if (samples[i] >= this.fileDirectory.SamplesPerPixel) {\\\\n return Promise.reject(new RangeError(`Invalid sample index '${samples[i]}'.`));\\\\n }\\\\n }\\\\n }\\\\n let valueArrays;\\\\n if (interleave) {\\\\n const format = this.fileDirectory.SampleFormat\\\\n ? Math.max.apply(null, this.fileDirectory.SampleFormat) : 1;\\\\n const bitsPerSample = Math.max.apply(null, this.fileDirectory.BitsPerSample);\\\\n valueArrays = arrayForType(format, bitsPerSample, numPixels * samples.length);\\\\n if (fillValue) {\\\\n valueArrays.fill(fillValue);\\\\n }\\\\n } else {\\\\n valueArrays = [];\\\\n for (let i = 0; i < samples.length; ++i) {\\\\n const valueArray = this.getArrayForSample(samples[i], numPixels);\\\\n if (Array.isArray(fillValue) && i < fillValue.length) {\\\\n valueArray.fill(fillValue[i]);\\\\n } else if (fillValue && !Array.isArray(fillValue)) {\\\\n valueArray.fill(fillValue);\\\\n }\\\\n valueArrays.push(valueArray);\\\\n }\\\\n }\\\\n\\\\n const poolOrDecoder = pool || Object(_compression__WEBPACK_IMPORTED_MODULE_3__[\\\\\\\"getDecoder\\\\\\\"])(this.fileDirectory);\\\\n\\\\n const result = await this._readRaster(\\\\n imageWindow, samples, valueArrays, interleave, poolOrDecoder, width, height, resampleMethod,\\\\n );\\\\n return result;\\\\n }\\\\n\\\\n /**\\\\n * Reads raster data from the image as RGB. The result is always an\\\\n * interleaved typed array.\\\\n * Colorspaces other than RGB will be transformed to RGB, color maps expanded.\\\\n * When no other method is applicable, the first sample is used to produce a\\\\n * greayscale image.\\\\n * When provided, only a subset of the raster is read for each sample.\\\\n *\\\\n * @param {Object} [options] optional parameters\\\\n * @param {Array} [options.window=whole image] the subset to read data from.\\\\n * @param {Number} [pool=null] The optional decoder pool to use.\\\\n * @param {number} [width] The desired width of the output. When the width is no the\\\\n * same as the images, resampling will be performed.\\\\n * @param {number} [height] The desired height of the output. When the width is no the\\\\n * same as the images, resampling will be performed.\\\\n * @param {string} [resampleMethod='nearest'] The desired resampling method.\\\\n * @param {bool} [enableAlpha=false] Enable reading alpha channel if present.\\\\n * @returns {Promise.<TypedArray|TypedArray[]>} the RGB array as a Promise\\\\n */\\\\n async readRGB({ window, pool = null, width, height, resampleMethod, enableAlpha = false } = {}) {\\\\n const imageWindow = window || [0, 0, this.getWidth(), this.getHeight()];\\\\n\\\\n // check parameters\\\\n if (imageWindow[0] > imageWindow[2] || imageWindow[1] > imageWindow[3]) {\\\\n throw new Error('Invalid subsets');\\\\n }\\\\n\\\\n const pi = this.fileDirectory.PhotometricInterpretation;\\\\n\\\\n if (pi === _globals__WEBPACK_IMPORTED_MODULE_1__[\\\\\\\"photometricInterpretations\\\\\\\"].RGB) {\\\\n let s = [0, 1, 2];\\\\n if ((!(this.fileDirectory.ExtraSamples === _globals__WEBPACK_IMPORTED_MODULE_1__[\\\\\\\"ExtraSamplesValues\\\\\\\"].Unspecified)) && enableAlpha) {\\\\n s = [];\\\\n for (let i = 0; i < this.fileDirectory.BitsPerSample.length; i += 1) {\\\\n s.push(i);\\\\n }\\\\n }\\\\n return this.readRasters({\\\\n window,\\\\n interleave: true,\\\\n samples: s,\\\\n pool,\\\\n width,\\\\n height,\\\\n });\\\\n }\\\\n\\\\n let samples;\\\\n switch (pi) {\\\\n case _globals__WEBPACK_IMPORTED_MODULE_1__[\\\\\\\"photometricInterpretations\\\\\\\"].WhiteIsZero:\\\\n case _globals__WEBPACK_IMPORTED_MODULE_1__[\\\\\\\"photometricInterpretations\\\\\\\"].BlackIsZero:\\\\n case _globals__WEBPACK_IMPORTED_MODULE_1__[\\\\\\\"photometricInterpretations\\\\\\\"].Palette:\\\\n samples = [0];\\\\n break;\\\\n case _globals__WEBPACK_IMPORTED_MODULE_1__[\\\\\\\"photometricInterpretations\\\\\\\"].CMYK:\\\\n samples = [0, 1, 2, 3];\\\\n break;\\\\n case _globals__WEBPACK_IMPORTED_MODULE_1__[\\\\\\\"photometricInterpretations\\\\\\\"].YCbCr:\\\\n case _globals__WEBPACK_IMPORTED_MODULE_1__[\\\\\\\"photometricInterpretations\\\\\\\"].CIELab:\\\\n samples = [0, 1, 2];\\\\n break;\\\\n default:\\\\n throw new Error('Invalid or unsupported photometric interpretation.');\\\\n }\\\\n\\\\n const subOptions = {\\\\n window: imageWindow,\\\\n interleave: true,\\\\n samples,\\\\n pool,\\\\n width,\\\\n height,\\\\n resampleMethod,\\\\n };\\\\n const { fileDirectory } = this;\\\\n const raster = await this.readRasters(subOptions);\\\\n\\\\n const max = 2 ** this.fileDirectory.BitsPerSample[0];\\\\n let data;\\\\n switch (pi) {\\\\n case _globals__WEBPACK_IMPORTED_MODULE_1__[\\\\\\\"photometricInterpretations\\\\\\\"].WhiteIsZero:\\\\n data = Object(_rgb__WEBPACK_IMPORTED_MODULE_2__[\\\\\\\"fromWhiteIsZero\\\\\\\"])(raster, max);\\\\n break;\\\\n case _globals__WEBPACK_IMPORTED_MODULE_1__[\\\\\\\"photometricInterpretations\\\\\\\"].BlackIsZero:\\\\n data = Object(_rgb__WEBPACK_IMPORTED_MODULE_2__[\\\\\\\"fromBlackIsZero\\\\\\\"])(raster, max);\\\\n break;\\\\n case _globals__WEBPACK_IMPORTED_MODULE_1__[\\\\\\\"photometricInterpretations\\\\\\\"].Palette:\\\\n data = Object(_rgb__WEBPACK_IMPORTED_MODULE_2__[\\\\\\\"fromPalette\\\\\\\"])(raster, fileDirectory.ColorMap);\\\\n break;\\\\n case _globals__WEBPACK_IMPORTED_MODULE_1__[\\\\\\\"photometricInterpretations\\\\\\\"].CMYK:\\\\n data = Object(_rgb__WEBPACK_IMPORTED_MODULE_2__[\\\\\\\"fromCMYK\\\\\\\"])(raster);\\\\n break;\\\\n case _globals__WEBPACK_IMPORTED_MODULE_1__[\\\\\\\"photometricInterpretations\\\\\\\"].YCbCr:\\\\n data = Object(_rgb__WEBPACK_IMPORTED_MODULE_2__[\\\\\\\"fromYCbCr\\\\\\\"])(raster);\\\\n break;\\\\n case _globals__WEBPACK_IMPORTED_MODULE_1__[\\\\\\\"photometricInterpretations\\\\\\\"].CIELab:\\\\n data = Object(_rgb__WEBPACK_IMPORTED_MODULE_2__[\\\\\\\"fromCIELab\\\\\\\"])(raster);\\\\n break;\\\\n default:\\\\n throw new Error('Unsupported photometric interpretation.');\\\\n }\\\\n data.width = raster.width;\\\\n data.height = raster.height;\\\\n return data;\\\\n }\\\\n\\\\n /**\\\\n * Returns an array of tiepoints.\\\\n * @returns {Object[]}\\\\n */\\\\n getTiePoints() {\\\\n if (!this.fileDirectory.ModelTiepoint) {\\\\n return [];\\\\n }\\\\n\\\\n const tiePoints = [];\\\\n for (let i = 0; i < this.fileDirectory.ModelTiepoint.length; i += 6) {\\\\n tiePoints.push({\\\\n i: this.fileDirectory.ModelTiepoint[i],\\\\n j: this.fileDirectory.ModelTiepoint[i + 1],\\\\n k: this.fileDirectory.ModelTiepoint[i + 2],\\\\n x: this.fileDirectory.ModelTiepoint[i + 3],\\\\n y: this.fileDirectory.ModelTiepoint[i + 4],\\\\n z: this.fileDirectory.ModelTiepoint[i + 5],\\\\n });\\\\n }\\\\n return tiePoints;\\\\n }\\\\n\\\\n /**\\\\n * Returns the parsed GDAL metadata items.\\\\n *\\\\n * If sample is passed to null, dataset-level metadata will be returned.\\\\n * Otherwise only metadata specific to the provided sample will be returned.\\\\n *\\\\n * @param {Number} [sample=null] The sample index.\\\\n * @returns {Object}\\\\n */\\\\n getGDALMetadata(sample = null) {\\\\n const metadata = {};\\\\n if (!this.fileDirectory.GDAL_METADATA) {\\\\n return null;\\\\n }\\\\n const string = this.fileDirectory.GDAL_METADATA;\\\\n const xmlDom = txml__WEBPACK_IMPORTED_MODULE_0___default()(string.substring(0, string.length - 1));\\\\n\\\\n if (!xmlDom[0].tagName) {\\\\n throw new Error('Failed to parse GDAL metadata XML.');\\\\n }\\\\n\\\\n const root = xmlDom[0];\\\\n if (root.tagName !== 'GDALMetadata') {\\\\n throw new Error('Unexpected GDAL metadata XML tag.');\\\\n }\\\\n\\\\n let items = root.children\\\\n .filter((child) => child.tagName === 'Item');\\\\n\\\\n if (sample) {\\\\n items = items.filter((item) => Number(item.attributes.sample) === sample);\\\\n }\\\\n\\\\n for (let i = 0; i < items.length; ++i) {\\\\n const item = items[i];\\\\n metadata[item.attributes.name] = item.children[0];\\\\n }\\\\n return metadata;\\\\n }\\\\n\\\\n /**\\\\n * Returns the GDAL nodata value\\\\n * @returns {Number} or null\\\\n */\\\\n getGDALNoData() {\\\\n if (!this.fileDirectory.GDAL_NODATA) {\\\\n return null;\\\\n }\\\\n const string = this.fileDirectory.GDAL_NODATA;\\\\n return Number(string.substring(0, string.length - 1));\\\\n }\\\\n\\\\n /**\\\\n * Returns the image origin as a XYZ-vector. When the image has no affine\\\\n * transformation, then an exception is thrown.\\\\n * @returns {Array} The origin as a vector\\\\n */\\\\n getOrigin() {\\\\n const tiePoints = this.fileDirectory.ModelTiepoint;\\\\n const modelTransformation = this.fileDirectory.ModelTransformation;\\\\n if (tiePoints && tiePoints.length === 6) {\\\\n return [\\\\n tiePoints[3],\\\\n tiePoints[4],\\\\n tiePoints[5],\\\\n ];\\\\n }\\\\n if (modelTransformation) {\\\\n return [\\\\n modelTransformation[3],\\\\n modelTransformation[7],\\\\n modelTransformation[11],\\\\n ];\\\\n }\\\\n throw new Error('The image does not have an affine transformation.');\\\\n }\\\\n\\\\n /**\\\\n * Returns the image resolution as a XYZ-vector. When the image has no affine\\\\n * transformation, then an exception is thrown.\\\\n * @param {GeoTIFFImage} [referenceImage=null] A reference image to calculate the resolution from\\\\n * in cases when the current image does not have the\\\\n * required tags on its own.\\\\n * @returns {Array} The resolution as a vector\\\\n */\\\\n getResolution(referenceImage = null) {\\\\n const modelPixelScale = this.fileDirectory.ModelPixelScale;\\\\n const modelTransformation = this.fileDirectory.ModelTransformation;\\\\n\\\\n if (modelPixelScale) {\\\\n return [\\\\n modelPixelScale[0],\\\\n -modelPixelScale[1],\\\\n modelPixelScale[2],\\\\n ];\\\\n }\\\\n if (modelTransformation) {\\\\n return [\\\\n modelTransformation[0],\\\\n modelTransformation[5],\\\\n modelTransformation[10],\\\\n ];\\\\n }\\\\n\\\\n if (referenceImage) {\\\\n const [refResX, refResY, refResZ] = referenceImage.getResolution();\\\\n return [\\\\n refResX * referenceImage.getWidth() / this.getWidth(),\\\\n refResY * referenceImage.getHeight() / this.getHeight(),\\\\n refResZ * referenceImage.getWidth() / this.getWidth(),\\\\n ];\\\\n }\\\\n\\\\n throw new Error('The image does not have an affine transformation.');\\\\n }\\\\n\\\\n /**\\\\n * Returns whether or not the pixels of the image depict an area (or point).\\\\n * @returns {Boolean} Whether the pixels are a point\\\\n */\\\\n pixelIsArea() {\\\\n return this.geoKeys.GTRasterTypeGeoKey === 1;\\\\n }\\\\n\\\\n /**\\\\n * Returns the image bounding box as an array of 4 values: min-x, min-y,\\\\n * max-x and max-y. When the image has no affine transformation, then an\\\\n * exception is thrown.\\\\n * @returns {Array} The bounding box\\\\n */\\\\n getBoundingBox() {\\\\n const origin = this.getOrigin();\\\\n const resolution = this.getResolution();\\\\n\\\\n const x1 = origin[0];\\\\n const y1 = origin[1];\\\\n\\\\n const x2 = x1 + (resolution[0] * this.getWidth());\\\\n const y2 = y1 + (resolution[1] * this.getHeight());\\\\n\\\\n return [\\\\n Math.min(x1, x2),\\\\n Math.min(y1, y2),\\\\n Math.max(x1, x2),\\\\n Math.max(y1, y2),\\\\n ];\\\\n }\\\\n}\\\\n\\\\n/* harmony default export */ __webpack_exports__[\\\\\\\"default\\\\\\\"] = (GeoTIFFImage);\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/geotiff/src/geotiffimage.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/geotiff/src/geotiffwriter.js\\\":\\n/*!***************************************************!*\\\\\\n !*** ./node_modules/geotiff/src/geotiffwriter.js ***!\\n \\\\***************************************************/\\n/*! exports provided: writeGeotiff */\\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\\n\\n\\\"use strict\\\";\\neval(\\\"__webpack_require__.r(__webpack_exports__);\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"writeGeotiff\\\\\\\", function() { return writeGeotiff; });\\\\n/* harmony import */ var _globals__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./globals */ \\\\\\\"./node_modules/geotiff/src/globals.js\\\\\\\");\\\\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./utils */ \\\\\\\"./node_modules/geotiff/src/utils.js\\\\\\\");\\\\n/*\\\\n Some parts of this file are based on UTIF.js,\\\\n which was released under the MIT License.\\\\n You can view that here:\\\\n https://github.com/photopea/UTIF.js/blob/master/LICENSE\\\\n*/\\\\n\\\\n\\\\n\\\\nconst tagName2Code = Object(_utils__WEBPACK_IMPORTED_MODULE_1__[\\\\\\\"invert\\\\\\\"])(_globals__WEBPACK_IMPORTED_MODULE_0__[\\\\\\\"fieldTagNames\\\\\\\"]);\\\\nconst geoKeyName2Code = Object(_utils__WEBPACK_IMPORTED_MODULE_1__[\\\\\\\"invert\\\\\\\"])(_globals__WEBPACK_IMPORTED_MODULE_0__[\\\\\\\"geoKeyNames\\\\\\\"]);\\\\nconst name2code = {};\\\\nObject(_utils__WEBPACK_IMPORTED_MODULE_1__[\\\\\\\"assign\\\\\\\"])(name2code, tagName2Code);\\\\nObject(_utils__WEBPACK_IMPORTED_MODULE_1__[\\\\\\\"assign\\\\\\\"])(name2code, geoKeyName2Code);\\\\nconst typeName2byte = Object(_utils__WEBPACK_IMPORTED_MODULE_1__[\\\\\\\"invert\\\\\\\"])(_globals__WEBPACK_IMPORTED_MODULE_0__[\\\\\\\"fieldTypeNames\\\\\\\"]);\\\\n\\\\n// config variables\\\\nconst numBytesInIfd = 1000;\\\\n\\\\nconst _binBE = {\\\\n nextZero: (data, o) => {\\\\n let oincr = o;\\\\n while (data[oincr] !== 0) {\\\\n oincr++;\\\\n }\\\\n return oincr;\\\\n },\\\\n readUshort: (buff, p) => {\\\\n return (buff[p] << 8) | buff[p + 1];\\\\n },\\\\n readShort: (buff, p) => {\\\\n const a = _binBE.ui8;\\\\n a[0] = buff[p + 1];\\\\n a[1] = buff[p + 0];\\\\n return _binBE.i16[0];\\\\n },\\\\n readInt: (buff, p) => {\\\\n const a = _binBE.ui8;\\\\n a[0] = buff[p + 3];\\\\n a[1] = buff[p + 2];\\\\n a[2] = buff[p + 1];\\\\n a[3] = buff[p + 0];\\\\n return _binBE.i32[0];\\\\n },\\\\n readUint: (buff, p) => {\\\\n const a = _binBE.ui8;\\\\n a[0] = buff[p + 3];\\\\n a[1] = buff[p + 2];\\\\n a[2] = buff[p + 1];\\\\n a[3] = buff[p + 0];\\\\n return _binBE.ui32[0];\\\\n },\\\\n readASCII: (buff, p, l) => {\\\\n return l.map((i) => String.fromCharCode(buff[p + i])).join('');\\\\n },\\\\n readFloat: (buff, p) => {\\\\n const a = _binBE.ui8;\\\\n Object(_utils__WEBPACK_IMPORTED_MODULE_1__[\\\\\\\"times\\\\\\\"])(4, (i) => {\\\\n a[i] = buff[p + 3 - i];\\\\n });\\\\n return _binBE.fl32[0];\\\\n },\\\\n readDouble: (buff, p) => {\\\\n const a = _binBE.ui8;\\\\n Object(_utils__WEBPACK_IMPORTED_MODULE_1__[\\\\\\\"times\\\\\\\"])(8, (i) => {\\\\n a[i] = buff[p + 7 - i];\\\\n });\\\\n return _binBE.fl64[0];\\\\n },\\\\n writeUshort: (buff, p, n) => {\\\\n buff[p] = (n >> 8) & 255;\\\\n buff[p + 1] = n & 255;\\\\n },\\\\n writeUint: (buff, p, n) => {\\\\n buff[p] = (n >> 24) & 255;\\\\n buff[p + 1] = (n >> 16) & 255;\\\\n buff[p + 2] = (n >> 8) & 255;\\\\n buff[p + 3] = (n >> 0) & 255;\\\\n },\\\\n writeASCII: (buff, p, s) => {\\\\n Object(_utils__WEBPACK_IMPORTED_MODULE_1__[\\\\\\\"times\\\\\\\"])(s.length, (i) => {\\\\n buff[p + i] = s.charCodeAt(i);\\\\n });\\\\n },\\\\n ui8: new Uint8Array(8),\\\\n};\\\\n\\\\n_binBE.fl64 = new Float64Array(_binBE.ui8.buffer);\\\\n\\\\n_binBE.writeDouble = (buff, p, n) => {\\\\n _binBE.fl64[0] = n;\\\\n Object(_utils__WEBPACK_IMPORTED_MODULE_1__[\\\\\\\"times\\\\\\\"])(8, (i) => {\\\\n buff[p + i] = _binBE.ui8[7 - i];\\\\n });\\\\n};\\\\n\\\\n\\\\nconst _writeIFD = (bin, data, _offset, ifd) => {\\\\n let offset = _offset;\\\\n\\\\n const keys = Object.keys(ifd).filter((key) => {\\\\n return key !== undefined && key !== null && key !== 'undefined';\\\\n });\\\\n\\\\n bin.writeUshort(data, offset, keys.length);\\\\n offset += 2;\\\\n\\\\n let eoff = offset + (12 * keys.length) + 4;\\\\n\\\\n for (const key of keys) {\\\\n let tag = null;\\\\n if (typeof key === 'number') {\\\\n tag = key;\\\\n } else if (typeof key === 'string') {\\\\n tag = parseInt(key, 10);\\\\n }\\\\n\\\\n const typeName = _globals__WEBPACK_IMPORTED_MODULE_0__[\\\\\\\"fieldTagTypes\\\\\\\"][tag];\\\\n const typeNum = typeName2byte[typeName];\\\\n\\\\n if (typeName == null || typeName === undefined || typeof typeName === 'undefined') {\\\\n throw new Error(`unknown type of tag: ${tag}`);\\\\n }\\\\n\\\\n let val = ifd[key];\\\\n\\\\n if (typeof val === 'undefined') {\\\\n throw new Error(`failed to get value for key ${key}`);\\\\n }\\\\n\\\\n // ASCIIZ format with trailing 0 character\\\\n // http://www.fileformat.info/format/tiff/corion.htm\\\\n // https://stackoverflow.com/questions/7783044/whats-the-difference-between-asciiz-vs-ascii\\\\n if (typeName === 'ASCII' && typeof val === 'string' && Object(_utils__WEBPACK_IMPORTED_MODULE_1__[\\\\\\\"endsWith\\\\\\\"])(val, '\\\\\\\\u0000') === false) {\\\\n val += '\\\\\\\\u0000';\\\\n }\\\\n\\\\n const num = val.length;\\\\n\\\\n bin.writeUshort(data, offset, tag);\\\\n offset += 2;\\\\n\\\\n bin.writeUshort(data, offset, typeNum);\\\\n offset += 2;\\\\n\\\\n bin.writeUint(data, offset, num);\\\\n offset += 4;\\\\n\\\\n let dlen = [-1, 1, 1, 2, 4, 8, 0, 0, 0, 0, 0, 0, 8][typeNum] * num;\\\\n let toff = offset;\\\\n\\\\n if (dlen > 4) {\\\\n bin.writeUint(data, offset, eoff);\\\\n toff = eoff;\\\\n }\\\\n\\\\n if (typeName === 'ASCII') {\\\\n bin.writeASCII(data, toff, val);\\\\n } else if (typeName === 'SHORT') {\\\\n Object(_utils__WEBPACK_IMPORTED_MODULE_1__[\\\\\\\"times\\\\\\\"])(num, (i) => {\\\\n bin.writeUshort(data, toff + (2 * i), val[i]);\\\\n });\\\\n } else if (typeName === 'LONG') {\\\\n Object(_utils__WEBPACK_IMPORTED_MODULE_1__[\\\\\\\"times\\\\\\\"])(num, (i) => {\\\\n bin.writeUint(data, toff + (4 * i), val[i]);\\\\n });\\\\n } else if (typeName === 'RATIONAL') {\\\\n Object(_utils__WEBPACK_IMPORTED_MODULE_1__[\\\\\\\"times\\\\\\\"])(num, (i) => {\\\\n bin.writeUint(data, toff + (8 * i), Math.round(val[i] * 10000));\\\\n bin.writeUint(data, toff + (8 * i) + 4, 10000);\\\\n });\\\\n } else if (typeName === 'DOUBLE') {\\\\n Object(_utils__WEBPACK_IMPORTED_MODULE_1__[\\\\\\\"times\\\\\\\"])(num, (i) => {\\\\n bin.writeDouble(data, toff + (8 * i), val[i]);\\\\n });\\\\n }\\\\n\\\\n if (dlen > 4) {\\\\n dlen += (dlen & 1);\\\\n eoff += dlen;\\\\n }\\\\n\\\\n offset += 4;\\\\n }\\\\n\\\\n return [offset, eoff];\\\\n};\\\\n\\\\nconst encodeIfds = (ifds) => {\\\\n const data = new Uint8Array(numBytesInIfd);\\\\n let offset = 4;\\\\n const bin = _binBE;\\\\n\\\\n // set big-endian byte-order\\\\n // https://en.wikipedia.org/wiki/TIFF#Byte_order\\\\n data[0] = 77;\\\\n data[1] = 77;\\\\n\\\\n // set format-version number\\\\n // https://en.wikipedia.org/wiki/TIFF#Byte_order\\\\n data[3] = 42;\\\\n\\\\n let ifdo = 8;\\\\n\\\\n bin.writeUint(data, offset, ifdo);\\\\n\\\\n offset += 4;\\\\n\\\\n ifds.forEach((ifd, i) => {\\\\n const noffs = _writeIFD(bin, data, ifdo, ifd);\\\\n ifdo = noffs[1];\\\\n if (i < ifds.length - 1) {\\\\n bin.writeUint(data, noffs[0], ifdo);\\\\n }\\\\n });\\\\n\\\\n if (data.slice) {\\\\n return data.slice(0, ifdo).buffer;\\\\n }\\\\n\\\\n // node hasn't implemented slice on Uint8Array yet\\\\n const result = new Uint8Array(ifdo);\\\\n for (let i = 0; i < ifdo; i++) {\\\\n result[i] = data[i];\\\\n }\\\\n return result.buffer;\\\\n};\\\\n\\\\nconst encodeImage = (values, width, height, metadata) => {\\\\n if (height === undefined || height === null) {\\\\n throw new Error(`you passed into encodeImage a width of type ${height}`);\\\\n }\\\\n\\\\n if (width === undefined || width === null) {\\\\n throw new Error(`you passed into encodeImage a width of type ${width}`);\\\\n }\\\\n\\\\n const ifd = {\\\\n 256: [width], // ImageWidth\\\\n 257: [height], // ImageLength\\\\n 273: [numBytesInIfd], // strips offset\\\\n 278: [height], // RowsPerStrip\\\\n 305: 'geotiff.js', // no array for ASCII(Z)\\\\n };\\\\n\\\\n if (metadata) {\\\\n for (const i in metadata) {\\\\n if (metadata.hasOwnProperty(i)) {\\\\n ifd[i] = metadata[i];\\\\n }\\\\n }\\\\n }\\\\n\\\\n const prfx = new Uint8Array(encodeIfds([ifd]));\\\\n\\\\n const img = new Uint8Array(values);\\\\n\\\\n const samplesPerPixel = ifd[277];\\\\n\\\\n const data = new Uint8Array(numBytesInIfd + (width * height * samplesPerPixel));\\\\n Object(_utils__WEBPACK_IMPORTED_MODULE_1__[\\\\\\\"times\\\\\\\"])(prfx.length, (i) => {\\\\n data[i] = prfx[i];\\\\n });\\\\n Object(_utils__WEBPACK_IMPORTED_MODULE_1__[\\\\\\\"forEach\\\\\\\"])(img, (value, i) => {\\\\n data[numBytesInIfd + i] = value;\\\\n });\\\\n\\\\n return data.buffer;\\\\n};\\\\n\\\\nconst convertToTids = (input) => {\\\\n const result = {};\\\\n for (const key in input) {\\\\n if (key !== 'StripOffsets') {\\\\n if (!name2code[key]) {\\\\n console.error(key, 'not in name2code:', Object.keys(name2code));\\\\n }\\\\n result[name2code[key]] = input[key];\\\\n }\\\\n }\\\\n return result;\\\\n};\\\\n\\\\nconst toArray = (input) => {\\\\n if (Array.isArray(input)) {\\\\n return input;\\\\n }\\\\n return [input];\\\\n};\\\\n\\\\nconst metadataDefaults = [\\\\n ['Compression', 1], // no compression\\\\n ['PlanarConfiguration', 1],\\\\n ['XPosition', 0],\\\\n ['YPosition', 0],\\\\n ['ResolutionUnit', 1], // Code 1 for actual pixel count or 2 for pixels per inch.\\\\n ['ExtraSamples', 0], // should this be an array??\\\\n ['GeoAsciiParams', 'WGS 84\\\\\\\\u0000'],\\\\n ['ModelTiepoint', [0, 0, 0, -180, 90, 0]], // raster fits whole globe\\\\n ['GTModelTypeGeoKey', 2],\\\\n ['GTRasterTypeGeoKey', 1],\\\\n ['GeographicTypeGeoKey', 4326],\\\\n ['GeogCitationGeoKey', 'WGS 84'],\\\\n];\\\\n\\\\nfunction writeGeotiff(data, metadata) {\\\\n const isFlattened = typeof data[0] === 'number';\\\\n\\\\n let height;\\\\n let numBands;\\\\n let width;\\\\n let flattenedValues;\\\\n\\\\n if (isFlattened) {\\\\n height = metadata.height || metadata.ImageLength;\\\\n width = metadata.width || metadata.ImageWidth;\\\\n numBands = data.length / (height * width);\\\\n flattenedValues = data;\\\\n } else {\\\\n numBands = data.length;\\\\n height = data[0].length;\\\\n width = data[0][0].length;\\\\n flattenedValues = [];\\\\n Object(_utils__WEBPACK_IMPORTED_MODULE_1__[\\\\\\\"times\\\\\\\"])(height, (rowIndex) => {\\\\n Object(_utils__WEBPACK_IMPORTED_MODULE_1__[\\\\\\\"times\\\\\\\"])(width, (columnIndex) => {\\\\n Object(_utils__WEBPACK_IMPORTED_MODULE_1__[\\\\\\\"times\\\\\\\"])(numBands, (bandIndex) => {\\\\n flattenedValues.push(data[bandIndex][rowIndex][columnIndex]);\\\\n });\\\\n });\\\\n });\\\\n }\\\\n\\\\n metadata.ImageLength = height;\\\\n delete metadata.height;\\\\n metadata.ImageWidth = width;\\\\n delete metadata.width;\\\\n\\\\n // consult https://www.loc.gov/preservation/digital/formats/content/tiff_tags.shtml\\\\n\\\\n if (!metadata.BitsPerSample) {\\\\n metadata.BitsPerSample = Object(_utils__WEBPACK_IMPORTED_MODULE_1__[\\\\\\\"times\\\\\\\"])(numBands, () => 8);\\\\n }\\\\n\\\\n metadataDefaults.forEach((tag) => {\\\\n const key = tag[0];\\\\n if (!metadata[key]) {\\\\n const value = tag[1];\\\\n metadata[key] = value;\\\\n }\\\\n });\\\\n\\\\n // The color space of the image data.\\\\n // 1=black is zero and 2=RGB.\\\\n if (!metadata.PhotometricInterpretation) {\\\\n metadata.PhotometricInterpretation = metadata.BitsPerSample.length === 3 ? 2 : 1;\\\\n }\\\\n\\\\n // The number of components per pixel.\\\\n if (!metadata.SamplesPerPixel) {\\\\n metadata.SamplesPerPixel = [numBands];\\\\n }\\\\n\\\\n if (!metadata.StripByteCounts) {\\\\n // we are only writing one strip\\\\n metadata.StripByteCounts = [numBands * height * width];\\\\n }\\\\n\\\\n if (!metadata.ModelPixelScale) {\\\\n // assumes raster takes up exactly the whole globe\\\\n metadata.ModelPixelScale = [360 / width, 180 / height, 0];\\\\n }\\\\n\\\\n if (!metadata.SampleFormat) {\\\\n metadata.SampleFormat = Object(_utils__WEBPACK_IMPORTED_MODULE_1__[\\\\\\\"times\\\\\\\"])(numBands, () => 1);\\\\n }\\\\n\\\\n\\\\n const geoKeys = Object.keys(metadata)\\\\n .filter((key) => Object(_utils__WEBPACK_IMPORTED_MODULE_1__[\\\\\\\"endsWith\\\\\\\"])(key, 'GeoKey'))\\\\n .sort((a, b) => name2code[a] - name2code[b]);\\\\n\\\\n if (!metadata.GeoKeyDirectory) {\\\\n const NumberOfKeys = geoKeys.length;\\\\n\\\\n const GeoKeyDirectory = [1, 1, 0, NumberOfKeys];\\\\n geoKeys.forEach((geoKey) => {\\\\n const KeyID = Number(name2code[geoKey]);\\\\n GeoKeyDirectory.push(KeyID);\\\\n\\\\n let Count;\\\\n let TIFFTagLocation;\\\\n let valueOffset;\\\\n if (_globals__WEBPACK_IMPORTED_MODULE_0__[\\\\\\\"fieldTagTypes\\\\\\\"][KeyID] === 'SHORT') {\\\\n Count = 1;\\\\n TIFFTagLocation = 0;\\\\n valueOffset = metadata[geoKey];\\\\n } else if (geoKey === 'GeogCitationGeoKey') {\\\\n Count = metadata.GeoAsciiParams.length;\\\\n TIFFTagLocation = Number(name2code.GeoAsciiParams);\\\\n valueOffset = 0;\\\\n } else {\\\\n console.log(`[geotiff.js] couldn't get TIFFTagLocation for ${geoKey}`);\\\\n }\\\\n GeoKeyDirectory.push(TIFFTagLocation);\\\\n GeoKeyDirectory.push(Count);\\\\n GeoKeyDirectory.push(valueOffset);\\\\n });\\\\n metadata.GeoKeyDirectory = GeoKeyDirectory;\\\\n }\\\\n\\\\n // delete GeoKeys from metadata, because stored in GeoKeyDirectory tag\\\\n for (const geoKey in geoKeys) {\\\\n if (geoKeys.hasOwnProperty(geoKey)) {\\\\n delete metadata[geoKey];\\\\n }\\\\n }\\\\n\\\\n [\\\\n 'Compression',\\\\n 'ExtraSamples',\\\\n 'GeographicTypeGeoKey',\\\\n 'GTModelTypeGeoKey',\\\\n 'GTRasterTypeGeoKey',\\\\n 'ImageLength', // synonym of ImageHeight\\\\n 'ImageWidth',\\\\n 'PhotometricInterpretation',\\\\n 'PlanarConfiguration',\\\\n 'ResolutionUnit',\\\\n 'SamplesPerPixel',\\\\n 'XPosition',\\\\n 'YPosition',\\\\n ].forEach((name) => {\\\\n if (metadata[name]) {\\\\n metadata[name] = toArray(metadata[name]);\\\\n }\\\\n });\\\\n\\\\n\\\\n const encodedMetadata = convertToTids(metadata);\\\\n\\\\n const outputImage = encodeImage(flattenedValues, width, height, encodedMetadata);\\\\n\\\\n return outputImage;\\\\n}\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/geotiff/src/geotiffwriter.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/geotiff/src/globals.js\\\":\\n/*!*********************************************!*\\\\\\n !*** ./node_modules/geotiff/src/globals.js ***!\\n \\\\*********************************************/\\n/*! exports provided: fieldTagNames, fieldTags, fieldTagTypes, arrayFields, fieldTypeNames, fieldTypes, photometricInterpretations, ExtraSamplesValues, geoKeyNames, geoKeys */\\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\\n\\n\\\"use strict\\\";\\neval(\\\"__webpack_require__.r(__webpack_exports__);\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"fieldTagNames\\\\\\\", function() { return fieldTagNames; });\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"fieldTags\\\\\\\", function() { return fieldTags; });\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"fieldTagTypes\\\\\\\", function() { return fieldTagTypes; });\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"arrayFields\\\\\\\", function() { return arrayFields; });\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"fieldTypeNames\\\\\\\", function() { return fieldTypeNames; });\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"fieldTypes\\\\\\\", function() { return fieldTypes; });\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"photometricInterpretations\\\\\\\", function() { return photometricInterpretations; });\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"ExtraSamplesValues\\\\\\\", function() { return ExtraSamplesValues; });\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"geoKeyNames\\\\\\\", function() { return geoKeyNames; });\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"geoKeys\\\\\\\", function() { return geoKeys; });\\\\nconst fieldTagNames = {\\\\n // TIFF Baseline\\\\n 0x013B: 'Artist',\\\\n 0x0102: 'BitsPerSample',\\\\n 0x0109: 'CellLength',\\\\n 0x0108: 'CellWidth',\\\\n 0x0140: 'ColorMap',\\\\n 0x0103: 'Compression',\\\\n 0x8298: 'Copyright',\\\\n 0x0132: 'DateTime',\\\\n 0x0152: 'ExtraSamples',\\\\n 0x010A: 'FillOrder',\\\\n 0x0121: 'FreeByteCounts',\\\\n 0x0120: 'FreeOffsets',\\\\n 0x0123: 'GrayResponseCurve',\\\\n 0x0122: 'GrayResponseUnit',\\\\n 0x013C: 'HostComputer',\\\\n 0x010E: 'ImageDescription',\\\\n 0x0101: 'ImageLength',\\\\n 0x0100: 'ImageWidth',\\\\n 0x010F: 'Make',\\\\n 0x0119: 'MaxSampleValue',\\\\n 0x0118: 'MinSampleValue',\\\\n 0x0110: 'Model',\\\\n 0x00FE: 'NewSubfileType',\\\\n 0x0112: 'Orientation',\\\\n 0x0106: 'PhotometricInterpretation',\\\\n 0x011C: 'PlanarConfiguration',\\\\n 0x0128: 'ResolutionUnit',\\\\n 0x0116: 'RowsPerStrip',\\\\n 0x0115: 'SamplesPerPixel',\\\\n 0x0131: 'Software',\\\\n 0x0117: 'StripByteCounts',\\\\n 0x0111: 'StripOffsets',\\\\n 0x00FF: 'SubfileType',\\\\n 0x0107: 'Threshholding',\\\\n 0x011A: 'XResolution',\\\\n 0x011B: 'YResolution',\\\\n\\\\n // TIFF Extended\\\\n 0x0146: 'BadFaxLines',\\\\n 0x0147: 'CleanFaxData',\\\\n 0x0157: 'ClipPath',\\\\n 0x0148: 'ConsecutiveBadFaxLines',\\\\n 0x01B1: 'Decode',\\\\n 0x01B2: 'DefaultImageColor',\\\\n 0x010D: 'DocumentName',\\\\n 0x0150: 'DotRange',\\\\n 0x0141: 'HalftoneHints',\\\\n 0x015A: 'Indexed',\\\\n 0x015B: 'JPEGTables',\\\\n 0x011D: 'PageName',\\\\n 0x0129: 'PageNumber',\\\\n 0x013D: 'Predictor',\\\\n 0x013F: 'PrimaryChromaticities',\\\\n 0x0214: 'ReferenceBlackWhite',\\\\n 0x0153: 'SampleFormat',\\\\n 0x0154: 'SMinSampleValue',\\\\n 0x0155: 'SMaxSampleValue',\\\\n 0x022F: 'StripRowCounts',\\\\n 0x014A: 'SubIFDs',\\\\n 0x0124: 'T4Options',\\\\n 0x0125: 'T6Options',\\\\n 0x0145: 'TileByteCounts',\\\\n 0x0143: 'TileLength',\\\\n 0x0144: 'TileOffsets',\\\\n 0x0142: 'TileWidth',\\\\n 0x012D: 'TransferFunction',\\\\n 0x013E: 'WhitePoint',\\\\n 0x0158: 'XClipPathUnits',\\\\n 0x011E: 'XPosition',\\\\n 0x0211: 'YCbCrCoefficients',\\\\n 0x0213: 'YCbCrPositioning',\\\\n 0x0212: 'YCbCrSubSampling',\\\\n 0x0159: 'YClipPathUnits',\\\\n 0x011F: 'YPosition',\\\\n\\\\n // EXIF\\\\n 0x9202: 'ApertureValue',\\\\n 0xA001: 'ColorSpace',\\\\n 0x9004: 'DateTimeDigitized',\\\\n 0x9003: 'DateTimeOriginal',\\\\n 0x8769: 'Exif IFD',\\\\n 0x9000: 'ExifVersion',\\\\n 0x829A: 'ExposureTime',\\\\n 0xA300: 'FileSource',\\\\n 0x9209: 'Flash',\\\\n 0xA000: 'FlashpixVersion',\\\\n 0x829D: 'FNumber',\\\\n 0xA420: 'ImageUniqueID',\\\\n 0x9208: 'LightSource',\\\\n 0x927C: 'MakerNote',\\\\n 0x9201: 'ShutterSpeedValue',\\\\n 0x9286: 'UserComment',\\\\n\\\\n // IPTC\\\\n 0x83BB: 'IPTC',\\\\n\\\\n // ICC\\\\n 0x8773: 'ICC Profile',\\\\n\\\\n // XMP\\\\n 0x02BC: 'XMP',\\\\n\\\\n // GDAL\\\\n 0xA480: 'GDAL_METADATA',\\\\n 0xA481: 'GDAL_NODATA',\\\\n\\\\n // Photoshop\\\\n 0x8649: 'Photoshop',\\\\n\\\\n // GeoTiff\\\\n 0x830E: 'ModelPixelScale',\\\\n 0x8482: 'ModelTiepoint',\\\\n 0x85D8: 'ModelTransformation',\\\\n 0x87AF: 'GeoKeyDirectory',\\\\n 0x87B0: 'GeoDoubleParams',\\\\n 0x87B1: 'GeoAsciiParams',\\\\n};\\\\n\\\\nconst fieldTags = {};\\\\nfor (const key in fieldTagNames) {\\\\n if (fieldTagNames.hasOwnProperty(key)) {\\\\n fieldTags[fieldTagNames[key]] = parseInt(key, 10);\\\\n }\\\\n}\\\\n\\\\nconst fieldTagTypes = {\\\\n 256: 'SHORT',\\\\n 257: 'SHORT',\\\\n 258: 'SHORT',\\\\n 259: 'SHORT',\\\\n 262: 'SHORT',\\\\n 273: 'LONG',\\\\n 274: 'SHORT',\\\\n 277: 'SHORT',\\\\n 278: 'LONG',\\\\n 279: 'LONG',\\\\n 282: 'RATIONAL',\\\\n 283: 'RATIONAL',\\\\n 284: 'SHORT',\\\\n 286: 'SHORT',\\\\n 287: 'RATIONAL',\\\\n 296: 'SHORT',\\\\n 305: 'ASCII',\\\\n 306: 'ASCII',\\\\n 338: 'SHORT',\\\\n 339: 'SHORT',\\\\n 513: 'LONG',\\\\n 514: 'LONG',\\\\n 1024: 'SHORT',\\\\n 1025: 'SHORT',\\\\n 2048: 'SHORT',\\\\n 2049: 'ASCII',\\\\n 33550: 'DOUBLE',\\\\n 33922: 'DOUBLE',\\\\n 34665: 'LONG',\\\\n 34735: 'SHORT',\\\\n 34737: 'ASCII',\\\\n 42113: 'ASCII',\\\\n};\\\\n\\\\nconst arrayFields = [\\\\n fieldTags.BitsPerSample,\\\\n fieldTags.ExtraSamples,\\\\n fieldTags.SampleFormat,\\\\n fieldTags.StripByteCounts,\\\\n fieldTags.StripOffsets,\\\\n fieldTags.StripRowCounts,\\\\n fieldTags.TileByteCounts,\\\\n fieldTags.TileOffsets,\\\\n];\\\\n\\\\nconst fieldTypeNames = {\\\\n 0x0001: 'BYTE',\\\\n 0x0002: 'ASCII',\\\\n 0x0003: 'SHORT',\\\\n 0x0004: 'LONG',\\\\n 0x0005: 'RATIONAL',\\\\n 0x0006: 'SBYTE',\\\\n 0x0007: 'UNDEFINED',\\\\n 0x0008: 'SSHORT',\\\\n 0x0009: 'SLONG',\\\\n 0x000A: 'SRATIONAL',\\\\n 0x000B: 'FLOAT',\\\\n 0x000C: 'DOUBLE',\\\\n // IFD offset, suggested by https://owl.phy.queensu.ca/~phil/exiftool/standards.html\\\\n 0x000D: 'IFD',\\\\n // introduced by BigTIFF\\\\n 0x0010: 'LONG8',\\\\n 0x0011: 'SLONG8',\\\\n 0x0012: 'IFD8',\\\\n};\\\\n\\\\nconst fieldTypes = {};\\\\nfor (const key in fieldTypeNames) {\\\\n if (fieldTypeNames.hasOwnProperty(key)) {\\\\n fieldTypes[fieldTypeNames[key]] = parseInt(key, 10);\\\\n }\\\\n}\\\\n\\\\nconst photometricInterpretations = {\\\\n WhiteIsZero: 0,\\\\n BlackIsZero: 1,\\\\n RGB: 2,\\\\n Palette: 3,\\\\n TransparencyMask: 4,\\\\n CMYK: 5,\\\\n YCbCr: 6,\\\\n\\\\n CIELab: 8,\\\\n ICCLab: 9,\\\\n};\\\\n\\\\nconst ExtraSamplesValues = {\\\\n Unspecified: 0,\\\\n Assocalpha: 1,\\\\n Unassalpha: 2,\\\\n};\\\\n\\\\n\\\\nconst geoKeyNames = {\\\\n 1024: 'GTModelTypeGeoKey',\\\\n 1025: 'GTRasterTypeGeoKey',\\\\n 1026: 'GTCitationGeoKey',\\\\n 2048: 'GeographicTypeGeoKey',\\\\n 2049: 'GeogCitationGeoKey',\\\\n 2050: 'GeogGeodeticDatumGeoKey',\\\\n 2051: 'GeogPrimeMeridianGeoKey',\\\\n 2052: 'GeogLinearUnitsGeoKey',\\\\n 2053: 'GeogLinearUnitSizeGeoKey',\\\\n 2054: 'GeogAngularUnitsGeoKey',\\\\n 2055: 'GeogAngularUnitSizeGeoKey',\\\\n 2056: 'GeogEllipsoidGeoKey',\\\\n 2057: 'GeogSemiMajorAxisGeoKey',\\\\n 2058: 'GeogSemiMinorAxisGeoKey',\\\\n 2059: 'GeogInvFlatteningGeoKey',\\\\n 2060: 'GeogAzimuthUnitsGeoKey',\\\\n 2061: 'GeogPrimeMeridianLongGeoKey',\\\\n 2062: 'GeogTOWGS84GeoKey',\\\\n 3072: 'ProjectedCSTypeGeoKey',\\\\n 3073: 'PCSCitationGeoKey',\\\\n 3074: 'ProjectionGeoKey',\\\\n 3075: 'ProjCoordTransGeoKey',\\\\n 3076: 'ProjLinearUnitsGeoKey',\\\\n 3077: 'ProjLinearUnitSizeGeoKey',\\\\n 3078: 'ProjStdParallel1GeoKey',\\\\n 3079: 'ProjStdParallel2GeoKey',\\\\n 3080: 'ProjNatOriginLongGeoKey',\\\\n 3081: 'ProjNatOriginLatGeoKey',\\\\n 3082: 'ProjFalseEastingGeoKey',\\\\n 3083: 'ProjFalseNorthingGeoKey',\\\\n 3084: 'ProjFalseOriginLongGeoKey',\\\\n 3085: 'ProjFalseOriginLatGeoKey',\\\\n 3086: 'ProjFalseOriginEastingGeoKey',\\\\n 3087: 'ProjFalseOriginNorthingGeoKey',\\\\n 3088: 'ProjCenterLongGeoKey',\\\\n 3089: 'ProjCenterLatGeoKey',\\\\n 3090: 'ProjCenterEastingGeoKey',\\\\n 3091: 'ProjCenterNorthingGeoKey',\\\\n 3092: 'ProjScaleAtNatOriginGeoKey',\\\\n 3093: 'ProjScaleAtCenterGeoKey',\\\\n 3094: 'ProjAzimuthAngleGeoKey',\\\\n 3095: 'ProjStraightVertPoleLongGeoKey',\\\\n 3096: 'ProjRectifiedGridAngleGeoKey',\\\\n 4096: 'VerticalCSTypeGeoKey',\\\\n 4097: 'VerticalCitationGeoKey',\\\\n 4098: 'VerticalDatumGeoKey',\\\\n 4099: 'VerticalUnitsGeoKey',\\\\n};\\\\n\\\\nconst geoKeys = {};\\\\nfor (const key in geoKeyNames) {\\\\n if (geoKeyNames.hasOwnProperty(key)) {\\\\n geoKeys[geoKeyNames[key]] = parseInt(key, 10);\\\\n }\\\\n}\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/geotiff/src/globals.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/geotiff/src/logging.js\\\":\\n/*!*********************************************!*\\\\\\n !*** ./node_modules/geotiff/src/logging.js ***!\\n \\\\*********************************************/\\n/*! exports provided: setLogger, log, info, warn, error, time, timeEnd */\\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\\n\\n\\\"use strict\\\";\\neval(\\\"__webpack_require__.r(__webpack_exports__);\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"setLogger\\\\\\\", function() { return setLogger; });\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"log\\\\\\\", function() { return log; });\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"info\\\\\\\", function() { return info; });\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"warn\\\\\\\", function() { return warn; });\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"error\\\\\\\", function() { return error; });\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"time\\\\\\\", function() { return time; });\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"timeEnd\\\\\\\", function() { return timeEnd; });\\\\n\\\\n/**\\\\n * A no-op logger\\\\n */\\\\nclass DummyLogger {\\\\n log() {}\\\\n\\\\n info() {}\\\\n\\\\n warn() {}\\\\n\\\\n error() {}\\\\n\\\\n time() {}\\\\n\\\\n timeEnd() {}\\\\n}\\\\n\\\\nlet LOGGER = new DummyLogger();\\\\n\\\\n/**\\\\n *\\\\n * @param {object} logger the new logger. e.g `console`\\\\n */\\\\nfunction setLogger(logger = new DummyLogger()) {\\\\n LOGGER = logger;\\\\n}\\\\n\\\\nfunction log(...args) {\\\\n return LOGGER.log(...args);\\\\n}\\\\n\\\\nfunction info(...args) {\\\\n return LOGGER.info(...args);\\\\n}\\\\n\\\\nfunction warn(...args) {\\\\n return LOGGER.warn(...args);\\\\n}\\\\n\\\\nfunction error(...args) {\\\\n return LOGGER.error(...args);\\\\n}\\\\n\\\\nfunction time(...args) {\\\\n return LOGGER.time(...args);\\\\n}\\\\n\\\\nfunction timeEnd(...args) {\\\\n return LOGGER.timeEnd(...args);\\\\n}\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/geotiff/src/logging.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/geotiff/src/pool.js\\\":\\n/*!******************************************!*\\\\\\n !*** ./node_modules/geotiff/src/pool.js ***!\\n \\\\******************************************/\\n/*! exports provided: default */\\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\\n\\n\\\"use strict\\\";\\neval(\\\"__webpack_require__.r(__webpack_exports__);\\\\n/* WEBPACK VAR INJECTION */(function(__webpack__worker__1) {/* harmony import */ var threads__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! threads */ \\\\\\\"./node_modules/threads/dist-esm/index.js\\\\\\\");\\\\n\\\\n\\\\nconst defaultPoolSize = typeof navigator !== 'undefined' ? navigator.hardwareConcurrency : null;\\\\n\\\\n/**\\\\n * @module pool\\\\n */\\\\n\\\\n/**\\\\n * Pool for workers to decode chunks of the images.\\\\n */\\\\nclass Pool {\\\\n /**\\\\n * @constructor\\\\n * @param {Number} size The size of the pool. Defaults to the number of CPUs\\\\n * available. When this parameter is `null` or 0, then the\\\\n * decoding will be done in the main thread.\\\\n */\\\\n constructor(size = defaultPoolSize) {\\\\n const worker = new threads__WEBPACK_IMPORTED_MODULE_0__[\\\\\\\"Worker\\\\\\\"](__webpack__worker__1);\\\\n this.pool = Object(threads__WEBPACK_IMPORTED_MODULE_0__[\\\\\\\"Pool\\\\\\\"])(() => Object(threads__WEBPACK_IMPORTED_MODULE_0__[\\\\\\\"spawn\\\\\\\"])(worker), size);\\\\n }\\\\n\\\\n /**\\\\n * Decode the given block of bytes with the set compression method.\\\\n * @param {ArrayBuffer} buffer the array buffer of bytes to decode.\\\\n * @returns {Promise.<ArrayBuffer>} the decoded result as a `Promise`\\\\n */\\\\n async decode(fileDirectory, buffer) {\\\\n return new Promise((resolve, reject) => {\\\\n this.pool.queue(async (decode) => {\\\\n try {\\\\n const data = await decode(fileDirectory, buffer);\\\\n resolve(data);\\\\n } catch (err) {\\\\n reject(err);\\\\n }\\\\n });\\\\n });\\\\n }\\\\n\\\\n destroy() {\\\\n this.pool.terminate(true);\\\\n }\\\\n}\\\\n\\\\n/* harmony default export */ __webpack_exports__[\\\\\\\"default\\\\\\\"] = (Pool);\\\\n\\\\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/threads-plugin/dist/loader.js?{\\\\\\\"name\\\\\\\":\\\\\\\"1\\\\\\\"}!./decoder.worker.js */ \\\\\\\"./node_modules/threads-plugin/dist/loader.js?{\\\\\\\\\\\\\\\"name\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\"1\\\\\\\\\\\\\\\"}!./node_modules/geotiff/src/decoder.worker.js\\\\\\\")))\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/geotiff/src/pool.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/geotiff/src/predictor.js\\\":\\n/*!***********************************************!*\\\\\\n !*** ./node_modules/geotiff/src/predictor.js ***!\\n \\\\***********************************************/\\n/*! exports provided: applyPredictor */\\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\\n\\n\\\"use strict\\\";\\neval(\\\"__webpack_require__.r(__webpack_exports__);\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"applyPredictor\\\\\\\", function() { return applyPredictor; });\\\\n\\\\nfunction decodeRowAcc(row, stride) {\\\\n let length = row.length - stride;\\\\n let offset = 0;\\\\n do {\\\\n for (let i = stride; i > 0; i--) {\\\\n row[offset + stride] += row[offset];\\\\n offset++;\\\\n }\\\\n\\\\n length -= stride;\\\\n } while (length > 0);\\\\n}\\\\n\\\\nfunction decodeRowFloatingPoint(row, stride, bytesPerSample) {\\\\n let index = 0;\\\\n let count = row.length;\\\\n const wc = count / bytesPerSample;\\\\n\\\\n while (count > stride) {\\\\n for (let i = stride; i > 0; --i) {\\\\n row[index + stride] += row[index];\\\\n ++index;\\\\n }\\\\n count -= stride;\\\\n }\\\\n\\\\n const copy = row.slice();\\\\n for (let i = 0; i < wc; ++i) {\\\\n for (let b = 0; b < bytesPerSample; ++b) {\\\\n row[(bytesPerSample * i) + b] = copy[((bytesPerSample - b - 1) * wc) + i];\\\\n }\\\\n }\\\\n}\\\\n\\\\nfunction applyPredictor(block, predictor, width, height, bitsPerSample,\\\\n planarConfiguration) {\\\\n if (!predictor || predictor === 1) {\\\\n return block;\\\\n }\\\\n\\\\n for (let i = 0; i < bitsPerSample.length; ++i) {\\\\n if (bitsPerSample[i] % 8 !== 0) {\\\\n throw new Error('When decoding with predictor, only multiple of 8 bits are supported.');\\\\n }\\\\n if (bitsPerSample[i] !== bitsPerSample[0]) {\\\\n throw new Error('When decoding with predictor, all samples must have the same size.');\\\\n }\\\\n }\\\\n\\\\n const bytesPerSample = bitsPerSample[0] / 8;\\\\n const stride = planarConfiguration === 2 ? 1 : bitsPerSample.length;\\\\n\\\\n for (let i = 0; i < height; ++i) {\\\\n // Last strip will be truncated if height % stripHeight != 0\\\\n if (i * stride * width * bytesPerSample >= block.byteLength) {\\\\n break;\\\\n }\\\\n let row;\\\\n if (predictor === 2) { // horizontal prediction\\\\n switch (bitsPerSample[0]) {\\\\n case 8:\\\\n row = new Uint8Array(\\\\n block, i * stride * width * bytesPerSample, stride * width * bytesPerSample,\\\\n );\\\\n break;\\\\n case 16:\\\\n row = new Uint16Array(\\\\n block, i * stride * width * bytesPerSample, stride * width * bytesPerSample / 2,\\\\n );\\\\n break;\\\\n case 32:\\\\n row = new Uint32Array(\\\\n block, i * stride * width * bytesPerSample, stride * width * bytesPerSample / 4,\\\\n );\\\\n break;\\\\n default:\\\\n throw new Error(`Predictor 2 not allowed with ${bitsPerSample[0]} bits per sample.`);\\\\n }\\\\n decodeRowAcc(row, stride, bytesPerSample);\\\\n } else if (predictor === 3) { // horizontal floating point\\\\n row = new Uint8Array(\\\\n block, i * stride * width * bytesPerSample, stride * width * bytesPerSample,\\\\n );\\\\n decodeRowFloatingPoint(row, stride, bytesPerSample);\\\\n }\\\\n }\\\\n return block;\\\\n}\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/geotiff/src/predictor.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/geotiff/src/resample.js\\\":\\n/*!**********************************************!*\\\\\\n !*** ./node_modules/geotiff/src/resample.js ***!\\n \\\\**********************************************/\\n/*! exports provided: resampleNearest, resampleBilinear, resample, resampleNearestInterleaved, resampleBilinearInterleaved, resampleInterleaved */\\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\\n\\n\\\"use strict\\\";\\neval(\\\"__webpack_require__.r(__webpack_exports__);\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"resampleNearest\\\\\\\", function() { return resampleNearest; });\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"resampleBilinear\\\\\\\", function() { return resampleBilinear; });\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"resample\\\\\\\", function() { return resample; });\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"resampleNearestInterleaved\\\\\\\", function() { return resampleNearestInterleaved; });\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"resampleBilinearInterleaved\\\\\\\", function() { return resampleBilinearInterleaved; });\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"resampleInterleaved\\\\\\\", function() { return resampleInterleaved; });\\\\n/**\\\\n * @module resample\\\\n */\\\\n\\\\nfunction copyNewSize(array, width, height, samplesPerPixel = 1) {\\\\n return new (Object.getPrototypeOf(array).constructor)(width * height * samplesPerPixel);\\\\n}\\\\n\\\\n/**\\\\n * Resample the input arrays using nearest neighbor value selection.\\\\n * @param {TypedArray[]} valueArrays The input arrays to resample\\\\n * @param {number} inWidth The width of the input rasters\\\\n * @param {number} inHeight The height of the input rasters\\\\n * @param {number} outWidth The desired width of the output rasters\\\\n * @param {number} outHeight The desired height of the output rasters\\\\n * @returns {TypedArray[]} The resampled rasters\\\\n */\\\\nfunction resampleNearest(valueArrays, inWidth, inHeight, outWidth, outHeight) {\\\\n const relX = inWidth / outWidth;\\\\n const relY = inHeight / outHeight;\\\\n return valueArrays.map((array) => {\\\\n const newArray = copyNewSize(array, outWidth, outHeight);\\\\n for (let y = 0; y < outHeight; ++y) {\\\\n const cy = Math.min(Math.round(relY * y), inHeight - 1);\\\\n for (let x = 0; x < outWidth; ++x) {\\\\n const cx = Math.min(Math.round(relX * x), inWidth - 1);\\\\n const value = array[(cy * inWidth) + cx];\\\\n newArray[(y * outWidth) + x] = value;\\\\n }\\\\n }\\\\n return newArray;\\\\n });\\\\n}\\\\n\\\\n// simple linear interpolation, code from:\\\\n// https://en.wikipedia.org/wiki/Linear_interpolation#Programming_language_support\\\\nfunction lerp(v0, v1, t) {\\\\n return ((1 - t) * v0) + (t * v1);\\\\n}\\\\n\\\\n/**\\\\n * Resample the input arrays using bilinear interpolation.\\\\n * @param {TypedArray[]} valueArrays The input arrays to resample\\\\n * @param {number} inWidth The width of the input rasters\\\\n * @param {number} inHeight The height of the input rasters\\\\n * @param {number} outWidth The desired width of the output rasters\\\\n * @param {number} outHeight The desired height of the output rasters\\\\n * @returns {TypedArray[]} The resampled rasters\\\\n */\\\\nfunction resampleBilinear(valueArrays, inWidth, inHeight, outWidth, outHeight) {\\\\n const relX = inWidth / outWidth;\\\\n const relY = inHeight / outHeight;\\\\n\\\\n return valueArrays.map((array) => {\\\\n const newArray = copyNewSize(array, outWidth, outHeight);\\\\n for (let y = 0; y < outHeight; ++y) {\\\\n const rawY = relY * y;\\\\n\\\\n const yl = Math.floor(rawY);\\\\n const yh = Math.min(Math.ceil(rawY), (inHeight - 1));\\\\n\\\\n for (let x = 0; x < outWidth; ++x) {\\\\n const rawX = relX * x;\\\\n const tx = rawX % 1;\\\\n\\\\n const xl = Math.floor(rawX);\\\\n const xh = Math.min(Math.ceil(rawX), (inWidth - 1));\\\\n\\\\n const ll = array[(yl * inWidth) + xl];\\\\n const hl = array[(yl * inWidth) + xh];\\\\n const lh = array[(yh * inWidth) + xl];\\\\n const hh = array[(yh * inWidth) + xh];\\\\n\\\\n const value = lerp(\\\\n lerp(ll, hl, tx),\\\\n lerp(lh, hh, tx),\\\\n rawY % 1,\\\\n );\\\\n newArray[(y * outWidth) + x] = value;\\\\n }\\\\n }\\\\n return newArray;\\\\n });\\\\n}\\\\n\\\\n/**\\\\n * Resample the input arrays using the selected resampling method.\\\\n * @param {TypedArray[]} valueArrays The input arrays to resample\\\\n * @param {number} inWidth The width of the input rasters\\\\n * @param {number} inHeight The height of the input rasters\\\\n * @param {number} outWidth The desired width of the output rasters\\\\n * @param {number} outHeight The desired height of the output rasters\\\\n * @param {string} [method = 'nearest'] The desired resampling method\\\\n * @returns {TypedArray[]} The resampled rasters\\\\n */\\\\nfunction resample(valueArrays, inWidth, inHeight, outWidth, outHeight, method = 'nearest') {\\\\n switch (method.toLowerCase()) {\\\\n case 'nearest':\\\\n return resampleNearest(valueArrays, inWidth, inHeight, outWidth, outHeight);\\\\n case 'bilinear':\\\\n case 'linear':\\\\n return resampleBilinear(valueArrays, inWidth, inHeight, outWidth, outHeight);\\\\n default:\\\\n throw new Error(`Unsupported resampling method: '${method}'`);\\\\n }\\\\n}\\\\n\\\\n/**\\\\n * Resample the pixel interleaved input array using nearest neighbor value selection.\\\\n * @param {TypedArray} valueArrays The input arrays to resample\\\\n * @param {number} inWidth The width of the input rasters\\\\n * @param {number} inHeight The height of the input rasters\\\\n * @param {number} outWidth The desired width of the output rasters\\\\n * @param {number} outHeight The desired height of the output rasters\\\\n * @param {number} samples The number of samples per pixel for pixel\\\\n * interleaved data\\\\n * @returns {TypedArray} The resampled raster\\\\n */\\\\nfunction resampleNearestInterleaved(\\\\n valueArray, inWidth, inHeight, outWidth, outHeight, samples) {\\\\n const relX = inWidth / outWidth;\\\\n const relY = inHeight / outHeight;\\\\n\\\\n const newArray = copyNewSize(valueArray, outWidth, outHeight, samples);\\\\n for (let y = 0; y < outHeight; ++y) {\\\\n const cy = Math.min(Math.round(relY * y), inHeight - 1);\\\\n for (let x = 0; x < outWidth; ++x) {\\\\n const cx = Math.min(Math.round(relX * x), inWidth - 1);\\\\n for (let i = 0; i < samples; ++i) {\\\\n const value = valueArray[(cy * inWidth * samples) + (cx * samples) + i];\\\\n newArray[(y * outWidth * samples) + (x * samples) + i] = value;\\\\n }\\\\n }\\\\n }\\\\n return newArray;\\\\n}\\\\n\\\\n/**\\\\n * Resample the pixel interleaved input array using bilinear interpolation.\\\\n * @param {TypedArray} valueArrays The input arrays to resample\\\\n * @param {number} inWidth The width of the input rasters\\\\n * @param {number} inHeight The height of the input rasters\\\\n * @param {number} outWidth The desired width of the output rasters\\\\n * @param {number} outHeight The desired height of the output rasters\\\\n * @param {number} samples The number of samples per pixel for pixel\\\\n * interleaved data\\\\n * @returns {TypedArray} The resampled raster\\\\n */\\\\nfunction resampleBilinearInterleaved(\\\\n valueArray, inWidth, inHeight, outWidth, outHeight, samples) {\\\\n const relX = inWidth / outWidth;\\\\n const relY = inHeight / outHeight;\\\\n const newArray = copyNewSize(valueArray, outWidth, outHeight, samples);\\\\n for (let y = 0; y < outHeight; ++y) {\\\\n const rawY = relY * y;\\\\n\\\\n const yl = Math.floor(rawY);\\\\n const yh = Math.min(Math.ceil(rawY), (inHeight - 1));\\\\n\\\\n for (let x = 0; x < outWidth; ++x) {\\\\n const rawX = relX * x;\\\\n const tx = rawX % 1;\\\\n\\\\n const xl = Math.floor(rawX);\\\\n const xh = Math.min(Math.ceil(rawX), (inWidth - 1));\\\\n\\\\n for (let i = 0; i < samples; ++i) {\\\\n const ll = valueArray[(yl * inWidth * samples) + (xl * samples) + i];\\\\n const hl = valueArray[(yl * inWidth * samples) + (xh * samples) + i];\\\\n const lh = valueArray[(yh * inWidth * samples) + (xl * samples) + i];\\\\n const hh = valueArray[(yh * inWidth * samples) + (xh * samples) + i];\\\\n\\\\n const value = lerp(\\\\n lerp(ll, hl, tx),\\\\n lerp(lh, hh, tx),\\\\n rawY % 1,\\\\n );\\\\n newArray[(y * outWidth * samples) + (x * samples) + i] = value;\\\\n }\\\\n }\\\\n }\\\\n return newArray;\\\\n}\\\\n\\\\n/**\\\\n * Resample the pixel interleaved input array using the selected resampling method.\\\\n * @param {TypedArray} valueArray The input array to resample\\\\n * @param {number} inWidth The width of the input rasters\\\\n * @param {number} inHeight The height of the input rasters\\\\n * @param {number} outWidth The desired width of the output rasters\\\\n * @param {number} outHeight The desired height of the output rasters\\\\n * @param {number} samples The number of samples per pixel for pixel\\\\n * interleaved data\\\\n * @param {string} [method = 'nearest'] The desired resampling method\\\\n * @returns {TypedArray} The resampled rasters\\\\n */\\\\nfunction resampleInterleaved(valueArray, inWidth, inHeight, outWidth, outHeight, samples, method = 'nearest') {\\\\n switch (method.toLowerCase()) {\\\\n case 'nearest':\\\\n return resampleNearestInterleaved(\\\\n valueArray, inWidth, inHeight, outWidth, outHeight, samples,\\\\n );\\\\n case 'bilinear':\\\\n case 'linear':\\\\n return resampleBilinearInterleaved(\\\\n valueArray, inWidth, inHeight, outWidth, outHeight, samples,\\\\n );\\\\n default:\\\\n throw new Error(`Unsupported resampling method: '${method}'`);\\\\n }\\\\n}\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/geotiff/src/resample.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/geotiff/src/rgb.js\\\":\\n/*!*****************************************!*\\\\\\n !*** ./node_modules/geotiff/src/rgb.js ***!\\n \\\\*****************************************/\\n/*! exports provided: fromWhiteIsZero, fromBlackIsZero, fromPalette, fromCMYK, fromYCbCr, fromCIELab */\\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\\n\\n\\\"use strict\\\";\\neval(\\\"__webpack_require__.r(__webpack_exports__);\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"fromWhiteIsZero\\\\\\\", function() { return fromWhiteIsZero; });\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"fromBlackIsZero\\\\\\\", function() { return fromBlackIsZero; });\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"fromPalette\\\\\\\", function() { return fromPalette; });\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"fromCMYK\\\\\\\", function() { return fromCMYK; });\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"fromYCbCr\\\\\\\", function() { return fromYCbCr; });\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"fromCIELab\\\\\\\", function() { return fromCIELab; });\\\\nfunction fromWhiteIsZero(raster, max) {\\\\n const { width, height } = raster;\\\\n const rgbRaster = new Uint8Array(width * height * 3);\\\\n let value;\\\\n for (let i = 0, j = 0; i < raster.length; ++i, j += 3) {\\\\n value = 256 - (raster[i] / max * 256);\\\\n rgbRaster[j] = value;\\\\n rgbRaster[j + 1] = value;\\\\n rgbRaster[j + 2] = value;\\\\n }\\\\n return rgbRaster;\\\\n}\\\\n\\\\nfunction fromBlackIsZero(raster, max) {\\\\n const { width, height } = raster;\\\\n const rgbRaster = new Uint8Array(width * height * 3);\\\\n let value;\\\\n for (let i = 0, j = 0; i < raster.length; ++i, j += 3) {\\\\n value = raster[i] / max * 256;\\\\n rgbRaster[j] = value;\\\\n rgbRaster[j + 1] = value;\\\\n rgbRaster[j + 2] = value;\\\\n }\\\\n return rgbRaster;\\\\n}\\\\n\\\\nfunction fromPalette(raster, colorMap) {\\\\n const { width, height } = raster;\\\\n const rgbRaster = new Uint8Array(width * height * 3);\\\\n const greenOffset = colorMap.length / 3;\\\\n const blueOffset = colorMap.length / 3 * 2;\\\\n for (let i = 0, j = 0; i < raster.length; ++i, j += 3) {\\\\n const mapIndex = raster[i];\\\\n rgbRaster[j] = colorMap[mapIndex] / 65536 * 256;\\\\n rgbRaster[j + 1] = colorMap[mapIndex + greenOffset] / 65536 * 256;\\\\n rgbRaster[j + 2] = colorMap[mapIndex + blueOffset] / 65536 * 256;\\\\n }\\\\n return rgbRaster;\\\\n}\\\\n\\\\nfunction fromCMYK(cmykRaster) {\\\\n const { width, height } = cmykRaster;\\\\n const rgbRaster = new Uint8Array(width * height * 3);\\\\n for (let i = 0, j = 0; i < cmykRaster.length; i += 4, j += 3) {\\\\n const c = cmykRaster[i];\\\\n const m = cmykRaster[i + 1];\\\\n const y = cmykRaster[i + 2];\\\\n const k = cmykRaster[i + 3];\\\\n\\\\n rgbRaster[j] = 255 * ((255 - c) / 256) * ((255 - k) / 256);\\\\n rgbRaster[j + 1] = 255 * ((255 - m) / 256) * ((255 - k) / 256);\\\\n rgbRaster[j + 2] = 255 * ((255 - y) / 256) * ((255 - k) / 256);\\\\n }\\\\n return rgbRaster;\\\\n}\\\\n\\\\nfunction fromYCbCr(yCbCrRaster) {\\\\n const { width, height } = yCbCrRaster;\\\\n const rgbRaster = new Uint8ClampedArray(width * height * 3);\\\\n for (let i = 0, j = 0; i < yCbCrRaster.length; i += 3, j += 3) {\\\\n const y = yCbCrRaster[i];\\\\n const cb = yCbCrRaster[i + 1];\\\\n const cr = yCbCrRaster[i + 2];\\\\n\\\\n rgbRaster[j] = (y + (1.40200 * (cr - 0x80)));\\\\n rgbRaster[j + 1] = (y - (0.34414 * (cb - 0x80)) - (0.71414 * (cr - 0x80)));\\\\n rgbRaster[j + 2] = (y + (1.77200 * (cb - 0x80)));\\\\n }\\\\n return rgbRaster;\\\\n}\\\\n\\\\nconst Xn = 0.95047;\\\\nconst Yn = 1.00000;\\\\nconst Zn = 1.08883;\\\\n\\\\n// from https://github.com/antimatter15/rgb-lab/blob/master/color.js\\\\n\\\\nfunction fromCIELab(cieLabRaster) {\\\\n const { width, height } = cieLabRaster;\\\\n const rgbRaster = new Uint8Array(width * height * 3);\\\\n\\\\n for (let i = 0, j = 0; i < cieLabRaster.length; i += 3, j += 3) {\\\\n const L = cieLabRaster[i + 0];\\\\n const a_ = cieLabRaster[i + 1] << 24 >> 24; // conversion from uint8 to int8\\\\n const b_ = cieLabRaster[i + 2] << 24 >> 24; // same\\\\n\\\\n let y = (L + 16) / 116;\\\\n let x = (a_ / 500) + y;\\\\n let z = y - (b_ / 200);\\\\n let r;\\\\n let g;\\\\n let b;\\\\n\\\\n x = Xn * ((x * x * x > 0.008856) ? x * x * x : (x - (16 / 116)) / 7.787);\\\\n y = Yn * ((y * y * y > 0.008856) ? y * y * y : (y - (16 / 116)) / 7.787);\\\\n z = Zn * ((z * z * z > 0.008856) ? z * z * z : (z - (16 / 116)) / 7.787);\\\\n\\\\n r = (x * 3.2406) + (y * -1.5372) + (z * -0.4986);\\\\n g = (x * -0.9689) + (y * 1.8758) + (z * 0.0415);\\\\n b = (x * 0.0557) + (y * -0.2040) + (z * 1.0570);\\\\n\\\\n r = (r > 0.0031308) ? ((1.055 * (r ** (1 / 2.4))) - 0.055) : 12.92 * r;\\\\n g = (g > 0.0031308) ? ((1.055 * (g ** (1 / 2.4))) - 0.055) : 12.92 * g;\\\\n b = (b > 0.0031308) ? ((1.055 * (b ** (1 / 2.4))) - 0.055) : 12.92 * b;\\\\n\\\\n rgbRaster[j] = Math.max(0, Math.min(1, r)) * 255;\\\\n rgbRaster[j + 1] = Math.max(0, Math.min(1, g)) * 255;\\\\n rgbRaster[j + 2] = Math.max(0, Math.min(1, b)) * 255;\\\\n }\\\\n return rgbRaster;\\\\n}\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/geotiff/src/rgb.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/geotiff/src/source.js\\\":\\n/*!********************************************!*\\\\\\n !*** ./node_modules/geotiff/src/source.js ***!\\n \\\\********************************************/\\n/*! exports provided: makeFetchSource, makeXHRSource, makeHttpSource, makeRemoteSource, makeBufferSource, makeFileSource, makeFileReaderSource */\\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\\n\\n\\\"use strict\\\";\\neval(\\\"__webpack_require__.r(__webpack_exports__);\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"makeFetchSource\\\\\\\", function() { return makeFetchSource; });\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"makeXHRSource\\\\\\\", function() { return makeXHRSource; });\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"makeHttpSource\\\\\\\", function() { return makeHttpSource; });\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"makeRemoteSource\\\\\\\", function() { return makeRemoteSource; });\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"makeBufferSource\\\\\\\", function() { return makeBufferSource; });\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"makeFileSource\\\\\\\", function() { return makeFileSource; });\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"makeFileReaderSource\\\\\\\", function() { return makeFileReaderSource; });\\\\n/* harmony import */ var buffer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! buffer */ \\\\\\\"./node_modules/node-libs-browser/node_modules/buffer/index.js\\\\\\\");\\\\n/* harmony import */ var buffer__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(buffer__WEBPACK_IMPORTED_MODULE_0__);\\\\n/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fs */ \\\\\\\"./node_modules/node-libs-browser/mock/empty.js\\\\\\\");\\\\n/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(fs__WEBPACK_IMPORTED_MODULE_1__);\\\\n/* harmony import */ var http__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! http */ \\\\\\\"./node_modules/stream-http/index.js\\\\\\\");\\\\n/* harmony import */ var http__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(http__WEBPACK_IMPORTED_MODULE_2__);\\\\n/* harmony import */ var https__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! https */ \\\\\\\"./node_modules/https-browserify/index.js\\\\\\\");\\\\n/* harmony import */ var https__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(https__WEBPACK_IMPORTED_MODULE_3__);\\\\n/* harmony import */ var url__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! url */ \\\\\\\"./node_modules/url/url.js\\\\\\\");\\\\n/* harmony import */ var url__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(url__WEBPACK_IMPORTED_MODULE_4__);\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\nfunction readRangeFromBlocks(blocks, rangeOffset, rangeLength) {\\\\n const rangeTop = rangeOffset + rangeLength;\\\\n const rangeData = new ArrayBuffer(rangeLength);\\\\n const rangeView = new Uint8Array(rangeData);\\\\n\\\\n for (const block of blocks) {\\\\n const delta = block.offset - rangeOffset;\\\\n const topDelta = block.top - rangeTop;\\\\n let blockInnerOffset = 0;\\\\n let rangeInnerOffset = 0;\\\\n let usedBlockLength;\\\\n\\\\n if (delta < 0) {\\\\n blockInnerOffset = -delta;\\\\n } else if (delta > 0) {\\\\n rangeInnerOffset = delta;\\\\n }\\\\n\\\\n if (topDelta < 0) {\\\\n usedBlockLength = block.length - blockInnerOffset;\\\\n } else {\\\\n usedBlockLength = rangeTop - block.offset - blockInnerOffset;\\\\n }\\\\n\\\\n const blockView = new Uint8Array(block.data, blockInnerOffset, usedBlockLength);\\\\n rangeView.set(blockView, rangeInnerOffset);\\\\n }\\\\n\\\\n return rangeData;\\\\n}\\\\n\\\\n/**\\\\n * Interface for Source objects.\\\\n * @interface Source\\\\n */\\\\n\\\\n/**\\\\n * @function Source#fetch\\\\n * @summary The main method to retrieve the data from the source.\\\\n * @param {number} offset The offset to read from in the source\\\\n * @param {number} length The requested number of bytes\\\\n */\\\\n\\\\n/**\\\\n * @typedef {object} Block\\\\n * @property {ArrayBuffer} data The actual data of the block.\\\\n * @property {number} offset The actual offset of the block within the file.\\\\n * @property {number} length The actual size of the block in bytes.\\\\n */\\\\n\\\\n/**\\\\n * Callback type for sources to request patches of data.\\\\n * @callback requestCallback\\\\n * @async\\\\n * @param {number} offset The offset within the file.\\\\n * @param {number} length The desired length of data to be read.\\\\n * @returns {Promise<Block>} The block of data.\\\\n */\\\\n\\\\n/**\\\\n * @module source\\\\n */\\\\n\\\\n/*\\\\n * Split a list of identifiers to form groups of coherent ones\\\\n */\\\\nfunction getCoherentBlockGroups(blockIds) {\\\\n if (blockIds.length === 0) {\\\\n return [];\\\\n }\\\\n\\\\n const groups = [];\\\\n let current = [];\\\\n groups.push(current);\\\\n\\\\n for (let i = 0; i < blockIds.length; ++i) {\\\\n if (i === 0 || blockIds[i] === blockIds[i - 1] + 1) {\\\\n current.push(blockIds[i]);\\\\n } else {\\\\n current = [blockIds[i]];\\\\n groups.push(current);\\\\n }\\\\n }\\\\n return groups;\\\\n}\\\\n\\\\n\\\\n/*\\\\n * Promisified wrapper around 'setTimeout' to allow 'await'\\\\n */\\\\nasync function wait(milliseconds) {\\\\n return new Promise((resolve) => setTimeout(resolve, milliseconds));\\\\n}\\\\n\\\\n/**\\\\n * BlockedSource - an abstraction of (remote) files.\\\\n * @implements Source\\\\n */\\\\nclass BlockedSource {\\\\n /**\\\\n * @param {requestCallback} retrievalFunction Callback function to request data\\\\n * @param {object} options Additional options\\\\n * @param {object} options.blockSize Size of blocks to be fetched\\\\n */\\\\n constructor(retrievalFunction, { blockSize = 65536 } = {}) {\\\\n this.retrievalFunction = retrievalFunction;\\\\n this.blockSize = blockSize;\\\\n\\\\n // currently running block requests\\\\n this.blockRequests = new Map();\\\\n\\\\n // already retrieved blocks\\\\n this.blocks = new Map();\\\\n\\\\n // block ids waiting for a batched request. Either a Set or null\\\\n this.blockIdsAwaitingRequest = null;\\\\n }\\\\n\\\\n /**\\\\n * Fetch a subset of the file.\\\\n * @param {number} offset The offset within the file to read from.\\\\n * @param {number} length The length in bytes to read from.\\\\n * @returns {ArrayBuffer} The subset of the file.\\\\n */\\\\n async fetch(offset, length, immediate = false) {\\\\n const top = offset + length;\\\\n\\\\n // calculate what blocks intersect the specified range (offset + length)\\\\n // determine what blocks are already stored or beeing requested\\\\n const firstBlockOffset = Math.floor(offset / this.blockSize) * this.blockSize;\\\\n const allBlockIds = [];\\\\n const missingBlockIds = [];\\\\n const blockRequests = [];\\\\n\\\\n for (let current = firstBlockOffset; current < top; current += this.blockSize) {\\\\n const blockId = Math.floor(current / this.blockSize);\\\\n if (!this.blocks.has(blockId) && !this.blockRequests.has(blockId)) {\\\\n missingBlockIds.push(blockId);\\\\n }\\\\n if (this.blockRequests.has(blockId)) {\\\\n blockRequests.push(this.blockRequests.get(blockId));\\\\n }\\\\n allBlockIds.push(blockId);\\\\n }\\\\n\\\\n // determine whether there are already blocks in the queue to be requested\\\\n // if so, add the missing blocks to this list\\\\n if (!this.blockIdsAwaitingRequest) {\\\\n this.blockIdsAwaitingRequest = new Set(missingBlockIds);\\\\n } else {\\\\n for (let i = 0; i < missingBlockIds.length; ++i) {\\\\n const id = missingBlockIds[i];\\\\n this.blockIdsAwaitingRequest.add(id);\\\\n }\\\\n }\\\\n\\\\n // in immediate mode, we don't want to wait for possible additional requests coming in\\\\n if (!immediate) {\\\\n await wait();\\\\n }\\\\n\\\\n // determine if we are the thread to start the requests.\\\\n if (this.blockIdsAwaitingRequest) {\\\\n // get all coherent blocks as groups to be requested in a single request\\\\n const groups = getCoherentBlockGroups(\\\\n Array.from(this.blockIdsAwaitingRequest).sort(),\\\\n );\\\\n\\\\n // iterate over all blocks\\\\n for (const group of groups) {\\\\n // fetch a group as in a single request\\\\n const request = this.requestData(\\\\n group[0] * this.blockSize, group.length * this.blockSize,\\\\n );\\\\n\\\\n // for each block in the request, make a small 'splitter',\\\\n // i.e: wait for the request to finish, then cut out the bytes for\\\\n // that block and store it there.\\\\n // we keep that as a promise in 'blockRequests' to allow waiting on\\\\n // a single block.\\\\n for (let i = 0; i < group.length; ++i) {\\\\n const id = group[i];\\\\n this.blockRequests.set(id, (async () => {\\\\n const response = await request;\\\\n const o = i * this.blockSize;\\\\n const t = Math.min(o + this.blockSize, response.data.byteLength);\\\\n const data = response.data.slice(o, t);\\\\n this.blockRequests.delete(id);\\\\n this.blocks.set(id, {\\\\n data,\\\\n offset: response.offset + o,\\\\n length: data.byteLength,\\\\n top: response.offset + t,\\\\n });\\\\n })());\\\\n }\\\\n }\\\\n this.blockIdsAwaitingRequest = null;\\\\n }\\\\n\\\\n // get a list of currently running requests for the blocks still missing\\\\n const missingRequests = [];\\\\n for (const blockId of missingBlockIds) {\\\\n if (this.blockRequests.has(blockId)) {\\\\n missingRequests.push(this.blockRequests.get(blockId));\\\\n }\\\\n }\\\\n\\\\n // wait for all missing requests to finish\\\\n await Promise.all(missingRequests);\\\\n await Promise.all(blockRequests);\\\\n\\\\n // now get all blocks for the request and return a summary buffer\\\\n const blocks = allBlockIds.map((id) => this.blocks.get(id));\\\\n return readRangeFromBlocks(blocks, offset, length);\\\\n }\\\\n\\\\n async requestData(requestedOffset, requestedLength) {\\\\n const response = await this.retrievalFunction(requestedOffset, requestedLength);\\\\n if (!response.length) {\\\\n response.length = response.data.byteLength;\\\\n } else if (response.length !== response.data.byteLength) {\\\\n response.data = response.data.slice(0, response.length);\\\\n }\\\\n response.top = response.offset + response.length;\\\\n return response;\\\\n }\\\\n}\\\\n\\\\n/**\\\\n * Create a new source to read from a remote file using the\\\\n * [fetch]{@link https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API} API.\\\\n * @param {string} url The URL to send requests to.\\\\n * @param {Object} [options] Additional options.\\\\n * @param {Number} [options.blockSize] The block size to use.\\\\n * @param {object} [options.headers] Additional headers to be sent to the server.\\\\n * @returns The constructed source\\\\n */\\\\nfunction makeFetchSource(url, { headers = {}, blockSize } = {}) {\\\\n return new BlockedSource(async (offset, length) => {\\\\n const response = await fetch(url, {\\\\n headers: {\\\\n ...headers, Range: `bytes=${offset}-${offset + length - 1}`,\\\\n },\\\\n });\\\\n\\\\n // check the response was okay and if the server actually understands range requests\\\\n if (!response.ok) {\\\\n throw new Error('Error fetching data.');\\\\n } else if (response.status === 206) {\\\\n const data = response.arrayBuffer\\\\n ? await response.arrayBuffer() : (await response.buffer()).buffer;\\\\n return {\\\\n data,\\\\n offset,\\\\n length,\\\\n };\\\\n } else {\\\\n const data = response.arrayBuffer\\\\n ? await response.arrayBuffer() : (await response.buffer()).buffer;\\\\n return {\\\\n data,\\\\n offset: 0,\\\\n length: data.byteLength,\\\\n };\\\\n }\\\\n }, { blockSize });\\\\n}\\\\n\\\\n/**\\\\n * Create a new source to read from a remote file using the\\\\n * [XHR]{@link https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest} API.\\\\n * @param {string} url The URL to send requests to.\\\\n * @param {Object} [options] Additional options.\\\\n * @param {Number} [options.blockSize] The block size to use.\\\\n * @param {object} [options.headers] Additional headers to be sent to the server.\\\\n * @returns The constructed source\\\\n */\\\\nfunction makeXHRSource(url, { headers = {}, blockSize } = {}) {\\\\n return new BlockedSource(async (offset, length) => {\\\\n return new Promise((resolve, reject) => {\\\\n const request = new XMLHttpRequest();\\\\n request.open('GET', url);\\\\n request.responseType = 'arraybuffer';\\\\n const requestHeaders = { ...headers, Range: `bytes=${offset}-${offset + length - 1}` };\\\\n for (const [key, value] of Object.entries(requestHeaders)) {\\\\n request.setRequestHeader(key, value);\\\\n }\\\\n\\\\n request.onload = () => {\\\\n const data = request.response;\\\\n if (request.status === 206) {\\\\n resolve({\\\\n data,\\\\n offset,\\\\n length,\\\\n });\\\\n } else {\\\\n resolve({\\\\n data,\\\\n offset: 0,\\\\n length: data.byteLength,\\\\n });\\\\n }\\\\n };\\\\n request.onerror = reject;\\\\n request.send();\\\\n });\\\\n }, { blockSize });\\\\n}\\\\n\\\\n/**\\\\n * Create a new source to read from a remote file using the node\\\\n * [http]{@link https://nodejs.org/api/http.html} API.\\\\n * @param {string} url The URL to send requests to.\\\\n * @param {Object} [options] Additional options.\\\\n * @param {Number} [options.blockSize] The block size to use.\\\\n * @param {object} [options.headers] Additional headers to be sent to the server.\\\\n */\\\\nfunction makeHttpSource(url, { headers = {}, blockSize } = {}) {\\\\n return new BlockedSource(async (offset, length) => new Promise((resolve, reject) => {\\\\n const parsed = url__WEBPACK_IMPORTED_MODULE_4___default.a.parse(url);\\\\n const request = (parsed.protocol === 'http:' ? http__WEBPACK_IMPORTED_MODULE_2___default.a : https__WEBPACK_IMPORTED_MODULE_3___default.a).get(\\\\n { ...parsed,\\\\n headers: {\\\\n ...headers, Range: `bytes=${offset}-${offset + length - 1}`,\\\\n } }, (result) => {\\\\n const chunks = [];\\\\n // collect chunks\\\\n result.on('data', (chunk) => {\\\\n chunks.push(chunk);\\\\n });\\\\n\\\\n // concatenate all chunks and resolve the promise with the resulting buffer\\\\n result.on('end', () => {\\\\n const data = buffer__WEBPACK_IMPORTED_MODULE_0__[\\\\\\\"Buffer\\\\\\\"].concat(chunks).buffer;\\\\n resolve({\\\\n data,\\\\n offset,\\\\n length: data.byteLength,\\\\n });\\\\n });\\\\n },\\\\n );\\\\n request.on('error', reject);\\\\n }), { blockSize });\\\\n}\\\\n\\\\n/**\\\\n * Create a new source to read from a remote file. Uses either XHR, fetch or nodes http API.\\\\n * @param {string} url The URL to send requests to.\\\\n * @param {Object} [options] Additional options.\\\\n * @param {Boolean} [options.forceXHR] Force the usage of XMLHttpRequest.\\\\n * @param {Number} [options.blockSize] The block size to use.\\\\n * @param {object} [options.headers] Additional headers to be sent to the server.\\\\n * @returns The constructed source\\\\n */\\\\nfunction makeRemoteSource(url, options) {\\\\n const { forceXHR } = options;\\\\n if (typeof fetch === 'function' && !forceXHR) {\\\\n return makeFetchSource(url, options);\\\\n }\\\\n if (typeof XMLHttpRequest !== 'undefined') {\\\\n return makeXHRSource(url, options);\\\\n }\\\\n if (http__WEBPACK_IMPORTED_MODULE_2___default.a.get) {\\\\n return makeHttpSource(url, options);\\\\n }\\\\n throw new Error('No remote source available');\\\\n}\\\\n\\\\n/**\\\\n * Create a new source to read from a local\\\\n * [ArrayBuffer]{@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer}.\\\\n * @param {ArrayBuffer} arrayBuffer The ArrayBuffer to parse the GeoTIFF from.\\\\n * @returns The constructed source\\\\n */\\\\nfunction makeBufferSource(arrayBuffer) {\\\\n return {\\\\n async fetch(offset, length) {\\\\n return arrayBuffer.slice(offset, offset + length);\\\\n },\\\\n };\\\\n}\\\\n\\\\nfunction closeAsync(fd) {\\\\n return new Promise((resolve, reject) => {\\\\n Object(fs__WEBPACK_IMPORTED_MODULE_1__[\\\\\\\"close\\\\\\\"])(fd, err => {\\\\n if (err) {\\\\n reject(err)\\\\n } else {\\\\n resolve()\\\\n }\\\\n });\\\\n });\\\\n}\\\\n\\\\nfunction openAsync(path, flags, mode = undefined) {\\\\n return new Promise((resolve, reject) => {\\\\n Object(fs__WEBPACK_IMPORTED_MODULE_1__[\\\\\\\"open\\\\\\\"])(path, flags, mode, (err, fd) => {\\\\n if (err) {\\\\n reject(err);\\\\n } else {\\\\n resolve(fd);\\\\n }\\\\n });\\\\n });\\\\n}\\\\n\\\\nfunction readAsync(...args) {\\\\n return new Promise((resolve, reject) => {\\\\n Object(fs__WEBPACK_IMPORTED_MODULE_1__[\\\\\\\"read\\\\\\\"])(...args, (err, bytesRead, buffer) => {\\\\n if (err) {\\\\n reject(err);\\\\n } else {\\\\n resolve({ bytesRead, buffer });\\\\n }\\\\n });\\\\n });\\\\n}\\\\n\\\\n/**\\\\n * Creates a new source using the node filesystem API.\\\\n * @param {string} path The path to the file in the local filesystem.\\\\n * @returns The constructed source\\\\n */\\\\nfunction makeFileSource(path) {\\\\n const fileOpen = openAsync(path, 'r');\\\\n\\\\n return {\\\\n async fetch(offset, length) {\\\\n const fd = await fileOpen;\\\\n const { buffer } = await readAsync(fd, buffer__WEBPACK_IMPORTED_MODULE_0__[\\\\\\\"Buffer\\\\\\\"].alloc(length), 0, length, offset);\\\\n return buffer.buffer;\\\\n },\\\\n async close() {\\\\n const fd = await fileOpen;\\\\n return await closeAsync(fd);\\\\n },\\\\n };\\\\n}\\\\n\\\\n/**\\\\n * Create a new source from a given file/blob.\\\\n * @param {Blob} file The file or blob to read from.\\\\n * @returns The constructed source\\\\n */\\\\nfunction makeFileReaderSource(file) {\\\\n return {\\\\n async fetch(offset, length) {\\\\n return new Promise((resolve, reject) => {\\\\n const blob = file.slice(offset, offset + length);\\\\n const reader = new FileReader();\\\\n reader.onload = (event) => resolve(event.target.result);\\\\n reader.onerror = reject;\\\\n reader.readAsArrayBuffer(blob);\\\\n });\\\\n },\\\\n };\\\\n}\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/geotiff/src/source.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/geotiff/src/utils.js\\\":\\n/*!*******************************************!*\\\\\\n !*** ./node_modules/geotiff/src/utils.js ***!\\n \\\\*******************************************/\\n/*! exports provided: assign, chunk, endsWith, forEach, invert, range, times, toArray, toArrayRecursively */\\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\\n\\n\\\"use strict\\\";\\neval(\\\"__webpack_require__.r(__webpack_exports__);\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"assign\\\\\\\", function() { return assign; });\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"chunk\\\\\\\", function() { return chunk; });\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"endsWith\\\\\\\", function() { return endsWith; });\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"forEach\\\\\\\", function() { return forEach; });\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"invert\\\\\\\", function() { return invert; });\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"range\\\\\\\", function() { return range; });\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"times\\\\\\\", function() { return times; });\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"toArray\\\\\\\", function() { return toArray; });\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"toArrayRecursively\\\\\\\", function() { return toArrayRecursively; });\\\\nfunction assign(target, source) {\\\\n for (const key in source) {\\\\n if (source.hasOwnProperty(key)) {\\\\n target[key] = source[key];\\\\n }\\\\n }\\\\n}\\\\n\\\\nfunction chunk(iterable, length) {\\\\n const results = [];\\\\n const lengthOfIterable = iterable.length;\\\\n for (let i = 0; i < lengthOfIterable; i += length) {\\\\n const chunked = [];\\\\n for (let ci = i; ci < i + length; ci++) {\\\\n chunked.push(iterable[ci]);\\\\n }\\\\n results.push(chunked);\\\\n }\\\\n return results;\\\\n}\\\\n\\\\nfunction endsWith(string, expectedEnding) {\\\\n if (string.length < expectedEnding.length) {\\\\n return false;\\\\n }\\\\n const actualEnding = string.substr(string.length - expectedEnding.length);\\\\n return actualEnding === expectedEnding;\\\\n}\\\\n\\\\nfunction forEach(iterable, func) {\\\\n const { length } = iterable;\\\\n for (let i = 0; i < length; i++) {\\\\n func(iterable[i], i);\\\\n }\\\\n}\\\\n\\\\nfunction invert(oldObj) {\\\\n const newObj = {};\\\\n for (const key in oldObj) {\\\\n if (oldObj.hasOwnProperty(key)) {\\\\n const value = oldObj[key];\\\\n newObj[value] = key;\\\\n }\\\\n }\\\\n return newObj;\\\\n}\\\\n\\\\nfunction range(n) {\\\\n const results = [];\\\\n for (let i = 0; i < n; i++) {\\\\n results.push(i);\\\\n }\\\\n return results;\\\\n}\\\\n\\\\nfunction times(numTimes, func) {\\\\n const results = [];\\\\n for (let i = 0; i < numTimes; i++) {\\\\n results.push(func(i));\\\\n }\\\\n return results;\\\\n}\\\\n\\\\nfunction toArray(iterable) {\\\\n const results = [];\\\\n const { length } = iterable;\\\\n for (let i = 0; i < length; i++) {\\\\n results.push(iterable[i]);\\\\n }\\\\n return results;\\\\n}\\\\n\\\\nfunction toArrayRecursively(input) {\\\\n if (input.length) {\\\\n return toArray(input).map(toArrayRecursively);\\\\n }\\\\n return input;\\\\n}\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/geotiff/src/utils.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/https-browserify/index.js\\\":\\n/*!************************************************!*\\\\\\n !*** ./node_modules/https-browserify/index.js ***!\\n \\\\************************************************/\\n/*! no static exports found */\\n/***/ (function(module, exports, __webpack_require__) {\\n\\neval(\\\"var http = __webpack_require__(/*! http */ \\\\\\\"./node_modules/stream-http/index.js\\\\\\\")\\\\nvar url = __webpack_require__(/*! url */ \\\\\\\"./node_modules/url/url.js\\\\\\\")\\\\n\\\\nvar https = module.exports\\\\n\\\\nfor (var key in http) {\\\\n if (http.hasOwnProperty(key)) https[key] = http[key]\\\\n}\\\\n\\\\nhttps.request = function (params, cb) {\\\\n params = validateParams(params)\\\\n return http.request.call(this, params, cb)\\\\n}\\\\n\\\\nhttps.get = function (params, cb) {\\\\n params = validateParams(params)\\\\n return http.get.call(this, params, cb)\\\\n}\\\\n\\\\nfunction validateParams (params) {\\\\n if (typeof params === 'string') {\\\\n params = url.parse(params)\\\\n }\\\\n if (!params.protocol) {\\\\n params.protocol = 'https:'\\\\n }\\\\n if (params.protocol !== 'https:') {\\\\n throw new Error('Protocol \\\\\\\"' + params.protocol + '\\\\\\\" not supported. Expected \\\\\\\"https:\\\\\\\"')\\\\n }\\\\n return params\\\\n}\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/https-browserify/index.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/ieee754/index.js\\\":\\n/*!***************************************!*\\\\\\n !*** ./node_modules/ieee754/index.js ***!\\n \\\\***************************************/\\n/*! no static exports found */\\n/***/ (function(module, exports) {\\n\\neval(\\\"/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */\\\\nexports.read = function (buffer, offset, isLE, mLen, nBytes) {\\\\n var e, m\\\\n var eLen = (nBytes * 8) - mLen - 1\\\\n var eMax = (1 << eLen) - 1\\\\n var eBias = eMax >> 1\\\\n var nBits = -7\\\\n var i = isLE ? (nBytes - 1) : 0\\\\n var d = isLE ? -1 : 1\\\\n var s = buffer[offset + i]\\\\n\\\\n i += d\\\\n\\\\n e = s & ((1 << (-nBits)) - 1)\\\\n s >>= (-nBits)\\\\n nBits += eLen\\\\n for (; nBits > 0; e = (e * 256) + buffer[offset + i], i += d, nBits -= 8) {}\\\\n\\\\n m = e & ((1 << (-nBits)) - 1)\\\\n e >>= (-nBits)\\\\n nBits += mLen\\\\n for (; nBits > 0; m = (m * 256) + buffer[offset + i], i += d, nBits -= 8) {}\\\\n\\\\n if (e === 0) {\\\\n e = 1 - eBias\\\\n } else if (e === eMax) {\\\\n return m ? NaN : ((s ? -1 : 1) * Infinity)\\\\n } else {\\\\n m = m + Math.pow(2, mLen)\\\\n e = e - eBias\\\\n }\\\\n return (s ? -1 : 1) * m * Math.pow(2, e - mLen)\\\\n}\\\\n\\\\nexports.write = function (buffer, value, offset, isLE, mLen, nBytes) {\\\\n var e, m, c\\\\n var eLen = (nBytes * 8) - mLen - 1\\\\n var eMax = (1 << eLen) - 1\\\\n var eBias = eMax >> 1\\\\n var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0)\\\\n var i = isLE ? 0 : (nBytes - 1)\\\\n var d = isLE ? 1 : -1\\\\n var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0\\\\n\\\\n value = Math.abs(value)\\\\n\\\\n if (isNaN(value) || value === Infinity) {\\\\n m = isNaN(value) ? 1 : 0\\\\n e = eMax\\\\n } else {\\\\n e = Math.floor(Math.log(value) / Math.LN2)\\\\n if (value * (c = Math.pow(2, -e)) < 1) {\\\\n e--\\\\n c *= 2\\\\n }\\\\n if (e + eBias >= 1) {\\\\n value += rt / c\\\\n } else {\\\\n value += rt * Math.pow(2, 1 - eBias)\\\\n }\\\\n if (value * c >= 2) {\\\\n e++\\\\n c /= 2\\\\n }\\\\n\\\\n if (e + eBias >= eMax) {\\\\n m = 0\\\\n e = eMax\\\\n } else if (e + eBias >= 1) {\\\\n m = ((value * c) - 1) * Math.pow(2, mLen)\\\\n e = e + eBias\\\\n } else {\\\\n m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen)\\\\n e = 0\\\\n }\\\\n }\\\\n\\\\n for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}\\\\n\\\\n e = (e << mLen) | m\\\\n eLen += mLen\\\\n for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}\\\\n\\\\n buffer[offset + i - d] |= s * 128\\\\n}\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/ieee754/index.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/inherits/inherits_browser.js\\\":\\n/*!***************************************************!*\\\\\\n !*** ./node_modules/inherits/inherits_browser.js ***!\\n \\\\***************************************************/\\n/*! no static exports found */\\n/***/ (function(module, exports) {\\n\\neval(\\\"if (typeof Object.create === 'function') {\\\\n // implementation from standard node.js 'util' module\\\\n module.exports = function inherits(ctor, superCtor) {\\\\n if (superCtor) {\\\\n ctor.super_ = superCtor\\\\n ctor.prototype = Object.create(superCtor.prototype, {\\\\n constructor: {\\\\n value: ctor,\\\\n enumerable: false,\\\\n writable: true,\\\\n configurable: true\\\\n }\\\\n })\\\\n }\\\\n };\\\\n} else {\\\\n // old school shim for old browsers\\\\n module.exports = function inherits(ctor, superCtor) {\\\\n if (superCtor) {\\\\n ctor.super_ = superCtor\\\\n var TempCtor = function () {}\\\\n TempCtor.prototype = superCtor.prototype\\\\n ctor.prototype = new TempCtor()\\\\n ctor.prototype.constructor = ctor\\\\n }\\\\n }\\\\n}\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/inherits/inherits_browser.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/is-observable/index.js\\\":\\n/*!*********************************************!*\\\\\\n !*** ./node_modules/is-observable/index.js ***!\\n \\\\*********************************************/\\n/*! no static exports found */\\n/***/ (function(module, exports, __webpack_require__) {\\n\\n\\\"use strict\\\";\\neval(\\\"\\\\n\\\\nmodule.exports = value => {\\\\n\\\\tif (!value) {\\\\n\\\\t\\\\treturn false;\\\\n\\\\t}\\\\n\\\\n\\\\t// eslint-disable-next-line no-use-extend-native/no-use-extend-native\\\\n\\\\tif (typeof Symbol.observable === 'symbol' && typeof value[Symbol.observable] === 'function') {\\\\n\\\\t\\\\t// eslint-disable-next-line no-use-extend-native/no-use-extend-native\\\\n\\\\t\\\\treturn value === value[Symbol.observable]();\\\\n\\\\t}\\\\n\\\\n\\\\tif (typeof value['@@observable'] === 'function') {\\\\n\\\\t\\\\treturn value === value['@@observable']();\\\\n\\\\t}\\\\n\\\\n\\\\treturn false;\\\\n};\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/is-observable/index.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/isarray/index.js\\\":\\n/*!***************************************!*\\\\\\n !*** ./node_modules/isarray/index.js ***!\\n \\\\***************************************/\\n/*! no static exports found */\\n/***/ (function(module, exports) {\\n\\neval(\\\"var toString = {}.toString;\\\\n\\\\nmodule.exports = Array.isArray || function (arr) {\\\\n return toString.call(arr) == '[object Array]';\\\\n};\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/isarray/index.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/node-libs-browser/mock/empty.js\\\":\\n/*!******************************************************!*\\\\\\n !*** ./node_modules/node-libs-browser/mock/empty.js ***!\\n \\\\******************************************************/\\n/*! no static exports found */\\n/***/ (function(module, exports) {\\n\\neval(\\\"\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/node-libs-browser/mock/empty.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/node-libs-browser/node_modules/buffer/index.js\\\":\\n/*!*********************************************************************!*\\\\\\n !*** ./node_modules/node-libs-browser/node_modules/buffer/index.js ***!\\n \\\\*********************************************************************/\\n/*! no static exports found */\\n/***/ (function(module, exports, __webpack_require__) {\\n\\n\\\"use strict\\\";\\neval(\\\"/* WEBPACK VAR INJECTION */(function(global) {/*!\\\\n * The buffer module from node.js, for the browser.\\\\n *\\\\n * @author Feross Aboukhadijeh <http://feross.org>\\\\n * @license MIT\\\\n */\\\\n/* eslint-disable no-proto */\\\\n\\\\n\\\\n\\\\nvar base64 = __webpack_require__(/*! base64-js */ \\\\\\\"./node_modules/base64-js/index.js\\\\\\\")\\\\nvar ieee754 = __webpack_require__(/*! ieee754 */ \\\\\\\"./node_modules/ieee754/index.js\\\\\\\")\\\\nvar isArray = __webpack_require__(/*! isarray */ \\\\\\\"./node_modules/isarray/index.js\\\\\\\")\\\\n\\\\nexports.Buffer = Buffer\\\\nexports.SlowBuffer = SlowBuffer\\\\nexports.INSPECT_MAX_BYTES = 50\\\\n\\\\n/**\\\\n * If `Buffer.TYPED_ARRAY_SUPPORT`:\\\\n * === true Use Uint8Array implementation (fastest)\\\\n * === false Use Object implementation (most compatible, even IE6)\\\\n *\\\\n * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,\\\\n * Opera 11.6+, iOS 4.2+.\\\\n *\\\\n * Due to various browser bugs, sometimes the Object implementation will be used even\\\\n * when the browser supports typed arrays.\\\\n *\\\\n * Note:\\\\n *\\\\n * - Firefox 4-29 lacks support for adding new properties to `Uint8Array` instances,\\\\n * See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438.\\\\n *\\\\n * - Chrome 9-10 is missing the `TypedArray.prototype.subarray` function.\\\\n *\\\\n * - IE10 has a broken `TypedArray.prototype.subarray` function which returns arrays of\\\\n * incorrect length in some situations.\\\\n\\\\n * We detect these buggy browsers and set `Buffer.TYPED_ARRAY_SUPPORT` to `false` so they\\\\n * get the Object implementation, which is slower but behaves correctly.\\\\n */\\\\nBuffer.TYPED_ARRAY_SUPPORT = global.TYPED_ARRAY_SUPPORT !== undefined\\\\n ? global.TYPED_ARRAY_SUPPORT\\\\n : typedArraySupport()\\\\n\\\\n/*\\\\n * Export kMaxLength after typed array support is determined.\\\\n */\\\\nexports.kMaxLength = kMaxLength()\\\\n\\\\nfunction typedArraySupport () {\\\\n try {\\\\n var arr = new Uint8Array(1)\\\\n arr.__proto__ = {__proto__: Uint8Array.prototype, foo: function () { return 42 }}\\\\n return arr.foo() === 42 && // typed array instances can be augmented\\\\n typeof arr.subarray === 'function' && // chrome 9-10 lack `subarray`\\\\n arr.subarray(1, 1).byteLength === 0 // ie10 has broken `subarray`\\\\n } catch (e) {\\\\n return false\\\\n }\\\\n}\\\\n\\\\nfunction kMaxLength () {\\\\n return Buffer.TYPED_ARRAY_SUPPORT\\\\n ? 0x7fffffff\\\\n : 0x3fffffff\\\\n}\\\\n\\\\nfunction createBuffer (that, length) {\\\\n if (kMaxLength() < length) {\\\\n throw new RangeError('Invalid typed array length')\\\\n }\\\\n if (Buffer.TYPED_ARRAY_SUPPORT) {\\\\n // Return an augmented `Uint8Array` instance, for best performance\\\\n that = new Uint8Array(length)\\\\n that.__proto__ = Buffer.prototype\\\\n } else {\\\\n // Fallback: Return an object instance of the Buffer class\\\\n if (that === null) {\\\\n that = new Buffer(length)\\\\n }\\\\n that.length = length\\\\n }\\\\n\\\\n return that\\\\n}\\\\n\\\\n/**\\\\n * The Buffer constructor returns instances of `Uint8Array` that have their\\\\n * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of\\\\n * `Uint8Array`, so the returned instances will have all the node `Buffer` methods\\\\n * and the `Uint8Array` methods. Square bracket notation works as expected -- it\\\\n * returns a single octet.\\\\n *\\\\n * The `Uint8Array` prototype remains unmodified.\\\\n */\\\\n\\\\nfunction Buffer (arg, encodingOrOffset, length) {\\\\n if (!Buffer.TYPED_ARRAY_SUPPORT && !(this instanceof Buffer)) {\\\\n return new Buffer(arg, encodingOrOffset, length)\\\\n }\\\\n\\\\n // Common case.\\\\n if (typeof arg === 'number') {\\\\n if (typeof encodingOrOffset === 'string') {\\\\n throw new Error(\\\\n 'If encoding is specified then the first argument must be a string'\\\\n )\\\\n }\\\\n return allocUnsafe(this, arg)\\\\n }\\\\n return from(this, arg, encodingOrOffset, length)\\\\n}\\\\n\\\\nBuffer.poolSize = 8192 // not used by this implementation\\\\n\\\\n// TODO: Legacy, not needed anymore. Remove in next major version.\\\\nBuffer._augment = function (arr) {\\\\n arr.__proto__ = Buffer.prototype\\\\n return arr\\\\n}\\\\n\\\\nfunction from (that, value, encodingOrOffset, length) {\\\\n if (typeof value === 'number') {\\\\n throw new TypeError('\\\\\\\"value\\\\\\\" argument must not be a number')\\\\n }\\\\n\\\\n if (typeof ArrayBuffer !== 'undefined' && value instanceof ArrayBuffer) {\\\\n return fromArrayBuffer(that, value, encodingOrOffset, length)\\\\n }\\\\n\\\\n if (typeof value === 'string') {\\\\n return fromString(that, value, encodingOrOffset)\\\\n }\\\\n\\\\n return fromObject(that, value)\\\\n}\\\\n\\\\n/**\\\\n * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError\\\\n * if value is a number.\\\\n * Buffer.from(str[, encoding])\\\\n * Buffer.from(array)\\\\n * Buffer.from(buffer)\\\\n * Buffer.from(arrayBuffer[, byteOffset[, length]])\\\\n **/\\\\nBuffer.from = function (value, encodingOrOffset, length) {\\\\n return from(null, value, encodingOrOffset, length)\\\\n}\\\\n\\\\nif (Buffer.TYPED_ARRAY_SUPPORT) {\\\\n Buffer.prototype.__proto__ = Uint8Array.prototype\\\\n Buffer.__proto__ = Uint8Array\\\\n if (typeof Symbol !== 'undefined' && Symbol.species &&\\\\n Buffer[Symbol.species] === Buffer) {\\\\n // Fix subarray() in ES2016. See: https://github.com/feross/buffer/pull/97\\\\n Object.defineProperty(Buffer, Symbol.species, {\\\\n value: null,\\\\n configurable: true\\\\n })\\\\n }\\\\n}\\\\n\\\\nfunction assertSize (size) {\\\\n if (typeof size !== 'number') {\\\\n throw new TypeError('\\\\\\\"size\\\\\\\" argument must be a number')\\\\n } else if (size < 0) {\\\\n throw new RangeError('\\\\\\\"size\\\\\\\" argument must not be negative')\\\\n }\\\\n}\\\\n\\\\nfunction alloc (that, size, fill, encoding) {\\\\n assertSize(size)\\\\n if (size <= 0) {\\\\n return createBuffer(that, size)\\\\n }\\\\n if (fill !== undefined) {\\\\n // Only pay attention to encoding if it's a string. This\\\\n // prevents accidentally sending in a number that would\\\\n // be interpretted as a start offset.\\\\n return typeof encoding === 'string'\\\\n ? createBuffer(that, size).fill(fill, encoding)\\\\n : createBuffer(that, size).fill(fill)\\\\n }\\\\n return createBuffer(that, size)\\\\n}\\\\n\\\\n/**\\\\n * Creates a new filled Buffer instance.\\\\n * alloc(size[, fill[, encoding]])\\\\n **/\\\\nBuffer.alloc = function (size, fill, encoding) {\\\\n return alloc(null, size, fill, encoding)\\\\n}\\\\n\\\\nfunction allocUnsafe (that, size) {\\\\n assertSize(size)\\\\n that = createBuffer(that, size < 0 ? 0 : checked(size) | 0)\\\\n if (!Buffer.TYPED_ARRAY_SUPPORT) {\\\\n for (var i = 0; i < size; ++i) {\\\\n that[i] = 0\\\\n }\\\\n }\\\\n return that\\\\n}\\\\n\\\\n/**\\\\n * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.\\\\n * */\\\\nBuffer.allocUnsafe = function (size) {\\\\n return allocUnsafe(null, size)\\\\n}\\\\n/**\\\\n * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance.\\\\n */\\\\nBuffer.allocUnsafeSlow = function (size) {\\\\n return allocUnsafe(null, size)\\\\n}\\\\n\\\\nfunction fromString (that, string, encoding) {\\\\n if (typeof encoding !== 'string' || encoding === '') {\\\\n encoding = 'utf8'\\\\n }\\\\n\\\\n if (!Buffer.isEncoding(encoding)) {\\\\n throw new TypeError('\\\\\\\"encoding\\\\\\\" must be a valid string encoding')\\\\n }\\\\n\\\\n var length = byteLength(string, encoding) | 0\\\\n that = createBuffer(that, length)\\\\n\\\\n var actual = that.write(string, encoding)\\\\n\\\\n if (actual !== length) {\\\\n // Writing a hex string, for example, that contains invalid characters will\\\\n // cause everything after the first invalid character to be ignored. (e.g.\\\\n // 'abxxcd' will be treated as 'ab')\\\\n that = that.slice(0, actual)\\\\n }\\\\n\\\\n return that\\\\n}\\\\n\\\\nfunction fromArrayLike (that, array) {\\\\n var length = array.length < 0 ? 0 : checked(array.length) | 0\\\\n that = createBuffer(that, length)\\\\n for (var i = 0; i < length; i += 1) {\\\\n that[i] = array[i] & 255\\\\n }\\\\n return that\\\\n}\\\\n\\\\nfunction fromArrayBuffer (that, array, byteOffset, length) {\\\\n array.byteLength // this throws if `array` is not a valid ArrayBuffer\\\\n\\\\n if (byteOffset < 0 || array.byteLength < byteOffset) {\\\\n throw new RangeError('\\\\\\\\'offset\\\\\\\\' is out of bounds')\\\\n }\\\\n\\\\n if (array.byteLength < byteOffset + (length || 0)) {\\\\n throw new RangeError('\\\\\\\\'length\\\\\\\\' is out of bounds')\\\\n }\\\\n\\\\n if (byteOffset === undefined && length === undefined) {\\\\n array = new Uint8Array(array)\\\\n } else if (length === undefined) {\\\\n array = new Uint8Array(array, byteOffset)\\\\n } else {\\\\n array = new Uint8Array(array, byteOffset, length)\\\\n }\\\\n\\\\n if (Buffer.TYPED_ARRAY_SUPPORT) {\\\\n // Return an augmented `Uint8Array` instance, for best performance\\\\n that = array\\\\n that.__proto__ = Buffer.prototype\\\\n } else {\\\\n // Fallback: Return an object instance of the Buffer class\\\\n that = fromArrayLike(that, array)\\\\n }\\\\n return that\\\\n}\\\\n\\\\nfunction fromObject (that, obj) {\\\\n if (Buffer.isBuffer(obj)) {\\\\n var len = checked(obj.length) | 0\\\\n that = createBuffer(that, len)\\\\n\\\\n if (that.length === 0) {\\\\n return that\\\\n }\\\\n\\\\n obj.copy(that, 0, 0, len)\\\\n return that\\\\n }\\\\n\\\\n if (obj) {\\\\n if ((typeof ArrayBuffer !== 'undefined' &&\\\\n obj.buffer instanceof ArrayBuffer) || 'length' in obj) {\\\\n if (typeof obj.length !== 'number' || isnan(obj.length)) {\\\\n return createBuffer(that, 0)\\\\n }\\\\n return fromArrayLike(that, obj)\\\\n }\\\\n\\\\n if (obj.type === 'Buffer' && isArray(obj.data)) {\\\\n return fromArrayLike(that, obj.data)\\\\n }\\\\n }\\\\n\\\\n throw new TypeError('First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.')\\\\n}\\\\n\\\\nfunction checked (length) {\\\\n // Note: cannot use `length < kMaxLength()` here because that fails when\\\\n // length is NaN (which is otherwise coerced to zero.)\\\\n if (length >= kMaxLength()) {\\\\n throw new RangeError('Attempt to allocate Buffer larger than maximum ' +\\\\n 'size: 0x' + kMaxLength().toString(16) + ' bytes')\\\\n }\\\\n return length | 0\\\\n}\\\\n\\\\nfunction SlowBuffer (length) {\\\\n if (+length != length) { // eslint-disable-line eqeqeq\\\\n length = 0\\\\n }\\\\n return Buffer.alloc(+length)\\\\n}\\\\n\\\\nBuffer.isBuffer = function isBuffer (b) {\\\\n return !!(b != null && b._isBuffer)\\\\n}\\\\n\\\\nBuffer.compare = function compare (a, b) {\\\\n if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {\\\\n throw new TypeError('Arguments must be Buffers')\\\\n }\\\\n\\\\n if (a === b) return 0\\\\n\\\\n var x = a.length\\\\n var y = b.length\\\\n\\\\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\\\\n if (a[i] !== b[i]) {\\\\n x = a[i]\\\\n y = b[i]\\\\n break\\\\n }\\\\n }\\\\n\\\\n if (x < y) return -1\\\\n if (y < x) return 1\\\\n return 0\\\\n}\\\\n\\\\nBuffer.isEncoding = function isEncoding (encoding) {\\\\n switch (String(encoding).toLowerCase()) {\\\\n case 'hex':\\\\n case 'utf8':\\\\n case 'utf-8':\\\\n case 'ascii':\\\\n case 'latin1':\\\\n case 'binary':\\\\n case 'base64':\\\\n case 'ucs2':\\\\n case 'ucs-2':\\\\n case 'utf16le':\\\\n case 'utf-16le':\\\\n return true\\\\n default:\\\\n return false\\\\n }\\\\n}\\\\n\\\\nBuffer.concat = function concat (list, length) {\\\\n if (!isArray(list)) {\\\\n throw new TypeError('\\\\\\\"list\\\\\\\" argument must be an Array of Buffers')\\\\n }\\\\n\\\\n if (list.length === 0) {\\\\n return Buffer.alloc(0)\\\\n }\\\\n\\\\n var i\\\\n if (length === undefined) {\\\\n length = 0\\\\n for (i = 0; i < list.length; ++i) {\\\\n length += list[i].length\\\\n }\\\\n }\\\\n\\\\n var buffer = Buffer.allocUnsafe(length)\\\\n var pos = 0\\\\n for (i = 0; i < list.length; ++i) {\\\\n var buf = list[i]\\\\n if (!Buffer.isBuffer(buf)) {\\\\n throw new TypeError('\\\\\\\"list\\\\\\\" argument must be an Array of Buffers')\\\\n }\\\\n buf.copy(buffer, pos)\\\\n pos += buf.length\\\\n }\\\\n return buffer\\\\n}\\\\n\\\\nfunction byteLength (string, encoding) {\\\\n if (Buffer.isBuffer(string)) {\\\\n return string.length\\\\n }\\\\n if (typeof ArrayBuffer !== 'undefined' && typeof ArrayBuffer.isView === 'function' &&\\\\n (ArrayBuffer.isView(string) || string instanceof ArrayBuffer)) {\\\\n return string.byteLength\\\\n }\\\\n if (typeof string !== 'string') {\\\\n string = '' + string\\\\n }\\\\n\\\\n var len = string.length\\\\n if (len === 0) return 0\\\\n\\\\n // Use a for loop to avoid recursion\\\\n var loweredCase = false\\\\n for (;;) {\\\\n switch (encoding) {\\\\n case 'ascii':\\\\n case 'latin1':\\\\n case 'binary':\\\\n return len\\\\n case 'utf8':\\\\n case 'utf-8':\\\\n case undefined:\\\\n return utf8ToBytes(string).length\\\\n case 'ucs2':\\\\n case 'ucs-2':\\\\n case 'utf16le':\\\\n case 'utf-16le':\\\\n return len * 2\\\\n case 'hex':\\\\n return len >>> 1\\\\n case 'base64':\\\\n return base64ToBytes(string).length\\\\n default:\\\\n if (loweredCase) return utf8ToBytes(string).length // assume utf8\\\\n encoding = ('' + encoding).toLowerCase()\\\\n loweredCase = true\\\\n }\\\\n }\\\\n}\\\\nBuffer.byteLength = byteLength\\\\n\\\\nfunction slowToString (encoding, start, end) {\\\\n var loweredCase = false\\\\n\\\\n // No need to verify that \\\\\\\"this.length <= MAX_UINT32\\\\\\\" since it's a read-only\\\\n // property of a typed array.\\\\n\\\\n // This behaves neither like String nor Uint8Array in that we set start/end\\\\n // to their upper/lower bounds if the value passed is out of range.\\\\n // undefined is handled specially as per ECMA-262 6th Edition,\\\\n // Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization.\\\\n if (start === undefined || start < 0) {\\\\n start = 0\\\\n }\\\\n // Return early if start > this.length. Done here to prevent potential uint32\\\\n // coercion fail below.\\\\n if (start > this.length) {\\\\n return ''\\\\n }\\\\n\\\\n if (end === undefined || end > this.length) {\\\\n end = this.length\\\\n }\\\\n\\\\n if (end <= 0) {\\\\n return ''\\\\n }\\\\n\\\\n // Force coersion to uint32. This will also coerce falsey/NaN values to 0.\\\\n end >>>= 0\\\\n start >>>= 0\\\\n\\\\n if (end <= start) {\\\\n return ''\\\\n }\\\\n\\\\n if (!encoding) encoding = 'utf8'\\\\n\\\\n while (true) {\\\\n switch (encoding) {\\\\n case 'hex':\\\\n return hexSlice(this, start, end)\\\\n\\\\n case 'utf8':\\\\n case 'utf-8':\\\\n return utf8Slice(this, start, end)\\\\n\\\\n case 'ascii':\\\\n return asciiSlice(this, start, end)\\\\n\\\\n case 'latin1':\\\\n case 'binary':\\\\n return latin1Slice(this, start, end)\\\\n\\\\n case 'base64':\\\\n return base64Slice(this, start, end)\\\\n\\\\n case 'ucs2':\\\\n case 'ucs-2':\\\\n case 'utf16le':\\\\n case 'utf-16le':\\\\n return utf16leSlice(this, start, end)\\\\n\\\\n default:\\\\n if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)\\\\n encoding = (encoding + '').toLowerCase()\\\\n loweredCase = true\\\\n }\\\\n }\\\\n}\\\\n\\\\n// The property is used by `Buffer.isBuffer` and `is-buffer` (in Safari 5-7) to detect\\\\n// Buffer instances.\\\\nBuffer.prototype._isBuffer = true\\\\n\\\\nfunction swap (b, n, m) {\\\\n var i = b[n]\\\\n b[n] = b[m]\\\\n b[m] = i\\\\n}\\\\n\\\\nBuffer.prototype.swap16 = function swap16 () {\\\\n var len = this.length\\\\n if (len % 2 !== 0) {\\\\n throw new RangeError('Buffer size must be a multiple of 16-bits')\\\\n }\\\\n for (var i = 0; i < len; i += 2) {\\\\n swap(this, i, i + 1)\\\\n }\\\\n return this\\\\n}\\\\n\\\\nBuffer.prototype.swap32 = function swap32 () {\\\\n var len = this.length\\\\n if (len % 4 !== 0) {\\\\n throw new RangeError('Buffer size must be a multiple of 32-bits')\\\\n }\\\\n for (var i = 0; i < len; i += 4) {\\\\n swap(this, i, i + 3)\\\\n swap(this, i + 1, i + 2)\\\\n }\\\\n return this\\\\n}\\\\n\\\\nBuffer.prototype.swap64 = function swap64 () {\\\\n var len = this.length\\\\n if (len % 8 !== 0) {\\\\n throw new RangeError('Buffer size must be a multiple of 64-bits')\\\\n }\\\\n for (var i = 0; i < len; i += 8) {\\\\n swap(this, i, i + 7)\\\\n swap(this, i + 1, i + 6)\\\\n swap(this, i + 2, i + 5)\\\\n swap(this, i + 3, i + 4)\\\\n }\\\\n return this\\\\n}\\\\n\\\\nBuffer.prototype.toString = function toString () {\\\\n var length = this.length | 0\\\\n if (length === 0) return ''\\\\n if (arguments.length === 0) return utf8Slice(this, 0, length)\\\\n return slowToString.apply(this, arguments)\\\\n}\\\\n\\\\nBuffer.prototype.equals = function equals (b) {\\\\n if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')\\\\n if (this === b) return true\\\\n return Buffer.compare(this, b) === 0\\\\n}\\\\n\\\\nBuffer.prototype.inspect = function inspect () {\\\\n var str = ''\\\\n var max = exports.INSPECT_MAX_BYTES\\\\n if (this.length > 0) {\\\\n str = this.toString('hex', 0, max).match(/.{2}/g).join(' ')\\\\n if (this.length > max) str += ' ... '\\\\n }\\\\n return '<Buffer ' + str + '>'\\\\n}\\\\n\\\\nBuffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {\\\\n if (!Buffer.isBuffer(target)) {\\\\n throw new TypeError('Argument must be a Buffer')\\\\n }\\\\n\\\\n if (start === undefined) {\\\\n start = 0\\\\n }\\\\n if (end === undefined) {\\\\n end = target ? target.length : 0\\\\n }\\\\n if (thisStart === undefined) {\\\\n thisStart = 0\\\\n }\\\\n if (thisEnd === undefined) {\\\\n thisEnd = this.length\\\\n }\\\\n\\\\n if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) {\\\\n throw new RangeError('out of range index')\\\\n }\\\\n\\\\n if (thisStart >= thisEnd && start >= end) {\\\\n return 0\\\\n }\\\\n if (thisStart >= thisEnd) {\\\\n return -1\\\\n }\\\\n if (start >= end) {\\\\n return 1\\\\n }\\\\n\\\\n start >>>= 0\\\\n end >>>= 0\\\\n thisStart >>>= 0\\\\n thisEnd >>>= 0\\\\n\\\\n if (this === target) return 0\\\\n\\\\n var x = thisEnd - thisStart\\\\n var y = end - start\\\\n var len = Math.min(x, y)\\\\n\\\\n var thisCopy = this.slice(thisStart, thisEnd)\\\\n var targetCopy = target.slice(start, end)\\\\n\\\\n for (var i = 0; i < len; ++i) {\\\\n if (thisCopy[i] !== targetCopy[i]) {\\\\n x = thisCopy[i]\\\\n y = targetCopy[i]\\\\n break\\\\n }\\\\n }\\\\n\\\\n if (x < y) return -1\\\\n if (y < x) return 1\\\\n return 0\\\\n}\\\\n\\\\n// Finds either the first index of `val` in `buffer` at offset >= `byteOffset`,\\\\n// OR the last index of `val` in `buffer` at offset <= `byteOffset`.\\\\n//\\\\n// Arguments:\\\\n// - buffer - a Buffer to search\\\\n// - val - a string, Buffer, or number\\\\n// - byteOffset - an index into `buffer`; will be clamped to an int32\\\\n// - encoding - an optional encoding, relevant is val is a string\\\\n// - dir - true for indexOf, false for lastIndexOf\\\\nfunction bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {\\\\n // Empty buffer means no match\\\\n if (buffer.length === 0) return -1\\\\n\\\\n // Normalize byteOffset\\\\n if (typeof byteOffset === 'string') {\\\\n encoding = byteOffset\\\\n byteOffset = 0\\\\n } else if (byteOffset > 0x7fffffff) {\\\\n byteOffset = 0x7fffffff\\\\n } else if (byteOffset < -0x80000000) {\\\\n byteOffset = -0x80000000\\\\n }\\\\n byteOffset = +byteOffset // Coerce to Number.\\\\n if (isNaN(byteOffset)) {\\\\n // byteOffset: it it's undefined, null, NaN, \\\\\\\"foo\\\\\\\", etc, search whole buffer\\\\n byteOffset = dir ? 0 : (buffer.length - 1)\\\\n }\\\\n\\\\n // Normalize byteOffset: negative offsets start from the end of the buffer\\\\n if (byteOffset < 0) byteOffset = buffer.length + byteOffset\\\\n if (byteOffset >= buffer.length) {\\\\n if (dir) return -1\\\\n else byteOffset = buffer.length - 1\\\\n } else if (byteOffset < 0) {\\\\n if (dir) byteOffset = 0\\\\n else return -1\\\\n }\\\\n\\\\n // Normalize val\\\\n if (typeof val === 'string') {\\\\n val = Buffer.from(val, encoding)\\\\n }\\\\n\\\\n // Finally, search either indexOf (if dir is true) or lastIndexOf\\\\n if (Buffer.isBuffer(val)) {\\\\n // Special case: looking for empty string/buffer always fails\\\\n if (val.length === 0) {\\\\n return -1\\\\n }\\\\n return arrayIndexOf(buffer, val, byteOffset, encoding, dir)\\\\n } else if (typeof val === 'number') {\\\\n val = val & 0xFF // Search for a byte value [0-255]\\\\n if (Buffer.TYPED_ARRAY_SUPPORT &&\\\\n typeof Uint8Array.prototype.indexOf === 'function') {\\\\n if (dir) {\\\\n return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset)\\\\n } else {\\\\n return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset)\\\\n }\\\\n }\\\\n return arrayIndexOf(buffer, [ val ], byteOffset, encoding, dir)\\\\n }\\\\n\\\\n throw new TypeError('val must be string, number or Buffer')\\\\n}\\\\n\\\\nfunction arrayIndexOf (arr, val, byteOffset, encoding, dir) {\\\\n var indexSize = 1\\\\n var arrLength = arr.length\\\\n var valLength = val.length\\\\n\\\\n if (encoding !== undefined) {\\\\n encoding = String(encoding).toLowerCase()\\\\n if (encoding === 'ucs2' || encoding === 'ucs-2' ||\\\\n encoding === 'utf16le' || encoding === 'utf-16le') {\\\\n if (arr.length < 2 || val.length < 2) {\\\\n return -1\\\\n }\\\\n indexSize = 2\\\\n arrLength /= 2\\\\n valLength /= 2\\\\n byteOffset /= 2\\\\n }\\\\n }\\\\n\\\\n function read (buf, i) {\\\\n if (indexSize === 1) {\\\\n return buf[i]\\\\n } else {\\\\n return buf.readUInt16BE(i * indexSize)\\\\n }\\\\n }\\\\n\\\\n var i\\\\n if (dir) {\\\\n var foundIndex = -1\\\\n for (i = byteOffset; i < arrLength; i++) {\\\\n if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {\\\\n if (foundIndex === -1) foundIndex = i\\\\n if (i - foundIndex + 1 === valLength) return foundIndex * indexSize\\\\n } else {\\\\n if (foundIndex !== -1) i -= i - foundIndex\\\\n foundIndex = -1\\\\n }\\\\n }\\\\n } else {\\\\n if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength\\\\n for (i = byteOffset; i >= 0; i--) {\\\\n var found = true\\\\n for (var j = 0; j < valLength; j++) {\\\\n if (read(arr, i + j) !== read(val, j)) {\\\\n found = false\\\\n break\\\\n }\\\\n }\\\\n if (found) return i\\\\n }\\\\n }\\\\n\\\\n return -1\\\\n}\\\\n\\\\nBuffer.prototype.includes = function includes (val, byteOffset, encoding) {\\\\n return this.indexOf(val, byteOffset, encoding) !== -1\\\\n}\\\\n\\\\nBuffer.prototype.indexOf = function indexOf (val, byteOffset, encoding) {\\\\n return bidirectionalIndexOf(this, val, byteOffset, encoding, true)\\\\n}\\\\n\\\\nBuffer.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding) {\\\\n return bidirectionalIndexOf(this, val, byteOffset, encoding, false)\\\\n}\\\\n\\\\nfunction hexWrite (buf, string, offset, length) {\\\\n offset = Number(offset) || 0\\\\n var remaining = buf.length - offset\\\\n if (!length) {\\\\n length = remaining\\\\n } else {\\\\n length = Number(length)\\\\n if (length > remaining) {\\\\n length = remaining\\\\n }\\\\n }\\\\n\\\\n // must be an even number of digits\\\\n var strLen = string.length\\\\n if (strLen % 2 !== 0) throw new TypeError('Invalid hex string')\\\\n\\\\n if (length > strLen / 2) {\\\\n length = strLen / 2\\\\n }\\\\n for (var i = 0; i < length; ++i) {\\\\n var parsed = parseInt(string.substr(i * 2, 2), 16)\\\\n if (isNaN(parsed)) return i\\\\n buf[offset + i] = parsed\\\\n }\\\\n return i\\\\n}\\\\n\\\\nfunction utf8Write (buf, string, offset, length) {\\\\n return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length)\\\\n}\\\\n\\\\nfunction asciiWrite (buf, string, offset, length) {\\\\n return blitBuffer(asciiToBytes(string), buf, offset, length)\\\\n}\\\\n\\\\nfunction latin1Write (buf, string, offset, length) {\\\\n return asciiWrite(buf, string, offset, length)\\\\n}\\\\n\\\\nfunction base64Write (buf, string, offset, length) {\\\\n return blitBuffer(base64ToBytes(string), buf, offset, length)\\\\n}\\\\n\\\\nfunction ucs2Write (buf, string, offset, length) {\\\\n return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)\\\\n}\\\\n\\\\nBuffer.prototype.write = function write (string, offset, length, encoding) {\\\\n // Buffer#write(string)\\\\n if (offset === undefined) {\\\\n encoding = 'utf8'\\\\n length = this.length\\\\n offset = 0\\\\n // Buffer#write(string, encoding)\\\\n } else if (length === undefined && typeof offset === 'string') {\\\\n encoding = offset\\\\n length = this.length\\\\n offset = 0\\\\n // Buffer#write(string, offset[, length][, encoding])\\\\n } else if (isFinite(offset)) {\\\\n offset = offset | 0\\\\n if (isFinite(length)) {\\\\n length = length | 0\\\\n if (encoding === undefined) encoding = 'utf8'\\\\n } else {\\\\n encoding = length\\\\n length = undefined\\\\n }\\\\n // legacy write(string, encoding, offset, length) - remove in v0.13\\\\n } else {\\\\n throw new Error(\\\\n 'Buffer.write(string, encoding, offset[, length]) is no longer supported'\\\\n )\\\\n }\\\\n\\\\n var remaining = this.length - offset\\\\n if (length === undefined || length > remaining) length = remaining\\\\n\\\\n if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) {\\\\n throw new RangeError('Attempt to write outside buffer bounds')\\\\n }\\\\n\\\\n if (!encoding) encoding = 'utf8'\\\\n\\\\n var loweredCase = false\\\\n for (;;) {\\\\n switch (encoding) {\\\\n case 'hex':\\\\n return hexWrite(this, string, offset, length)\\\\n\\\\n case 'utf8':\\\\n case 'utf-8':\\\\n return utf8Write(this, string, offset, length)\\\\n\\\\n case 'ascii':\\\\n return asciiWrite(this, string, offset, length)\\\\n\\\\n case 'latin1':\\\\n case 'binary':\\\\n return latin1Write(this, string, offset, length)\\\\n\\\\n case 'base64':\\\\n // Warning: maxLength not taken into account in base64Write\\\\n return base64Write(this, string, offset, length)\\\\n\\\\n case 'ucs2':\\\\n case 'ucs-2':\\\\n case 'utf16le':\\\\n case 'utf-16le':\\\\n return ucs2Write(this, string, offset, length)\\\\n\\\\n default:\\\\n if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)\\\\n encoding = ('' + encoding).toLowerCase()\\\\n loweredCase = true\\\\n }\\\\n }\\\\n}\\\\n\\\\nBuffer.prototype.toJSON = function toJSON () {\\\\n return {\\\\n type: 'Buffer',\\\\n data: Array.prototype.slice.call(this._arr || this, 0)\\\\n }\\\\n}\\\\n\\\\nfunction base64Slice (buf, start, end) {\\\\n if (start === 0 && end === buf.length) {\\\\n return base64.fromByteArray(buf)\\\\n } else {\\\\n return base64.fromByteArray(buf.slice(start, end))\\\\n }\\\\n}\\\\n\\\\nfunction utf8Slice (buf, start, end) {\\\\n end = Math.min(buf.length, end)\\\\n var res = []\\\\n\\\\n var i = start\\\\n while (i < end) {\\\\n var firstByte = buf[i]\\\\n var codePoint = null\\\\n var bytesPerSequence = (firstByte > 0xEF) ? 4\\\\n : (firstByte > 0xDF) ? 3\\\\n : (firstByte > 0xBF) ? 2\\\\n : 1\\\\n\\\\n if (i + bytesPerSequence <= end) {\\\\n var secondByte, thirdByte, fourthByte, tempCodePoint\\\\n\\\\n switch (bytesPerSequence) {\\\\n case 1:\\\\n if (firstByte < 0x80) {\\\\n codePoint = firstByte\\\\n }\\\\n break\\\\n case 2:\\\\n secondByte = buf[i + 1]\\\\n if ((secondByte & 0xC0) === 0x80) {\\\\n tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F)\\\\n if (tempCodePoint > 0x7F) {\\\\n codePoint = tempCodePoint\\\\n }\\\\n }\\\\n break\\\\n case 3:\\\\n secondByte = buf[i + 1]\\\\n thirdByte = buf[i + 2]\\\\n if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) {\\\\n tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F)\\\\n if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {\\\\n codePoint = tempCodePoint\\\\n }\\\\n }\\\\n break\\\\n case 4:\\\\n secondByte = buf[i + 1]\\\\n thirdByte = buf[i + 2]\\\\n fourthByte = buf[i + 3]\\\\n if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) {\\\\n tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F)\\\\n if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) {\\\\n codePoint = tempCodePoint\\\\n }\\\\n }\\\\n }\\\\n }\\\\n\\\\n if (codePoint === null) {\\\\n // we did not generate a valid codePoint so insert a\\\\n // replacement char (U+FFFD) and advance only 1 byte\\\\n codePoint = 0xFFFD\\\\n bytesPerSequence = 1\\\\n } else if (codePoint > 0xFFFF) {\\\\n // encode to utf16 (surrogate pair dance)\\\\n codePoint -= 0x10000\\\\n res.push(codePoint >>> 10 & 0x3FF | 0xD800)\\\\n codePoint = 0xDC00 | codePoint & 0x3FF\\\\n }\\\\n\\\\n res.push(codePoint)\\\\n i += bytesPerSequence\\\\n }\\\\n\\\\n return decodeCodePointsArray(res)\\\\n}\\\\n\\\\n// Based on http://stackoverflow.com/a/22747272/680742, the browser with\\\\n// the lowest limit is Chrome, with 0x10000 args.\\\\n// We go 1 magnitude less, for safety\\\\nvar MAX_ARGUMENTS_LENGTH = 0x1000\\\\n\\\\nfunction decodeCodePointsArray (codePoints) {\\\\n var len = codePoints.length\\\\n if (len <= MAX_ARGUMENTS_LENGTH) {\\\\n return String.fromCharCode.apply(String, codePoints) // avoid extra slice()\\\\n }\\\\n\\\\n // Decode in chunks to avoid \\\\\\\"call stack size exceeded\\\\\\\".\\\\n var res = ''\\\\n var i = 0\\\\n while (i < len) {\\\\n res += String.fromCharCode.apply(\\\\n String,\\\\n codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH)\\\\n )\\\\n }\\\\n return res\\\\n}\\\\n\\\\nfunction asciiSlice (buf, start, end) {\\\\n var ret = ''\\\\n end = Math.min(buf.length, end)\\\\n\\\\n for (var i = start; i < end; ++i) {\\\\n ret += String.fromCharCode(buf[i] & 0x7F)\\\\n }\\\\n return ret\\\\n}\\\\n\\\\nfunction latin1Slice (buf, start, end) {\\\\n var ret = ''\\\\n end = Math.min(buf.length, end)\\\\n\\\\n for (var i = start; i < end; ++i) {\\\\n ret += String.fromCharCode(buf[i])\\\\n }\\\\n return ret\\\\n}\\\\n\\\\nfunction hexSlice (buf, start, end) {\\\\n var len = buf.length\\\\n\\\\n if (!start || start < 0) start = 0\\\\n if (!end || end < 0 || end > len) end = len\\\\n\\\\n var out = ''\\\\n for (var i = start; i < end; ++i) {\\\\n out += toHex(buf[i])\\\\n }\\\\n return out\\\\n}\\\\n\\\\nfunction utf16leSlice (buf, start, end) {\\\\n var bytes = buf.slice(start, end)\\\\n var res = ''\\\\n for (var i = 0; i < bytes.length; i += 2) {\\\\n res += String.fromCharCode(bytes[i] + bytes[i + 1] * 256)\\\\n }\\\\n return res\\\\n}\\\\n\\\\nBuffer.prototype.slice = function slice (start, end) {\\\\n var len = this.length\\\\n start = ~~start\\\\n end = end === undefined ? len : ~~end\\\\n\\\\n if (start < 0) {\\\\n start += len\\\\n if (start < 0) start = 0\\\\n } else if (start > len) {\\\\n start = len\\\\n }\\\\n\\\\n if (end < 0) {\\\\n end += len\\\\n if (end < 0) end = 0\\\\n } else if (end > len) {\\\\n end = len\\\\n }\\\\n\\\\n if (end < start) end = start\\\\n\\\\n var newBuf\\\\n if (Buffer.TYPED_ARRAY_SUPPORT) {\\\\n newBuf = this.subarray(start, end)\\\\n newBuf.__proto__ = Buffer.prototype\\\\n } else {\\\\n var sliceLen = end - start\\\\n newBuf = new Buffer(sliceLen, undefined)\\\\n for (var i = 0; i < sliceLen; ++i) {\\\\n newBuf[i] = this[i + start]\\\\n }\\\\n }\\\\n\\\\n return newBuf\\\\n}\\\\n\\\\n/*\\\\n * Need to make sure that buffer isn't trying to write out of bounds.\\\\n */\\\\nfunction checkOffset (offset, ext, length) {\\\\n if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint')\\\\n if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length')\\\\n}\\\\n\\\\nBuffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) {\\\\n offset = offset | 0\\\\n byteLength = byteLength | 0\\\\n if (!noAssert) checkOffset(offset, byteLength, this.length)\\\\n\\\\n var val = this[offset]\\\\n var mul = 1\\\\n var i = 0\\\\n while (++i < byteLength && (mul *= 0x100)) {\\\\n val += this[offset + i] * mul\\\\n }\\\\n\\\\n return val\\\\n}\\\\n\\\\nBuffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) {\\\\n offset = offset | 0\\\\n byteLength = byteLength | 0\\\\n if (!noAssert) {\\\\n checkOffset(offset, byteLength, this.length)\\\\n }\\\\n\\\\n var val = this[offset + --byteLength]\\\\n var mul = 1\\\\n while (byteLength > 0 && (mul *= 0x100)) {\\\\n val += this[offset + --byteLength] * mul\\\\n }\\\\n\\\\n return val\\\\n}\\\\n\\\\nBuffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) {\\\\n if (!noAssert) checkOffset(offset, 1, this.length)\\\\n return this[offset]\\\\n}\\\\n\\\\nBuffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) {\\\\n if (!noAssert) checkOffset(offset, 2, this.length)\\\\n return this[offset] | (this[offset + 1] << 8)\\\\n}\\\\n\\\\nBuffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) {\\\\n if (!noAssert) checkOffset(offset, 2, this.length)\\\\n return (this[offset] << 8) | this[offset + 1]\\\\n}\\\\n\\\\nBuffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {\\\\n if (!noAssert) checkOffset(offset, 4, this.length)\\\\n\\\\n return ((this[offset]) |\\\\n (this[offset + 1] << 8) |\\\\n (this[offset + 2] << 16)) +\\\\n (this[offset + 3] * 0x1000000)\\\\n}\\\\n\\\\nBuffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {\\\\n if (!noAssert) checkOffset(offset, 4, this.length)\\\\n\\\\n return (this[offset] * 0x1000000) +\\\\n ((this[offset + 1] << 16) |\\\\n (this[offset + 2] << 8) |\\\\n this[offset + 3])\\\\n}\\\\n\\\\nBuffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) {\\\\n offset = offset | 0\\\\n byteLength = byteLength | 0\\\\n if (!noAssert) checkOffset(offset, byteLength, this.length)\\\\n\\\\n var val = this[offset]\\\\n var mul = 1\\\\n var i = 0\\\\n while (++i < byteLength && (mul *= 0x100)) {\\\\n val += this[offset + i] * mul\\\\n }\\\\n mul *= 0x80\\\\n\\\\n if (val >= mul) val -= Math.pow(2, 8 * byteLength)\\\\n\\\\n return val\\\\n}\\\\n\\\\nBuffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) {\\\\n offset = offset | 0\\\\n byteLength = byteLength | 0\\\\n if (!noAssert) checkOffset(offset, byteLength, this.length)\\\\n\\\\n var i = byteLength\\\\n var mul = 1\\\\n var val = this[offset + --i]\\\\n while (i > 0 && (mul *= 0x100)) {\\\\n val += this[offset + --i] * mul\\\\n }\\\\n mul *= 0x80\\\\n\\\\n if (val >= mul) val -= Math.pow(2, 8 * byteLength)\\\\n\\\\n return val\\\\n}\\\\n\\\\nBuffer.prototype.readInt8 = function readInt8 (offset, noAssert) {\\\\n if (!noAssert) checkOffset(offset, 1, this.length)\\\\n if (!(this[offset] & 0x80)) return (this[offset])\\\\n return ((0xff - this[offset] + 1) * -1)\\\\n}\\\\n\\\\nBuffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) {\\\\n if (!noAssert) checkOffset(offset, 2, this.length)\\\\n var val = this[offset] | (this[offset + 1] << 8)\\\\n return (val & 0x8000) ? val | 0xFFFF0000 : val\\\\n}\\\\n\\\\nBuffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) {\\\\n if (!noAssert) checkOffset(offset, 2, this.length)\\\\n var val = this[offset + 1] | (this[offset] << 8)\\\\n return (val & 0x8000) ? val | 0xFFFF0000 : val\\\\n}\\\\n\\\\nBuffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) {\\\\n if (!noAssert) checkOffset(offset, 4, this.length)\\\\n\\\\n return (this[offset]) |\\\\n (this[offset + 1] << 8) |\\\\n (this[offset + 2] << 16) |\\\\n (this[offset + 3] << 24)\\\\n}\\\\n\\\\nBuffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) {\\\\n if (!noAssert) checkOffset(offset, 4, this.length)\\\\n\\\\n return (this[offset] << 24) |\\\\n (this[offset + 1] << 16) |\\\\n (this[offset + 2] << 8) |\\\\n (this[offset + 3])\\\\n}\\\\n\\\\nBuffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {\\\\n if (!noAssert) checkOffset(offset, 4, this.length)\\\\n return ieee754.read(this, offset, true, 23, 4)\\\\n}\\\\n\\\\nBuffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) {\\\\n if (!noAssert) checkOffset(offset, 4, this.length)\\\\n return ieee754.read(this, offset, false, 23, 4)\\\\n}\\\\n\\\\nBuffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) {\\\\n if (!noAssert) checkOffset(offset, 8, this.length)\\\\n return ieee754.read(this, offset, true, 52, 8)\\\\n}\\\\n\\\\nBuffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {\\\\n if (!noAssert) checkOffset(offset, 8, this.length)\\\\n return ieee754.read(this, offset, false, 52, 8)\\\\n}\\\\n\\\\nfunction checkInt (buf, value, offset, ext, max, min) {\\\\n if (!Buffer.isBuffer(buf)) throw new TypeError('\\\\\\\"buffer\\\\\\\" argument must be a Buffer instance')\\\\n if (value > max || value < min) throw new RangeError('\\\\\\\"value\\\\\\\" argument is out of bounds')\\\\n if (offset + ext > buf.length) throw new RangeError('Index out of range')\\\\n}\\\\n\\\\nBuffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {\\\\n value = +value\\\\n offset = offset | 0\\\\n byteLength = byteLength | 0\\\\n if (!noAssert) {\\\\n var maxBytes = Math.pow(2, 8 * byteLength) - 1\\\\n checkInt(this, value, offset, byteLength, maxBytes, 0)\\\\n }\\\\n\\\\n var mul = 1\\\\n var i = 0\\\\n this[offset] = value & 0xFF\\\\n while (++i < byteLength && (mul *= 0x100)) {\\\\n this[offset + i] = (value / mul) & 0xFF\\\\n }\\\\n\\\\n return offset + byteLength\\\\n}\\\\n\\\\nBuffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) {\\\\n value = +value\\\\n offset = offset | 0\\\\n byteLength = byteLength | 0\\\\n if (!noAssert) {\\\\n var maxBytes = Math.pow(2, 8 * byteLength) - 1\\\\n checkInt(this, value, offset, byteLength, maxBytes, 0)\\\\n }\\\\n\\\\n var i = byteLength - 1\\\\n var mul = 1\\\\n this[offset + i] = value & 0xFF\\\\n while (--i >= 0 && (mul *= 0x100)) {\\\\n this[offset + i] = (value / mul) & 0xFF\\\\n }\\\\n\\\\n return offset + byteLength\\\\n}\\\\n\\\\nBuffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) {\\\\n value = +value\\\\n offset = offset | 0\\\\n if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0)\\\\n if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)\\\\n this[offset] = (value & 0xff)\\\\n return offset + 1\\\\n}\\\\n\\\\nfunction objectWriteUInt16 (buf, value, offset, littleEndian) {\\\\n if (value < 0) value = 0xffff + value + 1\\\\n for (var i = 0, j = Math.min(buf.length - offset, 2); i < j; ++i) {\\\\n buf[offset + i] = (value & (0xff << (8 * (littleEndian ? i : 1 - i)))) >>>\\\\n (littleEndian ? i : 1 - i) * 8\\\\n }\\\\n}\\\\n\\\\nBuffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {\\\\n value = +value\\\\n offset = offset | 0\\\\n if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)\\\\n if (Buffer.TYPED_ARRAY_SUPPORT) {\\\\n this[offset] = (value & 0xff)\\\\n this[offset + 1] = (value >>> 8)\\\\n } else {\\\\n objectWriteUInt16(this, value, offset, true)\\\\n }\\\\n return offset + 2\\\\n}\\\\n\\\\nBuffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) {\\\\n value = +value\\\\n offset = offset | 0\\\\n if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)\\\\n if (Buffer.TYPED_ARRAY_SUPPORT) {\\\\n this[offset] = (value >>> 8)\\\\n this[offset + 1] = (value & 0xff)\\\\n } else {\\\\n objectWriteUInt16(this, value, offset, false)\\\\n }\\\\n return offset + 2\\\\n}\\\\n\\\\nfunction objectWriteUInt32 (buf, value, offset, littleEndian) {\\\\n if (value < 0) value = 0xffffffff + value + 1\\\\n for (var i = 0, j = Math.min(buf.length - offset, 4); i < j; ++i) {\\\\n buf[offset + i] = (value >>> (littleEndian ? i : 3 - i) * 8) & 0xff\\\\n }\\\\n}\\\\n\\\\nBuffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) {\\\\n value = +value\\\\n offset = offset | 0\\\\n if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)\\\\n if (Buffer.TYPED_ARRAY_SUPPORT) {\\\\n this[offset + 3] = (value >>> 24)\\\\n this[offset + 2] = (value >>> 16)\\\\n this[offset + 1] = (value >>> 8)\\\\n this[offset] = (value & 0xff)\\\\n } else {\\\\n objectWriteUInt32(this, value, offset, true)\\\\n }\\\\n return offset + 4\\\\n}\\\\n\\\\nBuffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) {\\\\n value = +value\\\\n offset = offset | 0\\\\n if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)\\\\n if (Buffer.TYPED_ARRAY_SUPPORT) {\\\\n this[offset] = (value >>> 24)\\\\n this[offset + 1] = (value >>> 16)\\\\n this[offset + 2] = (value >>> 8)\\\\n this[offset + 3] = (value & 0xff)\\\\n } else {\\\\n objectWriteUInt32(this, value, offset, false)\\\\n }\\\\n return offset + 4\\\\n}\\\\n\\\\nBuffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) {\\\\n value = +value\\\\n offset = offset | 0\\\\n if (!noAssert) {\\\\n var limit = Math.pow(2, 8 * byteLength - 1)\\\\n\\\\n checkInt(this, value, offset, byteLength, limit - 1, -limit)\\\\n }\\\\n\\\\n var i = 0\\\\n var mul = 1\\\\n var sub = 0\\\\n this[offset] = value & 0xFF\\\\n while (++i < byteLength && (mul *= 0x100)) {\\\\n if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {\\\\n sub = 1\\\\n }\\\\n this[offset + i] = ((value / mul) >> 0) - sub & 0xFF\\\\n }\\\\n\\\\n return offset + byteLength\\\\n}\\\\n\\\\nBuffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) {\\\\n value = +value\\\\n offset = offset | 0\\\\n if (!noAssert) {\\\\n var limit = Math.pow(2, 8 * byteLength - 1)\\\\n\\\\n checkInt(this, value, offset, byteLength, limit - 1, -limit)\\\\n }\\\\n\\\\n var i = byteLength - 1\\\\n var mul = 1\\\\n var sub = 0\\\\n this[offset + i] = value & 0xFF\\\\n while (--i >= 0 && (mul *= 0x100)) {\\\\n if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {\\\\n sub = 1\\\\n }\\\\n this[offset + i] = ((value / mul) >> 0) - sub & 0xFF\\\\n }\\\\n\\\\n return offset + byteLength\\\\n}\\\\n\\\\nBuffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) {\\\\n value = +value\\\\n offset = offset | 0\\\\n if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80)\\\\n if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)\\\\n if (value < 0) value = 0xff + value + 1\\\\n this[offset] = (value & 0xff)\\\\n return offset + 1\\\\n}\\\\n\\\\nBuffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) {\\\\n value = +value\\\\n offset = offset | 0\\\\n if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)\\\\n if (Buffer.TYPED_ARRAY_SUPPORT) {\\\\n this[offset] = (value & 0xff)\\\\n this[offset + 1] = (value >>> 8)\\\\n } else {\\\\n objectWriteUInt16(this, value, offset, true)\\\\n }\\\\n return offset + 2\\\\n}\\\\n\\\\nBuffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) {\\\\n value = +value\\\\n offset = offset | 0\\\\n if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)\\\\n if (Buffer.TYPED_ARRAY_SUPPORT) {\\\\n this[offset] = (value >>> 8)\\\\n this[offset + 1] = (value & 0xff)\\\\n } else {\\\\n objectWriteUInt16(this, value, offset, false)\\\\n }\\\\n return offset + 2\\\\n}\\\\n\\\\nBuffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) {\\\\n value = +value\\\\n offset = offset | 0\\\\n if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)\\\\n if (Buffer.TYPED_ARRAY_SUPPORT) {\\\\n this[offset] = (value & 0xff)\\\\n this[offset + 1] = (value >>> 8)\\\\n this[offset + 2] = (value >>> 16)\\\\n this[offset + 3] = (value >>> 24)\\\\n } else {\\\\n objectWriteUInt32(this, value, offset, true)\\\\n }\\\\n return offset + 4\\\\n}\\\\n\\\\nBuffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) {\\\\n value = +value\\\\n offset = offset | 0\\\\n if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)\\\\n if (value < 0) value = 0xffffffff + value + 1\\\\n if (Buffer.TYPED_ARRAY_SUPPORT) {\\\\n this[offset] = (value >>> 24)\\\\n this[offset + 1] = (value >>> 16)\\\\n this[offset + 2] = (value >>> 8)\\\\n this[offset + 3] = (value & 0xff)\\\\n } else {\\\\n objectWriteUInt32(this, value, offset, false)\\\\n }\\\\n return offset + 4\\\\n}\\\\n\\\\nfunction checkIEEE754 (buf, value, offset, ext, max, min) {\\\\n if (offset + ext > buf.length) throw new RangeError('Index out of range')\\\\n if (offset < 0) throw new RangeError('Index out of range')\\\\n}\\\\n\\\\nfunction writeFloat (buf, value, offset, littleEndian, noAssert) {\\\\n if (!noAssert) {\\\\n checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38)\\\\n }\\\\n ieee754.write(buf, value, offset, littleEndian, 23, 4)\\\\n return offset + 4\\\\n}\\\\n\\\\nBuffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {\\\\n return writeFloat(this, value, offset, true, noAssert)\\\\n}\\\\n\\\\nBuffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) {\\\\n return writeFloat(this, value, offset, false, noAssert)\\\\n}\\\\n\\\\nfunction writeDouble (buf, value, offset, littleEndian, noAssert) {\\\\n if (!noAssert) {\\\\n checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308)\\\\n }\\\\n ieee754.write(buf, value, offset, littleEndian, 52, 8)\\\\n return offset + 8\\\\n}\\\\n\\\\nBuffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) {\\\\n return writeDouble(this, value, offset, true, noAssert)\\\\n}\\\\n\\\\nBuffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) {\\\\n return writeDouble(this, value, offset, false, noAssert)\\\\n}\\\\n\\\\n// copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)\\\\nBuffer.prototype.copy = function copy (target, targetStart, start, end) {\\\\n if (!start) start = 0\\\\n if (!end && end !== 0) end = this.length\\\\n if (targetStart >= target.length) targetStart = target.length\\\\n if (!targetStart) targetStart = 0\\\\n if (end > 0 && end < start) end = start\\\\n\\\\n // Copy 0 bytes; we're done\\\\n if (end === start) return 0\\\\n if (target.length === 0 || this.length === 0) return 0\\\\n\\\\n // Fatal error conditions\\\\n if (targetStart < 0) {\\\\n throw new RangeError('targetStart out of bounds')\\\\n }\\\\n if (start < 0 || start >= this.length) throw new RangeError('sourceStart out of bounds')\\\\n if (end < 0) throw new RangeError('sourceEnd out of bounds')\\\\n\\\\n // Are we oob?\\\\n if (end > this.length) end = this.length\\\\n if (target.length - targetStart < end - start) {\\\\n end = target.length - targetStart + start\\\\n }\\\\n\\\\n var len = end - start\\\\n var i\\\\n\\\\n if (this === target && start < targetStart && targetStart < end) {\\\\n // descending copy from end\\\\n for (i = len - 1; i >= 0; --i) {\\\\n target[i + targetStart] = this[i + start]\\\\n }\\\\n } else if (len < 1000 || !Buffer.TYPED_ARRAY_SUPPORT) {\\\\n // ascending copy from start\\\\n for (i = 0; i < len; ++i) {\\\\n target[i + targetStart] = this[i + start]\\\\n }\\\\n } else {\\\\n Uint8Array.prototype.set.call(\\\\n target,\\\\n this.subarray(start, start + len),\\\\n targetStart\\\\n )\\\\n }\\\\n\\\\n return len\\\\n}\\\\n\\\\n// Usage:\\\\n// buffer.fill(number[, offset[, end]])\\\\n// buffer.fill(buffer[, offset[, end]])\\\\n// buffer.fill(string[, offset[, end]][, encoding])\\\\nBuffer.prototype.fill = function fill (val, start, end, encoding) {\\\\n // Handle string cases:\\\\n if (typeof val === 'string') {\\\\n if (typeof start === 'string') {\\\\n encoding = start\\\\n start = 0\\\\n end = this.length\\\\n } else if (typeof end === 'string') {\\\\n encoding = end\\\\n end = this.length\\\\n }\\\\n if (val.length === 1) {\\\\n var code = val.charCodeAt(0)\\\\n if (code < 256) {\\\\n val = code\\\\n }\\\\n }\\\\n if (encoding !== undefined && typeof encoding !== 'string') {\\\\n throw new TypeError('encoding must be a string')\\\\n }\\\\n if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) {\\\\n throw new TypeError('Unknown encoding: ' + encoding)\\\\n }\\\\n } else if (typeof val === 'number') {\\\\n val = val & 255\\\\n }\\\\n\\\\n // Invalid ranges are not set to a default, so can range check early.\\\\n if (start < 0 || this.length < start || this.length < end) {\\\\n throw new RangeError('Out of range index')\\\\n }\\\\n\\\\n if (end <= start) {\\\\n return this\\\\n }\\\\n\\\\n start = start >>> 0\\\\n end = end === undefined ? this.length : end >>> 0\\\\n\\\\n if (!val) val = 0\\\\n\\\\n var i\\\\n if (typeof val === 'number') {\\\\n for (i = start; i < end; ++i) {\\\\n this[i] = val\\\\n }\\\\n } else {\\\\n var bytes = Buffer.isBuffer(val)\\\\n ? val\\\\n : utf8ToBytes(new Buffer(val, encoding).toString())\\\\n var len = bytes.length\\\\n for (i = 0; i < end - start; ++i) {\\\\n this[i + start] = bytes[i % len]\\\\n }\\\\n }\\\\n\\\\n return this\\\\n}\\\\n\\\\n// HELPER FUNCTIONS\\\\n// ================\\\\n\\\\nvar INVALID_BASE64_RE = /[^+\\\\\\\\/0-9A-Za-z-_]/g\\\\n\\\\nfunction base64clean (str) {\\\\n // Node strips out invalid characters like \\\\\\\\n and \\\\\\\\t from the string, base64-js does not\\\\n str = stringtrim(str).replace(INVALID_BASE64_RE, '')\\\\n // Node converts strings with length < 2 to ''\\\\n if (str.length < 2) return ''\\\\n // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not\\\\n while (str.length % 4 !== 0) {\\\\n str = str + '='\\\\n }\\\\n return str\\\\n}\\\\n\\\\nfunction stringtrim (str) {\\\\n if (str.trim) return str.trim()\\\\n return str.replace(/^\\\\\\\\s+|\\\\\\\\s+$/g, '')\\\\n}\\\\n\\\\nfunction toHex (n) {\\\\n if (n < 16) return '0' + n.toString(16)\\\\n return n.toString(16)\\\\n}\\\\n\\\\nfunction utf8ToBytes (string, units) {\\\\n units = units || Infinity\\\\n var codePoint\\\\n var length = string.length\\\\n var leadSurrogate = null\\\\n var bytes = []\\\\n\\\\n for (var i = 0; i < length; ++i) {\\\\n codePoint = string.charCodeAt(i)\\\\n\\\\n // is surrogate component\\\\n if (codePoint > 0xD7FF && codePoint < 0xE000) {\\\\n // last char was a lead\\\\n if (!leadSurrogate) {\\\\n // no lead yet\\\\n if (codePoint > 0xDBFF) {\\\\n // unexpected trail\\\\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\\\\n continue\\\\n } else if (i + 1 === length) {\\\\n // unpaired lead\\\\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\\\\n continue\\\\n }\\\\n\\\\n // valid lead\\\\n leadSurrogate = codePoint\\\\n\\\\n continue\\\\n }\\\\n\\\\n // 2 leads in a row\\\\n if (codePoint < 0xDC00) {\\\\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\\\\n leadSurrogate = codePoint\\\\n continue\\\\n }\\\\n\\\\n // valid surrogate pair\\\\n codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000\\\\n } else if (leadSurrogate) {\\\\n // valid bmp char, but last char was a lead\\\\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\\\\n }\\\\n\\\\n leadSurrogate = null\\\\n\\\\n // encode utf8\\\\n if (codePoint < 0x80) {\\\\n if ((units -= 1) < 0) break\\\\n bytes.push(codePoint)\\\\n } else if (codePoint < 0x800) {\\\\n if ((units -= 2) < 0) break\\\\n bytes.push(\\\\n codePoint >> 0x6 | 0xC0,\\\\n codePoint & 0x3F | 0x80\\\\n )\\\\n } else if (codePoint < 0x10000) {\\\\n if ((units -= 3) < 0) break\\\\n bytes.push(\\\\n codePoint >> 0xC | 0xE0,\\\\n codePoint >> 0x6 & 0x3F | 0x80,\\\\n codePoint & 0x3F | 0x80\\\\n )\\\\n } else if (codePoint < 0x110000) {\\\\n if ((units -= 4) < 0) break\\\\n bytes.push(\\\\n codePoint >> 0x12 | 0xF0,\\\\n codePoint >> 0xC & 0x3F | 0x80,\\\\n codePoint >> 0x6 & 0x3F | 0x80,\\\\n codePoint & 0x3F | 0x80\\\\n )\\\\n } else {\\\\n throw new Error('Invalid code point')\\\\n }\\\\n }\\\\n\\\\n return bytes\\\\n}\\\\n\\\\nfunction asciiToBytes (str) {\\\\n var byteArray = []\\\\n for (var i = 0; i < str.length; ++i) {\\\\n // Node's code seems to be doing this and not & 0x7F..\\\\n byteArray.push(str.charCodeAt(i) & 0xFF)\\\\n }\\\\n return byteArray\\\\n}\\\\n\\\\nfunction utf16leToBytes (str, units) {\\\\n var c, hi, lo\\\\n var byteArray = []\\\\n for (var i = 0; i < str.length; ++i) {\\\\n if ((units -= 2) < 0) break\\\\n\\\\n c = str.charCodeAt(i)\\\\n hi = c >> 8\\\\n lo = c % 256\\\\n byteArray.push(lo)\\\\n byteArray.push(hi)\\\\n }\\\\n\\\\n return byteArray\\\\n}\\\\n\\\\nfunction base64ToBytes (str) {\\\\n return base64.toByteArray(base64clean(str))\\\\n}\\\\n\\\\nfunction blitBuffer (src, dst, offset, length) {\\\\n for (var i = 0; i < length; ++i) {\\\\n if ((i + offset >= dst.length) || (i >= src.length)) break\\\\n dst[i + offset] = src[i]\\\\n }\\\\n return i\\\\n}\\\\n\\\\nfunction isnan (val) {\\\\n return val !== val // eslint-disable-line no-self-compare\\\\n}\\\\n\\\\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../webpack/buildin/global.js */ \\\\\\\"./node_modules/webpack/buildin/global.js\\\\\\\")))\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/node-libs-browser/node_modules/buffer/index.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/node-libs-browser/node_modules/events/events.js\\\":\\n/*!**********************************************************************!*\\\\\\n !*** ./node_modules/node-libs-browser/node_modules/events/events.js ***!\\n \\\\**********************************************************************/\\n/*! no static exports found */\\n/***/ (function(module, exports, __webpack_require__) {\\n\\n\\\"use strict\\\";\\neval(\\\"// Copyright Joyent, Inc. and other Node contributors.\\\\n//\\\\n// Permission is hereby granted, free of charge, to any person obtaining a\\\\n// copy of this software and associated documentation files (the\\\\n// \\\\\\\"Software\\\\\\\"), to deal in the Software without restriction, including\\\\n// without limitation the rights to use, copy, modify, merge, publish,\\\\n// distribute, sublicense, and/or sell copies of the Software, and to permit\\\\n// persons to whom the Software is furnished to do so, subject to the\\\\n// following conditions:\\\\n//\\\\n// The above copyright notice and this permission notice shall be included\\\\n// in all copies or substantial portions of the Software.\\\\n//\\\\n// THE SOFTWARE IS PROVIDED \\\\\\\"AS IS\\\\\\\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\\\\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\\\\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\\\\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\\\\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\\\\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\\\\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\\\\n\\\\n\\\\n\\\\nvar R = typeof Reflect === 'object' ? Reflect : null\\\\nvar ReflectApply = R && typeof R.apply === 'function'\\\\n ? R.apply\\\\n : function ReflectApply(target, receiver, args) {\\\\n return Function.prototype.apply.call(target, receiver, args);\\\\n }\\\\n\\\\nvar ReflectOwnKeys\\\\nif (R && typeof R.ownKeys === 'function') {\\\\n ReflectOwnKeys = R.ownKeys\\\\n} else if (Object.getOwnPropertySymbols) {\\\\n ReflectOwnKeys = function ReflectOwnKeys(target) {\\\\n return Object.getOwnPropertyNames(target)\\\\n .concat(Object.getOwnPropertySymbols(target));\\\\n };\\\\n} else {\\\\n ReflectOwnKeys = function ReflectOwnKeys(target) {\\\\n return Object.getOwnPropertyNames(target);\\\\n };\\\\n}\\\\n\\\\nfunction ProcessEmitWarning(warning) {\\\\n if (console && console.warn) console.warn(warning);\\\\n}\\\\n\\\\nvar NumberIsNaN = Number.isNaN || function NumberIsNaN(value) {\\\\n return value !== value;\\\\n}\\\\n\\\\nfunction EventEmitter() {\\\\n EventEmitter.init.call(this);\\\\n}\\\\nmodule.exports = EventEmitter;\\\\nmodule.exports.once = once;\\\\n\\\\n// Backwards-compat with node 0.10.x\\\\nEventEmitter.EventEmitter = EventEmitter;\\\\n\\\\nEventEmitter.prototype._events = undefined;\\\\nEventEmitter.prototype._eventsCount = 0;\\\\nEventEmitter.prototype._maxListeners = undefined;\\\\n\\\\n// By default EventEmitters will print a warning if more than 10 listeners are\\\\n// added to it. This is a useful default which helps finding memory leaks.\\\\nvar defaultMaxListeners = 10;\\\\n\\\\nfunction checkListener(listener) {\\\\n if (typeof listener !== 'function') {\\\\n throw new TypeError('The \\\\\\\"listener\\\\\\\" argument must be of type Function. Received type ' + typeof listener);\\\\n }\\\\n}\\\\n\\\\nObject.defineProperty(EventEmitter, 'defaultMaxListeners', {\\\\n enumerable: true,\\\\n get: function() {\\\\n return defaultMaxListeners;\\\\n },\\\\n set: function(arg) {\\\\n if (typeof arg !== 'number' || arg < 0 || NumberIsNaN(arg)) {\\\\n throw new RangeError('The value of \\\\\\\"defaultMaxListeners\\\\\\\" is out of range. It must be a non-negative number. Received ' + arg + '.');\\\\n }\\\\n defaultMaxListeners = arg;\\\\n }\\\\n});\\\\n\\\\nEventEmitter.init = function() {\\\\n\\\\n if (this._events === undefined ||\\\\n this._events === Object.getPrototypeOf(this)._events) {\\\\n this._events = Object.create(null);\\\\n this._eventsCount = 0;\\\\n }\\\\n\\\\n this._maxListeners = this._maxListeners || undefined;\\\\n};\\\\n\\\\n// Obviously not all Emitters should be limited to 10. This function allows\\\\n// that to be increased. Set to zero for unlimited.\\\\nEventEmitter.prototype.setMaxListeners = function setMaxListeners(n) {\\\\n if (typeof n !== 'number' || n < 0 || NumberIsNaN(n)) {\\\\n throw new RangeError('The value of \\\\\\\"n\\\\\\\" is out of range. It must be a non-negative number. Received ' + n + '.');\\\\n }\\\\n this._maxListeners = n;\\\\n return this;\\\\n};\\\\n\\\\nfunction _getMaxListeners(that) {\\\\n if (that._maxListeners === undefined)\\\\n return EventEmitter.defaultMaxListeners;\\\\n return that._maxListeners;\\\\n}\\\\n\\\\nEventEmitter.prototype.getMaxListeners = function getMaxListeners() {\\\\n return _getMaxListeners(this);\\\\n};\\\\n\\\\nEventEmitter.prototype.emit = function emit(type) {\\\\n var args = [];\\\\n for (var i = 1; i < arguments.length; i++) args.push(arguments[i]);\\\\n var doError = (type === 'error');\\\\n\\\\n var events = this._events;\\\\n if (events !== undefined)\\\\n doError = (doError && events.error === undefined);\\\\n else if (!doError)\\\\n return false;\\\\n\\\\n // If there is no 'error' event listener then throw.\\\\n if (doError) {\\\\n var er;\\\\n if (args.length > 0)\\\\n er = args[0];\\\\n if (er instanceof Error) {\\\\n // Note: The comments on the `throw` lines are intentional, they show\\\\n // up in Node's output if this results in an unhandled exception.\\\\n throw er; // Unhandled 'error' event\\\\n }\\\\n // At least give some kind of context to the user\\\\n var err = new Error('Unhandled error.' + (er ? ' (' + er.message + ')' : ''));\\\\n err.context = er;\\\\n throw err; // Unhandled 'error' event\\\\n }\\\\n\\\\n var handler = events[type];\\\\n\\\\n if (handler === undefined)\\\\n return false;\\\\n\\\\n if (typeof handler === 'function') {\\\\n ReflectApply(handler, this, args);\\\\n } else {\\\\n var len = handler.length;\\\\n var listeners = arrayClone(handler, len);\\\\n for (var i = 0; i < len; ++i)\\\\n ReflectApply(listeners[i], this, args);\\\\n }\\\\n\\\\n return true;\\\\n};\\\\n\\\\nfunction _addListener(target, type, listener, prepend) {\\\\n var m;\\\\n var events;\\\\n var existing;\\\\n\\\\n checkListener(listener);\\\\n\\\\n events = target._events;\\\\n if (events === undefined) {\\\\n events = target._events = Object.create(null);\\\\n target._eventsCount = 0;\\\\n } else {\\\\n // To avoid recursion in the case that type === \\\\\\\"newListener\\\\\\\"! Before\\\\n // adding it to the listeners, first emit \\\\\\\"newListener\\\\\\\".\\\\n if (events.newListener !== undefined) {\\\\n target.emit('newListener', type,\\\\n listener.listener ? listener.listener : listener);\\\\n\\\\n // Re-assign `events` because a newListener handler could have caused the\\\\n // this._events to be assigned to a new object\\\\n events = target._events;\\\\n }\\\\n existing = events[type];\\\\n }\\\\n\\\\n if (existing === undefined) {\\\\n // Optimize the case of one listener. Don't need the extra array object.\\\\n existing = events[type] = listener;\\\\n ++target._eventsCount;\\\\n } else {\\\\n if (typeof existing === 'function') {\\\\n // Adding the second element, need to change to array.\\\\n existing = events[type] =\\\\n prepend ? [listener, existing] : [existing, listener];\\\\n // If we've already got an array, just append.\\\\n } else if (prepend) {\\\\n existing.unshift(listener);\\\\n } else {\\\\n existing.push(listener);\\\\n }\\\\n\\\\n // Check for listener leak\\\\n m = _getMaxListeners(target);\\\\n if (m > 0 && existing.length > m && !existing.warned) {\\\\n existing.warned = true;\\\\n // No error code for this since it is a Warning\\\\n // eslint-disable-next-line no-restricted-syntax\\\\n var w = new Error('Possible EventEmitter memory leak detected. ' +\\\\n existing.length + ' ' + String(type) + ' listeners ' +\\\\n 'added. Use emitter.setMaxListeners() to ' +\\\\n 'increase limit');\\\\n w.name = 'MaxListenersExceededWarning';\\\\n w.emitter = target;\\\\n w.type = type;\\\\n w.count = existing.length;\\\\n ProcessEmitWarning(w);\\\\n }\\\\n }\\\\n\\\\n return target;\\\\n}\\\\n\\\\nEventEmitter.prototype.addListener = function addListener(type, listener) {\\\\n return _addListener(this, type, listener, false);\\\\n};\\\\n\\\\nEventEmitter.prototype.on = EventEmitter.prototype.addListener;\\\\n\\\\nEventEmitter.prototype.prependListener =\\\\n function prependListener(type, listener) {\\\\n return _addListener(this, type, listener, true);\\\\n };\\\\n\\\\nfunction onceWrapper() {\\\\n if (!this.fired) {\\\\n this.target.removeListener(this.type, this.wrapFn);\\\\n this.fired = true;\\\\n if (arguments.length === 0)\\\\n return this.listener.call(this.target);\\\\n return this.listener.apply(this.target, arguments);\\\\n }\\\\n}\\\\n\\\\nfunction _onceWrap(target, type, listener) {\\\\n var state = { fired: false, wrapFn: undefined, target: target, type: type, listener: listener };\\\\n var wrapped = onceWrapper.bind(state);\\\\n wrapped.listener = listener;\\\\n state.wrapFn = wrapped;\\\\n return wrapped;\\\\n}\\\\n\\\\nEventEmitter.prototype.once = function once(type, listener) {\\\\n checkListener(listener);\\\\n this.on(type, _onceWrap(this, type, listener));\\\\n return this;\\\\n};\\\\n\\\\nEventEmitter.prototype.prependOnceListener =\\\\n function prependOnceListener(type, listener) {\\\\n checkListener(listener);\\\\n this.prependListener(type, _onceWrap(this, type, listener));\\\\n return this;\\\\n };\\\\n\\\\n// Emits a 'removeListener' event if and only if the listener was removed.\\\\nEventEmitter.prototype.removeListener =\\\\n function removeListener(type, listener) {\\\\n var list, events, position, i, originalListener;\\\\n\\\\n checkListener(listener);\\\\n\\\\n events = this._events;\\\\n if (events === undefined)\\\\n return this;\\\\n\\\\n list = events[type];\\\\n if (list === undefined)\\\\n return this;\\\\n\\\\n if (list === listener || list.listener === listener) {\\\\n if (--this._eventsCount === 0)\\\\n this._events = Object.create(null);\\\\n else {\\\\n delete events[type];\\\\n if (events.removeListener)\\\\n this.emit('removeListener', type, list.listener || listener);\\\\n }\\\\n } else if (typeof list !== 'function') {\\\\n position = -1;\\\\n\\\\n for (i = list.length - 1; i >= 0; i--) {\\\\n if (list[i] === listener || list[i].listener === listener) {\\\\n originalListener = list[i].listener;\\\\n position = i;\\\\n break;\\\\n }\\\\n }\\\\n\\\\n if (position < 0)\\\\n return this;\\\\n\\\\n if (position === 0)\\\\n list.shift();\\\\n else {\\\\n spliceOne(list, position);\\\\n }\\\\n\\\\n if (list.length === 1)\\\\n events[type] = list[0];\\\\n\\\\n if (events.removeListener !== undefined)\\\\n this.emit('removeListener', type, originalListener || listener);\\\\n }\\\\n\\\\n return this;\\\\n };\\\\n\\\\nEventEmitter.prototype.off = EventEmitter.prototype.removeListener;\\\\n\\\\nEventEmitter.prototype.removeAllListeners =\\\\n function removeAllListeners(type) {\\\\n var listeners, events, i;\\\\n\\\\n events = this._events;\\\\n if (events === undefined)\\\\n return this;\\\\n\\\\n // not listening for removeListener, no need to emit\\\\n if (events.removeListener === undefined) {\\\\n if (arguments.length === 0) {\\\\n this._events = Object.create(null);\\\\n this._eventsCount = 0;\\\\n } else if (events[type] !== undefined) {\\\\n if (--this._eventsCount === 0)\\\\n this._events = Object.create(null);\\\\n else\\\\n delete events[type];\\\\n }\\\\n return this;\\\\n }\\\\n\\\\n // emit removeListener for all listeners on all events\\\\n if (arguments.length === 0) {\\\\n var keys = Object.keys(events);\\\\n var key;\\\\n for (i = 0; i < keys.length; ++i) {\\\\n key = keys[i];\\\\n if (key === 'removeListener') continue;\\\\n this.removeAllListeners(key);\\\\n }\\\\n this.removeAllListeners('removeListener');\\\\n this._events = Object.create(null);\\\\n this._eventsCount = 0;\\\\n return this;\\\\n }\\\\n\\\\n listeners = events[type];\\\\n\\\\n if (typeof listeners === 'function') {\\\\n this.removeListener(type, listeners);\\\\n } else if (listeners !== undefined) {\\\\n // LIFO order\\\\n for (i = listeners.length - 1; i >= 0; i--) {\\\\n this.removeListener(type, listeners[i]);\\\\n }\\\\n }\\\\n\\\\n return this;\\\\n };\\\\n\\\\nfunction _listeners(target, type, unwrap) {\\\\n var events = target._events;\\\\n\\\\n if (events === undefined)\\\\n return [];\\\\n\\\\n var evlistener = events[type];\\\\n if (evlistener === undefined)\\\\n return [];\\\\n\\\\n if (typeof evlistener === 'function')\\\\n return unwrap ? [evlistener.listener || evlistener] : [evlistener];\\\\n\\\\n return unwrap ?\\\\n unwrapListeners(evlistener) : arrayClone(evlistener, evlistener.length);\\\\n}\\\\n\\\\nEventEmitter.prototype.listeners = function listeners(type) {\\\\n return _listeners(this, type, true);\\\\n};\\\\n\\\\nEventEmitter.prototype.rawListeners = function rawListeners(type) {\\\\n return _listeners(this, type, false);\\\\n};\\\\n\\\\nEventEmitter.listenerCount = function(emitter, type) {\\\\n if (typeof emitter.listenerCount === 'function') {\\\\n return emitter.listenerCount(type);\\\\n } else {\\\\n return listenerCount.call(emitter, type);\\\\n }\\\\n};\\\\n\\\\nEventEmitter.prototype.listenerCount = listenerCount;\\\\nfunction listenerCount(type) {\\\\n var events = this._events;\\\\n\\\\n if (events !== undefined) {\\\\n var evlistener = events[type];\\\\n\\\\n if (typeof evlistener === 'function') {\\\\n return 1;\\\\n } else if (evlistener !== undefined) {\\\\n return evlistener.length;\\\\n }\\\\n }\\\\n\\\\n return 0;\\\\n}\\\\n\\\\nEventEmitter.prototype.eventNames = function eventNames() {\\\\n return this._eventsCount > 0 ? ReflectOwnKeys(this._events) : [];\\\\n};\\\\n\\\\nfunction arrayClone(arr, n) {\\\\n var copy = new Array(n);\\\\n for (var i = 0; i < n; ++i)\\\\n copy[i] = arr[i];\\\\n return copy;\\\\n}\\\\n\\\\nfunction spliceOne(list, index) {\\\\n for (; index + 1 < list.length; index++)\\\\n list[index] = list[index + 1];\\\\n list.pop();\\\\n}\\\\n\\\\nfunction unwrapListeners(arr) {\\\\n var ret = new Array(arr.length);\\\\n for (var i = 0; i < ret.length; ++i) {\\\\n ret[i] = arr[i].listener || arr[i];\\\\n }\\\\n return ret;\\\\n}\\\\n\\\\nfunction once(emitter, name) {\\\\n return new Promise(function (resolve, reject) {\\\\n function errorListener(err) {\\\\n emitter.removeListener(name, resolver);\\\\n reject(err);\\\\n }\\\\n\\\\n function resolver() {\\\\n if (typeof emitter.removeListener === 'function') {\\\\n emitter.removeListener('error', errorListener);\\\\n }\\\\n resolve([].slice.call(arguments));\\\\n };\\\\n\\\\n eventTargetAgnosticAddListener(emitter, name, resolver, { once: true });\\\\n if (name !== 'error') {\\\\n addErrorHandlerIfEventEmitter(emitter, errorListener, { once: true });\\\\n }\\\\n });\\\\n}\\\\n\\\\nfunction addErrorHandlerIfEventEmitter(emitter, handler, flags) {\\\\n if (typeof emitter.on === 'function') {\\\\n eventTargetAgnosticAddListener(emitter, 'error', handler, flags);\\\\n }\\\\n}\\\\n\\\\nfunction eventTargetAgnosticAddListener(emitter, name, listener, flags) {\\\\n if (typeof emitter.on === 'function') {\\\\n if (flags.once) {\\\\n emitter.once(name, listener);\\\\n } else {\\\\n emitter.on(name, listener);\\\\n }\\\\n } else if (typeof emitter.addEventListener === 'function') {\\\\n // EventTarget does not have `error` event semantics like Node\\\\n // EventEmitters, we do not listen for `error` events here.\\\\n emitter.addEventListener(name, function wrapListener(arg) {\\\\n // IE does not have builtin `{ once: true }` support so we\\\\n // have to do it manually.\\\\n if (flags.once) {\\\\n emitter.removeEventListener(name, wrapListener);\\\\n }\\\\n listener(arg);\\\\n });\\\\n } else {\\\\n throw new TypeError('The \\\\\\\"emitter\\\\\\\" argument must be of type EventEmitter. Received type ' + typeof emitter);\\\\n }\\\\n}\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/node-libs-browser/node_modules/events/events.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/node-libs-browser/node_modules/timers-browserify/main.js\\\":\\n/*!*******************************************************************************!*\\\\\\n !*** ./node_modules/node-libs-browser/node_modules/timers-browserify/main.js ***!\\n \\\\*******************************************************************************/\\n/*! no static exports found */\\n/***/ (function(module, exports, __webpack_require__) {\\n\\neval(\\\"/* WEBPACK VAR INJECTION */(function(global) {var scope = (typeof global !== \\\\\\\"undefined\\\\\\\" && global) ||\\\\n (typeof self !== \\\\\\\"undefined\\\\\\\" && self) ||\\\\n window;\\\\nvar apply = Function.prototype.apply;\\\\n\\\\n// DOM APIs, for completeness\\\\n\\\\nexports.setTimeout = function() {\\\\n return new Timeout(apply.call(setTimeout, scope, arguments), clearTimeout);\\\\n};\\\\nexports.setInterval = function() {\\\\n return new Timeout(apply.call(setInterval, scope, arguments), clearInterval);\\\\n};\\\\nexports.clearTimeout =\\\\nexports.clearInterval = function(timeout) {\\\\n if (timeout) {\\\\n timeout.close();\\\\n }\\\\n};\\\\n\\\\nfunction Timeout(id, clearFn) {\\\\n this._id = id;\\\\n this._clearFn = clearFn;\\\\n}\\\\nTimeout.prototype.unref = Timeout.prototype.ref = function() {};\\\\nTimeout.prototype.close = function() {\\\\n this._clearFn.call(scope, this._id);\\\\n};\\\\n\\\\n// Does not start the time, just sets up the members needed.\\\\nexports.enroll = function(item, msecs) {\\\\n clearTimeout(item._idleTimeoutId);\\\\n item._idleTimeout = msecs;\\\\n};\\\\n\\\\nexports.unenroll = function(item) {\\\\n clearTimeout(item._idleTimeoutId);\\\\n item._idleTimeout = -1;\\\\n};\\\\n\\\\nexports._unrefActive = exports.active = function(item) {\\\\n clearTimeout(item._idleTimeoutId);\\\\n\\\\n var msecs = item._idleTimeout;\\\\n if (msecs >= 0) {\\\\n item._idleTimeoutId = setTimeout(function onTimeout() {\\\\n if (item._onTimeout)\\\\n item._onTimeout();\\\\n }, msecs);\\\\n }\\\\n};\\\\n\\\\n// setimmediate attaches itself to the global object\\\\n__webpack_require__(/*! setimmediate */ \\\\\\\"./node_modules/setimmediate/setImmediate.js\\\\\\\");\\\\n// On some exotic environments, it's not clear which object `setimmediate` was\\\\n// able to install onto. Search each possibility in the same order as the\\\\n// `setimmediate` library.\\\\nexports.setImmediate = (typeof self !== \\\\\\\"undefined\\\\\\\" && self.setImmediate) ||\\\\n (typeof global !== \\\\\\\"undefined\\\\\\\" && global.setImmediate) ||\\\\n (this && this.setImmediate);\\\\nexports.clearImmediate = (typeof self !== \\\\\\\"undefined\\\\\\\" && self.clearImmediate) ||\\\\n (typeof global !== \\\\\\\"undefined\\\\\\\" && global.clearImmediate) ||\\\\n (this && this.clearImmediate);\\\\n\\\\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../webpack/buildin/global.js */ \\\\\\\"./node_modules/webpack/buildin/global.js\\\\\\\")))\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/node-libs-browser/node_modules/timers-browserify/main.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/observable-fns/dist.esm/_scheduler.js\\\":\\n/*!************************************************************!*\\\\\\n !*** ./node_modules/observable-fns/dist.esm/_scheduler.js ***!\\n \\\\************************************************************/\\n/*! exports provided: AsyncSerialScheduler */\\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\\n\\n\\\"use strict\\\";\\neval(\\\"__webpack_require__.r(__webpack_exports__);\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"AsyncSerialScheduler\\\\\\\", function() { return AsyncSerialScheduler; });\\\\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\\\\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\\\\n return new (P || (P = Promise))(function (resolve, reject) {\\\\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\\\\n function rejected(value) { try { step(generator[\\\\\\\"throw\\\\\\\"](value)); } catch (e) { reject(e); } }\\\\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\\\\n step((generator = generator.apply(thisArg, _arguments || [])).next());\\\\n });\\\\n};\\\\nclass AsyncSerialScheduler {\\\\n constructor(observer) {\\\\n this._baseObserver = observer;\\\\n this._pendingPromises = new Set();\\\\n }\\\\n complete() {\\\\n Promise.all(this._pendingPromises)\\\\n .then(() => this._baseObserver.complete())\\\\n .catch(error => this._baseObserver.error(error));\\\\n }\\\\n error(error) {\\\\n this._baseObserver.error(error);\\\\n }\\\\n schedule(task) {\\\\n const prevPromisesCompletion = Promise.all(this._pendingPromises);\\\\n const values = [];\\\\n const next = (value) => values.push(value);\\\\n const promise = Promise.resolve()\\\\n .then(() => __awaiter(this, void 0, void 0, function* () {\\\\n yield prevPromisesCompletion;\\\\n yield task(next);\\\\n this._pendingPromises.delete(promise);\\\\n for (const value of values) {\\\\n this._baseObserver.next(value);\\\\n }\\\\n }))\\\\n .catch(error => {\\\\n this._pendingPromises.delete(promise);\\\\n this._baseObserver.error(error);\\\\n });\\\\n this._pendingPromises.add(promise);\\\\n }\\\\n}\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/observable-fns/dist.esm/_scheduler.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/observable-fns/dist.esm/_symbols.js\\\":\\n/*!**********************************************************!*\\\\\\n !*** ./node_modules/observable-fns/dist.esm/_symbols.js ***!\\n \\\\**********************************************************/\\n/*! exports provided: hasSymbols, hasSymbol, getSymbol, registerObservableSymbol */\\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\\n\\n\\\"use strict\\\";\\neval(\\\"__webpack_require__.r(__webpack_exports__);\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"hasSymbols\\\\\\\", function() { return hasSymbols; });\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"hasSymbol\\\\\\\", function() { return hasSymbol; });\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"getSymbol\\\\\\\", function() { return getSymbol; });\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"registerObservableSymbol\\\\\\\", function() { return registerObservableSymbol; });\\\\nconst hasSymbols = () => typeof Symbol === \\\\\\\"function\\\\\\\";\\\\nconst hasSymbol = (name) => hasSymbols() && Boolean(Symbol[name]);\\\\nconst getSymbol = (name) => hasSymbol(name) ? Symbol[name] : \\\\\\\"@@\\\\\\\" + name;\\\\nfunction registerObservableSymbol() {\\\\n if (hasSymbols() && !hasSymbol(\\\\\\\"observable\\\\\\\")) {\\\\n Symbol.observable = Symbol(\\\\\\\"observable\\\\\\\");\\\\n }\\\\n}\\\\nif (!hasSymbol(\\\\\\\"asyncIterator\\\\\\\")) {\\\\n Symbol.asyncIterator = Symbol.asyncIterator || Symbol.for(\\\\\\\"Symbol.asyncIterator\\\\\\\");\\\\n}\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/observable-fns/dist.esm/_symbols.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/observable-fns/dist.esm/_util.js\\\":\\n/*!*******************************************************!*\\\\\\n !*** ./node_modules/observable-fns/dist.esm/_util.js ***!\\n \\\\*******************************************************/\\n/*! exports provided: isAsyncIterator, isIterator */\\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\\n\\n\\\"use strict\\\";\\neval(\\\"__webpack_require__.r(__webpack_exports__);\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"isAsyncIterator\\\\\\\", function() { return isAsyncIterator; });\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"isIterator\\\\\\\", function() { return isIterator; });\\\\n/* harmony import */ var _symbols__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./_symbols */ \\\\\\\"./node_modules/observable-fns/dist.esm/_symbols.js\\\\\\\");\\\\n/// <reference lib=\\\\\\\"es2018\\\\\\\" />\\\\n\\\\nfunction isAsyncIterator(thing) {\\\\n return thing && Object(_symbols__WEBPACK_IMPORTED_MODULE_0__[\\\\\\\"hasSymbol\\\\\\\"])(\\\\\\\"asyncIterator\\\\\\\") && thing[Symbol.asyncIterator];\\\\n}\\\\nfunction isIterator(thing) {\\\\n return thing && Object(_symbols__WEBPACK_IMPORTED_MODULE_0__[\\\\\\\"hasSymbol\\\\\\\"])(\\\\\\\"iterator\\\\\\\") && thing[Symbol.iterator];\\\\n}\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/observable-fns/dist.esm/_util.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/observable-fns/dist.esm/filter.js\\\":\\n/*!********************************************************!*\\\\\\n !*** ./node_modules/observable-fns/dist.esm/filter.js ***!\\n \\\\********************************************************/\\n/*! exports provided: default */\\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\\n\\n\\\"use strict\\\";\\neval(\\\"__webpack_require__.r(__webpack_exports__);\\\\n/* harmony import */ var _scheduler__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./_scheduler */ \\\\\\\"./node_modules/observable-fns/dist.esm/_scheduler.js\\\\\\\");\\\\n/* harmony import */ var _observable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./observable */ \\\\\\\"./node_modules/observable-fns/dist.esm/observable.js\\\\\\\");\\\\n/* harmony import */ var _unsubscribe__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./unsubscribe */ \\\\\\\"./node_modules/observable-fns/dist.esm/unsubscribe.js\\\\\\\");\\\\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\\\\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\\\\n return new (P || (P = Promise))(function (resolve, reject) {\\\\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\\\\n function rejected(value) { try { step(generator[\\\\\\\"throw\\\\\\\"](value)); } catch (e) { reject(e); } }\\\\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\\\\n step((generator = generator.apply(thisArg, _arguments || [])).next());\\\\n });\\\\n};\\\\n\\\\n\\\\n\\\\n/**\\\\n * Filters the values emitted by another observable.\\\\n * To be applied to an input observable using `pipe()`.\\\\n */\\\\nfunction filter(test) {\\\\n return (observable) => {\\\\n return new _observable__WEBPACK_IMPORTED_MODULE_1__[\\\\\\\"default\\\\\\\"](observer => {\\\\n const scheduler = new _scheduler__WEBPACK_IMPORTED_MODULE_0__[\\\\\\\"AsyncSerialScheduler\\\\\\\"](observer);\\\\n const subscription = observable.subscribe({\\\\n complete() {\\\\n scheduler.complete();\\\\n },\\\\n error(error) {\\\\n scheduler.error(error);\\\\n },\\\\n next(input) {\\\\n scheduler.schedule((next) => __awaiter(this, void 0, void 0, function* () {\\\\n if (yield test(input)) {\\\\n next(input);\\\\n }\\\\n }));\\\\n }\\\\n });\\\\n return () => Object(_unsubscribe__WEBPACK_IMPORTED_MODULE_2__[\\\\\\\"default\\\\\\\"])(subscription);\\\\n });\\\\n };\\\\n}\\\\n/* harmony default export */ __webpack_exports__[\\\\\\\"default\\\\\\\"] = (filter);\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/observable-fns/dist.esm/filter.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/observable-fns/dist.esm/flatMap.js\\\":\\n/*!*********************************************************!*\\\\\\n !*** ./node_modules/observable-fns/dist.esm/flatMap.js ***!\\n \\\\*********************************************************/\\n/*! exports provided: default */\\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\\n\\n\\\"use strict\\\";\\neval(\\\"__webpack_require__.r(__webpack_exports__);\\\\n/* harmony import */ var _scheduler__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./_scheduler */ \\\\\\\"./node_modules/observable-fns/dist.esm/_scheduler.js\\\\\\\");\\\\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./_util */ \\\\\\\"./node_modules/observable-fns/dist.esm/_util.js\\\\\\\");\\\\n/* harmony import */ var _observable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./observable */ \\\\\\\"./node_modules/observable-fns/dist.esm/observable.js\\\\\\\");\\\\n/* harmony import */ var _unsubscribe__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./unsubscribe */ \\\\\\\"./node_modules/observable-fns/dist.esm/unsubscribe.js\\\\\\\");\\\\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\\\\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\\\\n return new (P || (P = Promise))(function (resolve, reject) {\\\\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\\\\n function rejected(value) { try { step(generator[\\\\\\\"throw\\\\\\\"](value)); } catch (e) { reject(e); } }\\\\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\\\\n step((generator = generator.apply(thisArg, _arguments || [])).next());\\\\n });\\\\n};\\\\nvar __asyncValues = (undefined && undefined.__asyncValues) || function (o) {\\\\n if (!Symbol.asyncIterator) throw new TypeError(\\\\\\\"Symbol.asyncIterator is not defined.\\\\\\\");\\\\n var m = o[Symbol.asyncIterator], i;\\\\n return m ? m.call(o) : (o = typeof __values === \\\\\\\"function\\\\\\\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\\\\\\\"next\\\\\\\"), verb(\\\\\\\"throw\\\\\\\"), verb(\\\\\\\"return\\\\\\\"), i[Symbol.asyncIterator] = function () { return this; }, i);\\\\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\\\\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\\\\n};\\\\n\\\\n\\\\n\\\\n\\\\n/**\\\\n * Maps the values emitted by another observable. In contrast to `map()`\\\\n * the `mapper` function returns an array of values that will be emitted\\\\n * separately.\\\\n * Use `flatMap()` to map input values to zero, one or multiple output\\\\n * values. To be applied to an input observable using `pipe()`.\\\\n */\\\\nfunction flatMap(mapper) {\\\\n return (observable) => {\\\\n return new _observable__WEBPACK_IMPORTED_MODULE_2__[\\\\\\\"default\\\\\\\"](observer => {\\\\n const scheduler = new _scheduler__WEBPACK_IMPORTED_MODULE_0__[\\\\\\\"AsyncSerialScheduler\\\\\\\"](observer);\\\\n const subscription = observable.subscribe({\\\\n complete() {\\\\n scheduler.complete();\\\\n },\\\\n error(error) {\\\\n scheduler.error(error);\\\\n },\\\\n next(input) {\\\\n scheduler.schedule((next) => __awaiter(this, void 0, void 0, function* () {\\\\n var e_1, _a;\\\\n const mapped = yield mapper(input);\\\\n if (Object(_util__WEBPACK_IMPORTED_MODULE_1__[\\\\\\\"isIterator\\\\\\\"])(mapped) || Object(_util__WEBPACK_IMPORTED_MODULE_1__[\\\\\\\"isAsyncIterator\\\\\\\"])(mapped)) {\\\\n try {\\\\n for (var mapped_1 = __asyncValues(mapped), mapped_1_1; mapped_1_1 = yield mapped_1.next(), !mapped_1_1.done;) {\\\\n const element = mapped_1_1.value;\\\\n next(element);\\\\n }\\\\n }\\\\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\\\\n finally {\\\\n try {\\\\n if (mapped_1_1 && !mapped_1_1.done && (_a = mapped_1.return)) yield _a.call(mapped_1);\\\\n }\\\\n finally { if (e_1) throw e_1.error; }\\\\n }\\\\n }\\\\n else {\\\\n mapped.map(output => next(output));\\\\n }\\\\n }));\\\\n }\\\\n });\\\\n return () => Object(_unsubscribe__WEBPACK_IMPORTED_MODULE_3__[\\\\\\\"default\\\\\\\"])(subscription);\\\\n });\\\\n };\\\\n}\\\\n/* harmony default export */ __webpack_exports__[\\\\\\\"default\\\\\\\"] = (flatMap);\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/observable-fns/dist.esm/flatMap.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/observable-fns/dist.esm/index.js\\\":\\n/*!*******************************************************!*\\\\\\n !*** ./node_modules/observable-fns/dist.esm/index.js ***!\\n \\\\*******************************************************/\\n/*! exports provided: filter, flatMap, interval, map, merge, multicast, Observable, scan, Subject, unsubscribe */\\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\\n\\n\\\"use strict\\\";\\neval(\\\"__webpack_require__.r(__webpack_exports__);\\\\n/* harmony import */ var _filter__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./filter */ \\\\\\\"./node_modules/observable-fns/dist.esm/filter.js\\\\\\\");\\\\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"filter\\\\\\\", function() { return _filter__WEBPACK_IMPORTED_MODULE_0__[\\\\\\\"default\\\\\\\"]; });\\\\n\\\\n/* harmony import */ var _flatMap__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./flatMap */ \\\\\\\"./node_modules/observable-fns/dist.esm/flatMap.js\\\\\\\");\\\\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"flatMap\\\\\\\", function() { return _flatMap__WEBPACK_IMPORTED_MODULE_1__[\\\\\\\"default\\\\\\\"]; });\\\\n\\\\n/* harmony import */ var _interval__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./interval */ \\\\\\\"./node_modules/observable-fns/dist.esm/interval.js\\\\\\\");\\\\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"interval\\\\\\\", function() { return _interval__WEBPACK_IMPORTED_MODULE_2__[\\\\\\\"default\\\\\\\"]; });\\\\n\\\\n/* harmony import */ var _map__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./map */ \\\\\\\"./node_modules/observable-fns/dist.esm/map.js\\\\\\\");\\\\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"map\\\\\\\", function() { return _map__WEBPACK_IMPORTED_MODULE_3__[\\\\\\\"default\\\\\\\"]; });\\\\n\\\\n/* harmony import */ var _merge__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./merge */ \\\\\\\"./node_modules/observable-fns/dist.esm/merge.js\\\\\\\");\\\\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"merge\\\\\\\", function() { return _merge__WEBPACK_IMPORTED_MODULE_4__[\\\\\\\"default\\\\\\\"]; });\\\\n\\\\n/* harmony import */ var _multicast__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./multicast */ \\\\\\\"./node_modules/observable-fns/dist.esm/multicast.js\\\\\\\");\\\\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"multicast\\\\\\\", function() { return _multicast__WEBPACK_IMPORTED_MODULE_5__[\\\\\\\"default\\\\\\\"]; });\\\\n\\\\n/* harmony import */ var _observable__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./observable */ \\\\\\\"./node_modules/observable-fns/dist.esm/observable.js\\\\\\\");\\\\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"Observable\\\\\\\", function() { return _observable__WEBPACK_IMPORTED_MODULE_6__[\\\\\\\"default\\\\\\\"]; });\\\\n\\\\n/* harmony import */ var _scan__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./scan */ \\\\\\\"./node_modules/observable-fns/dist.esm/scan.js\\\\\\\");\\\\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"scan\\\\\\\", function() { return _scan__WEBPACK_IMPORTED_MODULE_7__[\\\\\\\"default\\\\\\\"]; });\\\\n\\\\n/* harmony import */ var _subject__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./subject */ \\\\\\\"./node_modules/observable-fns/dist.esm/subject.js\\\\\\\");\\\\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"Subject\\\\\\\", function() { return _subject__WEBPACK_IMPORTED_MODULE_8__[\\\\\\\"default\\\\\\\"]; });\\\\n\\\\n/* harmony import */ var _unsubscribe__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./unsubscribe */ \\\\\\\"./node_modules/observable-fns/dist.esm/unsubscribe.js\\\\\\\");\\\\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"unsubscribe\\\\\\\", function() { return _unsubscribe__WEBPACK_IMPORTED_MODULE_9__[\\\\\\\"default\\\\\\\"]; });\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/observable-fns/dist.esm/index.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/observable-fns/dist.esm/interval.js\\\":\\n/*!**********************************************************!*\\\\\\n !*** ./node_modules/observable-fns/dist.esm/interval.js ***!\\n \\\\**********************************************************/\\n/*! exports provided: default */\\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\\n\\n\\\"use strict\\\";\\neval(\\\"__webpack_require__.r(__webpack_exports__);\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"default\\\\\\\", function() { return interval; });\\\\n/* harmony import */ var _observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./observable */ \\\\\\\"./node_modules/observable-fns/dist.esm/observable.js\\\\\\\");\\\\n\\\\n/**\\\\n * Creates an observable that yields a new value every `period` milliseconds.\\\\n * The first value emitted is 0, then 1, 2, etc. The first value is not emitted\\\\n * immediately, but after the first interval.\\\\n */\\\\nfunction interval(period) {\\\\n return new _observable__WEBPACK_IMPORTED_MODULE_0__[\\\\\\\"Observable\\\\\\\"](observer => {\\\\n let counter = 0;\\\\n const handle = setInterval(() => {\\\\n observer.next(counter++);\\\\n }, period);\\\\n return () => clearInterval(handle);\\\\n });\\\\n}\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/observable-fns/dist.esm/interval.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/observable-fns/dist.esm/map.js\\\":\\n/*!*****************************************************!*\\\\\\n !*** ./node_modules/observable-fns/dist.esm/map.js ***!\\n \\\\*****************************************************/\\n/*! exports provided: default */\\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\\n\\n\\\"use strict\\\";\\neval(\\\"__webpack_require__.r(__webpack_exports__);\\\\n/* harmony import */ var _scheduler__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./_scheduler */ \\\\\\\"./node_modules/observable-fns/dist.esm/_scheduler.js\\\\\\\");\\\\n/* harmony import */ var _observable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./observable */ \\\\\\\"./node_modules/observable-fns/dist.esm/observable.js\\\\\\\");\\\\n/* harmony import */ var _unsubscribe__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./unsubscribe */ \\\\\\\"./node_modules/observable-fns/dist.esm/unsubscribe.js\\\\\\\");\\\\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\\\\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\\\\n return new (P || (P = Promise))(function (resolve, reject) {\\\\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\\\\n function rejected(value) { try { step(generator[\\\\\\\"throw\\\\\\\"](value)); } catch (e) { reject(e); } }\\\\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\\\\n step((generator = generator.apply(thisArg, _arguments || [])).next());\\\\n });\\\\n};\\\\n\\\\n\\\\n\\\\n/**\\\\n * Maps the values emitted by another observable to different values.\\\\n * To be applied to an input observable using `pipe()`.\\\\n */\\\\nfunction map(mapper) {\\\\n return (observable) => {\\\\n return new _observable__WEBPACK_IMPORTED_MODULE_1__[\\\\\\\"default\\\\\\\"](observer => {\\\\n const scheduler = new _scheduler__WEBPACK_IMPORTED_MODULE_0__[\\\\\\\"AsyncSerialScheduler\\\\\\\"](observer);\\\\n const subscription = observable.subscribe({\\\\n complete() {\\\\n scheduler.complete();\\\\n },\\\\n error(error) {\\\\n scheduler.error(error);\\\\n },\\\\n next(input) {\\\\n scheduler.schedule((next) => __awaiter(this, void 0, void 0, function* () {\\\\n const mapped = yield mapper(input);\\\\n next(mapped);\\\\n }));\\\\n }\\\\n });\\\\n return () => Object(_unsubscribe__WEBPACK_IMPORTED_MODULE_2__[\\\\\\\"default\\\\\\\"])(subscription);\\\\n });\\\\n };\\\\n}\\\\n/* harmony default export */ __webpack_exports__[\\\\\\\"default\\\\\\\"] = (map);\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/observable-fns/dist.esm/map.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/observable-fns/dist.esm/merge.js\\\":\\n/*!*******************************************************!*\\\\\\n !*** ./node_modules/observable-fns/dist.esm/merge.js ***!\\n \\\\*******************************************************/\\n/*! exports provided: default */\\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\\n\\n\\\"use strict\\\";\\neval(\\\"__webpack_require__.r(__webpack_exports__);\\\\n/* harmony import */ var _observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./observable */ \\\\\\\"./node_modules/observable-fns/dist.esm/observable.js\\\\\\\");\\\\n/* harmony import */ var _unsubscribe__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./unsubscribe */ \\\\\\\"./node_modules/observable-fns/dist.esm/unsubscribe.js\\\\\\\");\\\\n\\\\n\\\\nfunction merge(...observables) {\\\\n if (observables.length === 0) {\\\\n return _observable__WEBPACK_IMPORTED_MODULE_0__[\\\\\\\"Observable\\\\\\\"].from([]);\\\\n }\\\\n return new _observable__WEBPACK_IMPORTED_MODULE_0__[\\\\\\\"Observable\\\\\\\"](observer => {\\\\n let completed = 0;\\\\n const subscriptions = observables.map(input => {\\\\n return input.subscribe({\\\\n error(error) {\\\\n observer.error(error);\\\\n unsubscribeAll();\\\\n },\\\\n next(value) {\\\\n observer.next(value);\\\\n },\\\\n complete() {\\\\n if (++completed === observables.length) {\\\\n observer.complete();\\\\n unsubscribeAll();\\\\n }\\\\n }\\\\n });\\\\n });\\\\n const unsubscribeAll = () => {\\\\n subscriptions.forEach(subscription => Object(_unsubscribe__WEBPACK_IMPORTED_MODULE_1__[\\\\\\\"default\\\\\\\"])(subscription));\\\\n };\\\\n return unsubscribeAll;\\\\n });\\\\n}\\\\n/* harmony default export */ __webpack_exports__[\\\\\\\"default\\\\\\\"] = (merge);\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/observable-fns/dist.esm/merge.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/observable-fns/dist.esm/multicast.js\\\":\\n/*!***********************************************************!*\\\\\\n !*** ./node_modules/observable-fns/dist.esm/multicast.js ***!\\n \\\\***********************************************************/\\n/*! exports provided: default */\\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\\n\\n\\\"use strict\\\";\\neval(\\\"__webpack_require__.r(__webpack_exports__);\\\\n/* harmony import */ var _observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./observable */ \\\\\\\"./node_modules/observable-fns/dist.esm/observable.js\\\\\\\");\\\\n/* harmony import */ var _subject__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./subject */ \\\\\\\"./node_modules/observable-fns/dist.esm/subject.js\\\\\\\");\\\\n/* harmony import */ var _unsubscribe__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./unsubscribe */ \\\\\\\"./node_modules/observable-fns/dist.esm/unsubscribe.js\\\\\\\");\\\\n\\\\n\\\\n\\\\n// TODO: Subject already creates additional observables \\\\\\\"under the hood\\\\\\\",\\\\n// now we introduce even more. A true native MulticastObservable\\\\n// would be preferable.\\\\n/**\\\\n * Takes a \\\\\\\"cold\\\\\\\" observable and returns a wrapping \\\\\\\"hot\\\\\\\" observable that\\\\n * proxies the input observable's values and errors.\\\\n *\\\\n * An observable is called \\\\\\\"cold\\\\\\\" when its initialization function is run\\\\n * for each new subscriber. This is how observable-fns's `Observable`\\\\n * implementation works.\\\\n *\\\\n * A hot observable is an observable where new subscribers subscribe to\\\\n * the upcoming values of an already-initialiazed observable.\\\\n *\\\\n * The multicast observable will lazily subscribe to the source observable\\\\n * once it has its first own subscriber and will unsubscribe from the\\\\n * source observable when its last own subscriber unsubscribed.\\\\n */\\\\nfunction multicast(coldObservable) {\\\\n const subject = new _subject__WEBPACK_IMPORTED_MODULE_1__[\\\\\\\"default\\\\\\\"]();\\\\n let sourceSubscription;\\\\n let subscriberCount = 0;\\\\n return new _observable__WEBPACK_IMPORTED_MODULE_0__[\\\\\\\"default\\\\\\\"](observer => {\\\\n // Init source subscription lazily\\\\n if (!sourceSubscription) {\\\\n sourceSubscription = coldObservable.subscribe(subject);\\\\n }\\\\n // Pipe all events from `subject` into this observable\\\\n const subscription = subject.subscribe(observer);\\\\n subscriberCount++;\\\\n return () => {\\\\n subscriberCount--;\\\\n subscription.unsubscribe();\\\\n // Close source subscription once last subscriber has unsubscribed\\\\n if (subscriberCount === 0) {\\\\n Object(_unsubscribe__WEBPACK_IMPORTED_MODULE_2__[\\\\\\\"default\\\\\\\"])(sourceSubscription);\\\\n sourceSubscription = undefined;\\\\n }\\\\n };\\\\n });\\\\n}\\\\n/* harmony default export */ __webpack_exports__[\\\\\\\"default\\\\\\\"] = (multicast);\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/observable-fns/dist.esm/multicast.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/observable-fns/dist.esm/observable.js\\\":\\n/*!************************************************************!*\\\\\\n !*** ./node_modules/observable-fns/dist.esm/observable.js ***!\\n \\\\************************************************************/\\n/*! exports provided: Subscription, SubscriptionObserver, Observable, default */\\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\\n\\n\\\"use strict\\\";\\neval(\\\"__webpack_require__.r(__webpack_exports__);\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"Subscription\\\\\\\", function() { return Subscription; });\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"SubscriptionObserver\\\\\\\", function() { return SubscriptionObserver; });\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"Observable\\\\\\\", function() { return Observable; });\\\\n/* harmony import */ var _symbols__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./symbols */ \\\\\\\"./node_modules/observable-fns/dist.esm/symbols.js\\\\\\\");\\\\n/* harmony import */ var _symbols__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./_symbols */ \\\\\\\"./node_modules/observable-fns/dist.esm/_symbols.js\\\\\\\");\\\\n/**\\\\n * Based on <https://raw.githubusercontent.com/zenparsing/zen-observable/master/src/Observable.js>\\\\n * At commit: f63849a8c60af5d514efc8e9d6138d8273c49ad6\\\\n */\\\\n\\\\n\\\\nconst SymbolIterator = Object(_symbols__WEBPACK_IMPORTED_MODULE_1__[\\\\\\\"getSymbol\\\\\\\"])(\\\\\\\"iterator\\\\\\\");\\\\nconst SymbolObservable = Object(_symbols__WEBPACK_IMPORTED_MODULE_1__[\\\\\\\"getSymbol\\\\\\\"])(\\\\\\\"observable\\\\\\\");\\\\nconst SymbolSpecies = Object(_symbols__WEBPACK_IMPORTED_MODULE_1__[\\\\\\\"getSymbol\\\\\\\"])(\\\\\\\"species\\\\\\\");\\\\n// === Abstract Operations ===\\\\nfunction getMethod(obj, key) {\\\\n const value = obj[key];\\\\n if (value == null) {\\\\n return undefined;\\\\n }\\\\n if (typeof value !== \\\\\\\"function\\\\\\\") {\\\\n throw new TypeError(value + \\\\\\\" is not a function\\\\\\\");\\\\n }\\\\n return value;\\\\n}\\\\nfunction getSpecies(obj) {\\\\n let ctor = obj.constructor;\\\\n if (ctor !== undefined) {\\\\n ctor = ctor[SymbolSpecies];\\\\n if (ctor === null) {\\\\n ctor = undefined;\\\\n }\\\\n }\\\\n return ctor !== undefined ? ctor : Observable;\\\\n}\\\\nfunction isObservable(x) {\\\\n return x instanceof Observable; // SPEC: Brand check\\\\n}\\\\nfunction hostReportError(error) {\\\\n if (hostReportError.log) {\\\\n hostReportError.log(error);\\\\n }\\\\n else {\\\\n setTimeout(() => { throw error; }, 0);\\\\n }\\\\n}\\\\nfunction enqueue(fn) {\\\\n Promise.resolve().then(() => {\\\\n try {\\\\n fn();\\\\n }\\\\n catch (e) {\\\\n hostReportError(e);\\\\n }\\\\n });\\\\n}\\\\nfunction cleanupSubscription(subscription) {\\\\n const cleanup = subscription._cleanup;\\\\n if (cleanup === undefined) {\\\\n return;\\\\n }\\\\n subscription._cleanup = undefined;\\\\n if (!cleanup) {\\\\n return;\\\\n }\\\\n try {\\\\n if (typeof cleanup === \\\\\\\"function\\\\\\\") {\\\\n cleanup();\\\\n }\\\\n else {\\\\n const unsubscribe = getMethod(cleanup, \\\\\\\"unsubscribe\\\\\\\");\\\\n if (unsubscribe) {\\\\n unsubscribe.call(cleanup);\\\\n }\\\\n }\\\\n }\\\\n catch (e) {\\\\n hostReportError(e);\\\\n }\\\\n}\\\\nfunction closeSubscription(subscription) {\\\\n subscription._observer = undefined;\\\\n subscription._queue = undefined;\\\\n subscription._state = \\\\\\\"closed\\\\\\\";\\\\n}\\\\nfunction flushSubscription(subscription) {\\\\n const queue = subscription._queue;\\\\n if (!queue) {\\\\n return;\\\\n }\\\\n subscription._queue = undefined;\\\\n subscription._state = \\\\\\\"ready\\\\\\\";\\\\n for (const item of queue) {\\\\n notifySubscription(subscription, item.type, item.value);\\\\n if (subscription._state === \\\\\\\"closed\\\\\\\") {\\\\n break;\\\\n }\\\\n }\\\\n}\\\\nfunction notifySubscription(subscription, type, value) {\\\\n subscription._state = \\\\\\\"running\\\\\\\";\\\\n const observer = subscription._observer;\\\\n try {\\\\n const m = observer ? getMethod(observer, type) : undefined;\\\\n switch (type) {\\\\n case \\\\\\\"next\\\\\\\":\\\\n if (m)\\\\n m.call(observer, value);\\\\n break;\\\\n case \\\\\\\"error\\\\\\\":\\\\n closeSubscription(subscription);\\\\n if (m)\\\\n m.call(observer, value);\\\\n else\\\\n throw value;\\\\n break;\\\\n case \\\\\\\"complete\\\\\\\":\\\\n closeSubscription(subscription);\\\\n if (m)\\\\n m.call(observer);\\\\n break;\\\\n }\\\\n }\\\\n catch (e) {\\\\n hostReportError(e);\\\\n }\\\\n if (subscription._state === \\\\\\\"closed\\\\\\\") {\\\\n cleanupSubscription(subscription);\\\\n }\\\\n else if (subscription._state === \\\\\\\"running\\\\\\\") {\\\\n subscription._state = \\\\\\\"ready\\\\\\\";\\\\n }\\\\n}\\\\nfunction onNotify(subscription, type, value) {\\\\n if (subscription._state === \\\\\\\"closed\\\\\\\") {\\\\n return;\\\\n }\\\\n if (subscription._state === \\\\\\\"buffering\\\\\\\") {\\\\n subscription._queue = subscription._queue || [];\\\\n subscription._queue.push({ type, value });\\\\n return;\\\\n }\\\\n if (subscription._state !== \\\\\\\"ready\\\\\\\") {\\\\n subscription._state = \\\\\\\"buffering\\\\\\\";\\\\n subscription._queue = [{ type, value }];\\\\n enqueue(() => flushSubscription(subscription));\\\\n return;\\\\n }\\\\n notifySubscription(subscription, type, value);\\\\n}\\\\nclass Subscription {\\\\n constructor(observer, subscriber) {\\\\n // ASSERT: observer is an object\\\\n // ASSERT: subscriber is callable\\\\n this._cleanup = undefined;\\\\n this._observer = observer;\\\\n this._queue = undefined;\\\\n this._state = \\\\\\\"initializing\\\\\\\";\\\\n const subscriptionObserver = new SubscriptionObserver(this);\\\\n try {\\\\n this._cleanup = subscriber.call(undefined, subscriptionObserver);\\\\n }\\\\n catch (e) {\\\\n subscriptionObserver.error(e);\\\\n }\\\\n if (this._state === \\\\\\\"initializing\\\\\\\") {\\\\n this._state = \\\\\\\"ready\\\\\\\";\\\\n }\\\\n }\\\\n get closed() {\\\\n return this._state === \\\\\\\"closed\\\\\\\";\\\\n }\\\\n unsubscribe() {\\\\n if (this._state !== \\\\\\\"closed\\\\\\\") {\\\\n closeSubscription(this);\\\\n cleanupSubscription(this);\\\\n }\\\\n }\\\\n}\\\\nclass SubscriptionObserver {\\\\n constructor(subscription) { this._subscription = subscription; }\\\\n get closed() { return this._subscription._state === \\\\\\\"closed\\\\\\\"; }\\\\n next(value) { onNotify(this._subscription, \\\\\\\"next\\\\\\\", value); }\\\\n error(value) { onNotify(this._subscription, \\\\\\\"error\\\\\\\", value); }\\\\n complete() { onNotify(this._subscription, \\\\\\\"complete\\\\\\\"); }\\\\n}\\\\n/**\\\\n * The basic Observable class. This primitive is used to wrap asynchronous\\\\n * data streams in a common standardized data type that is interoperable\\\\n * between libraries and can be composed to represent more complex processes.\\\\n */\\\\nclass Observable {\\\\n constructor(subscriber) {\\\\n if (!(this instanceof Observable)) {\\\\n throw new TypeError(\\\\\\\"Observable cannot be called as a function\\\\\\\");\\\\n }\\\\n if (typeof subscriber !== \\\\\\\"function\\\\\\\") {\\\\n throw new TypeError(\\\\\\\"Observable initializer must be a function\\\\\\\");\\\\n }\\\\n this._subscriber = subscriber;\\\\n }\\\\n subscribe(nextOrObserver, onError, onComplete) {\\\\n if (typeof nextOrObserver !== \\\\\\\"object\\\\\\\" || nextOrObserver === null) {\\\\n nextOrObserver = {\\\\n next: nextOrObserver,\\\\n error: onError,\\\\n complete: onComplete\\\\n };\\\\n }\\\\n return new Subscription(nextOrObserver, this._subscriber);\\\\n }\\\\n pipe(first, ...mappers) {\\\\n // tslint:disable-next-line no-this-assignment\\\\n let intermediate = this;\\\\n for (const mapper of [first, ...mappers]) {\\\\n intermediate = mapper(intermediate);\\\\n }\\\\n return intermediate;\\\\n }\\\\n tap(nextOrObserver, onError, onComplete) {\\\\n const tapObserver = typeof nextOrObserver !== \\\\\\\"object\\\\\\\" || nextOrObserver === null\\\\n ? {\\\\n next: nextOrObserver,\\\\n error: onError,\\\\n complete: onComplete\\\\n }\\\\n : nextOrObserver;\\\\n return new Observable(observer => {\\\\n return this.subscribe({\\\\n next(value) {\\\\n tapObserver.next && tapObserver.next(value);\\\\n observer.next(value);\\\\n },\\\\n error(error) {\\\\n tapObserver.error && tapObserver.error(error);\\\\n observer.error(error);\\\\n },\\\\n complete() {\\\\n tapObserver.complete && tapObserver.complete();\\\\n observer.complete();\\\\n },\\\\n start(subscription) {\\\\n tapObserver.start && tapObserver.start(subscription);\\\\n }\\\\n });\\\\n });\\\\n }\\\\n forEach(fn) {\\\\n return new Promise((resolve, reject) => {\\\\n if (typeof fn !== \\\\\\\"function\\\\\\\") {\\\\n reject(new TypeError(fn + \\\\\\\" is not a function\\\\\\\"));\\\\n return;\\\\n }\\\\n function done() {\\\\n subscription.unsubscribe();\\\\n resolve(undefined);\\\\n }\\\\n const subscription = this.subscribe({\\\\n next(value) {\\\\n try {\\\\n fn(value, done);\\\\n }\\\\n catch (e) {\\\\n reject(e);\\\\n subscription.unsubscribe();\\\\n }\\\\n },\\\\n error(error) {\\\\n reject(error);\\\\n },\\\\n complete() {\\\\n resolve(undefined);\\\\n }\\\\n });\\\\n });\\\\n }\\\\n map(fn) {\\\\n if (typeof fn !== \\\\\\\"function\\\\\\\") {\\\\n throw new TypeError(fn + \\\\\\\" is not a function\\\\\\\");\\\\n }\\\\n const C = getSpecies(this);\\\\n return new C(observer => this.subscribe({\\\\n next(value) {\\\\n let propagatedValue = value;\\\\n try {\\\\n propagatedValue = fn(value);\\\\n }\\\\n catch (e) {\\\\n return observer.error(e);\\\\n }\\\\n observer.next(propagatedValue);\\\\n },\\\\n error(e) { observer.error(e); },\\\\n complete() { observer.complete(); },\\\\n }));\\\\n }\\\\n filter(fn) {\\\\n if (typeof fn !== \\\\\\\"function\\\\\\\") {\\\\n throw new TypeError(fn + \\\\\\\" is not a function\\\\\\\");\\\\n }\\\\n const C = getSpecies(this);\\\\n return new C(observer => this.subscribe({\\\\n next(value) {\\\\n try {\\\\n if (!fn(value))\\\\n return;\\\\n }\\\\n catch (e) {\\\\n return observer.error(e);\\\\n }\\\\n observer.next(value);\\\\n },\\\\n error(e) { observer.error(e); },\\\\n complete() { observer.complete(); },\\\\n }));\\\\n }\\\\n reduce(fn, seed) {\\\\n if (typeof fn !== \\\\\\\"function\\\\\\\") {\\\\n throw new TypeError(fn + \\\\\\\" is not a function\\\\\\\");\\\\n }\\\\n const C = getSpecies(this);\\\\n const hasSeed = arguments.length > 1;\\\\n let hasValue = false;\\\\n let acc = seed;\\\\n return new C(observer => this.subscribe({\\\\n next(value) {\\\\n const first = !hasValue;\\\\n hasValue = true;\\\\n if (!first || hasSeed) {\\\\n try {\\\\n acc = fn(acc, value);\\\\n }\\\\n catch (e) {\\\\n return observer.error(e);\\\\n }\\\\n }\\\\n else {\\\\n acc = value;\\\\n }\\\\n },\\\\n error(e) { observer.error(e); },\\\\n complete() {\\\\n if (!hasValue && !hasSeed) {\\\\n return observer.error(new TypeError(\\\\\\\"Cannot reduce an empty sequence\\\\\\\"));\\\\n }\\\\n observer.next(acc);\\\\n observer.complete();\\\\n },\\\\n }));\\\\n }\\\\n concat(...sources) {\\\\n const C = getSpecies(this);\\\\n return new C(observer => {\\\\n let subscription;\\\\n let index = 0;\\\\n function startNext(next) {\\\\n subscription = next.subscribe({\\\\n next(v) { observer.next(v); },\\\\n error(e) { observer.error(e); },\\\\n complete() {\\\\n if (index === sources.length) {\\\\n subscription = undefined;\\\\n observer.complete();\\\\n }\\\\n else {\\\\n startNext(C.from(sources[index++]));\\\\n }\\\\n },\\\\n });\\\\n }\\\\n startNext(this);\\\\n return () => {\\\\n if (subscription) {\\\\n subscription.unsubscribe();\\\\n subscription = undefined;\\\\n }\\\\n };\\\\n });\\\\n }\\\\n flatMap(fn) {\\\\n if (typeof fn !== \\\\\\\"function\\\\\\\") {\\\\n throw new TypeError(fn + \\\\\\\" is not a function\\\\\\\");\\\\n }\\\\n const C = getSpecies(this);\\\\n return new C(observer => {\\\\n const subscriptions = [];\\\\n const outer = this.subscribe({\\\\n next(value) {\\\\n let normalizedValue;\\\\n if (fn) {\\\\n try {\\\\n normalizedValue = fn(value);\\\\n }\\\\n catch (e) {\\\\n return observer.error(e);\\\\n }\\\\n }\\\\n else {\\\\n normalizedValue = value;\\\\n }\\\\n const inner = C.from(normalizedValue).subscribe({\\\\n next(innerValue) { observer.next(innerValue); },\\\\n error(e) { observer.error(e); },\\\\n complete() {\\\\n const i = subscriptions.indexOf(inner);\\\\n if (i >= 0)\\\\n subscriptions.splice(i, 1);\\\\n completeIfDone();\\\\n },\\\\n });\\\\n subscriptions.push(inner);\\\\n },\\\\n error(e) { observer.error(e); },\\\\n complete() { completeIfDone(); },\\\\n });\\\\n function completeIfDone() {\\\\n if (outer.closed && subscriptions.length === 0) {\\\\n observer.complete();\\\\n }\\\\n }\\\\n return () => {\\\\n subscriptions.forEach(s => s.unsubscribe());\\\\n outer.unsubscribe();\\\\n };\\\\n });\\\\n }\\\\n [(Symbol.observable, SymbolObservable)]() { return this; }\\\\n static from(x) {\\\\n const C = (typeof this === \\\\\\\"function\\\\\\\" ? this : Observable);\\\\n if (x == null) {\\\\n throw new TypeError(x + \\\\\\\" is not an object\\\\\\\");\\\\n }\\\\n const observableMethod = getMethod(x, SymbolObservable);\\\\n if (observableMethod) {\\\\n const observable = observableMethod.call(x);\\\\n if (Object(observable) !== observable) {\\\\n throw new TypeError(observable + \\\\\\\" is not an object\\\\\\\");\\\\n }\\\\n if (isObservable(observable) && observable.constructor === C) {\\\\n return observable;\\\\n }\\\\n return new C(observer => observable.subscribe(observer));\\\\n }\\\\n if (Object(_symbols__WEBPACK_IMPORTED_MODULE_1__[\\\\\\\"hasSymbol\\\\\\\"])(\\\\\\\"iterator\\\\\\\")) {\\\\n const iteratorMethod = getMethod(x, SymbolIterator);\\\\n if (iteratorMethod) {\\\\n return new C(observer => {\\\\n enqueue(() => {\\\\n if (observer.closed)\\\\n return;\\\\n for (const item of iteratorMethod.call(x)) {\\\\n observer.next(item);\\\\n if (observer.closed)\\\\n return;\\\\n }\\\\n observer.complete();\\\\n });\\\\n });\\\\n }\\\\n }\\\\n if (Array.isArray(x)) {\\\\n return new C(observer => {\\\\n enqueue(() => {\\\\n if (observer.closed)\\\\n return;\\\\n for (const item of x) {\\\\n observer.next(item);\\\\n if (observer.closed)\\\\n return;\\\\n }\\\\n observer.complete();\\\\n });\\\\n });\\\\n }\\\\n throw new TypeError(x + \\\\\\\" is not observable\\\\\\\");\\\\n }\\\\n static of(...items) {\\\\n const C = (typeof this === \\\\\\\"function\\\\\\\" ? this : Observable);\\\\n return new C(observer => {\\\\n enqueue(() => {\\\\n if (observer.closed)\\\\n return;\\\\n for (const item of items) {\\\\n observer.next(item);\\\\n if (observer.closed)\\\\n return;\\\\n }\\\\n observer.complete();\\\\n });\\\\n });\\\\n }\\\\n static get [SymbolSpecies]() { return this; }\\\\n}\\\\nif (Object(_symbols__WEBPACK_IMPORTED_MODULE_1__[\\\\\\\"hasSymbols\\\\\\\"])()) {\\\\n Object.defineProperty(Observable, Symbol(\\\\\\\"extensions\\\\\\\"), {\\\\n value: {\\\\n symbol: SymbolObservable,\\\\n hostReportError,\\\\n },\\\\n configurable: true,\\\\n });\\\\n}\\\\n/* harmony default export */ __webpack_exports__[\\\\\\\"default\\\\\\\"] = (Observable);\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/observable-fns/dist.esm/observable.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/observable-fns/dist.esm/scan.js\\\":\\n/*!******************************************************!*\\\\\\n !*** ./node_modules/observable-fns/dist.esm/scan.js ***!\\n \\\\******************************************************/\\n/*! exports provided: default */\\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\\n\\n\\\"use strict\\\";\\neval(\\\"__webpack_require__.r(__webpack_exports__);\\\\n/* harmony import */ var _scheduler__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./_scheduler */ \\\\\\\"./node_modules/observable-fns/dist.esm/_scheduler.js\\\\\\\");\\\\n/* harmony import */ var _observable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./observable */ \\\\\\\"./node_modules/observable-fns/dist.esm/observable.js\\\\\\\");\\\\n/* harmony import */ var _unsubscribe__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./unsubscribe */ \\\\\\\"./node_modules/observable-fns/dist.esm/unsubscribe.js\\\\\\\");\\\\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\\\\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\\\\n return new (P || (P = Promise))(function (resolve, reject) {\\\\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\\\\n function rejected(value) { try { step(generator[\\\\\\\"throw\\\\\\\"](value)); } catch (e) { reject(e); } }\\\\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\\\\n step((generator = generator.apply(thisArg, _arguments || [])).next());\\\\n });\\\\n};\\\\n\\\\n\\\\n\\\\nfunction scan(accumulator, seed) {\\\\n return (observable) => {\\\\n return new _observable__WEBPACK_IMPORTED_MODULE_1__[\\\\\\\"default\\\\\\\"](observer => {\\\\n let accumulated;\\\\n let index = 0;\\\\n const scheduler = new _scheduler__WEBPACK_IMPORTED_MODULE_0__[\\\\\\\"AsyncSerialScheduler\\\\\\\"](observer);\\\\n const subscription = observable.subscribe({\\\\n complete() {\\\\n scheduler.complete();\\\\n },\\\\n error(error) {\\\\n scheduler.error(error);\\\\n },\\\\n next(value) {\\\\n scheduler.schedule((next) => __awaiter(this, void 0, void 0, function* () {\\\\n const prevAcc = index === 0\\\\n ? (typeof seed === \\\\\\\"undefined\\\\\\\" ? value : seed)\\\\n : accumulated;\\\\n accumulated = yield accumulator(prevAcc, value, index++);\\\\n next(accumulated);\\\\n }));\\\\n }\\\\n });\\\\n return () => Object(_unsubscribe__WEBPACK_IMPORTED_MODULE_2__[\\\\\\\"default\\\\\\\"])(subscription);\\\\n });\\\\n };\\\\n}\\\\n/* harmony default export */ __webpack_exports__[\\\\\\\"default\\\\\\\"] = (scan);\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/observable-fns/dist.esm/scan.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/observable-fns/dist.esm/subject.js\\\":\\n/*!*********************************************************!*\\\\\\n !*** ./node_modules/observable-fns/dist.esm/subject.js ***!\\n \\\\*********************************************************/\\n/*! exports provided: default */\\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\\n\\n\\\"use strict\\\";\\neval(\\\"__webpack_require__.r(__webpack_exports__);\\\\n/* harmony import */ var _observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./observable */ \\\\\\\"./node_modules/observable-fns/dist.esm/observable.js\\\\\\\");\\\\n\\\\n// TODO: This observer iteration approach looks inelegant and expensive\\\\n// Idea: Come up with super class for Subscription that contains the\\\\n// notify*, ... methods and use it here\\\\n/**\\\\n * A subject is a \\\\\\\"hot\\\\\\\" observable (see `multicast`) that has its observer\\\\n * methods (`.next(value)`, `.error(error)`, `.complete()`) exposed.\\\\n *\\\\n * Be careful, though! With great power comes great responsibility. Only use\\\\n * the `Subject` when you really need to trigger updates \\\\\\\"from the outside\\\\\\\" and\\\\n * try to keep the code that can access it to a minimum. Return\\\\n * `Observable.from(mySubject)` to not allow other code to mutate.\\\\n */\\\\nclass MulticastSubject extends _observable__WEBPACK_IMPORTED_MODULE_0__[\\\\\\\"default\\\\\\\"] {\\\\n constructor() {\\\\n super(observer => {\\\\n this._observers.add(observer);\\\\n return () => this._observers.delete(observer);\\\\n });\\\\n this._observers = new Set();\\\\n }\\\\n next(value) {\\\\n for (const observer of this._observers) {\\\\n observer.next(value);\\\\n }\\\\n }\\\\n error(error) {\\\\n for (const observer of this._observers) {\\\\n observer.error(error);\\\\n }\\\\n }\\\\n complete() {\\\\n for (const observer of this._observers) {\\\\n observer.complete();\\\\n }\\\\n }\\\\n}\\\\n/* harmony default export */ __webpack_exports__[\\\\\\\"default\\\\\\\"] = (MulticastSubject);\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/observable-fns/dist.esm/subject.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/observable-fns/dist.esm/symbols.js\\\":\\n/*!*********************************************************!*\\\\\\n !*** ./node_modules/observable-fns/dist.esm/symbols.js ***!\\n \\\\*********************************************************/\\n/*! no exports provided */\\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\\n\\n\\\"use strict\\\";\\neval(\\\"__webpack_require__.r(__webpack_exports__);\\\\n\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/observable-fns/dist.esm/symbols.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/observable-fns/dist.esm/unsubscribe.js\\\":\\n/*!*************************************************************!*\\\\\\n !*** ./node_modules/observable-fns/dist.esm/unsubscribe.js ***!\\n \\\\*************************************************************/\\n/*! exports provided: default */\\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\\n\\n\\\"use strict\\\";\\neval(\\\"__webpack_require__.r(__webpack_exports__);\\\\n/**\\\\n * Unsubscribe from a subscription returned by something that looks like an observable,\\\\n * but is not necessarily our observable implementation.\\\\n */\\\\nfunction unsubscribe(subscription) {\\\\n if (typeof subscription === \\\\\\\"function\\\\\\\") {\\\\n subscription();\\\\n }\\\\n else if (subscription && typeof subscription.unsubscribe === \\\\\\\"function\\\\\\\") {\\\\n subscription.unsubscribe();\\\\n }\\\\n}\\\\n/* harmony default export */ __webpack_exports__[\\\\\\\"default\\\\\\\"] = (unsubscribe);\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/observable-fns/dist.esm/unsubscribe.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/pako/lib/inflate.js\\\":\\n/*!******************************************!*\\\\\\n !*** ./node_modules/pako/lib/inflate.js ***!\\n \\\\******************************************/\\n/*! no static exports found */\\n/***/ (function(module, exports, __webpack_require__) {\\n\\n\\\"use strict\\\";\\neval(\\\"\\\\n\\\\n\\\\nvar zlib_inflate = __webpack_require__(/*! ./zlib/inflate */ \\\\\\\"./node_modules/pako/lib/zlib/inflate.js\\\\\\\");\\\\nvar utils = __webpack_require__(/*! ./utils/common */ \\\\\\\"./node_modules/pako/lib/utils/common.js\\\\\\\");\\\\nvar strings = __webpack_require__(/*! ./utils/strings */ \\\\\\\"./node_modules/pako/lib/utils/strings.js\\\\\\\");\\\\nvar c = __webpack_require__(/*! ./zlib/constants */ \\\\\\\"./node_modules/pako/lib/zlib/constants.js\\\\\\\");\\\\nvar msg = __webpack_require__(/*! ./zlib/messages */ \\\\\\\"./node_modules/pako/lib/zlib/messages.js\\\\\\\");\\\\nvar ZStream = __webpack_require__(/*! ./zlib/zstream */ \\\\\\\"./node_modules/pako/lib/zlib/zstream.js\\\\\\\");\\\\nvar GZheader = __webpack_require__(/*! ./zlib/gzheader */ \\\\\\\"./node_modules/pako/lib/zlib/gzheader.js\\\\\\\");\\\\n\\\\nvar toString = Object.prototype.toString;\\\\n\\\\n/**\\\\n * class Inflate\\\\n *\\\\n * Generic JS-style wrapper for zlib calls. If you don't need\\\\n * streaming behaviour - use more simple functions: [[inflate]]\\\\n * and [[inflateRaw]].\\\\n **/\\\\n\\\\n/* internal\\\\n * inflate.chunks -> Array\\\\n *\\\\n * Chunks of output data, if [[Inflate#onData]] not overridden.\\\\n **/\\\\n\\\\n/**\\\\n * Inflate.result -> Uint8Array|Array|String\\\\n *\\\\n * Uncompressed result, generated by default [[Inflate#onData]]\\\\n * and [[Inflate#onEnd]] handlers. Filled after you push last chunk\\\\n * (call [[Inflate#push]] with `Z_FINISH` / `true` param) or if you\\\\n * push a chunk with explicit flush (call [[Inflate#push]] with\\\\n * `Z_SYNC_FLUSH` param).\\\\n **/\\\\n\\\\n/**\\\\n * Inflate.err -> Number\\\\n *\\\\n * Error code after inflate finished. 0 (Z_OK) on success.\\\\n * Should be checked if broken data possible.\\\\n **/\\\\n\\\\n/**\\\\n * Inflate.msg -> String\\\\n *\\\\n * Error message, if [[Inflate.err]] != 0\\\\n **/\\\\n\\\\n\\\\n/**\\\\n * new Inflate(options)\\\\n * - options (Object): zlib inflate options.\\\\n *\\\\n * Creates new inflator instance with specified params. Throws exception\\\\n * on bad params. Supported options:\\\\n *\\\\n * - `windowBits`\\\\n * - `dictionary`\\\\n *\\\\n * [http://zlib.net/manual.html#Advanced](http://zlib.net/manual.html#Advanced)\\\\n * for more information on these.\\\\n *\\\\n * Additional options, for internal needs:\\\\n *\\\\n * - `chunkSize` - size of generated data chunks (16K by default)\\\\n * - `raw` (Boolean) - do raw inflate\\\\n * - `to` (String) - if equal to 'string', then result will be converted\\\\n * from utf8 to utf16 (javascript) string. When string output requested,\\\\n * chunk length can differ from `chunkSize`, depending on content.\\\\n *\\\\n * By default, when no options set, autodetect deflate/gzip data format via\\\\n * wrapper header.\\\\n *\\\\n * ##### Example:\\\\n *\\\\n * ```javascript\\\\n * var pako = require('pako')\\\\n * , chunk1 = Uint8Array([1,2,3,4,5,6,7,8,9])\\\\n * , chunk2 = Uint8Array([10,11,12,13,14,15,16,17,18,19]);\\\\n *\\\\n * var inflate = new pako.Inflate({ level: 3});\\\\n *\\\\n * inflate.push(chunk1, false);\\\\n * inflate.push(chunk2, true); // true -> last chunk\\\\n *\\\\n * if (inflate.err) { throw new Error(inflate.err); }\\\\n *\\\\n * console.log(inflate.result);\\\\n * ```\\\\n **/\\\\nfunction Inflate(options) {\\\\n if (!(this instanceof Inflate)) return new Inflate(options);\\\\n\\\\n this.options = utils.assign({\\\\n chunkSize: 16384,\\\\n windowBits: 0,\\\\n to: ''\\\\n }, options || {});\\\\n\\\\n var opt = this.options;\\\\n\\\\n // Force window size for `raw` data, if not set directly,\\\\n // because we have no header for autodetect.\\\\n if (opt.raw && (opt.windowBits >= 0) && (opt.windowBits < 16)) {\\\\n opt.windowBits = -opt.windowBits;\\\\n if (opt.windowBits === 0) { opt.windowBits = -15; }\\\\n }\\\\n\\\\n // If `windowBits` not defined (and mode not raw) - set autodetect flag for gzip/deflate\\\\n if ((opt.windowBits >= 0) && (opt.windowBits < 16) &&\\\\n !(options && options.windowBits)) {\\\\n opt.windowBits += 32;\\\\n }\\\\n\\\\n // Gzip header has no info about windows size, we can do autodetect only\\\\n // for deflate. So, if window size not set, force it to max when gzip possible\\\\n if ((opt.windowBits > 15) && (opt.windowBits < 48)) {\\\\n // bit 3 (16) -> gzipped data\\\\n // bit 4 (32) -> autodetect gzip/deflate\\\\n if ((opt.windowBits & 15) === 0) {\\\\n opt.windowBits |= 15;\\\\n }\\\\n }\\\\n\\\\n this.err = 0; // error code, if happens (0 = Z_OK)\\\\n this.msg = ''; // error message\\\\n this.ended = false; // used to avoid multiple onEnd() calls\\\\n this.chunks = []; // chunks of compressed data\\\\n\\\\n this.strm = new ZStream();\\\\n this.strm.avail_out = 0;\\\\n\\\\n var status = zlib_inflate.inflateInit2(\\\\n this.strm,\\\\n opt.windowBits\\\\n );\\\\n\\\\n if (status !== c.Z_OK) {\\\\n throw new Error(msg[status]);\\\\n }\\\\n\\\\n this.header = new GZheader();\\\\n\\\\n zlib_inflate.inflateGetHeader(this.strm, this.header);\\\\n\\\\n // Setup dictionary\\\\n if (opt.dictionary) {\\\\n // Convert data if needed\\\\n if (typeof opt.dictionary === 'string') {\\\\n opt.dictionary = strings.string2buf(opt.dictionary);\\\\n } else if (toString.call(opt.dictionary) === '[object ArrayBuffer]') {\\\\n opt.dictionary = new Uint8Array(opt.dictionary);\\\\n }\\\\n if (opt.raw) { //In raw mode we need to set the dictionary early\\\\n status = zlib_inflate.inflateSetDictionary(this.strm, opt.dictionary);\\\\n if (status !== c.Z_OK) {\\\\n throw new Error(msg[status]);\\\\n }\\\\n }\\\\n }\\\\n}\\\\n\\\\n/**\\\\n * Inflate#push(data[, mode]) -> Boolean\\\\n * - data (Uint8Array|Array|ArrayBuffer|String): input data\\\\n * - mode (Number|Boolean): 0..6 for corresponding Z_NO_FLUSH..Z_TREE modes.\\\\n * See constants. Skipped or `false` means Z_NO_FLUSH, `true` means Z_FINISH.\\\\n *\\\\n * Sends input data to inflate pipe, generating [[Inflate#onData]] calls with\\\\n * new output chunks. Returns `true` on success. The last data block must have\\\\n * mode Z_FINISH (or `true`). That will flush internal pending buffers and call\\\\n * [[Inflate#onEnd]]. For interim explicit flushes (without ending the stream) you\\\\n * can use mode Z_SYNC_FLUSH, keeping the decompression context.\\\\n *\\\\n * On fail call [[Inflate#onEnd]] with error code and return false.\\\\n *\\\\n * We strongly recommend to use `Uint8Array` on input for best speed (output\\\\n * format is detected automatically). Also, don't skip last param and always\\\\n * use the same type in your code (boolean or number). That will improve JS speed.\\\\n *\\\\n * For regular `Array`-s make sure all elements are [0..255].\\\\n *\\\\n * ##### Example\\\\n *\\\\n * ```javascript\\\\n * push(chunk, false); // push one of data chunks\\\\n * ...\\\\n * push(chunk, true); // push last chunk\\\\n * ```\\\\n **/\\\\nInflate.prototype.push = function (data, mode) {\\\\n var strm = this.strm;\\\\n var chunkSize = this.options.chunkSize;\\\\n var dictionary = this.options.dictionary;\\\\n var status, _mode;\\\\n var next_out_utf8, tail, utf8str;\\\\n\\\\n // Flag to properly process Z_BUF_ERROR on testing inflate call\\\\n // when we check that all output data was flushed.\\\\n var allowBufError = false;\\\\n\\\\n if (this.ended) { return false; }\\\\n _mode = (mode === ~~mode) ? mode : ((mode === true) ? c.Z_FINISH : c.Z_NO_FLUSH);\\\\n\\\\n // Convert data if needed\\\\n if (typeof data === 'string') {\\\\n // Only binary strings can be decompressed on practice\\\\n strm.input = strings.binstring2buf(data);\\\\n } else if (toString.call(data) === '[object ArrayBuffer]') {\\\\n strm.input = new Uint8Array(data);\\\\n } else {\\\\n strm.input = data;\\\\n }\\\\n\\\\n strm.next_in = 0;\\\\n strm.avail_in = strm.input.length;\\\\n\\\\n do {\\\\n if (strm.avail_out === 0) {\\\\n strm.output = new utils.Buf8(chunkSize);\\\\n strm.next_out = 0;\\\\n strm.avail_out = chunkSize;\\\\n }\\\\n\\\\n status = zlib_inflate.inflate(strm, c.Z_NO_FLUSH); /* no bad return value */\\\\n\\\\n if (status === c.Z_NEED_DICT && dictionary) {\\\\n status = zlib_inflate.inflateSetDictionary(this.strm, dictionary);\\\\n }\\\\n\\\\n if (status === c.Z_BUF_ERROR && allowBufError === true) {\\\\n status = c.Z_OK;\\\\n allowBufError = false;\\\\n }\\\\n\\\\n if (status !== c.Z_STREAM_END && status !== c.Z_OK) {\\\\n this.onEnd(status);\\\\n this.ended = true;\\\\n return false;\\\\n }\\\\n\\\\n if (strm.next_out) {\\\\n if (strm.avail_out === 0 || status === c.Z_STREAM_END || (strm.avail_in === 0 && (_mode === c.Z_FINISH || _mode === c.Z_SYNC_FLUSH))) {\\\\n\\\\n if (this.options.to === 'string') {\\\\n\\\\n next_out_utf8 = strings.utf8border(strm.output, strm.next_out);\\\\n\\\\n tail = strm.next_out - next_out_utf8;\\\\n utf8str = strings.buf2string(strm.output, next_out_utf8);\\\\n\\\\n // move tail\\\\n strm.next_out = tail;\\\\n strm.avail_out = chunkSize - tail;\\\\n if (tail) { utils.arraySet(strm.output, strm.output, next_out_utf8, tail, 0); }\\\\n\\\\n this.onData(utf8str);\\\\n\\\\n } else {\\\\n this.onData(utils.shrinkBuf(strm.output, strm.next_out));\\\\n }\\\\n }\\\\n }\\\\n\\\\n // When no more input data, we should check that internal inflate buffers\\\\n // are flushed. The only way to do it when avail_out = 0 - run one more\\\\n // inflate pass. But if output data not exists, inflate return Z_BUF_ERROR.\\\\n // Here we set flag to process this error properly.\\\\n //\\\\n // NOTE. Deflate does not return error in this case and does not needs such\\\\n // logic.\\\\n if (strm.avail_in === 0 && strm.avail_out === 0) {\\\\n allowBufError = true;\\\\n }\\\\n\\\\n } while ((strm.avail_in > 0 || strm.avail_out === 0) && status !== c.Z_STREAM_END);\\\\n\\\\n if (status === c.Z_STREAM_END) {\\\\n _mode = c.Z_FINISH;\\\\n }\\\\n\\\\n // Finalize on the last chunk.\\\\n if (_mode === c.Z_FINISH) {\\\\n status = zlib_inflate.inflateEnd(this.strm);\\\\n this.onEnd(status);\\\\n this.ended = true;\\\\n return status === c.Z_OK;\\\\n }\\\\n\\\\n // callback interim results if Z_SYNC_FLUSH.\\\\n if (_mode === c.Z_SYNC_FLUSH) {\\\\n this.onEnd(c.Z_OK);\\\\n strm.avail_out = 0;\\\\n return true;\\\\n }\\\\n\\\\n return true;\\\\n};\\\\n\\\\n\\\\n/**\\\\n * Inflate#onData(chunk) -> Void\\\\n * - chunk (Uint8Array|Array|String): output data. Type of array depends\\\\n * on js engine support. When string output requested, each chunk\\\\n * will be string.\\\\n *\\\\n * By default, stores data blocks in `chunks[]` property and glue\\\\n * those in `onEnd`. Override this handler, if you need another behaviour.\\\\n **/\\\\nInflate.prototype.onData = function (chunk) {\\\\n this.chunks.push(chunk);\\\\n};\\\\n\\\\n\\\\n/**\\\\n * Inflate#onEnd(status) -> Void\\\\n * - status (Number): inflate status. 0 (Z_OK) on success,\\\\n * other if not.\\\\n *\\\\n * Called either after you tell inflate that the input stream is\\\\n * complete (Z_FINISH) or should be flushed (Z_SYNC_FLUSH)\\\\n * or if an error happened. By default - join collected chunks,\\\\n * free memory and fill `results` / `err` properties.\\\\n **/\\\\nInflate.prototype.onEnd = function (status) {\\\\n // On success - join\\\\n if (status === c.Z_OK) {\\\\n if (this.options.to === 'string') {\\\\n // Glue & convert here, until we teach pako to send\\\\n // utf8 aligned strings to onData\\\\n this.result = this.chunks.join('');\\\\n } else {\\\\n this.result = utils.flattenChunks(this.chunks);\\\\n }\\\\n }\\\\n this.chunks = [];\\\\n this.err = status;\\\\n this.msg = this.strm.msg;\\\\n};\\\\n\\\\n\\\\n/**\\\\n * inflate(data[, options]) -> Uint8Array|Array|String\\\\n * - data (Uint8Array|Array|String): input data to decompress.\\\\n * - options (Object): zlib inflate options.\\\\n *\\\\n * Decompress `data` with inflate/ungzip and `options`. Autodetect\\\\n * format via wrapper header by default. That's why we don't provide\\\\n * separate `ungzip` method.\\\\n *\\\\n * Supported options are:\\\\n *\\\\n * - windowBits\\\\n *\\\\n * [http://zlib.net/manual.html#Advanced](http://zlib.net/manual.html#Advanced)\\\\n * for more information.\\\\n *\\\\n * Sugar (options):\\\\n *\\\\n * - `raw` (Boolean) - say that we work with raw stream, if you don't wish to specify\\\\n * negative windowBits implicitly.\\\\n * - `to` (String) - if equal to 'string', then result will be converted\\\\n * from utf8 to utf16 (javascript) string. When string output requested,\\\\n * chunk length can differ from `chunkSize`, depending on content.\\\\n *\\\\n *\\\\n * ##### Example:\\\\n *\\\\n * ```javascript\\\\n * var pako = require('pako')\\\\n * , input = pako.deflate([1,2,3,4,5,6,7,8,9])\\\\n * , output;\\\\n *\\\\n * try {\\\\n * output = pako.inflate(input);\\\\n * } catch (err)\\\\n * console.log(err);\\\\n * }\\\\n * ```\\\\n **/\\\\nfunction inflate(input, options) {\\\\n var inflator = new Inflate(options);\\\\n\\\\n inflator.push(input, true);\\\\n\\\\n // That will never happens, if you don't cheat with options :)\\\\n if (inflator.err) { throw inflator.msg || msg[inflator.err]; }\\\\n\\\\n return inflator.result;\\\\n}\\\\n\\\\n\\\\n/**\\\\n * inflateRaw(data[, options]) -> Uint8Array|Array|String\\\\n * - data (Uint8Array|Array|String): input data to decompress.\\\\n * - options (Object): zlib inflate options.\\\\n *\\\\n * The same as [[inflate]], but creates raw data, without wrapper\\\\n * (header and adler32 crc).\\\\n **/\\\\nfunction inflateRaw(input, options) {\\\\n options = options || {};\\\\n options.raw = true;\\\\n return inflate(input, options);\\\\n}\\\\n\\\\n\\\\n/**\\\\n * ungzip(data[, options]) -> Uint8Array|Array|String\\\\n * - data (Uint8Array|Array|String): input data to decompress.\\\\n * - options (Object): zlib inflate options.\\\\n *\\\\n * Just shortcut to [[inflate]], because it autodetects format\\\\n * by header.content. Done for convenience.\\\\n **/\\\\n\\\\n\\\\nexports.Inflate = Inflate;\\\\nexports.inflate = inflate;\\\\nexports.inflateRaw = inflateRaw;\\\\nexports.ungzip = inflate;\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/pako/lib/inflate.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/pako/lib/utils/common.js\\\":\\n/*!***********************************************!*\\\\\\n !*** ./node_modules/pako/lib/utils/common.js ***!\\n \\\\***********************************************/\\n/*! no static exports found */\\n/***/ (function(module, exports, __webpack_require__) {\\n\\n\\\"use strict\\\";\\neval(\\\"\\\\n\\\\n\\\\nvar TYPED_OK = (typeof Uint8Array !== 'undefined') &&\\\\n (typeof Uint16Array !== 'undefined') &&\\\\n (typeof Int32Array !== 'undefined');\\\\n\\\\nfunction _has(obj, key) {\\\\n return Object.prototype.hasOwnProperty.call(obj, key);\\\\n}\\\\n\\\\nexports.assign = function (obj /*from1, from2, from3, ...*/) {\\\\n var sources = Array.prototype.slice.call(arguments, 1);\\\\n while (sources.length) {\\\\n var source = sources.shift();\\\\n if (!source) { continue; }\\\\n\\\\n if (typeof source !== 'object') {\\\\n throw new TypeError(source + 'must be non-object');\\\\n }\\\\n\\\\n for (var p in source) {\\\\n if (_has(source, p)) {\\\\n obj[p] = source[p];\\\\n }\\\\n }\\\\n }\\\\n\\\\n return obj;\\\\n};\\\\n\\\\n\\\\n// reduce buffer size, avoiding mem copy\\\\nexports.shrinkBuf = function (buf, size) {\\\\n if (buf.length === size) { return buf; }\\\\n if (buf.subarray) { return buf.subarray(0, size); }\\\\n buf.length = size;\\\\n return buf;\\\\n};\\\\n\\\\n\\\\nvar fnTyped = {\\\\n arraySet: function (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 }\\\\n // Fallback to ordinary array\\\\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 (chunks) {\\\\n var i, l, len, pos, chunk, result;\\\\n\\\\n // calculate data length\\\\n len = 0;\\\\n for (i = 0, l = chunks.length; i < l; i++) {\\\\n len += chunks[i].length;\\\\n }\\\\n\\\\n // join chunks\\\\n result = new Uint8Array(len);\\\\n pos = 0;\\\\n for (i = 0, l = chunks.length; i < l; i++) {\\\\n chunk = chunks[i];\\\\n result.set(chunk, pos);\\\\n pos += chunk.length;\\\\n }\\\\n\\\\n return result;\\\\n }\\\\n};\\\\n\\\\nvar fnUntyped = {\\\\n arraySet: function (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 (chunks) {\\\\n return [].concat.apply([], chunks);\\\\n }\\\\n};\\\\n\\\\n\\\\n// Enable/Disable typed arrays use, for testing\\\\n//\\\\nexports.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};\\\\n\\\\nexports.setTyped(TYPED_OK);\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/pako/lib/utils/common.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/pako/lib/utils/strings.js\\\":\\n/*!************************************************!*\\\\\\n !*** ./node_modules/pako/lib/utils/strings.js ***!\\n \\\\************************************************/\\n/*! no static exports found */\\n/***/ (function(module, exports, __webpack_require__) {\\n\\n\\\"use strict\\\";\\neval(\\\"// String encode/decode helpers\\\\n\\\\n\\\\n\\\\nvar utils = __webpack_require__(/*! ./common */ \\\\\\\"./node_modules/pako/lib/utils/common.js\\\\\\\");\\\\n\\\\n\\\\n// Quick check if we can use fast array to bin string conversion\\\\n//\\\\n// - apply(Array) can fail on Android 2.2\\\\n// - apply(Uint8Array) can fail on iOS 5.1 Safari\\\\n//\\\\nvar STR_APPLY_OK = true;\\\\nvar STR_APPLY_UIA_OK = true;\\\\n\\\\ntry { String.fromCharCode.apply(null, [ 0 ]); } catch (__) { STR_APPLY_OK = false; }\\\\ntry { String.fromCharCode.apply(null, new Uint8Array(1)); } catch (__) { STR_APPLY_UIA_OK = false; }\\\\n\\\\n\\\\n// Table with utf8 lengths (calculated by first byte of sequence)\\\\n// Note, that 5 & 6-byte values and some 4-byte values can not be represented in JS,\\\\n// because max possible codepoint is 0x10ffff\\\\nvar _utf8len = new utils.Buf8(256);\\\\nfor (var q = 0; q < 256; q++) {\\\\n _utf8len[q] = (q >= 252 ? 6 : q >= 248 ? 5 : q >= 240 ? 4 : q >= 224 ? 3 : q >= 192 ? 2 : 1);\\\\n}\\\\n_utf8len[254] = _utf8len[254] = 1; // Invalid sequence start\\\\n\\\\n\\\\n// convert string to array (typed, when possible)\\\\nexports.string2buf = function (str) {\\\\n var buf, c, c2, m_pos, i, str_len = str.length, buf_len = 0;\\\\n\\\\n // count binary size\\\\n for (m_pos = 0; m_pos < str_len; m_pos++) {\\\\n c = str.charCodeAt(m_pos);\\\\n if ((c & 0xfc00) === 0xd800 && (m_pos + 1 < str_len)) {\\\\n c2 = str.charCodeAt(m_pos + 1);\\\\n if ((c2 & 0xfc00) === 0xdc00) {\\\\n c = 0x10000 + ((c - 0xd800) << 10) + (c2 - 0xdc00);\\\\n m_pos++;\\\\n }\\\\n }\\\\n buf_len += c < 0x80 ? 1 : c < 0x800 ? 2 : c < 0x10000 ? 3 : 4;\\\\n }\\\\n\\\\n // allocate buffer\\\\n buf = new utils.Buf8(buf_len);\\\\n\\\\n // convert\\\\n for (i = 0, m_pos = 0; i < buf_len; m_pos++) {\\\\n c = str.charCodeAt(m_pos);\\\\n if ((c & 0xfc00) === 0xd800 && (m_pos + 1 < str_len)) {\\\\n c2 = str.charCodeAt(m_pos + 1);\\\\n if ((c2 & 0xfc00) === 0xdc00) {\\\\n c = 0x10000 + ((c - 0xd800) << 10) + (c2 - 0xdc00);\\\\n m_pos++;\\\\n }\\\\n }\\\\n if (c < 0x80) {\\\\n /* one byte */\\\\n buf[i++] = c;\\\\n } else if (c < 0x800) {\\\\n /* two bytes */\\\\n buf[i++] = 0xC0 | (c >>> 6);\\\\n buf[i++] = 0x80 | (c & 0x3f);\\\\n } else if (c < 0x10000) {\\\\n /* three bytes */\\\\n buf[i++] = 0xE0 | (c >>> 12);\\\\n buf[i++] = 0x80 | (c >>> 6 & 0x3f);\\\\n buf[i++] = 0x80 | (c & 0x3f);\\\\n } else {\\\\n /* four bytes */\\\\n buf[i++] = 0xf0 | (c >>> 18);\\\\n buf[i++] = 0x80 | (c >>> 12 & 0x3f);\\\\n buf[i++] = 0x80 | (c >>> 6 & 0x3f);\\\\n buf[i++] = 0x80 | (c & 0x3f);\\\\n }\\\\n }\\\\n\\\\n return buf;\\\\n};\\\\n\\\\n// Helper (used in 2 places)\\\\nfunction buf2binstring(buf, len) {\\\\n // On Chrome, the arguments in a function call that are allowed is `65534`.\\\\n // If the length of the buffer is smaller than that, we can use this optimization,\\\\n // otherwise we will take a slower path.\\\\n if (len < 65534) {\\\\n if ((buf.subarray && STR_APPLY_UIA_OK) || (!buf.subarray && STR_APPLY_OK)) {\\\\n return String.fromCharCode.apply(null, utils.shrinkBuf(buf, len));\\\\n }\\\\n }\\\\n\\\\n var result = '';\\\\n for (var i = 0; i < len; i++) {\\\\n result += String.fromCharCode(buf[i]);\\\\n }\\\\n return result;\\\\n}\\\\n\\\\n\\\\n// Convert byte array to binary string\\\\nexports.buf2binstring = function (buf) {\\\\n return buf2binstring(buf, buf.length);\\\\n};\\\\n\\\\n\\\\n// Convert binary string (typed, when possible)\\\\nexports.binstring2buf = function (str) {\\\\n var buf = new utils.Buf8(str.length);\\\\n for (var i = 0, len = buf.length; i < len; i++) {\\\\n buf[i] = str.charCodeAt(i);\\\\n }\\\\n return buf;\\\\n};\\\\n\\\\n\\\\n// convert array to string\\\\nexports.buf2string = function (buf, max) {\\\\n var i, out, c, c_len;\\\\n var len = max || buf.length;\\\\n\\\\n // Reserve max possible length (2 words per char)\\\\n // NB: by unknown reasons, Array is significantly faster for\\\\n // String.fromCharCode.apply than Uint16Array.\\\\n var utf16buf = new Array(len * 2);\\\\n\\\\n for (out = 0, i = 0; i < len;) {\\\\n c = buf[i++];\\\\n // quick process ascii\\\\n if (c < 0x80) { utf16buf[out++] = c; continue; }\\\\n\\\\n c_len = _utf8len[c];\\\\n // skip 5 & 6 byte codes\\\\n if (c_len > 4) { utf16buf[out++] = 0xfffd; i += c_len - 1; continue; }\\\\n\\\\n // apply mask on first byte\\\\n c &= c_len === 2 ? 0x1f : c_len === 3 ? 0x0f : 0x07;\\\\n // join the rest\\\\n while (c_len > 1 && i < len) {\\\\n c = (c << 6) | (buf[i++] & 0x3f);\\\\n c_len--;\\\\n }\\\\n\\\\n // terminated by end of string?\\\\n if (c_len > 1) { utf16buf[out++] = 0xfffd; continue; }\\\\n\\\\n if (c < 0x10000) {\\\\n utf16buf[out++] = c;\\\\n } else {\\\\n c -= 0x10000;\\\\n utf16buf[out++] = 0xd800 | ((c >> 10) & 0x3ff);\\\\n utf16buf[out++] = 0xdc00 | (c & 0x3ff);\\\\n }\\\\n }\\\\n\\\\n return buf2binstring(utf16buf, out);\\\\n};\\\\n\\\\n\\\\n// Calculate max possible position in utf8 buffer,\\\\n// that will not break sequence. If that's not possible\\\\n// - (very small limits) return max size as is.\\\\n//\\\\n// buf[] - utf8 bytes array\\\\n// max - length limit (mandatory);\\\\nexports.utf8border = function (buf, max) {\\\\n var pos;\\\\n\\\\n max = max || buf.length;\\\\n if (max > buf.length) { max = buf.length; }\\\\n\\\\n // go back from last position, until start of sequence found\\\\n pos = max - 1;\\\\n while (pos >= 0 && (buf[pos] & 0xC0) === 0x80) { pos--; }\\\\n\\\\n // Very small and broken sequence,\\\\n // return max, because we should return something anyway.\\\\n if (pos < 0) { return max; }\\\\n\\\\n // If we came to start of buffer - that means buffer is too small,\\\\n // return max too.\\\\n if (pos === 0) { return max; }\\\\n\\\\n return (pos + _utf8len[buf[pos]] > max) ? pos : max;\\\\n};\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/pako/lib/utils/strings.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/pako/lib/zlib/adler32.js\\\":\\n/*!***********************************************!*\\\\\\n !*** ./node_modules/pako/lib/zlib/adler32.js ***!\\n \\\\***********************************************/\\n/*! no static exports found */\\n/***/ (function(module, exports, __webpack_require__) {\\n\\n\\\"use strict\\\";\\neval(\\\"\\\\n\\\\n// Note: adler32 takes 12% for level 0 and 2% for level 6.\\\\n// It isn't worth it to make additional optimizations as in original.\\\\n// Small size is preferable.\\\\n\\\\n// (C) 1995-2013 Jean-loup Gailly and Mark Adler\\\\n// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin\\\\n//\\\\n// This software is provided 'as-is', without any express or implied\\\\n// warranty. In no event will the authors be held liable for any damages\\\\n// arising from the use of this software.\\\\n//\\\\n// Permission is granted to anyone to use this software for any purpose,\\\\n// including commercial applications, and to alter it and redistribute it\\\\n// freely, subject to the following restrictions:\\\\n//\\\\n// 1. The origin of this software must not be misrepresented; you must not\\\\n// claim that you wrote the original software. If you use this software\\\\n// in a product, an acknowledgment in the product documentation would be\\\\n// appreciated but is not required.\\\\n// 2. Altered source versions must be plainly marked as such, and must not be\\\\n// misrepresented as being the original software.\\\\n// 3. This notice may not be removed or altered from any source distribution.\\\\n\\\\nfunction adler32(adler, buf, len, pos) {\\\\n var s1 = (adler & 0xffff) |0,\\\\n s2 = ((adler >>> 16) & 0xffff) |0,\\\\n n = 0;\\\\n\\\\n while (len !== 0) {\\\\n // Set limit ~ twice less than 5552, to keep\\\\n // s2 in 31-bits, because we force signed ints.\\\\n // in other case %= will fail.\\\\n n = len > 2000 ? 2000 : len;\\\\n len -= n;\\\\n\\\\n do {\\\\n s1 = (s1 + buf[pos++]) |0;\\\\n s2 = (s2 + s1) |0;\\\\n } while (--n);\\\\n\\\\n s1 %= 65521;\\\\n s2 %= 65521;\\\\n }\\\\n\\\\n return (s1 | (s2 << 16)) |0;\\\\n}\\\\n\\\\n\\\\nmodule.exports = adler32;\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/pako/lib/zlib/adler32.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/pako/lib/zlib/constants.js\\\":\\n/*!*************************************************!*\\\\\\n !*** ./node_modules/pako/lib/zlib/constants.js ***!\\n \\\\*************************************************/\\n/*! no static exports found */\\n/***/ (function(module, exports, __webpack_require__) {\\n\\n\\\"use strict\\\";\\neval(\\\"\\\\n\\\\n// (C) 1995-2013 Jean-loup Gailly and Mark Adler\\\\n// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin\\\\n//\\\\n// This software is provided 'as-is', without any express or implied\\\\n// warranty. In no event will the authors be held liable for any damages\\\\n// arising from the use of this software.\\\\n//\\\\n// Permission is granted to anyone to use this software for any purpose,\\\\n// including commercial applications, and to alter it and redistribute it\\\\n// freely, subject to the following restrictions:\\\\n//\\\\n// 1. The origin of this software must not be misrepresented; you must not\\\\n// claim that you wrote the original software. If you use this software\\\\n// in a product, an acknowledgment in the product documentation would be\\\\n// appreciated but is not required.\\\\n// 2. Altered source versions must be plainly marked as such, and must not be\\\\n// misrepresented as being the original software.\\\\n// 3. This notice may not be removed or altered from any source distribution.\\\\n\\\\nmodule.exports = {\\\\n\\\\n /* Allowed flush values; see deflate() and inflate() below for details */\\\\n Z_NO_FLUSH: 0,\\\\n Z_PARTIAL_FLUSH: 1,\\\\n Z_SYNC_FLUSH: 2,\\\\n Z_FULL_FLUSH: 3,\\\\n Z_FINISH: 4,\\\\n Z_BLOCK: 5,\\\\n Z_TREES: 6,\\\\n\\\\n /* Return codes for the compression/decompression functions. Negative values\\\\n * are errors, positive values are used for special but normal events.\\\\n */\\\\n Z_OK: 0,\\\\n Z_STREAM_END: 1,\\\\n Z_NEED_DICT: 2,\\\\n Z_ERRNO: -1,\\\\n Z_STREAM_ERROR: -2,\\\\n Z_DATA_ERROR: -3,\\\\n //Z_MEM_ERROR: -4,\\\\n Z_BUF_ERROR: -5,\\\\n //Z_VERSION_ERROR: -6,\\\\n\\\\n /* compression levels */\\\\n Z_NO_COMPRESSION: 0,\\\\n Z_BEST_SPEED: 1,\\\\n Z_BEST_COMPRESSION: 9,\\\\n Z_DEFAULT_COMPRESSION: -1,\\\\n\\\\n\\\\n Z_FILTERED: 1,\\\\n Z_HUFFMAN_ONLY: 2,\\\\n Z_RLE: 3,\\\\n Z_FIXED: 4,\\\\n Z_DEFAULT_STRATEGY: 0,\\\\n\\\\n /* Possible values of the data_type field (though see inflate()) */\\\\n Z_BINARY: 0,\\\\n Z_TEXT: 1,\\\\n //Z_ASCII: 1, // = Z_TEXT (deprecated)\\\\n Z_UNKNOWN: 2,\\\\n\\\\n /* The deflate compression method */\\\\n Z_DEFLATED: 8\\\\n //Z_NULL: null // Use -1 or null inline, depending on var type\\\\n};\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/pako/lib/zlib/constants.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/pako/lib/zlib/crc32.js\\\":\\n/*!*********************************************!*\\\\\\n !*** ./node_modules/pako/lib/zlib/crc32.js ***!\\n \\\\*********************************************/\\n/*! no static exports found */\\n/***/ (function(module, exports, __webpack_require__) {\\n\\n\\\"use strict\\\";\\neval(\\\"\\\\n\\\\n// Note: we can't get significant speed boost here.\\\\n// So write code to minimize size - no pregenerated tables\\\\n// and array tools dependencies.\\\\n\\\\n// (C) 1995-2013 Jean-loup Gailly and Mark Adler\\\\n// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin\\\\n//\\\\n// This software is provided 'as-is', without any express or implied\\\\n// warranty. In no event will the authors be held liable for any damages\\\\n// arising from the use of this software.\\\\n//\\\\n// Permission is granted to anyone to use this software for any purpose,\\\\n// including commercial applications, and to alter it and redistribute it\\\\n// freely, subject to the following restrictions:\\\\n//\\\\n// 1. The origin of this software must not be misrepresented; you must not\\\\n// claim that you wrote the original software. If you use this software\\\\n// in a product, an acknowledgment in the product documentation would be\\\\n// appreciated but is not required.\\\\n// 2. Altered source versions must be plainly marked as such, and must not be\\\\n// misrepresented as being the original software.\\\\n// 3. This notice may not be removed or altered from any source distribution.\\\\n\\\\n// Use ordinary array, since untyped makes no boost here\\\\nfunction makeTable() {\\\\n var c, table = [];\\\\n\\\\n for (var n = 0; n < 256; n++) {\\\\n c = n;\\\\n for (var k = 0; k < 8; k++) {\\\\n c = ((c & 1) ? (0xEDB88320 ^ (c >>> 1)) : (c >>> 1));\\\\n }\\\\n table[n] = c;\\\\n }\\\\n\\\\n return table;\\\\n}\\\\n\\\\n// Create table on load. Just 255 signed longs. Not a problem.\\\\nvar crcTable = makeTable();\\\\n\\\\n\\\\nfunction crc32(crc, buf, len, pos) {\\\\n var t = crcTable,\\\\n end = pos + len;\\\\n\\\\n crc ^= -1;\\\\n\\\\n for (var i = pos; i < end; i++) {\\\\n crc = (crc >>> 8) ^ t[(crc ^ buf[i]) & 0xFF];\\\\n }\\\\n\\\\n return (crc ^ (-1)); // >>> 0;\\\\n}\\\\n\\\\n\\\\nmodule.exports = crc32;\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/pako/lib/zlib/crc32.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/pako/lib/zlib/gzheader.js\\\":\\n/*!************************************************!*\\\\\\n !*** ./node_modules/pako/lib/zlib/gzheader.js ***!\\n \\\\************************************************/\\n/*! no static exports found */\\n/***/ (function(module, exports, __webpack_require__) {\\n\\n\\\"use strict\\\";\\neval(\\\"\\\\n\\\\n// (C) 1995-2013 Jean-loup Gailly and Mark Adler\\\\n// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin\\\\n//\\\\n// This software is provided 'as-is', without any express or implied\\\\n// warranty. In no event will the authors be held liable for any damages\\\\n// arising from the use of this software.\\\\n//\\\\n// Permission is granted to anyone to use this software for any purpose,\\\\n// including commercial applications, and to alter it and redistribute it\\\\n// freely, subject to the following restrictions:\\\\n//\\\\n// 1. The origin of this software must not be misrepresented; you must not\\\\n// claim that you wrote the original software. If you use this software\\\\n// in a product, an acknowledgment in the product documentation would be\\\\n// appreciated but is not required.\\\\n// 2. Altered source versions must be plainly marked as such, and must not be\\\\n// misrepresented as being the original software.\\\\n// 3. This notice may not be removed or altered from any source distribution.\\\\n\\\\nfunction GZheader() {\\\\n /* true if compressed data believed to be text */\\\\n this.text = 0;\\\\n /* modification time */\\\\n this.time = 0;\\\\n /* extra flags (not used when writing a gzip file) */\\\\n this.xflags = 0;\\\\n /* operating system */\\\\n this.os = 0;\\\\n /* pointer to extra field or Z_NULL if none */\\\\n this.extra = null;\\\\n /* extra field length (valid if extra != Z_NULL) */\\\\n this.extra_len = 0; // Actually, we don't need it in JS,\\\\n // but leave for few code modifications\\\\n\\\\n //\\\\n // Setup limits is not necessary because in js we should not preallocate memory\\\\n // for inflate use constant limit in 65536 bytes\\\\n //\\\\n\\\\n /* space at extra (only when reading header) */\\\\n // this.extra_max = 0;\\\\n /* pointer to zero-terminated file name or Z_NULL */\\\\n this.name = '';\\\\n /* space at name (only when reading header) */\\\\n // this.name_max = 0;\\\\n /* pointer to zero-terminated comment or Z_NULL */\\\\n this.comment = '';\\\\n /* space at comment (only when reading header) */\\\\n // this.comm_max = 0;\\\\n /* true if there was or will be a header crc */\\\\n this.hcrc = 0;\\\\n /* true when done reading gzip header (not used when writing a gzip file) */\\\\n this.done = false;\\\\n}\\\\n\\\\nmodule.exports = GZheader;\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/pako/lib/zlib/gzheader.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/pako/lib/zlib/inffast.js\\\":\\n/*!***********************************************!*\\\\\\n !*** ./node_modules/pako/lib/zlib/inffast.js ***!\\n \\\\***********************************************/\\n/*! no static exports found */\\n/***/ (function(module, exports, __webpack_require__) {\\n\\n\\\"use strict\\\";\\neval(\\\"\\\\n\\\\n// (C) 1995-2013 Jean-loup Gailly and Mark Adler\\\\n// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin\\\\n//\\\\n// This software is provided 'as-is', without any express or implied\\\\n// warranty. In no event will the authors be held liable for any damages\\\\n// arising from the use of this software.\\\\n//\\\\n// Permission is granted to anyone to use this software for any purpose,\\\\n// including commercial applications, and to alter it and redistribute it\\\\n// freely, subject to the following restrictions:\\\\n//\\\\n// 1. The origin of this software must not be misrepresented; you must not\\\\n// claim that you wrote the original software. If you use this software\\\\n// in a product, an acknowledgment in the product documentation would be\\\\n// appreciated but is not required.\\\\n// 2. Altered source versions must be plainly marked as such, and must not be\\\\n// misrepresented as being the original software.\\\\n// 3. This notice may not be removed or altered from any source distribution.\\\\n\\\\n// See state defs from inflate.js\\\\nvar BAD = 30; /* got a data error -- remain here until reset */\\\\nvar TYPE = 12; /* i: waiting for type bits, including last-flag bit */\\\\n\\\\n/*\\\\n Decode literal, length, and distance codes and write out the resulting\\\\n literal and match bytes until either not enough input or output is\\\\n available, an end-of-block is encountered, or a data error is encountered.\\\\n When large enough input and output buffers are supplied to inflate(), for\\\\n example, a 16K input buffer and a 64K output buffer, more than 95% of the\\\\n inflate execution time is spent in this routine.\\\\n\\\\n Entry assumptions:\\\\n\\\\n state.mode === LEN\\\\n strm.avail_in >= 6\\\\n strm.avail_out >= 258\\\\n start >= strm.avail_out\\\\n state.bits < 8\\\\n\\\\n On return, state.mode is one of:\\\\n\\\\n LEN -- ran out of enough output space or enough available input\\\\n TYPE -- reached end of block code, inflate() to interpret next block\\\\n BAD -- error in block data\\\\n\\\\n Notes:\\\\n\\\\n - The maximum input bits used by a length/distance pair is 15 bits for the\\\\n length code, 5 bits for the length extra, 15 bits for the distance code,\\\\n and 13 bits for the distance extra. This totals 48 bits, or six bytes.\\\\n Therefore if strm.avail_in >= 6, then there is enough input to avoid\\\\n checking for available input while decoding.\\\\n\\\\n - The maximum bytes that a single length/distance pair can output is 258\\\\n bytes, which is the maximum length that can be coded. inflate_fast()\\\\n requires strm.avail_out >= 258 for each loop to avoid checking for\\\\n output space.\\\\n */\\\\nmodule.exports = function inflate_fast(strm, start) {\\\\n var state;\\\\n var _in; /* local strm.input */\\\\n var last; /* have enough input while in < last */\\\\n var _out; /* local strm.output */\\\\n var beg; /* inflate()'s initial strm.output */\\\\n var end; /* while out < end, enough space available */\\\\n//#ifdef INFLATE_STRICT\\\\n var dmax; /* maximum distance from zlib header */\\\\n//#endif\\\\n var wsize; /* window size or zero if not using window */\\\\n var whave; /* valid bytes in the window */\\\\n var wnext; /* window write index */\\\\n // Use `s_window` instead `window`, avoid conflict with instrumentation tools\\\\n var s_window; /* allocated sliding window, if wsize != 0 */\\\\n var hold; /* local strm.hold */\\\\n var bits; /* local strm.bits */\\\\n var lcode; /* local strm.lencode */\\\\n var dcode; /* local strm.distcode */\\\\n var lmask; /* mask for first level of length codes */\\\\n var dmask; /* mask for first level of distance codes */\\\\n var here; /* retrieved table entry */\\\\n var op; /* code bits, operation, extra bits, or */\\\\n /* window position, window bytes to copy */\\\\n var len; /* match length, unused bytes */\\\\n var dist; /* match distance */\\\\n var from; /* where to copy match from */\\\\n var from_source;\\\\n\\\\n\\\\n var input, output; // JS specific, because we have no pointers\\\\n\\\\n /* copy state to local variables */\\\\n state = strm.state;\\\\n //here = state.here;\\\\n _in = strm.next_in;\\\\n input = strm.input;\\\\n last = _in + (strm.avail_in - 5);\\\\n _out = strm.next_out;\\\\n output = strm.output;\\\\n beg = _out - (start - strm.avail_out);\\\\n end = _out + (strm.avail_out - 257);\\\\n//#ifdef INFLATE_STRICT\\\\n dmax = state.dmax;\\\\n//#endif\\\\n wsize = state.wsize;\\\\n whave = state.whave;\\\\n wnext = state.wnext;\\\\n s_window = state.window;\\\\n hold = state.hold;\\\\n bits = state.bits;\\\\n lcode = state.lencode;\\\\n dcode = state.distcode;\\\\n lmask = (1 << state.lenbits) - 1;\\\\n dmask = (1 << state.distbits) - 1;\\\\n\\\\n\\\\n /* decode literals and length/distances until end-of-block or not enough\\\\n input data or output space */\\\\n\\\\n top:\\\\n do {\\\\n if (bits < 15) {\\\\n hold += input[_in++] << bits;\\\\n bits += 8;\\\\n hold += input[_in++] << bits;\\\\n bits += 8;\\\\n }\\\\n\\\\n here = lcode[hold & lmask];\\\\n\\\\n dolen:\\\\n for (;;) { // Goto emulation\\\\n op = here >>> 24/*here.bits*/;\\\\n hold >>>= op;\\\\n bits -= op;\\\\n op = (here >>> 16) & 0xff/*here.op*/;\\\\n if (op === 0) { /* literal */\\\\n //Tracevv((stderr, here.val >= 0x20 && here.val < 0x7f ?\\\\n // \\\\\\\"inflate: literal '%c'\\\\\\\\n\\\\\\\" :\\\\n // \\\\\\\"inflate: literal 0x%02x\\\\\\\\n\\\\\\\", here.val));\\\\n output[_out++] = here & 0xffff/*here.val*/;\\\\n }\\\\n else if (op & 16) { /* length base */\\\\n len = here & 0xffff/*here.val*/;\\\\n op &= 15; /* number of extra bits */\\\\n if (op) {\\\\n if (bits < op) {\\\\n hold += input[_in++] << bits;\\\\n bits += 8;\\\\n }\\\\n len += hold & ((1 << op) - 1);\\\\n hold >>>= op;\\\\n bits -= op;\\\\n }\\\\n //Tracevv((stderr, \\\\\\\"inflate: length %u\\\\\\\\n\\\\\\\", len));\\\\n if (bits < 15) {\\\\n hold += input[_in++] << bits;\\\\n bits += 8;\\\\n hold += input[_in++] << bits;\\\\n bits += 8;\\\\n }\\\\n here = dcode[hold & dmask];\\\\n\\\\n dodist:\\\\n for (;;) { // goto emulation\\\\n op = here >>> 24/*here.bits*/;\\\\n hold >>>= op;\\\\n bits -= op;\\\\n op = (here >>> 16) & 0xff/*here.op*/;\\\\n\\\\n if (op & 16) { /* distance base */\\\\n dist = here & 0xffff/*here.val*/;\\\\n op &= 15; /* number of extra bits */\\\\n if (bits < op) {\\\\n hold += input[_in++] << bits;\\\\n bits += 8;\\\\n if (bits < op) {\\\\n hold += input[_in++] << bits;\\\\n bits += 8;\\\\n }\\\\n }\\\\n dist += hold & ((1 << op) - 1);\\\\n//#ifdef INFLATE_STRICT\\\\n if (dist > dmax) {\\\\n strm.msg = 'invalid distance too far back';\\\\n state.mode = BAD;\\\\n break top;\\\\n }\\\\n//#endif\\\\n hold >>>= op;\\\\n bits -= op;\\\\n //Tracevv((stderr, \\\\\\\"inflate: distance %u\\\\\\\\n\\\\\\\", dist));\\\\n op = _out - beg; /* max distance in output */\\\\n if (dist > op) { /* see if copy from window */\\\\n op = dist - op; /* distance back in window */\\\\n if (op > whave) {\\\\n if (state.sane) {\\\\n strm.msg = 'invalid distance too far back';\\\\n state.mode = BAD;\\\\n break top;\\\\n }\\\\n\\\\n// (!) This block is disabled in zlib defaults,\\\\n// don't enable it for binary compatibility\\\\n//#ifdef INFLATE_ALLOW_INVALID_DISTANCE_TOOFAR_ARRR\\\\n// if (len <= op - whave) {\\\\n// do {\\\\n// output[_out++] = 0;\\\\n// } while (--len);\\\\n// continue top;\\\\n// }\\\\n// len -= op - whave;\\\\n// do {\\\\n// output[_out++] = 0;\\\\n// } while (--op > whave);\\\\n// if (op === 0) {\\\\n// from = _out - dist;\\\\n// do {\\\\n// output[_out++] = output[from++];\\\\n// } while (--len);\\\\n// continue top;\\\\n// }\\\\n//#endif\\\\n }\\\\n from = 0; // window index\\\\n from_source = s_window;\\\\n if (wnext === 0) { /* very common case */\\\\n from += wsize - op;\\\\n if (op < len) { /* some from window */\\\\n len -= op;\\\\n do {\\\\n output[_out++] = s_window[from++];\\\\n } while (--op);\\\\n from = _out - dist; /* rest from output */\\\\n from_source = output;\\\\n }\\\\n }\\\\n else if (wnext < op) { /* wrap around window */\\\\n from += wsize + wnext - op;\\\\n op -= wnext;\\\\n if (op < len) { /* some from end of window */\\\\n len -= op;\\\\n do {\\\\n output[_out++] = s_window[from++];\\\\n } while (--op);\\\\n from = 0;\\\\n if (wnext < len) { /* some from start of window */\\\\n op = wnext;\\\\n len -= op;\\\\n do {\\\\n output[_out++] = s_window[from++];\\\\n } while (--op);\\\\n from = _out - dist; /* rest from output */\\\\n from_source = output;\\\\n }\\\\n }\\\\n }\\\\n else { /* contiguous in window */\\\\n from += wnext - op;\\\\n if (op < len) { /* some from window */\\\\n len -= op;\\\\n do {\\\\n output[_out++] = s_window[from++];\\\\n } while (--op);\\\\n from = _out - dist; /* rest from output */\\\\n from_source = output;\\\\n }\\\\n }\\\\n while (len > 2) {\\\\n output[_out++] = from_source[from++];\\\\n output[_out++] = from_source[from++];\\\\n output[_out++] = from_source[from++];\\\\n len -= 3;\\\\n }\\\\n if (len) {\\\\n output[_out++] = from_source[from++];\\\\n if (len > 1) {\\\\n output[_out++] = from_source[from++];\\\\n }\\\\n }\\\\n }\\\\n else {\\\\n from = _out - dist; /* copy direct from output */\\\\n do { /* minimum length is three */\\\\n output[_out++] = output[from++];\\\\n output[_out++] = output[from++];\\\\n output[_out++] = output[from++];\\\\n len -= 3;\\\\n } while (len > 2);\\\\n if (len) {\\\\n output[_out++] = output[from++];\\\\n if (len > 1) {\\\\n output[_out++] = output[from++];\\\\n }\\\\n }\\\\n }\\\\n }\\\\n else if ((op & 64) === 0) { /* 2nd level distance code */\\\\n here = dcode[(here & 0xffff)/*here.val*/ + (hold & ((1 << op) - 1))];\\\\n continue dodist;\\\\n }\\\\n else {\\\\n strm.msg = 'invalid distance code';\\\\n state.mode = BAD;\\\\n break top;\\\\n }\\\\n\\\\n break; // need to emulate goto via \\\\\\\"continue\\\\\\\"\\\\n }\\\\n }\\\\n else if ((op & 64) === 0) { /* 2nd level length code */\\\\n here = lcode[(here & 0xffff)/*here.val*/ + (hold & ((1 << op) - 1))];\\\\n continue dolen;\\\\n }\\\\n else if (op & 32) { /* end-of-block */\\\\n //Tracevv((stderr, \\\\\\\"inflate: end of block\\\\\\\\n\\\\\\\"));\\\\n state.mode = TYPE;\\\\n break top;\\\\n }\\\\n else {\\\\n strm.msg = 'invalid literal/length code';\\\\n state.mode = BAD;\\\\n break top;\\\\n }\\\\n\\\\n break; // need to emulate goto via \\\\\\\"continue\\\\\\\"\\\\n }\\\\n } while (_in < last && _out < end);\\\\n\\\\n /* return unused bytes (on entry, bits < 8, so in won't go too far back) */\\\\n len = bits >> 3;\\\\n _in -= len;\\\\n bits -= len << 3;\\\\n hold &= (1 << bits) - 1;\\\\n\\\\n /* update state and return */\\\\n strm.next_in = _in;\\\\n strm.next_out = _out;\\\\n strm.avail_in = (_in < last ? 5 + (last - _in) : 5 - (_in - last));\\\\n strm.avail_out = (_out < end ? 257 + (end - _out) : 257 - (_out - end));\\\\n state.hold = hold;\\\\n state.bits = bits;\\\\n return;\\\\n};\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/pako/lib/zlib/inffast.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/pako/lib/zlib/inflate.js\\\":\\n/*!***********************************************!*\\\\\\n !*** ./node_modules/pako/lib/zlib/inflate.js ***!\\n \\\\***********************************************/\\n/*! no static exports found */\\n/***/ (function(module, exports, __webpack_require__) {\\n\\n\\\"use strict\\\";\\neval(\\\"\\\\n\\\\n// (C) 1995-2013 Jean-loup Gailly and Mark Adler\\\\n// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin\\\\n//\\\\n// This software is provided 'as-is', without any express or implied\\\\n// warranty. In no event will the authors be held liable for any damages\\\\n// arising from the use of this software.\\\\n//\\\\n// Permission is granted to anyone to use this software for any purpose,\\\\n// including commercial applications, and to alter it and redistribute it\\\\n// freely, subject to the following restrictions:\\\\n//\\\\n// 1. The origin of this software must not be misrepresented; you must not\\\\n// claim that you wrote the original software. If you use this software\\\\n// in a product, an acknowledgment in the product documentation would be\\\\n// appreciated but is not required.\\\\n// 2. Altered source versions must be plainly marked as such, and must not be\\\\n// misrepresented as being the original software.\\\\n// 3. This notice may not be removed or altered from any source distribution.\\\\n\\\\nvar utils = __webpack_require__(/*! ../utils/common */ \\\\\\\"./node_modules/pako/lib/utils/common.js\\\\\\\");\\\\nvar adler32 = __webpack_require__(/*! ./adler32 */ \\\\\\\"./node_modules/pako/lib/zlib/adler32.js\\\\\\\");\\\\nvar crc32 = __webpack_require__(/*! ./crc32 */ \\\\\\\"./node_modules/pako/lib/zlib/crc32.js\\\\\\\");\\\\nvar inflate_fast = __webpack_require__(/*! ./inffast */ \\\\\\\"./node_modules/pako/lib/zlib/inffast.js\\\\\\\");\\\\nvar inflate_table = __webpack_require__(/*! ./inftrees */ \\\\\\\"./node_modules/pako/lib/zlib/inftrees.js\\\\\\\");\\\\n\\\\nvar CODES = 0;\\\\nvar LENS = 1;\\\\nvar DISTS = 2;\\\\n\\\\n/* Public constants ==========================================================*/\\\\n/* ===========================================================================*/\\\\n\\\\n\\\\n/* Allowed flush values; see deflate() and inflate() below for details */\\\\n//var Z_NO_FLUSH = 0;\\\\n//var Z_PARTIAL_FLUSH = 1;\\\\n//var Z_SYNC_FLUSH = 2;\\\\n//var Z_FULL_FLUSH = 3;\\\\nvar Z_FINISH = 4;\\\\nvar Z_BLOCK = 5;\\\\nvar Z_TREES = 6;\\\\n\\\\n\\\\n/* Return codes for the compression/decompression functions. Negative values\\\\n * are errors, positive values are used for special but normal events.\\\\n */\\\\nvar Z_OK = 0;\\\\nvar Z_STREAM_END = 1;\\\\nvar Z_NEED_DICT = 2;\\\\n//var Z_ERRNO = -1;\\\\nvar Z_STREAM_ERROR = -2;\\\\nvar Z_DATA_ERROR = -3;\\\\nvar Z_MEM_ERROR = -4;\\\\nvar Z_BUF_ERROR = -5;\\\\n//var Z_VERSION_ERROR = -6;\\\\n\\\\n/* The deflate compression method */\\\\nvar Z_DEFLATED = 8;\\\\n\\\\n\\\\n/* STATES ====================================================================*/\\\\n/* ===========================================================================*/\\\\n\\\\n\\\\nvar HEAD = 1; /* i: waiting for magic header */\\\\nvar FLAGS = 2; /* i: waiting for method and flags (gzip) */\\\\nvar TIME = 3; /* i: waiting for modification time (gzip) */\\\\nvar OS = 4; /* i: waiting for extra flags and operating system (gzip) */\\\\nvar EXLEN = 5; /* i: waiting for extra length (gzip) */\\\\nvar EXTRA = 6; /* i: waiting for extra bytes (gzip) */\\\\nvar NAME = 7; /* i: waiting for end of file name (gzip) */\\\\nvar COMMENT = 8; /* i: waiting for end of comment (gzip) */\\\\nvar HCRC = 9; /* i: waiting for header crc (gzip) */\\\\nvar DICTID = 10; /* i: waiting for dictionary check value */\\\\nvar DICT = 11; /* waiting for inflateSetDictionary() call */\\\\nvar TYPE = 12; /* i: waiting for type bits, including last-flag bit */\\\\nvar TYPEDO = 13; /* i: same, but skip check to exit inflate on new block */\\\\nvar STORED = 14; /* i: waiting for stored size (length and complement) */\\\\nvar COPY_ = 15; /* i/o: same as COPY below, but only first time in */\\\\nvar COPY = 16; /* i/o: waiting for input or output to copy stored block */\\\\nvar TABLE = 17; /* i: waiting for dynamic block table lengths */\\\\nvar LENLENS = 18; /* i: waiting for code length code lengths */\\\\nvar CODELENS = 19; /* i: waiting for length/lit and distance code lengths */\\\\nvar LEN_ = 20; /* i: same as LEN below, but only first time in */\\\\nvar LEN = 21; /* i: waiting for length/lit/eob code */\\\\nvar LENEXT = 22; /* i: waiting for length extra bits */\\\\nvar DIST = 23; /* i: waiting for distance code */\\\\nvar DISTEXT = 24; /* i: waiting for distance extra bits */\\\\nvar MATCH = 25; /* o: waiting for output space to copy string */\\\\nvar LIT = 26; /* o: waiting for output space to write literal */\\\\nvar CHECK = 27; /* i: waiting for 32-bit check value */\\\\nvar LENGTH = 28; /* i: waiting for 32-bit length (gzip) */\\\\nvar DONE = 29; /* finished check, done -- remain here until reset */\\\\nvar BAD = 30; /* got a data error -- remain here until reset */\\\\nvar MEM = 31; /* got an inflate() memory error -- remain here until reset */\\\\nvar SYNC = 32; /* looking for synchronization bytes to restart inflate() */\\\\n\\\\n/* ===========================================================================*/\\\\n\\\\n\\\\n\\\\nvar ENOUGH_LENS = 852;\\\\nvar ENOUGH_DISTS = 592;\\\\n//var ENOUGH = (ENOUGH_LENS+ENOUGH_DISTS);\\\\n\\\\nvar MAX_WBITS = 15;\\\\n/* 32K LZ77 window */\\\\nvar DEF_WBITS = MAX_WBITS;\\\\n\\\\n\\\\nfunction zswap32(q) {\\\\n return (((q >>> 24) & 0xff) +\\\\n ((q >>> 8) & 0xff00) +\\\\n ((q & 0xff00) << 8) +\\\\n ((q & 0xff) << 24));\\\\n}\\\\n\\\\n\\\\nfunction InflateState() {\\\\n this.mode = 0; /* current inflate mode */\\\\n this.last = false; /* true if processing last block */\\\\n this.wrap = 0; /* bit 0 true for zlib, bit 1 true for gzip */\\\\n this.havedict = false; /* true if dictionary provided */\\\\n this.flags = 0; /* gzip header method and flags (0 if zlib) */\\\\n this.dmax = 0; /* zlib header max distance (INFLATE_STRICT) */\\\\n this.check = 0; /* protected copy of check value */\\\\n this.total = 0; /* protected copy of output count */\\\\n // TODO: may be {}\\\\n this.head = null; /* where to save gzip header information */\\\\n\\\\n /* sliding window */\\\\n this.wbits = 0; /* log base 2 of requested window size */\\\\n this.wsize = 0; /* window size or zero if not using window */\\\\n this.whave = 0; /* valid bytes in the window */\\\\n this.wnext = 0; /* window write index */\\\\n this.window = null; /* allocated sliding window, if needed */\\\\n\\\\n /* bit accumulator */\\\\n this.hold = 0; /* input bit accumulator */\\\\n this.bits = 0; /* number of bits in \\\\\\\"in\\\\\\\" */\\\\n\\\\n /* for string and stored block copying */\\\\n this.length = 0; /* literal or length of data to copy */\\\\n this.offset = 0; /* distance back to copy string from */\\\\n\\\\n /* for table and code decoding */\\\\n this.extra = 0; /* extra bits needed */\\\\n\\\\n /* fixed and dynamic code tables */\\\\n this.lencode = null; /* starting table for length/literal codes */\\\\n this.distcode = null; /* starting table for distance codes */\\\\n this.lenbits = 0; /* index bits for lencode */\\\\n this.distbits = 0; /* index bits for distcode */\\\\n\\\\n /* dynamic table building */\\\\n this.ncode = 0; /* number of code length code lengths */\\\\n this.nlen = 0; /* number of length code lengths */\\\\n this.ndist = 0; /* number of distance code lengths */\\\\n this.have = 0; /* number of code lengths in lens[] */\\\\n this.next = null; /* next available space in codes[] */\\\\n\\\\n this.lens = new utils.Buf16(320); /* temporary storage for code lengths */\\\\n this.work = new utils.Buf16(288); /* work area for code table building */\\\\n\\\\n /*\\\\n because we don't have pointers in js, we use lencode and distcode directly\\\\n as buffers so we don't need codes\\\\n */\\\\n //this.codes = new utils.Buf32(ENOUGH); /* space for code tables */\\\\n this.lendyn = null; /* dynamic table for length/literal codes (JS specific) */\\\\n this.distdyn = null; /* dynamic table for distance codes (JS specific) */\\\\n this.sane = 0; /* if false, allow invalid distance too far */\\\\n this.back = 0; /* bits back of last unprocessed length/lit */\\\\n this.was = 0; /* initial length of match */\\\\n}\\\\n\\\\nfunction inflateResetKeep(strm) {\\\\n var state;\\\\n\\\\n if (!strm || !strm.state) { return Z_STREAM_ERROR; }\\\\n state = strm.state;\\\\n strm.total_in = strm.total_out = state.total = 0;\\\\n strm.msg = ''; /*Z_NULL*/\\\\n if (state.wrap) { /* to support ill-conceived Java test suite */\\\\n strm.adler = state.wrap & 1;\\\\n }\\\\n state.mode = HEAD;\\\\n state.last = 0;\\\\n state.havedict = 0;\\\\n state.dmax = 32768;\\\\n state.head = null/*Z_NULL*/;\\\\n state.hold = 0;\\\\n state.bits = 0;\\\\n //state.lencode = state.distcode = state.next = state.codes;\\\\n state.lencode = state.lendyn = new utils.Buf32(ENOUGH_LENS);\\\\n state.distcode = state.distdyn = new utils.Buf32(ENOUGH_DISTS);\\\\n\\\\n state.sane = 1;\\\\n state.back = -1;\\\\n //Tracev((stderr, \\\\\\\"inflate: reset\\\\\\\\n\\\\\\\"));\\\\n return Z_OK;\\\\n}\\\\n\\\\nfunction inflateReset(strm) {\\\\n var state;\\\\n\\\\n if (!strm || !strm.state) { return Z_STREAM_ERROR; }\\\\n state = strm.state;\\\\n state.wsize = 0;\\\\n state.whave = 0;\\\\n state.wnext = 0;\\\\n return inflateResetKeep(strm);\\\\n\\\\n}\\\\n\\\\nfunction inflateReset2(strm, windowBits) {\\\\n var wrap;\\\\n var state;\\\\n\\\\n /* get the state */\\\\n if (!strm || !strm.state) { return Z_STREAM_ERROR; }\\\\n state = strm.state;\\\\n\\\\n /* extract wrap request from windowBits parameter */\\\\n if (windowBits < 0) {\\\\n wrap = 0;\\\\n windowBits = -windowBits;\\\\n }\\\\n else {\\\\n wrap = (windowBits >> 4) + 1;\\\\n if (windowBits < 48) {\\\\n windowBits &= 15;\\\\n }\\\\n }\\\\n\\\\n /* set number of window bits, free window if different */\\\\n if (windowBits && (windowBits < 8 || windowBits > 15)) {\\\\n return Z_STREAM_ERROR;\\\\n }\\\\n if (state.window !== null && state.wbits !== windowBits) {\\\\n state.window = null;\\\\n }\\\\n\\\\n /* update state and reset the rest of it */\\\\n state.wrap = wrap;\\\\n state.wbits = windowBits;\\\\n return inflateReset(strm);\\\\n}\\\\n\\\\nfunction inflateInit2(strm, windowBits) {\\\\n var ret;\\\\n var state;\\\\n\\\\n if (!strm) { return Z_STREAM_ERROR; }\\\\n //strm.msg = Z_NULL; /* in case we return an error */\\\\n\\\\n state = new InflateState();\\\\n\\\\n //if (state === Z_NULL) return Z_MEM_ERROR;\\\\n //Tracev((stderr, \\\\\\\"inflate: allocated\\\\\\\\n\\\\\\\"));\\\\n strm.state = state;\\\\n state.window = null/*Z_NULL*/;\\\\n ret = inflateReset2(strm, windowBits);\\\\n if (ret !== Z_OK) {\\\\n strm.state = null/*Z_NULL*/;\\\\n }\\\\n return ret;\\\\n}\\\\n\\\\nfunction inflateInit(strm) {\\\\n return inflateInit2(strm, DEF_WBITS);\\\\n}\\\\n\\\\n\\\\n/*\\\\n Return state with length and distance decoding tables and index sizes set to\\\\n fixed code decoding. Normally this returns fixed tables from inffixed.h.\\\\n If BUILDFIXED is defined, then instead this routine builds the tables the\\\\n first time it's called, and returns those tables the first time and\\\\n thereafter. This reduces the size of the code by about 2K bytes, in\\\\n exchange for a little execution time. However, BUILDFIXED should not be\\\\n used for threaded applications, since the rewriting of the tables and virgin\\\\n may not be thread-safe.\\\\n */\\\\nvar virgin = true;\\\\n\\\\nvar lenfix, distfix; // We have no pointers in JS, so keep tables separate\\\\n\\\\nfunction fixedtables(state) {\\\\n /* build fixed huffman tables if first call (may not be thread safe) */\\\\n if (virgin) {\\\\n var sym;\\\\n\\\\n lenfix = new utils.Buf32(512);\\\\n distfix = new utils.Buf32(32);\\\\n\\\\n /* literal/length table */\\\\n sym = 0;\\\\n while (sym < 144) { state.lens[sym++] = 8; }\\\\n while (sym < 256) { state.lens[sym++] = 9; }\\\\n while (sym < 280) { state.lens[sym++] = 7; }\\\\n while (sym < 288) { state.lens[sym++] = 8; }\\\\n\\\\n inflate_table(LENS, state.lens, 0, 288, lenfix, 0, state.work, { bits: 9 });\\\\n\\\\n /* distance table */\\\\n sym = 0;\\\\n while (sym < 32) { state.lens[sym++] = 5; }\\\\n\\\\n inflate_table(DISTS, state.lens, 0, 32, distfix, 0, state.work, { bits: 5 });\\\\n\\\\n /* do this just once */\\\\n virgin = false;\\\\n }\\\\n\\\\n state.lencode = lenfix;\\\\n state.lenbits = 9;\\\\n state.distcode = distfix;\\\\n state.distbits = 5;\\\\n}\\\\n\\\\n\\\\n/*\\\\n Update the window with the last wsize (normally 32K) bytes written before\\\\n returning. If window does not exist yet, create it. This is only called\\\\n when a window is already in use, or when output has been written during this\\\\n inflate call, but the end of the deflate stream has not been reached yet.\\\\n It is also called to create a window for dictionary data when a dictionary\\\\n is loaded.\\\\n\\\\n Providing output buffers larger than 32K to inflate() should provide a speed\\\\n advantage, since only the last 32K of output is copied to the sliding window\\\\n upon return from inflate(), and since all distances after the first 32K of\\\\n output will fall in the output data, making match copies simpler and faster.\\\\n The advantage may be dependent on the size of the processor's data caches.\\\\n */\\\\nfunction updatewindow(strm, src, end, copy) {\\\\n var dist;\\\\n var state = strm.state;\\\\n\\\\n /* if it hasn't been done already, allocate space for the window */\\\\n if (state.window === null) {\\\\n state.wsize = 1 << state.wbits;\\\\n state.wnext = 0;\\\\n state.whave = 0;\\\\n\\\\n state.window = new utils.Buf8(state.wsize);\\\\n }\\\\n\\\\n /* copy state->wsize or less output bytes into the circular window */\\\\n if (copy >= state.wsize) {\\\\n utils.arraySet(state.window, src, end - state.wsize, state.wsize, 0);\\\\n state.wnext = 0;\\\\n state.whave = state.wsize;\\\\n }\\\\n else {\\\\n dist = state.wsize - state.wnext;\\\\n if (dist > copy) {\\\\n dist = copy;\\\\n }\\\\n //zmemcpy(state->window + state->wnext, end - copy, dist);\\\\n utils.arraySet(state.window, src, end - copy, dist, state.wnext);\\\\n copy -= dist;\\\\n if (copy) {\\\\n //zmemcpy(state->window, end - copy, copy);\\\\n utils.arraySet(state.window, src, end - copy, copy, 0);\\\\n state.wnext = copy;\\\\n state.whave = state.wsize;\\\\n }\\\\n else {\\\\n state.wnext += dist;\\\\n if (state.wnext === state.wsize) { state.wnext = 0; }\\\\n if (state.whave < state.wsize) { state.whave += dist; }\\\\n }\\\\n }\\\\n return 0;\\\\n}\\\\n\\\\nfunction inflate(strm, flush) {\\\\n var state;\\\\n var input, output; // input/output buffers\\\\n var next; /* next input INDEX */\\\\n var put; /* next output INDEX */\\\\n var have, left; /* available input and output */\\\\n var hold; /* bit buffer */\\\\n var bits; /* bits in bit buffer */\\\\n var _in, _out; /* save starting available input and output */\\\\n var copy; /* number of stored or match bytes to copy */\\\\n var from; /* where to copy match bytes from */\\\\n var from_source;\\\\n var here = 0; /* current decoding table entry */\\\\n var here_bits, here_op, here_val; // paked \\\\\\\"here\\\\\\\" denormalized (JS specific)\\\\n //var last; /* parent table entry */\\\\n var last_bits, last_op, last_val; // paked \\\\\\\"last\\\\\\\" denormalized (JS specific)\\\\n var len; /* length to copy for repeats, bits to drop */\\\\n var ret; /* return code */\\\\n var hbuf = new utils.Buf8(4); /* buffer for gzip header crc calculation */\\\\n var opts;\\\\n\\\\n var n; // temporary var for NEED_BITS\\\\n\\\\n var order = /* permutation of code lengths */\\\\n [ 16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15 ];\\\\n\\\\n\\\\n if (!strm || !strm.state || !strm.output ||\\\\n (!strm.input && strm.avail_in !== 0)) {\\\\n return Z_STREAM_ERROR;\\\\n }\\\\n\\\\n state = strm.state;\\\\n if (state.mode === TYPE) { state.mode = TYPEDO; } /* skip check */\\\\n\\\\n\\\\n //--- LOAD() ---\\\\n put = strm.next_out;\\\\n output = strm.output;\\\\n left = strm.avail_out;\\\\n next = strm.next_in;\\\\n input = strm.input;\\\\n have = strm.avail_in;\\\\n hold = state.hold;\\\\n bits = state.bits;\\\\n //---\\\\n\\\\n _in = have;\\\\n _out = left;\\\\n ret = Z_OK;\\\\n\\\\n inf_leave: // goto emulation\\\\n for (;;) {\\\\n switch (state.mode) {\\\\n case HEAD:\\\\n if (state.wrap === 0) {\\\\n state.mode = TYPEDO;\\\\n break;\\\\n }\\\\n //=== NEEDBITS(16);\\\\n while (bits < 16) {\\\\n if (have === 0) { break inf_leave; }\\\\n have--;\\\\n hold += input[next++] << bits;\\\\n bits += 8;\\\\n }\\\\n //===//\\\\n if ((state.wrap & 2) && hold === 0x8b1f) { /* gzip header */\\\\n state.check = 0/*crc32(0L, Z_NULL, 0)*/;\\\\n //=== CRC2(state.check, hold);\\\\n hbuf[0] = hold & 0xff;\\\\n hbuf[1] = (hold >>> 8) & 0xff;\\\\n state.check = crc32(state.check, hbuf, 2, 0);\\\\n //===//\\\\n\\\\n //=== INITBITS();\\\\n hold = 0;\\\\n bits = 0;\\\\n //===//\\\\n state.mode = FLAGS;\\\\n break;\\\\n }\\\\n state.flags = 0; /* expect zlib header */\\\\n if (state.head) {\\\\n state.head.done = false;\\\\n }\\\\n if (!(state.wrap & 1) || /* check if zlib header allowed */\\\\n (((hold & 0xff)/*BITS(8)*/ << 8) + (hold >> 8)) % 31) {\\\\n strm.msg = 'incorrect header check';\\\\n state.mode = BAD;\\\\n break;\\\\n }\\\\n if ((hold & 0x0f)/*BITS(4)*/ !== Z_DEFLATED) {\\\\n strm.msg = 'unknown compression method';\\\\n state.mode = BAD;\\\\n break;\\\\n }\\\\n //--- DROPBITS(4) ---//\\\\n hold >>>= 4;\\\\n bits -= 4;\\\\n //---//\\\\n len = (hold & 0x0f)/*BITS(4)*/ + 8;\\\\n if (state.wbits === 0) {\\\\n state.wbits = len;\\\\n }\\\\n else if (len > state.wbits) {\\\\n strm.msg = 'invalid window size';\\\\n state.mode = BAD;\\\\n break;\\\\n }\\\\n state.dmax = 1 << len;\\\\n //Tracev((stderr, \\\\\\\"inflate: zlib header ok\\\\\\\\n\\\\\\\"));\\\\n strm.adler = state.check = 1/*adler32(0L, Z_NULL, 0)*/;\\\\n state.mode = hold & 0x200 ? DICTID : TYPE;\\\\n //=== INITBITS();\\\\n hold = 0;\\\\n bits = 0;\\\\n //===//\\\\n break;\\\\n case FLAGS:\\\\n //=== NEEDBITS(16); */\\\\n while (bits < 16) {\\\\n if (have === 0) { break inf_leave; }\\\\n have--;\\\\n hold += input[next++] << bits;\\\\n bits += 8;\\\\n }\\\\n //===//\\\\n state.flags = hold;\\\\n if ((state.flags & 0xff) !== Z_DEFLATED) {\\\\n strm.msg = 'unknown compression method';\\\\n state.mode = BAD;\\\\n break;\\\\n }\\\\n if (state.flags & 0xe000) {\\\\n strm.msg = 'unknown header flags set';\\\\n state.mode = BAD;\\\\n break;\\\\n }\\\\n if (state.head) {\\\\n state.head.text = ((hold >> 8) & 1);\\\\n }\\\\n if (state.flags & 0x0200) {\\\\n //=== CRC2(state.check, hold);\\\\n hbuf[0] = hold & 0xff;\\\\n hbuf[1] = (hold >>> 8) & 0xff;\\\\n state.check = crc32(state.check, hbuf, 2, 0);\\\\n //===//\\\\n }\\\\n //=== INITBITS();\\\\n hold = 0;\\\\n bits = 0;\\\\n //===//\\\\n state.mode = TIME;\\\\n /* falls through */\\\\n case TIME:\\\\n //=== NEEDBITS(32); */\\\\n while (bits < 32) {\\\\n if (have === 0) { break inf_leave; }\\\\n have--;\\\\n hold += input[next++] << bits;\\\\n bits += 8;\\\\n }\\\\n //===//\\\\n if (state.head) {\\\\n state.head.time = hold;\\\\n }\\\\n if (state.flags & 0x0200) {\\\\n //=== CRC4(state.check, hold)\\\\n hbuf[0] = hold & 0xff;\\\\n hbuf[1] = (hold >>> 8) & 0xff;\\\\n hbuf[2] = (hold >>> 16) & 0xff;\\\\n hbuf[3] = (hold >>> 24) & 0xff;\\\\n state.check = crc32(state.check, hbuf, 4, 0);\\\\n //===\\\\n }\\\\n //=== INITBITS();\\\\n hold = 0;\\\\n bits = 0;\\\\n //===//\\\\n state.mode = OS;\\\\n /* falls through */\\\\n case OS:\\\\n //=== NEEDBITS(16); */\\\\n while (bits < 16) {\\\\n if (have === 0) { break inf_leave; }\\\\n have--;\\\\n hold += input[next++] << bits;\\\\n bits += 8;\\\\n }\\\\n //===//\\\\n if (state.head) {\\\\n state.head.xflags = (hold & 0xff);\\\\n state.head.os = (hold >> 8);\\\\n }\\\\n if (state.flags & 0x0200) {\\\\n //=== CRC2(state.check, hold);\\\\n hbuf[0] = hold & 0xff;\\\\n hbuf[1] = (hold >>> 8) & 0xff;\\\\n state.check = crc32(state.check, hbuf, 2, 0);\\\\n //===//\\\\n }\\\\n //=== INITBITS();\\\\n hold = 0;\\\\n bits = 0;\\\\n //===//\\\\n state.mode = EXLEN;\\\\n /* falls through */\\\\n case EXLEN:\\\\n if (state.flags & 0x0400) {\\\\n //=== NEEDBITS(16); */\\\\n while (bits < 16) {\\\\n if (have === 0) { break inf_leave; }\\\\n have--;\\\\n hold += input[next++] << bits;\\\\n bits += 8;\\\\n }\\\\n //===//\\\\n state.length = hold;\\\\n if (state.head) {\\\\n state.head.extra_len = hold;\\\\n }\\\\n if (state.flags & 0x0200) {\\\\n //=== CRC2(state.check, hold);\\\\n hbuf[0] = hold & 0xff;\\\\n hbuf[1] = (hold >>> 8) & 0xff;\\\\n state.check = crc32(state.check, hbuf, 2, 0);\\\\n //===//\\\\n }\\\\n //=== INITBITS();\\\\n hold = 0;\\\\n bits = 0;\\\\n //===//\\\\n }\\\\n else if (state.head) {\\\\n state.head.extra = null/*Z_NULL*/;\\\\n }\\\\n state.mode = EXTRA;\\\\n /* falls through */\\\\n case EXTRA:\\\\n if (state.flags & 0x0400) {\\\\n copy = state.length;\\\\n if (copy > have) { copy = have; }\\\\n if (copy) {\\\\n if (state.head) {\\\\n len = state.head.extra_len - state.length;\\\\n if (!state.head.extra) {\\\\n // Use untyped array for more convenient processing later\\\\n state.head.extra = new Array(state.head.extra_len);\\\\n }\\\\n utils.arraySet(\\\\n state.head.extra,\\\\n input,\\\\n next,\\\\n // extra field is limited to 65536 bytes\\\\n // - no need for additional size check\\\\n copy,\\\\n /*len + copy > state.head.extra_max - len ? state.head.extra_max : copy,*/\\\\n len\\\\n );\\\\n //zmemcpy(state.head.extra + len, next,\\\\n // len + copy > state.head.extra_max ?\\\\n // state.head.extra_max - len : copy);\\\\n }\\\\n if (state.flags & 0x0200) {\\\\n state.check = crc32(state.check, input, copy, next);\\\\n }\\\\n have -= copy;\\\\n next += copy;\\\\n state.length -= copy;\\\\n }\\\\n if (state.length) { break inf_leave; }\\\\n }\\\\n state.length = 0;\\\\n state.mode = NAME;\\\\n /* falls through */\\\\n case NAME:\\\\n if (state.flags & 0x0800) {\\\\n if (have === 0) { break inf_leave; }\\\\n copy = 0;\\\\n do {\\\\n // TODO: 2 or 1 bytes?\\\\n len = input[next + copy++];\\\\n /* use constant limit because in js we should not preallocate memory */\\\\n if (state.head && len &&\\\\n (state.length < 65536 /*state.head.name_max*/)) {\\\\n state.head.name += String.fromCharCode(len);\\\\n }\\\\n } while (len && copy < have);\\\\n\\\\n if (state.flags & 0x0200) {\\\\n state.check = crc32(state.check, input, copy, next);\\\\n }\\\\n have -= copy;\\\\n next += copy;\\\\n if (len) { break inf_leave; }\\\\n }\\\\n else if (state.head) {\\\\n state.head.name = null;\\\\n }\\\\n state.length = 0;\\\\n state.mode = COMMENT;\\\\n /* falls through */\\\\n case COMMENT:\\\\n if (state.flags & 0x1000) {\\\\n if (have === 0) { break inf_leave; }\\\\n copy = 0;\\\\n do {\\\\n len = input[next + copy++];\\\\n /* use constant limit because in js we should not preallocate memory */\\\\n if (state.head && len &&\\\\n (state.length < 65536 /*state.head.comm_max*/)) {\\\\n state.head.comment += String.fromCharCode(len);\\\\n }\\\\n } while (len && copy < have);\\\\n if (state.flags & 0x0200) {\\\\n state.check = crc32(state.check, input, copy, next);\\\\n }\\\\n have -= copy;\\\\n next += copy;\\\\n if (len) { break inf_leave; }\\\\n }\\\\n else if (state.head) {\\\\n state.head.comment = null;\\\\n }\\\\n state.mode = HCRC;\\\\n /* falls through */\\\\n case HCRC:\\\\n if (state.flags & 0x0200) {\\\\n //=== NEEDBITS(16); */\\\\n while (bits < 16) {\\\\n if (have === 0) { break inf_leave; }\\\\n have--;\\\\n hold += input[next++] << bits;\\\\n bits += 8;\\\\n }\\\\n //===//\\\\n if (hold !== (state.check & 0xffff)) {\\\\n strm.msg = 'header crc mismatch';\\\\n state.mode = BAD;\\\\n break;\\\\n }\\\\n //=== INITBITS();\\\\n hold = 0;\\\\n bits = 0;\\\\n //===//\\\\n }\\\\n if (state.head) {\\\\n state.head.hcrc = ((state.flags >> 9) & 1);\\\\n state.head.done = true;\\\\n }\\\\n strm.adler = state.check = 0;\\\\n state.mode = TYPE;\\\\n break;\\\\n case DICTID:\\\\n //=== NEEDBITS(32); */\\\\n while (bits < 32) {\\\\n if (have === 0) { break inf_leave; }\\\\n have--;\\\\n hold += input[next++] << bits;\\\\n bits += 8;\\\\n }\\\\n //===//\\\\n strm.adler = state.check = zswap32(hold);\\\\n //=== INITBITS();\\\\n hold = 0;\\\\n bits = 0;\\\\n //===//\\\\n state.mode = DICT;\\\\n /* falls through */\\\\n case DICT:\\\\n if (state.havedict === 0) {\\\\n //--- RESTORE() ---\\\\n strm.next_out = put;\\\\n strm.avail_out = left;\\\\n strm.next_in = next;\\\\n strm.avail_in = have;\\\\n state.hold = hold;\\\\n state.bits = bits;\\\\n //---\\\\n return Z_NEED_DICT;\\\\n }\\\\n strm.adler = state.check = 1/*adler32(0L, Z_NULL, 0)*/;\\\\n state.mode = TYPE;\\\\n /* falls through */\\\\n case TYPE:\\\\n if (flush === Z_BLOCK || flush === Z_TREES) { break inf_leave; }\\\\n /* falls through */\\\\n case TYPEDO:\\\\n if (state.last) {\\\\n //--- BYTEBITS() ---//\\\\n hold >>>= bits & 7;\\\\n bits -= bits & 7;\\\\n //---//\\\\n state.mode = CHECK;\\\\n break;\\\\n }\\\\n //=== NEEDBITS(3); */\\\\n while (bits < 3) {\\\\n if (have === 0) { break inf_leave; }\\\\n have--;\\\\n hold += input[next++] << bits;\\\\n bits += 8;\\\\n }\\\\n //===//\\\\n state.last = (hold & 0x01)/*BITS(1)*/;\\\\n //--- DROPBITS(1) ---//\\\\n hold >>>= 1;\\\\n bits -= 1;\\\\n //---//\\\\n\\\\n switch ((hold & 0x03)/*BITS(2)*/) {\\\\n case 0: /* stored block */\\\\n //Tracev((stderr, \\\\\\\"inflate: stored block%s\\\\\\\\n\\\\\\\",\\\\n // state.last ? \\\\\\\" (last)\\\\\\\" : \\\\\\\"\\\\\\\"));\\\\n state.mode = STORED;\\\\n break;\\\\n case 1: /* fixed block */\\\\n fixedtables(state);\\\\n //Tracev((stderr, \\\\\\\"inflate: fixed codes block%s\\\\\\\\n\\\\\\\",\\\\n // state.last ? \\\\\\\" (last)\\\\\\\" : \\\\\\\"\\\\\\\"));\\\\n state.mode = LEN_; /* decode codes */\\\\n if (flush === Z_TREES) {\\\\n //--- DROPBITS(2) ---//\\\\n hold >>>= 2;\\\\n bits -= 2;\\\\n //---//\\\\n break inf_leave;\\\\n }\\\\n break;\\\\n case 2: /* dynamic block */\\\\n //Tracev((stderr, \\\\\\\"inflate: dynamic codes block%s\\\\\\\\n\\\\\\\",\\\\n // state.last ? \\\\\\\" (last)\\\\\\\" : \\\\\\\"\\\\\\\"));\\\\n state.mode = TABLE;\\\\n break;\\\\n case 3:\\\\n strm.msg = 'invalid block type';\\\\n state.mode = BAD;\\\\n }\\\\n //--- DROPBITS(2) ---//\\\\n hold >>>= 2;\\\\n bits -= 2;\\\\n //---//\\\\n break;\\\\n case STORED:\\\\n //--- BYTEBITS() ---// /* go to byte boundary */\\\\n hold >>>= bits & 7;\\\\n bits -= bits & 7;\\\\n //---//\\\\n //=== NEEDBITS(32); */\\\\n while (bits < 32) {\\\\n if (have === 0) { break inf_leave; }\\\\n have--;\\\\n hold += input[next++] << bits;\\\\n bits += 8;\\\\n }\\\\n //===//\\\\n if ((hold & 0xffff) !== ((hold >>> 16) ^ 0xffff)) {\\\\n strm.msg = 'invalid stored block lengths';\\\\n state.mode = BAD;\\\\n break;\\\\n }\\\\n state.length = hold & 0xffff;\\\\n //Tracev((stderr, \\\\\\\"inflate: stored length %u\\\\\\\\n\\\\\\\",\\\\n // state.length));\\\\n //=== INITBITS();\\\\n hold = 0;\\\\n bits = 0;\\\\n //===//\\\\n state.mode = COPY_;\\\\n if (flush === Z_TREES) { break inf_leave; }\\\\n /* falls through */\\\\n case COPY_:\\\\n state.mode = COPY;\\\\n /* falls through */\\\\n case COPY:\\\\n copy = state.length;\\\\n if (copy) {\\\\n if (copy > have) { copy = have; }\\\\n if (copy > left) { copy = left; }\\\\n if (copy === 0) { break inf_leave; }\\\\n //--- zmemcpy(put, next, copy); ---\\\\n utils.arraySet(output, input, next, copy, put);\\\\n //---//\\\\n have -= copy;\\\\n next += copy;\\\\n left -= copy;\\\\n put += copy;\\\\n state.length -= copy;\\\\n break;\\\\n }\\\\n //Tracev((stderr, \\\\\\\"inflate: stored end\\\\\\\\n\\\\\\\"));\\\\n state.mode = TYPE;\\\\n break;\\\\n case TABLE:\\\\n //=== NEEDBITS(14); */\\\\n while (bits < 14) {\\\\n if (have === 0) { break inf_leave; }\\\\n have--;\\\\n hold += input[next++] << bits;\\\\n bits += 8;\\\\n }\\\\n //===//\\\\n state.nlen = (hold & 0x1f)/*BITS(5)*/ + 257;\\\\n //--- DROPBITS(5) ---//\\\\n hold >>>= 5;\\\\n bits -= 5;\\\\n //---//\\\\n state.ndist = (hold & 0x1f)/*BITS(5)*/ + 1;\\\\n //--- DROPBITS(5) ---//\\\\n hold >>>= 5;\\\\n bits -= 5;\\\\n //---//\\\\n state.ncode = (hold & 0x0f)/*BITS(4)*/ + 4;\\\\n //--- DROPBITS(4) ---//\\\\n hold >>>= 4;\\\\n bits -= 4;\\\\n //---//\\\\n//#ifndef PKZIP_BUG_WORKAROUND\\\\n if (state.nlen > 286 || state.ndist > 30) {\\\\n strm.msg = 'too many length or distance symbols';\\\\n state.mode = BAD;\\\\n break;\\\\n }\\\\n//#endif\\\\n //Tracev((stderr, \\\\\\\"inflate: table sizes ok\\\\\\\\n\\\\\\\"));\\\\n state.have = 0;\\\\n state.mode = LENLENS;\\\\n /* falls through */\\\\n case LENLENS:\\\\n while (state.have < state.ncode) {\\\\n //=== NEEDBITS(3);\\\\n while (bits < 3) {\\\\n if (have === 0) { break inf_leave; }\\\\n have--;\\\\n hold += input[next++] << bits;\\\\n bits += 8;\\\\n }\\\\n //===//\\\\n state.lens[order[state.have++]] = (hold & 0x07);//BITS(3);\\\\n //--- DROPBITS(3) ---//\\\\n hold >>>= 3;\\\\n bits -= 3;\\\\n //---//\\\\n }\\\\n while (state.have < 19) {\\\\n state.lens[order[state.have++]] = 0;\\\\n }\\\\n // We have separate tables & no pointers. 2 commented lines below not needed.\\\\n //state.next = state.codes;\\\\n //state.lencode = state.next;\\\\n // Switch to use dynamic table\\\\n state.lencode = state.lendyn;\\\\n state.lenbits = 7;\\\\n\\\\n opts = { bits: state.lenbits };\\\\n ret = inflate_table(CODES, state.lens, 0, 19, state.lencode, 0, state.work, opts);\\\\n state.lenbits = opts.bits;\\\\n\\\\n if (ret) {\\\\n strm.msg = 'invalid code lengths set';\\\\n state.mode = BAD;\\\\n break;\\\\n }\\\\n //Tracev((stderr, \\\\\\\"inflate: code lengths ok\\\\\\\\n\\\\\\\"));\\\\n state.have = 0;\\\\n state.mode = CODELENS;\\\\n /* falls through */\\\\n case CODELENS:\\\\n while (state.have < state.nlen + state.ndist) {\\\\n for (;;) {\\\\n here = state.lencode[hold & ((1 << state.lenbits) - 1)];/*BITS(state.lenbits)*/\\\\n here_bits = here >>> 24;\\\\n here_op = (here >>> 16) & 0xff;\\\\n here_val = here & 0xffff;\\\\n\\\\n if ((here_bits) <= bits) { break; }\\\\n //--- PULLBYTE() ---//\\\\n if (have === 0) { break inf_leave; }\\\\n have--;\\\\n hold += input[next++] << bits;\\\\n bits += 8;\\\\n //---//\\\\n }\\\\n if (here_val < 16) {\\\\n //--- DROPBITS(here.bits) ---//\\\\n hold >>>= here_bits;\\\\n bits -= here_bits;\\\\n //---//\\\\n state.lens[state.have++] = here_val;\\\\n }\\\\n else {\\\\n if (here_val === 16) {\\\\n //=== NEEDBITS(here.bits + 2);\\\\n n = here_bits + 2;\\\\n while (bits < n) {\\\\n if (have === 0) { break inf_leave; }\\\\n have--;\\\\n hold += input[next++] << bits;\\\\n bits += 8;\\\\n }\\\\n //===//\\\\n //--- DROPBITS(here.bits) ---//\\\\n hold >>>= here_bits;\\\\n bits -= here_bits;\\\\n //---//\\\\n if (state.have === 0) {\\\\n strm.msg = 'invalid bit length repeat';\\\\n state.mode = BAD;\\\\n break;\\\\n }\\\\n len = state.lens[state.have - 1];\\\\n copy = 3 + (hold & 0x03);//BITS(2);\\\\n //--- DROPBITS(2) ---//\\\\n hold >>>= 2;\\\\n bits -= 2;\\\\n //---//\\\\n }\\\\n else if (here_val === 17) {\\\\n //=== NEEDBITS(here.bits + 3);\\\\n n = here_bits + 3;\\\\n while (bits < n) {\\\\n if (have === 0) { break inf_leave; }\\\\n have--;\\\\n hold += input[next++] << bits;\\\\n bits += 8;\\\\n }\\\\n //===//\\\\n //--- DROPBITS(here.bits) ---//\\\\n hold >>>= here_bits;\\\\n bits -= here_bits;\\\\n //---//\\\\n len = 0;\\\\n copy = 3 + (hold & 0x07);//BITS(3);\\\\n //--- DROPBITS(3) ---//\\\\n hold >>>= 3;\\\\n bits -= 3;\\\\n //---//\\\\n }\\\\n else {\\\\n //=== NEEDBITS(here.bits + 7);\\\\n n = here_bits + 7;\\\\n while (bits < n) {\\\\n if (have === 0) { break inf_leave; }\\\\n have--;\\\\n hold += input[next++] << bits;\\\\n bits += 8;\\\\n }\\\\n //===//\\\\n //--- DROPBITS(here.bits) ---//\\\\n hold >>>= here_bits;\\\\n bits -= here_bits;\\\\n //---//\\\\n len = 0;\\\\n copy = 11 + (hold & 0x7f);//BITS(7);\\\\n //--- DROPBITS(7) ---//\\\\n hold >>>= 7;\\\\n bits -= 7;\\\\n //---//\\\\n }\\\\n if (state.have + copy > state.nlen + state.ndist) {\\\\n strm.msg = 'invalid bit length repeat';\\\\n state.mode = BAD;\\\\n break;\\\\n }\\\\n while (copy--) {\\\\n state.lens[state.have++] = len;\\\\n }\\\\n }\\\\n }\\\\n\\\\n /* handle error breaks in while */\\\\n if (state.mode === BAD) { break; }\\\\n\\\\n /* check for end-of-block code (better have one) */\\\\n if (state.lens[256] === 0) {\\\\n strm.msg = 'invalid code -- missing end-of-block';\\\\n state.mode = BAD;\\\\n break;\\\\n }\\\\n\\\\n /* build code tables -- note: do not change the lenbits or distbits\\\\n values here (9 and 6) without reading the comments in inftrees.h\\\\n concerning the ENOUGH constants, which depend on those values */\\\\n state.lenbits = 9;\\\\n\\\\n opts = { bits: state.lenbits };\\\\n ret = inflate_table(LENS, state.lens, 0, state.nlen, state.lencode, 0, state.work, opts);\\\\n // We have separate tables & no pointers. 2 commented lines below not needed.\\\\n // state.next_index = opts.table_index;\\\\n state.lenbits = opts.bits;\\\\n // state.lencode = state.next;\\\\n\\\\n if (ret) {\\\\n strm.msg = 'invalid literal/lengths set';\\\\n state.mode = BAD;\\\\n break;\\\\n }\\\\n\\\\n state.distbits = 6;\\\\n //state.distcode.copy(state.codes);\\\\n // Switch to use dynamic table\\\\n state.distcode = state.distdyn;\\\\n opts = { bits: state.distbits };\\\\n ret = inflate_table(DISTS, state.lens, state.nlen, state.ndist, state.distcode, 0, state.work, opts);\\\\n // We have separate tables & no pointers. 2 commented lines below not needed.\\\\n // state.next_index = opts.table_index;\\\\n state.distbits = opts.bits;\\\\n // state.distcode = state.next;\\\\n\\\\n if (ret) {\\\\n strm.msg = 'invalid distances set';\\\\n state.mode = BAD;\\\\n break;\\\\n }\\\\n //Tracev((stderr, 'inflate: codes ok\\\\\\\\n'));\\\\n state.mode = LEN_;\\\\n if (flush === Z_TREES) { break inf_leave; }\\\\n /* falls through */\\\\n case LEN_:\\\\n state.mode = LEN;\\\\n /* falls through */\\\\n case LEN:\\\\n if (have >= 6 && left >= 258) {\\\\n //--- RESTORE() ---\\\\n strm.next_out = put;\\\\n strm.avail_out = left;\\\\n strm.next_in = next;\\\\n strm.avail_in = have;\\\\n state.hold = hold;\\\\n state.bits = bits;\\\\n //---\\\\n inflate_fast(strm, _out);\\\\n //--- LOAD() ---\\\\n put = strm.next_out;\\\\n output = strm.output;\\\\n left = strm.avail_out;\\\\n next = strm.next_in;\\\\n input = strm.input;\\\\n have = strm.avail_in;\\\\n hold = state.hold;\\\\n bits = state.bits;\\\\n //---\\\\n\\\\n if (state.mode === TYPE) {\\\\n state.back = -1;\\\\n }\\\\n break;\\\\n }\\\\n state.back = 0;\\\\n for (;;) {\\\\n here = state.lencode[hold & ((1 << state.lenbits) - 1)]; /*BITS(state.lenbits)*/\\\\n here_bits = here >>> 24;\\\\n here_op = (here >>> 16) & 0xff;\\\\n here_val = here & 0xffff;\\\\n\\\\n if (here_bits <= bits) { break; }\\\\n //--- PULLBYTE() ---//\\\\n if (have === 0) { break inf_leave; }\\\\n have--;\\\\n hold += input[next++] << bits;\\\\n bits += 8;\\\\n //---//\\\\n }\\\\n if (here_op && (here_op & 0xf0) === 0) {\\\\n last_bits = here_bits;\\\\n last_op = here_op;\\\\n last_val = here_val;\\\\n for (;;) {\\\\n here = state.lencode[last_val +\\\\n ((hold & ((1 << (last_bits + last_op)) - 1))/*BITS(last.bits + last.op)*/ >> last_bits)];\\\\n here_bits = here >>> 24;\\\\n here_op = (here >>> 16) & 0xff;\\\\n here_val = here & 0xffff;\\\\n\\\\n if ((last_bits + here_bits) <= bits) { break; }\\\\n //--- PULLBYTE() ---//\\\\n if (have === 0) { break inf_leave; }\\\\n have--;\\\\n hold += input[next++] << bits;\\\\n bits += 8;\\\\n //---//\\\\n }\\\\n //--- DROPBITS(last.bits) ---//\\\\n hold >>>= last_bits;\\\\n bits -= last_bits;\\\\n //---//\\\\n state.back += last_bits;\\\\n }\\\\n //--- DROPBITS(here.bits) ---//\\\\n hold >>>= here_bits;\\\\n bits -= here_bits;\\\\n //---//\\\\n state.back += here_bits;\\\\n state.length = here_val;\\\\n if (here_op === 0) {\\\\n //Tracevv((stderr, here.val >= 0x20 && here.val < 0x7f ?\\\\n // \\\\\\\"inflate: literal '%c'\\\\\\\\n\\\\\\\" :\\\\n // \\\\\\\"inflate: literal 0x%02x\\\\\\\\n\\\\\\\", here.val));\\\\n state.mode = LIT;\\\\n break;\\\\n }\\\\n if (here_op & 32) {\\\\n //Tracevv((stderr, \\\\\\\"inflate: end of block\\\\\\\\n\\\\\\\"));\\\\n state.back = -1;\\\\n state.mode = TYPE;\\\\n break;\\\\n }\\\\n if (here_op & 64) {\\\\n strm.msg = 'invalid literal/length code';\\\\n state.mode = BAD;\\\\n break;\\\\n }\\\\n state.extra = here_op & 15;\\\\n state.mode = LENEXT;\\\\n /* falls through */\\\\n case LENEXT:\\\\n if (state.extra) {\\\\n //=== NEEDBITS(state.extra);\\\\n n = state.extra;\\\\n while (bits < n) {\\\\n if (have === 0) { break inf_leave; }\\\\n have--;\\\\n hold += input[next++] << bits;\\\\n bits += 8;\\\\n }\\\\n //===//\\\\n state.length += hold & ((1 << state.extra) - 1)/*BITS(state.extra)*/;\\\\n //--- DROPBITS(state.extra) ---//\\\\n hold >>>= state.extra;\\\\n bits -= state.extra;\\\\n //---//\\\\n state.back += state.extra;\\\\n }\\\\n //Tracevv((stderr, \\\\\\\"inflate: length %u\\\\\\\\n\\\\\\\", state.length));\\\\n state.was = state.length;\\\\n state.mode = DIST;\\\\n /* falls through */\\\\n case DIST:\\\\n for (;;) {\\\\n here = state.distcode[hold & ((1 << state.distbits) - 1)];/*BITS(state.distbits)*/\\\\n here_bits = here >>> 24;\\\\n here_op = (here >>> 16) & 0xff;\\\\n here_val = here & 0xffff;\\\\n\\\\n if ((here_bits) <= bits) { break; }\\\\n //--- PULLBYTE() ---//\\\\n if (have === 0) { break inf_leave; }\\\\n have--;\\\\n hold += input[next++] << bits;\\\\n bits += 8;\\\\n //---//\\\\n }\\\\n if ((here_op & 0xf0) === 0) {\\\\n last_bits = here_bits;\\\\n last_op = here_op;\\\\n last_val = here_val;\\\\n for (;;) {\\\\n here = state.distcode[last_val +\\\\n ((hold & ((1 << (last_bits + last_op)) - 1))/*BITS(last.bits + last.op)*/ >> last_bits)];\\\\n here_bits = here >>> 24;\\\\n here_op = (here >>> 16) & 0xff;\\\\n here_val = here & 0xffff;\\\\n\\\\n if ((last_bits + here_bits) <= bits) { break; }\\\\n //--- PULLBYTE() ---//\\\\n if (have === 0) { break inf_leave; }\\\\n have--;\\\\n hold += input[next++] << bits;\\\\n bits += 8;\\\\n //---//\\\\n }\\\\n //--- DROPBITS(last.bits) ---//\\\\n hold >>>= last_bits;\\\\n bits -= last_bits;\\\\n //---//\\\\n state.back += last_bits;\\\\n }\\\\n //--- DROPBITS(here.bits) ---//\\\\n hold >>>= here_bits;\\\\n bits -= here_bits;\\\\n //---//\\\\n state.back += here_bits;\\\\n if (here_op & 64) {\\\\n strm.msg = 'invalid distance code';\\\\n state.mode = BAD;\\\\n break;\\\\n }\\\\n state.offset = here_val;\\\\n state.extra = (here_op) & 15;\\\\n state.mode = DISTEXT;\\\\n /* falls through */\\\\n case DISTEXT:\\\\n if (state.extra) {\\\\n //=== NEEDBITS(state.extra);\\\\n n = state.extra;\\\\n while (bits < n) {\\\\n if (have === 0) { break inf_leave; }\\\\n have--;\\\\n hold += input[next++] << bits;\\\\n bits += 8;\\\\n }\\\\n //===//\\\\n state.offset += hold & ((1 << state.extra) - 1)/*BITS(state.extra)*/;\\\\n //--- DROPBITS(state.extra) ---//\\\\n hold >>>= state.extra;\\\\n bits -= state.extra;\\\\n //---//\\\\n state.back += state.extra;\\\\n }\\\\n//#ifdef INFLATE_STRICT\\\\n if (state.offset > state.dmax) {\\\\n strm.msg = 'invalid distance too far back';\\\\n state.mode = BAD;\\\\n break;\\\\n }\\\\n//#endif\\\\n //Tracevv((stderr, \\\\\\\"inflate: distance %u\\\\\\\\n\\\\\\\", state.offset));\\\\n state.mode = MATCH;\\\\n /* falls through */\\\\n case MATCH:\\\\n if (left === 0) { break inf_leave; }\\\\n copy = _out - left;\\\\n if (state.offset > copy) { /* copy from window */\\\\n copy = state.offset - copy;\\\\n if (copy > state.whave) {\\\\n if (state.sane) {\\\\n strm.msg = 'invalid distance too far back';\\\\n state.mode = BAD;\\\\n break;\\\\n }\\\\n// (!) This block is disabled in zlib defaults,\\\\n// don't enable it for binary compatibility\\\\n//#ifdef INFLATE_ALLOW_INVALID_DISTANCE_TOOFAR_ARRR\\\\n// Trace((stderr, \\\\\\\"inflate.c too far\\\\\\\\n\\\\\\\"));\\\\n// copy -= state.whave;\\\\n// if (copy > state.length) { copy = state.length; }\\\\n// if (copy > left) { copy = left; }\\\\n// left -= copy;\\\\n// state.length -= copy;\\\\n// do {\\\\n// output[put++] = 0;\\\\n// } while (--copy);\\\\n// if (state.length === 0) { state.mode = LEN; }\\\\n// break;\\\\n//#endif\\\\n }\\\\n if (copy > state.wnext) {\\\\n copy -= state.wnext;\\\\n from = state.wsize - copy;\\\\n }\\\\n else {\\\\n from = state.wnext - copy;\\\\n }\\\\n if (copy > state.length) { copy = state.length; }\\\\n from_source = state.window;\\\\n }\\\\n else { /* copy from output */\\\\n from_source = output;\\\\n from = put - state.offset;\\\\n copy = state.length;\\\\n }\\\\n if (copy > left) { copy = left; }\\\\n left -= copy;\\\\n state.length -= copy;\\\\n do {\\\\n output[put++] = from_source[from++];\\\\n } while (--copy);\\\\n if (state.length === 0) { state.mode = LEN; }\\\\n break;\\\\n case LIT:\\\\n if (left === 0) { break inf_leave; }\\\\n output[put++] = state.length;\\\\n left--;\\\\n state.mode = LEN;\\\\n break;\\\\n case CHECK:\\\\n if (state.wrap) {\\\\n //=== NEEDBITS(32);\\\\n while (bits < 32) {\\\\n if (have === 0) { break inf_leave; }\\\\n have--;\\\\n // Use '|' instead of '+' to make sure that result is signed\\\\n hold |= input[next++] << bits;\\\\n bits += 8;\\\\n }\\\\n //===//\\\\n _out -= left;\\\\n strm.total_out += _out;\\\\n state.total += _out;\\\\n if (_out) {\\\\n strm.adler = state.check =\\\\n /*UPDATE(state.check, put - _out, _out);*/\\\\n (state.flags ? crc32(state.check, output, _out, put - _out) : adler32(state.check, output, _out, put - _out));\\\\n\\\\n }\\\\n _out = left;\\\\n // NB: crc32 stored as signed 32-bit int, zswap32 returns signed too\\\\n if ((state.flags ? hold : zswap32(hold)) !== state.check) {\\\\n strm.msg = 'incorrect data check';\\\\n state.mode = BAD;\\\\n break;\\\\n }\\\\n //=== INITBITS();\\\\n hold = 0;\\\\n bits = 0;\\\\n //===//\\\\n //Tracev((stderr, \\\\\\\"inflate: check matches trailer\\\\\\\\n\\\\\\\"));\\\\n }\\\\n state.mode = LENGTH;\\\\n /* falls through */\\\\n case LENGTH:\\\\n if (state.wrap && state.flags) {\\\\n //=== NEEDBITS(32);\\\\n while (bits < 32) {\\\\n if (have === 0) { break inf_leave; }\\\\n have--;\\\\n hold += input[next++] << bits;\\\\n bits += 8;\\\\n }\\\\n //===//\\\\n if (hold !== (state.total & 0xffffffff)) {\\\\n strm.msg = 'incorrect length check';\\\\n state.mode = BAD;\\\\n break;\\\\n }\\\\n //=== INITBITS();\\\\n hold = 0;\\\\n bits = 0;\\\\n //===//\\\\n //Tracev((stderr, \\\\\\\"inflate: length matches trailer\\\\\\\\n\\\\\\\"));\\\\n }\\\\n state.mode = DONE;\\\\n /* falls through */\\\\n case DONE:\\\\n ret = Z_STREAM_END;\\\\n break inf_leave;\\\\n case BAD:\\\\n ret = Z_DATA_ERROR;\\\\n break inf_leave;\\\\n case MEM:\\\\n return Z_MEM_ERROR;\\\\n case SYNC:\\\\n /* falls through */\\\\n default:\\\\n return Z_STREAM_ERROR;\\\\n }\\\\n }\\\\n\\\\n // inf_leave <- here is real place for \\\\\\\"goto inf_leave\\\\\\\", emulated via \\\\\\\"break inf_leave\\\\\\\"\\\\n\\\\n /*\\\\n Return from inflate(), updating the total counts and the check value.\\\\n If there was no progress during the inflate() call, return a buffer\\\\n error. Call updatewindow() to create and/or update the window state.\\\\n Note: a memory error from inflate() is non-recoverable.\\\\n */\\\\n\\\\n //--- RESTORE() ---\\\\n strm.next_out = put;\\\\n strm.avail_out = left;\\\\n strm.next_in = next;\\\\n strm.avail_in = have;\\\\n state.hold = hold;\\\\n state.bits = bits;\\\\n //---\\\\n\\\\n if (state.wsize || (_out !== strm.avail_out && state.mode < BAD &&\\\\n (state.mode < CHECK || flush !== Z_FINISH))) {\\\\n if (updatewindow(strm, strm.output, strm.next_out, _out - strm.avail_out)) {\\\\n state.mode = MEM;\\\\n return Z_MEM_ERROR;\\\\n }\\\\n }\\\\n _in -= strm.avail_in;\\\\n _out -= strm.avail_out;\\\\n strm.total_in += _in;\\\\n strm.total_out += _out;\\\\n state.total += _out;\\\\n if (state.wrap && _out) {\\\\n strm.adler = state.check = /*UPDATE(state.check, strm.next_out - _out, _out);*/\\\\n (state.flags ? crc32(state.check, output, _out, strm.next_out - _out) : adler32(state.check, output, _out, strm.next_out - _out));\\\\n }\\\\n strm.data_type = state.bits + (state.last ? 64 : 0) +\\\\n (state.mode === TYPE ? 128 : 0) +\\\\n (state.mode === LEN_ || state.mode === COPY_ ? 256 : 0);\\\\n if (((_in === 0 && _out === 0) || flush === Z_FINISH) && ret === Z_OK) {\\\\n ret = Z_BUF_ERROR;\\\\n }\\\\n return ret;\\\\n}\\\\n\\\\nfunction inflateEnd(strm) {\\\\n\\\\n if (!strm || !strm.state /*|| strm->zfree == (free_func)0*/) {\\\\n return Z_STREAM_ERROR;\\\\n }\\\\n\\\\n var state = strm.state;\\\\n if (state.window) {\\\\n state.window = null;\\\\n }\\\\n strm.state = null;\\\\n return Z_OK;\\\\n}\\\\n\\\\nfunction inflateGetHeader(strm, head) {\\\\n var state;\\\\n\\\\n /* check state */\\\\n if (!strm || !strm.state) { return Z_STREAM_ERROR; }\\\\n state = strm.state;\\\\n if ((state.wrap & 2) === 0) { return Z_STREAM_ERROR; }\\\\n\\\\n /* save header structure */\\\\n state.head = head;\\\\n head.done = false;\\\\n return Z_OK;\\\\n}\\\\n\\\\nfunction inflateSetDictionary(strm, dictionary) {\\\\n var dictLength = dictionary.length;\\\\n\\\\n var state;\\\\n var dictid;\\\\n var ret;\\\\n\\\\n /* check state */\\\\n if (!strm /* == Z_NULL */ || !strm.state /* == Z_NULL */) { return Z_STREAM_ERROR; }\\\\n state = strm.state;\\\\n\\\\n if (state.wrap !== 0 && state.mode !== DICT) {\\\\n return Z_STREAM_ERROR;\\\\n }\\\\n\\\\n /* check for correct dictionary identifier */\\\\n if (state.mode === DICT) {\\\\n dictid = 1; /* adler32(0, null, 0)*/\\\\n /* dictid = adler32(dictid, dictionary, dictLength); */\\\\n dictid = adler32(dictid, dictionary, dictLength, 0);\\\\n if (dictid !== state.check) {\\\\n return Z_DATA_ERROR;\\\\n }\\\\n }\\\\n /* copy dictionary to window using updatewindow(), which will amend the\\\\n existing dictionary if appropriate */\\\\n ret = updatewindow(strm, dictionary, dictLength, dictLength);\\\\n if (ret) {\\\\n state.mode = MEM;\\\\n return Z_MEM_ERROR;\\\\n }\\\\n state.havedict = 1;\\\\n // Tracev((stderr, \\\\\\\"inflate: dictionary set\\\\\\\\n\\\\\\\"));\\\\n return Z_OK;\\\\n}\\\\n\\\\nexports.inflateReset = inflateReset;\\\\nexports.inflateReset2 = inflateReset2;\\\\nexports.inflateResetKeep = inflateResetKeep;\\\\nexports.inflateInit = inflateInit;\\\\nexports.inflateInit2 = inflateInit2;\\\\nexports.inflate = inflate;\\\\nexports.inflateEnd = inflateEnd;\\\\nexports.inflateGetHeader = inflateGetHeader;\\\\nexports.inflateSetDictionary = inflateSetDictionary;\\\\nexports.inflateInfo = 'pako inflate (from Nodeca project)';\\\\n\\\\n/* Not implemented\\\\nexports.inflateCopy = inflateCopy;\\\\nexports.inflateGetDictionary = inflateGetDictionary;\\\\nexports.inflateMark = inflateMark;\\\\nexports.inflatePrime = inflatePrime;\\\\nexports.inflateSync = inflateSync;\\\\nexports.inflateSyncPoint = inflateSyncPoint;\\\\nexports.inflateUndermine = inflateUndermine;\\\\n*/\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/pako/lib/zlib/inflate.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/pako/lib/zlib/inftrees.js\\\":\\n/*!************************************************!*\\\\\\n !*** ./node_modules/pako/lib/zlib/inftrees.js ***!\\n \\\\************************************************/\\n/*! no static exports found */\\n/***/ (function(module, exports, __webpack_require__) {\\n\\n\\\"use strict\\\";\\neval(\\\"\\\\n\\\\n// (C) 1995-2013 Jean-loup Gailly and Mark Adler\\\\n// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin\\\\n//\\\\n// This software is provided 'as-is', without any express or implied\\\\n// warranty. In no event will the authors be held liable for any damages\\\\n// arising from the use of this software.\\\\n//\\\\n// Permission is granted to anyone to use this software for any purpose,\\\\n// including commercial applications, and to alter it and redistribute it\\\\n// freely, subject to the following restrictions:\\\\n//\\\\n// 1. The origin of this software must not be misrepresented; you must not\\\\n// claim that you wrote the original software. If you use this software\\\\n// in a product, an acknowledgment in the product documentation would be\\\\n// appreciated but is not required.\\\\n// 2. Altered source versions must be plainly marked as such, and must not be\\\\n// misrepresented as being the original software.\\\\n// 3. This notice may not be removed or altered from any source distribution.\\\\n\\\\nvar utils = __webpack_require__(/*! ../utils/common */ \\\\\\\"./node_modules/pako/lib/utils/common.js\\\\\\\");\\\\n\\\\nvar MAXBITS = 15;\\\\nvar ENOUGH_LENS = 852;\\\\nvar ENOUGH_DISTS = 592;\\\\n//var ENOUGH = (ENOUGH_LENS+ENOUGH_DISTS);\\\\n\\\\nvar CODES = 0;\\\\nvar LENS = 1;\\\\nvar DISTS = 2;\\\\n\\\\nvar lbase = [ /* Length codes 257..285 base */\\\\n 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31,\\\\n 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0\\\\n];\\\\n\\\\nvar lext = [ /* Length codes 257..285 extra */\\\\n 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18,\\\\n 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 72, 78\\\\n];\\\\n\\\\nvar dbase = [ /* Distance codes 0..29 base */\\\\n 1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193,\\\\n 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145,\\\\n 8193, 12289, 16385, 24577, 0, 0\\\\n];\\\\n\\\\nvar dext = [ /* Distance codes 0..29 extra */\\\\n 16, 16, 16, 16, 17, 17, 18, 18, 19, 19, 20, 20, 21, 21, 22, 22,\\\\n 23, 23, 24, 24, 25, 25, 26, 26, 27, 27,\\\\n 28, 28, 29, 29, 64, 64\\\\n];\\\\n\\\\nmodule.exports = function inflate_table(type, lens, lens_index, codes, table, table_index, work, opts)\\\\n{\\\\n var bits = opts.bits;\\\\n //here = opts.here; /* table entry for duplication */\\\\n\\\\n var len = 0; /* a code's length in bits */\\\\n var sym = 0; /* index of code symbols */\\\\n var min = 0, max = 0; /* minimum and maximum code lengths */\\\\n var root = 0; /* number of index bits for root table */\\\\n var curr = 0; /* number of index bits for current table */\\\\n var drop = 0; /* code bits to drop for sub-table */\\\\n var left = 0; /* number of prefix codes available */\\\\n var used = 0; /* code entries in table used */\\\\n var huff = 0; /* Huffman code */\\\\n var incr; /* for incrementing code, index */\\\\n var fill; /* index for replicating entries */\\\\n var low; /* low bits for current root entry */\\\\n var mask; /* mask for low root bits */\\\\n var next; /* next available space in table */\\\\n var base = null; /* base value table to use */\\\\n var base_index = 0;\\\\n// var shoextra; /* extra bits table to use */\\\\n var end; /* use base and extra for symbol > end */\\\\n var count = new utils.Buf16(MAXBITS + 1); //[MAXBITS+1]; /* number of codes of each length */\\\\n var offs = new utils.Buf16(MAXBITS + 1); //[MAXBITS+1]; /* offsets in table for each length */\\\\n var extra = null;\\\\n var extra_index = 0;\\\\n\\\\n var here_bits, here_op, here_val;\\\\n\\\\n /*\\\\n Process a set of code lengths to create a canonical Huffman code. The\\\\n code lengths are lens[0..codes-1]. Each length corresponds to the\\\\n symbols 0..codes-1. The Huffman code is generated by first sorting the\\\\n symbols by length from short to long, and retaining the symbol order\\\\n for codes with equal lengths. Then the code starts with all zero bits\\\\n for the first code of the shortest length, and the codes are integer\\\\n increments for the same length, and zeros are appended as the length\\\\n increases. For the deflate format, these bits are stored backwards\\\\n from their more natural integer increment ordering, and so when the\\\\n decoding tables are built in the large loop below, the integer codes\\\\n are incremented backwards.\\\\n\\\\n This routine assumes, but does not check, that all of the entries in\\\\n lens[] are in the range 0..MAXBITS. The caller must assure this.\\\\n 1..MAXBITS is interpreted as that code length. zero means that that\\\\n symbol does not occur in this code.\\\\n\\\\n The codes are sorted by computing a count of codes for each length,\\\\n creating from that a table of starting indices for each length in the\\\\n sorted table, and then entering the symbols in order in the sorted\\\\n table. The sorted table is work[], with that space being provided by\\\\n the caller.\\\\n\\\\n The length counts are used for other purposes as well, i.e. finding\\\\n the minimum and maximum length codes, determining if there are any\\\\n codes at all, checking for a valid set of lengths, and looking ahead\\\\n at length counts to determine sub-table sizes when building the\\\\n decoding tables.\\\\n */\\\\n\\\\n /* accumulate lengths for codes (assumes lens[] all in 0..MAXBITS) */\\\\n for (len = 0; len <= MAXBITS; len++) {\\\\n count[len] = 0;\\\\n }\\\\n for (sym = 0; sym < codes; sym++) {\\\\n count[lens[lens_index + sym]]++;\\\\n }\\\\n\\\\n /* bound code lengths, force root to be within code lengths */\\\\n root = bits;\\\\n for (max = MAXBITS; max >= 1; max--) {\\\\n if (count[max] !== 0) { break; }\\\\n }\\\\n if (root > max) {\\\\n root = max;\\\\n }\\\\n if (max === 0) { /* no symbols to code at all */\\\\n //table.op[opts.table_index] = 64; //here.op = (var char)64; /* invalid code marker */\\\\n //table.bits[opts.table_index] = 1; //here.bits = (var char)1;\\\\n //table.val[opts.table_index++] = 0; //here.val = (var short)0;\\\\n table[table_index++] = (1 << 24) | (64 << 16) | 0;\\\\n\\\\n\\\\n //table.op[opts.table_index] = 64;\\\\n //table.bits[opts.table_index] = 1;\\\\n //table.val[opts.table_index++] = 0;\\\\n table[table_index++] = (1 << 24) | (64 << 16) | 0;\\\\n\\\\n opts.bits = 1;\\\\n return 0; /* no symbols, but wait for decoding to report error */\\\\n }\\\\n for (min = 1; min < max; min++) {\\\\n if (count[min] !== 0) { break; }\\\\n }\\\\n if (root < min) {\\\\n root = min;\\\\n }\\\\n\\\\n /* check for an over-subscribed or incomplete set of lengths */\\\\n left = 1;\\\\n for (len = 1; len <= MAXBITS; len++) {\\\\n left <<= 1;\\\\n left -= count[len];\\\\n if (left < 0) {\\\\n return -1;\\\\n } /* over-subscribed */\\\\n }\\\\n if (left > 0 && (type === CODES || max !== 1)) {\\\\n return -1; /* incomplete set */\\\\n }\\\\n\\\\n /* generate offsets into symbol table for each length for sorting */\\\\n offs[1] = 0;\\\\n for (len = 1; len < MAXBITS; len++) {\\\\n offs[len + 1] = offs[len] + count[len];\\\\n }\\\\n\\\\n /* sort symbols by length, by symbol order within each length */\\\\n for (sym = 0; sym < codes; sym++) {\\\\n if (lens[lens_index + sym] !== 0) {\\\\n work[offs[lens[lens_index + sym]]++] = sym;\\\\n }\\\\n }\\\\n\\\\n /*\\\\n Create and fill in decoding tables. In this loop, the table being\\\\n filled is at next and has curr index bits. The code being used is huff\\\\n with length len. That code is converted to an index by dropping drop\\\\n bits off of the bottom. For codes where len is less than drop + curr,\\\\n those top drop + curr - len bits are incremented through all values to\\\\n fill the table with replicated entries.\\\\n\\\\n root is the number of index bits for the root table. When len exceeds\\\\n root, sub-tables are created pointed to by the root entry with an index\\\\n of the low root bits of huff. This is saved in low to check for when a\\\\n new sub-table should be started. drop is zero when the root table is\\\\n being filled, and drop is root when sub-tables are being filled.\\\\n\\\\n When a new sub-table is needed, it is necessary to look ahead in the\\\\n code lengths to determine what size sub-table is needed. The length\\\\n counts are used for this, and so count[] is decremented as codes are\\\\n entered in the tables.\\\\n\\\\n used keeps track of how many table entries have been allocated from the\\\\n provided *table space. It is checked for LENS and DIST tables against\\\\n the constants ENOUGH_LENS and ENOUGH_DISTS to guard against changes in\\\\n the initial root table size constants. See the comments in inftrees.h\\\\n for more information.\\\\n\\\\n sym increments through all symbols, and the loop terminates when\\\\n all codes of length max, i.e. all codes, have been processed. This\\\\n routine permits incomplete codes, so another loop after this one fills\\\\n in the rest of the decoding tables with invalid code markers.\\\\n */\\\\n\\\\n /* set up for code type */\\\\n // poor man optimization - use if-else instead of switch,\\\\n // to avoid deopts in old v8\\\\n if (type === CODES) {\\\\n base = extra = work; /* dummy value--not used */\\\\n end = 19;\\\\n\\\\n } else if (type === LENS) {\\\\n base = lbase;\\\\n base_index -= 257;\\\\n extra = lext;\\\\n extra_index -= 257;\\\\n end = 256;\\\\n\\\\n } else { /* DISTS */\\\\n base = dbase;\\\\n extra = dext;\\\\n end = -1;\\\\n }\\\\n\\\\n /* initialize opts for loop */\\\\n huff = 0; /* starting code */\\\\n sym = 0; /* starting code symbol */\\\\n len = min; /* starting code length */\\\\n next = table_index; /* current table to fill in */\\\\n curr = root; /* current table index bits */\\\\n drop = 0; /* current bits to drop from code for index */\\\\n low = -1; /* trigger new sub-table when len > root */\\\\n used = 1 << root; /* use root table entries */\\\\n mask = used - 1; /* mask for comparing low */\\\\n\\\\n /* check available table space */\\\\n if ((type === LENS && used > ENOUGH_LENS) ||\\\\n (type === DISTS && used > ENOUGH_DISTS)) {\\\\n return 1;\\\\n }\\\\n\\\\n /* process all codes and make table entries */\\\\n for (;;) {\\\\n /* create table entry */\\\\n here_bits = len - drop;\\\\n if (work[sym] < end) {\\\\n here_op = 0;\\\\n here_val = work[sym];\\\\n }\\\\n else if (work[sym] > end) {\\\\n here_op = extra[extra_index + work[sym]];\\\\n here_val = base[base_index + work[sym]];\\\\n }\\\\n else {\\\\n here_op = 32 + 64; /* end of block */\\\\n here_val = 0;\\\\n }\\\\n\\\\n /* replicate for those indices with low len bits equal to huff */\\\\n incr = 1 << (len - drop);\\\\n fill = 1 << curr;\\\\n min = fill; /* save offset to next table */\\\\n do {\\\\n fill -= incr;\\\\n table[next + (huff >> drop) + fill] = (here_bits << 24) | (here_op << 16) | here_val |0;\\\\n } while (fill !== 0);\\\\n\\\\n /* backwards increment the len-bit code huff */\\\\n incr = 1 << (len - 1);\\\\n while (huff & incr) {\\\\n incr >>= 1;\\\\n }\\\\n if (incr !== 0) {\\\\n huff &= incr - 1;\\\\n huff += incr;\\\\n } else {\\\\n huff = 0;\\\\n }\\\\n\\\\n /* go to next symbol, update count, len */\\\\n sym++;\\\\n if (--count[len] === 0) {\\\\n if (len === max) { break; }\\\\n len = lens[lens_index + work[sym]];\\\\n }\\\\n\\\\n /* create new sub-table if needed */\\\\n if (len > root && (huff & mask) !== low) {\\\\n /* if first time, transition to sub-tables */\\\\n if (drop === 0) {\\\\n drop = root;\\\\n }\\\\n\\\\n /* increment past last table */\\\\n next += min; /* here min is 1 << curr */\\\\n\\\\n /* determine length of next table */\\\\n curr = len - drop;\\\\n left = 1 << curr;\\\\n while (curr + drop < max) {\\\\n left -= count[curr + drop];\\\\n if (left <= 0) { break; }\\\\n curr++;\\\\n left <<= 1;\\\\n }\\\\n\\\\n /* check for enough space */\\\\n used += 1 << curr;\\\\n if ((type === LENS && used > ENOUGH_LENS) ||\\\\n (type === DISTS && used > ENOUGH_DISTS)) {\\\\n return 1;\\\\n }\\\\n\\\\n /* point entry in root table to sub-table */\\\\n low = huff & mask;\\\\n /*table.op[low] = curr;\\\\n table.bits[low] = root;\\\\n table.val[low] = next - opts.table_index;*/\\\\n table[low] = (root << 24) | (curr << 16) | (next - table_index) |0;\\\\n }\\\\n }\\\\n\\\\n /* fill in remaining table entry if code is incomplete (guaranteed to have\\\\n at most one remaining entry, since if the code is incomplete, the\\\\n maximum code length that was allowed to get this far is one bit) */\\\\n if (huff !== 0) {\\\\n //table.op[next + huff] = 64; /* invalid code marker */\\\\n //table.bits[next + huff] = len - drop;\\\\n //table.val[next + huff] = 0;\\\\n table[next + huff] = ((len - drop) << 24) | (64 << 16) |0;\\\\n }\\\\n\\\\n /* set return parameters */\\\\n //opts.table_index += used;\\\\n opts.bits = root;\\\\n return 0;\\\\n};\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/pako/lib/zlib/inftrees.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/pako/lib/zlib/messages.js\\\":\\n/*!************************************************!*\\\\\\n !*** ./node_modules/pako/lib/zlib/messages.js ***!\\n \\\\************************************************/\\n/*! no static exports found */\\n/***/ (function(module, exports, __webpack_require__) {\\n\\n\\\"use strict\\\";\\neval(\\\"\\\\n\\\\n// (C) 1995-2013 Jean-loup Gailly and Mark Adler\\\\n// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin\\\\n//\\\\n// This software is provided 'as-is', without any express or implied\\\\n// warranty. In no event will the authors be held liable for any damages\\\\n// arising from the use of this software.\\\\n//\\\\n// Permission is granted to anyone to use this software for any purpose,\\\\n// including commercial applications, and to alter it and redistribute it\\\\n// freely, subject to the following restrictions:\\\\n//\\\\n// 1. The origin of this software must not be misrepresented; you must not\\\\n// claim that you wrote the original software. If you use this software\\\\n// in a product, an acknowledgment in the product documentation would be\\\\n// appreciated but is not required.\\\\n// 2. Altered source versions must be plainly marked as such, and must not be\\\\n// misrepresented as being the original software.\\\\n// 3. This notice may not be removed or altered from any source distribution.\\\\n\\\\nmodule.exports = {\\\\n 2: 'need dictionary', /* Z_NEED_DICT 2 */\\\\n 1: 'stream end', /* Z_STREAM_END 1 */\\\\n 0: '', /* Z_OK 0 */\\\\n '-1': 'file error', /* Z_ERRNO (-1) */\\\\n '-2': 'stream error', /* Z_STREAM_ERROR (-2) */\\\\n '-3': 'data error', /* Z_DATA_ERROR (-3) */\\\\n '-4': 'insufficient memory', /* Z_MEM_ERROR (-4) */\\\\n '-5': 'buffer error', /* Z_BUF_ERROR (-5) */\\\\n '-6': 'incompatible version' /* Z_VERSION_ERROR (-6) */\\\\n};\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/pako/lib/zlib/messages.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/pako/lib/zlib/zstream.js\\\":\\n/*!***********************************************!*\\\\\\n !*** ./node_modules/pako/lib/zlib/zstream.js ***!\\n \\\\***********************************************/\\n/*! no static exports found */\\n/***/ (function(module, exports, __webpack_require__) {\\n\\n\\\"use strict\\\";\\neval(\\\"\\\\n\\\\n// (C) 1995-2013 Jean-loup Gailly and Mark Adler\\\\n// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin\\\\n//\\\\n// This software is provided 'as-is', without any express or implied\\\\n// warranty. In no event will the authors be held liable for any damages\\\\n// arising from the use of this software.\\\\n//\\\\n// Permission is granted to anyone to use this software for any purpose,\\\\n// including commercial applications, and to alter it and redistribute it\\\\n// freely, subject to the following restrictions:\\\\n//\\\\n// 1. The origin of this software must not be misrepresented; you must not\\\\n// claim that you wrote the original software. If you use this software\\\\n// in a product, an acknowledgment in the product documentation would be\\\\n// appreciated but is not required.\\\\n// 2. Altered source versions must be plainly marked as such, and must not be\\\\n// misrepresented as being the original software.\\\\n// 3. This notice may not be removed or altered from any source distribution.\\\\n\\\\nfunction ZStream() {\\\\n /* next input byte */\\\\n this.input = null; // JS specific, because we have no pointers\\\\n this.next_in = 0;\\\\n /* number of bytes available at input */\\\\n this.avail_in = 0;\\\\n /* total number of input bytes read so far */\\\\n this.total_in = 0;\\\\n /* next output byte should be put there */\\\\n this.output = null; // JS specific, because we have no pointers\\\\n this.next_out = 0;\\\\n /* remaining free space at output */\\\\n this.avail_out = 0;\\\\n /* total number of bytes output so far */\\\\n this.total_out = 0;\\\\n /* last error message, NULL if no error */\\\\n this.msg = ''/*Z_NULL*/;\\\\n /* not visible by applications */\\\\n this.state = null;\\\\n /* best guess about the data type: binary or text */\\\\n this.data_type = 2/*Z_UNKNOWN*/;\\\\n /* adler32 value of the uncompressed data */\\\\n this.adler = 0;\\\\n}\\\\n\\\\nmodule.exports = ZStream;\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/pako/lib/zlib/zstream.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/process-nextick-args/index.js\\\":\\n/*!****************************************************!*\\\\\\n !*** ./node_modules/process-nextick-args/index.js ***!\\n \\\\****************************************************/\\n/*! no static exports found */\\n/***/ (function(module, exports, __webpack_require__) {\\n\\n\\\"use strict\\\";\\neval(\\\"/* WEBPACK VAR INJECTION */(function(process) {\\\\n\\\\nif (typeof process === 'undefined' ||\\\\n !process.version ||\\\\n process.version.indexOf('v0.') === 0 ||\\\\n process.version.indexOf('v1.') === 0 && process.version.indexOf('v1.8.') !== 0) {\\\\n module.exports = { nextTick: nextTick };\\\\n} else {\\\\n module.exports = process\\\\n}\\\\n\\\\nfunction nextTick(fn, arg1, arg2, arg3) {\\\\n if (typeof fn !== 'function') {\\\\n throw new TypeError('\\\\\\\"callback\\\\\\\" argument must be a function');\\\\n }\\\\n var len = arguments.length;\\\\n var args, i;\\\\n switch (len) {\\\\n case 0:\\\\n case 1:\\\\n return process.nextTick(fn);\\\\n case 2:\\\\n return process.nextTick(function afterTickOne() {\\\\n fn.call(null, arg1);\\\\n });\\\\n case 3:\\\\n return process.nextTick(function afterTickTwo() {\\\\n fn.call(null, arg1, arg2);\\\\n });\\\\n case 4:\\\\n return process.nextTick(function afterTickThree() {\\\\n fn.call(null, arg1, arg2, arg3);\\\\n });\\\\n default:\\\\n args = new Array(len - 1);\\\\n i = 0;\\\\n while (i < args.length) {\\\\n args[i++] = arguments[i];\\\\n }\\\\n return process.nextTick(function afterTick() {\\\\n fn.apply(null, args);\\\\n });\\\\n }\\\\n}\\\\n\\\\n\\\\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../process/browser.js */ \\\\\\\"./node_modules/process/browser.js\\\\\\\")))\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/process-nextick-args/index.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/process/browser.js\\\":\\n/*!*****************************************!*\\\\\\n !*** ./node_modules/process/browser.js ***!\\n \\\\*****************************************/\\n/*! no static exports found */\\n/***/ (function(module, exports) {\\n\\neval(\\\"// shim for using process in browser\\\\nvar process = module.exports = {};\\\\n\\\\n// cached from whatever global is present so that test runners that stub it\\\\n// don't break things. But we need to wrap it in a try catch in case it is\\\\n// wrapped in strict mode code which doesn't define any globals. It's inside a\\\\n// function because try/catches deoptimize in certain engines.\\\\n\\\\nvar cachedSetTimeout;\\\\nvar cachedClearTimeout;\\\\n\\\\nfunction defaultSetTimout() {\\\\n throw new Error('setTimeout has not been defined');\\\\n}\\\\nfunction defaultClearTimeout () {\\\\n throw new Error('clearTimeout has not been defined');\\\\n}\\\\n(function () {\\\\n try {\\\\n if (typeof setTimeout === 'function') {\\\\n cachedSetTimeout = setTimeout;\\\\n } else {\\\\n cachedSetTimeout = defaultSetTimout;\\\\n }\\\\n } catch (e) {\\\\n cachedSetTimeout = defaultSetTimout;\\\\n }\\\\n try {\\\\n if (typeof clearTimeout === 'function') {\\\\n cachedClearTimeout = clearTimeout;\\\\n } else {\\\\n cachedClearTimeout = defaultClearTimeout;\\\\n }\\\\n } catch (e) {\\\\n cachedClearTimeout = defaultClearTimeout;\\\\n }\\\\n} ())\\\\nfunction runTimeout(fun) {\\\\n if (cachedSetTimeout === setTimeout) {\\\\n //normal enviroments in sane situations\\\\n return setTimeout(fun, 0);\\\\n }\\\\n // if setTimeout wasn't available but was latter defined\\\\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\\\\n cachedSetTimeout = setTimeout;\\\\n return setTimeout(fun, 0);\\\\n }\\\\n try {\\\\n // when when somebody has screwed with setTimeout but no I.E. maddness\\\\n return cachedSetTimeout(fun, 0);\\\\n } catch(e){\\\\n try {\\\\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\\\\n return cachedSetTimeout.call(null, fun, 0);\\\\n } catch(e){\\\\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\\\\n return cachedSetTimeout.call(this, fun, 0);\\\\n }\\\\n }\\\\n\\\\n\\\\n}\\\\nfunction runClearTimeout(marker) {\\\\n if (cachedClearTimeout === clearTimeout) {\\\\n //normal enviroments in sane situations\\\\n return clearTimeout(marker);\\\\n }\\\\n // if clearTimeout wasn't available but was latter defined\\\\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\\\\n cachedClearTimeout = clearTimeout;\\\\n return clearTimeout(marker);\\\\n }\\\\n try {\\\\n // when when somebody has screwed with setTimeout but no I.E. maddness\\\\n return cachedClearTimeout(marker);\\\\n } catch (e){\\\\n try {\\\\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\\\\n return cachedClearTimeout.call(null, marker);\\\\n } catch (e){\\\\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\\\\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\\\\n return cachedClearTimeout.call(this, marker);\\\\n }\\\\n }\\\\n\\\\n\\\\n\\\\n}\\\\nvar queue = [];\\\\nvar draining = false;\\\\nvar currentQueue;\\\\nvar queueIndex = -1;\\\\n\\\\nfunction cleanUpNextTick() {\\\\n if (!draining || !currentQueue) {\\\\n return;\\\\n }\\\\n draining = false;\\\\n if (currentQueue.length) {\\\\n queue = currentQueue.concat(queue);\\\\n } else {\\\\n queueIndex = -1;\\\\n }\\\\n if (queue.length) {\\\\n drainQueue();\\\\n }\\\\n}\\\\n\\\\nfunction drainQueue() {\\\\n if (draining) {\\\\n return;\\\\n }\\\\n var timeout = runTimeout(cleanUpNextTick);\\\\n draining = true;\\\\n\\\\n var len = queue.length;\\\\n while(len) {\\\\n currentQueue = queue;\\\\n queue = [];\\\\n while (++queueIndex < len) {\\\\n if (currentQueue) {\\\\n currentQueue[queueIndex].run();\\\\n }\\\\n }\\\\n queueIndex = -1;\\\\n len = queue.length;\\\\n }\\\\n currentQueue = null;\\\\n draining = false;\\\\n runClearTimeout(timeout);\\\\n}\\\\n\\\\nprocess.nextTick = function (fun) {\\\\n var args = new Array(arguments.length - 1);\\\\n if (arguments.length > 1) {\\\\n for (var i = 1; i < arguments.length; i++) {\\\\n args[i - 1] = arguments[i];\\\\n }\\\\n }\\\\n queue.push(new Item(fun, args));\\\\n if (queue.length === 1 && !draining) {\\\\n runTimeout(drainQueue);\\\\n }\\\\n};\\\\n\\\\n// v8 likes predictible objects\\\\nfunction Item(fun, array) {\\\\n this.fun = fun;\\\\n this.array = array;\\\\n}\\\\nItem.prototype.run = function () {\\\\n this.fun.apply(null, this.array);\\\\n};\\\\nprocess.title = 'browser';\\\\nprocess.browser = true;\\\\nprocess.env = {};\\\\nprocess.argv = [];\\\\nprocess.version = ''; // empty string to avoid regexp issues\\\\nprocess.versions = {};\\\\n\\\\nfunction noop() {}\\\\n\\\\nprocess.on = noop;\\\\nprocess.addListener = noop;\\\\nprocess.once = noop;\\\\nprocess.off = noop;\\\\nprocess.removeListener = noop;\\\\nprocess.removeAllListeners = noop;\\\\nprocess.emit = noop;\\\\nprocess.prependListener = noop;\\\\nprocess.prependOnceListener = noop;\\\\n\\\\nprocess.listeners = function (name) { return [] }\\\\n\\\\nprocess.binding = function (name) {\\\\n throw new Error('process.binding is not supported');\\\\n};\\\\n\\\\nprocess.cwd = function () { return '/' };\\\\nprocess.chdir = function (dir) {\\\\n throw new Error('process.chdir is not supported');\\\\n};\\\\nprocess.umask = function() { return 0; };\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/process/browser.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/punycode/punycode.js\\\":\\n/*!*******************************************!*\\\\\\n !*** ./node_modules/punycode/punycode.js ***!\\n \\\\*******************************************/\\n/*! no static exports found */\\n/***/ (function(module, exports, __webpack_require__) {\\n\\neval(\\\"/* WEBPACK VAR INJECTION */(function(module, global) {var __WEBPACK_AMD_DEFINE_RESULT__;/*! https://mths.be/punycode v1.4.1 by @mathias */\\\\n;(function(root) {\\\\n\\\\n\\\\t/** Detect free variables */\\\\n\\\\tvar freeExports = true && exports &&\\\\n\\\\t\\\\t!exports.nodeType && exports;\\\\n\\\\tvar freeModule = true && module &&\\\\n\\\\t\\\\t!module.nodeType && module;\\\\n\\\\tvar freeGlobal = typeof global == 'object' && global;\\\\n\\\\tif (\\\\n\\\\t\\\\tfreeGlobal.global === freeGlobal ||\\\\n\\\\t\\\\tfreeGlobal.window === freeGlobal ||\\\\n\\\\t\\\\tfreeGlobal.self === freeGlobal\\\\n\\\\t) {\\\\n\\\\t\\\\troot = freeGlobal;\\\\n\\\\t}\\\\n\\\\n\\\\t/**\\\\n\\\\t * The `punycode` object.\\\\n\\\\t * @name punycode\\\\n\\\\t * @type Object\\\\n\\\\t */\\\\n\\\\tvar punycode,\\\\n\\\\n\\\\t/** Highest positive signed 32-bit float value */\\\\n\\\\tmaxInt = 2147483647, // aka. 0x7FFFFFFF or 2^31-1\\\\n\\\\n\\\\t/** Bootstring parameters */\\\\n\\\\tbase = 36,\\\\n\\\\ttMin = 1,\\\\n\\\\ttMax = 26,\\\\n\\\\tskew = 38,\\\\n\\\\tdamp = 700,\\\\n\\\\tinitialBias = 72,\\\\n\\\\tinitialN = 128, // 0x80\\\\n\\\\tdelimiter = '-', // '\\\\\\\\x2D'\\\\n\\\\n\\\\t/** Regular expressions */\\\\n\\\\tregexPunycode = /^xn--/,\\\\n\\\\tregexNonASCII = /[^\\\\\\\\x20-\\\\\\\\x7E]/, // unprintable ASCII chars + non-ASCII chars\\\\n\\\\tregexSeparators = /[\\\\\\\\x2E\\\\\\\\u3002\\\\\\\\uFF0E\\\\\\\\uFF61]/g, // RFC 3490 separators\\\\n\\\\n\\\\t/** Error messages */\\\\n\\\\terrors = {\\\\n\\\\t\\\\t'overflow': 'Overflow: input needs wider integers to process',\\\\n\\\\t\\\\t'not-basic': 'Illegal input >= 0x80 (not a basic code point)',\\\\n\\\\t\\\\t'invalid-input': 'Invalid input'\\\\n\\\\t},\\\\n\\\\n\\\\t/** Convenience shortcuts */\\\\n\\\\tbaseMinusTMin = base - tMin,\\\\n\\\\tfloor = Math.floor,\\\\n\\\\tstringFromCharCode = String.fromCharCode,\\\\n\\\\n\\\\t/** Temporary variable */\\\\n\\\\tkey;\\\\n\\\\n\\\\t/*--------------------------------------------------------------------------*/\\\\n\\\\n\\\\t/**\\\\n\\\\t * A generic error utility function.\\\\n\\\\t * @private\\\\n\\\\t * @param {String} type The error type.\\\\n\\\\t * @returns {Error} Throws a `RangeError` with the applicable error message.\\\\n\\\\t */\\\\n\\\\tfunction error(type) {\\\\n\\\\t\\\\tthrow new RangeError(errors[type]);\\\\n\\\\t}\\\\n\\\\n\\\\t/**\\\\n\\\\t * A generic `Array#map` utility function.\\\\n\\\\t * @private\\\\n\\\\t * @param {Array} array The array to iterate over.\\\\n\\\\t * @param {Function} callback The function that gets called for every array\\\\n\\\\t * item.\\\\n\\\\t * @returns {Array} A new array of values returned by the callback function.\\\\n\\\\t */\\\\n\\\\tfunction map(array, fn) {\\\\n\\\\t\\\\tvar length = array.length;\\\\n\\\\t\\\\tvar result = [];\\\\n\\\\t\\\\twhile (length--) {\\\\n\\\\t\\\\t\\\\tresult[length] = fn(array[length]);\\\\n\\\\t\\\\t}\\\\n\\\\t\\\\treturn result;\\\\n\\\\t}\\\\n\\\\n\\\\t/**\\\\n\\\\t * A simple `Array#map`-like wrapper to work with domain name strings or email\\\\n\\\\t * addresses.\\\\n\\\\t * @private\\\\n\\\\t * @param {String} domain The domain name or email address.\\\\n\\\\t * @param {Function} callback The function that gets called for every\\\\n\\\\t * character.\\\\n\\\\t * @returns {Array} A new string of characters returned by the callback\\\\n\\\\t * function.\\\\n\\\\t */\\\\n\\\\tfunction mapDomain(string, fn) {\\\\n\\\\t\\\\tvar parts = string.split('@');\\\\n\\\\t\\\\tvar result = '';\\\\n\\\\t\\\\tif (parts.length > 1) {\\\\n\\\\t\\\\t\\\\t// In email addresses, only the domain name should be punycoded. Leave\\\\n\\\\t\\\\t\\\\t// the local part (i.e. everything up to `@`) intact.\\\\n\\\\t\\\\t\\\\tresult = parts[0] + '@';\\\\n\\\\t\\\\t\\\\tstring = parts[1];\\\\n\\\\t\\\\t}\\\\n\\\\t\\\\t// Avoid `split(regex)` for IE8 compatibility. See #17.\\\\n\\\\t\\\\tstring = string.replace(regexSeparators, '\\\\\\\\x2E');\\\\n\\\\t\\\\tvar labels = string.split('.');\\\\n\\\\t\\\\tvar encoded = map(labels, fn).join('.');\\\\n\\\\t\\\\treturn result + encoded;\\\\n\\\\t}\\\\n\\\\n\\\\t/**\\\\n\\\\t * Creates an array containing the numeric code points of each Unicode\\\\n\\\\t * character in the string. While JavaScript uses UCS-2 internally,\\\\n\\\\t * this function will convert a pair of surrogate halves (each of which\\\\n\\\\t * UCS-2 exposes as separate characters) into a single code point,\\\\n\\\\t * matching UTF-16.\\\\n\\\\t * @see `punycode.ucs2.encode`\\\\n\\\\t * @see <https://mathiasbynens.be/notes/javascript-encoding>\\\\n\\\\t * @memberOf punycode.ucs2\\\\n\\\\t * @name decode\\\\n\\\\t * @param {String} string The Unicode input string (UCS-2).\\\\n\\\\t * @returns {Array} The new array of code points.\\\\n\\\\t */\\\\n\\\\tfunction ucs2decode(string) {\\\\n\\\\t\\\\tvar output = [],\\\\n\\\\t\\\\t counter = 0,\\\\n\\\\t\\\\t length = string.length,\\\\n\\\\t\\\\t value,\\\\n\\\\t\\\\t extra;\\\\n\\\\t\\\\twhile (counter < length) {\\\\n\\\\t\\\\t\\\\tvalue = string.charCodeAt(counter++);\\\\n\\\\t\\\\t\\\\tif (value >= 0xD800 && value <= 0xDBFF && counter < length) {\\\\n\\\\t\\\\t\\\\t\\\\t// high surrogate, and there is a next character\\\\n\\\\t\\\\t\\\\t\\\\textra = string.charCodeAt(counter++);\\\\n\\\\t\\\\t\\\\t\\\\tif ((extra & 0xFC00) == 0xDC00) { // low surrogate\\\\n\\\\t\\\\t\\\\t\\\\t\\\\toutput.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000);\\\\n\\\\t\\\\t\\\\t\\\\t} else {\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t// unmatched surrogate; only append this code unit, in case the next\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t// code unit is the high surrogate of a surrogate pair\\\\n\\\\t\\\\t\\\\t\\\\t\\\\toutput.push(value);\\\\n\\\\t\\\\t\\\\t\\\\t\\\\tcounter--;\\\\n\\\\t\\\\t\\\\t\\\\t}\\\\n\\\\t\\\\t\\\\t} else {\\\\n\\\\t\\\\t\\\\t\\\\toutput.push(value);\\\\n\\\\t\\\\t\\\\t}\\\\n\\\\t\\\\t}\\\\n\\\\t\\\\treturn output;\\\\n\\\\t}\\\\n\\\\n\\\\t/**\\\\n\\\\t * Creates a string based on an array of numeric code points.\\\\n\\\\t * @see `punycode.ucs2.decode`\\\\n\\\\t * @memberOf punycode.ucs2\\\\n\\\\t * @name encode\\\\n\\\\t * @param {Array} codePoints The array of numeric code points.\\\\n\\\\t * @returns {String} The new Unicode string (UCS-2).\\\\n\\\\t */\\\\n\\\\tfunction ucs2encode(array) {\\\\n\\\\t\\\\treturn map(array, function(value) {\\\\n\\\\t\\\\t\\\\tvar output = '';\\\\n\\\\t\\\\t\\\\tif (value > 0xFFFF) {\\\\n\\\\t\\\\t\\\\t\\\\tvalue -= 0x10000;\\\\n\\\\t\\\\t\\\\t\\\\toutput += stringFromCharCode(value >>> 10 & 0x3FF | 0xD800);\\\\n\\\\t\\\\t\\\\t\\\\tvalue = 0xDC00 | value & 0x3FF;\\\\n\\\\t\\\\t\\\\t}\\\\n\\\\t\\\\t\\\\toutput += stringFromCharCode(value);\\\\n\\\\t\\\\t\\\\treturn output;\\\\n\\\\t\\\\t}).join('');\\\\n\\\\t}\\\\n\\\\n\\\\t/**\\\\n\\\\t * Converts a basic code point into a digit/integer.\\\\n\\\\t * @see `digitToBasic()`\\\\n\\\\t * @private\\\\n\\\\t * @param {Number} codePoint The basic numeric code point value.\\\\n\\\\t * @returns {Number} The numeric value of a basic code point (for use in\\\\n\\\\t * representing integers) in the range `0` to `base - 1`, or `base` if\\\\n\\\\t * the code point does not represent a value.\\\\n\\\\t */\\\\n\\\\tfunction basicToDigit(codePoint) {\\\\n\\\\t\\\\tif (codePoint - 48 < 10) {\\\\n\\\\t\\\\t\\\\treturn codePoint - 22;\\\\n\\\\t\\\\t}\\\\n\\\\t\\\\tif (codePoint - 65 < 26) {\\\\n\\\\t\\\\t\\\\treturn codePoint - 65;\\\\n\\\\t\\\\t}\\\\n\\\\t\\\\tif (codePoint - 97 < 26) {\\\\n\\\\t\\\\t\\\\treturn codePoint - 97;\\\\n\\\\t\\\\t}\\\\n\\\\t\\\\treturn base;\\\\n\\\\t}\\\\n\\\\n\\\\t/**\\\\n\\\\t * Converts a digit/integer into a basic code point.\\\\n\\\\t * @see `basicToDigit()`\\\\n\\\\t * @private\\\\n\\\\t * @param {Number} digit The numeric value of a basic code point.\\\\n\\\\t * @returns {Number} The basic code point whose value (when used for\\\\n\\\\t * representing integers) is `digit`, which needs to be in the range\\\\n\\\\t * `0` to `base - 1`. If `flag` is non-zero, the uppercase form is\\\\n\\\\t * used; else, the lowercase form is used. The behavior is undefined\\\\n\\\\t * if `flag` is non-zero and `digit` has no uppercase form.\\\\n\\\\t */\\\\n\\\\tfunction digitToBasic(digit, flag) {\\\\n\\\\t\\\\t// 0..25 map to ASCII a..z or A..Z\\\\n\\\\t\\\\t// 26..35 map to ASCII 0..9\\\\n\\\\t\\\\treturn digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5);\\\\n\\\\t}\\\\n\\\\n\\\\t/**\\\\n\\\\t * Bias adaptation function as per section 3.4 of RFC 3492.\\\\n\\\\t * https://tools.ietf.org/html/rfc3492#section-3.4\\\\n\\\\t * @private\\\\n\\\\t */\\\\n\\\\tfunction adapt(delta, numPoints, firstTime) {\\\\n\\\\t\\\\tvar k = 0;\\\\n\\\\t\\\\tdelta = firstTime ? floor(delta / damp) : delta >> 1;\\\\n\\\\t\\\\tdelta += floor(delta / numPoints);\\\\n\\\\t\\\\tfor (/* no initialization */; delta > baseMinusTMin * tMax >> 1; k += base) {\\\\n\\\\t\\\\t\\\\tdelta = floor(delta / baseMinusTMin);\\\\n\\\\t\\\\t}\\\\n\\\\t\\\\treturn floor(k + (baseMinusTMin + 1) * delta / (delta + skew));\\\\n\\\\t}\\\\n\\\\n\\\\t/**\\\\n\\\\t * Converts a Punycode string of ASCII-only symbols to a string of Unicode\\\\n\\\\t * symbols.\\\\n\\\\t * @memberOf punycode\\\\n\\\\t * @param {String} input The Punycode string of ASCII-only symbols.\\\\n\\\\t * @returns {String} The resulting string of Unicode symbols.\\\\n\\\\t */\\\\n\\\\tfunction decode(input) {\\\\n\\\\t\\\\t// Don't use UCS-2\\\\n\\\\t\\\\tvar output = [],\\\\n\\\\t\\\\t inputLength = input.length,\\\\n\\\\t\\\\t out,\\\\n\\\\t\\\\t i = 0,\\\\n\\\\t\\\\t n = initialN,\\\\n\\\\t\\\\t bias = initialBias,\\\\n\\\\t\\\\t basic,\\\\n\\\\t\\\\t j,\\\\n\\\\t\\\\t index,\\\\n\\\\t\\\\t oldi,\\\\n\\\\t\\\\t w,\\\\n\\\\t\\\\t k,\\\\n\\\\t\\\\t digit,\\\\n\\\\t\\\\t t,\\\\n\\\\t\\\\t /** Cached calculation results */\\\\n\\\\t\\\\t baseMinusT;\\\\n\\\\n\\\\t\\\\t// Handle the basic code points: let `basic` be the number of input code\\\\n\\\\t\\\\t// points before the last delimiter, or `0` if there is none, then copy\\\\n\\\\t\\\\t// the first basic code points to the output.\\\\n\\\\n\\\\t\\\\tbasic = input.lastIndexOf(delimiter);\\\\n\\\\t\\\\tif (basic < 0) {\\\\n\\\\t\\\\t\\\\tbasic = 0;\\\\n\\\\t\\\\t}\\\\n\\\\n\\\\t\\\\tfor (j = 0; j < basic; ++j) {\\\\n\\\\t\\\\t\\\\t// if it's not a basic code point\\\\n\\\\t\\\\t\\\\tif (input.charCodeAt(j) >= 0x80) {\\\\n\\\\t\\\\t\\\\t\\\\terror('not-basic');\\\\n\\\\t\\\\t\\\\t}\\\\n\\\\t\\\\t\\\\toutput.push(input.charCodeAt(j));\\\\n\\\\t\\\\t}\\\\n\\\\n\\\\t\\\\t// Main decoding loop: start just after the last delimiter if any basic code\\\\n\\\\t\\\\t// points were copied; start at the beginning otherwise.\\\\n\\\\n\\\\t\\\\tfor (index = basic > 0 ? basic + 1 : 0; index < inputLength; /* no final expression */) {\\\\n\\\\n\\\\t\\\\t\\\\t// `index` is the index of the next character to be consumed.\\\\n\\\\t\\\\t\\\\t// Decode a generalized variable-length integer into `delta`,\\\\n\\\\t\\\\t\\\\t// which gets added to `i`. The overflow checking is easier\\\\n\\\\t\\\\t\\\\t// if we increase `i` as we go, then subtract off its starting\\\\n\\\\t\\\\t\\\\t// value at the end to obtain `delta`.\\\\n\\\\t\\\\t\\\\tfor (oldi = i, w = 1, k = base; /* no condition */; k += base) {\\\\n\\\\n\\\\t\\\\t\\\\t\\\\tif (index >= inputLength) {\\\\n\\\\t\\\\t\\\\t\\\\t\\\\terror('invalid-input');\\\\n\\\\t\\\\t\\\\t\\\\t}\\\\n\\\\n\\\\t\\\\t\\\\t\\\\tdigit = basicToDigit(input.charCodeAt(index++));\\\\n\\\\n\\\\t\\\\t\\\\t\\\\tif (digit >= base || digit > floor((maxInt - i) / w)) {\\\\n\\\\t\\\\t\\\\t\\\\t\\\\terror('overflow');\\\\n\\\\t\\\\t\\\\t\\\\t}\\\\n\\\\n\\\\t\\\\t\\\\t\\\\ti += digit * w;\\\\n\\\\t\\\\t\\\\t\\\\tt = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);\\\\n\\\\n\\\\t\\\\t\\\\t\\\\tif (digit < t) {\\\\n\\\\t\\\\t\\\\t\\\\t\\\\tbreak;\\\\n\\\\t\\\\t\\\\t\\\\t}\\\\n\\\\n\\\\t\\\\t\\\\t\\\\tbaseMinusT = base - t;\\\\n\\\\t\\\\t\\\\t\\\\tif (w > floor(maxInt / baseMinusT)) {\\\\n\\\\t\\\\t\\\\t\\\\t\\\\terror('overflow');\\\\n\\\\t\\\\t\\\\t\\\\t}\\\\n\\\\n\\\\t\\\\t\\\\t\\\\tw *= baseMinusT;\\\\n\\\\n\\\\t\\\\t\\\\t}\\\\n\\\\n\\\\t\\\\t\\\\tout = output.length + 1;\\\\n\\\\t\\\\t\\\\tbias = adapt(i - oldi, out, oldi == 0);\\\\n\\\\n\\\\t\\\\t\\\\t// `i` was supposed to wrap around from `out` to `0`,\\\\n\\\\t\\\\t\\\\t// incrementing `n` each time, so we'll fix that now:\\\\n\\\\t\\\\t\\\\tif (floor(i / out) > maxInt - n) {\\\\n\\\\t\\\\t\\\\t\\\\terror('overflow');\\\\n\\\\t\\\\t\\\\t}\\\\n\\\\n\\\\t\\\\t\\\\tn += floor(i / out);\\\\n\\\\t\\\\t\\\\ti %= out;\\\\n\\\\n\\\\t\\\\t\\\\t// Insert `n` at position `i` of the output\\\\n\\\\t\\\\t\\\\toutput.splice(i++, 0, n);\\\\n\\\\n\\\\t\\\\t}\\\\n\\\\n\\\\t\\\\treturn ucs2encode(output);\\\\n\\\\t}\\\\n\\\\n\\\\t/**\\\\n\\\\t * Converts a string of Unicode symbols (e.g. a domain name label) to a\\\\n\\\\t * Punycode string of ASCII-only symbols.\\\\n\\\\t * @memberOf punycode\\\\n\\\\t * @param {String} input The string of Unicode symbols.\\\\n\\\\t * @returns {String} The resulting Punycode string of ASCII-only symbols.\\\\n\\\\t */\\\\n\\\\tfunction encode(input) {\\\\n\\\\t\\\\tvar n,\\\\n\\\\t\\\\t delta,\\\\n\\\\t\\\\t handledCPCount,\\\\n\\\\t\\\\t basicLength,\\\\n\\\\t\\\\t bias,\\\\n\\\\t\\\\t j,\\\\n\\\\t\\\\t m,\\\\n\\\\t\\\\t q,\\\\n\\\\t\\\\t k,\\\\n\\\\t\\\\t t,\\\\n\\\\t\\\\t currentValue,\\\\n\\\\t\\\\t output = [],\\\\n\\\\t\\\\t /** `inputLength` will hold the number of code points in `input`. */\\\\n\\\\t\\\\t inputLength,\\\\n\\\\t\\\\t /** Cached calculation results */\\\\n\\\\t\\\\t handledCPCountPlusOne,\\\\n\\\\t\\\\t baseMinusT,\\\\n\\\\t\\\\t qMinusT;\\\\n\\\\n\\\\t\\\\t// Convert the input in UCS-2 to Unicode\\\\n\\\\t\\\\tinput = ucs2decode(input);\\\\n\\\\n\\\\t\\\\t// Cache the length\\\\n\\\\t\\\\tinputLength = input.length;\\\\n\\\\n\\\\t\\\\t// Initialize the state\\\\n\\\\t\\\\tn = initialN;\\\\n\\\\t\\\\tdelta = 0;\\\\n\\\\t\\\\tbias = initialBias;\\\\n\\\\n\\\\t\\\\t// Handle the basic code points\\\\n\\\\t\\\\tfor (j = 0; j < inputLength; ++j) {\\\\n\\\\t\\\\t\\\\tcurrentValue = input[j];\\\\n\\\\t\\\\t\\\\tif (currentValue < 0x80) {\\\\n\\\\t\\\\t\\\\t\\\\toutput.push(stringFromCharCode(currentValue));\\\\n\\\\t\\\\t\\\\t}\\\\n\\\\t\\\\t}\\\\n\\\\n\\\\t\\\\thandledCPCount = basicLength = output.length;\\\\n\\\\n\\\\t\\\\t// `handledCPCount` is the number of code points that have been handled;\\\\n\\\\t\\\\t// `basicLength` is the number of basic code points.\\\\n\\\\n\\\\t\\\\t// Finish the basic string - if it is not empty - with a delimiter\\\\n\\\\t\\\\tif (basicLength) {\\\\n\\\\t\\\\t\\\\toutput.push(delimiter);\\\\n\\\\t\\\\t}\\\\n\\\\n\\\\t\\\\t// Main encoding loop:\\\\n\\\\t\\\\twhile (handledCPCount < inputLength) {\\\\n\\\\n\\\\t\\\\t\\\\t// All non-basic code points < n have been handled already. Find the next\\\\n\\\\t\\\\t\\\\t// larger one:\\\\n\\\\t\\\\t\\\\tfor (m = maxInt, j = 0; j < inputLength; ++j) {\\\\n\\\\t\\\\t\\\\t\\\\tcurrentValue = input[j];\\\\n\\\\t\\\\t\\\\t\\\\tif (currentValue >= n && currentValue < m) {\\\\n\\\\t\\\\t\\\\t\\\\t\\\\tm = currentValue;\\\\n\\\\t\\\\t\\\\t\\\\t}\\\\n\\\\t\\\\t\\\\t}\\\\n\\\\n\\\\t\\\\t\\\\t// Increase `delta` enough to advance the decoder's <n,i> state to <m,0>,\\\\n\\\\t\\\\t\\\\t// but guard against overflow\\\\n\\\\t\\\\t\\\\thandledCPCountPlusOne = handledCPCount + 1;\\\\n\\\\t\\\\t\\\\tif (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) {\\\\n\\\\t\\\\t\\\\t\\\\terror('overflow');\\\\n\\\\t\\\\t\\\\t}\\\\n\\\\n\\\\t\\\\t\\\\tdelta += (m - n) * handledCPCountPlusOne;\\\\n\\\\t\\\\t\\\\tn = m;\\\\n\\\\n\\\\t\\\\t\\\\tfor (j = 0; j < inputLength; ++j) {\\\\n\\\\t\\\\t\\\\t\\\\tcurrentValue = input[j];\\\\n\\\\n\\\\t\\\\t\\\\t\\\\tif (currentValue < n && ++delta > maxInt) {\\\\n\\\\t\\\\t\\\\t\\\\t\\\\terror('overflow');\\\\n\\\\t\\\\t\\\\t\\\\t}\\\\n\\\\n\\\\t\\\\t\\\\t\\\\tif (currentValue == n) {\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t// Represent delta as a generalized variable-length integer\\\\n\\\\t\\\\t\\\\t\\\\t\\\\tfor (q = delta, k = base; /* no condition */; k += base) {\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\tt = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\tif (q < t) {\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\tbreak;\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t}\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\tqMinusT = q - t;\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\tbaseMinusT = base - t;\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\toutput.push(\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\tstringFromCharCode(digitToBasic(t + qMinusT % baseMinusT, 0))\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t);\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\tq = floor(qMinusT / baseMinusT);\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t}\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\toutput.push(stringFromCharCode(digitToBasic(q, 0)));\\\\n\\\\t\\\\t\\\\t\\\\t\\\\tbias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength);\\\\n\\\\t\\\\t\\\\t\\\\t\\\\tdelta = 0;\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t++handledCPCount;\\\\n\\\\t\\\\t\\\\t\\\\t}\\\\n\\\\t\\\\t\\\\t}\\\\n\\\\n\\\\t\\\\t\\\\t++delta;\\\\n\\\\t\\\\t\\\\t++n;\\\\n\\\\n\\\\t\\\\t}\\\\n\\\\t\\\\treturn output.join('');\\\\n\\\\t}\\\\n\\\\n\\\\t/**\\\\n\\\\t * Converts a Punycode string representing a domain name or an email address\\\\n\\\\t * to Unicode. Only the Punycoded parts of the input will be converted, i.e.\\\\n\\\\t * it doesn't matter if you call it on a string that has already been\\\\n\\\\t * converted to Unicode.\\\\n\\\\t * @memberOf punycode\\\\n\\\\t * @param {String} input The Punycoded domain name or email address to\\\\n\\\\t * convert to Unicode.\\\\n\\\\t * @returns {String} The Unicode representation of the given Punycode\\\\n\\\\t * string.\\\\n\\\\t */\\\\n\\\\tfunction toUnicode(input) {\\\\n\\\\t\\\\treturn mapDomain(input, function(string) {\\\\n\\\\t\\\\t\\\\treturn regexPunycode.test(string)\\\\n\\\\t\\\\t\\\\t\\\\t? decode(string.slice(4).toLowerCase())\\\\n\\\\t\\\\t\\\\t\\\\t: string;\\\\n\\\\t\\\\t});\\\\n\\\\t}\\\\n\\\\n\\\\t/**\\\\n\\\\t * Converts a Unicode string representing a domain name or an email address to\\\\n\\\\t * Punycode. Only the non-ASCII parts of the domain name will be converted,\\\\n\\\\t * i.e. it doesn't matter if you call it with a domain that's already in\\\\n\\\\t * ASCII.\\\\n\\\\t * @memberOf punycode\\\\n\\\\t * @param {String} input The domain name or email address to convert, as a\\\\n\\\\t * Unicode string.\\\\n\\\\t * @returns {String} The Punycode representation of the given domain name or\\\\n\\\\t * email address.\\\\n\\\\t */\\\\n\\\\tfunction toASCII(input) {\\\\n\\\\t\\\\treturn mapDomain(input, function(string) {\\\\n\\\\t\\\\t\\\\treturn regexNonASCII.test(string)\\\\n\\\\t\\\\t\\\\t\\\\t? 'xn--' + encode(string)\\\\n\\\\t\\\\t\\\\t\\\\t: string;\\\\n\\\\t\\\\t});\\\\n\\\\t}\\\\n\\\\n\\\\t/*--------------------------------------------------------------------------*/\\\\n\\\\n\\\\t/** Define the public API */\\\\n\\\\tpunycode = {\\\\n\\\\t\\\\t/**\\\\n\\\\t\\\\t * A string representing the current Punycode.js version number.\\\\n\\\\t\\\\t * @memberOf punycode\\\\n\\\\t\\\\t * @type String\\\\n\\\\t\\\\t */\\\\n\\\\t\\\\t'version': '1.4.1',\\\\n\\\\t\\\\t/**\\\\n\\\\t\\\\t * An object of methods to convert from JavaScript's internal character\\\\n\\\\t\\\\t * representation (UCS-2) to Unicode code points, and back.\\\\n\\\\t\\\\t * @see <https://mathiasbynens.be/notes/javascript-encoding>\\\\n\\\\t\\\\t * @memberOf punycode\\\\n\\\\t\\\\t * @type Object\\\\n\\\\t\\\\t */\\\\n\\\\t\\\\t'ucs2': {\\\\n\\\\t\\\\t\\\\t'decode': ucs2decode,\\\\n\\\\t\\\\t\\\\t'encode': ucs2encode\\\\n\\\\t\\\\t},\\\\n\\\\t\\\\t'decode': decode,\\\\n\\\\t\\\\t'encode': encode,\\\\n\\\\t\\\\t'toASCII': toASCII,\\\\n\\\\t\\\\t'toUnicode': toUnicode\\\\n\\\\t};\\\\n\\\\n\\\\t/** Expose `punycode` */\\\\n\\\\t// Some AMD build optimizers, like r.js, check for specific condition patterns\\\\n\\\\t// like the following:\\\\n\\\\tif (\\\\n\\\\t\\\\ttrue\\\\n\\\\t) {\\\\n\\\\t\\\\t!(__WEBPACK_AMD_DEFINE_RESULT__ = (function() {\\\\n\\\\t\\\\t\\\\treturn punycode;\\\\n\\\\t\\\\t}).call(exports, __webpack_require__, exports, module),\\\\n\\\\t\\\\t\\\\t\\\\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\\\\n\\\\t} else {}\\\\n\\\\n}(this));\\\\n\\\\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/module.js */ \\\\\\\"./node_modules/webpack/buildin/module.js\\\\\\\")(module), __webpack_require__(/*! ./../webpack/buildin/global.js */ \\\\\\\"./node_modules/webpack/buildin/global.js\\\\\\\")))\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/punycode/punycode.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/querystring-es3/decode.js\\\":\\n/*!************************************************!*\\\\\\n !*** ./node_modules/querystring-es3/decode.js ***!\\n \\\\************************************************/\\n/*! no static exports found */\\n/***/ (function(module, exports, __webpack_require__) {\\n\\n\\\"use strict\\\";\\neval(\\\"// Copyright Joyent, Inc. and other Node contributors.\\\\n//\\\\n// Permission is hereby granted, free of charge, to any person obtaining a\\\\n// copy of this software and associated documentation files (the\\\\n// \\\\\\\"Software\\\\\\\"), to deal in the Software without restriction, including\\\\n// without limitation the rights to use, copy, modify, merge, publish,\\\\n// distribute, sublicense, and/or sell copies of the Software, and to permit\\\\n// persons to whom the Software is furnished to do so, subject to the\\\\n// following conditions:\\\\n//\\\\n// The above copyright notice and this permission notice shall be included\\\\n// in all copies or substantial portions of the Software.\\\\n//\\\\n// THE SOFTWARE IS PROVIDED \\\\\\\"AS IS\\\\\\\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\\\\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\\\\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\\\\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\\\\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\\\\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\\\\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\\\\n\\\\n\\\\n\\\\n// If obj.hasOwnProperty has been overridden, then calling\\\\n// obj.hasOwnProperty(prop) will break.\\\\n// See: https://github.com/joyent/node/issues/1707\\\\nfunction hasOwnProperty(obj, prop) {\\\\n return Object.prototype.hasOwnProperty.call(obj, prop);\\\\n}\\\\n\\\\nmodule.exports = function(qs, sep, eq, options) {\\\\n sep = sep || '&';\\\\n eq = eq || '=';\\\\n var obj = {};\\\\n\\\\n if (typeof qs !== 'string' || qs.length === 0) {\\\\n return obj;\\\\n }\\\\n\\\\n var regexp = /\\\\\\\\+/g;\\\\n qs = qs.split(sep);\\\\n\\\\n var maxKeys = 1000;\\\\n if (options && typeof options.maxKeys === 'number') {\\\\n maxKeys = options.maxKeys;\\\\n }\\\\n\\\\n var len = qs.length;\\\\n // maxKeys <= 0 means that we should not limit keys count\\\\n if (maxKeys > 0 && len > maxKeys) {\\\\n len = maxKeys;\\\\n }\\\\n\\\\n for (var i = 0; i < len; ++i) {\\\\n var x = qs[i].replace(regexp, '%20'),\\\\n idx = x.indexOf(eq),\\\\n kstr, vstr, k, v;\\\\n\\\\n if (idx >= 0) {\\\\n kstr = x.substr(0, idx);\\\\n vstr = x.substr(idx + 1);\\\\n } else {\\\\n kstr = x;\\\\n vstr = '';\\\\n }\\\\n\\\\n k = decodeURIComponent(kstr);\\\\n v = decodeURIComponent(vstr);\\\\n\\\\n if (!hasOwnProperty(obj, k)) {\\\\n obj[k] = v;\\\\n } else if (isArray(obj[k])) {\\\\n obj[k].push(v);\\\\n } else {\\\\n obj[k] = [obj[k], v];\\\\n }\\\\n }\\\\n\\\\n return obj;\\\\n};\\\\n\\\\nvar isArray = Array.isArray || function (xs) {\\\\n return Object.prototype.toString.call(xs) === '[object Array]';\\\\n};\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/querystring-es3/decode.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/querystring-es3/encode.js\\\":\\n/*!************************************************!*\\\\\\n !*** ./node_modules/querystring-es3/encode.js ***!\\n \\\\************************************************/\\n/*! no static exports found */\\n/***/ (function(module, exports, __webpack_require__) {\\n\\n\\\"use strict\\\";\\neval(\\\"// Copyright Joyent, Inc. and other Node contributors.\\\\n//\\\\n// Permission is hereby granted, free of charge, to any person obtaining a\\\\n// copy of this software and associated documentation files (the\\\\n// \\\\\\\"Software\\\\\\\"), to deal in the Software without restriction, including\\\\n// without limitation the rights to use, copy, modify, merge, publish,\\\\n// distribute, sublicense, and/or sell copies of the Software, and to permit\\\\n// persons to whom the Software is furnished to do so, subject to the\\\\n// following conditions:\\\\n//\\\\n// The above copyright notice and this permission notice shall be included\\\\n// in all copies or substantial portions of the Software.\\\\n//\\\\n// THE SOFTWARE IS PROVIDED \\\\\\\"AS IS\\\\\\\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\\\\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\\\\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\\\\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\\\\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\\\\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\\\\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\\\\n\\\\n\\\\n\\\\nvar stringifyPrimitive = function(v) {\\\\n switch (typeof v) {\\\\n case 'string':\\\\n return v;\\\\n\\\\n case 'boolean':\\\\n return v ? 'true' : 'false';\\\\n\\\\n case 'number':\\\\n return isFinite(v) ? v : '';\\\\n\\\\n default:\\\\n return '';\\\\n }\\\\n};\\\\n\\\\nmodule.exports = function(obj, sep, eq, name) {\\\\n sep = sep || '&';\\\\n eq = eq || '=';\\\\n if (obj === null) {\\\\n obj = undefined;\\\\n }\\\\n\\\\n if (typeof obj === 'object') {\\\\n return map(objectKeys(obj), function(k) {\\\\n var ks = encodeURIComponent(stringifyPrimitive(k)) + eq;\\\\n if (isArray(obj[k])) {\\\\n return map(obj[k], function(v) {\\\\n return ks + encodeURIComponent(stringifyPrimitive(v));\\\\n }).join(sep);\\\\n } else {\\\\n return ks + encodeURIComponent(stringifyPrimitive(obj[k]));\\\\n }\\\\n }).join(sep);\\\\n\\\\n }\\\\n\\\\n if (!name) return '';\\\\n return encodeURIComponent(stringifyPrimitive(name)) + eq +\\\\n encodeURIComponent(stringifyPrimitive(obj));\\\\n};\\\\n\\\\nvar isArray = Array.isArray || function (xs) {\\\\n return Object.prototype.toString.call(xs) === '[object Array]';\\\\n};\\\\n\\\\nfunction map (xs, f) {\\\\n if (xs.map) return xs.map(f);\\\\n var res = [];\\\\n for (var i = 0; i < xs.length; i++) {\\\\n res.push(f(xs[i], i));\\\\n }\\\\n return res;\\\\n}\\\\n\\\\nvar objectKeys = Object.keys || function (obj) {\\\\n var res = [];\\\\n for (var key in obj) {\\\\n if (Object.prototype.hasOwnProperty.call(obj, key)) res.push(key);\\\\n }\\\\n return res;\\\\n};\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/querystring-es3/encode.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/querystring-es3/index.js\\\":\\n/*!***********************************************!*\\\\\\n !*** ./node_modules/querystring-es3/index.js ***!\\n \\\\***********************************************/\\n/*! no static exports found */\\n/***/ (function(module, exports, __webpack_require__) {\\n\\n\\\"use strict\\\";\\neval(\\\"\\\\n\\\\nexports.decode = exports.parse = __webpack_require__(/*! ./decode */ \\\\\\\"./node_modules/querystring-es3/decode.js\\\\\\\");\\\\nexports.encode = exports.stringify = __webpack_require__(/*! ./encode */ \\\\\\\"./node_modules/querystring-es3/encode.js\\\\\\\");\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/querystring-es3/index.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/readable-stream/lib/_stream_duplex.js\\\":\\n/*!************************************************************!*\\\\\\n !*** ./node_modules/readable-stream/lib/_stream_duplex.js ***!\\n \\\\************************************************************/\\n/*! no static exports found */\\n/***/ (function(module, exports, __webpack_require__) {\\n\\n\\\"use strict\\\";\\neval(\\\"// Copyright Joyent, Inc. and other Node contributors.\\\\n//\\\\n// Permission is hereby granted, free of charge, to any person obtaining a\\\\n// copy of this software and associated documentation files (the\\\\n// \\\\\\\"Software\\\\\\\"), to deal in the Software without restriction, including\\\\n// without limitation the rights to use, copy, modify, merge, publish,\\\\n// distribute, sublicense, and/or sell copies of the Software, and to permit\\\\n// persons to whom the Software is furnished to do so, subject to the\\\\n// following conditions:\\\\n//\\\\n// The above copyright notice and this permission notice shall be included\\\\n// in all copies or substantial portions of the Software.\\\\n//\\\\n// THE SOFTWARE IS PROVIDED \\\\\\\"AS IS\\\\\\\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\\\\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\\\\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\\\\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\\\\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\\\\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\\\\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\\\\n\\\\n// a duplex stream is just a stream that is both readable and writable.\\\\n// Since JS doesn't have multiple prototypal inheritance, this class\\\\n// prototypally inherits from Readable, and then parasitically from\\\\n// Writable.\\\\n\\\\n\\\\n\\\\n/*<replacement>*/\\\\n\\\\nvar pna = __webpack_require__(/*! process-nextick-args */ \\\\\\\"./node_modules/process-nextick-args/index.js\\\\\\\");\\\\n/*</replacement>*/\\\\n\\\\n/*<replacement>*/\\\\nvar objectKeys = Object.keys || function (obj) {\\\\n var keys = [];\\\\n for (var key in obj) {\\\\n keys.push(key);\\\\n }return keys;\\\\n};\\\\n/*</replacement>*/\\\\n\\\\nmodule.exports = Duplex;\\\\n\\\\n/*<replacement>*/\\\\nvar util = Object.create(__webpack_require__(/*! core-util-is */ \\\\\\\"./node_modules/core-util-is/lib/util.js\\\\\\\"));\\\\nutil.inherits = __webpack_require__(/*! inherits */ \\\\\\\"./node_modules/inherits/inherits_browser.js\\\\\\\");\\\\n/*</replacement>*/\\\\n\\\\nvar Readable = __webpack_require__(/*! ./_stream_readable */ \\\\\\\"./node_modules/readable-stream/lib/_stream_readable.js\\\\\\\");\\\\nvar Writable = __webpack_require__(/*! ./_stream_writable */ \\\\\\\"./node_modules/readable-stream/lib/_stream_writable.js\\\\\\\");\\\\n\\\\nutil.inherits(Duplex, Readable);\\\\n\\\\n{\\\\n // avoid scope creep, the keys array can then be collected\\\\n var keys = objectKeys(Writable.prototype);\\\\n for (var v = 0; v < keys.length; v++) {\\\\n var method = keys[v];\\\\n if (!Duplex.prototype[method]) Duplex.prototype[method] = Writable.prototype[method];\\\\n }\\\\n}\\\\n\\\\nfunction Duplex(options) {\\\\n if (!(this instanceof Duplex)) return new Duplex(options);\\\\n\\\\n Readable.call(this, options);\\\\n Writable.call(this, options);\\\\n\\\\n if (options && options.readable === false) this.readable = false;\\\\n\\\\n if (options && options.writable === false) this.writable = false;\\\\n\\\\n this.allowHalfOpen = true;\\\\n if (options && options.allowHalfOpen === false) this.allowHalfOpen = false;\\\\n\\\\n this.once('end', onend);\\\\n}\\\\n\\\\nObject.defineProperty(Duplex.prototype, 'writableHighWaterMark', {\\\\n // making it explicit this property is not enumerable\\\\n // because otherwise some prototype manipulation in\\\\n // userland will fail\\\\n enumerable: false,\\\\n get: function () {\\\\n return this._writableState.highWaterMark;\\\\n }\\\\n});\\\\n\\\\n// the no-half-open enforcer\\\\nfunction onend() {\\\\n // if we allow half-open state, or if the writable side ended,\\\\n // then we're ok.\\\\n if (this.allowHalfOpen || this._writableState.ended) return;\\\\n\\\\n // no more data can be written.\\\\n // But allow more writes to happen in this tick.\\\\n pna.nextTick(onEndNT, this);\\\\n}\\\\n\\\\nfunction onEndNT(self) {\\\\n self.end();\\\\n}\\\\n\\\\nObject.defineProperty(Duplex.prototype, 'destroyed', {\\\\n get: function () {\\\\n if (this._readableState === undefined || this._writableState === undefined) {\\\\n return false;\\\\n }\\\\n return this._readableState.destroyed && this._writableState.destroyed;\\\\n },\\\\n set: function (value) {\\\\n // we ignore the value if the stream\\\\n // has not been initialized yet\\\\n if (this._readableState === undefined || this._writableState === undefined) {\\\\n return;\\\\n }\\\\n\\\\n // backward compatibility, the user is explicitly\\\\n // managing destroyed\\\\n this._readableState.destroyed = value;\\\\n this._writableState.destroyed = value;\\\\n }\\\\n});\\\\n\\\\nDuplex.prototype._destroy = function (err, cb) {\\\\n this.push(null);\\\\n this.end();\\\\n\\\\n pna.nextTick(cb, err);\\\\n};\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/readable-stream/lib/_stream_duplex.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/readable-stream/lib/_stream_passthrough.js\\\":\\n/*!*****************************************************************!*\\\\\\n !*** ./node_modules/readable-stream/lib/_stream_passthrough.js ***!\\n \\\\*****************************************************************/\\n/*! no static exports found */\\n/***/ (function(module, exports, __webpack_require__) {\\n\\n\\\"use strict\\\";\\neval(\\\"// Copyright Joyent, Inc. and other Node contributors.\\\\n//\\\\n// Permission is hereby granted, free of charge, to any person obtaining a\\\\n// copy of this software and associated documentation files (the\\\\n// \\\\\\\"Software\\\\\\\"), to deal in the Software without restriction, including\\\\n// without limitation the rights to use, copy, modify, merge, publish,\\\\n// distribute, sublicense, and/or sell copies of the Software, and to permit\\\\n// persons to whom the Software is furnished to do so, subject to the\\\\n// following conditions:\\\\n//\\\\n// The above copyright notice and this permission notice shall be included\\\\n// in all copies or substantial portions of the Software.\\\\n//\\\\n// THE SOFTWARE IS PROVIDED \\\\\\\"AS IS\\\\\\\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\\\\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\\\\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\\\\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\\\\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\\\\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\\\\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\\\\n\\\\n// a passthrough stream.\\\\n// basically just the most minimal sort of Transform stream.\\\\n// Every written chunk gets output as-is.\\\\n\\\\n\\\\n\\\\nmodule.exports = PassThrough;\\\\n\\\\nvar Transform = __webpack_require__(/*! ./_stream_transform */ \\\\\\\"./node_modules/readable-stream/lib/_stream_transform.js\\\\\\\");\\\\n\\\\n/*<replacement>*/\\\\nvar util = Object.create(__webpack_require__(/*! core-util-is */ \\\\\\\"./node_modules/core-util-is/lib/util.js\\\\\\\"));\\\\nutil.inherits = __webpack_require__(/*! inherits */ \\\\\\\"./node_modules/inherits/inherits_browser.js\\\\\\\");\\\\n/*</replacement>*/\\\\n\\\\nutil.inherits(PassThrough, Transform);\\\\n\\\\nfunction PassThrough(options) {\\\\n if (!(this instanceof PassThrough)) return new PassThrough(options);\\\\n\\\\n Transform.call(this, options);\\\\n}\\\\n\\\\nPassThrough.prototype._transform = function (chunk, encoding, cb) {\\\\n cb(null, chunk);\\\\n};\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/readable-stream/lib/_stream_passthrough.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/readable-stream/lib/_stream_readable.js\\\":\\n/*!**************************************************************!*\\\\\\n !*** ./node_modules/readable-stream/lib/_stream_readable.js ***!\\n \\\\**************************************************************/\\n/*! no static exports found */\\n/***/ (function(module, exports, __webpack_require__) {\\n\\n\\\"use strict\\\";\\neval(\\\"/* WEBPACK VAR INJECTION */(function(global, process) {// Copyright Joyent, Inc. and other Node contributors.\\\\n//\\\\n// Permission is hereby granted, free of charge, to any person obtaining a\\\\n// copy of this software and associated documentation files (the\\\\n// \\\\\\\"Software\\\\\\\"), to deal in the Software without restriction, including\\\\n// without limitation the rights to use, copy, modify, merge, publish,\\\\n// distribute, sublicense, and/or sell copies of the Software, and to permit\\\\n// persons to whom the Software is furnished to do so, subject to the\\\\n// following conditions:\\\\n//\\\\n// The above copyright notice and this permission notice shall be included\\\\n// in all copies or substantial portions of the Software.\\\\n//\\\\n// THE SOFTWARE IS PROVIDED \\\\\\\"AS IS\\\\\\\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\\\\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\\\\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\\\\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\\\\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\\\\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\\\\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\\\\n\\\\n\\\\n\\\\n/*<replacement>*/\\\\n\\\\nvar pna = __webpack_require__(/*! process-nextick-args */ \\\\\\\"./node_modules/process-nextick-args/index.js\\\\\\\");\\\\n/*</replacement>*/\\\\n\\\\nmodule.exports = Readable;\\\\n\\\\n/*<replacement>*/\\\\nvar isArray = __webpack_require__(/*! isarray */ \\\\\\\"./node_modules/isarray/index.js\\\\\\\");\\\\n/*</replacement>*/\\\\n\\\\n/*<replacement>*/\\\\nvar Duplex;\\\\n/*</replacement>*/\\\\n\\\\nReadable.ReadableState = ReadableState;\\\\n\\\\n/*<replacement>*/\\\\nvar EE = __webpack_require__(/*! events */ \\\\\\\"./node_modules/node-libs-browser/node_modules/events/events.js\\\\\\\").EventEmitter;\\\\n\\\\nvar EElistenerCount = function (emitter, type) {\\\\n return emitter.listeners(type).length;\\\\n};\\\\n/*</replacement>*/\\\\n\\\\n/*<replacement>*/\\\\nvar Stream = __webpack_require__(/*! ./internal/streams/stream */ \\\\\\\"./node_modules/readable-stream/lib/internal/streams/stream-browser.js\\\\\\\");\\\\n/*</replacement>*/\\\\n\\\\n/*<replacement>*/\\\\n\\\\nvar Buffer = __webpack_require__(/*! safe-buffer */ \\\\\\\"./node_modules/readable-stream/node_modules/safe-buffer/index.js\\\\\\\").Buffer;\\\\nvar OurUint8Array = global.Uint8Array || function () {};\\\\nfunction _uint8ArrayToBuffer(chunk) {\\\\n return Buffer.from(chunk);\\\\n}\\\\nfunction _isUint8Array(obj) {\\\\n return Buffer.isBuffer(obj) || obj instanceof OurUint8Array;\\\\n}\\\\n\\\\n/*</replacement>*/\\\\n\\\\n/*<replacement>*/\\\\nvar util = Object.create(__webpack_require__(/*! core-util-is */ \\\\\\\"./node_modules/core-util-is/lib/util.js\\\\\\\"));\\\\nutil.inherits = __webpack_require__(/*! inherits */ \\\\\\\"./node_modules/inherits/inherits_browser.js\\\\\\\");\\\\n/*</replacement>*/\\\\n\\\\n/*<replacement>*/\\\\nvar debugUtil = __webpack_require__(/*! util */ 0);\\\\nvar debug = void 0;\\\\nif (debugUtil && debugUtil.debuglog) {\\\\n debug = debugUtil.debuglog('stream');\\\\n} else {\\\\n debug = function () {};\\\\n}\\\\n/*</replacement>*/\\\\n\\\\nvar BufferList = __webpack_require__(/*! ./internal/streams/BufferList */ \\\\\\\"./node_modules/readable-stream/lib/internal/streams/BufferList.js\\\\\\\");\\\\nvar destroyImpl = __webpack_require__(/*! ./internal/streams/destroy */ \\\\\\\"./node_modules/readable-stream/lib/internal/streams/destroy.js\\\\\\\");\\\\nvar StringDecoder;\\\\n\\\\nutil.inherits(Readable, Stream);\\\\n\\\\nvar kProxyEvents = ['error', 'close', 'destroy', 'pause', 'resume'];\\\\n\\\\nfunction prependListener(emitter, event, fn) {\\\\n // Sadly this is not cacheable as some libraries bundle their own\\\\n // event emitter implementation with them.\\\\n if (typeof emitter.prependListener === 'function') return emitter.prependListener(event, fn);\\\\n\\\\n // This is a hack to make sure that our error handler is attached before any\\\\n // userland ones. NEVER DO THIS. This is here only because this code needs\\\\n // to continue to work with older versions of Node.js that do not include\\\\n // the prependListener() method. The goal is to eventually remove this hack.\\\\n if (!emitter._events || !emitter._events[event]) emitter.on(event, fn);else if (isArray(emitter._events[event])) emitter._events[event].unshift(fn);else emitter._events[event] = [fn, emitter._events[event]];\\\\n}\\\\n\\\\nfunction ReadableState(options, stream) {\\\\n Duplex = Duplex || __webpack_require__(/*! ./_stream_duplex */ \\\\\\\"./node_modules/readable-stream/lib/_stream_duplex.js\\\\\\\");\\\\n\\\\n options = options || {};\\\\n\\\\n // Duplex streams are both readable and writable, but share\\\\n // the same options object.\\\\n // However, some cases require setting options to different\\\\n // values for the readable and the writable sides of the duplex stream.\\\\n // These options can be provided separately as readableXXX and writableXXX.\\\\n var isDuplex = stream instanceof Duplex;\\\\n\\\\n // object stream flag. Used to make read(n) ignore n and to\\\\n // make all the buffer merging and length checks go away\\\\n this.objectMode = !!options.objectMode;\\\\n\\\\n if (isDuplex) this.objectMode = this.objectMode || !!options.readableObjectMode;\\\\n\\\\n // the point at which it stops calling _read() to fill the buffer\\\\n // Note: 0 is a valid value, means \\\\\\\"don't call _read preemptively ever\\\\\\\"\\\\n var hwm = options.highWaterMark;\\\\n var readableHwm = options.readableHighWaterMark;\\\\n var defaultHwm = this.objectMode ? 16 : 16 * 1024;\\\\n\\\\n if (hwm || hwm === 0) this.highWaterMark = hwm;else if (isDuplex && (readableHwm || readableHwm === 0)) this.highWaterMark = readableHwm;else this.highWaterMark = defaultHwm;\\\\n\\\\n // cast to ints.\\\\n this.highWaterMark = Math.floor(this.highWaterMark);\\\\n\\\\n // A linked list is used to store data chunks instead of an array because the\\\\n // linked list can remove elements from the beginning faster than\\\\n // array.shift()\\\\n this.buffer = new BufferList();\\\\n this.length = 0;\\\\n this.pipes = null;\\\\n this.pipesCount = 0;\\\\n this.flowing = null;\\\\n this.ended = false;\\\\n this.endEmitted = false;\\\\n this.reading = false;\\\\n\\\\n // a flag to be able to tell if the event 'readable'/'data' is emitted\\\\n // immediately, or on a later tick. We set this to true at first, because\\\\n // any actions that shouldn't happen until \\\\\\\"later\\\\\\\" should generally also\\\\n // not happen before the first read call.\\\\n this.sync = true;\\\\n\\\\n // whenever we return null, then we set a flag to say\\\\n // that we're awaiting a 'readable' event emission.\\\\n this.needReadable = false;\\\\n this.emittedReadable = false;\\\\n this.readableListening = false;\\\\n this.resumeScheduled = false;\\\\n\\\\n // has it been destroyed\\\\n this.destroyed = false;\\\\n\\\\n // Crypto is kind of old and crusty. Historically, its default string\\\\n // encoding is 'binary' so we have to make this configurable.\\\\n // Everything else in the universe uses 'utf8', though.\\\\n this.defaultEncoding = options.defaultEncoding || 'utf8';\\\\n\\\\n // the number of writers that are awaiting a drain event in .pipe()s\\\\n this.awaitDrain = 0;\\\\n\\\\n // if true, a maybeReadMore has been scheduled\\\\n this.readingMore = false;\\\\n\\\\n this.decoder = null;\\\\n this.encoding = null;\\\\n if (options.encoding) {\\\\n if (!StringDecoder) StringDecoder = __webpack_require__(/*! string_decoder/ */ \\\\\\\"./node_modules/string_decoder/lib/string_decoder.js\\\\\\\").StringDecoder;\\\\n this.decoder = new StringDecoder(options.encoding);\\\\n this.encoding = options.encoding;\\\\n }\\\\n}\\\\n\\\\nfunction Readable(options) {\\\\n Duplex = Duplex || __webpack_require__(/*! ./_stream_duplex */ \\\\\\\"./node_modules/readable-stream/lib/_stream_duplex.js\\\\\\\");\\\\n\\\\n if (!(this instanceof Readable)) return new Readable(options);\\\\n\\\\n this._readableState = new ReadableState(options, this);\\\\n\\\\n // legacy\\\\n this.readable = true;\\\\n\\\\n if (options) {\\\\n if (typeof options.read === 'function') this._read = options.read;\\\\n\\\\n if (typeof options.destroy === 'function') this._destroy = options.destroy;\\\\n }\\\\n\\\\n Stream.call(this);\\\\n}\\\\n\\\\nObject.defineProperty(Readable.prototype, 'destroyed', {\\\\n get: function () {\\\\n if (this._readableState === undefined) {\\\\n return false;\\\\n }\\\\n return this._readableState.destroyed;\\\\n },\\\\n set: function (value) {\\\\n // we ignore the value if the stream\\\\n // has not been initialized yet\\\\n if (!this._readableState) {\\\\n return;\\\\n }\\\\n\\\\n // backward compatibility, the user is explicitly\\\\n // managing destroyed\\\\n this._readableState.destroyed = value;\\\\n }\\\\n});\\\\n\\\\nReadable.prototype.destroy = destroyImpl.destroy;\\\\nReadable.prototype._undestroy = destroyImpl.undestroy;\\\\nReadable.prototype._destroy = function (err, cb) {\\\\n this.push(null);\\\\n cb(err);\\\\n};\\\\n\\\\n// Manually shove something into the read() buffer.\\\\n// This returns true if the highWaterMark has not been hit yet,\\\\n// similar to how Writable.write() returns true if you should\\\\n// write() some more.\\\\nReadable.prototype.push = function (chunk, encoding) {\\\\n var state = this._readableState;\\\\n var skipChunkCheck;\\\\n\\\\n if (!state.objectMode) {\\\\n if (typeof chunk === 'string') {\\\\n encoding = encoding || state.defaultEncoding;\\\\n if (encoding !== state.encoding) {\\\\n chunk = Buffer.from(chunk, encoding);\\\\n encoding = '';\\\\n }\\\\n skipChunkCheck = true;\\\\n }\\\\n } else {\\\\n skipChunkCheck = true;\\\\n }\\\\n\\\\n return readableAddChunk(this, chunk, encoding, false, skipChunkCheck);\\\\n};\\\\n\\\\n// Unshift should *always* be something directly out of read()\\\\nReadable.prototype.unshift = function (chunk) {\\\\n return readableAddChunk(this, chunk, null, true, false);\\\\n};\\\\n\\\\nfunction readableAddChunk(stream, chunk, encoding, addToFront, skipChunkCheck) {\\\\n var state = stream._readableState;\\\\n if (chunk === null) {\\\\n state.reading = false;\\\\n onEofChunk(stream, state);\\\\n } else {\\\\n var er;\\\\n if (!skipChunkCheck) er = chunkInvalid(state, chunk);\\\\n if (er) {\\\\n stream.emit('error', er);\\\\n } else if (state.objectMode || chunk && chunk.length > 0) {\\\\n if (typeof chunk !== 'string' && !state.objectMode && Object.getPrototypeOf(chunk) !== Buffer.prototype) {\\\\n chunk = _uint8ArrayToBuffer(chunk);\\\\n }\\\\n\\\\n if (addToFront) {\\\\n if (state.endEmitted) stream.emit('error', new Error('stream.unshift() after end event'));else addChunk(stream, state, chunk, true);\\\\n } else if (state.ended) {\\\\n stream.emit('error', new Error('stream.push() after EOF'));\\\\n } else {\\\\n state.reading = false;\\\\n if (state.decoder && !encoding) {\\\\n chunk = state.decoder.write(chunk);\\\\n if (state.objectMode || chunk.length !== 0) addChunk(stream, state, chunk, false);else maybeReadMore(stream, state);\\\\n } else {\\\\n addChunk(stream, state, chunk, false);\\\\n }\\\\n }\\\\n } else if (!addToFront) {\\\\n state.reading = false;\\\\n }\\\\n }\\\\n\\\\n return needMoreData(state);\\\\n}\\\\n\\\\nfunction addChunk(stream, state, chunk, addToFront) {\\\\n if (state.flowing && state.length === 0 && !state.sync) {\\\\n stream.emit('data', chunk);\\\\n stream.read(0);\\\\n } else {\\\\n // update the buffer info.\\\\n state.length += state.objectMode ? 1 : chunk.length;\\\\n if (addToFront) state.buffer.unshift(chunk);else state.buffer.push(chunk);\\\\n\\\\n if (state.needReadable) emitReadable(stream);\\\\n }\\\\n maybeReadMore(stream, state);\\\\n}\\\\n\\\\nfunction chunkInvalid(state, chunk) {\\\\n var er;\\\\n if (!_isUint8Array(chunk) && typeof chunk !== 'string' && chunk !== undefined && !state.objectMode) {\\\\n er = new TypeError('Invalid non-string/buffer chunk');\\\\n }\\\\n return er;\\\\n}\\\\n\\\\n// if it's past the high water mark, we can push in some more.\\\\n// Also, if we have no data yet, we can stand some\\\\n// more bytes. This is to work around cases where hwm=0,\\\\n// such as the repl. Also, if the push() triggered a\\\\n// readable event, and the user called read(largeNumber) such that\\\\n// needReadable was set, then we ought to push more, so that another\\\\n// 'readable' event will be triggered.\\\\nfunction needMoreData(state) {\\\\n return !state.ended && (state.needReadable || state.length < state.highWaterMark || state.length === 0);\\\\n}\\\\n\\\\nReadable.prototype.isPaused = function () {\\\\n return this._readableState.flowing === false;\\\\n};\\\\n\\\\n// backwards compatibility.\\\\nReadable.prototype.setEncoding = function (enc) {\\\\n if (!StringDecoder) StringDecoder = __webpack_require__(/*! string_decoder/ */ \\\\\\\"./node_modules/string_decoder/lib/string_decoder.js\\\\\\\").StringDecoder;\\\\n this._readableState.decoder = new StringDecoder(enc);\\\\n this._readableState.encoding = enc;\\\\n return this;\\\\n};\\\\n\\\\n// Don't raise the hwm > 8MB\\\\nvar MAX_HWM = 0x800000;\\\\nfunction computeNewHighWaterMark(n) {\\\\n if (n >= MAX_HWM) {\\\\n n = MAX_HWM;\\\\n } else {\\\\n // Get the next highest power of 2 to prevent increasing hwm excessively in\\\\n // tiny amounts\\\\n n--;\\\\n n |= n >>> 1;\\\\n n |= n >>> 2;\\\\n n |= n >>> 4;\\\\n n |= n >>> 8;\\\\n n |= n >>> 16;\\\\n n++;\\\\n }\\\\n return n;\\\\n}\\\\n\\\\n// This function is designed to be inlinable, so please take care when making\\\\n// changes to the function body.\\\\nfunction howMuchToRead(n, state) {\\\\n if (n <= 0 || state.length === 0 && state.ended) return 0;\\\\n if (state.objectMode) return 1;\\\\n if (n !== n) {\\\\n // Only flow one buffer at a time\\\\n if (state.flowing && state.length) return state.buffer.head.data.length;else return state.length;\\\\n }\\\\n // If we're asking for more than the current hwm, then raise the hwm.\\\\n if (n > state.highWaterMark) state.highWaterMark = computeNewHighWaterMark(n);\\\\n if (n <= state.length) return n;\\\\n // Don't have enough\\\\n if (!state.ended) {\\\\n state.needReadable = true;\\\\n return 0;\\\\n }\\\\n return state.length;\\\\n}\\\\n\\\\n// you can override either this method, or the async _read(n) below.\\\\nReadable.prototype.read = function (n) {\\\\n debug('read', n);\\\\n n = parseInt(n, 10);\\\\n var state = this._readableState;\\\\n var nOrig = n;\\\\n\\\\n if (n !== 0) state.emittedReadable = false;\\\\n\\\\n // if we're doing read(0) to trigger a readable event, but we\\\\n // already have a bunch of data in the buffer, then just trigger\\\\n // the 'readable' event and move on.\\\\n if (n === 0 && state.needReadable && (state.length >= state.highWaterMark || state.ended)) {\\\\n debug('read: emitReadable', state.length, state.ended);\\\\n if (state.length === 0 && state.ended) endReadable(this);else emitReadable(this);\\\\n return null;\\\\n }\\\\n\\\\n n = howMuchToRead(n, state);\\\\n\\\\n // if we've ended, and we're now clear, then finish it up.\\\\n if (n === 0 && state.ended) {\\\\n if (state.length === 0) endReadable(this);\\\\n return null;\\\\n }\\\\n\\\\n // All the actual chunk generation logic needs to be\\\\n // *below* the call to _read. The reason is that in certain\\\\n // synthetic stream cases, such as passthrough streams, _read\\\\n // may be a completely synchronous operation which may change\\\\n // the state of the read buffer, providing enough data when\\\\n // before there was *not* enough.\\\\n //\\\\n // So, the steps are:\\\\n // 1. Figure out what the state of things will be after we do\\\\n // a read from the buffer.\\\\n //\\\\n // 2. If that resulting state will trigger a _read, then call _read.\\\\n // Note that this may be asynchronous, or synchronous. Yes, it is\\\\n // deeply ugly to write APIs this way, but that still doesn't mean\\\\n // that the Readable class should behave improperly, as streams are\\\\n // designed to be sync/async agnostic.\\\\n // Take note if the _read call is sync or async (ie, if the read call\\\\n // has returned yet), so that we know whether or not it's safe to emit\\\\n // 'readable' etc.\\\\n //\\\\n // 3. Actually pull the requested chunks out of the buffer and return.\\\\n\\\\n // if we need a readable event, then we need to do some reading.\\\\n var doRead = state.needReadable;\\\\n debug('need readable', doRead);\\\\n\\\\n // if we currently have less than the highWaterMark, then also read some\\\\n if (state.length === 0 || state.length - n < state.highWaterMark) {\\\\n doRead = true;\\\\n debug('length less than watermark', doRead);\\\\n }\\\\n\\\\n // however, if we've ended, then there's no point, and if we're already\\\\n // reading, then it's unnecessary.\\\\n if (state.ended || state.reading) {\\\\n doRead = false;\\\\n debug('reading or ended', doRead);\\\\n } else if (doRead) {\\\\n debug('do read');\\\\n state.reading = true;\\\\n state.sync = true;\\\\n // if the length is currently zero, then we *need* a readable event.\\\\n if (state.length === 0) state.needReadable = true;\\\\n // call internal read method\\\\n this._read(state.highWaterMark);\\\\n state.sync = false;\\\\n // If _read pushed data synchronously, then `reading` will be false,\\\\n // and we need to re-evaluate how much data we can return to the user.\\\\n if (!state.reading) n = howMuchToRead(nOrig, state);\\\\n }\\\\n\\\\n var ret;\\\\n if (n > 0) ret = fromList(n, state);else ret = null;\\\\n\\\\n if (ret === null) {\\\\n state.needReadable = true;\\\\n n = 0;\\\\n } else {\\\\n state.length -= n;\\\\n }\\\\n\\\\n if (state.length === 0) {\\\\n // If we have nothing in the buffer, then we want to know\\\\n // as soon as we *do* get something into the buffer.\\\\n if (!state.ended) state.needReadable = true;\\\\n\\\\n // If we tried to read() past the EOF, then emit end on the next tick.\\\\n if (nOrig !== n && state.ended) endReadable(this);\\\\n }\\\\n\\\\n if (ret !== null) this.emit('data', ret);\\\\n\\\\n return ret;\\\\n};\\\\n\\\\nfunction onEofChunk(stream, state) {\\\\n if (state.ended) return;\\\\n if (state.decoder) {\\\\n var chunk = state.decoder.end();\\\\n if (chunk && chunk.length) {\\\\n state.buffer.push(chunk);\\\\n state.length += state.objectMode ? 1 : chunk.length;\\\\n }\\\\n }\\\\n state.ended = true;\\\\n\\\\n // emit 'readable' now to make sure it gets picked up.\\\\n emitReadable(stream);\\\\n}\\\\n\\\\n// Don't emit readable right away in sync mode, because this can trigger\\\\n// another read() call => stack overflow. This way, it might trigger\\\\n// a nextTick recursion warning, but that's not so bad.\\\\nfunction emitReadable(stream) {\\\\n var state = stream._readableState;\\\\n state.needReadable = false;\\\\n if (!state.emittedReadable) {\\\\n debug('emitReadable', state.flowing);\\\\n state.emittedReadable = true;\\\\n if (state.sync) pna.nextTick(emitReadable_, stream);else emitReadable_(stream);\\\\n }\\\\n}\\\\n\\\\nfunction emitReadable_(stream) {\\\\n debug('emit readable');\\\\n stream.emit('readable');\\\\n flow(stream);\\\\n}\\\\n\\\\n// at this point, the user has presumably seen the 'readable' event,\\\\n// and called read() to consume some data. that may have triggered\\\\n// in turn another _read(n) call, in which case reading = true if\\\\n// it's in progress.\\\\n// However, if we're not ended, or reading, and the length < hwm,\\\\n// then go ahead and try to read some more preemptively.\\\\nfunction maybeReadMore(stream, state) {\\\\n if (!state.readingMore) {\\\\n state.readingMore = true;\\\\n pna.nextTick(maybeReadMore_, stream, state);\\\\n }\\\\n}\\\\n\\\\nfunction maybeReadMore_(stream, state) {\\\\n var len = state.length;\\\\n while (!state.reading && !state.flowing && !state.ended && state.length < state.highWaterMark) {\\\\n debug('maybeReadMore read 0');\\\\n stream.read(0);\\\\n if (len === state.length)\\\\n // didn't get any data, stop spinning.\\\\n break;else len = state.length;\\\\n }\\\\n state.readingMore = false;\\\\n}\\\\n\\\\n// abstract method. to be overridden in specific implementation classes.\\\\n// call cb(er, data) where data is <= n in length.\\\\n// for virtual (non-string, non-buffer) streams, \\\\\\\"length\\\\\\\" is somewhat\\\\n// arbitrary, and perhaps not very meaningful.\\\\nReadable.prototype._read = function (n) {\\\\n this.emit('error', new Error('_read() is not implemented'));\\\\n};\\\\n\\\\nReadable.prototype.pipe = function (dest, pipeOpts) {\\\\n var src = this;\\\\n var state = this._readableState;\\\\n\\\\n switch (state.pipesCount) {\\\\n case 0:\\\\n state.pipes = dest;\\\\n break;\\\\n case 1:\\\\n state.pipes = [state.pipes, dest];\\\\n break;\\\\n default:\\\\n state.pipes.push(dest);\\\\n break;\\\\n }\\\\n state.pipesCount += 1;\\\\n debug('pipe count=%d opts=%j', state.pipesCount, pipeOpts);\\\\n\\\\n var doEnd = (!pipeOpts || pipeOpts.end !== false) && dest !== process.stdout && dest !== process.stderr;\\\\n\\\\n var endFn = doEnd ? onend : unpipe;\\\\n if (state.endEmitted) pna.nextTick(endFn);else src.once('end', endFn);\\\\n\\\\n dest.on('unpipe', onunpipe);\\\\n function onunpipe(readable, unpipeInfo) {\\\\n debug('onunpipe');\\\\n if (readable === src) {\\\\n if (unpipeInfo && unpipeInfo.hasUnpiped === false) {\\\\n unpipeInfo.hasUnpiped = true;\\\\n cleanup();\\\\n }\\\\n }\\\\n }\\\\n\\\\n function onend() {\\\\n debug('onend');\\\\n dest.end();\\\\n }\\\\n\\\\n // when the dest drains, it reduces the awaitDrain counter\\\\n // on the source. This would be more elegant with a .once()\\\\n // handler in flow(), but adding and removing repeatedly is\\\\n // too slow.\\\\n var ondrain = pipeOnDrain(src);\\\\n dest.on('drain', ondrain);\\\\n\\\\n var cleanedUp = false;\\\\n function cleanup() {\\\\n debug('cleanup');\\\\n // cleanup event handlers once the pipe is broken\\\\n dest.removeListener('close', onclose);\\\\n dest.removeListener('finish', onfinish);\\\\n dest.removeListener('drain', ondrain);\\\\n dest.removeListener('error', onerror);\\\\n dest.removeListener('unpipe', onunpipe);\\\\n src.removeListener('end', onend);\\\\n src.removeListener('end', unpipe);\\\\n src.removeListener('data', ondata);\\\\n\\\\n cleanedUp = true;\\\\n\\\\n // if the reader is waiting for a drain event from this\\\\n // specific writer, then it would cause it to never start\\\\n // flowing again.\\\\n // So, if this is awaiting a drain, then we just call it now.\\\\n // If we don't know, then assume that we are waiting for one.\\\\n if (state.awaitDrain && (!dest._writableState || dest._writableState.needDrain)) ondrain();\\\\n }\\\\n\\\\n // If the user pushes more data while we're writing to dest then we'll end up\\\\n // in ondata again. However, we only want to increase awaitDrain once because\\\\n // dest will only emit one 'drain' event for the multiple writes.\\\\n // => Introduce a guard on increasing awaitDrain.\\\\n var increasedAwaitDrain = false;\\\\n src.on('data', ondata);\\\\n function ondata(chunk) {\\\\n debug('ondata');\\\\n increasedAwaitDrain = false;\\\\n var ret = dest.write(chunk);\\\\n if (false === ret && !increasedAwaitDrain) {\\\\n // If the user unpiped during `dest.write()`, it is possible\\\\n // to get stuck in a permanently paused state if that write\\\\n // also returned false.\\\\n // => Check whether `dest` is still a piping destination.\\\\n if ((state.pipesCount === 1 && state.pipes === dest || state.pipesCount > 1 && indexOf(state.pipes, dest) !== -1) && !cleanedUp) {\\\\n debug('false write response, pause', src._readableState.awaitDrain);\\\\n src._readableState.awaitDrain++;\\\\n increasedAwaitDrain = true;\\\\n }\\\\n src.pause();\\\\n }\\\\n }\\\\n\\\\n // if the dest has an error, then stop piping into it.\\\\n // however, don't suppress the throwing behavior for this.\\\\n function onerror(er) {\\\\n debug('onerror', er);\\\\n unpipe();\\\\n dest.removeListener('error', onerror);\\\\n if (EElistenerCount(dest, 'error') === 0) dest.emit('error', er);\\\\n }\\\\n\\\\n // Make sure our error handler is attached before userland ones.\\\\n prependListener(dest, 'error', onerror);\\\\n\\\\n // Both close and finish should trigger unpipe, but only once.\\\\n function onclose() {\\\\n dest.removeListener('finish', onfinish);\\\\n unpipe();\\\\n }\\\\n dest.once('close', onclose);\\\\n function onfinish() {\\\\n debug('onfinish');\\\\n dest.removeListener('close', onclose);\\\\n unpipe();\\\\n }\\\\n dest.once('finish', onfinish);\\\\n\\\\n function unpipe() {\\\\n debug('unpipe');\\\\n src.unpipe(dest);\\\\n }\\\\n\\\\n // tell the dest that it's being piped to\\\\n dest.emit('pipe', src);\\\\n\\\\n // start the flow if it hasn't been started already.\\\\n if (!state.flowing) {\\\\n debug('pipe resume');\\\\n src.resume();\\\\n }\\\\n\\\\n return dest;\\\\n};\\\\n\\\\nfunction pipeOnDrain(src) {\\\\n return function () {\\\\n var state = src._readableState;\\\\n debug('pipeOnDrain', state.awaitDrain);\\\\n if (state.awaitDrain) state.awaitDrain--;\\\\n if (state.awaitDrain === 0 && EElistenerCount(src, 'data')) {\\\\n state.flowing = true;\\\\n flow(src);\\\\n }\\\\n };\\\\n}\\\\n\\\\nReadable.prototype.unpipe = function (dest) {\\\\n var state = this._readableState;\\\\n var unpipeInfo = { hasUnpiped: false };\\\\n\\\\n // if we're not piping anywhere, then do nothing.\\\\n if (state.pipesCount === 0) return this;\\\\n\\\\n // just one destination. most common case.\\\\n if (state.pipesCount === 1) {\\\\n // passed in one, but it's not the right one.\\\\n if (dest && dest !== state.pipes) return this;\\\\n\\\\n if (!dest) dest = state.pipes;\\\\n\\\\n // got a match.\\\\n state.pipes = null;\\\\n state.pipesCount = 0;\\\\n state.flowing = false;\\\\n if (dest) dest.emit('unpipe', this, unpipeInfo);\\\\n return this;\\\\n }\\\\n\\\\n // slow case. multiple pipe destinations.\\\\n\\\\n if (!dest) {\\\\n // remove all.\\\\n var dests = state.pipes;\\\\n var len = state.pipesCount;\\\\n state.pipes = null;\\\\n state.pipesCount = 0;\\\\n state.flowing = false;\\\\n\\\\n for (var i = 0; i < len; i++) {\\\\n dests[i].emit('unpipe', this, unpipeInfo);\\\\n }return this;\\\\n }\\\\n\\\\n // try to find the right one.\\\\n var index = indexOf(state.pipes, dest);\\\\n if (index === -1) return this;\\\\n\\\\n state.pipes.splice(index, 1);\\\\n state.pipesCount -= 1;\\\\n if (state.pipesCount === 1) state.pipes = state.pipes[0];\\\\n\\\\n dest.emit('unpipe', this, unpipeInfo);\\\\n\\\\n return this;\\\\n};\\\\n\\\\n// set up data events if they are asked for\\\\n// Ensure readable listeners eventually get something\\\\nReadable.prototype.on = function (ev, fn) {\\\\n var res = Stream.prototype.on.call(this, ev, fn);\\\\n\\\\n if (ev === 'data') {\\\\n // Start flowing on next tick if stream isn't explicitly paused\\\\n if (this._readableState.flowing !== false) this.resume();\\\\n } else if (ev === 'readable') {\\\\n var state = this._readableState;\\\\n if (!state.endEmitted && !state.readableListening) {\\\\n state.readableListening = state.needReadable = true;\\\\n state.emittedReadable = false;\\\\n if (!state.reading) {\\\\n pna.nextTick(nReadingNextTick, this);\\\\n } else if (state.length) {\\\\n emitReadable(this);\\\\n }\\\\n }\\\\n }\\\\n\\\\n return res;\\\\n};\\\\nReadable.prototype.addListener = Readable.prototype.on;\\\\n\\\\nfunction nReadingNextTick(self) {\\\\n debug('readable nexttick read 0');\\\\n self.read(0);\\\\n}\\\\n\\\\n// pause() and resume() are remnants of the legacy readable stream API\\\\n// If the user uses them, then switch into old mode.\\\\nReadable.prototype.resume = function () {\\\\n var state = this._readableState;\\\\n if (!state.flowing) {\\\\n debug('resume');\\\\n state.flowing = true;\\\\n resume(this, state);\\\\n }\\\\n return this;\\\\n};\\\\n\\\\nfunction resume(stream, state) {\\\\n if (!state.resumeScheduled) {\\\\n state.resumeScheduled = true;\\\\n pna.nextTick(resume_, stream, state);\\\\n }\\\\n}\\\\n\\\\nfunction resume_(stream, state) {\\\\n if (!state.reading) {\\\\n debug('resume read 0');\\\\n stream.read(0);\\\\n }\\\\n\\\\n state.resumeScheduled = false;\\\\n state.awaitDrain = 0;\\\\n stream.emit('resume');\\\\n flow(stream);\\\\n if (state.flowing && !state.reading) stream.read(0);\\\\n}\\\\n\\\\nReadable.prototype.pause = function () {\\\\n debug('call pause flowing=%j', this._readableState.flowing);\\\\n if (false !== this._readableState.flowing) {\\\\n debug('pause');\\\\n this._readableState.flowing = false;\\\\n this.emit('pause');\\\\n }\\\\n return this;\\\\n};\\\\n\\\\nfunction flow(stream) {\\\\n var state = stream._readableState;\\\\n debug('flow', state.flowing);\\\\n while (state.flowing && stream.read() !== null) {}\\\\n}\\\\n\\\\n// wrap an old-style stream as the async data source.\\\\n// This is *not* part of the readable stream interface.\\\\n// It is an ugly unfortunate mess of history.\\\\nReadable.prototype.wrap = function (stream) {\\\\n var _this = this;\\\\n\\\\n var state = this._readableState;\\\\n var paused = false;\\\\n\\\\n stream.on('end', function () {\\\\n debug('wrapped end');\\\\n if (state.decoder && !state.ended) {\\\\n var chunk = state.decoder.end();\\\\n if (chunk && chunk.length) _this.push(chunk);\\\\n }\\\\n\\\\n _this.push(null);\\\\n });\\\\n\\\\n stream.on('data', function (chunk) {\\\\n debug('wrapped data');\\\\n if (state.decoder) chunk = state.decoder.write(chunk);\\\\n\\\\n // don't skip over falsy values in objectMode\\\\n if (state.objectMode && (chunk === null || chunk === undefined)) return;else if (!state.objectMode && (!chunk || !chunk.length)) return;\\\\n\\\\n var ret = _this.push(chunk);\\\\n if (!ret) {\\\\n paused = true;\\\\n stream.pause();\\\\n }\\\\n });\\\\n\\\\n // proxy all the other methods.\\\\n // important when wrapping filters and duplexes.\\\\n for (var i in stream) {\\\\n if (this[i] === undefined && typeof stream[i] === 'function') {\\\\n this[i] = function (method) {\\\\n return function () {\\\\n return stream[method].apply(stream, arguments);\\\\n };\\\\n }(i);\\\\n }\\\\n }\\\\n\\\\n // proxy certain important events.\\\\n for (var n = 0; n < kProxyEvents.length; n++) {\\\\n stream.on(kProxyEvents[n], this.emit.bind(this, kProxyEvents[n]));\\\\n }\\\\n\\\\n // when we try to consume some more bytes, simply unpause the\\\\n // underlying stream.\\\\n this._read = function (n) {\\\\n debug('wrapped _read', n);\\\\n if (paused) {\\\\n paused = false;\\\\n stream.resume();\\\\n }\\\\n };\\\\n\\\\n return this;\\\\n};\\\\n\\\\nObject.defineProperty(Readable.prototype, 'readableHighWaterMark', {\\\\n // making it explicit this property is not enumerable\\\\n // because otherwise some prototype manipulation in\\\\n // userland will fail\\\\n enumerable: false,\\\\n get: function () {\\\\n return this._readableState.highWaterMark;\\\\n }\\\\n});\\\\n\\\\n// exposed for testing purposes only.\\\\nReadable._fromList = fromList;\\\\n\\\\n// Pluck off n bytes from an array of buffers.\\\\n// Length is the combined lengths of all the buffers in the list.\\\\n// This function is designed to be inlinable, so please take care when making\\\\n// changes to the function body.\\\\nfunction fromList(n, state) {\\\\n // nothing buffered\\\\n if (state.length === 0) return null;\\\\n\\\\n var ret;\\\\n if (state.objectMode) ret = state.buffer.shift();else if (!n || n >= state.length) {\\\\n // read it all, truncate the list\\\\n if (state.decoder) ret = state.buffer.join('');else if (state.buffer.length === 1) ret = state.buffer.head.data;else ret = state.buffer.concat(state.length);\\\\n state.buffer.clear();\\\\n } else {\\\\n // read part of list\\\\n ret = fromListPartial(n, state.buffer, state.decoder);\\\\n }\\\\n\\\\n return ret;\\\\n}\\\\n\\\\n// Extracts only enough buffered data to satisfy the amount requested.\\\\n// This function is designed to be inlinable, so please take care when making\\\\n// changes to the function body.\\\\nfunction fromListPartial(n, list, hasStrings) {\\\\n var ret;\\\\n if (n < list.head.data.length) {\\\\n // slice is the same for buffers and strings\\\\n ret = list.head.data.slice(0, n);\\\\n list.head.data = list.head.data.slice(n);\\\\n } else if (n === list.head.data.length) {\\\\n // first chunk is a perfect match\\\\n ret = list.shift();\\\\n } else {\\\\n // result spans more than one buffer\\\\n ret = hasStrings ? copyFromBufferString(n, list) : copyFromBuffer(n, list);\\\\n }\\\\n return ret;\\\\n}\\\\n\\\\n// Copies a specified amount of characters from the list of buffered data\\\\n// chunks.\\\\n// This function is designed to be inlinable, so please take care when making\\\\n// changes to the function body.\\\\nfunction copyFromBufferString(n, list) {\\\\n var p = list.head;\\\\n var c = 1;\\\\n var ret = p.data;\\\\n n -= ret.length;\\\\n while (p = p.next) {\\\\n var str = p.data;\\\\n var nb = n > str.length ? str.length : n;\\\\n if (nb === str.length) ret += str;else ret += str.slice(0, n);\\\\n n -= nb;\\\\n if (n === 0) {\\\\n if (nb === str.length) {\\\\n ++c;\\\\n if (p.next) list.head = p.next;else list.head = list.tail = null;\\\\n } else {\\\\n list.head = p;\\\\n p.data = str.slice(nb);\\\\n }\\\\n break;\\\\n }\\\\n ++c;\\\\n }\\\\n list.length -= c;\\\\n return ret;\\\\n}\\\\n\\\\n// Copies a specified amount of bytes from the list of buffered data chunks.\\\\n// This function is designed to be inlinable, so please take care when making\\\\n// changes to the function body.\\\\nfunction copyFromBuffer(n, list) {\\\\n var ret = Buffer.allocUnsafe(n);\\\\n var p = list.head;\\\\n var c = 1;\\\\n p.data.copy(ret);\\\\n n -= p.data.length;\\\\n while (p = p.next) {\\\\n var buf = p.data;\\\\n var nb = n > buf.length ? buf.length : n;\\\\n buf.copy(ret, ret.length - n, 0, nb);\\\\n n -= nb;\\\\n if (n === 0) {\\\\n if (nb === buf.length) {\\\\n ++c;\\\\n if (p.next) list.head = p.next;else list.head = list.tail = null;\\\\n } else {\\\\n list.head = p;\\\\n p.data = buf.slice(nb);\\\\n }\\\\n break;\\\\n }\\\\n ++c;\\\\n }\\\\n list.length -= c;\\\\n return ret;\\\\n}\\\\n\\\\nfunction endReadable(stream) {\\\\n var state = stream._readableState;\\\\n\\\\n // If we get here before consuming all the bytes, then that is a\\\\n // bug in node. Should never happen.\\\\n if (state.length > 0) throw new Error('\\\\\\\"endReadable()\\\\\\\" called on non-empty stream');\\\\n\\\\n if (!state.endEmitted) {\\\\n state.ended = true;\\\\n pna.nextTick(endReadableNT, state, stream);\\\\n }\\\\n}\\\\n\\\\nfunction endReadableNT(state, stream) {\\\\n // Check that we didn't get one last unshift.\\\\n if (!state.endEmitted && state.length === 0) {\\\\n state.endEmitted = true;\\\\n stream.readable = false;\\\\n stream.emit('end');\\\\n }\\\\n}\\\\n\\\\nfunction indexOf(xs, x) {\\\\n for (var i = 0, l = xs.length; i < l; i++) {\\\\n if (xs[i] === x) return i;\\\\n }\\\\n return -1;\\\\n}\\\\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../webpack/buildin/global.js */ \\\\\\\"./node_modules/webpack/buildin/global.js\\\\\\\"), __webpack_require__(/*! ./../../process/browser.js */ \\\\\\\"./node_modules/process/browser.js\\\\\\\")))\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/readable-stream/lib/_stream_readable.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/readable-stream/lib/_stream_transform.js\\\":\\n/*!***************************************************************!*\\\\\\n !*** ./node_modules/readable-stream/lib/_stream_transform.js ***!\\n \\\\***************************************************************/\\n/*! no static exports found */\\n/***/ (function(module, exports, __webpack_require__) {\\n\\n\\\"use strict\\\";\\neval(\\\"// Copyright Joyent, Inc. and other Node contributors.\\\\n//\\\\n// Permission is hereby granted, free of charge, to any person obtaining a\\\\n// copy of this software and associated documentation files (the\\\\n// \\\\\\\"Software\\\\\\\"), to deal in the Software without restriction, including\\\\n// without limitation the rights to use, copy, modify, merge, publish,\\\\n// distribute, sublicense, and/or sell copies of the Software, and to permit\\\\n// persons to whom the Software is furnished to do so, subject to the\\\\n// following conditions:\\\\n//\\\\n// The above copyright notice and this permission notice shall be included\\\\n// in all copies or substantial portions of the Software.\\\\n//\\\\n// THE SOFTWARE IS PROVIDED \\\\\\\"AS IS\\\\\\\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\\\\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\\\\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\\\\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\\\\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\\\\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\\\\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\\\\n\\\\n// a transform stream is a readable/writable stream where you do\\\\n// something with the data. Sometimes it's called a \\\\\\\"filter\\\\\\\",\\\\n// but that's not a great name for it, since that implies a thing where\\\\n// some bits pass through, and others are simply ignored. (That would\\\\n// be a valid example of a transform, of course.)\\\\n//\\\\n// While the output is causally related to the input, it's not a\\\\n// necessarily symmetric or synchronous transformation. For example,\\\\n// a zlib stream might take multiple plain-text writes(), and then\\\\n// emit a single compressed chunk some time in the future.\\\\n//\\\\n// Here's how this works:\\\\n//\\\\n// The Transform stream has all the aspects of the readable and writable\\\\n// stream classes. When you write(chunk), that calls _write(chunk,cb)\\\\n// internally, and returns false if there's a lot of pending writes\\\\n// buffered up. When you call read(), that calls _read(n) until\\\\n// there's enough pending readable data buffered up.\\\\n//\\\\n// In a transform stream, the written data is placed in a buffer. When\\\\n// _read(n) is called, it transforms the queued up data, calling the\\\\n// buffered _write cb's as it consumes chunks. If consuming a single\\\\n// written chunk would result in multiple output chunks, then the first\\\\n// outputted bit calls the readcb, and subsequent chunks just go into\\\\n// the read buffer, and will cause it to emit 'readable' if necessary.\\\\n//\\\\n// This way, back-pressure is actually determined by the reading side,\\\\n// since _read has to be called to start processing a new chunk. However,\\\\n// a pathological inflate type of transform can cause excessive buffering\\\\n// here. For example, imagine a stream where every byte of input is\\\\n// interpreted as an integer from 0-255, and then results in that many\\\\n// bytes of output. Writing the 4 bytes {ff,ff,ff,ff} would result in\\\\n// 1kb of data being output. In this case, you could write a very small\\\\n// amount of input, and end up with a very large amount of output. In\\\\n// such a pathological inflating mechanism, there'd be no way to tell\\\\n// the system to stop doing the transform. A single 4MB write could\\\\n// cause the system to run out of memory.\\\\n//\\\\n// However, even in such a pathological case, only a single written chunk\\\\n// would be consumed, and then the rest would wait (un-transformed) until\\\\n// the results of the previous transformed chunk were consumed.\\\\n\\\\n\\\\n\\\\nmodule.exports = Transform;\\\\n\\\\nvar Duplex = __webpack_require__(/*! ./_stream_duplex */ \\\\\\\"./node_modules/readable-stream/lib/_stream_duplex.js\\\\\\\");\\\\n\\\\n/*<replacement>*/\\\\nvar util = Object.create(__webpack_require__(/*! core-util-is */ \\\\\\\"./node_modules/core-util-is/lib/util.js\\\\\\\"));\\\\nutil.inherits = __webpack_require__(/*! inherits */ \\\\\\\"./node_modules/inherits/inherits_browser.js\\\\\\\");\\\\n/*</replacement>*/\\\\n\\\\nutil.inherits(Transform, Duplex);\\\\n\\\\nfunction afterTransform(er, data) {\\\\n var ts = this._transformState;\\\\n ts.transforming = false;\\\\n\\\\n var cb = ts.writecb;\\\\n\\\\n if (!cb) {\\\\n return this.emit('error', new Error('write callback called multiple times'));\\\\n }\\\\n\\\\n ts.writechunk = null;\\\\n ts.writecb = null;\\\\n\\\\n if (data != null) // single equals check for both `null` and `undefined`\\\\n this.push(data);\\\\n\\\\n cb(er);\\\\n\\\\n var rs = this._readableState;\\\\n rs.reading = false;\\\\n if (rs.needReadable || rs.length < rs.highWaterMark) {\\\\n this._read(rs.highWaterMark);\\\\n }\\\\n}\\\\n\\\\nfunction Transform(options) {\\\\n if (!(this instanceof Transform)) return new Transform(options);\\\\n\\\\n Duplex.call(this, options);\\\\n\\\\n this._transformState = {\\\\n afterTransform: afterTransform.bind(this),\\\\n needTransform: false,\\\\n transforming: false,\\\\n writecb: null,\\\\n writechunk: null,\\\\n writeencoding: null\\\\n };\\\\n\\\\n // start out asking for a readable event once data is transformed.\\\\n this._readableState.needReadable = true;\\\\n\\\\n // we have implemented the _read method, and done the other things\\\\n // that Readable wants before the first _read call, so unset the\\\\n // sync guard flag.\\\\n this._readableState.sync = false;\\\\n\\\\n if (options) {\\\\n if (typeof options.transform === 'function') this._transform = options.transform;\\\\n\\\\n if (typeof options.flush === 'function') this._flush = options.flush;\\\\n }\\\\n\\\\n // When the writable side finishes, then flush out anything remaining.\\\\n this.on('prefinish', prefinish);\\\\n}\\\\n\\\\nfunction prefinish() {\\\\n var _this = this;\\\\n\\\\n if (typeof this._flush === 'function') {\\\\n this._flush(function (er, data) {\\\\n done(_this, er, data);\\\\n });\\\\n } else {\\\\n done(this, null, null);\\\\n }\\\\n}\\\\n\\\\nTransform.prototype.push = function (chunk, encoding) {\\\\n this._transformState.needTransform = false;\\\\n return Duplex.prototype.push.call(this, chunk, encoding);\\\\n};\\\\n\\\\n// This is the part where you do stuff!\\\\n// override this function in implementation classes.\\\\n// 'chunk' is an input chunk.\\\\n//\\\\n// Call `push(newChunk)` to pass along transformed output\\\\n// to the readable side. You may call 'push' zero or more times.\\\\n//\\\\n// Call `cb(err)` when you are done with this chunk. If you pass\\\\n// an error, then that'll put the hurt on the whole operation. If you\\\\n// never call cb(), then you'll never get another chunk.\\\\nTransform.prototype._transform = function (chunk, encoding, cb) {\\\\n throw new Error('_transform() is not implemented');\\\\n};\\\\n\\\\nTransform.prototype._write = function (chunk, encoding, cb) {\\\\n var ts = this._transformState;\\\\n ts.writecb = cb;\\\\n ts.writechunk = chunk;\\\\n ts.writeencoding = encoding;\\\\n if (!ts.transforming) {\\\\n var rs = this._readableState;\\\\n if (ts.needTransform || rs.needReadable || rs.length < rs.highWaterMark) this._read(rs.highWaterMark);\\\\n }\\\\n};\\\\n\\\\n// Doesn't matter what the args are here.\\\\n// _transform does all the work.\\\\n// That we got here means that the readable side wants more data.\\\\nTransform.prototype._read = function (n) {\\\\n var ts = this._transformState;\\\\n\\\\n if (ts.writechunk !== null && ts.writecb && !ts.transforming) {\\\\n ts.transforming = true;\\\\n this._transform(ts.writechunk, ts.writeencoding, ts.afterTransform);\\\\n } else {\\\\n // mark that we need a transform, so that any data that comes in\\\\n // will get processed, now that we've asked for it.\\\\n ts.needTransform = true;\\\\n }\\\\n};\\\\n\\\\nTransform.prototype._destroy = function (err, cb) {\\\\n var _this2 = this;\\\\n\\\\n Duplex.prototype._destroy.call(this, err, function (err2) {\\\\n cb(err2);\\\\n _this2.emit('close');\\\\n });\\\\n};\\\\n\\\\nfunction done(stream, er, data) {\\\\n if (er) return stream.emit('error', er);\\\\n\\\\n if (data != null) // single equals check for both `null` and `undefined`\\\\n stream.push(data);\\\\n\\\\n // if there's nothing in the write buffer, then that means\\\\n // that nothing more will ever be provided\\\\n if (stream._writableState.length) throw new Error('Calling transform done when ws.length != 0');\\\\n\\\\n if (stream._transformState.transforming) throw new Error('Calling transform done when still transforming');\\\\n\\\\n return stream.push(null);\\\\n}\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/readable-stream/lib/_stream_transform.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/readable-stream/lib/_stream_writable.js\\\":\\n/*!**************************************************************!*\\\\\\n !*** ./node_modules/readable-stream/lib/_stream_writable.js ***!\\n \\\\**************************************************************/\\n/*! no static exports found */\\n/***/ (function(module, exports, __webpack_require__) {\\n\\n\\\"use strict\\\";\\neval(\\\"/* WEBPACK VAR INJECTION */(function(process, setImmediate, global) {// Copyright Joyent, Inc. and other Node contributors.\\\\n//\\\\n// Permission is hereby granted, free of charge, to any person obtaining a\\\\n// copy of this software and associated documentation files (the\\\\n// \\\\\\\"Software\\\\\\\"), to deal in the Software without restriction, including\\\\n// without limitation the rights to use, copy, modify, merge, publish,\\\\n// distribute, sublicense, and/or sell copies of the Software, and to permit\\\\n// persons to whom the Software is furnished to do so, subject to the\\\\n// following conditions:\\\\n//\\\\n// The above copyright notice and this permission notice shall be included\\\\n// in all copies or substantial portions of the Software.\\\\n//\\\\n// THE SOFTWARE IS PROVIDED \\\\\\\"AS IS\\\\\\\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\\\\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\\\\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\\\\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\\\\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\\\\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\\\\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\\\\n\\\\n// A bit simpler than readable streams.\\\\n// Implement an async ._write(chunk, encoding, cb), and it'll handle all\\\\n// the drain event emission and buffering.\\\\n\\\\n\\\\n\\\\n/*<replacement>*/\\\\n\\\\nvar pna = __webpack_require__(/*! process-nextick-args */ \\\\\\\"./node_modules/process-nextick-args/index.js\\\\\\\");\\\\n/*</replacement>*/\\\\n\\\\nmodule.exports = Writable;\\\\n\\\\n/* <replacement> */\\\\nfunction WriteReq(chunk, encoding, cb) {\\\\n this.chunk = chunk;\\\\n this.encoding = encoding;\\\\n this.callback = cb;\\\\n this.next = null;\\\\n}\\\\n\\\\n// It seems a linked list but it is not\\\\n// there will be only 2 of these for each stream\\\\nfunction CorkedRequest(state) {\\\\n var _this = this;\\\\n\\\\n this.next = null;\\\\n this.entry = null;\\\\n this.finish = function () {\\\\n onCorkedFinish(_this, state);\\\\n };\\\\n}\\\\n/* </replacement> */\\\\n\\\\n/*<replacement>*/\\\\nvar asyncWrite = !process.browser && ['v0.10', 'v0.9.'].indexOf(process.version.slice(0, 5)) > -1 ? setImmediate : pna.nextTick;\\\\n/*</replacement>*/\\\\n\\\\n/*<replacement>*/\\\\nvar Duplex;\\\\n/*</replacement>*/\\\\n\\\\nWritable.WritableState = WritableState;\\\\n\\\\n/*<replacement>*/\\\\nvar util = Object.create(__webpack_require__(/*! core-util-is */ \\\\\\\"./node_modules/core-util-is/lib/util.js\\\\\\\"));\\\\nutil.inherits = __webpack_require__(/*! inherits */ \\\\\\\"./node_modules/inherits/inherits_browser.js\\\\\\\");\\\\n/*</replacement>*/\\\\n\\\\n/*<replacement>*/\\\\nvar internalUtil = {\\\\n deprecate: __webpack_require__(/*! util-deprecate */ \\\\\\\"./node_modules/util-deprecate/browser.js\\\\\\\")\\\\n};\\\\n/*</replacement>*/\\\\n\\\\n/*<replacement>*/\\\\nvar Stream = __webpack_require__(/*! ./internal/streams/stream */ \\\\\\\"./node_modules/readable-stream/lib/internal/streams/stream-browser.js\\\\\\\");\\\\n/*</replacement>*/\\\\n\\\\n/*<replacement>*/\\\\n\\\\nvar Buffer = __webpack_require__(/*! safe-buffer */ \\\\\\\"./node_modules/readable-stream/node_modules/safe-buffer/index.js\\\\\\\").Buffer;\\\\nvar OurUint8Array = global.Uint8Array || function () {};\\\\nfunction _uint8ArrayToBuffer(chunk) {\\\\n return Buffer.from(chunk);\\\\n}\\\\nfunction _isUint8Array(obj) {\\\\n return Buffer.isBuffer(obj) || obj instanceof OurUint8Array;\\\\n}\\\\n\\\\n/*</replacement>*/\\\\n\\\\nvar destroyImpl = __webpack_require__(/*! ./internal/streams/destroy */ \\\\\\\"./node_modules/readable-stream/lib/internal/streams/destroy.js\\\\\\\");\\\\n\\\\nutil.inherits(Writable, Stream);\\\\n\\\\nfunction nop() {}\\\\n\\\\nfunction WritableState(options, stream) {\\\\n Duplex = Duplex || __webpack_require__(/*! ./_stream_duplex */ \\\\\\\"./node_modules/readable-stream/lib/_stream_duplex.js\\\\\\\");\\\\n\\\\n options = options || {};\\\\n\\\\n // Duplex streams are both readable and writable, but share\\\\n // the same options object.\\\\n // However, some cases require setting options to different\\\\n // values for the readable and the writable sides of the duplex stream.\\\\n // These options can be provided separately as readableXXX and writableXXX.\\\\n var isDuplex = stream instanceof Duplex;\\\\n\\\\n // object stream flag to indicate whether or not this stream\\\\n // contains buffers or objects.\\\\n this.objectMode = !!options.objectMode;\\\\n\\\\n if (isDuplex) this.objectMode = this.objectMode || !!options.writableObjectMode;\\\\n\\\\n // the point at which write() starts returning false\\\\n // Note: 0 is a valid value, means that we always return false if\\\\n // the entire buffer is not flushed immediately on write()\\\\n var hwm = options.highWaterMark;\\\\n var writableHwm = options.writableHighWaterMark;\\\\n var defaultHwm = this.objectMode ? 16 : 16 * 1024;\\\\n\\\\n if (hwm || hwm === 0) this.highWaterMark = hwm;else if (isDuplex && (writableHwm || writableHwm === 0)) this.highWaterMark = writableHwm;else this.highWaterMark = defaultHwm;\\\\n\\\\n // cast to ints.\\\\n this.highWaterMark = Math.floor(this.highWaterMark);\\\\n\\\\n // if _final has been called\\\\n this.finalCalled = false;\\\\n\\\\n // drain event flag.\\\\n this.needDrain = false;\\\\n // at the start of calling end()\\\\n this.ending = false;\\\\n // when end() has been called, and returned\\\\n this.ended = false;\\\\n // when 'finish' is emitted\\\\n this.finished = false;\\\\n\\\\n // has it been destroyed\\\\n this.destroyed = false;\\\\n\\\\n // should we decode strings into buffers before passing to _write?\\\\n // this is here so that some node-core streams can optimize string\\\\n // handling at a lower level.\\\\n var noDecode = options.decodeStrings === false;\\\\n this.decodeStrings = !noDecode;\\\\n\\\\n // Crypto is kind of old and crusty. Historically, its default string\\\\n // encoding is 'binary' so we have to make this configurable.\\\\n // Everything else in the universe uses 'utf8', though.\\\\n this.defaultEncoding = options.defaultEncoding || 'utf8';\\\\n\\\\n // not an actual buffer we keep track of, but a measurement\\\\n // of how much we're waiting to get pushed to some underlying\\\\n // socket or file.\\\\n this.length = 0;\\\\n\\\\n // a flag to see when we're in the middle of a write.\\\\n this.writing = false;\\\\n\\\\n // when true all writes will be buffered until .uncork() call\\\\n this.corked = 0;\\\\n\\\\n // a flag to be able to tell if the onwrite cb is called immediately,\\\\n // or on a later tick. We set this to true at first, because any\\\\n // actions that shouldn't happen until \\\\\\\"later\\\\\\\" should generally also\\\\n // not happen before the first write call.\\\\n this.sync = true;\\\\n\\\\n // a flag to know if we're processing previously buffered items, which\\\\n // may call the _write() callback in the same tick, so that we don't\\\\n // end up in an overlapped onwrite situation.\\\\n this.bufferProcessing = false;\\\\n\\\\n // the callback that's passed to _write(chunk,cb)\\\\n this.onwrite = function (er) {\\\\n onwrite(stream, er);\\\\n };\\\\n\\\\n // the callback that the user supplies to write(chunk,encoding,cb)\\\\n this.writecb = null;\\\\n\\\\n // the amount that is being written when _write is called.\\\\n this.writelen = 0;\\\\n\\\\n this.bufferedRequest = null;\\\\n this.lastBufferedRequest = null;\\\\n\\\\n // number of pending user-supplied write callbacks\\\\n // this must be 0 before 'finish' can be emitted\\\\n this.pendingcb = 0;\\\\n\\\\n // emit prefinish if the only thing we're waiting for is _write cbs\\\\n // This is relevant for synchronous Transform streams\\\\n this.prefinished = false;\\\\n\\\\n // True if the error was already emitted and should not be thrown again\\\\n this.errorEmitted = false;\\\\n\\\\n // count buffered requests\\\\n this.bufferedRequestCount = 0;\\\\n\\\\n // allocate the first CorkedRequest, there is always\\\\n // one allocated and free to use, and we maintain at most two\\\\n this.corkedRequestsFree = new CorkedRequest(this);\\\\n}\\\\n\\\\nWritableState.prototype.getBuffer = function getBuffer() {\\\\n var current = this.bufferedRequest;\\\\n var out = [];\\\\n while (current) {\\\\n out.push(current);\\\\n current = current.next;\\\\n }\\\\n return out;\\\\n};\\\\n\\\\n(function () {\\\\n try {\\\\n Object.defineProperty(WritableState.prototype, 'buffer', {\\\\n get: internalUtil.deprecate(function () {\\\\n return this.getBuffer();\\\\n }, '_writableState.buffer is deprecated. Use _writableState.getBuffer ' + 'instead.', 'DEP0003')\\\\n });\\\\n } catch (_) {}\\\\n})();\\\\n\\\\n// Test _writableState for inheritance to account for Duplex streams,\\\\n// whose prototype chain only points to Readable.\\\\nvar realHasInstance;\\\\nif (typeof Symbol === 'function' && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] === 'function') {\\\\n realHasInstance = Function.prototype[Symbol.hasInstance];\\\\n Object.defineProperty(Writable, Symbol.hasInstance, {\\\\n value: function (object) {\\\\n if (realHasInstance.call(this, object)) return true;\\\\n if (this !== Writable) return false;\\\\n\\\\n return object && object._writableState instanceof WritableState;\\\\n }\\\\n });\\\\n} else {\\\\n realHasInstance = function (object) {\\\\n return object instanceof this;\\\\n };\\\\n}\\\\n\\\\nfunction Writable(options) {\\\\n Duplex = Duplex || __webpack_require__(/*! ./_stream_duplex */ \\\\\\\"./node_modules/readable-stream/lib/_stream_duplex.js\\\\\\\");\\\\n\\\\n // Writable ctor is applied to Duplexes, too.\\\\n // `realHasInstance` is necessary because using plain `instanceof`\\\\n // would return false, as no `_writableState` property is attached.\\\\n\\\\n // Trying to use the custom `instanceof` for Writable here will also break the\\\\n // Node.js LazyTransform implementation, which has a non-trivial getter for\\\\n // `_writableState` that would lead to infinite recursion.\\\\n if (!realHasInstance.call(Writable, this) && !(this instanceof Duplex)) {\\\\n return new Writable(options);\\\\n }\\\\n\\\\n this._writableState = new WritableState(options, this);\\\\n\\\\n // legacy.\\\\n this.writable = true;\\\\n\\\\n if (options) {\\\\n if (typeof options.write === 'function') this._write = options.write;\\\\n\\\\n if (typeof options.writev === 'function') this._writev = options.writev;\\\\n\\\\n if (typeof options.destroy === 'function') this._destroy = options.destroy;\\\\n\\\\n if (typeof options.final === 'function') this._final = options.final;\\\\n }\\\\n\\\\n Stream.call(this);\\\\n}\\\\n\\\\n// Otherwise people can pipe Writable streams, which is just wrong.\\\\nWritable.prototype.pipe = function () {\\\\n this.emit('error', new Error('Cannot pipe, not readable'));\\\\n};\\\\n\\\\nfunction writeAfterEnd(stream, cb) {\\\\n var er = new Error('write after end');\\\\n // TODO: defer error events consistently everywhere, not just the cb\\\\n stream.emit('error', er);\\\\n pna.nextTick(cb, er);\\\\n}\\\\n\\\\n// Checks that a user-supplied chunk is valid, especially for the particular\\\\n// mode the stream is in. Currently this means that `null` is never accepted\\\\n// and undefined/non-string values are only allowed in object mode.\\\\nfunction validChunk(stream, state, chunk, cb) {\\\\n var valid = true;\\\\n var er = false;\\\\n\\\\n if (chunk === null) {\\\\n er = new TypeError('May not write null values to stream');\\\\n } else if (typeof chunk !== 'string' && chunk !== undefined && !state.objectMode) {\\\\n er = new TypeError('Invalid non-string/buffer chunk');\\\\n }\\\\n if (er) {\\\\n stream.emit('error', er);\\\\n pna.nextTick(cb, er);\\\\n valid = false;\\\\n }\\\\n return valid;\\\\n}\\\\n\\\\nWritable.prototype.write = function (chunk, encoding, cb) {\\\\n var state = this._writableState;\\\\n var ret = false;\\\\n var isBuf = !state.objectMode && _isUint8Array(chunk);\\\\n\\\\n if (isBuf && !Buffer.isBuffer(chunk)) {\\\\n chunk = _uint8ArrayToBuffer(chunk);\\\\n }\\\\n\\\\n if (typeof encoding === 'function') {\\\\n cb = encoding;\\\\n encoding = null;\\\\n }\\\\n\\\\n if (isBuf) encoding = 'buffer';else if (!encoding) encoding = state.defaultEncoding;\\\\n\\\\n if (typeof cb !== 'function') cb = nop;\\\\n\\\\n if (state.ended) writeAfterEnd(this, cb);else if (isBuf || validChunk(this, state, chunk, cb)) {\\\\n state.pendingcb++;\\\\n ret = writeOrBuffer(this, state, isBuf, chunk, encoding, cb);\\\\n }\\\\n\\\\n return ret;\\\\n};\\\\n\\\\nWritable.prototype.cork = function () {\\\\n var state = this._writableState;\\\\n\\\\n state.corked++;\\\\n};\\\\n\\\\nWritable.prototype.uncork = function () {\\\\n var state = this._writableState;\\\\n\\\\n if (state.corked) {\\\\n state.corked--;\\\\n\\\\n if (!state.writing && !state.corked && !state.finished && !state.bufferProcessing && state.bufferedRequest) clearBuffer(this, state);\\\\n }\\\\n};\\\\n\\\\nWritable.prototype.setDefaultEncoding = function setDefaultEncoding(encoding) {\\\\n // node::ParseEncoding() requires lower case.\\\\n if (typeof encoding === 'string') encoding = encoding.toLowerCase();\\\\n if (!(['hex', 'utf8', 'utf-8', 'ascii', 'binary', 'base64', 'ucs2', 'ucs-2', 'utf16le', 'utf-16le', 'raw'].indexOf((encoding + '').toLowerCase()) > -1)) throw new TypeError('Unknown encoding: ' + encoding);\\\\n this._writableState.defaultEncoding = encoding;\\\\n return this;\\\\n};\\\\n\\\\nfunction decodeChunk(state, chunk, encoding) {\\\\n if (!state.objectMode && state.decodeStrings !== false && typeof chunk === 'string') {\\\\n chunk = Buffer.from(chunk, encoding);\\\\n }\\\\n return chunk;\\\\n}\\\\n\\\\nObject.defineProperty(Writable.prototype, 'writableHighWaterMark', {\\\\n // making it explicit this property is not enumerable\\\\n // because otherwise some prototype manipulation in\\\\n // userland will fail\\\\n enumerable: false,\\\\n get: function () {\\\\n return this._writableState.highWaterMark;\\\\n }\\\\n});\\\\n\\\\n// if we're already writing something, then just put this\\\\n// in the queue, and wait our turn. Otherwise, call _write\\\\n// If we return false, then we need a drain event, so set that flag.\\\\nfunction writeOrBuffer(stream, state, isBuf, chunk, encoding, cb) {\\\\n if (!isBuf) {\\\\n var newChunk = decodeChunk(state, chunk, encoding);\\\\n if (chunk !== newChunk) {\\\\n isBuf = true;\\\\n encoding = 'buffer';\\\\n chunk = newChunk;\\\\n }\\\\n }\\\\n var len = state.objectMode ? 1 : chunk.length;\\\\n\\\\n state.length += len;\\\\n\\\\n var ret = state.length < state.highWaterMark;\\\\n // we must ensure that previous needDrain will not be reset to false.\\\\n if (!ret) state.needDrain = true;\\\\n\\\\n if (state.writing || state.corked) {\\\\n var last = state.lastBufferedRequest;\\\\n state.lastBufferedRequest = {\\\\n chunk: chunk,\\\\n encoding: encoding,\\\\n isBuf: isBuf,\\\\n callback: cb,\\\\n next: null\\\\n };\\\\n if (last) {\\\\n last.next = state.lastBufferedRequest;\\\\n } else {\\\\n state.bufferedRequest = state.lastBufferedRequest;\\\\n }\\\\n state.bufferedRequestCount += 1;\\\\n } else {\\\\n doWrite(stream, state, false, len, chunk, encoding, cb);\\\\n }\\\\n\\\\n return ret;\\\\n}\\\\n\\\\nfunction doWrite(stream, state, writev, len, chunk, encoding, cb) {\\\\n state.writelen = len;\\\\n state.writecb = cb;\\\\n state.writing = true;\\\\n state.sync = true;\\\\n if (writev) stream._writev(chunk, state.onwrite);else stream._write(chunk, encoding, state.onwrite);\\\\n state.sync = false;\\\\n}\\\\n\\\\nfunction onwriteError(stream, state, sync, er, cb) {\\\\n --state.pendingcb;\\\\n\\\\n if (sync) {\\\\n // defer the callback if we are being called synchronously\\\\n // to avoid piling up things on the stack\\\\n pna.nextTick(cb, er);\\\\n // this can emit finish, and it will always happen\\\\n // after error\\\\n pna.nextTick(finishMaybe, stream, state);\\\\n stream._writableState.errorEmitted = true;\\\\n stream.emit('error', er);\\\\n } else {\\\\n // the caller expect this to happen before if\\\\n // it is async\\\\n cb(er);\\\\n stream._writableState.errorEmitted = true;\\\\n stream.emit('error', er);\\\\n // this can emit finish, but finish must\\\\n // always follow error\\\\n finishMaybe(stream, state);\\\\n }\\\\n}\\\\n\\\\nfunction onwriteStateUpdate(state) {\\\\n state.writing = false;\\\\n state.writecb = null;\\\\n state.length -= state.writelen;\\\\n state.writelen = 0;\\\\n}\\\\n\\\\nfunction onwrite(stream, er) {\\\\n var state = stream._writableState;\\\\n var sync = state.sync;\\\\n var cb = state.writecb;\\\\n\\\\n onwriteStateUpdate(state);\\\\n\\\\n if (er) onwriteError(stream, state, sync, er, cb);else {\\\\n // Check if we're actually ready to finish, but don't emit yet\\\\n var finished = needFinish(state);\\\\n\\\\n if (!finished && !state.corked && !state.bufferProcessing && state.bufferedRequest) {\\\\n clearBuffer(stream, state);\\\\n }\\\\n\\\\n if (sync) {\\\\n /*<replacement>*/\\\\n asyncWrite(afterWrite, stream, state, finished, cb);\\\\n /*</replacement>*/\\\\n } else {\\\\n afterWrite(stream, state, finished, cb);\\\\n }\\\\n }\\\\n}\\\\n\\\\nfunction afterWrite(stream, state, finished, cb) {\\\\n if (!finished) onwriteDrain(stream, state);\\\\n state.pendingcb--;\\\\n cb();\\\\n finishMaybe(stream, state);\\\\n}\\\\n\\\\n// Must force callback to be called on nextTick, so that we don't\\\\n// emit 'drain' before the write() consumer gets the 'false' return\\\\n// value, and has a chance to attach a 'drain' listener.\\\\nfunction onwriteDrain(stream, state) {\\\\n if (state.length === 0 && state.needDrain) {\\\\n state.needDrain = false;\\\\n stream.emit('drain');\\\\n }\\\\n}\\\\n\\\\n// if there's something in the buffer waiting, then process it\\\\nfunction clearBuffer(stream, state) {\\\\n state.bufferProcessing = true;\\\\n var entry = state.bufferedRequest;\\\\n\\\\n if (stream._writev && entry && entry.next) {\\\\n // Fast case, write everything using _writev()\\\\n var l = state.bufferedRequestCount;\\\\n var buffer = new Array(l);\\\\n var holder = state.corkedRequestsFree;\\\\n holder.entry = entry;\\\\n\\\\n var count = 0;\\\\n var allBuffers = true;\\\\n while (entry) {\\\\n buffer[count] = entry;\\\\n if (!entry.isBuf) allBuffers = false;\\\\n entry = entry.next;\\\\n count += 1;\\\\n }\\\\n buffer.allBuffers = allBuffers;\\\\n\\\\n doWrite(stream, state, true, state.length, buffer, '', holder.finish);\\\\n\\\\n // doWrite is almost always async, defer these to save a bit of time\\\\n // as the hot path ends with doWrite\\\\n state.pendingcb++;\\\\n state.lastBufferedRequest = null;\\\\n if (holder.next) {\\\\n state.corkedRequestsFree = holder.next;\\\\n holder.next = null;\\\\n } else {\\\\n state.corkedRequestsFree = new CorkedRequest(state);\\\\n }\\\\n state.bufferedRequestCount = 0;\\\\n } else {\\\\n // Slow case, write chunks one-by-one\\\\n while (entry) {\\\\n var chunk = entry.chunk;\\\\n var encoding = entry.encoding;\\\\n var cb = entry.callback;\\\\n var len = state.objectMode ? 1 : chunk.length;\\\\n\\\\n doWrite(stream, state, false, len, chunk, encoding, cb);\\\\n entry = entry.next;\\\\n state.bufferedRequestCount--;\\\\n // if we didn't call the onwrite immediately, then\\\\n // it means that we need to wait until it does.\\\\n // also, that means that the chunk and cb are currently\\\\n // being processed, so move the buffer counter past them.\\\\n if (state.writing) {\\\\n break;\\\\n }\\\\n }\\\\n\\\\n if (entry === null) state.lastBufferedRequest = null;\\\\n }\\\\n\\\\n state.bufferedRequest = entry;\\\\n state.bufferProcessing = false;\\\\n}\\\\n\\\\nWritable.prototype._write = function (chunk, encoding, cb) {\\\\n cb(new Error('_write() is not implemented'));\\\\n};\\\\n\\\\nWritable.prototype._writev = null;\\\\n\\\\nWritable.prototype.end = function (chunk, encoding, cb) {\\\\n var state = this._writableState;\\\\n\\\\n if (typeof chunk === 'function') {\\\\n cb = chunk;\\\\n chunk = null;\\\\n encoding = null;\\\\n } else if (typeof encoding === 'function') {\\\\n cb = encoding;\\\\n encoding = null;\\\\n }\\\\n\\\\n if (chunk !== null && chunk !== undefined) this.write(chunk, encoding);\\\\n\\\\n // .end() fully uncorks\\\\n if (state.corked) {\\\\n state.corked = 1;\\\\n this.uncork();\\\\n }\\\\n\\\\n // ignore unnecessary end() calls.\\\\n if (!state.ending && !state.finished) endWritable(this, state, cb);\\\\n};\\\\n\\\\nfunction needFinish(state) {\\\\n return state.ending && state.length === 0 && state.bufferedRequest === null && !state.finished && !state.writing;\\\\n}\\\\nfunction callFinal(stream, state) {\\\\n stream._final(function (err) {\\\\n state.pendingcb--;\\\\n if (err) {\\\\n stream.emit('error', err);\\\\n }\\\\n state.prefinished = true;\\\\n stream.emit('prefinish');\\\\n finishMaybe(stream, state);\\\\n });\\\\n}\\\\nfunction prefinish(stream, state) {\\\\n if (!state.prefinished && !state.finalCalled) {\\\\n if (typeof stream._final === 'function') {\\\\n state.pendingcb++;\\\\n state.finalCalled = true;\\\\n pna.nextTick(callFinal, stream, state);\\\\n } else {\\\\n state.prefinished = true;\\\\n stream.emit('prefinish');\\\\n }\\\\n }\\\\n}\\\\n\\\\nfunction finishMaybe(stream, state) {\\\\n var need = needFinish(state);\\\\n if (need) {\\\\n prefinish(stream, state);\\\\n if (state.pendingcb === 0) {\\\\n state.finished = true;\\\\n stream.emit('finish');\\\\n }\\\\n }\\\\n return need;\\\\n}\\\\n\\\\nfunction endWritable(stream, state, cb) {\\\\n state.ending = true;\\\\n finishMaybe(stream, state);\\\\n if (cb) {\\\\n if (state.finished) pna.nextTick(cb);else stream.once('finish', cb);\\\\n }\\\\n state.ended = true;\\\\n stream.writable = false;\\\\n}\\\\n\\\\nfunction onCorkedFinish(corkReq, state, err) {\\\\n var entry = corkReq.entry;\\\\n corkReq.entry = null;\\\\n while (entry) {\\\\n var cb = entry.callback;\\\\n state.pendingcb--;\\\\n cb(err);\\\\n entry = entry.next;\\\\n }\\\\n if (state.corkedRequestsFree) {\\\\n state.corkedRequestsFree.next = corkReq;\\\\n } else {\\\\n state.corkedRequestsFree = corkReq;\\\\n }\\\\n}\\\\n\\\\nObject.defineProperty(Writable.prototype, 'destroyed', {\\\\n get: function () {\\\\n if (this._writableState === undefined) {\\\\n return false;\\\\n }\\\\n return this._writableState.destroyed;\\\\n },\\\\n set: function (value) {\\\\n // we ignore the value if the stream\\\\n // has not been initialized yet\\\\n if (!this._writableState) {\\\\n return;\\\\n }\\\\n\\\\n // backward compatibility, the user is explicitly\\\\n // managing destroyed\\\\n this._writableState.destroyed = value;\\\\n }\\\\n});\\\\n\\\\nWritable.prototype.destroy = destroyImpl.destroy;\\\\nWritable.prototype._undestroy = destroyImpl.undestroy;\\\\nWritable.prototype._destroy = function (err, cb) {\\\\n this.end();\\\\n cb(err);\\\\n};\\\\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../process/browser.js */ \\\\\\\"./node_modules/process/browser.js\\\\\\\"), __webpack_require__(/*! ./../../node-libs-browser/node_modules/timers-browserify/main.js */ \\\\\\\"./node_modules/node-libs-browser/node_modules/timers-browserify/main.js\\\\\\\").setImmediate, __webpack_require__(/*! ./../../webpack/buildin/global.js */ \\\\\\\"./node_modules/webpack/buildin/global.js\\\\\\\")))\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/readable-stream/lib/_stream_writable.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/readable-stream/lib/internal/streams/BufferList.js\\\":\\n/*!*************************************************************************!*\\\\\\n !*** ./node_modules/readable-stream/lib/internal/streams/BufferList.js ***!\\n \\\\*************************************************************************/\\n/*! no static exports found */\\n/***/ (function(module, exports, __webpack_require__) {\\n\\n\\\"use strict\\\";\\neval(\\\"\\\\n\\\\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\\\\\\\"Cannot call a class as a function\\\\\\\"); } }\\\\n\\\\nvar Buffer = __webpack_require__(/*! safe-buffer */ \\\\\\\"./node_modules/readable-stream/node_modules/safe-buffer/index.js\\\\\\\").Buffer;\\\\nvar util = __webpack_require__(/*! util */ 1);\\\\n\\\\nfunction copyBuffer(src, target, offset) {\\\\n src.copy(target, offset);\\\\n}\\\\n\\\\nmodule.exports = function () {\\\\n function BufferList() {\\\\n _classCallCheck(this, BufferList);\\\\n\\\\n this.head = null;\\\\n this.tail = null;\\\\n this.length = 0;\\\\n }\\\\n\\\\n BufferList.prototype.push = function push(v) {\\\\n var entry = { data: v, next: null };\\\\n if (this.length > 0) this.tail.next = entry;else this.head = entry;\\\\n this.tail = entry;\\\\n ++this.length;\\\\n };\\\\n\\\\n BufferList.prototype.unshift = function unshift(v) {\\\\n var entry = { data: v, next: this.head };\\\\n if (this.length === 0) this.tail = entry;\\\\n this.head = entry;\\\\n ++this.length;\\\\n };\\\\n\\\\n BufferList.prototype.shift = function shift() {\\\\n if (this.length === 0) return;\\\\n var ret = this.head.data;\\\\n if (this.length === 1) this.head = this.tail = null;else this.head = this.head.next;\\\\n --this.length;\\\\n return ret;\\\\n };\\\\n\\\\n BufferList.prototype.clear = function clear() {\\\\n this.head = this.tail = null;\\\\n this.length = 0;\\\\n };\\\\n\\\\n BufferList.prototype.join = function join(s) {\\\\n if (this.length === 0) return '';\\\\n var p = this.head;\\\\n var ret = '' + p.data;\\\\n while (p = p.next) {\\\\n ret += s + p.data;\\\\n }return ret;\\\\n };\\\\n\\\\n BufferList.prototype.concat = function concat(n) {\\\\n if (this.length === 0) return Buffer.alloc(0);\\\\n if (this.length === 1) return this.head.data;\\\\n var ret = Buffer.allocUnsafe(n >>> 0);\\\\n var p = this.head;\\\\n var i = 0;\\\\n while (p) {\\\\n copyBuffer(p.data, ret, i);\\\\n i += p.data.length;\\\\n p = p.next;\\\\n }\\\\n return ret;\\\\n };\\\\n\\\\n return BufferList;\\\\n}();\\\\n\\\\nif (util && util.inspect && util.inspect.custom) {\\\\n module.exports.prototype[util.inspect.custom] = function () {\\\\n var obj = util.inspect({ length: this.length });\\\\n return this.constructor.name + ' ' + obj;\\\\n };\\\\n}\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/readable-stream/lib/internal/streams/BufferList.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/readable-stream/lib/internal/streams/destroy.js\\\":\\n/*!**********************************************************************!*\\\\\\n !*** ./node_modules/readable-stream/lib/internal/streams/destroy.js ***!\\n \\\\**********************************************************************/\\n/*! no static exports found */\\n/***/ (function(module, exports, __webpack_require__) {\\n\\n\\\"use strict\\\";\\neval(\\\"\\\\n\\\\n/*<replacement>*/\\\\n\\\\nvar pna = __webpack_require__(/*! process-nextick-args */ \\\\\\\"./node_modules/process-nextick-args/index.js\\\\\\\");\\\\n/*</replacement>*/\\\\n\\\\n// undocumented cb() API, needed for core, not for public API\\\\nfunction destroy(err, cb) {\\\\n var _this = this;\\\\n\\\\n var readableDestroyed = this._readableState && this._readableState.destroyed;\\\\n var writableDestroyed = this._writableState && this._writableState.destroyed;\\\\n\\\\n if (readableDestroyed || writableDestroyed) {\\\\n if (cb) {\\\\n cb(err);\\\\n } else if (err && (!this._writableState || !this._writableState.errorEmitted)) {\\\\n pna.nextTick(emitErrorNT, this, err);\\\\n }\\\\n return this;\\\\n }\\\\n\\\\n // we set destroyed to true before firing error callbacks in order\\\\n // to make it re-entrance safe in case destroy() is called within callbacks\\\\n\\\\n if (this._readableState) {\\\\n this._readableState.destroyed = true;\\\\n }\\\\n\\\\n // if this is a duplex stream mark the writable part as destroyed as well\\\\n if (this._writableState) {\\\\n this._writableState.destroyed = true;\\\\n }\\\\n\\\\n this._destroy(err || null, function (err) {\\\\n if (!cb && err) {\\\\n pna.nextTick(emitErrorNT, _this, err);\\\\n if (_this._writableState) {\\\\n _this._writableState.errorEmitted = true;\\\\n }\\\\n } else if (cb) {\\\\n cb(err);\\\\n }\\\\n });\\\\n\\\\n return this;\\\\n}\\\\n\\\\nfunction undestroy() {\\\\n if (this._readableState) {\\\\n this._readableState.destroyed = false;\\\\n this._readableState.reading = false;\\\\n this._readableState.ended = false;\\\\n this._readableState.endEmitted = false;\\\\n }\\\\n\\\\n if (this._writableState) {\\\\n this._writableState.destroyed = false;\\\\n this._writableState.ended = false;\\\\n this._writableState.ending = false;\\\\n this._writableState.finished = false;\\\\n this._writableState.errorEmitted = false;\\\\n }\\\\n}\\\\n\\\\nfunction emitErrorNT(self, err) {\\\\n self.emit('error', err);\\\\n}\\\\n\\\\nmodule.exports = {\\\\n destroy: destroy,\\\\n undestroy: undestroy\\\\n};\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/readable-stream/lib/internal/streams/destroy.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/readable-stream/lib/internal/streams/stream-browser.js\\\":\\n/*!*****************************************************************************!*\\\\\\n !*** ./node_modules/readable-stream/lib/internal/streams/stream-browser.js ***!\\n \\\\*****************************************************************************/\\n/*! no static exports found */\\n/***/ (function(module, exports, __webpack_require__) {\\n\\neval(\\\"module.exports = __webpack_require__(/*! events */ \\\\\\\"./node_modules/node-libs-browser/node_modules/events/events.js\\\\\\\").EventEmitter;\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/readable-stream/lib/internal/streams/stream-browser.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/readable-stream/node_modules/safe-buffer/index.js\\\":\\n/*!************************************************************************!*\\\\\\n !*** ./node_modules/readable-stream/node_modules/safe-buffer/index.js ***!\\n \\\\************************************************************************/\\n/*! no static exports found */\\n/***/ (function(module, exports, __webpack_require__) {\\n\\neval(\\\"/* eslint-disable node/no-deprecated-api */\\\\nvar buffer = __webpack_require__(/*! buffer */ \\\\\\\"./node_modules/node-libs-browser/node_modules/buffer/index.js\\\\\\\")\\\\nvar Buffer = buffer.Buffer\\\\n\\\\n// alternative to using Object.keys for old browsers\\\\nfunction copyProps (src, dst) {\\\\n for (var key in src) {\\\\n dst[key] = src[key]\\\\n }\\\\n}\\\\nif (Buffer.from && Buffer.alloc && Buffer.allocUnsafe && Buffer.allocUnsafeSlow) {\\\\n module.exports = buffer\\\\n} else {\\\\n // Copy properties from require('buffer')\\\\n copyProps(buffer, exports)\\\\n exports.Buffer = SafeBuffer\\\\n}\\\\n\\\\nfunction SafeBuffer (arg, encodingOrOffset, length) {\\\\n return Buffer(arg, encodingOrOffset, length)\\\\n}\\\\n\\\\n// Copy static methods from Buffer\\\\ncopyProps(Buffer, SafeBuffer)\\\\n\\\\nSafeBuffer.from = function (arg, encodingOrOffset, length) {\\\\n if (typeof arg === 'number') {\\\\n throw new TypeError('Argument must not be a number')\\\\n }\\\\n return Buffer(arg, encodingOrOffset, length)\\\\n}\\\\n\\\\nSafeBuffer.alloc = function (size, fill, encoding) {\\\\n if (typeof size !== 'number') {\\\\n throw new TypeError('Argument must be a number')\\\\n }\\\\n var buf = Buffer(size)\\\\n if (fill !== undefined) {\\\\n if (typeof encoding === 'string') {\\\\n buf.fill(fill, encoding)\\\\n } else {\\\\n buf.fill(fill)\\\\n }\\\\n } else {\\\\n buf.fill(0)\\\\n }\\\\n return buf\\\\n}\\\\n\\\\nSafeBuffer.allocUnsafe = function (size) {\\\\n if (typeof size !== 'number') {\\\\n throw new TypeError('Argument must be a number')\\\\n }\\\\n return Buffer(size)\\\\n}\\\\n\\\\nSafeBuffer.allocUnsafeSlow = function (size) {\\\\n if (typeof size !== 'number') {\\\\n throw new TypeError('Argument must be a number')\\\\n }\\\\n return buffer.SlowBuffer(size)\\\\n}\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/readable-stream/node_modules/safe-buffer/index.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/readable-stream/readable-browser.js\\\":\\n/*!**********************************************************!*\\\\\\n !*** ./node_modules/readable-stream/readable-browser.js ***!\\n \\\\**********************************************************/\\n/*! no static exports found */\\n/***/ (function(module, exports, __webpack_require__) {\\n\\neval(\\\"exports = module.exports = __webpack_require__(/*! ./lib/_stream_readable.js */ \\\\\\\"./node_modules/readable-stream/lib/_stream_readable.js\\\\\\\");\\\\nexports.Stream = exports;\\\\nexports.Readable = exports;\\\\nexports.Writable = __webpack_require__(/*! ./lib/_stream_writable.js */ \\\\\\\"./node_modules/readable-stream/lib/_stream_writable.js\\\\\\\");\\\\nexports.Duplex = __webpack_require__(/*! ./lib/_stream_duplex.js */ \\\\\\\"./node_modules/readable-stream/lib/_stream_duplex.js\\\\\\\");\\\\nexports.Transform = __webpack_require__(/*! ./lib/_stream_transform.js */ \\\\\\\"./node_modules/readable-stream/lib/_stream_transform.js\\\\\\\");\\\\nexports.PassThrough = __webpack_require__(/*! ./lib/_stream_passthrough.js */ \\\\\\\"./node_modules/readable-stream/lib/_stream_passthrough.js\\\\\\\");\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/readable-stream/readable-browser.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/setimmediate/setImmediate.js\\\":\\n/*!***************************************************!*\\\\\\n !*** ./node_modules/setimmediate/setImmediate.js ***!\\n \\\\***************************************************/\\n/*! no static exports found */\\n/***/ (function(module, exports, __webpack_require__) {\\n\\neval(\\\"/* WEBPACK VAR INJECTION */(function(global, process) {(function (global, undefined) {\\\\n \\\\\\\"use strict\\\\\\\";\\\\n\\\\n if (global.setImmediate) {\\\\n return;\\\\n }\\\\n\\\\n var nextHandle = 1; // Spec says greater than zero\\\\n var tasksByHandle = {};\\\\n var currentlyRunningATask = false;\\\\n var doc = global.document;\\\\n var registerImmediate;\\\\n\\\\n function setImmediate(callback) {\\\\n // Callback can either be a function or a string\\\\n if (typeof callback !== \\\\\\\"function\\\\\\\") {\\\\n callback = new Function(\\\\\\\"\\\\\\\" + callback);\\\\n }\\\\n // Copy function arguments\\\\n var args = new Array(arguments.length - 1);\\\\n for (var i = 0; i < args.length; i++) {\\\\n args[i] = arguments[i + 1];\\\\n }\\\\n // Store and register the task\\\\n var task = { callback: callback, args: args };\\\\n tasksByHandle[nextHandle] = task;\\\\n registerImmediate(nextHandle);\\\\n return nextHandle++;\\\\n }\\\\n\\\\n function clearImmediate(handle) {\\\\n delete tasksByHandle[handle];\\\\n }\\\\n\\\\n function run(task) {\\\\n var callback = task.callback;\\\\n var args = task.args;\\\\n switch (args.length) {\\\\n case 0:\\\\n callback();\\\\n break;\\\\n case 1:\\\\n callback(args[0]);\\\\n break;\\\\n case 2:\\\\n callback(args[0], args[1]);\\\\n break;\\\\n case 3:\\\\n callback(args[0], args[1], args[2]);\\\\n break;\\\\n default:\\\\n callback.apply(undefined, args);\\\\n break;\\\\n }\\\\n }\\\\n\\\\n function runIfPresent(handle) {\\\\n // From the spec: \\\\\\\"Wait until any invocations of this algorithm started before this one have completed.\\\\\\\"\\\\n // So if we're currently running a task, we'll need to delay this invocation.\\\\n if (currentlyRunningATask) {\\\\n // Delay by doing a setTimeout. setImmediate was tried instead, but in Firefox 7 it generated a\\\\n // \\\\\\\"too much recursion\\\\\\\" error.\\\\n setTimeout(runIfPresent, 0, handle);\\\\n } else {\\\\n var task = tasksByHandle[handle];\\\\n if (task) {\\\\n currentlyRunningATask = true;\\\\n try {\\\\n run(task);\\\\n } finally {\\\\n clearImmediate(handle);\\\\n currentlyRunningATask = false;\\\\n }\\\\n }\\\\n }\\\\n }\\\\n\\\\n function installNextTickImplementation() {\\\\n registerImmediate = function(handle) {\\\\n process.nextTick(function () { runIfPresent(handle); });\\\\n };\\\\n }\\\\n\\\\n function canUsePostMessage() {\\\\n // The test against `importScripts` prevents this implementation from being installed inside a web worker,\\\\n // where `global.postMessage` means something completely different and can't be used for this purpose.\\\\n if (global.postMessage && !global.importScripts) {\\\\n var postMessageIsAsynchronous = true;\\\\n var oldOnMessage = global.onmessage;\\\\n global.onmessage = function() {\\\\n postMessageIsAsynchronous = false;\\\\n };\\\\n global.postMessage(\\\\\\\"\\\\\\\", \\\\\\\"*\\\\\\\");\\\\n global.onmessage = oldOnMessage;\\\\n return postMessageIsAsynchronous;\\\\n }\\\\n }\\\\n\\\\n function installPostMessageImplementation() {\\\\n // Installs an event handler on `global` for the `message` event: see\\\\n // * https://developer.mozilla.org/en/DOM/window.postMessage\\\\n // * http://www.whatwg.org/specs/web-apps/current-work/multipage/comms.html#crossDocumentMessages\\\\n\\\\n var messagePrefix = \\\\\\\"setImmediate$\\\\\\\" + Math.random() + \\\\\\\"$\\\\\\\";\\\\n var onGlobalMessage = function(event) {\\\\n if (event.source === global &&\\\\n typeof event.data === \\\\\\\"string\\\\\\\" &&\\\\n event.data.indexOf(messagePrefix) === 0) {\\\\n runIfPresent(+event.data.slice(messagePrefix.length));\\\\n }\\\\n };\\\\n\\\\n if (global.addEventListener) {\\\\n global.addEventListener(\\\\\\\"message\\\\\\\", onGlobalMessage, false);\\\\n } else {\\\\n global.attachEvent(\\\\\\\"onmessage\\\\\\\", onGlobalMessage);\\\\n }\\\\n\\\\n registerImmediate = function(handle) {\\\\n global.postMessage(messagePrefix + handle, \\\\\\\"*\\\\\\\");\\\\n };\\\\n }\\\\n\\\\n function installMessageChannelImplementation() {\\\\n var channel = new MessageChannel();\\\\n channel.port1.onmessage = function(event) {\\\\n var handle = event.data;\\\\n runIfPresent(handle);\\\\n };\\\\n\\\\n registerImmediate = function(handle) {\\\\n channel.port2.postMessage(handle);\\\\n };\\\\n }\\\\n\\\\n function installReadyStateChangeImplementation() {\\\\n var html = doc.documentElement;\\\\n registerImmediate = function(handle) {\\\\n // Create a <script> element; its readystatechange event will be fired asynchronously once it is inserted\\\\n // into the document. Do so, thus queuing up the task. Remember to clean up once it's been called.\\\\n var script = doc.createElement(\\\\\\\"script\\\\\\\");\\\\n script.onreadystatechange = function () {\\\\n runIfPresent(handle);\\\\n script.onreadystatechange = null;\\\\n html.removeChild(script);\\\\n script = null;\\\\n };\\\\n html.appendChild(script);\\\\n };\\\\n }\\\\n\\\\n function installSetTimeoutImplementation() {\\\\n registerImmediate = function(handle) {\\\\n setTimeout(runIfPresent, 0, handle);\\\\n };\\\\n }\\\\n\\\\n // If supported, we should attach to the prototype of global, since that is where setTimeout et al. live.\\\\n var attachTo = Object.getPrototypeOf && Object.getPrototypeOf(global);\\\\n attachTo = attachTo && attachTo.setTimeout ? attachTo : global;\\\\n\\\\n // Don't get fooled by e.g. browserify environments.\\\\n if ({}.toString.call(global.process) === \\\\\\\"[object process]\\\\\\\") {\\\\n // For Node.js before 0.9\\\\n installNextTickImplementation();\\\\n\\\\n } else if (canUsePostMessage()) {\\\\n // For non-IE10 modern browsers\\\\n installPostMessageImplementation();\\\\n\\\\n } else if (global.MessageChannel) {\\\\n // For web workers, where supported\\\\n installMessageChannelImplementation();\\\\n\\\\n } else if (doc && \\\\\\\"onreadystatechange\\\\\\\" in doc.createElement(\\\\\\\"script\\\\\\\")) {\\\\n // For IE 6\\u20138\\\\n installReadyStateChangeImplementation();\\\\n\\\\n } else {\\\\n // For older browsers\\\\n installSetTimeoutImplementation();\\\\n }\\\\n\\\\n attachTo.setImmediate = setImmediate;\\\\n attachTo.clearImmediate = clearImmediate;\\\\n}(typeof self === \\\\\\\"undefined\\\\\\\" ? typeof global === \\\\\\\"undefined\\\\\\\" ? this : global : self));\\\\n\\\\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ \\\\\\\"./node_modules/webpack/buildin/global.js\\\\\\\"), __webpack_require__(/*! ./../process/browser.js */ \\\\\\\"./node_modules/process/browser.js\\\\\\\")))\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/setimmediate/setImmediate.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/stream-http/index.js\\\":\\n/*!*******************************************!*\\\\\\n !*** ./node_modules/stream-http/index.js ***!\\n \\\\*******************************************/\\n/*! no static exports found */\\n/***/ (function(module, exports, __webpack_require__) {\\n\\neval(\\\"/* WEBPACK VAR INJECTION */(function(global) {var ClientRequest = __webpack_require__(/*! ./lib/request */ \\\\\\\"./node_modules/stream-http/lib/request.js\\\\\\\")\\\\nvar response = __webpack_require__(/*! ./lib/response */ \\\\\\\"./node_modules/stream-http/lib/response.js\\\\\\\")\\\\nvar extend = __webpack_require__(/*! xtend */ \\\\\\\"./node_modules/xtend/immutable.js\\\\\\\")\\\\nvar statusCodes = __webpack_require__(/*! builtin-status-codes */ \\\\\\\"./node_modules/builtin-status-codes/browser.js\\\\\\\")\\\\nvar url = __webpack_require__(/*! url */ \\\\\\\"./node_modules/url/url.js\\\\\\\")\\\\n\\\\nvar http = exports\\\\n\\\\nhttp.request = function (opts, cb) {\\\\n\\\\tif (typeof opts === 'string')\\\\n\\\\t\\\\topts = url.parse(opts)\\\\n\\\\telse\\\\n\\\\t\\\\topts = extend(opts)\\\\n\\\\n\\\\t// Normally, the page is loaded from http or https, so not specifying a protocol\\\\n\\\\t// will result in a (valid) protocol-relative url. However, this won't work if\\\\n\\\\t// the protocol is something else, like 'file:'\\\\n\\\\tvar defaultProtocol = global.location.protocol.search(/^https?:$/) === -1 ? 'http:' : ''\\\\n\\\\n\\\\tvar protocol = opts.protocol || defaultProtocol\\\\n\\\\tvar host = opts.hostname || opts.host\\\\n\\\\tvar port = opts.port\\\\n\\\\tvar path = opts.path || '/'\\\\n\\\\n\\\\t// Necessary for IPv6 addresses\\\\n\\\\tif (host && host.indexOf(':') !== -1)\\\\n\\\\t\\\\thost = '[' + host + ']'\\\\n\\\\n\\\\t// This may be a relative url. The browser should always be able to interpret it correctly.\\\\n\\\\topts.url = (host ? (protocol + '//' + host) : '') + (port ? ':' + port : '') + path\\\\n\\\\topts.method = (opts.method || 'GET').toUpperCase()\\\\n\\\\topts.headers = opts.headers || {}\\\\n\\\\n\\\\t// Also valid opts.auth, opts.mode\\\\n\\\\n\\\\tvar req = new ClientRequest(opts)\\\\n\\\\tif (cb)\\\\n\\\\t\\\\treq.on('response', cb)\\\\n\\\\treturn req\\\\n}\\\\n\\\\nhttp.get = function get (opts, cb) {\\\\n\\\\tvar req = http.request(opts, cb)\\\\n\\\\treq.end()\\\\n\\\\treturn req\\\\n}\\\\n\\\\nhttp.ClientRequest = ClientRequest\\\\nhttp.IncomingMessage = response.IncomingMessage\\\\n\\\\nhttp.Agent = function () {}\\\\nhttp.Agent.defaultMaxSockets = 4\\\\n\\\\nhttp.globalAgent = new http.Agent()\\\\n\\\\nhttp.STATUS_CODES = statusCodes\\\\n\\\\nhttp.METHODS = [\\\\n\\\\t'CHECKOUT',\\\\n\\\\t'CONNECT',\\\\n\\\\t'COPY',\\\\n\\\\t'DELETE',\\\\n\\\\t'GET',\\\\n\\\\t'HEAD',\\\\n\\\\t'LOCK',\\\\n\\\\t'M-SEARCH',\\\\n\\\\t'MERGE',\\\\n\\\\t'MKACTIVITY',\\\\n\\\\t'MKCOL',\\\\n\\\\t'MOVE',\\\\n\\\\t'NOTIFY',\\\\n\\\\t'OPTIONS',\\\\n\\\\t'PATCH',\\\\n\\\\t'POST',\\\\n\\\\t'PROPFIND',\\\\n\\\\t'PROPPATCH',\\\\n\\\\t'PURGE',\\\\n\\\\t'PUT',\\\\n\\\\t'REPORT',\\\\n\\\\t'SEARCH',\\\\n\\\\t'SUBSCRIBE',\\\\n\\\\t'TRACE',\\\\n\\\\t'UNLOCK',\\\\n\\\\t'UNSUBSCRIBE'\\\\n]\\\\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ \\\\\\\"./node_modules/webpack/buildin/global.js\\\\\\\")))\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/stream-http/index.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/stream-http/lib/capability.js\\\":\\n/*!****************************************************!*\\\\\\n !*** ./node_modules/stream-http/lib/capability.js ***!\\n \\\\****************************************************/\\n/*! no static exports found */\\n/***/ (function(module, exports, __webpack_require__) {\\n\\neval(\\\"/* WEBPACK VAR INJECTION */(function(global) {exports.fetch = isFunction(global.fetch) && isFunction(global.ReadableStream)\\\\n\\\\nexports.writableStream = isFunction(global.WritableStream)\\\\n\\\\nexports.abortController = isFunction(global.AbortController)\\\\n\\\\nexports.blobConstructor = false\\\\ntry {\\\\n\\\\tnew Blob([new ArrayBuffer(1)])\\\\n\\\\texports.blobConstructor = true\\\\n} catch (e) {}\\\\n\\\\n// The xhr request to example.com may violate some restrictive CSP configurations,\\\\n// so if we're running in a browser that supports `fetch`, avoid calling getXHR()\\\\n// and assume support for certain features below.\\\\nvar xhr\\\\nfunction getXHR () {\\\\n\\\\t// Cache the xhr value\\\\n\\\\tif (xhr !== undefined) return xhr\\\\n\\\\n\\\\tif (global.XMLHttpRequest) {\\\\n\\\\t\\\\txhr = new global.XMLHttpRequest()\\\\n\\\\t\\\\t// If XDomainRequest is available (ie only, where xhr might not work\\\\n\\\\t\\\\t// cross domain), use the page location. Otherwise use example.com\\\\n\\\\t\\\\t// Note: this doesn't actually make an http request.\\\\n\\\\t\\\\ttry {\\\\n\\\\t\\\\t\\\\txhr.open('GET', global.XDomainRequest ? '/' : 'https://example.com')\\\\n\\\\t\\\\t} catch(e) {\\\\n\\\\t\\\\t\\\\txhr = null\\\\n\\\\t\\\\t}\\\\n\\\\t} else {\\\\n\\\\t\\\\t// Service workers don't have XHR\\\\n\\\\t\\\\txhr = null\\\\n\\\\t}\\\\n\\\\treturn xhr\\\\n}\\\\n\\\\nfunction checkTypeSupport (type) {\\\\n\\\\tvar xhr = getXHR()\\\\n\\\\tif (!xhr) return false\\\\n\\\\ttry {\\\\n\\\\t\\\\txhr.responseType = type\\\\n\\\\t\\\\treturn xhr.responseType === type\\\\n\\\\t} catch (e) {}\\\\n\\\\treturn false\\\\n}\\\\n\\\\n// For some strange reason, Safari 7.0 reports typeof global.ArrayBuffer === 'object'.\\\\n// Safari 7.1 appears to have fixed this bug.\\\\nvar haveArrayBuffer = typeof global.ArrayBuffer !== 'undefined'\\\\nvar haveSlice = haveArrayBuffer && isFunction(global.ArrayBuffer.prototype.slice)\\\\n\\\\n// If fetch is supported, then arraybuffer will be supported too. Skip calling\\\\n// checkTypeSupport(), since that calls getXHR().\\\\nexports.arraybuffer = exports.fetch || (haveArrayBuffer && checkTypeSupport('arraybuffer'))\\\\n\\\\n// These next two tests unavoidably show warnings in Chrome. Since fetch will always\\\\n// be used if it's available, just return false for these to avoid the warnings.\\\\nexports.msstream = !exports.fetch && haveSlice && checkTypeSupport('ms-stream')\\\\nexports.mozchunkedarraybuffer = !exports.fetch && haveArrayBuffer &&\\\\n\\\\tcheckTypeSupport('moz-chunked-arraybuffer')\\\\n\\\\n// If fetch is supported, then overrideMimeType will be supported too. Skip calling\\\\n// getXHR().\\\\nexports.overrideMimeType = exports.fetch || (getXHR() ? isFunction(getXHR().overrideMimeType) : false)\\\\n\\\\nexports.vbArray = isFunction(global.VBArray)\\\\n\\\\nfunction isFunction (value) {\\\\n\\\\treturn typeof value === 'function'\\\\n}\\\\n\\\\nxhr = null // Help gc\\\\n\\\\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../webpack/buildin/global.js */ \\\\\\\"./node_modules/webpack/buildin/global.js\\\\\\\")))\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/stream-http/lib/capability.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/stream-http/lib/request.js\\\":\\n/*!*************************************************!*\\\\\\n !*** ./node_modules/stream-http/lib/request.js ***!\\n \\\\*************************************************/\\n/*! no static exports found */\\n/***/ (function(module, exports, __webpack_require__) {\\n\\neval(\\\"/* WEBPACK VAR INJECTION */(function(Buffer, global, process) {var capability = __webpack_require__(/*! ./capability */ \\\\\\\"./node_modules/stream-http/lib/capability.js\\\\\\\")\\\\nvar inherits = __webpack_require__(/*! inherits */ \\\\\\\"./node_modules/inherits/inherits_browser.js\\\\\\\")\\\\nvar response = __webpack_require__(/*! ./response */ \\\\\\\"./node_modules/stream-http/lib/response.js\\\\\\\")\\\\nvar stream = __webpack_require__(/*! readable-stream */ \\\\\\\"./node_modules/readable-stream/readable-browser.js\\\\\\\")\\\\nvar toArrayBuffer = __webpack_require__(/*! to-arraybuffer */ \\\\\\\"./node_modules/to-arraybuffer/index.js\\\\\\\")\\\\n\\\\nvar IncomingMessage = response.IncomingMessage\\\\nvar rStates = response.readyStates\\\\n\\\\nfunction decideMode (preferBinary, useFetch) {\\\\n\\\\tif (capability.fetch && useFetch) {\\\\n\\\\t\\\\treturn 'fetch'\\\\n\\\\t} else if (capability.mozchunkedarraybuffer) {\\\\n\\\\t\\\\treturn 'moz-chunked-arraybuffer'\\\\n\\\\t} else if (capability.msstream) {\\\\n\\\\t\\\\treturn 'ms-stream'\\\\n\\\\t} else if (capability.arraybuffer && preferBinary) {\\\\n\\\\t\\\\treturn 'arraybuffer'\\\\n\\\\t} else if (capability.vbArray && preferBinary) {\\\\n\\\\t\\\\treturn 'text:vbarray'\\\\n\\\\t} else {\\\\n\\\\t\\\\treturn 'text'\\\\n\\\\t}\\\\n}\\\\n\\\\nvar ClientRequest = module.exports = function (opts) {\\\\n\\\\tvar self = this\\\\n\\\\tstream.Writable.call(self)\\\\n\\\\n\\\\tself._opts = opts\\\\n\\\\tself._body = []\\\\n\\\\tself._headers = {}\\\\n\\\\tif (opts.auth)\\\\n\\\\t\\\\tself.setHeader('Authorization', 'Basic ' + new Buffer(opts.auth).toString('base64'))\\\\n\\\\tObject.keys(opts.headers).forEach(function (name) {\\\\n\\\\t\\\\tself.setHeader(name, opts.headers[name])\\\\n\\\\t})\\\\n\\\\n\\\\tvar preferBinary\\\\n\\\\tvar useFetch = true\\\\n\\\\tif (opts.mode === 'disable-fetch' || ('requestTimeout' in opts && !capability.abortController)) {\\\\n\\\\t\\\\t// If the use of XHR should be preferred. Not typically needed.\\\\n\\\\t\\\\tuseFetch = false\\\\n\\\\t\\\\tpreferBinary = true\\\\n\\\\t} else if (opts.mode === 'prefer-streaming') {\\\\n\\\\t\\\\t// If streaming is a high priority but binary compatibility and\\\\n\\\\t\\\\t// the accuracy of the 'content-type' header aren't\\\\n\\\\t\\\\tpreferBinary = false\\\\n\\\\t} else if (opts.mode === 'allow-wrong-content-type') {\\\\n\\\\t\\\\t// If streaming is more important than preserving the 'content-type' header\\\\n\\\\t\\\\tpreferBinary = !capability.overrideMimeType\\\\n\\\\t} else if (!opts.mode || opts.mode === 'default' || opts.mode === 'prefer-fast') {\\\\n\\\\t\\\\t// Use binary if text streaming may corrupt data or the content-type header, or for speed\\\\n\\\\t\\\\tpreferBinary = true\\\\n\\\\t} else {\\\\n\\\\t\\\\tthrow new Error('Invalid value for opts.mode')\\\\n\\\\t}\\\\n\\\\tself._mode = decideMode(preferBinary, useFetch)\\\\n\\\\tself._fetchTimer = null\\\\n\\\\n\\\\tself.on('finish', function () {\\\\n\\\\t\\\\tself._onFinish()\\\\n\\\\t})\\\\n}\\\\n\\\\ninherits(ClientRequest, stream.Writable)\\\\n\\\\nClientRequest.prototype.setHeader = function (name, value) {\\\\n\\\\tvar self = this\\\\n\\\\tvar lowerName = name.toLowerCase()\\\\n\\\\t// This check is not necessary, but it prevents warnings from browsers about setting unsafe\\\\n\\\\t// headers. To be honest I'm not entirely sure hiding these warnings is a good thing, but\\\\n\\\\t// http-browserify did it, so I will too.\\\\n\\\\tif (unsafeHeaders.indexOf(lowerName) !== -1)\\\\n\\\\t\\\\treturn\\\\n\\\\n\\\\tself._headers[lowerName] = {\\\\n\\\\t\\\\tname: name,\\\\n\\\\t\\\\tvalue: value\\\\n\\\\t}\\\\n}\\\\n\\\\nClientRequest.prototype.getHeader = function (name) {\\\\n\\\\tvar header = this._headers[name.toLowerCase()]\\\\n\\\\tif (header)\\\\n\\\\t\\\\treturn header.value\\\\n\\\\treturn null\\\\n}\\\\n\\\\nClientRequest.prototype.removeHeader = function (name) {\\\\n\\\\tvar self = this\\\\n\\\\tdelete self._headers[name.toLowerCase()]\\\\n}\\\\n\\\\nClientRequest.prototype._onFinish = function () {\\\\n\\\\tvar self = this\\\\n\\\\n\\\\tif (self._destroyed)\\\\n\\\\t\\\\treturn\\\\n\\\\tvar opts = self._opts\\\\n\\\\n\\\\tvar headersObj = self._headers\\\\n\\\\tvar body = null\\\\n\\\\tif (opts.method !== 'GET' && opts.method !== 'HEAD') {\\\\n\\\\t\\\\tif (capability.arraybuffer) {\\\\n\\\\t\\\\t\\\\tbody = toArrayBuffer(Buffer.concat(self._body))\\\\n\\\\t\\\\t} else if (capability.blobConstructor) {\\\\n\\\\t\\\\t\\\\tbody = new global.Blob(self._body.map(function (buffer) {\\\\n\\\\t\\\\t\\\\t\\\\treturn toArrayBuffer(buffer)\\\\n\\\\t\\\\t\\\\t}), {\\\\n\\\\t\\\\t\\\\t\\\\ttype: (headersObj['content-type'] || {}).value || ''\\\\n\\\\t\\\\t\\\\t})\\\\n\\\\t\\\\t} else {\\\\n\\\\t\\\\t\\\\t// get utf8 string\\\\n\\\\t\\\\t\\\\tbody = Buffer.concat(self._body).toString()\\\\n\\\\t\\\\t}\\\\n\\\\t}\\\\n\\\\n\\\\t// create flattened list of headers\\\\n\\\\tvar headersList = []\\\\n\\\\tObject.keys(headersObj).forEach(function (keyName) {\\\\n\\\\t\\\\tvar name = headersObj[keyName].name\\\\n\\\\t\\\\tvar value = headersObj[keyName].value\\\\n\\\\t\\\\tif (Array.isArray(value)) {\\\\n\\\\t\\\\t\\\\tvalue.forEach(function (v) {\\\\n\\\\t\\\\t\\\\t\\\\theadersList.push([name, v])\\\\n\\\\t\\\\t\\\\t})\\\\n\\\\t\\\\t} else {\\\\n\\\\t\\\\t\\\\theadersList.push([name, value])\\\\n\\\\t\\\\t}\\\\n\\\\t})\\\\n\\\\n\\\\tif (self._mode === 'fetch') {\\\\n\\\\t\\\\tvar signal = null\\\\n\\\\t\\\\tvar fetchTimer = null\\\\n\\\\t\\\\tif (capability.abortController) {\\\\n\\\\t\\\\t\\\\tvar controller = new AbortController()\\\\n\\\\t\\\\t\\\\tsignal = controller.signal\\\\n\\\\t\\\\t\\\\tself._fetchAbortController = controller\\\\n\\\\n\\\\t\\\\t\\\\tif ('requestTimeout' in opts && opts.requestTimeout !== 0) {\\\\n\\\\t\\\\t\\\\t\\\\tself._fetchTimer = global.setTimeout(function () {\\\\n\\\\t\\\\t\\\\t\\\\t\\\\tself.emit('requestTimeout')\\\\n\\\\t\\\\t\\\\t\\\\t\\\\tif (self._fetchAbortController)\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\tself._fetchAbortController.abort()\\\\n\\\\t\\\\t\\\\t\\\\t}, opts.requestTimeout)\\\\n\\\\t\\\\t\\\\t}\\\\n\\\\t\\\\t}\\\\n\\\\n\\\\t\\\\tglobal.fetch(self._opts.url, {\\\\n\\\\t\\\\t\\\\tmethod: self._opts.method,\\\\n\\\\t\\\\t\\\\theaders: headersList,\\\\n\\\\t\\\\t\\\\tbody: body || undefined,\\\\n\\\\t\\\\t\\\\tmode: 'cors',\\\\n\\\\t\\\\t\\\\tcredentials: opts.withCredentials ? 'include' : 'same-origin',\\\\n\\\\t\\\\t\\\\tsignal: signal\\\\n\\\\t\\\\t}).then(function (response) {\\\\n\\\\t\\\\t\\\\tself._fetchResponse = response\\\\n\\\\t\\\\t\\\\tself._connect()\\\\n\\\\t\\\\t}, function (reason) {\\\\n\\\\t\\\\t\\\\tglobal.clearTimeout(self._fetchTimer)\\\\n\\\\t\\\\t\\\\tif (!self._destroyed)\\\\n\\\\t\\\\t\\\\t\\\\tself.emit('error', reason)\\\\n\\\\t\\\\t})\\\\n\\\\t} else {\\\\n\\\\t\\\\tvar xhr = self._xhr = new global.XMLHttpRequest()\\\\n\\\\t\\\\ttry {\\\\n\\\\t\\\\t\\\\txhr.open(self._opts.method, self._opts.url, true)\\\\n\\\\t\\\\t} catch (err) {\\\\n\\\\t\\\\t\\\\tprocess.nextTick(function () {\\\\n\\\\t\\\\t\\\\t\\\\tself.emit('error', err)\\\\n\\\\t\\\\t\\\\t})\\\\n\\\\t\\\\t\\\\treturn\\\\n\\\\t\\\\t}\\\\n\\\\n\\\\t\\\\t// Can't set responseType on really old browsers\\\\n\\\\t\\\\tif ('responseType' in xhr)\\\\n\\\\t\\\\t\\\\txhr.responseType = self._mode.split(':')[0]\\\\n\\\\n\\\\t\\\\tif ('withCredentials' in xhr)\\\\n\\\\t\\\\t\\\\txhr.withCredentials = !!opts.withCredentials\\\\n\\\\n\\\\t\\\\tif (self._mode === 'text' && 'overrideMimeType' in xhr)\\\\n\\\\t\\\\t\\\\txhr.overrideMimeType('text/plain; charset=x-user-defined')\\\\n\\\\n\\\\t\\\\tif ('requestTimeout' in opts) {\\\\n\\\\t\\\\t\\\\txhr.timeout = opts.requestTimeout\\\\n\\\\t\\\\t\\\\txhr.ontimeout = function () {\\\\n\\\\t\\\\t\\\\t\\\\tself.emit('requestTimeout')\\\\n\\\\t\\\\t\\\\t}\\\\n\\\\t\\\\t}\\\\n\\\\n\\\\t\\\\theadersList.forEach(function (header) {\\\\n\\\\t\\\\t\\\\txhr.setRequestHeader(header[0], header[1])\\\\n\\\\t\\\\t})\\\\n\\\\n\\\\t\\\\tself._response = null\\\\n\\\\t\\\\txhr.onreadystatechange = function () {\\\\n\\\\t\\\\t\\\\tswitch (xhr.readyState) {\\\\n\\\\t\\\\t\\\\t\\\\tcase rStates.LOADING:\\\\n\\\\t\\\\t\\\\t\\\\tcase rStates.DONE:\\\\n\\\\t\\\\t\\\\t\\\\t\\\\tself._onXHRProgress()\\\\n\\\\t\\\\t\\\\t\\\\t\\\\tbreak\\\\n\\\\t\\\\t\\\\t}\\\\n\\\\t\\\\t}\\\\n\\\\t\\\\t// Necessary for streaming in Firefox, since xhr.response is ONLY defined\\\\n\\\\t\\\\t// in onprogress, not in onreadystatechange with xhr.readyState = 3\\\\n\\\\t\\\\tif (self._mode === 'moz-chunked-arraybuffer') {\\\\n\\\\t\\\\t\\\\txhr.onprogress = function () {\\\\n\\\\t\\\\t\\\\t\\\\tself._onXHRProgress()\\\\n\\\\t\\\\t\\\\t}\\\\n\\\\t\\\\t}\\\\n\\\\n\\\\t\\\\txhr.onerror = function () {\\\\n\\\\t\\\\t\\\\tif (self._destroyed)\\\\n\\\\t\\\\t\\\\t\\\\treturn\\\\n\\\\t\\\\t\\\\tself.emit('error', new Error('XHR error'))\\\\n\\\\t\\\\t}\\\\n\\\\n\\\\t\\\\ttry {\\\\n\\\\t\\\\t\\\\txhr.send(body)\\\\n\\\\t\\\\t} catch (err) {\\\\n\\\\t\\\\t\\\\tprocess.nextTick(function () {\\\\n\\\\t\\\\t\\\\t\\\\tself.emit('error', err)\\\\n\\\\t\\\\t\\\\t})\\\\n\\\\t\\\\t\\\\treturn\\\\n\\\\t\\\\t}\\\\n\\\\t}\\\\n}\\\\n\\\\n/**\\\\n * Checks if xhr.status is readable and non-zero, indicating no error.\\\\n * Even though the spec says it should be available in readyState 3,\\\\n * accessing it throws an exception in IE8\\\\n */\\\\nfunction statusValid (xhr) {\\\\n\\\\ttry {\\\\n\\\\t\\\\tvar status = xhr.status\\\\n\\\\t\\\\treturn (status !== null && status !== 0)\\\\n\\\\t} catch (e) {\\\\n\\\\t\\\\treturn false\\\\n\\\\t}\\\\n}\\\\n\\\\nClientRequest.prototype._onXHRProgress = function () {\\\\n\\\\tvar self = this\\\\n\\\\n\\\\tif (!statusValid(self._xhr) || self._destroyed)\\\\n\\\\t\\\\treturn\\\\n\\\\n\\\\tif (!self._response)\\\\n\\\\t\\\\tself._connect()\\\\n\\\\n\\\\tself._response._onXHRProgress()\\\\n}\\\\n\\\\nClientRequest.prototype._connect = function () {\\\\n\\\\tvar self = this\\\\n\\\\n\\\\tif (self._destroyed)\\\\n\\\\t\\\\treturn\\\\n\\\\n\\\\tself._response = new IncomingMessage(self._xhr, self._fetchResponse, self._mode, self._fetchTimer)\\\\n\\\\tself._response.on('error', function(err) {\\\\n\\\\t\\\\tself.emit('error', err)\\\\n\\\\t})\\\\n\\\\n\\\\tself.emit('response', self._response)\\\\n}\\\\n\\\\nClientRequest.prototype._write = function (chunk, encoding, cb) {\\\\n\\\\tvar self = this\\\\n\\\\n\\\\tself._body.push(chunk)\\\\n\\\\tcb()\\\\n}\\\\n\\\\nClientRequest.prototype.abort = ClientRequest.prototype.destroy = function () {\\\\n\\\\tvar self = this\\\\n\\\\tself._destroyed = true\\\\n\\\\tglobal.clearTimeout(self._fetchTimer)\\\\n\\\\tif (self._response)\\\\n\\\\t\\\\tself._response._destroyed = true\\\\n\\\\tif (self._xhr)\\\\n\\\\t\\\\tself._xhr.abort()\\\\n\\\\telse if (self._fetchAbortController)\\\\n\\\\t\\\\tself._fetchAbortController.abort()\\\\n}\\\\n\\\\nClientRequest.prototype.end = function (data, encoding, cb) {\\\\n\\\\tvar self = this\\\\n\\\\tif (typeof data === 'function') {\\\\n\\\\t\\\\tcb = data\\\\n\\\\t\\\\tdata = undefined\\\\n\\\\t}\\\\n\\\\n\\\\tstream.Writable.prototype.end.call(self, data, encoding, cb)\\\\n}\\\\n\\\\nClientRequest.prototype.flushHeaders = function () {}\\\\nClientRequest.prototype.setTimeout = function () {}\\\\nClientRequest.prototype.setNoDelay = function () {}\\\\nClientRequest.prototype.setSocketKeepAlive = function () {}\\\\n\\\\n// Taken from http://www.w3.org/TR/XMLHttpRequest/#the-setrequestheader%28%29-method\\\\nvar unsafeHeaders = [\\\\n\\\\t'accept-charset',\\\\n\\\\t'accept-encoding',\\\\n\\\\t'access-control-request-headers',\\\\n\\\\t'access-control-request-method',\\\\n\\\\t'connection',\\\\n\\\\t'content-length',\\\\n\\\\t'cookie',\\\\n\\\\t'cookie2',\\\\n\\\\t'date',\\\\n\\\\t'dnt',\\\\n\\\\t'expect',\\\\n\\\\t'host',\\\\n\\\\t'keep-alive',\\\\n\\\\t'origin',\\\\n\\\\t'referer',\\\\n\\\\t'te',\\\\n\\\\t'trailer',\\\\n\\\\t'transfer-encoding',\\\\n\\\\t'upgrade',\\\\n\\\\t'via'\\\\n]\\\\n\\\\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../node-libs-browser/node_modules/buffer/index.js */ \\\\\\\"./node_modules/node-libs-browser/node_modules/buffer/index.js\\\\\\\").Buffer, __webpack_require__(/*! ./../../webpack/buildin/global.js */ \\\\\\\"./node_modules/webpack/buildin/global.js\\\\\\\"), __webpack_require__(/*! ./../../process/browser.js */ \\\\\\\"./node_modules/process/browser.js\\\\\\\")))\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/stream-http/lib/request.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/stream-http/lib/response.js\\\":\\n/*!**************************************************!*\\\\\\n !*** ./node_modules/stream-http/lib/response.js ***!\\n \\\\**************************************************/\\n/*! no static exports found */\\n/***/ (function(module, exports, __webpack_require__) {\\n\\neval(\\\"/* WEBPACK VAR INJECTION */(function(process, Buffer, global) {var capability = __webpack_require__(/*! ./capability */ \\\\\\\"./node_modules/stream-http/lib/capability.js\\\\\\\")\\\\nvar inherits = __webpack_require__(/*! inherits */ \\\\\\\"./node_modules/inherits/inherits_browser.js\\\\\\\")\\\\nvar stream = __webpack_require__(/*! readable-stream */ \\\\\\\"./node_modules/readable-stream/readable-browser.js\\\\\\\")\\\\n\\\\nvar rStates = exports.readyStates = {\\\\n\\\\tUNSENT: 0,\\\\n\\\\tOPENED: 1,\\\\n\\\\tHEADERS_RECEIVED: 2,\\\\n\\\\tLOADING: 3,\\\\n\\\\tDONE: 4\\\\n}\\\\n\\\\nvar IncomingMessage = exports.IncomingMessage = function (xhr, response, mode, fetchTimer) {\\\\n\\\\tvar self = this\\\\n\\\\tstream.Readable.call(self)\\\\n\\\\n\\\\tself._mode = mode\\\\n\\\\tself.headers = {}\\\\n\\\\tself.rawHeaders = []\\\\n\\\\tself.trailers = {}\\\\n\\\\tself.rawTrailers = []\\\\n\\\\n\\\\t// Fake the 'close' event, but only once 'end' fires\\\\n\\\\tself.on('end', function () {\\\\n\\\\t\\\\t// The nextTick is necessary to prevent the 'request' module from causing an infinite loop\\\\n\\\\t\\\\tprocess.nextTick(function () {\\\\n\\\\t\\\\t\\\\tself.emit('close')\\\\n\\\\t\\\\t})\\\\n\\\\t})\\\\n\\\\n\\\\tif (mode === 'fetch') {\\\\n\\\\t\\\\tself._fetchResponse = response\\\\n\\\\n\\\\t\\\\tself.url = response.url\\\\n\\\\t\\\\tself.statusCode = response.status\\\\n\\\\t\\\\tself.statusMessage = response.statusText\\\\n\\\\t\\\\t\\\\n\\\\t\\\\tresponse.headers.forEach(function (header, key){\\\\n\\\\t\\\\t\\\\tself.headers[key.toLowerCase()] = header\\\\n\\\\t\\\\t\\\\tself.rawHeaders.push(key, header)\\\\n\\\\t\\\\t})\\\\n\\\\n\\\\t\\\\tif (capability.writableStream) {\\\\n\\\\t\\\\t\\\\tvar writable = new WritableStream({\\\\n\\\\t\\\\t\\\\t\\\\twrite: function (chunk) {\\\\n\\\\t\\\\t\\\\t\\\\t\\\\treturn new Promise(function (resolve, reject) {\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\tif (self._destroyed) {\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\treject()\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t} else if(self.push(new Buffer(chunk))) {\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\tresolve()\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t} else {\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\tself._resumeFetch = resolve\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t}\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t})\\\\n\\\\t\\\\t\\\\t\\\\t},\\\\n\\\\t\\\\t\\\\t\\\\tclose: function () {\\\\n\\\\t\\\\t\\\\t\\\\t\\\\tglobal.clearTimeout(fetchTimer)\\\\n\\\\t\\\\t\\\\t\\\\t\\\\tif (!self._destroyed)\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\tself.push(null)\\\\n\\\\t\\\\t\\\\t\\\\t},\\\\n\\\\t\\\\t\\\\t\\\\tabort: function (err) {\\\\n\\\\t\\\\t\\\\t\\\\t\\\\tif (!self._destroyed)\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\tself.emit('error', err)\\\\n\\\\t\\\\t\\\\t\\\\t}\\\\n\\\\t\\\\t\\\\t})\\\\n\\\\n\\\\t\\\\t\\\\ttry {\\\\n\\\\t\\\\t\\\\t\\\\tresponse.body.pipeTo(writable).catch(function (err) {\\\\n\\\\t\\\\t\\\\t\\\\t\\\\tglobal.clearTimeout(fetchTimer)\\\\n\\\\t\\\\t\\\\t\\\\t\\\\tif (!self._destroyed)\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\tself.emit('error', err)\\\\n\\\\t\\\\t\\\\t\\\\t})\\\\n\\\\t\\\\t\\\\t\\\\treturn\\\\n\\\\t\\\\t\\\\t} catch (e) {} // pipeTo method isn't defined. Can't find a better way to feature test this\\\\n\\\\t\\\\t}\\\\n\\\\t\\\\t// fallback for when writableStream or pipeTo aren't available\\\\n\\\\t\\\\tvar reader = response.body.getReader()\\\\n\\\\t\\\\tfunction read () {\\\\n\\\\t\\\\t\\\\treader.read().then(function (result) {\\\\n\\\\t\\\\t\\\\t\\\\tif (self._destroyed)\\\\n\\\\t\\\\t\\\\t\\\\t\\\\treturn\\\\n\\\\t\\\\t\\\\t\\\\tif (result.done) {\\\\n\\\\t\\\\t\\\\t\\\\t\\\\tglobal.clearTimeout(fetchTimer)\\\\n\\\\t\\\\t\\\\t\\\\t\\\\tself.push(null)\\\\n\\\\t\\\\t\\\\t\\\\t\\\\treturn\\\\n\\\\t\\\\t\\\\t\\\\t}\\\\n\\\\t\\\\t\\\\t\\\\tself.push(new Buffer(result.value))\\\\n\\\\t\\\\t\\\\t\\\\tread()\\\\n\\\\t\\\\t\\\\t}).catch(function (err) {\\\\n\\\\t\\\\t\\\\t\\\\tglobal.clearTimeout(fetchTimer)\\\\n\\\\t\\\\t\\\\t\\\\tif (!self._destroyed)\\\\n\\\\t\\\\t\\\\t\\\\t\\\\tself.emit('error', err)\\\\n\\\\t\\\\t\\\\t})\\\\n\\\\t\\\\t}\\\\n\\\\t\\\\tread()\\\\n\\\\t} else {\\\\n\\\\t\\\\tself._xhr = xhr\\\\n\\\\t\\\\tself._pos = 0\\\\n\\\\n\\\\t\\\\tself.url = xhr.responseURL\\\\n\\\\t\\\\tself.statusCode = xhr.status\\\\n\\\\t\\\\tself.statusMessage = xhr.statusText\\\\n\\\\t\\\\tvar headers = xhr.getAllResponseHeaders().split(/\\\\\\\\r?\\\\\\\\n/)\\\\n\\\\t\\\\theaders.forEach(function (header) {\\\\n\\\\t\\\\t\\\\tvar matches = header.match(/^([^:]+):\\\\\\\\s*(.*)/)\\\\n\\\\t\\\\t\\\\tif (matches) {\\\\n\\\\t\\\\t\\\\t\\\\tvar key = matches[1].toLowerCase()\\\\n\\\\t\\\\t\\\\t\\\\tif (key === 'set-cookie') {\\\\n\\\\t\\\\t\\\\t\\\\t\\\\tif (self.headers[key] === undefined) {\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\tself.headers[key] = []\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t}\\\\n\\\\t\\\\t\\\\t\\\\t\\\\tself.headers[key].push(matches[2])\\\\n\\\\t\\\\t\\\\t\\\\t} else if (self.headers[key] !== undefined) {\\\\n\\\\t\\\\t\\\\t\\\\t\\\\tself.headers[key] += ', ' + matches[2]\\\\n\\\\t\\\\t\\\\t\\\\t} else {\\\\n\\\\t\\\\t\\\\t\\\\t\\\\tself.headers[key] = matches[2]\\\\n\\\\t\\\\t\\\\t\\\\t}\\\\n\\\\t\\\\t\\\\t\\\\tself.rawHeaders.push(matches[1], matches[2])\\\\n\\\\t\\\\t\\\\t}\\\\n\\\\t\\\\t})\\\\n\\\\n\\\\t\\\\tself._charset = 'x-user-defined'\\\\n\\\\t\\\\tif (!capability.overrideMimeType) {\\\\n\\\\t\\\\t\\\\tvar mimeType = self.rawHeaders['mime-type']\\\\n\\\\t\\\\t\\\\tif (mimeType) {\\\\n\\\\t\\\\t\\\\t\\\\tvar charsetMatch = mimeType.match(/;\\\\\\\\s*charset=([^;])(;|$)/)\\\\n\\\\t\\\\t\\\\t\\\\tif (charsetMatch) {\\\\n\\\\t\\\\t\\\\t\\\\t\\\\tself._charset = charsetMatch[1].toLowerCase()\\\\n\\\\t\\\\t\\\\t\\\\t}\\\\n\\\\t\\\\t\\\\t}\\\\n\\\\t\\\\t\\\\tif (!self._charset)\\\\n\\\\t\\\\t\\\\t\\\\tself._charset = 'utf-8' // best guess\\\\n\\\\t\\\\t}\\\\n\\\\t}\\\\n}\\\\n\\\\ninherits(IncomingMessage, stream.Readable)\\\\n\\\\nIncomingMessage.prototype._read = function () {\\\\n\\\\tvar self = this\\\\n\\\\n\\\\tvar resolve = self._resumeFetch\\\\n\\\\tif (resolve) {\\\\n\\\\t\\\\tself._resumeFetch = null\\\\n\\\\t\\\\tresolve()\\\\n\\\\t}\\\\n}\\\\n\\\\nIncomingMessage.prototype._onXHRProgress = function () {\\\\n\\\\tvar self = this\\\\n\\\\n\\\\tvar xhr = self._xhr\\\\n\\\\n\\\\tvar response = null\\\\n\\\\tswitch (self._mode) {\\\\n\\\\t\\\\tcase 'text:vbarray': // For IE9\\\\n\\\\t\\\\t\\\\tif (xhr.readyState !== rStates.DONE)\\\\n\\\\t\\\\t\\\\t\\\\tbreak\\\\n\\\\t\\\\t\\\\ttry {\\\\n\\\\t\\\\t\\\\t\\\\t// This fails in IE8\\\\n\\\\t\\\\t\\\\t\\\\tresponse = new global.VBArray(xhr.responseBody).toArray()\\\\n\\\\t\\\\t\\\\t} catch (e) {}\\\\n\\\\t\\\\t\\\\tif (response !== null) {\\\\n\\\\t\\\\t\\\\t\\\\tself.push(new Buffer(response))\\\\n\\\\t\\\\t\\\\t\\\\tbreak\\\\n\\\\t\\\\t\\\\t}\\\\n\\\\t\\\\t\\\\t// Falls through in IE8\\\\t\\\\n\\\\t\\\\tcase 'text':\\\\n\\\\t\\\\t\\\\ttry { // This will fail when readyState = 3 in IE9. Switch mode and wait for readyState = 4\\\\n\\\\t\\\\t\\\\t\\\\tresponse = xhr.responseText\\\\n\\\\t\\\\t\\\\t} catch (e) {\\\\n\\\\t\\\\t\\\\t\\\\tself._mode = 'text:vbarray'\\\\n\\\\t\\\\t\\\\t\\\\tbreak\\\\n\\\\t\\\\t\\\\t}\\\\n\\\\t\\\\t\\\\tif (response.length > self._pos) {\\\\n\\\\t\\\\t\\\\t\\\\tvar newData = response.substr(self._pos)\\\\n\\\\t\\\\t\\\\t\\\\tif (self._charset === 'x-user-defined') {\\\\n\\\\t\\\\t\\\\t\\\\t\\\\tvar buffer = new Buffer(newData.length)\\\\n\\\\t\\\\t\\\\t\\\\t\\\\tfor (var i = 0; i < newData.length; i++)\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\tbuffer[i] = newData.charCodeAt(i) & 0xff\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\tself.push(buffer)\\\\n\\\\t\\\\t\\\\t\\\\t} else {\\\\n\\\\t\\\\t\\\\t\\\\t\\\\tself.push(newData, self._charset)\\\\n\\\\t\\\\t\\\\t\\\\t}\\\\n\\\\t\\\\t\\\\t\\\\tself._pos = response.length\\\\n\\\\t\\\\t\\\\t}\\\\n\\\\t\\\\t\\\\tbreak\\\\n\\\\t\\\\tcase 'arraybuffer':\\\\n\\\\t\\\\t\\\\tif (xhr.readyState !== rStates.DONE || !xhr.response)\\\\n\\\\t\\\\t\\\\t\\\\tbreak\\\\n\\\\t\\\\t\\\\tresponse = xhr.response\\\\n\\\\t\\\\t\\\\tself.push(new Buffer(new Uint8Array(response)))\\\\n\\\\t\\\\t\\\\tbreak\\\\n\\\\t\\\\tcase 'moz-chunked-arraybuffer': // take whole\\\\n\\\\t\\\\t\\\\tresponse = xhr.response\\\\n\\\\t\\\\t\\\\tif (xhr.readyState !== rStates.LOADING || !response)\\\\n\\\\t\\\\t\\\\t\\\\tbreak\\\\n\\\\t\\\\t\\\\tself.push(new Buffer(new Uint8Array(response)))\\\\n\\\\t\\\\t\\\\tbreak\\\\n\\\\t\\\\tcase 'ms-stream':\\\\n\\\\t\\\\t\\\\tresponse = xhr.response\\\\n\\\\t\\\\t\\\\tif (xhr.readyState !== rStates.LOADING)\\\\n\\\\t\\\\t\\\\t\\\\tbreak\\\\n\\\\t\\\\t\\\\tvar reader = new global.MSStreamReader()\\\\n\\\\t\\\\t\\\\treader.onprogress = function () {\\\\n\\\\t\\\\t\\\\t\\\\tif (reader.result.byteLength > self._pos) {\\\\n\\\\t\\\\t\\\\t\\\\t\\\\tself.push(new Buffer(new Uint8Array(reader.result.slice(self._pos))))\\\\n\\\\t\\\\t\\\\t\\\\t\\\\tself._pos = reader.result.byteLength\\\\n\\\\t\\\\t\\\\t\\\\t}\\\\n\\\\t\\\\t\\\\t}\\\\n\\\\t\\\\t\\\\treader.onload = function () {\\\\n\\\\t\\\\t\\\\t\\\\tself.push(null)\\\\n\\\\t\\\\t\\\\t}\\\\n\\\\t\\\\t\\\\t// reader.onerror = ??? // TODO: this\\\\n\\\\t\\\\t\\\\treader.readAsArrayBuffer(response)\\\\n\\\\t\\\\t\\\\tbreak\\\\n\\\\t}\\\\n\\\\n\\\\t// The ms-stream case handles end separately in reader.onload()\\\\n\\\\tif (self._xhr.readyState === rStates.DONE && self._mode !== 'ms-stream') {\\\\n\\\\t\\\\tself.push(null)\\\\n\\\\t}\\\\n}\\\\n\\\\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../process/browser.js */ \\\\\\\"./node_modules/process/browser.js\\\\\\\"), __webpack_require__(/*! ./../../node-libs-browser/node_modules/buffer/index.js */ \\\\\\\"./node_modules/node-libs-browser/node_modules/buffer/index.js\\\\\\\").Buffer, __webpack_require__(/*! ./../../webpack/buildin/global.js */ \\\\\\\"./node_modules/webpack/buildin/global.js\\\\\\\")))\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/stream-http/lib/response.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/string_decoder/lib/string_decoder.js\\\":\\n/*!***********************************************************!*\\\\\\n !*** ./node_modules/string_decoder/lib/string_decoder.js ***!\\n \\\\***********************************************************/\\n/*! no static exports found */\\n/***/ (function(module, exports, __webpack_require__) {\\n\\n\\\"use strict\\\";\\neval(\\\"\\\\n\\\\nvar Buffer = __webpack_require__(/*! safe-buffer */ \\\\\\\"./node_modules/string_decoder/node_modules/safe-buffer/index.js\\\\\\\").Buffer;\\\\n\\\\nvar isEncoding = Buffer.isEncoding || function (encoding) {\\\\n encoding = '' + encoding;\\\\n switch (encoding && encoding.toLowerCase()) {\\\\n case 'hex':case 'utf8':case 'utf-8':case 'ascii':case 'binary':case 'base64':case 'ucs2':case 'ucs-2':case 'utf16le':case 'utf-16le':case 'raw':\\\\n return true;\\\\n default:\\\\n return false;\\\\n }\\\\n};\\\\n\\\\nfunction _normalizeEncoding(enc) {\\\\n if (!enc) return 'utf8';\\\\n var retried;\\\\n while (true) {\\\\n switch (enc) {\\\\n case 'utf8':\\\\n case 'utf-8':\\\\n return 'utf8';\\\\n case 'ucs2':\\\\n case 'ucs-2':\\\\n case 'utf16le':\\\\n case 'utf-16le':\\\\n return 'utf16le';\\\\n case 'latin1':\\\\n case 'binary':\\\\n return 'latin1';\\\\n case 'base64':\\\\n case 'ascii':\\\\n case 'hex':\\\\n return enc;\\\\n default:\\\\n if (retried) return; // undefined\\\\n enc = ('' + enc).toLowerCase();\\\\n retried = true;\\\\n }\\\\n }\\\\n};\\\\n\\\\n// Do not cache `Buffer.isEncoding` when checking encoding names as some\\\\n// modules monkey-patch it to support additional encodings\\\\nfunction normalizeEncoding(enc) {\\\\n var nenc = _normalizeEncoding(enc);\\\\n if (typeof nenc !== 'string' && (Buffer.isEncoding === isEncoding || !isEncoding(enc))) throw new Error('Unknown encoding: ' + enc);\\\\n return nenc || enc;\\\\n}\\\\n\\\\n// StringDecoder provides an interface for efficiently splitting a series of\\\\n// buffers into a series of JS strings without breaking apart multi-byte\\\\n// characters.\\\\nexports.StringDecoder = StringDecoder;\\\\nfunction StringDecoder(encoding) {\\\\n this.encoding = normalizeEncoding(encoding);\\\\n var nb;\\\\n switch (this.encoding) {\\\\n case 'utf16le':\\\\n this.text = utf16Text;\\\\n this.end = utf16End;\\\\n nb = 4;\\\\n break;\\\\n case 'utf8':\\\\n this.fillLast = utf8FillLast;\\\\n nb = 4;\\\\n break;\\\\n case 'base64':\\\\n this.text = base64Text;\\\\n this.end = base64End;\\\\n nb = 3;\\\\n break;\\\\n default:\\\\n this.write = simpleWrite;\\\\n this.end = simpleEnd;\\\\n return;\\\\n }\\\\n this.lastNeed = 0;\\\\n this.lastTotal = 0;\\\\n this.lastChar = Buffer.allocUnsafe(nb);\\\\n}\\\\n\\\\nStringDecoder.prototype.write = function (buf) {\\\\n if (buf.length === 0) return '';\\\\n var r;\\\\n var i;\\\\n if (this.lastNeed) {\\\\n r = this.fillLast(buf);\\\\n if (r === undefined) return '';\\\\n i = this.lastNeed;\\\\n this.lastNeed = 0;\\\\n } else {\\\\n i = 0;\\\\n }\\\\n if (i < buf.length) return r ? r + this.text(buf, i) : this.text(buf, i);\\\\n return r || '';\\\\n};\\\\n\\\\nStringDecoder.prototype.end = utf8End;\\\\n\\\\n// Returns only complete characters in a Buffer\\\\nStringDecoder.prototype.text = utf8Text;\\\\n\\\\n// Attempts to complete a partial non-UTF-8 character using bytes from a Buffer\\\\nStringDecoder.prototype.fillLast = function (buf) {\\\\n if (this.lastNeed <= buf.length) {\\\\n buf.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed);\\\\n return this.lastChar.toString(this.encoding, 0, this.lastTotal);\\\\n }\\\\n buf.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, buf.length);\\\\n this.lastNeed -= buf.length;\\\\n};\\\\n\\\\n// Checks the type of a UTF-8 byte, whether it's ASCII, a leading byte, or a\\\\n// continuation byte.\\\\nfunction utf8CheckByte(byte) {\\\\n if (byte <= 0x7F) return 0;else if (byte >> 5 === 0x06) return 2;else if (byte >> 4 === 0x0E) return 3;else if (byte >> 3 === 0x1E) return 4;\\\\n return -1;\\\\n}\\\\n\\\\n// Checks at most 3 bytes at the end of a Buffer in order to detect an\\\\n// incomplete multi-byte UTF-8 character. The total number of bytes (2, 3, or 4)\\\\n// needed to complete the UTF-8 character (if applicable) are returned.\\\\nfunction utf8CheckIncomplete(self, buf, i) {\\\\n var j = buf.length - 1;\\\\n if (j < i) return 0;\\\\n var nb = utf8CheckByte(buf[j]);\\\\n if (nb >= 0) {\\\\n if (nb > 0) self.lastNeed = nb - 1;\\\\n return nb;\\\\n }\\\\n if (--j < i) return 0;\\\\n nb = utf8CheckByte(buf[j]);\\\\n if (nb >= 0) {\\\\n if (nb > 0) self.lastNeed = nb - 2;\\\\n return nb;\\\\n }\\\\n if (--j < i) return 0;\\\\n nb = utf8CheckByte(buf[j]);\\\\n if (nb >= 0) {\\\\n if (nb > 0) {\\\\n if (nb === 2) nb = 0;else self.lastNeed = nb - 3;\\\\n }\\\\n return nb;\\\\n }\\\\n return 0;\\\\n}\\\\n\\\\n// Validates as many continuation bytes for a multi-byte UTF-8 character as\\\\n// needed or are available. If we see a non-continuation byte where we expect\\\\n// one, we \\\\\\\"replace\\\\\\\" the validated continuation bytes we've seen so far with\\\\n// UTF-8 replacement characters ('\\\\\\\\ufffd'), to match v8's UTF-8 decoding\\\\n// behavior. The continuation byte check is included three times in the case\\\\n// where all of the continuation bytes for a character exist in the same buffer.\\\\n// It is also done this way as a slight performance increase instead of using a\\\\n// loop.\\\\nfunction utf8CheckExtraBytes(self, buf, p) {\\\\n if ((buf[0] & 0xC0) !== 0x80) {\\\\n self.lastNeed = 0;\\\\n return '\\\\\\\\ufffd'.repeat(p);\\\\n }\\\\n if (self.lastNeed > 1 && buf.length > 1) {\\\\n if ((buf[1] & 0xC0) !== 0x80) {\\\\n self.lastNeed = 1;\\\\n return '\\\\\\\\ufffd'.repeat(p + 1);\\\\n }\\\\n if (self.lastNeed > 2 && buf.length > 2) {\\\\n if ((buf[2] & 0xC0) !== 0x80) {\\\\n self.lastNeed = 2;\\\\n return '\\\\\\\\ufffd'.repeat(p + 2);\\\\n }\\\\n }\\\\n }\\\\n}\\\\n\\\\n// Attempts to complete a multi-byte UTF-8 character using bytes from a Buffer.\\\\nfunction utf8FillLast(buf) {\\\\n var p = this.lastTotal - this.lastNeed;\\\\n var r = utf8CheckExtraBytes(this, buf, p);\\\\n if (r !== undefined) return r;\\\\n if (this.lastNeed <= buf.length) {\\\\n buf.copy(this.lastChar, p, 0, this.lastNeed);\\\\n return this.lastChar.toString(this.encoding, 0, this.lastTotal);\\\\n }\\\\n buf.copy(this.lastChar, p, 0, buf.length);\\\\n this.lastNeed -= buf.length;\\\\n}\\\\n\\\\n// Returns all complete UTF-8 characters in a Buffer. If the Buffer ended on a\\\\n// partial character, the character's bytes are buffered until the required\\\\n// number of bytes are available.\\\\nfunction utf8Text(buf, i) {\\\\n var total = utf8CheckIncomplete(this, buf, i);\\\\n if (!this.lastNeed) return buf.toString('utf8', i);\\\\n this.lastTotal = total;\\\\n var end = buf.length - (total - this.lastNeed);\\\\n buf.copy(this.lastChar, 0, end);\\\\n return buf.toString('utf8', i, end);\\\\n}\\\\n\\\\n// For UTF-8, a replacement character for each buffered byte of a (partial)\\\\n// character needs to be added to the output.\\\\nfunction utf8End(buf) {\\\\n var r = buf && buf.length ? this.write(buf) : '';\\\\n if (this.lastNeed) return r + '\\\\\\\\ufffd'.repeat(this.lastTotal - this.lastNeed);\\\\n return r;\\\\n}\\\\n\\\\n// UTF-16LE typically needs two bytes per character, but even if we have an even\\\\n// number of bytes available, we need to check if we end on a leading/high\\\\n// surrogate. In that case, we need to wait for the next two bytes in order to\\\\n// decode the last character properly.\\\\nfunction utf16Text(buf, i) {\\\\n if ((buf.length - i) % 2 === 0) {\\\\n var r = buf.toString('utf16le', i);\\\\n if (r) {\\\\n var c = r.charCodeAt(r.length - 1);\\\\n if (c >= 0xD800 && c <= 0xDBFF) {\\\\n this.lastNeed = 2;\\\\n this.lastTotal = 4;\\\\n this.lastChar[0] = buf[buf.length - 2];\\\\n this.lastChar[1] = buf[buf.length - 1];\\\\n return r.slice(0, -1);\\\\n }\\\\n }\\\\n return r;\\\\n }\\\\n this.lastNeed = 1;\\\\n this.lastTotal = 2;\\\\n this.lastChar[0] = buf[buf.length - 1];\\\\n return buf.toString('utf16le', i, buf.length - 1);\\\\n}\\\\n\\\\n// For UTF-16LE we do not explicitly append special replacement characters if we\\\\n// end on a partial character, we simply let v8 handle that.\\\\nfunction utf16End(buf) {\\\\n var r = buf && buf.length ? this.write(buf) : '';\\\\n if (this.lastNeed) {\\\\n var end = this.lastTotal - this.lastNeed;\\\\n return r + this.lastChar.toString('utf16le', 0, end);\\\\n }\\\\n return r;\\\\n}\\\\n\\\\nfunction base64Text(buf, i) {\\\\n var n = (buf.length - i) % 3;\\\\n if (n === 0) return buf.toString('base64', i);\\\\n this.lastNeed = 3 - n;\\\\n this.lastTotal = 3;\\\\n if (n === 1) {\\\\n this.lastChar[0] = buf[buf.length - 1];\\\\n } else {\\\\n this.lastChar[0] = buf[buf.length - 2];\\\\n this.lastChar[1] = buf[buf.length - 1];\\\\n }\\\\n return buf.toString('base64', i, buf.length - n);\\\\n}\\\\n\\\\nfunction base64End(buf) {\\\\n var r = buf && buf.length ? this.write(buf) : '';\\\\n if (this.lastNeed) return r + this.lastChar.toString('base64', 0, 3 - this.lastNeed);\\\\n return r;\\\\n}\\\\n\\\\n// Pass bytes on through for single-byte encodings (e.g. ascii, latin1, hex)\\\\nfunction simpleWrite(buf) {\\\\n return buf.toString(this.encoding);\\\\n}\\\\n\\\\nfunction simpleEnd(buf) {\\\\n return buf && buf.length ? this.write(buf) : '';\\\\n}\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/string_decoder/lib/string_decoder.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/string_decoder/node_modules/safe-buffer/index.js\\\":\\n/*!***********************************************************************!*\\\\\\n !*** ./node_modules/string_decoder/node_modules/safe-buffer/index.js ***!\\n \\\\***********************************************************************/\\n/*! no static exports found */\\n/***/ (function(module, exports, __webpack_require__) {\\n\\neval(\\\"/* eslint-disable node/no-deprecated-api */\\\\nvar buffer = __webpack_require__(/*! buffer */ \\\\\\\"./node_modules/node-libs-browser/node_modules/buffer/index.js\\\\\\\")\\\\nvar Buffer = buffer.Buffer\\\\n\\\\n// alternative to using Object.keys for old browsers\\\\nfunction copyProps (src, dst) {\\\\n for (var key in src) {\\\\n dst[key] = src[key]\\\\n }\\\\n}\\\\nif (Buffer.from && Buffer.alloc && Buffer.allocUnsafe && Buffer.allocUnsafeSlow) {\\\\n module.exports = buffer\\\\n} else {\\\\n // Copy properties from require('buffer')\\\\n copyProps(buffer, exports)\\\\n exports.Buffer = SafeBuffer\\\\n}\\\\n\\\\nfunction SafeBuffer (arg, encodingOrOffset, length) {\\\\n return Buffer(arg, encodingOrOffset, length)\\\\n}\\\\n\\\\n// Copy static methods from Buffer\\\\ncopyProps(Buffer, SafeBuffer)\\\\n\\\\nSafeBuffer.from = function (arg, encodingOrOffset, length) {\\\\n if (typeof arg === 'number') {\\\\n throw new TypeError('Argument must not be a number')\\\\n }\\\\n return Buffer(arg, encodingOrOffset, length)\\\\n}\\\\n\\\\nSafeBuffer.alloc = function (size, fill, encoding) {\\\\n if (typeof size !== 'number') {\\\\n throw new TypeError('Argument must be a number')\\\\n }\\\\n var buf = Buffer(size)\\\\n if (fill !== undefined) {\\\\n if (typeof encoding === 'string') {\\\\n buf.fill(fill, encoding)\\\\n } else {\\\\n buf.fill(fill)\\\\n }\\\\n } else {\\\\n buf.fill(0)\\\\n }\\\\n return buf\\\\n}\\\\n\\\\nSafeBuffer.allocUnsafe = function (size) {\\\\n if (typeof size !== 'number') {\\\\n throw new TypeError('Argument must be a number')\\\\n }\\\\n return Buffer(size)\\\\n}\\\\n\\\\nSafeBuffer.allocUnsafeSlow = function (size) {\\\\n if (typeof size !== 'number') {\\\\n throw new TypeError('Argument must be a number')\\\\n }\\\\n return buffer.SlowBuffer(size)\\\\n}\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/string_decoder/node_modules/safe-buffer/index.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/threads-plugin/dist/loader.js?{\\\\\\\"name\\\\\\\":\\\\\\\"1\\\\\\\"}!./node_modules/geotiff/src/decoder.worker.js\\\":\\n/*!**************************************************************************************************************!*\\\\\\n !*** ./node_modules/threads-plugin/dist/loader.js?{\\\"name\\\":\\\"1\\\"}!./node_modules/geotiff/src/decoder.worker.js ***!\\n \\\\**************************************************************************************************************/\\n/*! no static exports found */\\n/***/ (function(module, exports, __webpack_require__) {\\n\\neval(\\\"module.exports = __webpack_require__.p + \\\\\\\"1.b8751dae0b6721cd3eef.worker.worker.js\\\\\\\"\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/geotiff/src/decoder.worker.js?./node_modules/threads-plugin/dist/loader.js?%7B%22name%22:%221%22%7D\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/threads/dist-esm/common.js\\\":\\n/*!*************************************************!*\\\\\\n !*** ./node_modules/threads/dist-esm/common.js ***!\\n \\\\*************************************************/\\n/*! exports provided: registerSerializer, deserialize, serialize */\\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\\n\\n\\\"use strict\\\";\\neval(\\\"__webpack_require__.r(__webpack_exports__);\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"registerSerializer\\\\\\\", function() { return registerSerializer; });\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"deserialize\\\\\\\", function() { return deserialize; });\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"serialize\\\\\\\", function() { return serialize; });\\\\n/* harmony import */ var _serializers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./serializers */ \\\\\\\"./node_modules/threads/dist-esm/serializers.js\\\\\\\");\\\\n\\\\nlet registeredSerializer = _serializers__WEBPACK_IMPORTED_MODULE_0__[\\\\\\\"DefaultSerializer\\\\\\\"];\\\\nfunction registerSerializer(serializer) {\\\\n registeredSerializer = Object(_serializers__WEBPACK_IMPORTED_MODULE_0__[\\\\\\\"extendSerializer\\\\\\\"])(registeredSerializer, serializer);\\\\n}\\\\nfunction deserialize(message) {\\\\n return registeredSerializer.deserialize(message);\\\\n}\\\\nfunction serialize(input) {\\\\n return registeredSerializer.serialize(input);\\\\n}\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/threads/dist-esm/common.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/threads/dist-esm/index.js\\\":\\n/*!************************************************!*\\\\\\n !*** ./node_modules/threads/dist-esm/index.js ***!\\n \\\\************************************************/\\n/*! exports provided: registerSerializer, Pool, spawn, Thread, isWorkerRuntime, BlobWorker, Worker, expose, DefaultSerializer, Transfer */\\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\\n\\n\\\"use strict\\\";\\neval(\\\"__webpack_require__.r(__webpack_exports__);\\\\n/* harmony import */ var _common__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./common */ \\\\\\\"./node_modules/threads/dist-esm/common.js\\\\\\\");\\\\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"registerSerializer\\\\\\\", function() { return _common__WEBPACK_IMPORTED_MODULE_0__[\\\\\\\"registerSerializer\\\\\\\"]; });\\\\n\\\\n/* harmony import */ var _master_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./master/index */ \\\\\\\"./node_modules/threads/dist-esm/master/index.js\\\\\\\");\\\\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"Pool\\\\\\\", function() { return _master_index__WEBPACK_IMPORTED_MODULE_1__[\\\\\\\"Pool\\\\\\\"]; });\\\\n\\\\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"spawn\\\\\\\", function() { return _master_index__WEBPACK_IMPORTED_MODULE_1__[\\\\\\\"spawn\\\\\\\"]; });\\\\n\\\\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"Thread\\\\\\\", function() { return _master_index__WEBPACK_IMPORTED_MODULE_1__[\\\\\\\"Thread\\\\\\\"]; });\\\\n\\\\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"isWorkerRuntime\\\\\\\", function() { return _master_index__WEBPACK_IMPORTED_MODULE_1__[\\\\\\\"isWorkerRuntime\\\\\\\"]; });\\\\n\\\\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"BlobWorker\\\\\\\", function() { return _master_index__WEBPACK_IMPORTED_MODULE_1__[\\\\\\\"BlobWorker\\\\\\\"]; });\\\\n\\\\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"Worker\\\\\\\", function() { return _master_index__WEBPACK_IMPORTED_MODULE_1__[\\\\\\\"Worker\\\\\\\"]; });\\\\n\\\\n/* harmony import */ var _worker_index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./worker/index */ \\\\\\\"./node_modules/threads/dist-esm/worker/index.js\\\\\\\");\\\\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"expose\\\\\\\", function() { return _worker_index__WEBPACK_IMPORTED_MODULE_2__[\\\\\\\"expose\\\\\\\"]; });\\\\n\\\\n/* harmony import */ var _serializers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./serializers */ \\\\\\\"./node_modules/threads/dist-esm/serializers.js\\\\\\\");\\\\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"DefaultSerializer\\\\\\\", function() { return _serializers__WEBPACK_IMPORTED_MODULE_3__[\\\\\\\"DefaultSerializer\\\\\\\"]; });\\\\n\\\\n/* harmony import */ var _transferable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./transferable */ \\\\\\\"./node_modules/threads/dist-esm/transferable.js\\\\\\\");\\\\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"Transfer\\\\\\\", function() { return _transferable__WEBPACK_IMPORTED_MODULE_4__[\\\\\\\"Transfer\\\\\\\"]; });\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/threads/dist-esm/index.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/threads/dist-esm/master/get-bundle-url.browser.js\\\":\\n/*!************************************************************************!*\\\\\\n !*** ./node_modules/threads/dist-esm/master/get-bundle-url.browser.js ***!\\n \\\\************************************************************************/\\n/*! exports provided: getBaseURL, getBundleURL */\\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\\n\\n\\\"use strict\\\";\\neval(\\\"__webpack_require__.r(__webpack_exports__);\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"getBaseURL\\\\\\\", function() { return getBaseURL; });\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"getBundleURL\\\\\\\", function() { return getBundleURLCached; });\\\\n// Source: <https://github.com/parcel-bundler/parcel/blob/master/packages/core/parcel-bundler/src/builtins/bundle-url.js>\\\\nlet bundleURL;\\\\nfunction getBundleURLCached() {\\\\n if (!bundleURL) {\\\\n bundleURL = getBundleURL();\\\\n }\\\\n return bundleURL;\\\\n}\\\\nfunction getBundleURL() {\\\\n // Attempt to find the URL of the current script and use that as the base URL\\\\n try {\\\\n throw new Error;\\\\n }\\\\n catch (err) {\\\\n const matches = (\\\\\\\"\\\\\\\" + err.stack).match(/(https?|file|ftp|chrome-extension|moz-extension):\\\\\\\\/\\\\\\\\/[^)\\\\\\\\n]+/g);\\\\n if (matches) {\\\\n return getBaseURL(matches[0]);\\\\n }\\\\n }\\\\n return \\\\\\\"/\\\\\\\";\\\\n}\\\\nfunction getBaseURL(url) {\\\\n return (\\\\\\\"\\\\\\\" + url).replace(/^((?:https?|file|ftp|chrome-extension|moz-extension):\\\\\\\\/\\\\\\\\/.+)?\\\\\\\\/[^/]+(?:\\\\\\\\?.*)?$/, '$1') + '/';\\\\n}\\\\n\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/threads/dist-esm/master/get-bundle-url.browser.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/threads/dist-esm/master/implementation.browser.js\\\":\\n/*!************************************************************************!*\\\\\\n !*** ./node_modules/threads/dist-esm/master/implementation.browser.js ***!\\n \\\\************************************************************************/\\n/*! exports provided: defaultPoolSize, getWorkerImplementation, isWorkerRuntime */\\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\\n\\n\\\"use strict\\\";\\neval(\\\"__webpack_require__.r(__webpack_exports__);\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"defaultPoolSize\\\\\\\", function() { return defaultPoolSize; });\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"getWorkerImplementation\\\\\\\", function() { return getWorkerImplementation; });\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"isWorkerRuntime\\\\\\\", function() { return isWorkerRuntime; });\\\\n/* harmony import */ var _get_bundle_url_browser__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./get-bundle-url.browser */ \\\\\\\"./node_modules/threads/dist-esm/master/get-bundle-url.browser.js\\\\\\\");\\\\n// tslint:disable max-classes-per-file\\\\n\\\\nconst defaultPoolSize = typeof navigator !== \\\\\\\"undefined\\\\\\\" && navigator.hardwareConcurrency\\\\n ? navigator.hardwareConcurrency\\\\n : 4;\\\\nconst isAbsoluteURL = (value) => /^[a-zA-Z][a-zA-Z\\\\\\\\d+\\\\\\\\-.]*:/.test(value);\\\\nfunction createSourceBlobURL(code) {\\\\n const blob = new Blob([code], { type: \\\\\\\"application/javascript\\\\\\\" });\\\\n return URL.createObjectURL(blob);\\\\n}\\\\nfunction selectWorkerImplementation() {\\\\n if (typeof Worker === \\\\\\\"undefined\\\\\\\") {\\\\n // Might happen on Safari, for instance\\\\n // The idea is to only fail if the constructor is actually used\\\\n return class NoWebWorker {\\\\n constructor() {\\\\n throw Error(\\\\\\\"No web worker implementation available. You might have tried to spawn a worker within a worker in a browser that doesn't support workers in workers.\\\\\\\");\\\\n }\\\\n };\\\\n }\\\\n class WebWorker extends Worker {\\\\n constructor(url, options) {\\\\n var _a, _b;\\\\n if (typeof url === \\\\\\\"string\\\\\\\" && options && options._baseURL) {\\\\n url = new URL(url, options._baseURL);\\\\n }\\\\n else if (typeof url === \\\\\\\"string\\\\\\\" && !isAbsoluteURL(url) && Object(_get_bundle_url_browser__WEBPACK_IMPORTED_MODULE_0__[\\\\\\\"getBundleURL\\\\\\\"])().match(/^file:\\\\\\\\/\\\\\\\\//i)) {\\\\n url = new URL(url, Object(_get_bundle_url_browser__WEBPACK_IMPORTED_MODULE_0__[\\\\\\\"getBundleURL\\\\\\\"])().replace(/\\\\\\\\/[^\\\\\\\\/]+$/, \\\\\\\"/\\\\\\\"));\\\\n if ((_a = options === null || options === void 0 ? void 0 : options.CORSWorkaround) !== null && _a !== void 0 ? _a : true) {\\\\n url = createSourceBlobURL(`importScripts(${JSON.stringify(url)});`);\\\\n }\\\\n }\\\\n if (typeof url === \\\\\\\"string\\\\\\\" && isAbsoluteURL(url)) {\\\\n // Create source code blob loading JS file via `importScripts()`\\\\n // to circumvent worker CORS restrictions\\\\n if ((_b = options === null || options === void 0 ? void 0 : options.CORSWorkaround) !== null && _b !== void 0 ? _b : true) {\\\\n url = createSourceBlobURL(`importScripts(${JSON.stringify(url)});`);\\\\n }\\\\n }\\\\n super(url, options);\\\\n }\\\\n }\\\\n class BlobWorker extends WebWorker {\\\\n constructor(blob, options) {\\\\n const url = window.URL.createObjectURL(blob);\\\\n super(url, options);\\\\n }\\\\n static fromText(source, options) {\\\\n const blob = new window.Blob([source], { type: \\\\\\\"text/javascript\\\\\\\" });\\\\n return new BlobWorker(blob, options);\\\\n }\\\\n }\\\\n return {\\\\n blob: BlobWorker,\\\\n default: WebWorker\\\\n };\\\\n}\\\\nlet implementation;\\\\nfunction getWorkerImplementation() {\\\\n if (!implementation) {\\\\n implementation = selectWorkerImplementation();\\\\n }\\\\n return implementation;\\\\n}\\\\nfunction isWorkerRuntime() {\\\\n const isWindowContext = typeof self !== \\\\\\\"undefined\\\\\\\" && typeof Window !== \\\\\\\"undefined\\\\\\\" && self instanceof Window;\\\\n return typeof self !== \\\\\\\"undefined\\\\\\\" && self.postMessage && !isWindowContext ? true : false;\\\\n}\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/threads/dist-esm/master/implementation.browser.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/threads/dist-esm/master/index.js\\\":\\n/*!*******************************************************!*\\\\\\n !*** ./node_modules/threads/dist-esm/master/index.js ***!\\n \\\\*******************************************************/\\n/*! exports provided: Pool, spawn, Thread, isWorkerRuntime, BlobWorker, Worker */\\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\\n\\n\\\"use strict\\\";\\neval(\\\"__webpack_require__.r(__webpack_exports__);\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"BlobWorker\\\\\\\", function() { return BlobWorker; });\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"Worker\\\\\\\", function() { return Worker; });\\\\n/* harmony import */ var _implementation__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./implementation */ \\\\\\\"./node_modules/threads/dist-esm/master/implementation.browser.js\\\\\\\");\\\\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"isWorkerRuntime\\\\\\\", function() { return _implementation__WEBPACK_IMPORTED_MODULE_0__[\\\\\\\"isWorkerRuntime\\\\\\\"]; });\\\\n\\\\n/* harmony import */ var _pool__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./pool */ \\\\\\\"./node_modules/threads/dist-esm/master/pool.js\\\\\\\");\\\\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"Pool\\\\\\\", function() { return _pool__WEBPACK_IMPORTED_MODULE_1__[\\\\\\\"Pool\\\\\\\"]; });\\\\n\\\\n/* harmony import */ var _spawn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./spawn */ \\\\\\\"./node_modules/threads/dist-esm/master/spawn.js\\\\\\\");\\\\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"spawn\\\\\\\", function() { return _spawn__WEBPACK_IMPORTED_MODULE_2__[\\\\\\\"spawn\\\\\\\"]; });\\\\n\\\\n/* harmony import */ var _thread__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./thread */ \\\\\\\"./node_modules/threads/dist-esm/master/thread.js\\\\\\\");\\\\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"Thread\\\\\\\", function() { return _thread__WEBPACK_IMPORTED_MODULE_3__[\\\\\\\"Thread\\\\\\\"]; });\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n/** Separate class to spawn workers from source code blobs or strings. */\\\\nconst BlobWorker = Object(_implementation__WEBPACK_IMPORTED_MODULE_0__[\\\\\\\"getWorkerImplementation\\\\\\\"])().blob;\\\\n/** Worker implementation. Either web worker or a node.js Worker class. */\\\\nconst Worker = Object(_implementation__WEBPACK_IMPORTED_MODULE_0__[\\\\\\\"getWorkerImplementation\\\\\\\"])().default;\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/threads/dist-esm/master/index.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/threads/dist-esm/master/invocation-proxy.js\\\":\\n/*!******************************************************************!*\\\\\\n !*** ./node_modules/threads/dist-esm/master/invocation-proxy.js ***!\\n \\\\******************************************************************/\\n/*! exports provided: createProxyFunction, createProxyModule */\\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\\n\\n\\\"use strict\\\";\\neval(\\\"__webpack_require__.r(__webpack_exports__);\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"createProxyFunction\\\\\\\", function() { return createProxyFunction; });\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"createProxyModule\\\\\\\", function() { return createProxyModule; });\\\\n/* harmony import */ var debug__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! debug */ \\\\\\\"./node_modules/threads/node_modules/debug/src/browser.js\\\\\\\");\\\\n/* harmony import */ var debug__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(debug__WEBPACK_IMPORTED_MODULE_0__);\\\\n/* harmony import */ var observable_fns__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! observable-fns */ \\\\\\\"./node_modules/observable-fns/dist.esm/index.js\\\\\\\");\\\\n/* harmony import */ var _common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common */ \\\\\\\"./node_modules/threads/dist-esm/common.js\\\\\\\");\\\\n/* harmony import */ var _observable_promise__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../observable-promise */ \\\\\\\"./node_modules/threads/dist-esm/observable-promise.js\\\\\\\");\\\\n/* harmony import */ var _transferable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../transferable */ \\\\\\\"./node_modules/threads/dist-esm/transferable.js\\\\\\\");\\\\n/* harmony import */ var _types_messages__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../types/messages */ \\\\\\\"./node_modules/threads/dist-esm/types/messages.js\\\\\\\");\\\\n/*\\\\n * This source file contains the code for proxying calls in the master thread to calls in the workers\\\\n * by `.postMessage()`-ing.\\\\n *\\\\n * Keep in mind that this code can make or break the program's performance! Need to optimize more\\u2026\\\\n */\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\nconst debugMessages = debug__WEBPACK_IMPORTED_MODULE_0___default()(\\\\\\\"threads:master:messages\\\\\\\");\\\\nlet nextJobUID = 1;\\\\nconst dedupe = (array) => Array.from(new Set(array));\\\\nconst isJobErrorMessage = (data) => data && data.type === _types_messages__WEBPACK_IMPORTED_MODULE_5__[\\\\\\\"WorkerMessageType\\\\\\\"].error;\\\\nconst isJobResultMessage = (data) => data && data.type === _types_messages__WEBPACK_IMPORTED_MODULE_5__[\\\\\\\"WorkerMessageType\\\\\\\"].result;\\\\nconst isJobStartMessage = (data) => data && data.type === _types_messages__WEBPACK_IMPORTED_MODULE_5__[\\\\\\\"WorkerMessageType\\\\\\\"].running;\\\\nfunction createObservableForJob(worker, jobUID) {\\\\n return new observable_fns__WEBPACK_IMPORTED_MODULE_1__[\\\\\\\"Observable\\\\\\\"](observer => {\\\\n let asyncType;\\\\n const messageHandler = ((event) => {\\\\n debugMessages(\\\\\\\"Message from worker:\\\\\\\", event.data);\\\\n if (!event.data || event.data.uid !== jobUID)\\\\n return;\\\\n if (isJobStartMessage(event.data)) {\\\\n asyncType = event.data.resultType;\\\\n }\\\\n else if (isJobResultMessage(event.data)) {\\\\n if (asyncType === \\\\\\\"promise\\\\\\\") {\\\\n if (typeof event.data.payload !== \\\\\\\"undefined\\\\\\\") {\\\\n observer.next(Object(_common__WEBPACK_IMPORTED_MODULE_2__[\\\\\\\"deserialize\\\\\\\"])(event.data.payload));\\\\n }\\\\n observer.complete();\\\\n worker.removeEventListener(\\\\\\\"message\\\\\\\", messageHandler);\\\\n }\\\\n else {\\\\n if (event.data.payload) {\\\\n observer.next(Object(_common__WEBPACK_IMPORTED_MODULE_2__[\\\\\\\"deserialize\\\\\\\"])(event.data.payload));\\\\n }\\\\n if (event.data.complete) {\\\\n observer.complete();\\\\n worker.removeEventListener(\\\\\\\"message\\\\\\\", messageHandler);\\\\n }\\\\n }\\\\n }\\\\n else if (isJobErrorMessage(event.data)) {\\\\n const error = Object(_common__WEBPACK_IMPORTED_MODULE_2__[\\\\\\\"deserialize\\\\\\\"])(event.data.error);\\\\n if (asyncType === \\\\\\\"promise\\\\\\\" || !asyncType) {\\\\n observer.error(error);\\\\n }\\\\n else {\\\\n observer.error(error);\\\\n }\\\\n worker.removeEventListener(\\\\\\\"message\\\\\\\", messageHandler);\\\\n }\\\\n });\\\\n worker.addEventListener(\\\\\\\"message\\\\\\\", messageHandler);\\\\n return () => {\\\\n if (asyncType === \\\\\\\"observable\\\\\\\" || !asyncType) {\\\\n const cancelMessage = {\\\\n type: _types_messages__WEBPACK_IMPORTED_MODULE_5__[\\\\\\\"MasterMessageType\\\\\\\"].cancel,\\\\n uid: jobUID\\\\n };\\\\n worker.postMessage(cancelMessage);\\\\n }\\\\n worker.removeEventListener(\\\\\\\"message\\\\\\\", messageHandler);\\\\n };\\\\n });\\\\n}\\\\nfunction prepareArguments(rawArgs) {\\\\n if (rawArgs.length === 0) {\\\\n // Exit early if possible\\\\n return {\\\\n args: [],\\\\n transferables: []\\\\n };\\\\n }\\\\n const args = [];\\\\n const transferables = [];\\\\n for (const arg of rawArgs) {\\\\n if (Object(_transferable__WEBPACK_IMPORTED_MODULE_4__[\\\\\\\"isTransferDescriptor\\\\\\\"])(arg)) {\\\\n args.push(Object(_common__WEBPACK_IMPORTED_MODULE_2__[\\\\\\\"serialize\\\\\\\"])(arg.send));\\\\n transferables.push(...arg.transferables);\\\\n }\\\\n else {\\\\n args.push(Object(_common__WEBPACK_IMPORTED_MODULE_2__[\\\\\\\"serialize\\\\\\\"])(arg));\\\\n }\\\\n }\\\\n return {\\\\n args,\\\\n transferables: transferables.length === 0 ? transferables : dedupe(transferables)\\\\n };\\\\n}\\\\nfunction createProxyFunction(worker, method) {\\\\n return ((...rawArgs) => {\\\\n const uid = nextJobUID++;\\\\n const { args, transferables } = prepareArguments(rawArgs);\\\\n const runMessage = {\\\\n type: _types_messages__WEBPACK_IMPORTED_MODULE_5__[\\\\\\\"MasterMessageType\\\\\\\"].run,\\\\n uid,\\\\n method,\\\\n args\\\\n };\\\\n debugMessages(\\\\\\\"Sending command to run function to worker:\\\\\\\", runMessage);\\\\n try {\\\\n worker.postMessage(runMessage, transferables);\\\\n }\\\\n catch (error) {\\\\n return _observable_promise__WEBPACK_IMPORTED_MODULE_3__[\\\\\\\"ObservablePromise\\\\\\\"].from(Promise.reject(error));\\\\n }\\\\n return _observable_promise__WEBPACK_IMPORTED_MODULE_3__[\\\\\\\"ObservablePromise\\\\\\\"].from(Object(observable_fns__WEBPACK_IMPORTED_MODULE_1__[\\\\\\\"multicast\\\\\\\"])(createObservableForJob(worker, uid)));\\\\n });\\\\n}\\\\nfunction createProxyModule(worker, methodNames) {\\\\n const proxy = {};\\\\n for (const methodName of methodNames) {\\\\n proxy[methodName] = createProxyFunction(worker, methodName);\\\\n }\\\\n return proxy;\\\\n}\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/threads/dist-esm/master/invocation-proxy.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/threads/dist-esm/master/pool-types.js\\\":\\n/*!************************************************************!*\\\\\\n !*** ./node_modules/threads/dist-esm/master/pool-types.js ***!\\n \\\\************************************************************/\\n/*! exports provided: PoolEventType */\\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\\n\\n\\\"use strict\\\";\\neval(\\\"__webpack_require__.r(__webpack_exports__);\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"PoolEventType\\\\\\\", function() { return PoolEventType; });\\\\n/** Pool event type. Specifies the type of each `PoolEvent`. */\\\\nvar PoolEventType;\\\\n(function (PoolEventType) {\\\\n PoolEventType[\\\\\\\"initialized\\\\\\\"] = \\\\\\\"initialized\\\\\\\";\\\\n PoolEventType[\\\\\\\"taskCanceled\\\\\\\"] = \\\\\\\"taskCanceled\\\\\\\";\\\\n PoolEventType[\\\\\\\"taskCompleted\\\\\\\"] = \\\\\\\"taskCompleted\\\\\\\";\\\\n PoolEventType[\\\\\\\"taskFailed\\\\\\\"] = \\\\\\\"taskFailed\\\\\\\";\\\\n PoolEventType[\\\\\\\"taskQueued\\\\\\\"] = \\\\\\\"taskQueued\\\\\\\";\\\\n PoolEventType[\\\\\\\"taskQueueDrained\\\\\\\"] = \\\\\\\"taskQueueDrained\\\\\\\";\\\\n PoolEventType[\\\\\\\"taskStart\\\\\\\"] = \\\\\\\"taskStart\\\\\\\";\\\\n PoolEventType[\\\\\\\"terminated\\\\\\\"] = \\\\\\\"terminated\\\\\\\";\\\\n})(PoolEventType || (PoolEventType = {}));\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/threads/dist-esm/master/pool-types.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/threads/dist-esm/master/pool.js\\\":\\n/*!******************************************************!*\\\\\\n !*** ./node_modules/threads/dist-esm/master/pool.js ***!\\n \\\\******************************************************/\\n/*! exports provided: PoolEventType, Thread, Pool */\\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\\n\\n\\\"use strict\\\";\\neval(\\\"__webpack_require__.r(__webpack_exports__);\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"Pool\\\\\\\", function() { return Pool; });\\\\n/* harmony import */ var debug__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! debug */ \\\\\\\"./node_modules/threads/node_modules/debug/src/browser.js\\\\\\\");\\\\n/* harmony import */ var debug__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(debug__WEBPACK_IMPORTED_MODULE_0__);\\\\n/* harmony import */ var observable_fns__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! observable-fns */ \\\\\\\"./node_modules/observable-fns/dist.esm/index.js\\\\\\\");\\\\n/* harmony import */ var _ponyfills__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../ponyfills */ \\\\\\\"./node_modules/threads/dist-esm/ponyfills.js\\\\\\\");\\\\n/* harmony import */ var _implementation__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./implementation */ \\\\\\\"./node_modules/threads/dist-esm/master/implementation.browser.js\\\\\\\");\\\\n/* harmony import */ var _pool_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./pool-types */ \\\\\\\"./node_modules/threads/dist-esm/master/pool-types.js\\\\\\\");\\\\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"PoolEventType\\\\\\\", function() { return _pool_types__WEBPACK_IMPORTED_MODULE_4__[\\\\\\\"PoolEventType\\\\\\\"]; });\\\\n\\\\n/* harmony import */ var _thread__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./thread */ \\\\\\\"./node_modules/threads/dist-esm/master/thread.js\\\\\\\");\\\\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"Thread\\\\\\\", function() { return _thread__WEBPACK_IMPORTED_MODULE_5__[\\\\\\\"Thread\\\\\\\"]; });\\\\n\\\\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\\\\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\\\\n return new (P || (P = Promise))(function (resolve, reject) {\\\\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\\\\n function rejected(value) { try { step(generator[\\\\\\\"throw\\\\\\\"](value)); } catch (e) { reject(e); } }\\\\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\\\\n step((generator = generator.apply(thisArg, _arguments || [])).next());\\\\n });\\\\n};\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\nlet nextPoolID = 1;\\\\nfunction createArray(size) {\\\\n const array = [];\\\\n for (let index = 0; index < size; index++) {\\\\n array.push(index);\\\\n }\\\\n return array;\\\\n}\\\\nfunction delay(ms) {\\\\n return new Promise(resolve => setTimeout(resolve, ms));\\\\n}\\\\nfunction flatMap(array, mapper) {\\\\n return array.reduce((flattened, element) => [...flattened, ...mapper(element)], []);\\\\n}\\\\nfunction slugify(text) {\\\\n return text.replace(/\\\\\\\\W/g, \\\\\\\" \\\\\\\").trim().replace(/\\\\\\\\s+/g, \\\\\\\"-\\\\\\\");\\\\n}\\\\nfunction spawnWorkers(spawnWorker, count) {\\\\n return createArray(count).map(() => ({\\\\n init: spawnWorker(),\\\\n runningTasks: []\\\\n }));\\\\n}\\\\nclass WorkerPool {\\\\n constructor(spawnWorker, optionsOrSize) {\\\\n this.eventSubject = new observable_fns__WEBPACK_IMPORTED_MODULE_1__[\\\\\\\"Subject\\\\\\\"]();\\\\n this.initErrors = [];\\\\n this.isClosing = false;\\\\n this.nextTaskID = 1;\\\\n this.taskQueue = [];\\\\n const options = typeof optionsOrSize === \\\\\\\"number\\\\\\\"\\\\n ? { size: optionsOrSize }\\\\n : optionsOrSize || {};\\\\n const { size = _implementation__WEBPACK_IMPORTED_MODULE_3__[\\\\\\\"defaultPoolSize\\\\\\\"] } = options;\\\\n this.debug = debug__WEBPACK_IMPORTED_MODULE_0___default()(`threads:pool:${slugify(options.name || String(nextPoolID++))}`);\\\\n this.options = options;\\\\n this.workers = spawnWorkers(spawnWorker, size);\\\\n this.eventObservable = Object(observable_fns__WEBPACK_IMPORTED_MODULE_1__[\\\\\\\"multicast\\\\\\\"])(observable_fns__WEBPACK_IMPORTED_MODULE_1__[\\\\\\\"Observable\\\\\\\"].from(this.eventSubject));\\\\n Promise.all(this.workers.map(worker => worker.init)).then(() => this.eventSubject.next({\\\\n type: _pool_types__WEBPACK_IMPORTED_MODULE_4__[\\\\\\\"PoolEventType\\\\\\\"].initialized,\\\\n size: this.workers.length\\\\n }), error => {\\\\n this.debug(\\\\\\\"Error while initializing pool worker:\\\\\\\", error);\\\\n this.eventSubject.error(error);\\\\n this.initErrors.push(error);\\\\n });\\\\n }\\\\n findIdlingWorker() {\\\\n const { concurrency = 1 } = this.options;\\\\n return this.workers.find(worker => worker.runningTasks.length < concurrency);\\\\n }\\\\n runPoolTask(worker, task) {\\\\n return __awaiter(this, void 0, void 0, function* () {\\\\n const workerID = this.workers.indexOf(worker) + 1;\\\\n this.debug(`Running task #${task.id} on worker #${workerID}...`);\\\\n this.eventSubject.next({\\\\n type: _pool_types__WEBPACK_IMPORTED_MODULE_4__[\\\\\\\"PoolEventType\\\\\\\"].taskStart,\\\\n taskID: task.id,\\\\n workerID\\\\n });\\\\n try {\\\\n const returnValue = yield task.run(yield worker.init);\\\\n this.debug(`Task #${task.id} completed successfully`);\\\\n this.eventSubject.next({\\\\n type: _pool_types__WEBPACK_IMPORTED_MODULE_4__[\\\\\\\"PoolEventType\\\\\\\"].taskCompleted,\\\\n returnValue,\\\\n taskID: task.id,\\\\n workerID\\\\n });\\\\n }\\\\n catch (error) {\\\\n this.debug(`Task #${task.id} failed`);\\\\n this.eventSubject.next({\\\\n type: _pool_types__WEBPACK_IMPORTED_MODULE_4__[\\\\\\\"PoolEventType\\\\\\\"].taskFailed,\\\\n taskID: task.id,\\\\n error,\\\\n workerID\\\\n });\\\\n }\\\\n });\\\\n }\\\\n run(worker, task) {\\\\n return __awaiter(this, void 0, void 0, function* () {\\\\n const runPromise = (() => __awaiter(this, void 0, void 0, function* () {\\\\n const removeTaskFromWorkersRunningTasks = () => {\\\\n worker.runningTasks = worker.runningTasks.filter(someRunPromise => someRunPromise !== runPromise);\\\\n };\\\\n // Defer task execution by one tick to give handlers time to subscribe\\\\n yield delay(0);\\\\n try {\\\\n yield this.runPoolTask(worker, task);\\\\n }\\\\n finally {\\\\n removeTaskFromWorkersRunningTasks();\\\\n if (!this.isClosing) {\\\\n this.scheduleWork();\\\\n }\\\\n }\\\\n }))();\\\\n worker.runningTasks.push(runPromise);\\\\n });\\\\n }\\\\n scheduleWork() {\\\\n this.debug(`Attempt de-queueing a task in order to run it...`);\\\\n const availableWorker = this.findIdlingWorker();\\\\n if (!availableWorker)\\\\n return;\\\\n const nextTask = this.taskQueue.shift();\\\\n if (!nextTask) {\\\\n this.debug(`Task queue is empty`);\\\\n this.eventSubject.next({ type: _pool_types__WEBPACK_IMPORTED_MODULE_4__[\\\\\\\"PoolEventType\\\\\\\"].taskQueueDrained });\\\\n return;\\\\n }\\\\n this.run(availableWorker, nextTask);\\\\n }\\\\n taskCompletion(taskID) {\\\\n return new Promise((resolve, reject) => {\\\\n const eventSubscription = this.events().subscribe(event => {\\\\n if (event.type === _pool_types__WEBPACK_IMPORTED_MODULE_4__[\\\\\\\"PoolEventType\\\\\\\"].taskCompleted && event.taskID === taskID) {\\\\n eventSubscription.unsubscribe();\\\\n resolve(event.returnValue);\\\\n }\\\\n else if (event.type === _pool_types__WEBPACK_IMPORTED_MODULE_4__[\\\\\\\"PoolEventType\\\\\\\"].taskFailed && event.taskID === taskID) {\\\\n eventSubscription.unsubscribe();\\\\n reject(event.error);\\\\n }\\\\n else if (event.type === _pool_types__WEBPACK_IMPORTED_MODULE_4__[\\\\\\\"PoolEventType\\\\\\\"].terminated) {\\\\n eventSubscription.unsubscribe();\\\\n reject(Error(\\\\\\\"Pool has been terminated before task was run.\\\\\\\"));\\\\n }\\\\n });\\\\n });\\\\n }\\\\n settled(allowResolvingImmediately = false) {\\\\n return __awaiter(this, void 0, void 0, function* () {\\\\n const getCurrentlyRunningTasks = () => flatMap(this.workers, worker => worker.runningTasks);\\\\n const taskFailures = [];\\\\n const failureSubscription = this.eventObservable.subscribe(event => {\\\\n if (event.type === _pool_types__WEBPACK_IMPORTED_MODULE_4__[\\\\\\\"PoolEventType\\\\\\\"].taskFailed) {\\\\n taskFailures.push(event.error);\\\\n }\\\\n });\\\\n if (this.initErrors.length > 0) {\\\\n return Promise.reject(this.initErrors[0]);\\\\n }\\\\n if (allowResolvingImmediately && this.taskQueue.length === 0) {\\\\n yield Object(_ponyfills__WEBPACK_IMPORTED_MODULE_2__[\\\\\\\"allSettled\\\\\\\"])(getCurrentlyRunningTasks());\\\\n return taskFailures;\\\\n }\\\\n yield new Promise((resolve, reject) => {\\\\n const subscription = this.eventObservable.subscribe({\\\\n next(event) {\\\\n if (event.type === _pool_types__WEBPACK_IMPORTED_MODULE_4__[\\\\\\\"PoolEventType\\\\\\\"].taskQueueDrained) {\\\\n subscription.unsubscribe();\\\\n resolve(void 0);\\\\n }\\\\n },\\\\n error: reject // make a pool-wide error reject the completed() result promise\\\\n });\\\\n });\\\\n yield Object(_ponyfills__WEBPACK_IMPORTED_MODULE_2__[\\\\\\\"allSettled\\\\\\\"])(getCurrentlyRunningTasks());\\\\n failureSubscription.unsubscribe();\\\\n return taskFailures;\\\\n });\\\\n }\\\\n completed(allowResolvingImmediately = false) {\\\\n return __awaiter(this, void 0, void 0, function* () {\\\\n const settlementPromise = this.settled(allowResolvingImmediately);\\\\n const earlyExitPromise = new Promise((resolve, reject) => {\\\\n const subscription = this.eventObservable.subscribe({\\\\n next(event) {\\\\n if (event.type === _pool_types__WEBPACK_IMPORTED_MODULE_4__[\\\\\\\"PoolEventType\\\\\\\"].taskQueueDrained) {\\\\n subscription.unsubscribe();\\\\n resolve(settlementPromise);\\\\n }\\\\n else if (event.type === _pool_types__WEBPACK_IMPORTED_MODULE_4__[\\\\\\\"PoolEventType\\\\\\\"].taskFailed) {\\\\n subscription.unsubscribe();\\\\n reject(event.error);\\\\n }\\\\n },\\\\n error: reject // make a pool-wide error reject the completed() result promise\\\\n });\\\\n });\\\\n const errors = yield Promise.race([\\\\n settlementPromise,\\\\n earlyExitPromise\\\\n ]);\\\\n if (errors.length > 0) {\\\\n throw errors[0];\\\\n }\\\\n });\\\\n }\\\\n events() {\\\\n return this.eventObservable;\\\\n }\\\\n queue(taskFunction) {\\\\n const { maxQueuedJobs = Infinity } = this.options;\\\\n if (this.isClosing) {\\\\n throw Error(`Cannot schedule pool tasks after terminate() has been called.`);\\\\n }\\\\n if (this.initErrors.length > 0) {\\\\n throw this.initErrors[0];\\\\n }\\\\n const taskID = this.nextTaskID++;\\\\n const taskCompletion = this.taskCompletion(taskID);\\\\n taskCompletion.catch((error) => {\\\\n // Prevent unhandled rejections here as we assume the user will use\\\\n // `pool.completed()`, `pool.settled()` or `task.catch()` to handle errors\\\\n this.debug(`Task #${taskID} errored:`, error);\\\\n });\\\\n const task = {\\\\n id: taskID,\\\\n run: taskFunction,\\\\n cancel: () => {\\\\n if (this.taskQueue.indexOf(task) === -1)\\\\n return;\\\\n this.taskQueue = this.taskQueue.filter(someTask => someTask !== task);\\\\n this.eventSubject.next({\\\\n type: _pool_types__WEBPACK_IMPORTED_MODULE_4__[\\\\\\\"PoolEventType\\\\\\\"].taskCanceled,\\\\n taskID: task.id\\\\n });\\\\n },\\\\n then: taskCompletion.then.bind(taskCompletion)\\\\n };\\\\n if (this.taskQueue.length >= maxQueuedJobs) {\\\\n throw Error(\\\\\\\"Maximum number of pool tasks queued. Refusing to queue another one.\\\\\\\\n\\\\\\\" +\\\\n \\\\\\\"This usually happens for one of two reasons: We are either at peak \\\\\\\" +\\\\n \\\\\\\"workload right now or some tasks just won't finish, thus blocking the pool.\\\\\\\");\\\\n }\\\\n this.debug(`Queueing task #${task.id}...`);\\\\n this.taskQueue.push(task);\\\\n this.eventSubject.next({\\\\n type: _pool_types__WEBPACK_IMPORTED_MODULE_4__[\\\\\\\"PoolEventType\\\\\\\"].taskQueued,\\\\n taskID: task.id\\\\n });\\\\n this.scheduleWork();\\\\n return task;\\\\n }\\\\n terminate(force) {\\\\n return __awaiter(this, void 0, void 0, function* () {\\\\n this.isClosing = true;\\\\n if (!force) {\\\\n yield this.completed(true);\\\\n }\\\\n this.eventSubject.next({\\\\n type: _pool_types__WEBPACK_IMPORTED_MODULE_4__[\\\\\\\"PoolEventType\\\\\\\"].terminated,\\\\n remainingQueue: [...this.taskQueue]\\\\n });\\\\n this.eventSubject.complete();\\\\n yield Promise.all(this.workers.map((worker) => __awaiter(this, void 0, void 0, function* () { return _thread__WEBPACK_IMPORTED_MODULE_5__[\\\\\\\"Thread\\\\\\\"].terminate(yield worker.init); })));\\\\n });\\\\n }\\\\n}\\\\nWorkerPool.EventType = _pool_types__WEBPACK_IMPORTED_MODULE_4__[\\\\\\\"PoolEventType\\\\\\\"];\\\\n/**\\\\n * Thread pool constructor. Creates a new pool and spawns its worker threads.\\\\n */\\\\nfunction PoolConstructor(spawnWorker, optionsOrSize) {\\\\n // The function exists only so we don't need to use `new` to create a pool (we still can, though).\\\\n // If the Pool is a class or not is an implementation detail that should not concern the user.\\\\n return new WorkerPool(spawnWorker, optionsOrSize);\\\\n}\\\\nPoolConstructor.EventType = _pool_types__WEBPACK_IMPORTED_MODULE_4__[\\\\\\\"PoolEventType\\\\\\\"];\\\\n/**\\\\n * Thread pool constructor. Creates a new pool and spawns its worker threads.\\\\n */\\\\nconst Pool = PoolConstructor;\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/threads/dist-esm/master/pool.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/threads/dist-esm/master/spawn.js\\\":\\n/*!*******************************************************!*\\\\\\n !*** ./node_modules/threads/dist-esm/master/spawn.js ***!\\n \\\\*******************************************************/\\n/*! exports provided: spawn */\\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\\n\\n\\\"use strict\\\";\\neval(\\\"__webpack_require__.r(__webpack_exports__);\\\\n/* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"spawn\\\\\\\", function() { return spawn; });\\\\n/* harmony import */ var debug__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! debug */ \\\\\\\"./node_modules/threads/node_modules/debug/src/browser.js\\\\\\\");\\\\n/* harmony import */ var debug__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(debug__WEBPACK_IMPORTED_MODULE_0__);\\\\n/* harmony import */ var observable_fns__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! observable-fns */ \\\\\\\"./node_modules/observable-fns/dist.esm/index.js\\\\\\\");\\\\n/* harmony import */ var _common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common */ \\\\\\\"./node_modules/threads/dist-esm/common.js\\\\\\\");\\\\n/* harmony import */ var _promise__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../promise */ \\\\\\\"./node_modules/threads/dist-esm/promise.js\\\\\\\");\\\\n/* harmony import */ var _symbols__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../symbols */ \\\\\\\"./node_modules/threads/dist-esm/symbols.js\\\\\\\");\\\\n/* harmony import */ var _types_master__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../types/master */ \\\\\\\"./node_modules/threads/dist-esm/types/master.js\\\\\\\");\\\\n/* harmony import */ var _invocation_proxy__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./invocation-proxy */ \\\\\\\"./node_modules/threads/dist-esm/master/invocation-proxy.js\\\\\\\");\\\\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\\\\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\\\\n return new (P || (P = Promise))(function (resolve, reject) {\\\\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\\\\n function rejected(value) { try { step(generator[\\\\\\\"throw\\\\\\\"](value)); } catch (e) { reject(e); } }\\\\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\\\\n step((generator = generator.apply(thisArg, _arguments || [])).next());\\\\n });\\\\n};\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\nconst debugMessages = debug__WEBPACK_IMPORTED_MODULE_0___default()(\\\\\\\"threads:master:messages\\\\\\\");\\\\nconst debugSpawn = debug__WEBPACK_IMPORTED_MODULE_0___default()(\\\\\\\"threads:master:spawn\\\\\\\");\\\\nconst debugThreadUtils = debug__WEBPACK_IMPORTED_MODULE_0___default()(\\\\\\\"threads:master:thread-utils\\\\\\\");\\\\nconst isInitMessage = (data) => data && data.type === \\\\\\\"init\\\\\\\";\\\\nconst isUncaughtErrorMessage = (data) => data && data.type === \\\\\\\"uncaughtError\\\\\\\";\\\\nconst initMessageTimeout = typeof process !== \\\\\\\"undefined\\\\\\\" && process.env.THREADS_WORKER_INIT_TIMEOUT\\\\n ? Number.parseInt(process.env.THREADS_WORKER_INIT_TIMEOUT, 10)\\\\n : 10000;\\\\nfunction withTimeout(promise, timeoutInMs, errorMessage) {\\\\n return __awaiter(this, void 0, void 0, function* () {\\\\n let timeoutHandle;\\\\n const timeout = new Promise((resolve, reject) => {\\\\n timeoutHandle = setTimeout(() => reject(Error(errorMessage)), timeoutInMs);\\\\n });\\\\n const result = yield Promise.race([\\\\n promise,\\\\n timeout\\\\n ]);\\\\n clearTimeout(timeoutHandle);\\\\n return result;\\\\n });\\\\n}\\\\nfunction receiveInitMessage(worker) {\\\\n return new Promise((resolve, reject) => {\\\\n const messageHandler = ((event) => {\\\\n debugMessages(\\\\\\\"Message from worker before finishing initialization:\\\\\\\", event.data);\\\\n if (isInitMessage(event.data)) {\\\\n worker.removeEventListener(\\\\\\\"message\\\\\\\", messageHandler);\\\\n resolve(event.data);\\\\n }\\\\n else if (isUncaughtErrorMessage(event.data)) {\\\\n worker.removeEventListener(\\\\\\\"message\\\\\\\", messageHandler);\\\\n reject(Object(_common__WEBPACK_IMPORTED_MODULE_2__[\\\\\\\"deserialize\\\\\\\"])(event.data.error));\\\\n }\\\\n });\\\\n worker.addEventListener(\\\\\\\"message\\\\\\\", messageHandler);\\\\n });\\\\n}\\\\nfunction createEventObservable(worker, workerTermination) {\\\\n return new observable_fns__WEBPACK_IMPORTED_MODULE_1__[\\\\\\\"Observable\\\\\\\"](observer => {\\\\n const messageHandler = ((messageEvent) => {\\\\n const workerEvent = {\\\\n type: _types_master__WEBPACK_IMPORTED_MODULE_5__[\\\\\\\"WorkerEventType\\\\\\\"].message,\\\\n data: messageEvent.data\\\\n };\\\\n observer.next(workerEvent);\\\\n });\\\\n const rejectionHandler = ((errorEvent) => {\\\\n debugThreadUtils(\\\\\\\"Unhandled promise rejection event in thread:\\\\\\\", errorEvent);\\\\n const workerEvent = {\\\\n type: _types_master__WEBPACK_IMPORTED_MODULE_5__[\\\\\\\"WorkerEventType\\\\\\\"].internalError,\\\\n error: Error(errorEvent.reason)\\\\n };\\\\n observer.next(workerEvent);\\\\n });\\\\n worker.addEventListener(\\\\\\\"message\\\\\\\", messageHandler);\\\\n worker.addEventListener(\\\\\\\"unhandledrejection\\\\\\\", rejectionHandler);\\\\n workerTermination.then(() => {\\\\n const terminationEvent = {\\\\n type: _types_master__WEBPACK_IMPORTED_MODULE_5__[\\\\\\\"WorkerEventType\\\\\\\"].termination\\\\n };\\\\n worker.removeEventListener(\\\\\\\"message\\\\\\\", messageHandler);\\\\n worker.removeEventListener(\\\\\\\"unhandledrejection\\\\\\\", rejectionHandler);\\\\n observer.next(terminationEvent);\\\\n observer.complete();\\\\n });\\\\n });\\\\n}\\\\nfunction createTerminator(worker) {\\\\n const [termination, resolver] = Object(_promise__WEBPACK_IMPORTED_MODULE_3__[\\\\\\\"createPromiseWithResolver\\\\\\\"])();\\\\n const terminate = () => __awaiter(this, void 0, void 0, function* () {\\\\n debugThreadUtils(\\\\\\\"Terminating worker\\\\\\\");\\\\n // Newer versions of worker_threads workers return a promise\\\\n yield worker.terminate();\\\\n resolver();\\\\n });\\\\n return { terminate, termination };\\\\n}\\\\nfunction setPrivateThreadProps(raw, worker, workerEvents, terminate) {\\\\n const workerErrors = workerEvents\\\\n .filter(event => event.type === _types_master__WEBPACK_IMPORTED_MODULE_5__[\\\\\\\"WorkerEventType\\\\\\\"].internalError)\\\\n .map(errorEvent => errorEvent.error);\\\\n // tslint:disable-next-line prefer-object-spread\\\\n return Object.assign(raw, {\\\\n [_symbols__WEBPACK_IMPORTED_MODULE_4__[\\\\\\\"$errors\\\\\\\"]]: workerErrors,\\\\n [_symbols__WEBPACK_IMPORTED_MODULE_4__[\\\\\\\"$events\\\\\\\"]]: workerEvents,\\\\n [_symbols__WEBPACK_IMPORTED_MODULE_4__[\\\\\\\"$terminate\\\\\\\"]]: terminate,\\\\n [_symbols__WEBPACK_IMPORTED_MODULE_4__[\\\\\\\"$worker\\\\\\\"]]: worker\\\\n });\\\\n}\\\\n/**\\\\n * Spawn a new thread. Takes a fresh worker instance, wraps it in a thin\\\\n * abstraction layer to provide the transparent API and verifies that\\\\n * the worker has initialized successfully.\\\\n *\\\\n * @param worker Instance of `Worker`. Either a web worker, `worker_threads` worker or `tiny-worker` worker.\\\\n * @param [options]\\\\n * @param [options.timeout] Init message timeout. Default: 10000 or set by environment variable.\\\\n */\\\\nfunction spawn(worker, options) {\\\\n return __awaiter(this, void 0, void 0, function* () {\\\\n debugSpawn(\\\\\\\"Initializing new thread\\\\\\\");\\\\n const timeout = options && options.timeout ? options.timeout : initMessageTimeout;\\\\n const initMessage = yield withTimeout(receiveInitMessage(worker), timeout, `Timeout: Did not receive an init message from worker after ${timeout}ms. Make sure the worker calls expose().`);\\\\n const exposed = initMessage.exposed;\\\\n const { termination, terminate } = createTerminator(worker);\\\\n const events = createEventObservable(worker, termination);\\\\n if (exposed.type === \\\\\\\"function\\\\\\\") {\\\\n const proxy = Object(_invocation_proxy__WEBPACK_IMPORTED_MODULE_6__[\\\\\\\"createProxyFunction\\\\\\\"])(worker);\\\\n return setPrivateThreadProps(proxy, worker, events, terminate);\\\\n }\\\\n else if (exposed.type === \\\\\\\"module\\\\\\\") {\\\\n const proxy = Object(_invocation_proxy__WEBPACK_IMPORTED_MODULE_6__[\\\\\\\"createProxyModule\\\\\\\"])(worker, exposed.methods);\\\\n return setPrivateThreadProps(proxy, worker, events, terminate);\\\\n }\\\\n else {\\\\n const type = exposed.type;\\\\n throw Error(`Worker init message states unexpected type of expose(): ${type}`);\\\\n }\\\\n });\\\\n}\\\\n\\\\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../process/browser.js */ \\\\\\\"./node_modules/process/browser.js\\\\\\\")))\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/threads/dist-esm/master/spawn.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/threads/dist-esm/master/thread.js\\\":\\n/*!********************************************************!*\\\\\\n !*** ./node_modules/threads/dist-esm/master/thread.js ***!\\n \\\\********************************************************/\\n/*! exports provided: Thread */\\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\\n\\n\\\"use strict\\\";\\neval(\\\"__webpack_require__.r(__webpack_exports__);\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"Thread\\\\\\\", function() { return Thread; });\\\\n/* harmony import */ var _symbols__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../symbols */ \\\\\\\"./node_modules/threads/dist-esm/symbols.js\\\\\\\");\\\\n\\\\nfunction fail(message) {\\\\n throw Error(message);\\\\n}\\\\n/** Thread utility functions. Use them to manage or inspect a `spawn()`-ed thread. */\\\\nconst Thread = {\\\\n /** Return an observable that can be used to subscribe to all errors happening in the thread. */\\\\n errors(thread) {\\\\n return thread[_symbols__WEBPACK_IMPORTED_MODULE_0__[\\\\\\\"$errors\\\\\\\"]] || fail(\\\\\\\"Error observable not found. Make sure to pass a thread instance as returned by the spawn() promise.\\\\\\\");\\\\n },\\\\n /** Return an observable that can be used to subscribe to internal events happening in the thread. Useful for debugging. */\\\\n events(thread) {\\\\n return thread[_symbols__WEBPACK_IMPORTED_MODULE_0__[\\\\\\\"$events\\\\\\\"]] || fail(\\\\\\\"Events observable not found. Make sure to pass a thread instance as returned by the spawn() promise.\\\\\\\");\\\\n },\\\\n /** Terminate a thread. Remember to terminate every thread when you are done using it. */\\\\n terminate(thread) {\\\\n return thread[_symbols__WEBPACK_IMPORTED_MODULE_0__[\\\\\\\"$terminate\\\\\\\"]]();\\\\n }\\\\n};\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/threads/dist-esm/master/thread.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/threads/dist-esm/observable-promise.js\\\":\\n/*!*************************************************************!*\\\\\\n !*** ./node_modules/threads/dist-esm/observable-promise.js ***!\\n \\\\*************************************************************/\\n/*! exports provided: ObservablePromise */\\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\\n\\n\\\"use strict\\\";\\neval(\\\"__webpack_require__.r(__webpack_exports__);\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"ObservablePromise\\\\\\\", function() { return ObservablePromise; });\\\\n/* harmony import */ var observable_fns__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! observable-fns */ \\\\\\\"./node_modules/observable-fns/dist.esm/index.js\\\\\\\");\\\\n\\\\nconst doNothing = () => undefined;\\\\nconst returnInput = (input) => input;\\\\nconst runDeferred = (fn) => Promise.resolve().then(fn);\\\\nfunction fail(error) {\\\\n throw error;\\\\n}\\\\nfunction isThenable(thing) {\\\\n return thing && typeof thing.then === \\\\\\\"function\\\\\\\";\\\\n}\\\\n/**\\\\n * Creates a hybrid, combining the APIs of an Observable and a Promise.\\\\n *\\\\n * It is used to proxy async process states when we are initially not sure\\\\n * if that async process will yield values once (-> Promise) or multiple\\\\n * times (-> Observable).\\\\n *\\\\n * Note that the observable promise inherits some of the observable's characteristics:\\\\n * The `init` function will be called *once for every time anyone subscribes to it*.\\\\n *\\\\n * If this is undesired, derive a hot observable from it using `makeHot()` and\\\\n * subscribe to that.\\\\n */\\\\nclass ObservablePromise extends observable_fns__WEBPACK_IMPORTED_MODULE_0__[\\\\\\\"Observable\\\\\\\"] {\\\\n constructor(init) {\\\\n super((originalObserver) => {\\\\n // tslint:disable-next-line no-this-assignment\\\\n const self = this;\\\\n const observer = Object.assign(Object.assign({}, originalObserver), { complete() {\\\\n originalObserver.complete();\\\\n self.onCompletion();\\\\n }, error(error) {\\\\n originalObserver.error(error);\\\\n self.onError(error);\\\\n },\\\\n next(value) {\\\\n originalObserver.next(value);\\\\n self.onNext(value);\\\\n } });\\\\n try {\\\\n this.initHasRun = true;\\\\n return init(observer);\\\\n }\\\\n catch (error) {\\\\n observer.error(error);\\\\n }\\\\n });\\\\n this.initHasRun = false;\\\\n this.fulfillmentCallbacks = [];\\\\n this.rejectionCallbacks = [];\\\\n this.firstValueSet = false;\\\\n this.state = \\\\\\\"pending\\\\\\\";\\\\n }\\\\n onNext(value) {\\\\n if (!this.firstValueSet) {\\\\n this.firstValue = value;\\\\n this.firstValueSet = true;\\\\n }\\\\n }\\\\n onError(error) {\\\\n this.state = \\\\\\\"rejected\\\\\\\";\\\\n this.rejection = error;\\\\n for (const onRejected of this.rejectionCallbacks) {\\\\n // Promisifying the call to turn errors into unhandled promise rejections\\\\n // instead of them failing sync and cancelling the iteration\\\\n runDeferred(() => onRejected(error));\\\\n }\\\\n }\\\\n onCompletion() {\\\\n this.state = \\\\\\\"fulfilled\\\\\\\";\\\\n for (const onFulfilled of this.fulfillmentCallbacks) {\\\\n // Promisifying the call to turn errors into unhandled promise rejections\\\\n // instead of them failing sync and cancelling the iteration\\\\n runDeferred(() => onFulfilled(this.firstValue));\\\\n }\\\\n }\\\\n then(onFulfilledRaw, onRejectedRaw) {\\\\n const onFulfilled = onFulfilledRaw || returnInput;\\\\n const onRejected = onRejectedRaw || fail;\\\\n let onRejectedCalled = false;\\\\n return new Promise((resolve, reject) => {\\\\n const rejectionCallback = (error) => {\\\\n if (onRejectedCalled)\\\\n return;\\\\n onRejectedCalled = true;\\\\n try {\\\\n resolve(onRejected(error));\\\\n }\\\\n catch (anotherError) {\\\\n reject(anotherError);\\\\n }\\\\n };\\\\n const fulfillmentCallback = (value) => {\\\\n try {\\\\n resolve(onFulfilled(value));\\\\n }\\\\n catch (error) {\\\\n rejectionCallback(error);\\\\n }\\\\n };\\\\n if (!this.initHasRun) {\\\\n this.subscribe({ error: rejectionCallback });\\\\n }\\\\n if (this.state === \\\\\\\"fulfilled\\\\\\\") {\\\\n return resolve(onFulfilled(this.firstValue));\\\\n }\\\\n if (this.state === \\\\\\\"rejected\\\\\\\") {\\\\n onRejectedCalled = true;\\\\n return resolve(onRejected(this.rejection));\\\\n }\\\\n this.fulfillmentCallbacks.push(fulfillmentCallback);\\\\n this.rejectionCallbacks.push(rejectionCallback);\\\\n });\\\\n }\\\\n catch(onRejected) {\\\\n return this.then(undefined, onRejected);\\\\n }\\\\n finally(onCompleted) {\\\\n const handler = onCompleted || doNothing;\\\\n return this.then((value) => {\\\\n handler();\\\\n return value;\\\\n }, () => handler());\\\\n }\\\\n static from(thing) {\\\\n if (isThenable(thing)) {\\\\n return new ObservablePromise(observer => {\\\\n const onFulfilled = (value) => {\\\\n observer.next(value);\\\\n observer.complete();\\\\n };\\\\n const onRejected = (error) => {\\\\n observer.error(error);\\\\n };\\\\n thing.then(onFulfilled, onRejected);\\\\n });\\\\n }\\\\n else {\\\\n return super.from(thing);\\\\n }\\\\n }\\\\n}\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/threads/dist-esm/observable-promise.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/threads/dist-esm/ponyfills.js\\\":\\n/*!****************************************************!*\\\\\\n !*** ./node_modules/threads/dist-esm/ponyfills.js ***!\\n \\\\****************************************************/\\n/*! exports provided: allSettled */\\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\\n\\n\\\"use strict\\\";\\neval(\\\"__webpack_require__.r(__webpack_exports__);\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"allSettled\\\\\\\", function() { return allSettled; });\\\\n// Based on <https://github.com/es-shims/Promise.allSettled/blob/master/implementation.js>\\\\nfunction allSettled(values) {\\\\n return Promise.all(values.map(item => {\\\\n const onFulfill = (value) => {\\\\n return { status: 'fulfilled', value };\\\\n };\\\\n const onReject = (reason) => {\\\\n return { status: 'rejected', reason };\\\\n };\\\\n const itemPromise = Promise.resolve(item);\\\\n try {\\\\n return itemPromise.then(onFulfill, onReject);\\\\n }\\\\n catch (error) {\\\\n return Promise.reject(error);\\\\n }\\\\n }));\\\\n}\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/threads/dist-esm/ponyfills.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/threads/dist-esm/promise.js\\\":\\n/*!**************************************************!*\\\\\\n !*** ./node_modules/threads/dist-esm/promise.js ***!\\n \\\\**************************************************/\\n/*! exports provided: createPromiseWithResolver */\\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\\n\\n\\\"use strict\\\";\\neval(\\\"__webpack_require__.r(__webpack_exports__);\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"createPromiseWithResolver\\\\\\\", function() { return createPromiseWithResolver; });\\\\nconst doNothing = () => undefined;\\\\n/**\\\\n * Creates a new promise and exposes its resolver function.\\\\n * Use with care!\\\\n */\\\\nfunction createPromiseWithResolver() {\\\\n let alreadyResolved = false;\\\\n let resolvedTo;\\\\n let resolver = doNothing;\\\\n const promise = new Promise(resolve => {\\\\n if (alreadyResolved) {\\\\n resolve(resolvedTo);\\\\n }\\\\n else {\\\\n resolver = resolve;\\\\n }\\\\n });\\\\n const exposedResolver = (value) => {\\\\n alreadyResolved = true;\\\\n resolvedTo = value;\\\\n resolver(resolvedTo);\\\\n };\\\\n return [promise, exposedResolver];\\\\n}\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/threads/dist-esm/promise.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/threads/dist-esm/serializers.js\\\":\\n/*!******************************************************!*\\\\\\n !*** ./node_modules/threads/dist-esm/serializers.js ***!\\n \\\\******************************************************/\\n/*! exports provided: extendSerializer, DefaultSerializer */\\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\\n\\n\\\"use strict\\\";\\neval(\\\"__webpack_require__.r(__webpack_exports__);\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"extendSerializer\\\\\\\", function() { return extendSerializer; });\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"DefaultSerializer\\\\\\\", function() { return DefaultSerializer; });\\\\nfunction extendSerializer(extend, implementation) {\\\\n const fallbackDeserializer = extend.deserialize.bind(extend);\\\\n const fallbackSerializer = extend.serialize.bind(extend);\\\\n return {\\\\n deserialize(message) {\\\\n return implementation.deserialize(message, fallbackDeserializer);\\\\n },\\\\n serialize(input) {\\\\n return implementation.serialize(input, fallbackSerializer);\\\\n }\\\\n };\\\\n}\\\\nconst DefaultErrorSerializer = {\\\\n deserialize(message) {\\\\n return Object.assign(Error(message.message), {\\\\n name: message.name,\\\\n stack: message.stack\\\\n });\\\\n },\\\\n serialize(error) {\\\\n return {\\\\n __error_marker: \\\\\\\"$$error\\\\\\\",\\\\n message: error.message,\\\\n name: error.name,\\\\n stack: error.stack\\\\n };\\\\n }\\\\n};\\\\nconst isSerializedError = (thing) => thing && typeof thing === \\\\\\\"object\\\\\\\" && \\\\\\\"__error_marker\\\\\\\" in thing && thing.__error_marker === \\\\\\\"$$error\\\\\\\";\\\\nconst DefaultSerializer = {\\\\n deserialize(message) {\\\\n if (isSerializedError(message)) {\\\\n return DefaultErrorSerializer.deserialize(message);\\\\n }\\\\n else {\\\\n return message;\\\\n }\\\\n },\\\\n serialize(input) {\\\\n if (input instanceof Error) {\\\\n return DefaultErrorSerializer.serialize(input);\\\\n }\\\\n else {\\\\n return input;\\\\n }\\\\n }\\\\n};\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/threads/dist-esm/serializers.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/threads/dist-esm/symbols.js\\\":\\n/*!**************************************************!*\\\\\\n !*** ./node_modules/threads/dist-esm/symbols.js ***!\\n \\\\**************************************************/\\n/*! exports provided: $errors, $events, $terminate, $transferable, $worker */\\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\\n\\n\\\"use strict\\\";\\neval(\\\"__webpack_require__.r(__webpack_exports__);\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"$errors\\\\\\\", function() { return $errors; });\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"$events\\\\\\\", function() { return $events; });\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"$terminate\\\\\\\", function() { return $terminate; });\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"$transferable\\\\\\\", function() { return $transferable; });\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"$worker\\\\\\\", function() { return $worker; });\\\\nconst $errors = Symbol(\\\\\\\"thread.errors\\\\\\\");\\\\nconst $events = Symbol(\\\\\\\"thread.events\\\\\\\");\\\\nconst $terminate = Symbol(\\\\\\\"thread.terminate\\\\\\\");\\\\nconst $transferable = Symbol(\\\\\\\"thread.transferable\\\\\\\");\\\\nconst $worker = Symbol(\\\\\\\"thread.worker\\\\\\\");\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/threads/dist-esm/symbols.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/threads/dist-esm/transferable.js\\\":\\n/*!*******************************************************!*\\\\\\n !*** ./node_modules/threads/dist-esm/transferable.js ***!\\n \\\\*******************************************************/\\n/*! exports provided: isTransferDescriptor, Transfer */\\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\\n\\n\\\"use strict\\\";\\neval(\\\"__webpack_require__.r(__webpack_exports__);\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"isTransferDescriptor\\\\\\\", function() { return isTransferDescriptor; });\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"Transfer\\\\\\\", function() { return Transfer; });\\\\n/* harmony import */ var _symbols__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./symbols */ \\\\\\\"./node_modules/threads/dist-esm/symbols.js\\\\\\\");\\\\n\\\\nfunction isTransferable(thing) {\\\\n if (!thing || typeof thing !== \\\\\\\"object\\\\\\\")\\\\n return false;\\\\n // Don't check too thoroughly, since the list of transferable things in JS might grow over time\\\\n return true;\\\\n}\\\\nfunction isTransferDescriptor(thing) {\\\\n return thing && typeof thing === \\\\\\\"object\\\\\\\" && thing[_symbols__WEBPACK_IMPORTED_MODULE_0__[\\\\\\\"$transferable\\\\\\\"]];\\\\n}\\\\nfunction Transfer(payload, transferables) {\\\\n if (!transferables) {\\\\n if (!isTransferable(payload))\\\\n throw Error();\\\\n transferables = [payload];\\\\n }\\\\n return {\\\\n [_symbols__WEBPACK_IMPORTED_MODULE_0__[\\\\\\\"$transferable\\\\\\\"]]: true,\\\\n send: payload,\\\\n transferables\\\\n };\\\\n}\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/threads/dist-esm/transferable.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/threads/dist-esm/types/master.js\\\":\\n/*!*******************************************************!*\\\\\\n !*** ./node_modules/threads/dist-esm/types/master.js ***!\\n \\\\*******************************************************/\\n/*! exports provided: WorkerEventType */\\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\\n\\n\\\"use strict\\\";\\neval(\\\"__webpack_require__.r(__webpack_exports__);\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"WorkerEventType\\\\\\\", function() { return WorkerEventType; });\\\\n/* harmony import */ var _symbols__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../symbols */ \\\\\\\"./node_modules/threads/dist-esm/symbols.js\\\\\\\");\\\\n/// <reference lib=\\\\\\\"dom\\\\\\\" />\\\\n// tslint:disable max-classes-per-file\\\\n\\\\n/** Event as emitted by worker thread. Subscribe to using `Thread.events(thread)`. */\\\\nvar WorkerEventType;\\\\n(function (WorkerEventType) {\\\\n WorkerEventType[\\\\\\\"internalError\\\\\\\"] = \\\\\\\"internalError\\\\\\\";\\\\n WorkerEventType[\\\\\\\"message\\\\\\\"] = \\\\\\\"message\\\\\\\";\\\\n WorkerEventType[\\\\\\\"termination\\\\\\\"] = \\\\\\\"termination\\\\\\\";\\\\n})(WorkerEventType || (WorkerEventType = {}));\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/threads/dist-esm/types/master.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/threads/dist-esm/types/messages.js\\\":\\n/*!*********************************************************!*\\\\\\n !*** ./node_modules/threads/dist-esm/types/messages.js ***!\\n \\\\*********************************************************/\\n/*! exports provided: MasterMessageType, WorkerMessageType */\\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\\n\\n\\\"use strict\\\";\\neval(\\\"__webpack_require__.r(__webpack_exports__);\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"MasterMessageType\\\\\\\", function() { return MasterMessageType; });\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"WorkerMessageType\\\\\\\", function() { return WorkerMessageType; });\\\\n/////////////////////////////\\\\n// Messages sent by master:\\\\nvar MasterMessageType;\\\\n(function (MasterMessageType) {\\\\n MasterMessageType[\\\\\\\"cancel\\\\\\\"] = \\\\\\\"cancel\\\\\\\";\\\\n MasterMessageType[\\\\\\\"run\\\\\\\"] = \\\\\\\"run\\\\\\\";\\\\n})(MasterMessageType || (MasterMessageType = {}));\\\\n////////////////////////////\\\\n// Messages sent by worker:\\\\nvar WorkerMessageType;\\\\n(function (WorkerMessageType) {\\\\n WorkerMessageType[\\\\\\\"error\\\\\\\"] = \\\\\\\"error\\\\\\\";\\\\n WorkerMessageType[\\\\\\\"init\\\\\\\"] = \\\\\\\"init\\\\\\\";\\\\n WorkerMessageType[\\\\\\\"result\\\\\\\"] = \\\\\\\"result\\\\\\\";\\\\n WorkerMessageType[\\\\\\\"running\\\\\\\"] = \\\\\\\"running\\\\\\\";\\\\n WorkerMessageType[\\\\\\\"uncaughtError\\\\\\\"] = \\\\\\\"uncaughtError\\\\\\\";\\\\n})(WorkerMessageType || (WorkerMessageType = {}));\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/threads/dist-esm/types/messages.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/threads/dist-esm/worker/implementation.browser.js\\\":\\n/*!************************************************************************!*\\\\\\n !*** ./node_modules/threads/dist-esm/worker/implementation.browser.js ***!\\n \\\\************************************************************************/\\n/*! exports provided: default */\\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\\n\\n\\\"use strict\\\";\\neval(\\\"__webpack_require__.r(__webpack_exports__);\\\\n/// <reference lib=\\\\\\\"dom\\\\\\\" />\\\\n// tslint:disable no-shadowed-variable\\\\nconst isWorkerRuntime = function isWorkerRuntime() {\\\\n const isWindowContext = typeof self !== \\\\\\\"undefined\\\\\\\" && typeof Window !== \\\\\\\"undefined\\\\\\\" && self instanceof Window;\\\\n return typeof self !== \\\\\\\"undefined\\\\\\\" && self.postMessage && !isWindowContext ? true : false;\\\\n};\\\\nconst postMessageToMaster = function postMessageToMaster(data, transferList) {\\\\n self.postMessage(data, transferList);\\\\n};\\\\nconst subscribeToMasterMessages = function subscribeToMasterMessages(onMessage) {\\\\n const messageHandler = (messageEvent) => {\\\\n onMessage(messageEvent.data);\\\\n };\\\\n const unsubscribe = () => {\\\\n self.removeEventListener(\\\\\\\"message\\\\\\\", messageHandler);\\\\n };\\\\n self.addEventListener(\\\\\\\"message\\\\\\\", messageHandler);\\\\n return unsubscribe;\\\\n};\\\\n/* harmony default export */ __webpack_exports__[\\\\\\\"default\\\\\\\"] = ({\\\\n isWorkerRuntime,\\\\n postMessageToMaster,\\\\n subscribeToMasterMessages\\\\n});\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/threads/dist-esm/worker/implementation.browser.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/threads/dist-esm/worker/index.js\\\":\\n/*!*******************************************************!*\\\\\\n !*** ./node_modules/threads/dist-esm/worker/index.js ***!\\n \\\\*******************************************************/\\n/*! exports provided: registerSerializer, Transfer, isWorkerRuntime, expose */\\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\\n\\n\\\"use strict\\\";\\neval(\\\"__webpack_require__.r(__webpack_exports__);\\\\n/* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"isWorkerRuntime\\\\\\\", function() { return isWorkerRuntime; });\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"expose\\\\\\\", function() { return expose; });\\\\n/* harmony import */ var is_observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! is-observable */ \\\\\\\"./node_modules/is-observable/index.js\\\\\\\");\\\\n/* harmony import */ var is_observable__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(is_observable__WEBPACK_IMPORTED_MODULE_0__);\\\\n/* harmony import */ var _common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../common */ \\\\\\\"./node_modules/threads/dist-esm/common.js\\\\\\\");\\\\n/* harmony import */ var _transferable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../transferable */ \\\\\\\"./node_modules/threads/dist-esm/transferable.js\\\\\\\");\\\\n/* harmony import */ var _types_messages__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../types/messages */ \\\\\\\"./node_modules/threads/dist-esm/types/messages.js\\\\\\\");\\\\n/* harmony import */ var _implementation__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./implementation */ \\\\\\\"./node_modules/threads/dist-esm/worker/implementation.browser.js\\\\\\\");\\\\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"registerSerializer\\\\\\\", function() { return _common__WEBPACK_IMPORTED_MODULE_1__[\\\\\\\"registerSerializer\\\\\\\"]; });\\\\n\\\\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \\\\\\\"Transfer\\\\\\\", function() { return _transferable__WEBPACK_IMPORTED_MODULE_2__[\\\\\\\"Transfer\\\\\\\"]; });\\\\n\\\\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\\\\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\\\\n return new (P || (P = Promise))(function (resolve, reject) {\\\\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\\\\n function rejected(value) { try { step(generator[\\\\\\\"throw\\\\\\\"](value)); } catch (e) { reject(e); } }\\\\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\\\\n step((generator = generator.apply(thisArg, _arguments || [])).next());\\\\n });\\\\n};\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n/** Returns `true` if this code is currently running in a worker. */\\\\nconst isWorkerRuntime = _implementation__WEBPACK_IMPORTED_MODULE_4__[\\\\\\\"default\\\\\\\"].isWorkerRuntime;\\\\nlet exposeCalled = false;\\\\nconst activeSubscriptions = new Map();\\\\nconst isMasterJobCancelMessage = (thing) => thing && thing.type === _types_messages__WEBPACK_IMPORTED_MODULE_3__[\\\\\\\"MasterMessageType\\\\\\\"].cancel;\\\\nconst isMasterJobRunMessage = (thing) => thing && thing.type === _types_messages__WEBPACK_IMPORTED_MODULE_3__[\\\\\\\"MasterMessageType\\\\\\\"].run;\\\\n/**\\\\n * There are issues with `is-observable` not recognizing zen-observable's instances.\\\\n * We are using `observable-fns`, but it's based on zen-observable, too.\\\\n */\\\\nconst isObservable = (thing) => is_observable__WEBPACK_IMPORTED_MODULE_0___default()(thing) || isZenObservable(thing);\\\\nfunction isZenObservable(thing) {\\\\n return thing && typeof thing === \\\\\\\"object\\\\\\\" && typeof thing.subscribe === \\\\\\\"function\\\\\\\";\\\\n}\\\\nfunction deconstructTransfer(thing) {\\\\n return Object(_transferable__WEBPACK_IMPORTED_MODULE_2__[\\\\\\\"isTransferDescriptor\\\\\\\"])(thing)\\\\n ? { payload: thing.send, transferables: thing.transferables }\\\\n : { payload: thing, transferables: undefined };\\\\n}\\\\nfunction postFunctionInitMessage() {\\\\n const initMessage = {\\\\n type: _types_messages__WEBPACK_IMPORTED_MODULE_3__[\\\\\\\"WorkerMessageType\\\\\\\"].init,\\\\n exposed: {\\\\n type: \\\\\\\"function\\\\\\\"\\\\n }\\\\n };\\\\n _implementation__WEBPACK_IMPORTED_MODULE_4__[\\\\\\\"default\\\\\\\"].postMessageToMaster(initMessage);\\\\n}\\\\nfunction postModuleInitMessage(methodNames) {\\\\n const initMessage = {\\\\n type: _types_messages__WEBPACK_IMPORTED_MODULE_3__[\\\\\\\"WorkerMessageType\\\\\\\"].init,\\\\n exposed: {\\\\n type: \\\\\\\"module\\\\\\\",\\\\n methods: methodNames\\\\n }\\\\n };\\\\n _implementation__WEBPACK_IMPORTED_MODULE_4__[\\\\\\\"default\\\\\\\"].postMessageToMaster(initMessage);\\\\n}\\\\nfunction postJobErrorMessage(uid, rawError) {\\\\n const { payload: error, transferables } = deconstructTransfer(rawError);\\\\n const errorMessage = {\\\\n type: _types_messages__WEBPACK_IMPORTED_MODULE_3__[\\\\\\\"WorkerMessageType\\\\\\\"].error,\\\\n uid,\\\\n error: Object(_common__WEBPACK_IMPORTED_MODULE_1__[\\\\\\\"serialize\\\\\\\"])(error)\\\\n };\\\\n _implementation__WEBPACK_IMPORTED_MODULE_4__[\\\\\\\"default\\\\\\\"].postMessageToMaster(errorMessage, transferables);\\\\n}\\\\nfunction postJobResultMessage(uid, completed, resultValue) {\\\\n const { payload, transferables } = deconstructTransfer(resultValue);\\\\n const resultMessage = {\\\\n type: _types_messages__WEBPACK_IMPORTED_MODULE_3__[\\\\\\\"WorkerMessageType\\\\\\\"].result,\\\\n uid,\\\\n complete: completed ? true : undefined,\\\\n payload\\\\n };\\\\n _implementation__WEBPACK_IMPORTED_MODULE_4__[\\\\\\\"default\\\\\\\"].postMessageToMaster(resultMessage, transferables);\\\\n}\\\\nfunction postJobStartMessage(uid, resultType) {\\\\n const startMessage = {\\\\n type: _types_messages__WEBPACK_IMPORTED_MODULE_3__[\\\\\\\"WorkerMessageType\\\\\\\"].running,\\\\n uid,\\\\n resultType\\\\n };\\\\n _implementation__WEBPACK_IMPORTED_MODULE_4__[\\\\\\\"default\\\\\\\"].postMessageToMaster(startMessage);\\\\n}\\\\nfunction postUncaughtErrorMessage(error) {\\\\n try {\\\\n const errorMessage = {\\\\n type: _types_messages__WEBPACK_IMPORTED_MODULE_3__[\\\\\\\"WorkerMessageType\\\\\\\"].uncaughtError,\\\\n error: Object(_common__WEBPACK_IMPORTED_MODULE_1__[\\\\\\\"serialize\\\\\\\"])(error)\\\\n };\\\\n _implementation__WEBPACK_IMPORTED_MODULE_4__[\\\\\\\"default\\\\\\\"].postMessageToMaster(errorMessage);\\\\n }\\\\n catch (subError) {\\\\n // tslint:disable-next-line no-console\\\\n console.error(\\\\\\\"Not reporting uncaught error back to master thread as it \\\\\\\" +\\\\n \\\\\\\"occured while reporting an uncaught error already.\\\\\\\" +\\\\n \\\\\\\"\\\\\\\\nLatest error:\\\\\\\", subError, \\\\\\\"\\\\\\\\nOriginal error:\\\\\\\", error);\\\\n }\\\\n}\\\\nfunction runFunction(jobUID, fn, args) {\\\\n return __awaiter(this, void 0, void 0, function* () {\\\\n let syncResult;\\\\n try {\\\\n syncResult = fn(...args);\\\\n }\\\\n catch (error) {\\\\n return postJobErrorMessage(jobUID, error);\\\\n }\\\\n const resultType = isObservable(syncResult) ? \\\\\\\"observable\\\\\\\" : \\\\\\\"promise\\\\\\\";\\\\n postJobStartMessage(jobUID, resultType);\\\\n if (isObservable(syncResult)) {\\\\n const subscription = syncResult.subscribe(value => postJobResultMessage(jobUID, false, Object(_common__WEBPACK_IMPORTED_MODULE_1__[\\\\\\\"serialize\\\\\\\"])(value)), error => {\\\\n postJobErrorMessage(jobUID, Object(_common__WEBPACK_IMPORTED_MODULE_1__[\\\\\\\"serialize\\\\\\\"])(error));\\\\n activeSubscriptions.delete(jobUID);\\\\n }, () => {\\\\n postJobResultMessage(jobUID, true);\\\\n activeSubscriptions.delete(jobUID);\\\\n });\\\\n activeSubscriptions.set(jobUID, subscription);\\\\n }\\\\n else {\\\\n try {\\\\n const result = yield syncResult;\\\\n postJobResultMessage(jobUID, true, Object(_common__WEBPACK_IMPORTED_MODULE_1__[\\\\\\\"serialize\\\\\\\"])(result));\\\\n }\\\\n catch (error) {\\\\n postJobErrorMessage(jobUID, Object(_common__WEBPACK_IMPORTED_MODULE_1__[\\\\\\\"serialize\\\\\\\"])(error));\\\\n }\\\\n }\\\\n });\\\\n}\\\\n/**\\\\n * Expose a function or a module (an object whose values are functions)\\\\n * to the main thread. Must be called exactly once in every worker thread\\\\n * to signal its API to the main thread.\\\\n *\\\\n * @param exposed Function or object whose values are functions\\\\n */\\\\nfunction expose(exposed) {\\\\n if (!_implementation__WEBPACK_IMPORTED_MODULE_4__[\\\\\\\"default\\\\\\\"].isWorkerRuntime()) {\\\\n throw Error(\\\\\\\"expose() called in the master thread.\\\\\\\");\\\\n }\\\\n if (exposeCalled) {\\\\n throw Error(\\\\\\\"expose() called more than once. This is not possible. Pass an object to expose() if you want to expose multiple functions.\\\\\\\");\\\\n }\\\\n exposeCalled = true;\\\\n if (typeof exposed === \\\\\\\"function\\\\\\\") {\\\\n _implementation__WEBPACK_IMPORTED_MODULE_4__[\\\\\\\"default\\\\\\\"].subscribeToMasterMessages(messageData => {\\\\n if (isMasterJobRunMessage(messageData) && !messageData.method) {\\\\n runFunction(messageData.uid, exposed, messageData.args.map(_common__WEBPACK_IMPORTED_MODULE_1__[\\\\\\\"deserialize\\\\\\\"]));\\\\n }\\\\n });\\\\n postFunctionInitMessage();\\\\n }\\\\n else if (typeof exposed === \\\\\\\"object\\\\\\\" && exposed) {\\\\n _implementation__WEBPACK_IMPORTED_MODULE_4__[\\\\\\\"default\\\\\\\"].subscribeToMasterMessages(messageData => {\\\\n if (isMasterJobRunMessage(messageData) && messageData.method) {\\\\n runFunction(messageData.uid, exposed[messageData.method], messageData.args.map(_common__WEBPACK_IMPORTED_MODULE_1__[\\\\\\\"deserialize\\\\\\\"]));\\\\n }\\\\n });\\\\n const methodNames = Object.keys(exposed).filter(key => typeof exposed[key] === \\\\\\\"function\\\\\\\");\\\\n postModuleInitMessage(methodNames);\\\\n }\\\\n else {\\\\n throw Error(`Invalid argument passed to expose(). Expected a function or an object, got: ${exposed}`);\\\\n }\\\\n _implementation__WEBPACK_IMPORTED_MODULE_4__[\\\\\\\"default\\\\\\\"].subscribeToMasterMessages(messageData => {\\\\n if (isMasterJobCancelMessage(messageData)) {\\\\n const jobUID = messageData.uid;\\\\n const subscription = activeSubscriptions.get(jobUID);\\\\n if (subscription) {\\\\n subscription.unsubscribe();\\\\n activeSubscriptions.delete(jobUID);\\\\n }\\\\n }\\\\n });\\\\n}\\\\nif (typeof self !== \\\\\\\"undefined\\\\\\\" && typeof self.addEventListener === \\\\\\\"function\\\\\\\" && _implementation__WEBPACK_IMPORTED_MODULE_4__[\\\\\\\"default\\\\\\\"].isWorkerRuntime()) {\\\\n self.addEventListener(\\\\\\\"error\\\\\\\", event => {\\\\n // Post with some delay, so the master had some time to subscribe to messages\\\\n setTimeout(() => postUncaughtErrorMessage(event.error || event), 250);\\\\n });\\\\n self.addEventListener(\\\\\\\"unhandledrejection\\\\\\\", event => {\\\\n const error = event.reason;\\\\n if (error && typeof error.message === \\\\\\\"string\\\\\\\") {\\\\n // Post with some delay, so the master had some time to subscribe to messages\\\\n setTimeout(() => postUncaughtErrorMessage(error), 250);\\\\n }\\\\n });\\\\n}\\\\nif (typeof process !== \\\\\\\"undefined\\\\\\\" && typeof process.on === \\\\\\\"function\\\\\\\" && _implementation__WEBPACK_IMPORTED_MODULE_4__[\\\\\\\"default\\\\\\\"].isWorkerRuntime()) {\\\\n process.on(\\\\\\\"uncaughtException\\\\\\\", (error) => {\\\\n // Post with some delay, so the master had some time to subscribe to messages\\\\n setTimeout(() => postUncaughtErrorMessage(error), 250);\\\\n });\\\\n process.on(\\\\\\\"unhandledRejection\\\\\\\", (error) => {\\\\n if (error && typeof error.message === \\\\\\\"string\\\\\\\") {\\\\n // Post with some delay, so the master had some time to subscribe to messages\\\\n setTimeout(() => postUncaughtErrorMessage(error), 250);\\\\n }\\\\n });\\\\n}\\\\n\\\\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../process/browser.js */ \\\\\\\"./node_modules/process/browser.js\\\\\\\")))\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/threads/dist-esm/worker/index.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/threads/node_modules/debug/src/browser.js\\\":\\n/*!****************************************************************!*\\\\\\n !*** ./node_modules/threads/node_modules/debug/src/browser.js ***!\\n \\\\****************************************************************/\\n/*! no static exports found */\\n/***/ (function(module, exports, __webpack_require__) {\\n\\neval(\\\"/* WEBPACK VAR INJECTION */(function(process) {/* eslint-env browser */\\\\n\\\\n/**\\\\n * This is the web browser implementation of `debug()`.\\\\n */\\\\n\\\\nexports.formatArgs = formatArgs;\\\\nexports.save = save;\\\\nexports.load = load;\\\\nexports.useColors = useColors;\\\\nexports.storage = localstorage();\\\\nexports.destroy = (() => {\\\\n\\\\tlet warned = false;\\\\n\\\\n\\\\treturn () => {\\\\n\\\\t\\\\tif (!warned) {\\\\n\\\\t\\\\t\\\\twarned = true;\\\\n\\\\t\\\\t\\\\tconsole.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');\\\\n\\\\t\\\\t}\\\\n\\\\t};\\\\n})();\\\\n\\\\n/**\\\\n * Colors.\\\\n */\\\\n\\\\nexports.colors = [\\\\n\\\\t'#0000CC',\\\\n\\\\t'#0000FF',\\\\n\\\\t'#0033CC',\\\\n\\\\t'#0033FF',\\\\n\\\\t'#0066CC',\\\\n\\\\t'#0066FF',\\\\n\\\\t'#0099CC',\\\\n\\\\t'#0099FF',\\\\n\\\\t'#00CC00',\\\\n\\\\t'#00CC33',\\\\n\\\\t'#00CC66',\\\\n\\\\t'#00CC99',\\\\n\\\\t'#00CCCC',\\\\n\\\\t'#00CCFF',\\\\n\\\\t'#3300CC',\\\\n\\\\t'#3300FF',\\\\n\\\\t'#3333CC',\\\\n\\\\t'#3333FF',\\\\n\\\\t'#3366CC',\\\\n\\\\t'#3366FF',\\\\n\\\\t'#3399CC',\\\\n\\\\t'#3399FF',\\\\n\\\\t'#33CC00',\\\\n\\\\t'#33CC33',\\\\n\\\\t'#33CC66',\\\\n\\\\t'#33CC99',\\\\n\\\\t'#33CCCC',\\\\n\\\\t'#33CCFF',\\\\n\\\\t'#6600CC',\\\\n\\\\t'#6600FF',\\\\n\\\\t'#6633CC',\\\\n\\\\t'#6633FF',\\\\n\\\\t'#66CC00',\\\\n\\\\t'#66CC33',\\\\n\\\\t'#9900CC',\\\\n\\\\t'#9900FF',\\\\n\\\\t'#9933CC',\\\\n\\\\t'#9933FF',\\\\n\\\\t'#99CC00',\\\\n\\\\t'#99CC33',\\\\n\\\\t'#CC0000',\\\\n\\\\t'#CC0033',\\\\n\\\\t'#CC0066',\\\\n\\\\t'#CC0099',\\\\n\\\\t'#CC00CC',\\\\n\\\\t'#CC00FF',\\\\n\\\\t'#CC3300',\\\\n\\\\t'#CC3333',\\\\n\\\\t'#CC3366',\\\\n\\\\t'#CC3399',\\\\n\\\\t'#CC33CC',\\\\n\\\\t'#CC33FF',\\\\n\\\\t'#CC6600',\\\\n\\\\t'#CC6633',\\\\n\\\\t'#CC9900',\\\\n\\\\t'#CC9933',\\\\n\\\\t'#CCCC00',\\\\n\\\\t'#CCCC33',\\\\n\\\\t'#FF0000',\\\\n\\\\t'#FF0033',\\\\n\\\\t'#FF0066',\\\\n\\\\t'#FF0099',\\\\n\\\\t'#FF00CC',\\\\n\\\\t'#FF00FF',\\\\n\\\\t'#FF3300',\\\\n\\\\t'#FF3333',\\\\n\\\\t'#FF3366',\\\\n\\\\t'#FF3399',\\\\n\\\\t'#FF33CC',\\\\n\\\\t'#FF33FF',\\\\n\\\\t'#FF6600',\\\\n\\\\t'#FF6633',\\\\n\\\\t'#FF9900',\\\\n\\\\t'#FF9933',\\\\n\\\\t'#FFCC00',\\\\n\\\\t'#FFCC33'\\\\n];\\\\n\\\\n/**\\\\n * Currently only WebKit-based Web Inspectors, Firefox >= v31,\\\\n * and the Firebug extension (any Firefox version) are known\\\\n * to support \\\\\\\"%c\\\\\\\" CSS customizations.\\\\n *\\\\n * TODO: add a `localStorage` variable to explicitly enable/disable colors\\\\n */\\\\n\\\\n// eslint-disable-next-line complexity\\\\nfunction useColors() {\\\\n\\\\t// NB: In an Electron preload script, document will be defined but not fully\\\\n\\\\t// initialized. Since we know we're in Chrome, we'll just detect this case\\\\n\\\\t// explicitly\\\\n\\\\tif (typeof window !== 'undefined' && window.process && (window.process.type === 'renderer' || window.process.__nwjs)) {\\\\n\\\\t\\\\treturn true;\\\\n\\\\t}\\\\n\\\\n\\\\t// Internet Explorer and Edge do not support colors.\\\\n\\\\tif (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\\\\\\\\/(\\\\\\\\d+)/)) {\\\\n\\\\t\\\\treturn false;\\\\n\\\\t}\\\\n\\\\n\\\\t// Is webkit? http://stackoverflow.com/a/16459606/376773\\\\n\\\\t// document is undefined in react-native: https://github.com/facebook/react-native/pull/1632\\\\n\\\\treturn (typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) ||\\\\n\\\\t\\\\t// Is firebug? http://stackoverflow.com/a/398120/376773\\\\n\\\\t\\\\t(typeof window !== 'undefined' && window.console && (window.console.firebug || (window.console.exception && window.console.table))) ||\\\\n\\\\t\\\\t// Is firefox >= v31?\\\\n\\\\t\\\\t// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages\\\\n\\\\t\\\\t(typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\\\\\\\\/(\\\\\\\\d+)/) && parseInt(RegExp.$1, 10) >= 31) ||\\\\n\\\\t\\\\t// Double check webkit in userAgent just in case we are in a worker\\\\n\\\\t\\\\t(typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\\\\\\\\/(\\\\\\\\d+)/));\\\\n}\\\\n\\\\n/**\\\\n * Colorize log arguments if enabled.\\\\n *\\\\n * @api public\\\\n */\\\\n\\\\nfunction formatArgs(args) {\\\\n\\\\targs[0] = (this.useColors ? '%c' : '') +\\\\n\\\\t\\\\tthis.namespace +\\\\n\\\\t\\\\t(this.useColors ? ' %c' : ' ') +\\\\n\\\\t\\\\targs[0] +\\\\n\\\\t\\\\t(this.useColors ? '%c ' : ' ') +\\\\n\\\\t\\\\t'+' + module.exports.humanize(this.diff);\\\\n\\\\n\\\\tif (!this.useColors) {\\\\n\\\\t\\\\treturn;\\\\n\\\\t}\\\\n\\\\n\\\\tconst c = 'color: ' + this.color;\\\\n\\\\targs.splice(1, 0, c, 'color: inherit');\\\\n\\\\n\\\\t// The final \\\\\\\"%c\\\\\\\" is somewhat tricky, because there could be other\\\\n\\\\t// arguments passed either before or after the %c, so we need to\\\\n\\\\t// figure out the correct index to insert the CSS into\\\\n\\\\tlet index = 0;\\\\n\\\\tlet lastC = 0;\\\\n\\\\targs[0].replace(/%[a-zA-Z%]/g, match => {\\\\n\\\\t\\\\tif (match === '%%') {\\\\n\\\\t\\\\t\\\\treturn;\\\\n\\\\t\\\\t}\\\\n\\\\t\\\\tindex++;\\\\n\\\\t\\\\tif (match === '%c') {\\\\n\\\\t\\\\t\\\\t// We only are interested in the *last* %c\\\\n\\\\t\\\\t\\\\t// (the user may have provided their own)\\\\n\\\\t\\\\t\\\\tlastC = index;\\\\n\\\\t\\\\t}\\\\n\\\\t});\\\\n\\\\n\\\\targs.splice(lastC, 0, c);\\\\n}\\\\n\\\\n/**\\\\n * Invokes `console.debug()` when available.\\\\n * No-op when `console.debug` is not a \\\\\\\"function\\\\\\\".\\\\n * If `console.debug` is not available, falls back\\\\n * to `console.log`.\\\\n *\\\\n * @api public\\\\n */\\\\nexports.log = console.debug || console.log || (() => {});\\\\n\\\\n/**\\\\n * Save `namespaces`.\\\\n *\\\\n * @param {String} namespaces\\\\n * @api private\\\\n */\\\\nfunction save(namespaces) {\\\\n\\\\ttry {\\\\n\\\\t\\\\tif (namespaces) {\\\\n\\\\t\\\\t\\\\texports.storage.setItem('debug', namespaces);\\\\n\\\\t\\\\t} else {\\\\n\\\\t\\\\t\\\\texports.storage.removeItem('debug');\\\\n\\\\t\\\\t}\\\\n\\\\t} catch (error) {\\\\n\\\\t\\\\t// Swallow\\\\n\\\\t\\\\t// XXX (@Qix-) should we be logging these?\\\\n\\\\t}\\\\n}\\\\n\\\\n/**\\\\n * Load `namespaces`.\\\\n *\\\\n * @return {String} returns the previously persisted debug modes\\\\n * @api private\\\\n */\\\\nfunction load() {\\\\n\\\\tlet r;\\\\n\\\\ttry {\\\\n\\\\t\\\\tr = exports.storage.getItem('debug');\\\\n\\\\t} catch (error) {\\\\n\\\\t\\\\t// Swallow\\\\n\\\\t\\\\t// XXX (@Qix-) should we be logging these?\\\\n\\\\t}\\\\n\\\\n\\\\t// If debug isn't set in LS, and we're in Electron, try to load $DEBUG\\\\n\\\\tif (!r && typeof process !== 'undefined' && 'env' in process) {\\\\n\\\\t\\\\tr = process.env.DEBUG;\\\\n\\\\t}\\\\n\\\\n\\\\treturn r;\\\\n}\\\\n\\\\n/**\\\\n * Localstorage attempts to return the localstorage.\\\\n *\\\\n * This is necessary because safari throws\\\\n * when a user disables cookies/localstorage\\\\n * and you attempt to access it.\\\\n *\\\\n * @return {LocalStorage}\\\\n * @api private\\\\n */\\\\n\\\\nfunction localstorage() {\\\\n\\\\ttry {\\\\n\\\\t\\\\t// TVMLKit (Apple TV JS Runtime) does not have a window object, just localStorage in the global context\\\\n\\\\t\\\\t// The Browser also has localStorage in the global context.\\\\n\\\\t\\\\treturn localStorage;\\\\n\\\\t} catch (error) {\\\\n\\\\t\\\\t// Swallow\\\\n\\\\t\\\\t// XXX (@Qix-) should we be logging these?\\\\n\\\\t}\\\\n}\\\\n\\\\nmodule.exports = __webpack_require__(/*! ./common */ \\\\\\\"./node_modules/threads/node_modules/debug/src/common.js\\\\\\\")(exports);\\\\n\\\\nconst {formatters} = module.exports;\\\\n\\\\n/**\\\\n * Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.\\\\n */\\\\n\\\\nformatters.j = function (v) {\\\\n\\\\ttry {\\\\n\\\\t\\\\treturn JSON.stringify(v);\\\\n\\\\t} catch (error) {\\\\n\\\\t\\\\treturn '[UnexpectedJSONParseError]: ' + error.message;\\\\n\\\\t}\\\\n};\\\\n\\\\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../process/browser.js */ \\\\\\\"./node_modules/process/browser.js\\\\\\\")))\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/threads/node_modules/debug/src/browser.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/threads/node_modules/debug/src/common.js\\\":\\n/*!***************************************************************!*\\\\\\n !*** ./node_modules/threads/node_modules/debug/src/common.js ***!\\n \\\\***************************************************************/\\n/*! no static exports found */\\n/***/ (function(module, exports, __webpack_require__) {\\n\\neval(\\\"\\\\n/**\\\\n * This is the common logic for both the Node.js and web browser\\\\n * implementations of `debug()`.\\\\n */\\\\n\\\\nfunction setup(env) {\\\\n\\\\tcreateDebug.debug = createDebug;\\\\n\\\\tcreateDebug.default = createDebug;\\\\n\\\\tcreateDebug.coerce = coerce;\\\\n\\\\tcreateDebug.disable = disable;\\\\n\\\\tcreateDebug.enable = enable;\\\\n\\\\tcreateDebug.enabled = enabled;\\\\n\\\\tcreateDebug.humanize = __webpack_require__(/*! ms */ \\\\\\\"./node_modules/threads/node_modules/ms/index.js\\\\\\\");\\\\n\\\\tcreateDebug.destroy = destroy;\\\\n\\\\n\\\\tObject.keys(env).forEach(key => {\\\\n\\\\t\\\\tcreateDebug[key] = env[key];\\\\n\\\\t});\\\\n\\\\n\\\\t/**\\\\n\\\\t* The currently active debug mode names, and names to skip.\\\\n\\\\t*/\\\\n\\\\n\\\\tcreateDebug.names = [];\\\\n\\\\tcreateDebug.skips = [];\\\\n\\\\n\\\\t/**\\\\n\\\\t* Map of special \\\\\\\"%n\\\\\\\" handling functions, for the debug \\\\\\\"format\\\\\\\" argument.\\\\n\\\\t*\\\\n\\\\t* Valid key names are a single, lower or upper-case letter, i.e. \\\\\\\"n\\\\\\\" and \\\\\\\"N\\\\\\\".\\\\n\\\\t*/\\\\n\\\\tcreateDebug.formatters = {};\\\\n\\\\n\\\\t/**\\\\n\\\\t* Selects a color for a debug namespace\\\\n\\\\t* @param {String} namespace The namespace string for the for the debug instance to be colored\\\\n\\\\t* @return {Number|String} An ANSI color code for the given namespace\\\\n\\\\t* @api private\\\\n\\\\t*/\\\\n\\\\tfunction selectColor(namespace) {\\\\n\\\\t\\\\tlet hash = 0;\\\\n\\\\n\\\\t\\\\tfor (let i = 0; i < namespace.length; i++) {\\\\n\\\\t\\\\t\\\\thash = ((hash << 5) - hash) + namespace.charCodeAt(i);\\\\n\\\\t\\\\t\\\\thash |= 0; // Convert to 32bit integer\\\\n\\\\t\\\\t}\\\\n\\\\n\\\\t\\\\treturn createDebug.colors[Math.abs(hash) % createDebug.colors.length];\\\\n\\\\t}\\\\n\\\\tcreateDebug.selectColor = selectColor;\\\\n\\\\n\\\\t/**\\\\n\\\\t* Create a debugger with the given `namespace`.\\\\n\\\\t*\\\\n\\\\t* @param {String} namespace\\\\n\\\\t* @return {Function}\\\\n\\\\t* @api public\\\\n\\\\t*/\\\\n\\\\tfunction createDebug(namespace) {\\\\n\\\\t\\\\tlet prevTime;\\\\n\\\\t\\\\tlet enableOverride = null;\\\\n\\\\t\\\\tlet namespacesCache;\\\\n\\\\t\\\\tlet enabledCache;\\\\n\\\\n\\\\t\\\\tfunction debug(...args) {\\\\n\\\\t\\\\t\\\\t// Disabled?\\\\n\\\\t\\\\t\\\\tif (!debug.enabled) {\\\\n\\\\t\\\\t\\\\t\\\\treturn;\\\\n\\\\t\\\\t\\\\t}\\\\n\\\\n\\\\t\\\\t\\\\tconst self = debug;\\\\n\\\\n\\\\t\\\\t\\\\t// Set `diff` timestamp\\\\n\\\\t\\\\t\\\\tconst curr = Number(new Date());\\\\n\\\\t\\\\t\\\\tconst ms = curr - (prevTime || curr);\\\\n\\\\t\\\\t\\\\tself.diff = ms;\\\\n\\\\t\\\\t\\\\tself.prev = prevTime;\\\\n\\\\t\\\\t\\\\tself.curr = curr;\\\\n\\\\t\\\\t\\\\tprevTime = curr;\\\\n\\\\n\\\\t\\\\t\\\\targs[0] = createDebug.coerce(args[0]);\\\\n\\\\n\\\\t\\\\t\\\\tif (typeof args[0] !== 'string') {\\\\n\\\\t\\\\t\\\\t\\\\t// Anything else let's inspect with %O\\\\n\\\\t\\\\t\\\\t\\\\targs.unshift('%O');\\\\n\\\\t\\\\t\\\\t}\\\\n\\\\n\\\\t\\\\t\\\\t// Apply any `formatters` transformations\\\\n\\\\t\\\\t\\\\tlet index = 0;\\\\n\\\\t\\\\t\\\\targs[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {\\\\n\\\\t\\\\t\\\\t\\\\t// If we encounter an escaped % then don't increase the array index\\\\n\\\\t\\\\t\\\\t\\\\tif (match === '%%') {\\\\n\\\\t\\\\t\\\\t\\\\t\\\\treturn '%';\\\\n\\\\t\\\\t\\\\t\\\\t}\\\\n\\\\t\\\\t\\\\t\\\\tindex++;\\\\n\\\\t\\\\t\\\\t\\\\tconst formatter = createDebug.formatters[format];\\\\n\\\\t\\\\t\\\\t\\\\tif (typeof formatter === 'function') {\\\\n\\\\t\\\\t\\\\t\\\\t\\\\tconst val = args[index];\\\\n\\\\t\\\\t\\\\t\\\\t\\\\tmatch = formatter.call(self, val);\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t// Now we need to remove `args[index]` since it's inlined in the `format`\\\\n\\\\t\\\\t\\\\t\\\\t\\\\targs.splice(index, 1);\\\\n\\\\t\\\\t\\\\t\\\\t\\\\tindex--;\\\\n\\\\t\\\\t\\\\t\\\\t}\\\\n\\\\t\\\\t\\\\t\\\\treturn match;\\\\n\\\\t\\\\t\\\\t});\\\\n\\\\n\\\\t\\\\t\\\\t// Apply env-specific formatting (colors, etc.)\\\\n\\\\t\\\\t\\\\tcreateDebug.formatArgs.call(self, args);\\\\n\\\\n\\\\t\\\\t\\\\tconst logFn = self.log || createDebug.log;\\\\n\\\\t\\\\t\\\\tlogFn.apply(self, args);\\\\n\\\\t\\\\t}\\\\n\\\\n\\\\t\\\\tdebug.namespace = namespace;\\\\n\\\\t\\\\tdebug.useColors = createDebug.useColors();\\\\n\\\\t\\\\tdebug.color = createDebug.selectColor(namespace);\\\\n\\\\t\\\\tdebug.extend = extend;\\\\n\\\\t\\\\tdebug.destroy = createDebug.destroy; // XXX Temporary. Will be removed in the next major release.\\\\n\\\\n\\\\t\\\\tObject.defineProperty(debug, 'enabled', {\\\\n\\\\t\\\\t\\\\tenumerable: true,\\\\n\\\\t\\\\t\\\\tconfigurable: false,\\\\n\\\\t\\\\t\\\\tget: () => {\\\\n\\\\t\\\\t\\\\t\\\\tif (enableOverride !== null) {\\\\n\\\\t\\\\t\\\\t\\\\t\\\\treturn enableOverride;\\\\n\\\\t\\\\t\\\\t\\\\t}\\\\n\\\\t\\\\t\\\\t\\\\tif (namespacesCache !== createDebug.namespaces) {\\\\n\\\\t\\\\t\\\\t\\\\t\\\\tnamespacesCache = createDebug.namespaces;\\\\n\\\\t\\\\t\\\\t\\\\t\\\\tenabledCache = createDebug.enabled(namespace);\\\\n\\\\t\\\\t\\\\t\\\\t}\\\\n\\\\n\\\\t\\\\t\\\\t\\\\treturn enabledCache;\\\\n\\\\t\\\\t\\\\t},\\\\n\\\\t\\\\t\\\\tset: v => {\\\\n\\\\t\\\\t\\\\t\\\\tenableOverride = v;\\\\n\\\\t\\\\t\\\\t}\\\\n\\\\t\\\\t});\\\\n\\\\n\\\\t\\\\t// Env-specific initialization logic for debug instances\\\\n\\\\t\\\\tif (typeof createDebug.init === 'function') {\\\\n\\\\t\\\\t\\\\tcreateDebug.init(debug);\\\\n\\\\t\\\\t}\\\\n\\\\n\\\\t\\\\treturn debug;\\\\n\\\\t}\\\\n\\\\n\\\\tfunction extend(namespace, delimiter) {\\\\n\\\\t\\\\tconst newDebug = createDebug(this.namespace + (typeof delimiter === 'undefined' ? ':' : delimiter) + namespace);\\\\n\\\\t\\\\tnewDebug.log = this.log;\\\\n\\\\t\\\\treturn newDebug;\\\\n\\\\t}\\\\n\\\\n\\\\t/**\\\\n\\\\t* Enables a debug mode by namespaces. This can include modes\\\\n\\\\t* separated by a colon and wildcards.\\\\n\\\\t*\\\\n\\\\t* @param {String} namespaces\\\\n\\\\t* @api public\\\\n\\\\t*/\\\\n\\\\tfunction enable(namespaces) {\\\\n\\\\t\\\\tcreateDebug.save(namespaces);\\\\n\\\\t\\\\tcreateDebug.namespaces = namespaces;\\\\n\\\\n\\\\t\\\\tcreateDebug.names = [];\\\\n\\\\t\\\\tcreateDebug.skips = [];\\\\n\\\\n\\\\t\\\\tlet i;\\\\n\\\\t\\\\tconst split = (typeof namespaces === 'string' ? namespaces : '').split(/[\\\\\\\\s,]+/);\\\\n\\\\t\\\\tconst len = split.length;\\\\n\\\\n\\\\t\\\\tfor (i = 0; i < len; i++) {\\\\n\\\\t\\\\t\\\\tif (!split[i]) {\\\\n\\\\t\\\\t\\\\t\\\\t// ignore empty strings\\\\n\\\\t\\\\t\\\\t\\\\tcontinue;\\\\n\\\\t\\\\t\\\\t}\\\\n\\\\n\\\\t\\\\t\\\\tnamespaces = split[i].replace(/\\\\\\\\*/g, '.*?');\\\\n\\\\n\\\\t\\\\t\\\\tif (namespaces[0] === '-') {\\\\n\\\\t\\\\t\\\\t\\\\tcreateDebug.skips.push(new RegExp('^' + namespaces.substr(1) + '$'));\\\\n\\\\t\\\\t\\\\t} else {\\\\n\\\\t\\\\t\\\\t\\\\tcreateDebug.names.push(new RegExp('^' + namespaces + '$'));\\\\n\\\\t\\\\t\\\\t}\\\\n\\\\t\\\\t}\\\\n\\\\t}\\\\n\\\\n\\\\t/**\\\\n\\\\t* Disable debug output.\\\\n\\\\t*\\\\n\\\\t* @return {String} namespaces\\\\n\\\\t* @api public\\\\n\\\\t*/\\\\n\\\\tfunction disable() {\\\\n\\\\t\\\\tconst namespaces = [\\\\n\\\\t\\\\t\\\\t...createDebug.names.map(toNamespace),\\\\n\\\\t\\\\t\\\\t...createDebug.skips.map(toNamespace).map(namespace => '-' + namespace)\\\\n\\\\t\\\\t].join(',');\\\\n\\\\t\\\\tcreateDebug.enable('');\\\\n\\\\t\\\\treturn namespaces;\\\\n\\\\t}\\\\n\\\\n\\\\t/**\\\\n\\\\t* Returns true if the given mode name is enabled, false otherwise.\\\\n\\\\t*\\\\n\\\\t* @param {String} name\\\\n\\\\t* @return {Boolean}\\\\n\\\\t* @api public\\\\n\\\\t*/\\\\n\\\\tfunction enabled(name) {\\\\n\\\\t\\\\tif (name[name.length - 1] === '*') {\\\\n\\\\t\\\\t\\\\treturn true;\\\\n\\\\t\\\\t}\\\\n\\\\n\\\\t\\\\tlet i;\\\\n\\\\t\\\\tlet len;\\\\n\\\\n\\\\t\\\\tfor (i = 0, len = createDebug.skips.length; i < len; i++) {\\\\n\\\\t\\\\t\\\\tif (createDebug.skips[i].test(name)) {\\\\n\\\\t\\\\t\\\\t\\\\treturn false;\\\\n\\\\t\\\\t\\\\t}\\\\n\\\\t\\\\t}\\\\n\\\\n\\\\t\\\\tfor (i = 0, len = createDebug.names.length; i < len; i++) {\\\\n\\\\t\\\\t\\\\tif (createDebug.names[i].test(name)) {\\\\n\\\\t\\\\t\\\\t\\\\treturn true;\\\\n\\\\t\\\\t\\\\t}\\\\n\\\\t\\\\t}\\\\n\\\\n\\\\t\\\\treturn false;\\\\n\\\\t}\\\\n\\\\n\\\\t/**\\\\n\\\\t* Convert regexp to namespace\\\\n\\\\t*\\\\n\\\\t* @param {RegExp} regxep\\\\n\\\\t* @return {String} namespace\\\\n\\\\t* @api private\\\\n\\\\t*/\\\\n\\\\tfunction toNamespace(regexp) {\\\\n\\\\t\\\\treturn regexp.toString()\\\\n\\\\t\\\\t\\\\t.substring(2, regexp.toString().length - 2)\\\\n\\\\t\\\\t\\\\t.replace(/\\\\\\\\.\\\\\\\\*\\\\\\\\?$/, '*');\\\\n\\\\t}\\\\n\\\\n\\\\t/**\\\\n\\\\t* Coerce `val`.\\\\n\\\\t*\\\\n\\\\t* @param {Mixed} val\\\\n\\\\t* @return {Mixed}\\\\n\\\\t* @api private\\\\n\\\\t*/\\\\n\\\\tfunction coerce(val) {\\\\n\\\\t\\\\tif (val instanceof Error) {\\\\n\\\\t\\\\t\\\\treturn val.stack || val.message;\\\\n\\\\t\\\\t}\\\\n\\\\t\\\\treturn val;\\\\n\\\\t}\\\\n\\\\n\\\\t/**\\\\n\\\\t* XXX DO NOT USE. This is a temporary stub function.\\\\n\\\\t* XXX It WILL be removed in the next major release.\\\\n\\\\t*/\\\\n\\\\tfunction destroy() {\\\\n\\\\t\\\\tconsole.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');\\\\n\\\\t}\\\\n\\\\n\\\\tcreateDebug.enable(createDebug.load());\\\\n\\\\n\\\\treturn createDebug;\\\\n}\\\\n\\\\nmodule.exports = setup;\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/threads/node_modules/debug/src/common.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/threads/node_modules/ms/index.js\\\":\\n/*!*******************************************************!*\\\\\\n !*** ./node_modules/threads/node_modules/ms/index.js ***!\\n \\\\*******************************************************/\\n/*! no static exports found */\\n/***/ (function(module, exports) {\\n\\neval(\\\"/**\\\\n * Helpers.\\\\n */\\\\n\\\\nvar s = 1000;\\\\nvar m = s * 60;\\\\nvar h = m * 60;\\\\nvar d = h * 24;\\\\nvar w = d * 7;\\\\nvar y = d * 365.25;\\\\n\\\\n/**\\\\n * Parse or format the given `val`.\\\\n *\\\\n * Options:\\\\n *\\\\n * - `long` verbose formatting [false]\\\\n *\\\\n * @param {String|Number} val\\\\n * @param {Object} [options]\\\\n * @throws {Error} throw an error if val is not a non-empty string or a number\\\\n * @return {String|Number}\\\\n * @api public\\\\n */\\\\n\\\\nmodule.exports = function(val, options) {\\\\n options = options || {};\\\\n var type = typeof val;\\\\n if (type === 'string' && val.length > 0) {\\\\n return parse(val);\\\\n } else if (type === 'number' && isFinite(val)) {\\\\n return options.long ? fmtLong(val) : fmtShort(val);\\\\n }\\\\n throw new Error(\\\\n 'val is not a non-empty string or a valid number. val=' +\\\\n JSON.stringify(val)\\\\n );\\\\n};\\\\n\\\\n/**\\\\n * Parse the given `str` and return milliseconds.\\\\n *\\\\n * @param {String} str\\\\n * @return {Number}\\\\n * @api private\\\\n */\\\\n\\\\nfunction parse(str) {\\\\n str = String(str);\\\\n if (str.length > 100) {\\\\n return;\\\\n }\\\\n var match = /^(-?(?:\\\\\\\\d+)?\\\\\\\\.?\\\\\\\\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(\\\\n str\\\\n );\\\\n if (!match) {\\\\n return;\\\\n }\\\\n var n = parseFloat(match[1]);\\\\n var type = (match[2] || 'ms').toLowerCase();\\\\n switch (type) {\\\\n case 'years':\\\\n case 'year':\\\\n case 'yrs':\\\\n case 'yr':\\\\n case 'y':\\\\n return n * y;\\\\n case 'weeks':\\\\n case 'week':\\\\n case 'w':\\\\n return n * w;\\\\n case 'days':\\\\n case 'day':\\\\n case 'd':\\\\n return n * d;\\\\n case 'hours':\\\\n case 'hour':\\\\n case 'hrs':\\\\n case 'hr':\\\\n case 'h':\\\\n return n * h;\\\\n case 'minutes':\\\\n case 'minute':\\\\n case 'mins':\\\\n case 'min':\\\\n case 'm':\\\\n return n * m;\\\\n case 'seconds':\\\\n case 'second':\\\\n case 'secs':\\\\n case 'sec':\\\\n case 's':\\\\n return n * s;\\\\n case 'milliseconds':\\\\n case 'millisecond':\\\\n case 'msecs':\\\\n case 'msec':\\\\n case 'ms':\\\\n return n;\\\\n default:\\\\n return undefined;\\\\n }\\\\n}\\\\n\\\\n/**\\\\n * Short format for `ms`.\\\\n *\\\\n * @param {Number} ms\\\\n * @return {String}\\\\n * @api private\\\\n */\\\\n\\\\nfunction fmtShort(ms) {\\\\n var msAbs = Math.abs(ms);\\\\n if (msAbs >= d) {\\\\n return Math.round(ms / d) + 'd';\\\\n }\\\\n if (msAbs >= h) {\\\\n return Math.round(ms / h) + 'h';\\\\n }\\\\n if (msAbs >= m) {\\\\n return Math.round(ms / m) + 'm';\\\\n }\\\\n if (msAbs >= s) {\\\\n return Math.round(ms / s) + 's';\\\\n }\\\\n return ms + 'ms';\\\\n}\\\\n\\\\n/**\\\\n * Long format for `ms`.\\\\n *\\\\n * @param {Number} ms\\\\n * @return {String}\\\\n * @api private\\\\n */\\\\n\\\\nfunction fmtLong(ms) {\\\\n var msAbs = Math.abs(ms);\\\\n if (msAbs >= d) {\\\\n return plural(ms, msAbs, d, 'day');\\\\n }\\\\n if (msAbs >= h) {\\\\n return plural(ms, msAbs, h, 'hour');\\\\n }\\\\n if (msAbs >= m) {\\\\n return plural(ms, msAbs, m, 'minute');\\\\n }\\\\n if (msAbs >= s) {\\\\n return plural(ms, msAbs, s, 'second');\\\\n }\\\\n return ms + ' ms';\\\\n}\\\\n\\\\n/**\\\\n * Pluralization helper.\\\\n */\\\\n\\\\nfunction plural(ms, msAbs, n, name) {\\\\n var isPlural = msAbs >= n * 1.5;\\\\n return Math.round(ms / n) + ' ' + name + (isPlural ? 's' : '');\\\\n}\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/threads/node_modules/ms/index.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/to-arraybuffer/index.js\\\":\\n/*!**********************************************!*\\\\\\n !*** ./node_modules/to-arraybuffer/index.js ***!\\n \\\\**********************************************/\\n/*! no static exports found */\\n/***/ (function(module, exports, __webpack_require__) {\\n\\neval(\\\"var Buffer = __webpack_require__(/*! buffer */ \\\\\\\"./node_modules/node-libs-browser/node_modules/buffer/index.js\\\\\\\").Buffer\\\\n\\\\nmodule.exports = function (buf) {\\\\n\\\\t// If the buffer is backed by a Uint8Array, a faster version will work\\\\n\\\\tif (buf instanceof Uint8Array) {\\\\n\\\\t\\\\t// If the buffer isn't a subarray, return the underlying ArrayBuffer\\\\n\\\\t\\\\tif (buf.byteOffset === 0 && buf.byteLength === buf.buffer.byteLength) {\\\\n\\\\t\\\\t\\\\treturn buf.buffer\\\\n\\\\t\\\\t} else if (typeof buf.buffer.slice === 'function') {\\\\n\\\\t\\\\t\\\\t// Otherwise we need to get a proper copy\\\\n\\\\t\\\\t\\\\treturn buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.byteLength)\\\\n\\\\t\\\\t}\\\\n\\\\t}\\\\n\\\\n\\\\tif (Buffer.isBuffer(buf)) {\\\\n\\\\t\\\\t// This is the slow version that will work with any Buffer\\\\n\\\\t\\\\t// implementation (even in old browsers)\\\\n\\\\t\\\\tvar arrayCopy = new Uint8Array(buf.length)\\\\n\\\\t\\\\tvar len = buf.length\\\\n\\\\t\\\\tfor (var i = 0; i < len; i++) {\\\\n\\\\t\\\\t\\\\tarrayCopy[i] = buf[i]\\\\n\\\\t\\\\t}\\\\n\\\\t\\\\treturn arrayCopy.buffer\\\\n\\\\t} else {\\\\n\\\\t\\\\tthrow new Error('Argument must be a Buffer')\\\\n\\\\t}\\\\n}\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/to-arraybuffer/index.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/txml/node_modules/through2/through2.js\\\":\\n/*!*************************************************************!*\\\\\\n !*** ./node_modules/txml/node_modules/through2/through2.js ***!\\n \\\\*************************************************************/\\n/*! no static exports found */\\n/***/ (function(module, exports, __webpack_require__) {\\n\\neval(\\\"/* WEBPACK VAR INJECTION */(function(process) {var Transform = __webpack_require__(/*! readable-stream */ \\\\\\\"./node_modules/readable-stream/readable-browser.js\\\\\\\").Transform\\\\n , inherits = __webpack_require__(/*! inherits */ \\\\\\\"./node_modules/inherits/inherits_browser.js\\\\\\\")\\\\n\\\\nfunction DestroyableTransform(opts) {\\\\n Transform.call(this, opts)\\\\n this._destroyed = false\\\\n}\\\\n\\\\ninherits(DestroyableTransform, Transform)\\\\n\\\\nDestroyableTransform.prototype.destroy = function(err) {\\\\n if (this._destroyed) return\\\\n this._destroyed = true\\\\n \\\\n var self = this\\\\n process.nextTick(function() {\\\\n if (err)\\\\n self.emit('error', err)\\\\n self.emit('close')\\\\n })\\\\n}\\\\n\\\\n// a noop _transform function\\\\nfunction noop (chunk, enc, callback) {\\\\n callback(null, chunk)\\\\n}\\\\n\\\\n\\\\n// create a new export function, used by both the main export and\\\\n// the .ctor export, contains common logic for dealing with arguments\\\\nfunction through2 (construct) {\\\\n return function (options, transform, flush) {\\\\n if (typeof options == 'function') {\\\\n flush = transform\\\\n transform = options\\\\n options = {}\\\\n }\\\\n\\\\n if (typeof transform != 'function')\\\\n transform = noop\\\\n\\\\n if (typeof flush != 'function')\\\\n flush = null\\\\n\\\\n return construct(options, transform, flush)\\\\n }\\\\n}\\\\n\\\\n\\\\n// main export, just make me a transform stream!\\\\nmodule.exports = through2(function (options, transform, flush) {\\\\n var t2 = new DestroyableTransform(options)\\\\n\\\\n t2._transform = transform\\\\n\\\\n if (flush)\\\\n t2._flush = flush\\\\n\\\\n return t2\\\\n})\\\\n\\\\n\\\\n// make me a reusable prototype that I can `new`, or implicitly `new`\\\\n// with a constructor call\\\\nmodule.exports.ctor = through2(function (options, transform, flush) {\\\\n function Through2 (override) {\\\\n if (!(this instanceof Through2))\\\\n return new Through2(override)\\\\n\\\\n this.options = Object.assign({}, options, override)\\\\n\\\\n DestroyableTransform.call(this, this.options)\\\\n }\\\\n\\\\n inherits(Through2, DestroyableTransform)\\\\n\\\\n Through2.prototype._transform = transform\\\\n\\\\n if (flush)\\\\n Through2.prototype._flush = flush\\\\n\\\\n return Through2\\\\n})\\\\n\\\\n\\\\nmodule.exports.obj = through2(function (options, transform, flush) {\\\\n var t2 = new DestroyableTransform(Object.assign({ objectMode: true, highWaterMark: 16 }, options))\\\\n\\\\n t2._transform = transform\\\\n\\\\n if (flush)\\\\n t2._flush = flush\\\\n\\\\n return t2\\\\n})\\\\n\\\\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../process/browser.js */ \\\\\\\"./node_modules/process/browser.js\\\\\\\")))\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/txml/node_modules/through2/through2.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/txml/tXml.js\\\":\\n/*!***********************************!*\\\\\\n !*** ./node_modules/txml/tXml.js ***!\\n \\\\***********************************/\\n/*! no static exports found */\\n/***/ (function(module, exports, __webpack_require__) {\\n\\neval(\\\"// ==ClosureCompiler==\\\\n// @output_file_name default.js\\\\n// @compilation_level SIMPLE_OPTIMIZATIONS\\\\n// ==/ClosureCompiler==\\\\n\\\\n/**\\\\n * @author: Tobias Nickel\\\\n * @created: 06.04.2015\\\\n * I needed a small xmlparser chat can be used in a worker.\\\\n */\\\\n\\\\n/**\\\\n * @typedef tNode \\\\n * @property {string} tagName \\\\n * @property {object} [attributes] \\\\n * @property {tNode|string|number[]} children \\\\n **/\\\\n\\\\n/**\\\\n * parseXML / html into a DOM Object. with no validation and some failur tolerance\\\\n * @param {string} S your XML to parse\\\\n * @param options {object} all other options:\\\\n * searchId {string} the id of a single element, that should be returned. using this will increase the speed rapidly\\\\n * filter {function} filter method, as you know it from Array.filter. but is goes throw the DOM.\\\\n\\\\n * @return {tNode[]}\\\\n */\\\\nfunction tXml(S, options) {\\\\n \\\\\\\"use strict\\\\\\\";\\\\n options = options || {};\\\\n\\\\n var pos = options.pos || 0;\\\\n\\\\n var openBracket = \\\\\\\"<\\\\\\\";\\\\n var openBracketCC = \\\\\\\"<\\\\\\\".charCodeAt(0);\\\\n var closeBracket = \\\\\\\">\\\\\\\";\\\\n var closeBracketCC = \\\\\\\">\\\\\\\".charCodeAt(0);\\\\n var minus = \\\\\\\"-\\\\\\\";\\\\n var minusCC = \\\\\\\"-\\\\\\\".charCodeAt(0);\\\\n var slash = \\\\\\\"/\\\\\\\";\\\\n var slashCC = \\\\\\\"/\\\\\\\".charCodeAt(0);\\\\n var exclamation = '!';\\\\n var exclamationCC = '!'.charCodeAt(0);\\\\n var singleQuote = \\\\\\\"'\\\\\\\";\\\\n var singleQuoteCC = \\\\\\\"'\\\\\\\".charCodeAt(0);\\\\n var doubleQuote = '\\\\\\\"';\\\\n var doubleQuoteCC = '\\\\\\\"'.charCodeAt(0);\\\\n\\\\n /**\\\\n * parsing a list of entries\\\\n */\\\\n function parseChildren() {\\\\n var children = [];\\\\n while (S[pos]) {\\\\n if (S.charCodeAt(pos) == openBracketCC) {\\\\n if (S.charCodeAt(pos + 1) === slashCC) {\\\\n pos = S.indexOf(closeBracket, pos);\\\\n if (pos + 1) pos += 1\\\\n return children;\\\\n } else if (S.charCodeAt(pos + 1) === exclamationCC) {\\\\n if (S.charCodeAt(pos + 2) == minusCC) {\\\\n //comment support\\\\n while (pos !== -1 && !(S.charCodeAt(pos) === closeBracketCC && S.charCodeAt(pos - 1) == minusCC && S.charCodeAt(pos - 2) == minusCC && pos != -1)) {\\\\n pos = S.indexOf(closeBracket, pos + 1);\\\\n }\\\\n if (pos === -1) {\\\\n pos = S.length\\\\n }\\\\n } else {\\\\n // doctypesupport\\\\n pos += 2;\\\\n while (S.charCodeAt(pos) !== closeBracketCC && S[pos]) {\\\\n pos++;\\\\n }\\\\n }\\\\n pos++;\\\\n continue;\\\\n }\\\\n var node = parseNode();\\\\n children.push(node);\\\\n } else {\\\\n var text = parseText()\\\\n if (text.trim().length > 0)\\\\n children.push(text);\\\\n pos++;\\\\n }\\\\n }\\\\n return children;\\\\n }\\\\n\\\\n /**\\\\n * returns the text outside of texts until the first '<'\\\\n */\\\\n function parseText() {\\\\n var start = pos;\\\\n pos = S.indexOf(openBracket, pos) - 1;\\\\n if (pos === -2)\\\\n pos = S.length;\\\\n return S.slice(start, pos + 1);\\\\n }\\\\n /**\\\\n * returns text until the first nonAlphebetic letter\\\\n */\\\\n var nameSpacer = '\\\\\\\\n\\\\\\\\t>/= ';\\\\n\\\\n function parseName() {\\\\n var start = pos;\\\\n while (nameSpacer.indexOf(S[pos]) === -1 && S[pos]) {\\\\n pos++;\\\\n }\\\\n return S.slice(start, pos);\\\\n }\\\\n /**\\\\n * is parsing a node, including tagName, Attributes and its children,\\\\n * to parse children it uses the parseChildren again, that makes the parsing recursive\\\\n */\\\\n var NoChildNodes = options.noChildNodes || ['img', 'br', 'input', 'meta', 'link'];\\\\n\\\\n function parseNode() {\\\\n pos++;\\\\n const tagName = parseName();\\\\n const attributes = {};\\\\n let children = [];\\\\n\\\\n // parsing attributes\\\\n while (S.charCodeAt(pos) !== closeBracketCC && S[pos]) {\\\\n var c = S.charCodeAt(pos);\\\\n if ((c > 64 && c < 91) || (c > 96 && c < 123)) {\\\\n //if('abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'.indexOf(S[pos])!==-1 ){\\\\n var name = parseName();\\\\n // search beginning of the string\\\\n var code = S.charCodeAt(pos);\\\\n while (code && code !== singleQuoteCC && code !== doubleQuoteCC && !((code > 64 && code < 91) || (code > 96 && code < 123)) && code !== closeBracketCC) {\\\\n pos++;\\\\n code = S.charCodeAt(pos);\\\\n }\\\\n if (code === singleQuoteCC || code === doubleQuoteCC) {\\\\n var value = parseString();\\\\n if (pos === -1) {\\\\n return {\\\\n tagName,\\\\n attributes,\\\\n children,\\\\n };\\\\n }\\\\n } else {\\\\n value = null;\\\\n pos--;\\\\n }\\\\n attributes[name] = value;\\\\n }\\\\n pos++;\\\\n }\\\\n // optional parsing of children\\\\n if (S.charCodeAt(pos - 1) !== slashCC) {\\\\n if (tagName == \\\\\\\"script\\\\\\\") {\\\\n var start = pos + 1;\\\\n pos = S.indexOf('</script>', pos);\\\\n children = [S.slice(start, pos - 1)];\\\\n pos += 9;\\\\n } else if (tagName == \\\\\\\"style\\\\\\\") {\\\\n var start = pos + 1;\\\\n pos = S.indexOf('</style>', pos);\\\\n children = [S.slice(start, pos - 1)];\\\\n pos += 8;\\\\n } else if (NoChildNodes.indexOf(tagName) == -1) {\\\\n pos++;\\\\n children = parseChildren(name);\\\\n }\\\\n } else {\\\\n pos++;\\\\n }\\\\n return {\\\\n tagName,\\\\n attributes,\\\\n children,\\\\n };\\\\n }\\\\n\\\\n /**\\\\n * is parsing a string, that starts with a char and with the same usually ' or \\\\\\\"\\\\n */\\\\n\\\\n function parseString() {\\\\n var startChar = S[pos];\\\\n var startpos = ++pos;\\\\n pos = S.indexOf(startChar, startpos)\\\\n return S.slice(startpos, pos);\\\\n }\\\\n\\\\n /**\\\\n *\\\\n */\\\\n function findElements() {\\\\n var r = new RegExp('\\\\\\\\\\\\\\\\s' + options.attrName + '\\\\\\\\\\\\\\\\s*=[\\\\\\\\'\\\\\\\"]' + options.attrValue + '[\\\\\\\\'\\\\\\\"]').exec(S)\\\\n if (r) {\\\\n return r.index;\\\\n } else {\\\\n return -1;\\\\n }\\\\n }\\\\n\\\\n var out = null;\\\\n if (options.attrValue !== undefined) {\\\\n options.attrName = options.attrName || 'id';\\\\n var out = [];\\\\n\\\\n while ((pos = findElements()) !== -1) {\\\\n pos = S.lastIndexOf('<', pos);\\\\n if (pos !== -1) {\\\\n out.push(parseNode());\\\\n }\\\\n S = S.substr(pos);\\\\n pos = 0;\\\\n }\\\\n } else if (options.parseNode) {\\\\n out = parseNode()\\\\n } else {\\\\n out = parseChildren();\\\\n }\\\\n\\\\n if (options.filter) {\\\\n out = tXml.filter(out, options.filter);\\\\n }\\\\n\\\\n if (options.setPos) {\\\\n out.pos = pos;\\\\n }\\\\n\\\\n return out;\\\\n}\\\\n\\\\n/**\\\\n * transform the DomObject to an object that is like the object of PHPs simplexmp_load_*() methods.\\\\n * this format helps you to write that is more likely to keep your programm working, even if there a small changes in the XML schema.\\\\n * be aware, that it is not possible to reproduce the original xml from a simplified version, because the order of elements is not saved.\\\\n * therefore your programm will be more flexible and easyer to read.\\\\n *\\\\n * @param {tNode[]} children the childrenList\\\\n */\\\\ntXml.simplify = function simplify(children) {\\\\n var out = {};\\\\n if (!children.length) {\\\\n return '';\\\\n }\\\\n\\\\n if (children.length === 1 && typeof children[0] == 'string') {\\\\n return children[0];\\\\n }\\\\n // map each object\\\\n children.forEach(function(child) {\\\\n if (typeof child !== 'object') {\\\\n return;\\\\n }\\\\n if (!out[child.tagName])\\\\n out[child.tagName] = [];\\\\n var kids = tXml.simplify(child.children||[]);\\\\n out[child.tagName].push(kids);\\\\n if (child.attributes) {\\\\n kids._attributes = child.attributes;\\\\n }\\\\n });\\\\n\\\\n for (var i in out) {\\\\n if (out[i].length == 1) {\\\\n out[i] = out[i][0];\\\\n }\\\\n }\\\\n\\\\n return out;\\\\n};\\\\n\\\\n/**\\\\n * behaves the same way as Array.filter, if the filter method return true, the element is in the resultList\\\\n * @params children{Array} the children of a node\\\\n * @param f{function} the filter method\\\\n */\\\\ntXml.filter = function(children, f) {\\\\n var out = [];\\\\n children.forEach(function(child) {\\\\n if (typeof(child) === 'object' && f(child)) out.push(child);\\\\n if (child.children) {\\\\n var kids = tXml.filter(child.children, f);\\\\n out = out.concat(kids);\\\\n }\\\\n });\\\\n return out;\\\\n};\\\\n\\\\n/**\\\\n * stringify a previously parsed string object.\\\\n * this is useful,\\\\n * 1. to remove whitespaces\\\\n * 2. to recreate xml data, with some changed data.\\\\n * @param {tNode} O the object to Stringify\\\\n */\\\\ntXml.stringify = function TOMObjToXML(O) {\\\\n var out = '';\\\\n\\\\n function writeChildren(O) {\\\\n if (O)\\\\n for (var i = 0; i < O.length; i++) {\\\\n if (typeof O[i] == 'string') {\\\\n out += O[i].trim();\\\\n } else {\\\\n writeNode(O[i]);\\\\n }\\\\n }\\\\n }\\\\n\\\\n function writeNode(N) {\\\\n out += \\\\\\\"<\\\\\\\" + N.tagName;\\\\n for (var i in N.attributes) {\\\\n if (N.attributes[i] === null) {\\\\n out += ' ' + i;\\\\n } else if (N.attributes[i].indexOf('\\\\\\\"') === -1) {\\\\n out += ' ' + i + '=\\\\\\\"' + N.attributes[i].trim() + '\\\\\\\"';\\\\n } else {\\\\n out += ' ' + i + \\\\\\\"='\\\\\\\" + N.attributes[i].trim() + \\\\\\\"'\\\\\\\";\\\\n }\\\\n }\\\\n out += '>';\\\\n writeChildren(N.children);\\\\n out += '</' + N.tagName + '>';\\\\n }\\\\n writeChildren(O);\\\\n\\\\n return out;\\\\n};\\\\n\\\\n\\\\n/**\\\\n * use this method to read the textcontent, of some node.\\\\n * It is great if you have mixed content like:\\\\n * this text has some <b>big</b> text and a <a href=''>link</a>\\\\n * @return {string}\\\\n */\\\\ntXml.toContentString = function(tDom) {\\\\n if (Array.isArray(tDom)) {\\\\n var out = '';\\\\n tDom.forEach(function(e) {\\\\n out += ' ' + tXml.toContentString(e);\\\\n out = out.trim();\\\\n });\\\\n return out;\\\\n } else if (typeof tDom === 'object') {\\\\n return tXml.toContentString(tDom.children)\\\\n } else {\\\\n return ' ' + tDom;\\\\n }\\\\n};\\\\n\\\\ntXml.getElementById = function(S, id, simplified) {\\\\n var out = tXml(S, {\\\\n attrValue: id\\\\n });\\\\n return simplified ? tXml.simplify(out) : out[0];\\\\n};\\\\n/**\\\\n * A fast parsing method, that not realy finds by classname,\\\\n * more: the class attribute contains XXX\\\\n * @param\\\\n */\\\\ntXml.getElementsByClassName = function(S, classname, simplified) {\\\\n const out = tXml(S, {\\\\n attrName: 'class',\\\\n attrValue: '[a-zA-Z0-9\\\\\\\\-\\\\\\\\s ]*' + classname + '[a-zA-Z0-9\\\\\\\\-\\\\\\\\s ]*'\\\\n });\\\\n return simplified ? tXml.simplify(out) : out;\\\\n};\\\\n\\\\ntXml.parseStream = function(stream, offset) {\\\\n if (typeof offset === 'string') {\\\\n offset = offset.length + 2;\\\\n }\\\\n if (typeof stream === 'string') {\\\\n var fs = __webpack_require__(/*! fs */ \\\\\\\"./node_modules/node-libs-browser/mock/empty.js\\\\\\\");\\\\n stream = fs.createReadStream(stream, { start: offset });\\\\n offset = 0;\\\\n }\\\\n\\\\n var position = offset;\\\\n var data = '';\\\\n stream.on('data', function(chunk) {\\\\n data += chunk;\\\\n var lastPos = 0;\\\\n do {\\\\n position = data.indexOf('<', position) + 1;\\\\n if(!position) {\\\\n position = lastPos;\\\\n return;\\\\n }\\\\n if (data[position + 1] === '/') {\\\\n position = position + 1;\\\\n lastPos = pos;\\\\n continue;\\\\n }\\\\n var res = tXml(data, { pos: position-1, parseNode: true, setPos: true });\\\\n position = res.pos;\\\\n if (position > (data.length - 1) || position < lastPos) {\\\\n data = data.slice(lastPos);\\\\n position = 0;\\\\n lastPos = 0;\\\\n return;\\\\n } else {\\\\n stream.emit('xml', res);\\\\n lastPos = position;\\\\n }\\\\n } while (1);\\\\n });\\\\n stream.on('end', function() {\\\\n console.log('end')\\\\n });\\\\n return stream;\\\\n}\\\\n\\\\ntXml.transformStream = function (offset) {\\\\n // require through here, so it will not get added to webpack/browserify\\\\n const through2 = __webpack_require__(/*! through2 */ \\\\\\\"./node_modules/txml/node_modules/through2/through2.js\\\\\\\");\\\\n if (typeof offset === 'string') {\\\\n offset = offset.length + 2;\\\\n }\\\\n\\\\n var position = offset || 0;\\\\n var data = '';\\\\n const stream = through2({ readableObjectMode: true }, function (chunk, enc, callback) {\\\\n data += chunk;\\\\n var lastPos = 0;\\\\n do {\\\\n position = data.indexOf('<', position) + 1;\\\\n if (!position) {\\\\n position = lastPos;\\\\n return callback();;\\\\n }\\\\n if (data[position + 1] === '/') {\\\\n position = position + 1;\\\\n lastPos = pos;\\\\n continue;\\\\n }\\\\n var res = tXml(data, { pos: position - 1, parseNode: true, setPos: true });\\\\n position = res.pos;\\\\n if (position > (data.length - 1) || position < lastPos) {\\\\n data = data.slice(lastPos);\\\\n position = 0;\\\\n lastPos = 0;\\\\n return callback();;\\\\n } else {\\\\n this.push(res);\\\\n lastPos = position;\\\\n }\\\\n } while (1);\\\\n callback();\\\\n });\\\\n\\\\n return stream;\\\\n}\\\\n\\\\nif (true) {\\\\n module.exports = tXml;\\\\n tXml.xml = tXml;\\\\n}\\\\n//console.clear();\\\\n//console.log('here:',tXml.getElementById('<some><xml id=\\\\\\\"test\\\\\\\">dada</xml><that id=\\\\\\\"test\\\\\\\">value</that></some>','test'));\\\\n//console.log('here:',tXml.getElementsByClassName('<some><xml id=\\\\\\\"test\\\\\\\" class=\\\\\\\"sdf test jsalf\\\\\\\">dada</xml><that id=\\\\\\\"test\\\\\\\">value</that></some>','test'));\\\\n\\\\n/*\\\\nconsole.clear();\\\\ntXml(d,'content');\\\\n //some testCode\\\\nvar s = document.body.innerHTML.toLowerCase();\\\\nvar start = new Date().getTime();\\\\nvar o = tXml(s,'content');\\\\nvar end = new Date().getTime();\\\\n//console.log(JSON.stringify(o,undefined,'\\\\\\\\t'));\\\\nconsole.log(\\\\\\\"MILLISECONDS\\\\\\\",end-start);\\\\nvar nodeCount=document.querySelectorAll('*').length;\\\\nconsole.log('node count',nodeCount);\\\\nconsole.log(\\\\\\\"speed:\\\\\\\",(1000/(end-start))*nodeCount,'Nodes / second')\\\\n//console.log(JSON.stringify(tXml('<html><head><title>testPage</title></head><body><h1>TestPage</h1><p>this is a <b>test</b>page</p></body></html>'),undefined,'\\\\\\\\t'));\\\\nvar p = new DOMParser();\\\\nvar s2='<body>'+s+'</body>'\\\\nvar start2= new Date().getTime();\\\\nvar o2 = p.parseFromString(s2,'text/html').querySelector('#content')\\\\nvar end2=new Date().getTime();\\\\nconsole.log(\\\\\\\"MILLISECONDS\\\\\\\",end2-start2);\\\\n// */\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/txml/tXml.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/url/url.js\\\":\\n/*!*********************************!*\\\\\\n !*** ./node_modules/url/url.js ***!\\n \\\\*********************************/\\n/*! no static exports found */\\n/***/ (function(module, exports, __webpack_require__) {\\n\\n\\\"use strict\\\";\\neval(\\\"// Copyright Joyent, Inc. and other Node contributors.\\\\n//\\\\n// Permission is hereby granted, free of charge, to any person obtaining a\\\\n// copy of this software and associated documentation files (the\\\\n// \\\\\\\"Software\\\\\\\"), to deal in the Software without restriction, including\\\\n// without limitation the rights to use, copy, modify, merge, publish,\\\\n// distribute, sublicense, and/or sell copies of the Software, and to permit\\\\n// persons to whom the Software is furnished to do so, subject to the\\\\n// following conditions:\\\\n//\\\\n// The above copyright notice and this permission notice shall be included\\\\n// in all copies or substantial portions of the Software.\\\\n//\\\\n// THE SOFTWARE IS PROVIDED \\\\\\\"AS IS\\\\\\\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\\\\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\\\\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\\\\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\\\\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\\\\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\\\\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\\\\n\\\\n\\\\n\\\\nvar punycode = __webpack_require__(/*! punycode */ \\\\\\\"./node_modules/punycode/punycode.js\\\\\\\");\\\\nvar util = __webpack_require__(/*! ./util */ \\\\\\\"./node_modules/url/util.js\\\\\\\");\\\\n\\\\nexports.parse = urlParse;\\\\nexports.resolve = urlResolve;\\\\nexports.resolveObject = urlResolveObject;\\\\nexports.format = urlFormat;\\\\n\\\\nexports.Url = Url;\\\\n\\\\nfunction Url() {\\\\n this.protocol = null;\\\\n this.slashes = null;\\\\n this.auth = null;\\\\n this.host = null;\\\\n this.port = null;\\\\n this.hostname = null;\\\\n this.hash = null;\\\\n this.search = null;\\\\n this.query = null;\\\\n this.pathname = null;\\\\n this.path = null;\\\\n this.href = null;\\\\n}\\\\n\\\\n// Reference: RFC 3986, RFC 1808, RFC 2396\\\\n\\\\n// define these here so at least they only have to be\\\\n// compiled once on the first module load.\\\\nvar protocolPattern = /^([a-z0-9.+-]+:)/i,\\\\n portPattern = /:[0-9]*$/,\\\\n\\\\n // Special case for a simple path URL\\\\n simplePathPattern = /^(\\\\\\\\/\\\\\\\\/?(?!\\\\\\\\/)[^\\\\\\\\?\\\\\\\\s]*)(\\\\\\\\?[^\\\\\\\\s]*)?$/,\\\\n\\\\n // RFC 2396: characters reserved for delimiting URLs.\\\\n // We actually just auto-escape these.\\\\n delims = ['<', '>', '\\\\\\\"', '`', ' ', '\\\\\\\\r', '\\\\\\\\n', '\\\\\\\\t'],\\\\n\\\\n // RFC 2396: characters not allowed for various reasons.\\\\n unwise = ['{', '}', '|', '\\\\\\\\\\\\\\\\', '^', '`'].concat(delims),\\\\n\\\\n // Allowed by RFCs, but cause of XSS attacks. Always escape these.\\\\n autoEscape = ['\\\\\\\\''].concat(unwise),\\\\n // Characters that are never ever allowed in a hostname.\\\\n // Note that any invalid chars are also handled, but these\\\\n // are the ones that are *expected* to be seen, so we fast-path\\\\n // them.\\\\n nonHostChars = ['%', '/', '?', ';', '#'].concat(autoEscape),\\\\n hostEndingChars = ['/', '?', '#'],\\\\n hostnameMaxLen = 255,\\\\n hostnamePartPattern = /^[+a-z0-9A-Z_-]{0,63}$/,\\\\n hostnamePartStart = /^([+a-z0-9A-Z_-]{0,63})(.*)$/,\\\\n // protocols that can allow \\\\\\\"unsafe\\\\\\\" and \\\\\\\"unwise\\\\\\\" chars.\\\\n unsafeProtocol = {\\\\n 'javascript': true,\\\\n 'javascript:': true\\\\n },\\\\n // protocols that never have a hostname.\\\\n hostlessProtocol = {\\\\n 'javascript': true,\\\\n 'javascript:': true\\\\n },\\\\n // protocols that always contain a // bit.\\\\n slashedProtocol = {\\\\n 'http': true,\\\\n 'https': true,\\\\n 'ftp': true,\\\\n 'gopher': true,\\\\n 'file': true,\\\\n 'http:': true,\\\\n 'https:': true,\\\\n 'ftp:': true,\\\\n 'gopher:': true,\\\\n 'file:': true\\\\n },\\\\n querystring = __webpack_require__(/*! querystring */ \\\\\\\"./node_modules/querystring-es3/index.js\\\\\\\");\\\\n\\\\nfunction urlParse(url, parseQueryString, slashesDenoteHost) {\\\\n if (url && util.isObject(url) && url instanceof Url) return url;\\\\n\\\\n var u = new Url;\\\\n u.parse(url, parseQueryString, slashesDenoteHost);\\\\n return u;\\\\n}\\\\n\\\\nUrl.prototype.parse = function(url, parseQueryString, slashesDenoteHost) {\\\\n if (!util.isString(url)) {\\\\n throw new TypeError(\\\\\\\"Parameter 'url' must be a string, not \\\\\\\" + typeof url);\\\\n }\\\\n\\\\n // Copy chrome, IE, opera backslash-handling behavior.\\\\n // Back slashes before the query string get converted to forward slashes\\\\n // See: https://code.google.com/p/chromium/issues/detail?id=25916\\\\n var queryIndex = url.indexOf('?'),\\\\n splitter =\\\\n (queryIndex !== -1 && queryIndex < url.indexOf('#')) ? '?' : '#',\\\\n uSplit = url.split(splitter),\\\\n slashRegex = /\\\\\\\\\\\\\\\\/g;\\\\n uSplit[0] = uSplit[0].replace(slashRegex, '/');\\\\n url = uSplit.join(splitter);\\\\n\\\\n var rest = url;\\\\n\\\\n // trim before proceeding.\\\\n // This is to support parse stuff like \\\\\\\" http://foo.com \\\\\\\\n\\\\\\\"\\\\n rest = rest.trim();\\\\n\\\\n if (!slashesDenoteHost && url.split('#').length === 1) {\\\\n // Try fast path regexp\\\\n var simplePath = simplePathPattern.exec(rest);\\\\n if (simplePath) {\\\\n this.path = rest;\\\\n this.href = rest;\\\\n this.pathname = simplePath[1];\\\\n if (simplePath[2]) {\\\\n this.search = simplePath[2];\\\\n if (parseQueryString) {\\\\n this.query = querystring.parse(this.search.substr(1));\\\\n } else {\\\\n this.query = this.search.substr(1);\\\\n }\\\\n } else if (parseQueryString) {\\\\n this.search = '';\\\\n this.query = {};\\\\n }\\\\n return this;\\\\n }\\\\n }\\\\n\\\\n var proto = protocolPattern.exec(rest);\\\\n if (proto) {\\\\n proto = proto[0];\\\\n var lowerProto = proto.toLowerCase();\\\\n this.protocol = lowerProto;\\\\n rest = rest.substr(proto.length);\\\\n }\\\\n\\\\n // figure out if it's got a host\\\\n // user@server is *always* interpreted as a hostname, and url\\\\n // resolution will treat //foo/bar as host=foo,path=bar because that's\\\\n // how the browser resolves relative URLs.\\\\n if (slashesDenoteHost || proto || rest.match(/^\\\\\\\\/\\\\\\\\/[^@\\\\\\\\/]+@[^@\\\\\\\\/]+/)) {\\\\n var slashes = rest.substr(0, 2) === '//';\\\\n if (slashes && !(proto && hostlessProtocol[proto])) {\\\\n rest = rest.substr(2);\\\\n this.slashes = true;\\\\n }\\\\n }\\\\n\\\\n if (!hostlessProtocol[proto] &&\\\\n (slashes || (proto && !slashedProtocol[proto]))) {\\\\n\\\\n // there's a hostname.\\\\n // the first instance of /, ?, ;, or # ends the host.\\\\n //\\\\n // If there is an @ in the hostname, then non-host chars *are* allowed\\\\n // to the left of the last @ sign, unless some host-ending character\\\\n // comes *before* the @-sign.\\\\n // URLs are obnoxious.\\\\n //\\\\n // ex:\\\\n // http://a@b@c/ => user:a@b host:c\\\\n // http://a@b?@c => user:a host:c path:/?@c\\\\n\\\\n // v0.12 TODO(isaacs): This is not quite how Chrome does things.\\\\n // Review our test case against browsers more comprehensively.\\\\n\\\\n // find the first instance of any hostEndingChars\\\\n var hostEnd = -1;\\\\n for (var i = 0; i < hostEndingChars.length; i++) {\\\\n var hec = rest.indexOf(hostEndingChars[i]);\\\\n if (hec !== -1 && (hostEnd === -1 || hec < hostEnd))\\\\n hostEnd = hec;\\\\n }\\\\n\\\\n // at this point, either we have an explicit point where the\\\\n // auth portion cannot go past, or the last @ char is the decider.\\\\n var auth, atSign;\\\\n if (hostEnd === -1) {\\\\n // atSign can be anywhere.\\\\n atSign = rest.lastIndexOf('@');\\\\n } else {\\\\n // atSign must be in auth portion.\\\\n // http://a@b/c@d => host:b auth:a path:/c@d\\\\n atSign = rest.lastIndexOf('@', hostEnd);\\\\n }\\\\n\\\\n // Now we have a portion which is definitely the auth.\\\\n // Pull that off.\\\\n if (atSign !== -1) {\\\\n auth = rest.slice(0, atSign);\\\\n rest = rest.slice(atSign + 1);\\\\n this.auth = decodeURIComponent(auth);\\\\n }\\\\n\\\\n // the host is the remaining to the left of the first non-host char\\\\n hostEnd = -1;\\\\n for (var i = 0; i < nonHostChars.length; i++) {\\\\n var hec = rest.indexOf(nonHostChars[i]);\\\\n if (hec !== -1 && (hostEnd === -1 || hec < hostEnd))\\\\n hostEnd = hec;\\\\n }\\\\n // if we still have not hit it, then the entire thing is a host.\\\\n if (hostEnd === -1)\\\\n hostEnd = rest.length;\\\\n\\\\n this.host = rest.slice(0, hostEnd);\\\\n rest = rest.slice(hostEnd);\\\\n\\\\n // pull out port.\\\\n this.parseHost();\\\\n\\\\n // we've indicated that there is a hostname,\\\\n // so even if it's empty, it has to be present.\\\\n this.hostname = this.hostname || '';\\\\n\\\\n // if hostname begins with [ and ends with ]\\\\n // assume that it's an IPv6 address.\\\\n var ipv6Hostname = this.hostname[0] === '[' &&\\\\n this.hostname[this.hostname.length - 1] === ']';\\\\n\\\\n // validate a little.\\\\n if (!ipv6Hostname) {\\\\n var hostparts = this.hostname.split(/\\\\\\\\./);\\\\n for (var i = 0, l = hostparts.length; i < l; i++) {\\\\n var part = hostparts[i];\\\\n if (!part) continue;\\\\n if (!part.match(hostnamePartPattern)) {\\\\n var newpart = '';\\\\n for (var j = 0, k = part.length; j < k; j++) {\\\\n if (part.charCodeAt(j) > 127) {\\\\n // we replace non-ASCII char with a temporary placeholder\\\\n // we need this to make sure size of hostname is not\\\\n // broken by replacing non-ASCII by nothing\\\\n newpart += 'x';\\\\n } else {\\\\n newpart += part[j];\\\\n }\\\\n }\\\\n // we test again with ASCII char only\\\\n if (!newpart.match(hostnamePartPattern)) {\\\\n var validParts = hostparts.slice(0, i);\\\\n var notHost = hostparts.slice(i + 1);\\\\n var bit = part.match(hostnamePartStart);\\\\n if (bit) {\\\\n validParts.push(bit[1]);\\\\n notHost.unshift(bit[2]);\\\\n }\\\\n if (notHost.length) {\\\\n rest = '/' + notHost.join('.') + rest;\\\\n }\\\\n this.hostname = validParts.join('.');\\\\n break;\\\\n }\\\\n }\\\\n }\\\\n }\\\\n\\\\n if (this.hostname.length > hostnameMaxLen) {\\\\n this.hostname = '';\\\\n } else {\\\\n // hostnames are always lower case.\\\\n this.hostname = this.hostname.toLowerCase();\\\\n }\\\\n\\\\n if (!ipv6Hostname) {\\\\n // IDNA Support: Returns a punycoded representation of \\\\\\\"domain\\\\\\\".\\\\n // It only converts parts of the domain name that\\\\n // have non-ASCII characters, i.e. it doesn't matter if\\\\n // you call it with a domain that already is ASCII-only.\\\\n this.hostname = punycode.toASCII(this.hostname);\\\\n }\\\\n\\\\n var p = this.port ? ':' + this.port : '';\\\\n var h = this.hostname || '';\\\\n this.host = h + p;\\\\n this.href += this.host;\\\\n\\\\n // strip [ and ] from the hostname\\\\n // the host field still retains them, though\\\\n if (ipv6Hostname) {\\\\n this.hostname = this.hostname.substr(1, this.hostname.length - 2);\\\\n if (rest[0] !== '/') {\\\\n rest = '/' + rest;\\\\n }\\\\n }\\\\n }\\\\n\\\\n // now rest is set to the post-host stuff.\\\\n // chop off any delim chars.\\\\n if (!unsafeProtocol[lowerProto]) {\\\\n\\\\n // First, make 100% sure that any \\\\\\\"autoEscape\\\\\\\" chars get\\\\n // escaped, even if encodeURIComponent doesn't think they\\\\n // need to be.\\\\n for (var i = 0, l = autoEscape.length; i < l; i++) {\\\\n var ae = autoEscape[i];\\\\n if (rest.indexOf(ae) === -1)\\\\n continue;\\\\n var esc = encodeURIComponent(ae);\\\\n if (esc === ae) {\\\\n esc = escape(ae);\\\\n }\\\\n rest = rest.split(ae).join(esc);\\\\n }\\\\n }\\\\n\\\\n\\\\n // chop off from the tail first.\\\\n var hash = rest.indexOf('#');\\\\n if (hash !== -1) {\\\\n // got a fragment string.\\\\n this.hash = rest.substr(hash);\\\\n rest = rest.slice(0, hash);\\\\n }\\\\n var qm = rest.indexOf('?');\\\\n if (qm !== -1) {\\\\n this.search = rest.substr(qm);\\\\n this.query = rest.substr(qm + 1);\\\\n if (parseQueryString) {\\\\n this.query = querystring.parse(this.query);\\\\n }\\\\n rest = rest.slice(0, qm);\\\\n } else if (parseQueryString) {\\\\n // no query string, but parseQueryString still requested\\\\n this.search = '';\\\\n this.query = {};\\\\n }\\\\n if (rest) this.pathname = rest;\\\\n if (slashedProtocol[lowerProto] &&\\\\n this.hostname && !this.pathname) {\\\\n this.pathname = '/';\\\\n }\\\\n\\\\n //to support http.request\\\\n if (this.pathname || this.search) {\\\\n var p = this.pathname || '';\\\\n var s = this.search || '';\\\\n this.path = p + s;\\\\n }\\\\n\\\\n // finally, reconstruct the href based on what has been validated.\\\\n this.href = this.format();\\\\n return this;\\\\n};\\\\n\\\\n// format a parsed object into a url string\\\\nfunction urlFormat(obj) {\\\\n // ensure it's an object, and not a string url.\\\\n // If it's an obj, this is a no-op.\\\\n // this way, you can call url_format() on strings\\\\n // to clean up potentially wonky urls.\\\\n if (util.isString(obj)) obj = urlParse(obj);\\\\n if (!(obj instanceof Url)) return Url.prototype.format.call(obj);\\\\n return obj.format();\\\\n}\\\\n\\\\nUrl.prototype.format = function() {\\\\n var auth = this.auth || '';\\\\n if (auth) {\\\\n auth = encodeURIComponent(auth);\\\\n auth = auth.replace(/%3A/i, ':');\\\\n auth += '@';\\\\n }\\\\n\\\\n var protocol = this.protocol || '',\\\\n pathname = this.pathname || '',\\\\n hash = this.hash || '',\\\\n host = false,\\\\n query = '';\\\\n\\\\n if (this.host) {\\\\n host = auth + this.host;\\\\n } else if (this.hostname) {\\\\n host = auth + (this.hostname.indexOf(':') === -1 ?\\\\n this.hostname :\\\\n '[' + this.hostname + ']');\\\\n if (this.port) {\\\\n host += ':' + this.port;\\\\n }\\\\n }\\\\n\\\\n if (this.query &&\\\\n util.isObject(this.query) &&\\\\n Object.keys(this.query).length) {\\\\n query = querystring.stringify(this.query);\\\\n }\\\\n\\\\n var search = this.search || (query && ('?' + query)) || '';\\\\n\\\\n if (protocol && protocol.substr(-1) !== ':') protocol += ':';\\\\n\\\\n // only the slashedProtocols get the //. Not mailto:, xmpp:, etc.\\\\n // unless they had them to begin with.\\\\n if (this.slashes ||\\\\n (!protocol || slashedProtocol[protocol]) && host !== false) {\\\\n host = '//' + (host || '');\\\\n if (pathname && pathname.charAt(0) !== '/') pathname = '/' + pathname;\\\\n } else if (!host) {\\\\n host = '';\\\\n }\\\\n\\\\n if (hash && hash.charAt(0) !== '#') hash = '#' + hash;\\\\n if (search && search.charAt(0) !== '?') search = '?' + search;\\\\n\\\\n pathname = pathname.replace(/[?#]/g, function(match) {\\\\n return encodeURIComponent(match);\\\\n });\\\\n search = search.replace('#', '%23');\\\\n\\\\n return protocol + host + pathname + search + hash;\\\\n};\\\\n\\\\nfunction urlResolve(source, relative) {\\\\n return urlParse(source, false, true).resolve(relative);\\\\n}\\\\n\\\\nUrl.prototype.resolve = function(relative) {\\\\n return this.resolveObject(urlParse(relative, false, true)).format();\\\\n};\\\\n\\\\nfunction urlResolveObject(source, relative) {\\\\n if (!source) return relative;\\\\n return urlParse(source, false, true).resolveObject(relative);\\\\n}\\\\n\\\\nUrl.prototype.resolveObject = function(relative) {\\\\n if (util.isString(relative)) {\\\\n var rel = new Url();\\\\n rel.parse(relative, false, true);\\\\n relative = rel;\\\\n }\\\\n\\\\n var result = new Url();\\\\n var tkeys = Object.keys(this);\\\\n for (var tk = 0; tk < tkeys.length; tk++) {\\\\n var tkey = tkeys[tk];\\\\n result[tkey] = this[tkey];\\\\n }\\\\n\\\\n // hash is always overridden, no matter what.\\\\n // even href=\\\\\\\"\\\\\\\" will remove it.\\\\n result.hash = relative.hash;\\\\n\\\\n // if the relative url is empty, then there's nothing left to do here.\\\\n if (relative.href === '') {\\\\n result.href = result.format();\\\\n return result;\\\\n }\\\\n\\\\n // hrefs like //foo/bar always cut to the protocol.\\\\n if (relative.slashes && !relative.protocol) {\\\\n // take everything except the protocol from relative\\\\n var rkeys = Object.keys(relative);\\\\n for (var rk = 0; rk < rkeys.length; rk++) {\\\\n var rkey = rkeys[rk];\\\\n if (rkey !== 'protocol')\\\\n result[rkey] = relative[rkey];\\\\n }\\\\n\\\\n //urlParse appends trailing / to urls like http://www.example.com\\\\n if (slashedProtocol[result.protocol] &&\\\\n result.hostname && !result.pathname) {\\\\n result.path = result.pathname = '/';\\\\n }\\\\n\\\\n result.href = result.format();\\\\n return result;\\\\n }\\\\n\\\\n if (relative.protocol && relative.protocol !== result.protocol) {\\\\n // if it's a known url protocol, then changing\\\\n // the protocol does weird things\\\\n // first, if it's not file:, then we MUST have a host,\\\\n // and if there was a path\\\\n // to begin with, then we MUST have a path.\\\\n // if it is file:, then the host is dropped,\\\\n // because that's known to be hostless.\\\\n // anything else is assumed to be absolute.\\\\n if (!slashedProtocol[relative.protocol]) {\\\\n var keys = Object.keys(relative);\\\\n for (var v = 0; v < keys.length; v++) {\\\\n var k = keys[v];\\\\n result[k] = relative[k];\\\\n }\\\\n result.href = result.format();\\\\n return result;\\\\n }\\\\n\\\\n result.protocol = relative.protocol;\\\\n if (!relative.host && !hostlessProtocol[relative.protocol]) {\\\\n var relPath = (relative.pathname || '').split('/');\\\\n while (relPath.length && !(relative.host = relPath.shift()));\\\\n if (!relative.host) relative.host = '';\\\\n if (!relative.hostname) relative.hostname = '';\\\\n if (relPath[0] !== '') relPath.unshift('');\\\\n if (relPath.length < 2) relPath.unshift('');\\\\n result.pathname = relPath.join('/');\\\\n } else {\\\\n result.pathname = relative.pathname;\\\\n }\\\\n result.search = relative.search;\\\\n result.query = relative.query;\\\\n result.host = relative.host || '';\\\\n result.auth = relative.auth;\\\\n result.hostname = relative.hostname || relative.host;\\\\n result.port = relative.port;\\\\n // to support http.request\\\\n if (result.pathname || result.search) {\\\\n var p = result.pathname || '';\\\\n var s = result.search || '';\\\\n result.path = p + s;\\\\n }\\\\n result.slashes = result.slashes || relative.slashes;\\\\n result.href = result.format();\\\\n return result;\\\\n }\\\\n\\\\n var isSourceAbs = (result.pathname && result.pathname.charAt(0) === '/'),\\\\n isRelAbs = (\\\\n relative.host ||\\\\n relative.pathname && relative.pathname.charAt(0) === '/'\\\\n ),\\\\n mustEndAbs = (isRelAbs || isSourceAbs ||\\\\n (result.host && relative.pathname)),\\\\n removeAllDots = mustEndAbs,\\\\n srcPath = result.pathname && result.pathname.split('/') || [],\\\\n relPath = relative.pathname && relative.pathname.split('/') || [],\\\\n psychotic = result.protocol && !slashedProtocol[result.protocol];\\\\n\\\\n // if the url is a non-slashed url, then relative\\\\n // links like ../.. should be able\\\\n // to crawl up to the hostname, as well. This is strange.\\\\n // result.protocol has already been set by now.\\\\n // Later on, put the first path part into the host field.\\\\n if (psychotic) {\\\\n result.hostname = '';\\\\n result.port = null;\\\\n if (result.host) {\\\\n if (srcPath[0] === '') srcPath[0] = result.host;\\\\n else srcPath.unshift(result.host);\\\\n }\\\\n result.host = '';\\\\n if (relative.protocol) {\\\\n relative.hostname = null;\\\\n relative.port = null;\\\\n if (relative.host) {\\\\n if (relPath[0] === '') relPath[0] = relative.host;\\\\n else relPath.unshift(relative.host);\\\\n }\\\\n relative.host = null;\\\\n }\\\\n mustEndAbs = mustEndAbs && (relPath[0] === '' || srcPath[0] === '');\\\\n }\\\\n\\\\n if (isRelAbs) {\\\\n // it's absolute.\\\\n result.host = (relative.host || relative.host === '') ?\\\\n relative.host : result.host;\\\\n result.hostname = (relative.hostname || relative.hostname === '') ?\\\\n relative.hostname : result.hostname;\\\\n result.search = relative.search;\\\\n result.query = relative.query;\\\\n srcPath = relPath;\\\\n // fall through to the dot-handling below.\\\\n } else if (relPath.length) {\\\\n // it's relative\\\\n // throw away the existing file, and take the new path instead.\\\\n if (!srcPath) srcPath = [];\\\\n srcPath.pop();\\\\n srcPath = srcPath.concat(relPath);\\\\n result.search = relative.search;\\\\n result.query = relative.query;\\\\n } else if (!util.isNullOrUndefined(relative.search)) {\\\\n // just pull out the search.\\\\n // like href='?foo'.\\\\n // Put this after the other two cases because it simplifies the booleans\\\\n if (psychotic) {\\\\n result.hostname = result.host = srcPath.shift();\\\\n //occationaly the auth can get stuck only in host\\\\n //this especially happens in cases like\\\\n //url.resolveObject('mailto:local1@domain1', 'local2@domain2')\\\\n var authInHost = result.host && result.host.indexOf('@') > 0 ?\\\\n result.host.split('@') : false;\\\\n if (authInHost) {\\\\n result.auth = authInHost.shift();\\\\n result.host = result.hostname = authInHost.shift();\\\\n }\\\\n }\\\\n result.search = relative.search;\\\\n result.query = relative.query;\\\\n //to support http.request\\\\n if (!util.isNull(result.pathname) || !util.isNull(result.search)) {\\\\n result.path = (result.pathname ? result.pathname : '') +\\\\n (result.search ? result.search : '');\\\\n }\\\\n result.href = result.format();\\\\n return result;\\\\n }\\\\n\\\\n if (!srcPath.length) {\\\\n // no path at all. easy.\\\\n // we've already handled the other stuff above.\\\\n result.pathname = null;\\\\n //to support http.request\\\\n if (result.search) {\\\\n result.path = '/' + result.search;\\\\n } else {\\\\n result.path = null;\\\\n }\\\\n result.href = result.format();\\\\n return result;\\\\n }\\\\n\\\\n // if a url ENDs in . or .., then it must get a trailing slash.\\\\n // however, if it ends in anything else non-slashy,\\\\n // then it must NOT get a trailing slash.\\\\n var last = srcPath.slice(-1)[0];\\\\n var hasTrailingSlash = (\\\\n (result.host || relative.host || srcPath.length > 1) &&\\\\n (last === '.' || last === '..') || last === '');\\\\n\\\\n // strip single dots, resolve double dots to parent dir\\\\n // if the path tries to go above the root, `up` ends up > 0\\\\n var up = 0;\\\\n for (var i = srcPath.length; i >= 0; i--) {\\\\n last = srcPath[i];\\\\n if (last === '.') {\\\\n srcPath.splice(i, 1);\\\\n } else if (last === '..') {\\\\n srcPath.splice(i, 1);\\\\n up++;\\\\n } else if (up) {\\\\n srcPath.splice(i, 1);\\\\n up--;\\\\n }\\\\n }\\\\n\\\\n // if the path is allowed to go above the root, restore leading ..s\\\\n if (!mustEndAbs && !removeAllDots) {\\\\n for (; up--; up) {\\\\n srcPath.unshift('..');\\\\n }\\\\n }\\\\n\\\\n if (mustEndAbs && srcPath[0] !== '' &&\\\\n (!srcPath[0] || srcPath[0].charAt(0) !== '/')) {\\\\n srcPath.unshift('');\\\\n }\\\\n\\\\n if (hasTrailingSlash && (srcPath.join('/').substr(-1) !== '/')) {\\\\n srcPath.push('');\\\\n }\\\\n\\\\n var isAbsolute = srcPath[0] === '' ||\\\\n (srcPath[0] && srcPath[0].charAt(0) === '/');\\\\n\\\\n // put the host back\\\\n if (psychotic) {\\\\n result.hostname = result.host = isAbsolute ? '' :\\\\n srcPath.length ? srcPath.shift() : '';\\\\n //occationaly the auth can get stuck only in host\\\\n //this especially happens in cases like\\\\n //url.resolveObject('mailto:local1@domain1', 'local2@domain2')\\\\n var authInHost = result.host && result.host.indexOf('@') > 0 ?\\\\n result.host.split('@') : false;\\\\n if (authInHost) {\\\\n result.auth = authInHost.shift();\\\\n result.host = result.hostname = authInHost.shift();\\\\n }\\\\n }\\\\n\\\\n mustEndAbs = mustEndAbs || (result.host && srcPath.length);\\\\n\\\\n if (mustEndAbs && !isAbsolute) {\\\\n srcPath.unshift('');\\\\n }\\\\n\\\\n if (!srcPath.length) {\\\\n result.pathname = null;\\\\n result.path = null;\\\\n } else {\\\\n result.pathname = srcPath.join('/');\\\\n }\\\\n\\\\n //to support request.http\\\\n if (!util.isNull(result.pathname) || !util.isNull(result.search)) {\\\\n result.path = (result.pathname ? result.pathname : '') +\\\\n (result.search ? result.search : '');\\\\n }\\\\n result.auth = relative.auth || result.auth;\\\\n result.slashes = result.slashes || relative.slashes;\\\\n result.href = result.format();\\\\n return result;\\\\n};\\\\n\\\\nUrl.prototype.parseHost = function() {\\\\n var host = this.host;\\\\n var port = portPattern.exec(host);\\\\n if (port) {\\\\n port = port[0];\\\\n if (port !== ':') {\\\\n this.port = port.substr(1);\\\\n }\\\\n host = host.substr(0, host.length - port.length);\\\\n }\\\\n if (host) this.hostname = host;\\\\n};\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/url/url.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/url/util.js\\\":\\n/*!**********************************!*\\\\\\n !*** ./node_modules/url/util.js ***!\\n \\\\**********************************/\\n/*! no static exports found */\\n/***/ (function(module, exports, __webpack_require__) {\\n\\n\\\"use strict\\\";\\neval(\\\"\\\\n\\\\nmodule.exports = {\\\\n isString: function(arg) {\\\\n return typeof(arg) === 'string';\\\\n },\\\\n isObject: function(arg) {\\\\n return typeof(arg) === 'object' && arg !== null;\\\\n },\\\\n isNull: function(arg) {\\\\n return arg === null;\\\\n },\\\\n isNullOrUndefined: function(arg) {\\\\n return arg == null;\\\\n }\\\\n};\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/url/util.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/util-deprecate/browser.js\\\":\\n/*!************************************************!*\\\\\\n !*** ./node_modules/util-deprecate/browser.js ***!\\n \\\\************************************************/\\n/*! no static exports found */\\n/***/ (function(module, exports, __webpack_require__) {\\n\\neval(\\\"/* WEBPACK VAR INJECTION */(function(global) {\\\\n/**\\\\n * Module exports.\\\\n */\\\\n\\\\nmodule.exports = deprecate;\\\\n\\\\n/**\\\\n * Mark that a method should not be used.\\\\n * Returns a modified function which warns once by default.\\\\n *\\\\n * If `localStorage.noDeprecation = true` is set, then it is a no-op.\\\\n *\\\\n * If `localStorage.throwDeprecation = true` is set, then deprecated functions\\\\n * will throw an Error when invoked.\\\\n *\\\\n * If `localStorage.traceDeprecation = true` is set, then deprecated functions\\\\n * will invoke `console.trace()` instead of `console.error()`.\\\\n *\\\\n * @param {Function} fn - the function to deprecate\\\\n * @param {String} msg - the string to print to the console when `fn` is invoked\\\\n * @returns {Function} a new \\\\\\\"deprecated\\\\\\\" version of `fn`\\\\n * @api public\\\\n */\\\\n\\\\nfunction deprecate (fn, msg) {\\\\n if (config('noDeprecation')) {\\\\n return fn;\\\\n }\\\\n\\\\n var warned = false;\\\\n function deprecated() {\\\\n if (!warned) {\\\\n if (config('throwDeprecation')) {\\\\n throw new Error(msg);\\\\n } else if (config('traceDeprecation')) {\\\\n console.trace(msg);\\\\n } else {\\\\n console.warn(msg);\\\\n }\\\\n warned = true;\\\\n }\\\\n return fn.apply(this, arguments);\\\\n }\\\\n\\\\n return deprecated;\\\\n}\\\\n\\\\n/**\\\\n * Checks `localStorage` for boolean values for the given `name`.\\\\n *\\\\n * @param {String} name\\\\n * @returns {Boolean}\\\\n * @api private\\\\n */\\\\n\\\\nfunction config (name) {\\\\n // accessing global.localStorage can trigger a DOMException in sandboxed iframes\\\\n try {\\\\n if (!global.localStorage) return false;\\\\n } catch (_) {\\\\n return false;\\\\n }\\\\n var val = global.localStorage[name];\\\\n if (null == val) return false;\\\\n return String(val).toLowerCase() === 'true';\\\\n}\\\\n\\\\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ \\\\\\\"./node_modules/webpack/buildin/global.js\\\\\\\")))\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/util-deprecate/browser.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/webpack/buildin/global.js\\\":\\n/*!***********************************!*\\\\\\n !*** (webpack)/buildin/global.js ***!\\n \\\\***********************************/\\n/*! no static exports found */\\n/***/ (function(module, exports) {\\n\\neval(\\\"var g;\\\\n\\\\n// This works in non-strict mode\\\\ng = (function() {\\\\n\\\\treturn this;\\\\n})();\\\\n\\\\ntry {\\\\n\\\\t// This works if eval is allowed (see CSP)\\\\n\\\\tg = g || new Function(\\\\\\\"return this\\\\\\\")();\\\\n} catch (e) {\\\\n\\\\t// This works if the window reference is available\\\\n\\\\tif (typeof window === \\\\\\\"object\\\\\\\") g = window;\\\\n}\\\\n\\\\n// g can still be undefined, but nothing to do about it...\\\\n// We return undefined, instead of nothing here, so it's\\\\n// easier to handle this case. if(!global) { ...}\\\\n\\\\nmodule.exports = g;\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/(webpack)/buildin/global.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/webpack/buildin/module.js\\\":\\n/*!***********************************!*\\\\\\n !*** (webpack)/buildin/module.js ***!\\n \\\\***********************************/\\n/*! no static exports found */\\n/***/ (function(module, exports) {\\n\\neval(\\\"module.exports = function(module) {\\\\n\\\\tif (!module.webpackPolyfill) {\\\\n\\\\t\\\\tmodule.deprecate = function() {};\\\\n\\\\t\\\\tmodule.paths = [];\\\\n\\\\t\\\\t// module.parent = undefined by default\\\\n\\\\t\\\\tif (!module.children) module.children = [];\\\\n\\\\t\\\\tObject.defineProperty(module, \\\\\\\"loaded\\\\\\\", {\\\\n\\\\t\\\\t\\\\tenumerable: true,\\\\n\\\\t\\\\t\\\\tget: function() {\\\\n\\\\t\\\\t\\\\t\\\\treturn module.l;\\\\n\\\\t\\\\t\\\\t}\\\\n\\\\t\\\\t});\\\\n\\\\t\\\\tObject.defineProperty(module, \\\\\\\"id\\\\\\\", {\\\\n\\\\t\\\\t\\\\tenumerable: true,\\\\n\\\\t\\\\t\\\\tget: function() {\\\\n\\\\t\\\\t\\\\t\\\\treturn module.i;\\\\n\\\\t\\\\t\\\\t}\\\\n\\\\t\\\\t});\\\\n\\\\t\\\\tmodule.webpackPolyfill = 1;\\\\n\\\\t}\\\\n\\\\treturn module;\\\\n};\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/(webpack)/buildin/module.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./node_modules/xtend/immutable.js\\\":\\n/*!*****************************************!*\\\\\\n !*** ./node_modules/xtend/immutable.js ***!\\n \\\\*****************************************/\\n/*! no static exports found */\\n/***/ (function(module, exports) {\\n\\neval(\\\"module.exports = extend\\\\n\\\\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\\\\n\\\\nfunction extend() {\\\\n var target = {}\\\\n\\\\n for (var i = 0; i < arguments.length; i++) {\\\\n var source = arguments[i]\\\\n\\\\n for (var key in source) {\\\\n if (hasOwnProperty.call(source, key)) {\\\\n target[key] = source[key]\\\\n }\\\\n }\\\\n }\\\\n\\\\n return target\\\\n}\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./node_modules/xtend/immutable.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./src/parseData.js\\\":\\n/*!**************************!*\\\\\\n !*** ./src/parseData.js ***!\\n \\\\**************************/\\n/*! no static exports found */\\n/***/ (function(module, exports, __webpack_require__) {\\n\\n\\\"use strict\\\";\\neval(\\\"\\\\n\\\\nObject.defineProperty(exports, \\\\\\\"__esModule\\\\\\\", {\\\\n value: true\\\\n});\\\\n\\\\nvar _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\\\\\\\"return\\\\\\\"]) _i[\\\\\\\"return\\\\\\\"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError(\\\\\\\"Invalid attempt to destructure non-iterable instance\\\\\\\"); } }; }();\\\\n\\\\nvar _typeof = typeof Symbol === \\\\\\\"function\\\\\\\" && typeof Symbol.iterator === \\\\\\\"symbol\\\\\\\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \\\\\\\"function\\\\\\\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \\\\\\\"symbol\\\\\\\" : typeof obj; };\\\\n\\\\nexports.default = parseData;\\\\n\\\\nvar _geotiff = __webpack_require__(/*! geotiff */ \\\\\\\"./node_modules/geotiff/src/geotiff.js\\\\\\\");\\\\n\\\\nvar _geotiffPalette = __webpack_require__(/*! geotiff-palette */ \\\\\\\"./node_modules/geotiff-palette/index.js\\\\\\\");\\\\n\\\\nvar _utils = __webpack_require__(/*! ./utils.js */ \\\\\\\"./src/utils.js\\\\\\\");\\\\n\\\\nfunction processResult(result, debug) {\\\\n var noDataValue = result.noDataValue;\\\\n var height = result.height;\\\\n var width = result.width;\\\\n\\\\n return new Promise(function (resolve, reject) {\\\\n result.maxs = [];\\\\n result.mins = [];\\\\n result.ranges = [];\\\\n\\\\n var max = void 0;var min = void 0;\\\\n\\\\n // console.log(\\\\\\\"starting to get min, max and ranges\\\\\\\");\\\\n for (var rasterIndex = 0; rasterIndex < result.numberOfRasters; rasterIndex++) {\\\\n var rows = result.values[rasterIndex];\\\\n if (debug) console.log('[georaster] rows:', rows);\\\\n\\\\n for (var rowIndex = 0; rowIndex < height; rowIndex++) {\\\\n var row = rows[rowIndex];\\\\n\\\\n for (var columnIndex = 0; columnIndex < width; columnIndex++) {\\\\n var value = row[columnIndex];\\\\n if (value != noDataValue && !isNaN(value)) {\\\\n if (typeof min === 'undefined' || value < min) min = value;else if (typeof max === 'undefined' || value > max) max = value;\\\\n }\\\\n }\\\\n }\\\\n\\\\n result.maxs.push(max);\\\\n result.mins.push(min);\\\\n result.ranges.push(max - min);\\\\n }\\\\n\\\\n resolve(result);\\\\n });\\\\n}\\\\n\\\\n/* We're not using async because trying to avoid dependency on babel's polyfill\\\\nThere can be conflicts when GeoRaster is used in another project that is also\\\\nusing @babel/polyfill */\\\\nfunction parseData(data, debug) {\\\\n return new Promise(function (resolve, reject) {\\\\n try {\\\\n if (debug) console.log('starting parseData with', data);\\\\n if (debug) console.log('\\\\\\\\tGeoTIFF:', typeof GeoTIFF === 'undefined' ? 'undefined' : _typeof(GeoTIFF));\\\\n\\\\n var result = {};\\\\n\\\\n var height = void 0,\\\\n width = void 0;\\\\n\\\\n if (data.rasterType === 'object') {\\\\n result.values = data.data;\\\\n result.height = height = data.metadata.height || result.values[0].length;\\\\n result.width = width = data.metadata.width || result.values[0][0].length;\\\\n result.pixelHeight = data.metadata.pixelHeight;\\\\n result.pixelWidth = data.metadata.pixelWidth;\\\\n result.projection = data.metadata.projection;\\\\n result.xmin = data.metadata.xmin;\\\\n result.ymax = data.metadata.ymax;\\\\n result.noDataValue = data.metadata.noDataValue;\\\\n result.numberOfRasters = result.values.length;\\\\n result.xmax = result.xmin + result.width * result.pixelWidth;\\\\n result.ymin = result.ymax - result.height * result.pixelHeight;\\\\n result._data = null;\\\\n resolve(processResult(result));\\\\n } else if (data.rasterType === 'geotiff') {\\\\n result._data = data.data;\\\\n\\\\n var initFunction = _geotiff.fromArrayBuffer;\\\\n if (data.sourceType === 'url') {\\\\n initFunction = _geotiff.fromUrl;\\\\n }\\\\n\\\\n if (debug) console.log('data.rasterType is geotiff');\\\\n resolve(initFunction(data.data).then(function (geotiff) {\\\\n if (debug) console.log('geotiff:', geotiff);\\\\n return geotiff.getImage().then(function (image) {\\\\n try {\\\\n if (debug) console.log('image:', image);\\\\n\\\\n var fileDirectory = image.fileDirectory;\\\\n\\\\n var _image$getGeoKeys = image.getGeoKeys(),\\\\n GeographicTypeGeoKey = _image$getGeoKeys.GeographicTypeGeoKey,\\\\n ProjectedCSTypeGeoKey = _image$getGeoKeys.ProjectedCSTypeGeoKey;\\\\n\\\\n result.projection = ProjectedCSTypeGeoKey || GeographicTypeGeoKey;\\\\n if (debug) console.log('projection:', result.projection);\\\\n\\\\n result.height = height = image.getHeight();\\\\n if (debug) console.log('result.height:', result.height);\\\\n result.width = width = image.getWidth();\\\\n if (debug) console.log('result.width:', result.width);\\\\n\\\\n var _image$getResolution = image.getResolution(),\\\\n _image$getResolution2 = _slicedToArray(_image$getResolution, 2),\\\\n resolutionX = _image$getResolution2[0],\\\\n resolutionY = _image$getResolution2[1];\\\\n\\\\n result.pixelHeight = Math.abs(resolutionY);\\\\n result.pixelWidth = Math.abs(resolutionX);\\\\n\\\\n var _image$getOrigin = image.getOrigin(),\\\\n _image$getOrigin2 = _slicedToArray(_image$getOrigin, 2),\\\\n originX = _image$getOrigin2[0],\\\\n originY = _image$getOrigin2[1];\\\\n\\\\n result.xmin = originX;\\\\n result.xmax = result.xmin + width * result.pixelWidth;\\\\n result.ymax = originY;\\\\n result.ymin = result.ymax - height * result.pixelHeight;\\\\n\\\\n result.noDataValue = fileDirectory.GDAL_NODATA ? parseFloat(fileDirectory.GDAL_NODATA) : null;\\\\n\\\\n result.numberOfRasters = fileDirectory.SamplesPerPixel;\\\\n\\\\n if (fileDirectory.ColorMap) {\\\\n result.palette = (0, _geotiffPalette.getPalette)(image);\\\\n }\\\\n\\\\n if (data.sourceType !== 'url') {\\\\n return image.readRasters().then(function (rasters) {\\\\n result.values = rasters.map(function (valuesInOneDimension) {\\\\n return (0, _utils.unflatten)(valuesInOneDimension, { height: height, width: width });\\\\n });\\\\n return processResult(result);\\\\n });\\\\n } else {\\\\n return result;\\\\n }\\\\n } catch (error) {\\\\n reject(error);\\\\n console.error('[georaster] error parsing georaster:', error);\\\\n }\\\\n });\\\\n }));\\\\n }\\\\n } catch (error) {\\\\n reject(error);\\\\n console.error('[georaster] error parsing georaster:', error);\\\\n }\\\\n });\\\\n}\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./src/parseData.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./src/utils.js\\\":\\n/*!**********************!*\\\\\\n !*** ./src/utils.js ***!\\n \\\\**********************/\\n/*! no static exports found */\\n/***/ (function(module, exports, __webpack_require__) {\\n\\n\\\"use strict\\\";\\neval(\\\"\\\\n\\\\nfunction countIn1D(array) {\\\\n return array.reduce(function (counts, value) {\\\\n if (counts[value] === undefined) {\\\\n counts[value] = 1;\\\\n } else {\\\\n counts[value]++;\\\\n }\\\\n return counts;\\\\n }, {});\\\\n}\\\\n\\\\nfunction countIn2D(rows) {\\\\n return rows.reduce(function (counts, values) {\\\\n values.forEach(function (value) {\\\\n if (counts[value] === undefined) {\\\\n counts[value] = 1;\\\\n } else {\\\\n counts[value]++;\\\\n }\\\\n });\\\\n return counts;\\\\n }, {});\\\\n}\\\\n\\\\n/*\\\\nTakes in a flattened one dimensional array\\\\nrepresenting two-dimensional pixel values\\\\nand returns an array of arrays.\\\\n*/\\\\nfunction unflatten(valuesInOneDimension, size) {\\\\n var height = size.height,\\\\n width = size.width;\\\\n\\\\n var valuesInTwoDimensions = [];\\\\n for (var y = 0; y < height; y++) {\\\\n var start = y * width;\\\\n var end = start + width;\\\\n valuesInTwoDimensions.push(valuesInOneDimension.slice(start, end));\\\\n }\\\\n return valuesInTwoDimensions;\\\\n}\\\\n\\\\nmodule.exports = { countIn1D: countIn1D, countIn2D: countIn2D, unflatten: unflatten };\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./src/utils.js?\\\");\\n\\n/***/ }),\\n\\n/***/ \\\"./src/worker.js\\\":\\n/*!***********************!*\\\\\\n !*** ./src/worker.js ***!\\n \\\\***********************/\\n/*! no exports provided */\\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\\n\\n\\\"use strict\\\";\\neval(\\\"__webpack_require__.r(__webpack_exports__);\\\\n/* harmony import */ var _parseData_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./parseData.js */ \\\\\\\"./src/parseData.js\\\\\\\");\\\\n/* harmony import */ var _parseData_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_parseData_js__WEBPACK_IMPORTED_MODULE_0__);\\\\n\\\\n\\\\n// this is a bit of a hack to trick geotiff to work with web worker\\\\n// eslint-disable-next-line no-unused-vars\\\\nconst window = self;\\\\n\\\\nonmessage = e => {\\\\n const data = e.data;\\\\n _parseData_js__WEBPACK_IMPORTED_MODULE_0___default()(data).then(result => {\\\\n if (result._data instanceof ArrayBuffer) {\\\\n postMessage(result, [result._data]);\\\\n } else {\\\\n postMessage(result);\\\\n }\\\\n close();\\\\n });\\\\n};\\\\n\\\\n\\\\n//# sourceURL=webpack://GeoRaster/./src/worker.js?\\\");\\n\\n/***/ }),\\n\\n/***/ 0:\\n/*!**********************!*\\\\\\n !*** util (ignored) ***!\\n \\\\**********************/\\n/*! no static exports found */\\n/***/ (function(module, exports) {\\n\\neval(\\\"/* (ignored) */\\\\n\\\\n//# sourceURL=webpack://GeoRaster/util_(ignored)?\\\");\\n\\n/***/ }),\\n\\n/***/ 1:\\n/*!**********************!*\\\\\\n !*** util (ignored) ***!\\n \\\\**********************/\\n/*! no static exports found */\\n/***/ (function(module, exports) {\\n\\neval(\\\"/* (ignored) */\\\\n\\\\n//# sourceURL=webpack://GeoRaster/util_(ignored)?\\\");\\n\\n/***/ })\\n\\n/******/ });\",null);};\n\n//# sourceURL=webpack://GeoRaster/./src/worker.js?");
1540
1541/***/ }),
1542
1543/***/ 0:
1544/*!**********************!*\
1545 !*** util (ignored) ***!
1546 \**********************/
1547/*! no static exports found */
1548/***/ (function(module, exports) {
1549
1550eval("/* (ignored) */\n\n//# sourceURL=webpack://GeoRaster/util_(ignored)?");
1551
1552/***/ }),
1553
1554/***/ 1:
1555/*!**********************!*\
1556 !*** util (ignored) ***!
1557 \**********************/
1558/*! no static exports found */
1559/***/ (function(module, exports) {
1560
1561eval("/* (ignored) */\n\n//# sourceURL=webpack://GeoRaster/util_(ignored)?");
1562
1563/***/ })
1564
1565/******/ });
1566});
\No newline at end of file