!function(e,r){if("object"==typeof exports&&"object"==typeof module)module.exports=r();else if("function"==typeof define&&define.amd)define([],r);else{var t=r();for(var n in t)("object"==typeof exports?exports:e)[n]=t[n]}}(window,(function(){return function(e){var r={};function t(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:n})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,r){if(1&r&&(e=t(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var o in e)t.d(n,o,function(r){return e[r]}.bind(null,o));return n},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},t.p="",t(t.s=5)}([,function(e,r){},function(e,r){},function(e,r){},function(e,r){var t;t=function(){return this}();try{t=t||new Function("return this")()}catch(e){"object"==typeof window&&(t=window)}e.exports=t},function(e,r,t){(function(r){const n=t(7),o="undefined"==typeof window?r:window;o.loaders=o.loaders||{},e.exports=Object.assign(o.loaders,n)}).call(this,t(4))},function(e,r){var t,n,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function u(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{n="function"==typeof clearTimeout?clearTimeout:s}catch(e){n=s}}();var a,c=[],f=!1,l=-1;function d(){f&&a&&(f=!1,a.length?c=a.concat(c):l=-1,c.length&&y())}function y(){if(!f){var e=u(d);f=!0;for(var r=c.length;r;){for(a=c,c=[];++l<r;)a&&a[l].run();l=-1,r=c.length}a=null,f=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===s||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(r){try{return n.call(null,e)}catch(r){return n.call(this,e)}}}(e)}}function h(e,r){this.fun=e,this.array=r}function p(){}o.nextTick=function(e){var r=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)r[t-1]=arguments[t];c.push(new h(e,r)),1!==c.length||f||u(y)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=p,o.addListener=p,o.once=p,o.off=p,o.removeListener=p,o.removeAllListeners=p,o.emit=p,o.prependListener=p,o.prependOnceListener=p,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,r,t){"use strict";t.r(r);let n="";const o={};function i(e){n=e}function s(){return n}function u(e){for(const r in o)if(e.startsWith(r)){const t=o[r];e=e.replace(r,t)}return e.startsWith("http://")||e.startsWith("https://")||(e=`${n}${e}`),e}const a=e=>"boolean"==typeof e,c=e=>"function"==typeof e,f=e=>null!==e&&"object"==typeof e,l=e=>f(e)&&c(e.then),d=e=>e&&"function"==typeof e[Symbol.iterator],y=e=>e&&"function"==typeof e[Symbol.asyncIterator],h=e=>e&&c(e.next),p=e=>"undefined"!=typeof Response&&e instanceof Response||e&&e.arrayBuffer&&e.text&&e.json,w=e=>(e=>"undefined"!=typeof File&&e instanceof File)(e)||(e=>"undefined"!=typeof Blob&&e instanceof Blob)(e),b=e=>e&&"object"==typeof e&&e.isBuffer,g=e=>(e=>"undefined"!=typeof ReadableStream&&e instanceof ReadableStream||f(e)&&c(e.tee)&&c(e.cancel)&&c(e.getReader))(e)||(e=>f(e)&&c(e.read)&&c(e.pipe)&&a(e.readable))(e),m=e=>(e=>f(e)&&c(e.abort)&&c(e.getWriter))(e)||(e=>f(e)&&c(e.end)&&c(e.write)&&a(e.writable))(e);function A(e,r){if(!e)throw new Error(r||"loader assertion failed.")}class x{constructor(e,r){this._fileOrBlob=e,this.bodyUsed=!1}get headers(){return new Headers({"Content-Length":this._fileOrBlob.size,"Content-Type":this._fileOrBlob.type})}get ok(){return!0}get status(){return 200}get url(){return this._fileOrBlob.name||""}async arrayBuffer(){const{reader:e,promise:r}=this._getFileReader();return e.readAsArrayBuffer(this._fileOrBlob),r}async text(){const{reader:e,promise:r}=this._getFileReader();return e.readAsText(this._fileOrBlob),r}async json(){const e=await this.text();return JSON.parse(e)}_getFileReader(){A(!this.bodyUsed),this.bodyUsed=!0;const e=new FileReader,r=new Promise((r,t)=>{try{e.onerror=e=>t(new Error("Read error")),e.onabort=()=>t(new Error("Read aborted.")),e.onload=()=>r(e.result)}catch(e){t(e)}});return{reader:e,promise:r}}}function S(e,r){return Promise.resolve(new x(e,r))}async function v(e,r={}){if(w(e))return S(e,r);e=u(e);const t=await fetch(e,r);if(!t.ok&&r.throws)throw new Error(await async function(e){let r=`Failed to fetch resource ${e.url} (${e.status}): `;try{e.headers.get("Content-Type").includes("application/json")?r+=await e.text():r+=e.statusText}catch(e){return r}return r}(t));return t}var k=t(8),B=t(2);const T={dataType:"arraybuffer",nothrow:!0},j=e=>e.startsWith("data:");function O(e,r){return r=function(e={}){return(e=Object.assign({},T,e)).responseType=e.responseType||e.dataType,e}(r),j(e),r.nothrow||A(!1),null}function _(e,r={}){return e=u(e),!k.c&&B.readFileSync?B.readFileSync(e,r):O(e,r)}var I=t(1);function W(e,r,t){return e=u(e),!k.c&&I.writeFile?I.writeFile(e,r,t):A(!1)}function L(e,r,t){return e=u(e),!k.c&&I.writeFileSync?I.writeFileSync(e,r,t):A(!1)}class P{log(){return e=>{}}info(){return e=>{}}warn(){return e=>{}}error(){return e=>{}}}const C={CDN:"https://unpkg.com/@loaders.gl",worker:!0,log:new class{constructor(){this.console=console}log(...e){return this.console.log.bind(this.console,...e)}info(...e){return this.console.info.bind(this.console,...e)}warn(...e){return this.console.warn.bind(this.console,...e)}error(...e){return this.console.error.bind(this.console,...e)}},dataType:"arraybuffer"},E=e=>e&&"object"==typeof e&&e.constructor==={}.constructor;let $={...C};function D(e,r,t){const n={...e&&(e.DEFAULT_LOADER_OPTIONS||e.defaultOptions||e.options||{})};return function(e,r){!r||"baseUri"in e||(e.baseUri=r)}(n,t),null===n.log&&(n.log=new P),M(n,$),M(n,r),n}function M(e,r){for(const t in r)if(t in r){const n=r[t];E(n)&&E(e[t])?e[t]={...e[t],...r[t]}:e[t]=r[t]}}function F(e){!function(e){$=D($,e)}(e)}function R(e){if(!e)return!1;Array.isArray(e)&&(e=e[0]);let r=e.parseTextSync||e.parseSync||e.parse||e.parseStream||e.parseInBatches;const t=e.options&&e.options[e.id];return r=r||t&&t.workerUrl,r}function U(e){let r;return A(e,"null loader"),A(R(e),"invalid loader"),Array.isArray(e)&&(r=e[1],e=e[0],e={...e,options:{...e.options,...r}}),e.extension&&(e.extensions=e.extensions||e.extension,delete e.extension),Array.isArray(e.extensions)||(e.extensions=[e.extensions]),A(e.extensions&&e.extensions.length>0&&e.extensions[0]),e.parseTextSync&&(e.text=!0),e.text||(e.binary=!0),e}let Q=[];function N(e){e=Array.isArray(e)?e:[e];for(const r of e){const e=U(r);Q.find(r=>e===r)||Q.unshift(e)}}function V(){Q=[]}const J="2.1.6";function z(e){const r=e.split(".").map(Number);return{major:r[0],minor:r[1]}}function q(e){if(k.c||k.e>=10){if("function"==typeof e[Symbol.asyncIterator])return e;if("function"==typeof e.getIterator)return e.getIterator()}return k.c?async function*(e){const r=e.getReader();try{for(;;){const{done:e,value:t}=await r.read();if(e)return;yield t}}catch(e){r.releaseLock()}}(e):async function*(e){e=await e;for(;;){const r=e.read();if(null===r){if(e._readableState.ended)return;await H(e)}else yield r}}(e)}async function H(e){return new Promise(r=>{e.once("readable",r)})}function G(e,r){const t=e instanceof ArrayBuffer?new Uint8Array(e):e,n=r instanceof ArrayBuffer?new Uint8Array(r):r,o=new Uint8Array(t.byteLength+n.byteLength);return o.set(t,0),o.set(n,t.byteLength),o}async function K(e){let r=new ArrayBuffer(0),t="";for await(const n of e)"string"==typeof n?t+=n:r=G(r,n);return t||r}function*X(e,r={}){if("string"!=typeof e){if(!(e instanceof ArrayBuffer))throw new Error("assert");yield*function*(e,r={}){const{chunkSize:t=262144}=r;let n=0;for(;n<e.byteLength;){const r=Math.min(e.byteLength-n,t),o=new ArrayBuffer(r),i=new Uint8Array(e,n,r);new Uint8Array(o).set(i),n+=r,yield o}}(e,r)}else yield*function*(e,r={}){const{chunkSize:t=262144}=r;let n=0;for(;n<e.length;){const r=Math.min(e.length-n,t),o=e.slice(n,n+r);n+=r,yield o}}(e,r)}const Y="Cannot convert supplied data type";function Z(e,r){if(r.text&&"string"==typeof e)return e;if(e instanceof ArrayBuffer){const t=e;if(r.text&&!r.binary){return new TextDecoder("utf8").decode(t)}return t}if(ArrayBuffer.isView(e)||b(e)){if(r.text&&!r.binary){return new TextDecoder("utf8").decode(e)}let t=e.buffer;const n=e.byteLength||e.length;return 0===e.byteOffset&&n===t.byteLength||(t=t.slice(e.byteOffset,e.byteOffset+n)),t}throw new Error(Y)}async function ee(e,r){const t=(e=await e)instanceof ArrayBuffer||ArrayBuffer.isView(e);if("string"==typeof e||t)return Z(e,r);if(w(e)&&(e=await S(e)),p(e)){const t=e;return await async function(e){if(!e.ok){let r=`fetch failed ${e.status} `;try{r+=await e.text()}catch(e){}throw new Error(r)}}(t),r.binary?await t.arrayBuffer():await t.text()}if(g(e)&&(e=q(e)),d(e)||y(e))return K(e);throw new Error(Y)}function re(e){return h(e)?e:p(e)&&e.body?(function(e){if(!e.ok)throw new Error(`fetch failed ${e.status}`)}(e),q(e.body)):g(e)?q(e):y(e)?e[Symbol.asyncIterator]():te(e)}function te(e){if(e instanceof ArrayBuffer||ArrayBuffer.isView(e))return function*(){yield e.buffer||e}();if(h(e))return e;if(d(e))return e[Symbol.iterator]();throw new Error(Y)}function ne(e,r,t){return t||(e={fetch:e.fetch||v,...e},Array.isArray(e.loaders)||(e.loaders=null),e)}function oe(e,r){if(!r&&!Array.isArray(e))return e;let t;if(e&&(t=Array.isArray(e)?e:[e]),r&&r.loaders){const e=Array.isArray(r.loaders)?r.loaders:[r.loaders];t=t?[...t,...e]:e}return t&&t.length?t:null}var ie=t(3);function se(e){if(ie.toArrayBuffer&&(e=Object(ie.toArrayBuffer)(e)),e instanceof ArrayBuffer)return e;if(ArrayBuffer.isView(e))return e.buffer;if("string"==typeof e){const r=e;return(new TextEncoder).encode(r).buffer}return A(!1)}const ue=new Map;function ae(e,r=!0,t){const n=t||new Set;if(e){if(ce(e))n.add(e);else if(ce(e.buffer))n.add(e.buffer);else if(r&&"object"==typeof e)for(const t in e)ae(e[t],r,n)}else;return void 0===t?Array.from(n):null}function ce(e){return!!e&&(e instanceof ArrayBuffer||("undefined"!=typeof MessagePort&&e instanceof MessagePort||("undefined"!=typeof ImageBitmap&&e instanceof ImageBitmap||"undefined"!=typeof OffscreenCanvas&&e instanceof OffscreenCanvas)))}let fe=0;function le({data:e,resolve:r}){r(e)}class de{constructor({source:e,name:r=`web-worker-${fe++}`,onMessage:t}){const n=function(e,r="Worker"){if(A("string"==typeof e,"worker source"),e.startsWith("url(")&&e.endsWith(")")){const r=e.match(/^url\((.*)\)$/)[1];if(r&&!r.startsWith("http"))return r;e=function(e){return`try {\n  importScripts('${e}');\n} catch (error) {\n  console.error(error);\n}`}(r)}let t=ue.get(e);if(!t){const r=new Blob([e],{type:"application/javascript"});t=URL.createObjectURL(r),ue.set(e,t)}return t}(e,r);this.worker=new Worker(n,{name:r}),this.name=r,this.onMessage=t||le}async process(e){return new Promise((r,t)=>{this.worker.onmessage=e=>this.onMessage({worker:this.worker,data:e.data,resolve:r,reject:t}),this.worker.onerror=e=>{let r=`${this.name}: WorkerThread.process() failed`;e.message&&(r+=` ${e.message} ${e.filename}:${e.lineno}:${e.colno}`);const n=new Error(r);console.error(e),t(n)};const n=ae(e);this.worker.postMessage(e,n)})}destroy(){this.worker.terminate(),this.worker=null}}class ye{constructor({source:e,name:r="unnamed",maxConcurrency:t=1,onMessage:n,onDebug:o=(()=>{})}){this.source=e,this.name=r,this.maxConcurrency=t,this.onMessage=n,this.onDebug=o,this.jobQueue=[],this.idleQueue=[],this.count=0,this.isDestroyed=!1}destroy(){this.idleQueue.forEach(e=>e.destroy()),this.isDestroyed=!0}async process(e,r){return new Promise((t,n)=>{this.jobQueue.push({data:e,jobName:r,resolve:t,reject:n}),this._startQueuedJob()})}_startQueuedJob(){if(!this.jobQueue.length)return;const e=this._getAvailableWorker();if(!e)return;const r=this.jobQueue.shift();this.onDebug({message:"processing",worker:e.name,job:r.jobName,backlog:this.jobQueue.length}),e.process(r.data).then(e=>r.resolve(e)).catch(e=>r.reject(e)).then(()=>this._onWorkerDone(e))}_onWorkerDone(e){this.isDestroyed?e.destroy():(this.idleQueue.push(e),this._startQueuedJob())}_getAvailableWorker(){if(this.idleQueue.length>0)return this.idleQueue.shift();if(this.count<this.maxConcurrency){this.count++;const e=`${this.name.toLowerCase()} (#${this.count} of ${this.maxConcurrency})`;return new de({source:this.source,onMessage:this.onMessage,name:e})}return null}}const he=5;class pe{static isSupported(){return"undefined"!=typeof Worker}constructor({maxConcurrency:e=he,onMessage:r,onDebug:t=(()=>{})}){this.maxConcurrency=e,this.onMessage=r,this.onDebug=t,this.workerPools=new Map}setProps(e){"maxConcurrency"in e&&(this.maxConcurrency=e.maxConcurrency),"onDebug"in e&&(this.onDebug=e.onDebug)}destroy(){this.workerPools.forEach(e=>e.destroy())}async process(e,r,t){return this._getWorkerPool(e,r).process(t)}_getWorkerPool(e,r){let t=this.workerPools.get(r);return t||(t=new ye({source:e,name:r,onMessage:this.onMessage,maxConcurrency:this.maxConcurrency,onDebug:this.onDebug}),this.workerPools.set(r,t)),t}}const we="2.1.6";function be(e,r,t,n){const{worker:o}=t||{},i=t&&t[e.id]||{},s=`url(${"local"===o?i.localWorkerUrl:i.workerUrl})`,u=e.name,a=function(e={}){const r={};e.maxConcurrency&&(r.maxConcurrency=e.maxConcurrency);e.onDebug&&(r.onDebug=e.onDebug);ge||(ge=new pe({onMessage:me}));return ge.setProps(r),ge}(t);t=JSON.parse(JSON.stringify(t));const c=e.version!==we?`(core version ${we})`:"";return a.process(s,`${u}-worker@${e.version}${c}`,{arraybuffer:se(r),options:t,source:`loaders.gl@${we}`,type:"parse"})}let ge=null;async function me({worker:e,data:r,resolve:t,reject:n}){switch(r.type){case"done":t(r.result);break;case"parse":try{const t=await je(r.arraybuffer,r.options,r.url);e.postMessage({type:"parse-done",id:r.id,result:t},ae(t))}catch(t){e.postMessage({type:"parse-error",id:r.id,message:t.message})}break;case"error":n(r.message)}}const Ae=/\.([^.]+)$/,xe=/^data:(.*?)(;|,)/;function Se(e,r="",t=null,{nothrow:n=!1}={}){if(r=r||"",e&&!Array.isArray(e)){const r=e;return U(r),r}!function(e){for(const r of e)U(r)}(e=[...e||[],...Q]);let o=function(e,r){let t=r.match(xe);const n=t&&t[1];if(n)return ve(e,n);t=r.match(Ae);const o=t&&t[1];return o&&function(e,r){r=r.toLowerCase();for(const t of e)for(const e of t.extensions)if(e.toLowerCase()===r)return t;return null}(e,o)}(e,r=r.replace(/\?.*/,""));if(o=o||function(e,r){if(!r||!p(r)||!r.headers)return null;const t=r.headers.get("content-type");return ve(e,t)}(e,t),o=o||function(e,r){if(!r)return null;for(const t of e)if("string"==typeof r){if(ke(r,t))return t}else if(ArrayBuffer.isView(r)){if(Be(r.buffer,r.byteOffset,t))return t}else if(r instanceof ArrayBuffer){if(Be(r,0,t))return t}return null}(e,t),!o){if(n)return null;let e="No valid loader found";throw t&&(e+=` for data starting with "${function(e,r=5){if("string"==typeof e)return e.slice(0,r);if(ArrayBuffer.isView(e))return Te(e.buffer,e.byteOffset,r);if(e instanceof ArrayBuffer){return Te(e,0,r)}return""}(t)}"`),r&&(e+=` for ${r}`),new Error(e)}return o}function ve(e,r){for(const t of e)if(t.mimeTypes&&t.mimeTypes.includes(r))return t;return null}function ke(e,r){return r.testText&&r.testText(e)}function Be(e,r,t){switch(Array.isArray(t.test)?"array":typeof t.test){case"function":return t.test(e,t);case"string":case"array":return(Array.isArray(t.test)?t.test:[t.test]).some(t=>{return t===Te(e,r,t.length)});default:return!1}}function Te(e,r,t){if(e.byteLength<=r+t)return"";const n=new DataView(e);let o="";for(let e=0;e<t;e++)o+=String.fromCharCode(n.getUint8(r+e));return o}async function je(e,r,t,n){!r||Array.isArray(r)||R(r)||(n=t,t=r,r=null);let o="";"string"==typeof n&&(o=n,n=null),t=t||{};const i=function(e,r){return p(e)?r=r||e.url:w(r)&&(r=r.name),"string"==typeof r?r.replace(/\?.*/,""):r}(e,o),s=oe(r,n),u=Se(s,i,e);return u?(t=D(u,t,i),n=ne({url:i,parse:je,loaders:s},0,n),await async function(e,r,t,n){if(function(e,r=J){A(e,"no loader provided");let t=e.version;r&&t&&(r=z(r),t=z(t))}(e),r=await ee(r,e),e.parseTextSync&&"string"==typeof r)return t.dataType="text",e.parseTextSync(r,t,n,e);if(function(e,r,t,n){if(!pe.isSupported())return!1;const o=t&&t[e.id];return!!("local"===t.worker&&o&&o.localWorkerUrl||t.worker&&o&&o.workerUrl)&&(!e.useWorker||e.useWorker(t))}(e,0,t))return await be(e,r,t);if(e.parse)return await e.parse(r,t,n,e);return A(!e.parseSync),A(!1)}(u,e,t,n)):null}function Oe(e,r,t,n){Array.isArray(r)||R(r)||(n=t,t=r,r=null);let o="";"string"==typeof n&&(o=n,n=null),t=t||{};const i=Se(oe(r,n),o,e);return i?function(e,r,t,n){if(r=Z(r,e),e.parseTextSync&&"string"==typeof r)return e.parseTextSync(r,t,n,e);if(e.parseSync)return e.parseSync(r,t,n,e);throw new Error(`${e.name} loader: 'parseSync' not supported by this loader, use 'parse' instead. ${n.url||""}`)}(i,e,t=D(i,t,o),n=ne({url:o,parseSync:Oe,loaders:r})):null}async function _e(e,r){for(;;){const{done:t,value:n}=await e.next();if(t)return void e.return();if(r(n))return}}async function*Ie(e,r){const t=new TextDecoder(r);for await(const r of e)yield"string"==typeof r?r:t.decode(r,{stream:!0})}async function*We(e){let r="";for await(const t of e){let e;for(r+=t;(e=r.indexOf("\n"))>=0;){const t=r.slice(0,e+1);r=r.slice(e+1),yield t}}r.length>0&&(yield r)}async function*Le(e){let r=1;for await(const t of e)yield{counter:r,line:t},r++}async function Pe(e,r,t,n){Array.isArray(r)||R(r)||(n=t,t=r,r=null);const o=Se(r,n,null);return function(e,r,t,n){if(e.parseInBatches){let o=re(r);return e.text&&(o=Ie(o)),e.parseInBatches(o,t,n,e)}throw new Error("parseWithLoaderInBatchesSync not available")}(o,e,t=D(o,t,n),ne({url:n,loaders:r}))}async function Ce(e,r,t,n){Array.isArray(r)||R(r)||(n=t,t=r,r=null);const o=Se(r,n,null);return function(e,r,t,n){if(e.parseInBatchesSync){const o=te(r);return e.parseInBatchesSync(o,t,n,e)}throw new Error("parseWithLoaderInBatchesSync not available")}(o,e,t=D(o,t),ne({url:n,loaders:r}))}async function Ee(e,r,t){Array.isArray(r)||R(r)||(t=r,r=null);let n=e;return"string"==typeof e?n=await v(e,t):e=null,w(e)&&(n=await v(e,t),e=null),await je(n,r,t,e)}async function $e(e,r,t){return Pe(await v(e,t),r,t,e)}async function De(e,r,t,n){if(r.encode)return await r.encode(e,t);if(r.encodeSync)return r.encodeSync(e,t);throw new Error("Writer could not encode data")}function Me(e,r,t,n){if(r.encodeSync)return r.encodeSync(e,t);throw new Error("Writer could not synchronously encode data")}function Fe(e,r,t,n){if(r.encodeInBatches)return r.encodeInBatches(e,t);throw new Error("Writer could not encode data in batches")}function Re(e,r,t,n){return W(r,De(e,t,n))}function Ue(e,r,t,n){return L(r,Me(e,t,n))}async function Qe(e,r,t=(()=>{}),n=(()=>{})){if(!(e=await e).ok)return e;if(!e.body)return e;const o=e.headers.get("content-length"),i=o&&parseInt(o,10);if(!(o>0))return e;if("undefined"==typeof ReadableStream)return e;const s=new ReadableStream({start(o){!async function e(r,t,n,o,i,s,u){try{const{done:a,value:c}=await t.read();if(a)return s(),void r.close();n+=c.byteLength;const f=Math.round(n/o*100);i(f,{loadedBytes:n,totalBytes:o}),r.enqueue(c),await e(r,t,n,o,i,s,u)}catch(e){r.error(e),u(e)}}(o,e.body.getReader(),0,i,r,t,n)}});return new Response(s)}t.d(r,"fetchFile",(function(){return v})),t.d(r,"readFileSync",(function(){return _})),t.d(r,"writeFile",(function(){return W})),t.d(r,"writeFileSync",(function(){return L})),t.d(r,"setLoaderOptions",(function(){return F})),t.d(r,"registerLoaders",(function(){return N})),t.d(r,"parse",(function(){return je})),t.d(r,"parseSync",(function(){return Oe})),t.d(r,"parseInBatches",(function(){return Pe})),t.d(r,"parseInBatchesSync",(function(){return Ce})),t.d(r,"load",(function(){return Ee})),t.d(r,"loadInBatches",(function(){return $e})),t.d(r,"encode",(function(){return De})),t.d(r,"encodeSync",(function(){return Me})),t.d(r,"encodeInBatches",(function(){return Fe})),t.d(r,"save",(function(){return Re})),t.d(r,"saveSync",(function(){return Ue})),t.d(r,"isPromise",(function(){return l})),t.d(r,"isIterable",(function(){return d})),t.d(r,"isAsyncIterable",(function(){return y})),t.d(r,"isIterator",(function(){return h})),t.d(r,"isFetchResponse",(function(){return p})),t.d(r,"isReadableStream",(function(){return g})),t.d(r,"isWritableStream",(function(){return m})),t.d(r,"toArrayBuffer",(function(){return se})),t.d(r,"makeStreamIterator",(function(){return q})),t.d(r,"forEach",(function(){return _e})),t.d(r,"lineAsyncIterator",(function(){return We})),t.d(r,"textDecoderAsyncIterator",(function(){return Ie})),t.d(r,"numberedLineAsyncIterator",(function(){return Le})),t.d(r,"makeChunkIterator",(function(){return X})),t.d(r,"concatenateChunksAsync",(function(){return K})),t.d(r,"isBrowser",(function(){return k.c})),t.d(r,"isWorker",(function(){return k.d})),t.d(r,"self",(function(){return k.f})),t.d(r,"window",(function(){return k.g})),t.d(r,"global",(function(){return k.b})),t.d(r,"document",(function(){return k.a})),t.d(r,"assert",(function(){return A})),t.d(r,"setPathPrefix",(function(){return i})),t.d(r,"getPathPrefix",(function(){return s})),t.d(r,"resolvePath",(function(){return u})),t.d(r,"_selectLoader",(function(){return Se})),t.d(r,"_WorkerThread",(function(){return de})),t.d(r,"_WorkerFarm",(function(){return pe})),t.d(r,"_WorkerPool",(function(){return ye})),t.d(r,"_fetchProgress",(function(){return Qe})),t.d(r,"_unregisterLoaders",(function(){return V})),t.d(r,"contatenateAsyncIterator",(function(){return K})),t.d(r,"getStreamIterator",(function(){return q}))},function(e,r,t){"use strict";(function(e,n){t.d(r,"f",(function(){return i})),t.d(r,"g",(function(){return s})),t.d(r,"b",(function(){return u})),t.d(r,"a",(function(){return a})),t.d(r,"c",(function(){return c})),t.d(r,"d",(function(){return f})),t.d(r,"e",(function(){return d}));const o={self:"undefined"!=typeof self&&self,window:"undefined"!=typeof window&&window,global:void 0!==e&&e,document:"undefined"!=typeof document&&document},i=o.self||o.window||o.global,s=o.window||o.self||o.global,u=o.global||o.self||o.window,a=o.document||{},c="object"!=typeof n||"[object process]"!==String(n)||n.browser,f="function"==typeof importScripts,l=void 0!==n&&n.version&&n.version.match(/v([0-9]*)/),d=l&&parseFloat(l[1])||0}).call(this,t(4),t(6))}])}));