/* ES Module Shims 0.12.2 */ (function () { // Temporary hack around https://github.com/guybedford/es-module-shims/issues/148 if (navigator.userAgent.match("Chrome")) return const resolvedPromise = Promise.resolve(); let baseUrl; function createBlob (source, type = 'text/javascript') { return URL.createObjectURL(new Blob([source], { type })); } const hasDocument = typeof document !== 'undefined'; // support browsers without dynamic import support (eg Firefox 6x) let supportsDynamicImport = false; let supportsJsonAssertions = false; let dynamicImport; try { dynamicImport = (0, eval)('u=>import(u)'); supportsDynamicImport = true; } catch (e) { if (hasDocument) { let err; self.addEventListener('error', e => err = e.error); dynamicImport = blobUrl => { const topLevelBlobUrl = createBlob( `import*as m from'${blobUrl}';self._esmsi=m;` ); const s = document.createElement('script'); s.type = 'module'; s.src = topLevelBlobUrl; document.head.appendChild(s); return new Promise((resolve, reject) => { s.addEventListener('load', () => { document.head.removeChild(s); if (self._esmsi) { resolve(self._esmsi, baseUrl); self._esmsi = null; } else { reject(err); } }); }); }; } } let supportsImportMeta = false; let supportsImportMaps = false; const featureDetectionPromise = Promise.all([ dynamicImport(createBlob('import"data:text/json,{}"assert{type:"json"}')).then(() => supportsJsonAssertions = true, () => {}), dynamicImport(createBlob('import.meta')).then(() => supportsImportMeta = true, () => {}), supportsDynamicImport && hasDocument && new Promise(resolve => { self._$s = v => { document.body.removeChild(iframe); if (v) supportsImportMaps = true; delete self._$s; resolve(); }; const iframe = document.createElement('iframe'); iframe.style.display = 'none'; iframe.srcdoc = `