diff --git a/dist/bootstrap.js b/dist/bootstrap.js deleted file mode 100644 index af4bae7..0000000 --- a/dist/bootstrap.js +++ /dev/null @@ -1,1105 +0,0 @@ -/******/ (function(modules) { // webpackBootstrap -/******/ // The module cache -/******/ var installedModules = {}; -/******/ -/******/ // The require function -/******/ function __webpack_require__(moduleId) { -/******/ -/******/ // Check if module is in cache -/******/ if(installedModules[moduleId]) { -/******/ return installedModules[moduleId].exports; -/******/ } -/******/ // Create a new module (and put it into the cache) -/******/ var module = installedModules[moduleId] = { -/******/ i: moduleId, -/******/ l: false, -/******/ exports: {} -/******/ }; -/******/ -/******/ // Execute the module function -/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); -/******/ -/******/ // Flag the module as loaded -/******/ module.l = true; -/******/ -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } -/******/ -/******/ -/******/ // expose the modules object (__webpack_modules__) -/******/ __webpack_require__.m = modules; -/******/ -/******/ // expose the module cache -/******/ __webpack_require__.c = installedModules; -/******/ -/******/ // define getter function for harmony exports -/******/ __webpack_require__.d = function(exports, name, getter) { -/******/ if(!__webpack_require__.o(exports, name)) { -/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); -/******/ } -/******/ }; -/******/ -/******/ // define __esModule on exports -/******/ __webpack_require__.r = function(exports) { -/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { -/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); -/******/ } -/******/ Object.defineProperty(exports, '__esModule', { value: true }); -/******/ }; -/******/ -/******/ // create a fake namespace object -/******/ // mode & 1: value is a module id, require it -/******/ // mode & 2: merge all properties of value into the ns -/******/ // mode & 4: return value when already ns object -/******/ // mode & 8|1: behave like require -/******/ __webpack_require__.t = function(value, mode) { -/******/ if(mode & 1) value = __webpack_require__(value); -/******/ if(mode & 8) return value; -/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; -/******/ var ns = Object.create(null); -/******/ __webpack_require__.r(ns); -/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); -/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); -/******/ return ns; -/******/ }; -/******/ -/******/ // getDefaultExport function for compatibility with non-harmony modules -/******/ __webpack_require__.n = function(module) { -/******/ var getter = module && module.__esModule ? -/******/ function getDefault() { return module['default']; } : -/******/ function getModuleExports() { return module; }; -/******/ __webpack_require__.d(getter, 'a', getter); -/******/ return getter; -/******/ }; -/******/ -/******/ // Object.prototype.hasOwnProperty.call -/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; -/******/ -/******/ // __webpack_public_path__ -/******/ __webpack_require__.p = ""; -/******/ -/******/ -/******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 0); -/******/ }) -/************************************************************************/ -/******/ ({ - -/***/ "./node_modules/systemjs/dist/system.js": -/*!**********************************************!*\ - !*** ./node_modules/systemjs/dist/system.js ***! - \**********************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -/* WEBPACK VAR INJECTION */(function(global) {/* -* SystemJS 6.2.2 -*/ -(function () { - const hasSelf = typeof self !== 'undefined'; - - const hasDocument = typeof document !== 'undefined'; - - const envGlobal = hasSelf ? self : global; - - let baseUrl; - - if (hasDocument) { - const baseEl = document.querySelector('base[href]'); - if (baseEl) - baseUrl = baseEl.href; - } - - if (!baseUrl && typeof location !== 'undefined') { - baseUrl = location.href.split('#')[0].split('?')[0]; - const lastSepIndex = baseUrl.lastIndexOf('/'); - if (lastSepIndex !== -1) - baseUrl = baseUrl.slice(0, lastSepIndex + 1); - } - - const backslashRegEx = /\\/g; - function resolveIfNotPlainOrUrl (relUrl, parentUrl) { - if (relUrl.indexOf('\\') !== -1) - relUrl = relUrl.replace(backslashRegEx, '/'); - // protocol-relative - if (relUrl[0] === '/' && relUrl[1] === '/') { - return parentUrl.slice(0, parentUrl.indexOf(':') + 1) + relUrl; - } - // relative-url - else if (relUrl[0] === '.' && (relUrl[1] === '/' || relUrl[1] === '.' && (relUrl[2] === '/' || relUrl.length === 2 && (relUrl += '/')) || - relUrl.length === 1 && (relUrl += '/')) || - relUrl[0] === '/') { - const parentProtocol = parentUrl.slice(0, parentUrl.indexOf(':') + 1); - // Disabled, but these cases will give inconsistent results for deep backtracking - //if (parentUrl[parentProtocol.length] !== '/') - // throw Error('Cannot resolve'); - // read pathname from parent URL - // pathname taken to be part after leading "/" - let pathname; - if (parentUrl[parentProtocol.length + 1] === '/') { - // resolving to a :// so we need to read out the auth and host - if (parentProtocol !== 'file:') { - pathname = parentUrl.slice(parentProtocol.length + 2); - pathname = pathname.slice(pathname.indexOf('/') + 1); - } - else { - pathname = parentUrl.slice(8); - } - } - else { - // resolving to :/ so pathname is the /... part - pathname = parentUrl.slice(parentProtocol.length + (parentUrl[parentProtocol.length] === '/')); - } - - if (relUrl[0] === '/') - return parentUrl.slice(0, parentUrl.length - pathname.length - 1) + relUrl; - - // join together and split for removal of .. and . segments - // looping the string instead of anything fancy for perf reasons - // '../../../../../z' resolved to 'x/y' is just 'z' - const segmented = pathname.slice(0, pathname.lastIndexOf('/') + 1) + relUrl; - - const output = []; - let segmentIndex = -1; - for (let i = 0; i < segmented.length; i++) { - // busy reading a segment - only terminate on '/' - if (segmentIndex !== -1) { - if (segmented[i] === '/') { - output.push(segmented.slice(segmentIndex, i + 1)); - segmentIndex = -1; - } - } - - // new segment - check if it is relative - else if (segmented[i] === '.') { - // ../ segment - if (segmented[i + 1] === '.' && (segmented[i + 2] === '/' || i + 2 === segmented.length)) { - output.pop(); - i += 2; - } - // ./ segment - else if (segmented[i + 1] === '/' || i + 1 === segmented.length) { - i += 1; - } - else { - // the start of a new segment as below - segmentIndex = i; - } - } - // it is the start of a new segment - else { - segmentIndex = i; - } - } - // finish reading out the last segment - if (segmentIndex !== -1) - output.push(segmented.slice(segmentIndex)); - return parentUrl.slice(0, parentUrl.length - pathname.length) + output.join(''); - } - } - - /* - * Import maps implementation - * - * To make lookups fast we pre-resolve the entire import map - * and then match based on backtracked hash lookups - * - */ - - function resolveUrl (relUrl, parentUrl) { - return resolveIfNotPlainOrUrl(relUrl, parentUrl) || (relUrl.indexOf(':') !== -1 ? relUrl : resolveIfNotPlainOrUrl('./' + relUrl, parentUrl)); - } - - function objectAssign (to, from) { - for (let p in from) - to[p] = from[p]; - return to; - } - - function resolveAndComposePackages (packages, outPackages, baseUrl, parentMap, parentUrl) { - for (let p in packages) { - const resolvedLhs = resolveIfNotPlainOrUrl(p, baseUrl) || p; - const rhs = packages[p]; - // package fallbacks not currently supported - if (typeof rhs !== 'string') - continue; - const mapped = resolveImportMap(parentMap, resolveIfNotPlainOrUrl(rhs, baseUrl) || rhs, parentUrl); - if (!mapped) - targetWarning(p, rhs, 'bare specifier did not resolve'); - else - outPackages[resolvedLhs] = mapped; - } - } - - function resolveAndComposeImportMap (json, baseUrl, parentMap) { - const outMap = { imports: objectAssign({}, parentMap.imports), scopes: objectAssign({}, parentMap.scopes) }; - - if (json.imports) - resolveAndComposePackages(json.imports, outMap.imports, baseUrl, parentMap, null); - - if (json.scopes) - for (let s in json.scopes) { - const resolvedScope = resolveUrl(s, baseUrl); - resolveAndComposePackages(json.scopes[s], outMap.scopes[resolvedScope] || (outMap.scopes[resolvedScope] = {}), baseUrl, parentMap, resolvedScope); - } - - return outMap; - } - - function getMatch (path, matchObj) { - if (matchObj[path]) - return path; - let sepIndex = path.length; - do { - const segment = path.slice(0, sepIndex + 1); - if (segment in matchObj) - return segment; - } while ((sepIndex = path.lastIndexOf('/', sepIndex - 1)) !== -1) - } - - function applyPackages (id, packages) { - const pkgName = getMatch(id, packages); - if (pkgName) { - const pkg = packages[pkgName]; - if (pkg === null) return; - if (id.length > pkgName.length && pkg[pkg.length - 1] !== '/') - targetWarning(pkgName, pkg, "should have a trailing '/'"); - else - return pkg + id.slice(pkgName.length); - } - } - - function targetWarning (match, target, msg) { - console.warn("Package target " + msg + ", resolving target '" + target + "' for " + match); - } - - function resolveImportMap (importMap, resolvedOrPlain, parentUrl) { - let scopeUrl = parentUrl && getMatch(parentUrl, importMap.scopes); - while (scopeUrl) { - const packageResolution = applyPackages(resolvedOrPlain, importMap.scopes[scopeUrl]); - if (packageResolution) - return packageResolution; - scopeUrl = getMatch(scopeUrl.slice(0, scopeUrl.lastIndexOf('/')), importMap.scopes); - } - return applyPackages(resolvedOrPlain, importMap.imports) || resolvedOrPlain.indexOf(':') !== -1 && resolvedOrPlain; - } - - /* - * SystemJS Core - * - * Provides - * - System.import - * - System.register support for - * live bindings, function hoisting through circular references, - * reexports, dynamic import, import.meta.url, top-level await - * - System.getRegister to get the registration - * - Symbol.toStringTag support in Module objects - * - Hookable System.createContext to customize import.meta - * - System.onload(err, id, deps) handler for tracing / hot-reloading - * - * Core comes with no System.prototype.resolve or - * System.prototype.instantiate implementations - */ - - const hasSymbol = typeof Symbol !== 'undefined'; - const toStringTag = hasSymbol && Symbol.toStringTag; - const REGISTRY = hasSymbol ? Symbol() : '@'; - - function SystemJS () { - this[REGISTRY] = {}; - } - - const systemJSPrototype = SystemJS.prototype; - - systemJSPrototype.prepareImport = function () {}; - - systemJSPrototype.import = function (id, parentUrl) { - const loader = this; - return Promise.resolve(loader.prepareImport()) - .then(function() { - return loader.resolve(id, parentUrl); - }) - .then(function (id) { - const load = getOrCreateLoad(loader, id); - return load.C || topLevelLoad(loader, load); - }); - }; - - // Hookable createContext function -> allowing eg custom import meta - systemJSPrototype.createContext = function (parentId) { - return { - url: parentId - }; - }; - - // onLoad(err, id, deps) provided for tracing / hot-reloading - systemJSPrototype.onload = function () {}; - function loadToId (load) { - return load.id; - } - function triggerOnload (loader, load, err) { - loader.onload(err, load.id, load.d && load.d.map(loadToId)); - if (err) - throw err; - } - - let lastRegister; - systemJSPrototype.register = function (deps, declare) { - lastRegister = [deps, declare]; - }; - - /* - * getRegister provides the last anonymous System.register call - */ - systemJSPrototype.getRegister = function () { - const _lastRegister = lastRegister; - lastRegister = undefined; - return _lastRegister; - }; - - function getOrCreateLoad (loader, id, firstParentUrl) { - let load = loader[REGISTRY][id]; - if (load) - return load; - - const importerSetters = []; - const ns = Object.create(null); - if (toStringTag) - Object.defineProperty(ns, toStringTag, { value: 'Module' }); - - let instantiatePromise = Promise.resolve() - .then(function () { - return loader.instantiate(id, firstParentUrl); - }) - .then(function (registration) { - if (!registration) - throw Error('Module ' + id + ' did not instantiate'); - function _export (name, value) { - // note if we have hoisted exports (including reexports) - load.h = true; - let changed = false; - if (typeof name !== 'object') { - if (!(name in ns) || ns[name] !== value) { - ns[name] = value; - changed = true; - } - } - else { - for (let p in name) { - let value = name[p]; - if (!(p in ns) || ns[p] !== value) { - ns[p] = value; - changed = true; - } - } - - if (name.__esModule) { - ns.__esModule = name.__esModule; - } - } - if (changed) - for (let i = 0; i < importerSetters.length; i++) - importerSetters[i](ns); - return value; - } - const declared = registration[1](_export, registration[1].length === 2 ? { - import: function (importId) { - return loader.import(importId, id); - }, - meta: loader.createContext(id) - } : undefined); - load.e = declared.execute || function () {}; - return [registration[0], declared.setters || []]; - }); - - instantiatePromise = instantiatePromise.catch(function (err) { - triggerOnload(loader, load, err); - }); - - const linkPromise = instantiatePromise - .then(function (instantiation) { - return Promise.all(instantiation[0].map(function (dep, i) { - const setter = instantiation[1][i]; - return Promise.resolve(loader.resolve(dep, id)) - .then(function (depId) { - const depLoad = getOrCreateLoad(loader, depId, id); - // depLoad.I may be undefined for already-evaluated - return Promise.resolve(depLoad.I) - .then(function () { - if (setter) { - depLoad.i.push(setter); - // only run early setters when there are hoisted exports of that module - // the timing works here as pending hoisted export calls will trigger through importerSetters - if (depLoad.h || !depLoad.I) - setter(depLoad.n); - } - return depLoad; - }); - }) - })) - .then(function (depLoads) { - load.d = depLoads; - }); - }); - - linkPromise.catch(function (err) { - load.e = null; - load.er = err; - }); - - // Capital letter = a promise function - return load = loader[REGISTRY][id] = { - id: id, - // importerSetters, the setters functions registered to this dependency - // we retain this to add more later - i: importerSetters, - // module namespace object - n: ns, - - // instantiate - I: instantiatePromise, - // link - L: linkPromise, - // whether it has hoisted exports - h: false, - - // On instantiate completion we have populated: - // dependency load records - d: undefined, - // execution function - // set to NULL immediately after execution (or on any failure) to indicate execution has happened - // in such a case, C should be used, and E, I, L will be emptied - e: undefined, - - // On execution we have populated: - // the execution error if any - er: undefined, - // in the case of TLA, the execution promise - E: undefined, - - // On execution, L, I, E cleared - - // Promise for top-level completion - C: undefined - }; - } - - function instantiateAll (loader, load, loaded) { - if (!loaded[load.id]) { - loaded[load.id] = true; - // load.L may be undefined for already-instantiated - return Promise.resolve(load.L) - .then(function () { - return Promise.all(load.d.map(function (dep) { - return instantiateAll(loader, dep, loaded); - })); - }) - } - } - - function topLevelLoad (loader, load) { - return load.C = instantiateAll(loader, load, {}) - .then(function () { - return postOrderExec(loader, load, {}); - }) - .then(function () { - return load.n; - }); - } - - // the closest we can get to call(undefined) - const nullContext = Object.freeze(Object.create(null)); - - // returns a promise if and only if a top-level await subgraph - // throws on sync errors - function postOrderExec (loader, load, seen) { - if (seen[load.id]) - return; - seen[load.id] = true; - - if (!load.e) { - if (load.er) - throw load.er; - if (load.E) - return load.E; - return; - } - - // deps execute first, unless circular - let depLoadPromises; - load.d.forEach(function (depLoad) { - { - try { - const depLoadPromise = postOrderExec(loader, depLoad, seen); - if (depLoadPromise) { - depLoadPromise.catch(function (err) { - triggerOnload(loader, load, err); - }); - (depLoadPromises = depLoadPromises || []).push(depLoadPromise); - } - } - catch (err) { - triggerOnload(loader, load, err); - } - } - }); - if (depLoadPromises) - return Promise.all(depLoadPromises).then(doExec); - - return doExec(); - - function doExec () { - try { - let execPromise = load.e.call(nullContext); - if (execPromise) { - execPromise = execPromise.then(function () { - load.C = load.n; - load.E = null; // indicates completion - triggerOnload(loader, load, null); - }, function (err) { - triggerOnload(loader, load, err); - }); - return load.E = load.E || execPromise; - } - // (should be a promise, but a minify optimization to leave out Promise.resolve) - load.C = load.n; - triggerOnload(loader, load, null); - } - catch (err) { - triggerOnload(loader, load, err); - load.er = err; - throw err; - } - finally { - load.L = load.I = undefined; - load.e = null; - } - } - } - - envGlobal.System = new SystemJS(); - - /* - * Import map support for SystemJS - * - * - * OR - * - * - * Only those import maps available at the time of SystemJS initialization will be loaded - * and they will be loaded in DOM order. - * - * There is no support for dynamic import maps injection currently. - */ - - let importMap = { imports: {}, scopes: {} }, importMapPromise; - - if (hasDocument) { - Array.prototype.forEach.call(document.querySelectorAll('script[type="systemjs-importmap"][src]'), function (script) { - script._j = fetch(script.src).then(function (res) { - return res.json(); - }); - }); - } - - systemJSPrototype.prepareImport = function () { - if (!importMapPromise) { - importMapPromise = Promise.resolve(); - if (hasDocument) - Array.prototype.forEach.call(document.querySelectorAll('script[type="systemjs-importmap"]'), function (script) { - importMapPromise = importMapPromise.then(function () { - return (script._j || script.src && fetch(script.src).then(function (resp) { return resp.json(); }) || Promise.resolve(JSON.parse(script.innerHTML))) - .then(function (json) { - importMap = resolveAndComposeImportMap(json, script.src || baseUrl, importMap); - }); - }); - }); - } - return importMapPromise; - }; - - systemJSPrototype.resolve = function (id, parentUrl) { - parentUrl = parentUrl || baseUrl; - return resolveImportMap(importMap, resolveIfNotPlainOrUrl(id, parentUrl) || id, parentUrl) || throwUnresolved(id, parentUrl); - }; - - function throwUnresolved (id, parentUrl) { - throw Error("Unable to resolve specifier '" + id + (parentUrl ? "' from " + parentUrl : "'")); - } - - /* - * Supports loading System.register via script tag injection - */ - - const systemRegister = systemJSPrototype.register; - systemJSPrototype.register = function (deps, declare) { - systemRegister.call(this, deps, declare); - }; - - systemJSPrototype.createScript = function (url) { - const script = document.createElement('script'); - script.charset = 'utf-8'; - script.async = true; - script.crossOrigin = 'anonymous'; - script.src = url; - return script; - }; - - let lastWindowErrorUrl, lastWindowError; - if (hasDocument) - window.addEventListener('error', function (evt) { - lastWindowErrorUrl = evt.filename; - lastWindowError = evt.error; - }); - - systemJSPrototype.instantiate = function (url, firstParentUrl) { - const loader = this; - return new Promise(function (resolve, reject) { - const script = systemJSPrototype.createScript(url); - script.addEventListener('error', function () { - reject(Error('Error loading ' + url + (firstParentUrl ? ' from ' + firstParentUrl : ''))); - }); - script.addEventListener('load', function () { - document.head.removeChild(script); - // Note that if an error occurs that isn't caught by this if statement, - // that getRegister will return null and a "did not instantiate" error will be thrown. - if (lastWindowErrorUrl === url) { - reject(lastWindowError); - } - else { - resolve(loader.getRegister()); - } - }); - document.head.appendChild(script); - }); - }; - - if (hasDocument) { - window.addEventListener('DOMContentLoaded', loadScriptModules); - loadScriptModules(); - } - - function loadScriptModules() { - Array.prototype.forEach.call( - document.querySelectorAll('script[type=systemjs-module]'), function (script) { - if (script.src) { - System.import(script.src.slice(0, 7) === 'import:' ? script.src.slice(7) : resolveUrl(script.src, baseUrl)); - } - }); - } - - /* - * Supports loading System.register in workers - */ - - if (hasSelf && typeof importScripts === 'function') - systemJSPrototype.instantiate = function (url) { - const loader = this; - return new Promise(function (resolve, reject) { - try { - importScripts(url); - } - catch (e) { - reject(e); - } - resolve(loader.getRegister()); - }); - }; - - /* - * SystemJS global script loading support - * Extra for the s.js build only - * (Included by default in system.js build) - */ - (function (global) { - const systemJSPrototype = global.System.constructor.prototype; - const isIE = navigator.userAgent.indexOf('Trident') !== -1; - - // safari unpredictably lists some new globals first or second in object order - let firstGlobalProp, secondGlobalProp, lastGlobalProp; - function getGlobalProp () { - let cnt = 0; - let lastProp; - for (let p in global) { - // do not check frames cause it could be removed during import - if ( - !global.hasOwnProperty(p) - || (!isNaN(p) && p < global.length) - || (isIE && global[p] && global[p].parent === window) - ) - continue; - if (cnt === 0 && p !== firstGlobalProp || cnt === 1 && p !== secondGlobalProp) - return p; - cnt++; - lastProp = p; - } - if (lastProp !== lastGlobalProp) - return lastProp; - } - - function noteGlobalProps () { - // alternatively Object.keys(global).pop() - // but this may be faster (pending benchmarks) - firstGlobalProp = secondGlobalProp = undefined; - for (let p in global) { - // do not check frames cause it could be removed during import - if ( - !global.hasOwnProperty(p) - || (!isNaN(p) && p < global.length) - || (isIE && global[p] && global[p].parent === window) - ) - continue; - if (!firstGlobalProp) - firstGlobalProp = p; - else if (!secondGlobalProp) - secondGlobalProp = p; - lastGlobalProp = p; - } - return lastGlobalProp; - } - - const impt = systemJSPrototype.import; - systemJSPrototype.import = function (id, parentUrl) { - noteGlobalProps(); - return impt.call(this, id, parentUrl); - }; - - const emptyInstantiation = [[], function () { return {} }]; - - const getRegister = systemJSPrototype.getRegister; - systemJSPrototype.getRegister = function () { - const lastRegister = getRegister.call(this); - if (lastRegister) - return lastRegister; - - // no registration -> attempt a global detection as difference from snapshot - // when multiple globals, we take the global value to be the last defined new global object property - // for performance, this will not support multi-version / global collisions as previous SystemJS versions did - // note in Edge, deleting and re-adding a global does not change its ordering - const globalProp = getGlobalProp(); - if (!globalProp) - return emptyInstantiation; - - let globalExport; - try { - globalExport = global[globalProp]; - } - catch (e) { - return emptyInstantiation; - } - - return [[], function (_export) { - return { - execute: function () { - _export({ default: globalExport, __useDefault: true }); - } - }; - }]; - }; - })(typeof self !== 'undefined' ? self : global); - - /* - * Loads JSON, CSS, Wasm module types based on file extensions - * Supports application/javascript falling back to JS eval - */ - (function(global) { - const systemJSPrototype = global.System.constructor.prototype; - const instantiate = systemJSPrototype.instantiate; - - const moduleTypesRegEx = /\.(css|html|json|wasm)$/; - systemJSPrototype.shouldFetch = function (url) { - const path = url.split('?')[0].split('#')[0]; - const ext = path.slice(path.lastIndexOf('.')); - return ext.match(moduleTypesRegEx); - }; - systemJSPrototype.fetch = function (url) { - return fetch(url); - }; - - systemJSPrototype.instantiate = function (url, parent) { - const loader = this; - if (this.shouldFetch(url)) { - return this.fetch(url) - .then(function (res) { - if (!res.ok) - throw Error(res.status + ' ' + res.statusText + ', loading ' + url + (parent ? ' from ' + parent : '')); - const contentType = res.headers.get('content-type'); - if (contentType.match(/^(text|application)\/(x-)?javascript(;|$)/)) { - return res.text().then(function (source) { - (0, eval)(source); - return loader.getRegister(); - }); - } - else if (contentType.match(/^application\/json(;|$)/)) { - return res.text().then(function (source) { - return [[], function (_export) { - return { - execute: function () { - _export('default', JSON.parse(source)); - } - }; - }]; - }); - } - else if (contentType.match(/^text\/css(;|$)/)) { - return res.text().then(function (source) { - return [[], function (_export) { - return { - execute: function () { - // Relies on a Constructable Stylesheet polyfill - const stylesheet = new CSSStyleSheet(); - stylesheet.replaceSync(source); - _export('default', stylesheet); - } - }; - }]; - }); - } - else if (contentType.match(/^application\/wasm(;|$)/)) { - return (WebAssembly.compileStreaming ? WebAssembly.compileStreaming(res) : res.arrayBuffer().then(WebAssembly.compile)) - .then(function (module) { - const deps = []; - const setters = []; - const importObj = {}; - - // we can only set imports if supported (eg early Safari doesnt support) - if (WebAssembly.Module.imports) - WebAssembly.Module.imports(module).forEach(function (impt) { - const key = impt.module; - if (deps.indexOf(key) === -1) { - deps.push(key); - setters.push(function (m) { - importObj[key] = m; - }); - } - }); - - return [deps, function (_export) { - return { - setters: setters, - execute: function () { - return WebAssembly.instantiate(module, importObj) - .then(function (instance) { - _export(instance.exports); - }); - } - }; - }]; - }); - } - else { - throw new Error('Unknown module type "' + contentType + '"'); - } - }); - } - return instantiate.apply(this, arguments); - }; - })(typeof self !== 'undefined' ? self : global); - - const toStringTag$1 = typeof Symbol !== 'undefined' && Symbol.toStringTag; - - systemJSPrototype.get = function (id) { - const load = this[REGISTRY][id]; - if (load && load.e === null && !load.E) { - if (load.er) - return null; - return load.n; - } - }; - - systemJSPrototype.set = function (id, module) { - let ns; - if (toStringTag$1 && module[toStringTag$1] === 'Module') { - ns = module; - } - else { - ns = Object.assign(Object.create(null), module); - if (toStringTag$1) - Object.defineProperty(ns, toStringTag$1, { value: 'Module' }); - } - - const done = Promise.resolve(ns); - - const load = this[REGISTRY][id] || (this[REGISTRY][id] = { - id: id, - i: [], - h: false, - d: [], - e: null, - er: undefined, - E: undefined - }); - - if (load.e || load.E) - return false; - - Object.assign(load, { - n: ns, - I: undefined, - L: undefined, - C: done - }); - return ns; - }; - - systemJSPrototype.has = function (id) { - const load = this[REGISTRY][id]; - return !!load; - }; - - // Delete function provided for hot-reloading use cases - systemJSPrototype.delete = function (id) { - const registry = this[REGISTRY]; - const load = registry[id]; - // in future we can support load.E case by failing load first - // but that will require TLA callbacks to be implemented - if (!load || load.e !== null || load.E) - return false; - - let importerSetters = load.i; - // remove from importerSetters - // (release for gc) - if (load.d) - load.d.forEach(function (depLoad) { - const importerIndex = depLoad.i.indexOf(load); - if (importerIndex !== -1) - depLoad.i.splice(importerIndex, 1); - }); - delete registry[id]; - return function () { - const load = registry[id]; - if (!load || !importerSetters || load.e !== null || load.E) - return false; - // add back the old setters - importerSetters.forEach(function (setter) { - load.i.push(setter); - setter(load.n); - }); - importerSetters = null; - }; - }; - - const iterator = typeof Symbol !== 'undefined' && Symbol.iterator; - - systemJSPrototype.entries = function () { - const loader = this, keys = Object.keys(loader[REGISTRY]); - let index = 0, ns, key; - const result = { - next: function () { - while ( - (key = keys[index++]) !== undefined && - (ns = loader.get(key)) === undefined - ); - return { - done: key === undefined, - value: key !== undefined && [key, ns] - }; - } - }; - - result[iterator] = function() { return this }; - - return result; - }; - -}()); - -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js"))) - -/***/ }), - -/***/ "./node_modules/webpack/buildin/global.js": -/*!***********************************!*\ - !*** (webpack)/buildin/global.js ***! - \***********************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -var g; - -// This works in non-strict mode -g = (function() { - return this; -})(); - -try { - // This works if eval is allowed (see CSP) - g = g || new Function("return this")(); -} catch (e) { - // This works if the window reference is available - if (true) g = window; -} - -// g can still be undefined, but nothing to do about it... -// We return undefined, instead of nothing here, so it's -// easier to handle this case. if(!global) { ...} - -module.exports = g; - - -/***/ }), - -/***/ "./node_modules/webpack/buildin/module.js": -/*!***********************************!*\ - !*** (webpack)/buildin/module.js ***! - \***********************************/ -/*! no static exports found */ -/***/ (function(module, exports) { - -module.exports = function(module) { - if (!module.webpackPolyfill) { - module.deprecate = function() {}; - module.paths = []; - // module.parent = undefined by default - if (!module.children) module.children = []; - Object.defineProperty(module, "loaded", { - enumerable: true, - get: function() { - return module.l; - } - }); - Object.defineProperty(module, "id", { - enumerable: true, - get: function() { - return module.i; - } - }); - module.webpackPolyfill = 1; - } - return module; -}; - - -/***/ }), - -/***/ "./src/main.js": -/*!*********************!*\ - !*** ./src/main.js ***! - \*********************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -/* WEBPACK VAR INJECTION */(function(module) {const sysytemJs = __webpack_require__(/*! systemjs/dist/system */ "./node_modules/systemjs/dist/system.js") - -module.export = ({ apps, navigations, config }) => { - sysytemJs.import('./main/index.js') -}; -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../node_modules/webpack/buildin/module.js */ "./node_modules/webpack/buildin/module.js")(module))) - -/***/ }), - -/***/ 0: -/*!***************************!*\ - !*** multi ./src/main.js ***! - \***************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -module.exports = __webpack_require__(/*! ./src/main.js */"./src/main.js"); - - -/***/ }) - -/******/ }); -//# sourceMappingURL=bootstrap.js.map \ No newline at end of file diff --git a/dist/bootstrap.js.map b/dist/bootstrap.js.map deleted file mode 100644 index eeeb566..0000000 --- a/dist/bootstrap.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./node_modules/systemjs/dist/system.js","webpack:///(webpack)/buildin/global.js","webpack:///(webpack)/buildin/module.js","webpack:///./src/main.js"],"names":[],"mappings":";QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;;AClFA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,qBAAqB,sBAAsB;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,oBAAoB,yBAAyB,6CAA6C;;AAE1F;AACA;;AAEA;AACA;AACA;AACA,oHAAoH;AACpH;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,8CAA8C,kBAAkB;;AAEhE;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,yBAAyB,4BAA4B;AACrD;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,OAAO;AACP;AACA;AACA,KAAK;;AAEL;AACA;AACA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX,SAAS;AACT,OAAO;AACP;AACA;AACA,OAAO;AACP,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,OAAO;AACP;AACA;;AAEA;AACA,mDAAmD;AACnD;AACA,2CAA2C;AAC3C,KAAK;AACL;AACA;AACA,KAAK;AACL;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B;AAC5B;AACA,aAAa;AACb;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,yCAAyC;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,mBAAmB,YAAY,YAAY,EAAE;;AAE7C;AACA;AACA;AACA;AACA,OAAO;AACP,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,uFAAuF,oBAAoB,EAAE;AAC7G;AACA;AACA,aAAa;AACb,WAAW;AACX,SAAS;AACT;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,iDAAiD,UAAU,EAAE;;AAE7D;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,qBAAqB,4CAA4C;AACjE;AACA;AACA,OAAO;AACP;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uEAAuE;AACvE;AACA;AACA;AACA,aAAa;AACb;AACA,0DAA0D;AAC1D;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe;AACf,aAAa;AACb;AACA,kDAAkD;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe;AACf,aAAa,E;AACb;AACA,0DAA0D;AAC1D;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA,iBAAiB;;AAEjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA,eAAe;AACf,aAAa;AACb;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,GAAG;;AAEH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kDAAkD,kBAAkB;AACpE;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,mCAAmC;;AAEnC;AACA;;AAEA,CAAC;;;;;;;;;;;;;AC94BD;;AAEA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA,CAAC;AACD;AACA,KAAK,IAA0B;AAC/B;;AAEA;AACA;AACA,4CAA4C;;AAE5C;;;;;;;;;;;;ACnBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;;;;;;;;;;;ACrBA,gEAAkB,mBAAO,CAAC,oEAAsB;;AAEhD,kBAAkB,4BAA4B;AAC9C;AACA,E","file":"bootstrap.js","sourcesContent":[" \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 = 0);\n","/*\n* SystemJS 6.2.2\n*/\n(function () {\n const hasSelf = typeof self !== 'undefined';\n\n const hasDocument = typeof document !== 'undefined';\n\n const envGlobal = hasSelf ? self : global;\n\n let baseUrl;\n\n if (hasDocument) {\n const baseEl = document.querySelector('base[href]');\n if (baseEl)\n baseUrl = baseEl.href;\n }\n\n if (!baseUrl && typeof location !== 'undefined') {\n baseUrl = location.href.split('#')[0].split('?')[0];\n const lastSepIndex = baseUrl.lastIndexOf('/');\n if (lastSepIndex !== -1)\n baseUrl = baseUrl.slice(0, lastSepIndex + 1);\n }\n\n const backslashRegEx = /\\\\/g;\n function resolveIfNotPlainOrUrl (relUrl, parentUrl) {\n if (relUrl.indexOf('\\\\') !== -1)\n relUrl = relUrl.replace(backslashRegEx, '/');\n // protocol-relative\n if (relUrl[0] === '/' && relUrl[1] === '/') {\n return parentUrl.slice(0, parentUrl.indexOf(':') + 1) + relUrl;\n }\n // relative-url\n else if (relUrl[0] === '.' && (relUrl[1] === '/' || relUrl[1] === '.' && (relUrl[2] === '/' || relUrl.length === 2 && (relUrl += '/')) ||\n relUrl.length === 1 && (relUrl += '/')) ||\n relUrl[0] === '/') {\n const parentProtocol = parentUrl.slice(0, parentUrl.indexOf(':') + 1);\n // Disabled, but these cases will give inconsistent results for deep backtracking\n //if (parentUrl[parentProtocol.length] !== '/')\n // throw Error('Cannot resolve');\n // read pathname from parent URL\n // pathname taken to be part after leading \"/\"\n let pathname;\n if (parentUrl[parentProtocol.length + 1] === '/') {\n // resolving to a :// so we need to read out the auth and host\n if (parentProtocol !== 'file:') {\n pathname = parentUrl.slice(parentProtocol.length + 2);\n pathname = pathname.slice(pathname.indexOf('/') + 1);\n }\n else {\n pathname = parentUrl.slice(8);\n }\n }\n else {\n // resolving to :/ so pathname is the /... part\n pathname = parentUrl.slice(parentProtocol.length + (parentUrl[parentProtocol.length] === '/'));\n }\n\n if (relUrl[0] === '/')\n return parentUrl.slice(0, parentUrl.length - pathname.length - 1) + relUrl;\n\n // join together and split for removal of .. and . segments\n // looping the string instead of anything fancy for perf reasons\n // '../../../../../z' resolved to 'x/y' is just 'z'\n const segmented = pathname.slice(0, pathname.lastIndexOf('/') + 1) + relUrl;\n\n const output = [];\n let segmentIndex = -1;\n for (let i = 0; i < segmented.length; i++) {\n // busy reading a segment - only terminate on '/'\n if (segmentIndex !== -1) {\n if (segmented[i] === '/') {\n output.push(segmented.slice(segmentIndex, i + 1));\n segmentIndex = -1;\n }\n }\n\n // new segment - check if it is relative\n else if (segmented[i] === '.') {\n // ../ segment\n if (segmented[i + 1] === '.' && (segmented[i + 2] === '/' || i + 2 === segmented.length)) {\n output.pop();\n i += 2;\n }\n // ./ segment\n else if (segmented[i + 1] === '/' || i + 1 === segmented.length) {\n i += 1;\n }\n else {\n // the start of a new segment as below\n segmentIndex = i;\n }\n }\n // it is the start of a new segment\n else {\n segmentIndex = i;\n }\n }\n // finish reading out the last segment\n if (segmentIndex !== -1)\n output.push(segmented.slice(segmentIndex));\n return parentUrl.slice(0, parentUrl.length - pathname.length) + output.join('');\n }\n }\n\n /*\n * Import maps implementation\n *\n * To make lookups fast we pre-resolve the entire import map\n * and then match based on backtracked hash lookups\n *\n */\n\n function resolveUrl (relUrl, parentUrl) {\n return resolveIfNotPlainOrUrl(relUrl, parentUrl) || (relUrl.indexOf(':') !== -1 ? relUrl : resolveIfNotPlainOrUrl('./' + relUrl, parentUrl));\n }\n\n function objectAssign (to, from) {\n for (let p in from)\n to[p] = from[p];\n return to;\n }\n\n function resolveAndComposePackages (packages, outPackages, baseUrl, parentMap, parentUrl) {\n for (let p in packages) {\n const resolvedLhs = resolveIfNotPlainOrUrl(p, baseUrl) || p;\n const rhs = packages[p];\n // package fallbacks not currently supported\n if (typeof rhs !== 'string')\n continue;\n const mapped = resolveImportMap(parentMap, resolveIfNotPlainOrUrl(rhs, baseUrl) || rhs, parentUrl);\n if (!mapped)\n targetWarning(p, rhs, 'bare specifier did not resolve');\n else\n outPackages[resolvedLhs] = mapped;\n }\n }\n\n function resolveAndComposeImportMap (json, baseUrl, parentMap) {\n const outMap = { imports: objectAssign({}, parentMap.imports), scopes: objectAssign({}, parentMap.scopes) };\n\n if (json.imports)\n resolveAndComposePackages(json.imports, outMap.imports, baseUrl, parentMap, null);\n\n if (json.scopes)\n for (let s in json.scopes) {\n const resolvedScope = resolveUrl(s, baseUrl);\n resolveAndComposePackages(json.scopes[s], outMap.scopes[resolvedScope] || (outMap.scopes[resolvedScope] = {}), baseUrl, parentMap, resolvedScope);\n }\n\n return outMap;\n }\n\n function getMatch (path, matchObj) {\n if (matchObj[path])\n return path;\n let sepIndex = path.length;\n do {\n const segment = path.slice(0, sepIndex + 1);\n if (segment in matchObj)\n return segment;\n } while ((sepIndex = path.lastIndexOf('/', sepIndex - 1)) !== -1)\n }\n\n function applyPackages (id, packages) {\n const pkgName = getMatch(id, packages);\n if (pkgName) {\n const pkg = packages[pkgName];\n if (pkg === null) return;\n if (id.length > pkgName.length && pkg[pkg.length - 1] !== '/')\n targetWarning(pkgName, pkg, \"should have a trailing '/'\");\n else\n return pkg + id.slice(pkgName.length);\n }\n }\n\n function targetWarning (match, target, msg) {\n console.warn(\"Package target \" + msg + \", resolving target '\" + target + \"' for \" + match);\n }\n\n function resolveImportMap (importMap, resolvedOrPlain, parentUrl) {\n let scopeUrl = parentUrl && getMatch(parentUrl, importMap.scopes);\n while (scopeUrl) {\n const packageResolution = applyPackages(resolvedOrPlain, importMap.scopes[scopeUrl]);\n if (packageResolution)\n return packageResolution;\n scopeUrl = getMatch(scopeUrl.slice(0, scopeUrl.lastIndexOf('/')), importMap.scopes);\n }\n return applyPackages(resolvedOrPlain, importMap.imports) || resolvedOrPlain.indexOf(':') !== -1 && resolvedOrPlain;\n }\n\n /*\n * SystemJS Core\n * \n * Provides\n * - System.import\n * - System.register support for\n * live bindings, function hoisting through circular references,\n * reexports, dynamic import, import.meta.url, top-level await\n * - System.getRegister to get the registration\n * - Symbol.toStringTag support in Module objects\n * - Hookable System.createContext to customize import.meta\n * - System.onload(err, id, deps) handler for tracing / hot-reloading\n * \n * Core comes with no System.prototype.resolve or\n * System.prototype.instantiate implementations\n */\n\n const hasSymbol = typeof Symbol !== 'undefined';\n const toStringTag = hasSymbol && Symbol.toStringTag;\n const REGISTRY = hasSymbol ? Symbol() : '@';\n\n function SystemJS () {\n this[REGISTRY] = {};\n }\n\n const systemJSPrototype = SystemJS.prototype;\n\n systemJSPrototype.prepareImport = function () {};\n\n systemJSPrototype.import = function (id, parentUrl) {\n const loader = this;\n return Promise.resolve(loader.prepareImport())\n .then(function() {\n return loader.resolve(id, parentUrl);\n })\n .then(function (id) {\n const load = getOrCreateLoad(loader, id);\n return load.C || topLevelLoad(loader, load);\n });\n };\n\n // Hookable createContext function -> allowing eg custom import meta\n systemJSPrototype.createContext = function (parentId) {\n return {\n url: parentId\n };\n };\n\n // onLoad(err, id, deps) provided for tracing / hot-reloading\n systemJSPrototype.onload = function () {};\n function loadToId (load) {\n return load.id;\n }\n function triggerOnload (loader, load, err) {\n loader.onload(err, load.id, load.d && load.d.map(loadToId));\n if (err)\n throw err;\n }\n\n let lastRegister;\n systemJSPrototype.register = function (deps, declare) {\n lastRegister = [deps, declare];\n };\n\n /*\n * getRegister provides the last anonymous System.register call\n */\n systemJSPrototype.getRegister = function () {\n const _lastRegister = lastRegister;\n lastRegister = undefined;\n return _lastRegister;\n };\n\n function getOrCreateLoad (loader, id, firstParentUrl) {\n let load = loader[REGISTRY][id];\n if (load)\n return load;\n\n const importerSetters = [];\n const ns = Object.create(null);\n if (toStringTag)\n Object.defineProperty(ns, toStringTag, { value: 'Module' });\n \n let instantiatePromise = Promise.resolve()\n .then(function () {\n return loader.instantiate(id, firstParentUrl);\n })\n .then(function (registration) {\n if (!registration)\n throw Error('Module ' + id + ' did not instantiate');\n function _export (name, value) {\n // note if we have hoisted exports (including reexports)\n load.h = true;\n let changed = false;\n if (typeof name !== 'object') {\n if (!(name in ns) || ns[name] !== value) {\n ns[name] = value;\n changed = true;\n }\n }\n else {\n for (let p in name) {\n let value = name[p];\n if (!(p in ns) || ns[p] !== value) {\n ns[p] = value;\n changed = true;\n }\n }\n\n if (name.__esModule) {\n ns.__esModule = name.__esModule;\n }\n }\n if (changed)\n for (let i = 0; i < importerSetters.length; i++)\n importerSetters[i](ns);\n return value;\n }\n const declared = registration[1](_export, registration[1].length === 2 ? {\n import: function (importId) {\n return loader.import(importId, id);\n },\n meta: loader.createContext(id)\n } : undefined);\n load.e = declared.execute || function () {};\n return [registration[0], declared.setters || []];\n });\n\n instantiatePromise = instantiatePromise.catch(function (err) {\n triggerOnload(loader, load, err);\n });\n\n const linkPromise = instantiatePromise\n .then(function (instantiation) {\n return Promise.all(instantiation[0].map(function (dep, i) {\n const setter = instantiation[1][i];\n return Promise.resolve(loader.resolve(dep, id))\n .then(function (depId) {\n const depLoad = getOrCreateLoad(loader, depId, id);\n // depLoad.I may be undefined for already-evaluated\n return Promise.resolve(depLoad.I)\n .then(function () {\n if (setter) {\n depLoad.i.push(setter);\n // only run early setters when there are hoisted exports of that module\n // the timing works here as pending hoisted export calls will trigger through importerSetters\n if (depLoad.h || !depLoad.I)\n setter(depLoad.n);\n }\n return depLoad;\n });\n })\n }))\n .then(function (depLoads) {\n load.d = depLoads;\n });\n });\n\n linkPromise.catch(function (err) {\n load.e = null;\n load.er = err;\n });\n\n // Capital letter = a promise function\n return load = loader[REGISTRY][id] = {\n id: id,\n // importerSetters, the setters functions registered to this dependency\n // we retain this to add more later\n i: importerSetters,\n // module namespace object\n n: ns,\n\n // instantiate\n I: instantiatePromise,\n // link\n L: linkPromise,\n // whether it has hoisted exports\n h: false,\n\n // On instantiate completion we have populated:\n // dependency load records\n d: undefined,\n // execution function\n // set to NULL immediately after execution (or on any failure) to indicate execution has happened\n // in such a case, C should be used, and E, I, L will be emptied\n e: undefined,\n\n // On execution we have populated:\n // the execution error if any\n er: undefined,\n // in the case of TLA, the execution promise\n E: undefined,\n\n // On execution, L, I, E cleared\n\n // Promise for top-level completion\n C: undefined\n };\n }\n\n function instantiateAll (loader, load, loaded) {\n if (!loaded[load.id]) {\n loaded[load.id] = true;\n // load.L may be undefined for already-instantiated\n return Promise.resolve(load.L)\n .then(function () {\n return Promise.all(load.d.map(function (dep) {\n return instantiateAll(loader, dep, loaded);\n }));\n })\n }\n }\n\n function topLevelLoad (loader, load) {\n return load.C = instantiateAll(loader, load, {})\n .then(function () {\n return postOrderExec(loader, load, {});\n })\n .then(function () {\n return load.n;\n });\n }\n\n // the closest we can get to call(undefined)\n const nullContext = Object.freeze(Object.create(null));\n\n // returns a promise if and only if a top-level await subgraph\n // throws on sync errors\n function postOrderExec (loader, load, seen) {\n if (seen[load.id])\n return;\n seen[load.id] = true;\n\n if (!load.e) {\n if (load.er)\n throw load.er;\n if (load.E)\n return load.E;\n return;\n }\n\n // deps execute first, unless circular\n let depLoadPromises;\n load.d.forEach(function (depLoad) {\n {\n try {\n const depLoadPromise = postOrderExec(loader, depLoad, seen);\n if (depLoadPromise) {\n depLoadPromise.catch(function (err) {\n triggerOnload(loader, load, err);\n });\n (depLoadPromises = depLoadPromises || []).push(depLoadPromise);\n }\n }\n catch (err) {\n triggerOnload(loader, load, err);\n }\n }\n });\n if (depLoadPromises)\n return Promise.all(depLoadPromises).then(doExec);\n\n return doExec();\n\n function doExec () {\n try {\n let execPromise = load.e.call(nullContext);\n if (execPromise) {\n execPromise = execPromise.then(function () {\n load.C = load.n;\n load.E = null; // indicates completion\n triggerOnload(loader, load, null);\n }, function (err) {\n triggerOnload(loader, load, err);\n });\n return load.E = load.E || execPromise;\n }\n // (should be a promise, but a minify optimization to leave out Promise.resolve)\n load.C = load.n;\n triggerOnload(loader, load, null);\n }\n catch (err) {\n triggerOnload(loader, load, err);\n load.er = err;\n throw err;\n }\n finally {\n load.L = load.I = undefined;\n load.e = null;\n }\n }\n }\n\n envGlobal.System = new SystemJS();\n\n /*\n * Import map support for SystemJS\n * \n * \n * OR\n * \n * \n * Only those import maps available at the time of SystemJS initialization will be loaded\n * and they will be loaded in DOM order.\n * \n * There is no support for dynamic import maps injection currently.\n */\n\n let importMap = { imports: {}, scopes: {} }, importMapPromise;\n\n if (hasDocument) {\n Array.prototype.forEach.call(document.querySelectorAll('script[type=\"systemjs-importmap\"][src]'), function (script) {\n script._j = fetch(script.src).then(function (res) {\n return res.json();\n });\n });\n }\n\n systemJSPrototype.prepareImport = function () {\n if (!importMapPromise) {\n importMapPromise = Promise.resolve();\n if (hasDocument)\n Array.prototype.forEach.call(document.querySelectorAll('script[type=\"systemjs-importmap\"]'), function (script) {\n importMapPromise = importMapPromise.then(function () {\n return (script._j || script.src && fetch(script.src).then(function (resp) { return resp.json(); }) || Promise.resolve(JSON.parse(script.innerHTML)))\n .then(function (json) {\n importMap = resolveAndComposeImportMap(json, script.src || baseUrl, importMap);\n });\n });\n });\n }\n return importMapPromise;\n };\n\n systemJSPrototype.resolve = function (id, parentUrl) {\n parentUrl = parentUrl || baseUrl;\n return resolveImportMap(importMap, resolveIfNotPlainOrUrl(id, parentUrl) || id, parentUrl) || throwUnresolved(id, parentUrl);\n };\n\n function throwUnresolved (id, parentUrl) {\n throw Error(\"Unable to resolve specifier '\" + id + (parentUrl ? \"' from \" + parentUrl : \"'\"));\n }\n\n /*\n * Supports loading System.register via script tag injection\n */\n\n const systemRegister = systemJSPrototype.register;\n systemJSPrototype.register = function (deps, declare) {\n systemRegister.call(this, deps, declare);\n };\n\n systemJSPrototype.createScript = function (url) {\n const script = document.createElement('script');\n script.charset = 'utf-8';\n script.async = true;\n script.crossOrigin = 'anonymous';\n script.src = url;\n return script;\n };\n\n let lastWindowErrorUrl, lastWindowError;\n if (hasDocument)\n window.addEventListener('error', function (evt) {\n lastWindowErrorUrl = evt.filename;\n lastWindowError = evt.error;\n });\n\n systemJSPrototype.instantiate = function (url, firstParentUrl) {\n const loader = this;\n return new Promise(function (resolve, reject) {\n const script = systemJSPrototype.createScript(url);\n script.addEventListener('error', function () {\n reject(Error('Error loading ' + url + (firstParentUrl ? ' from ' + firstParentUrl : '')));\n });\n script.addEventListener('load', function () {\n document.head.removeChild(script);\n // Note that if an error occurs that isn't caught by this if statement,\n // that getRegister will return null and a \"did not instantiate\" error will be thrown.\n if (lastWindowErrorUrl === url) {\n reject(lastWindowError);\n }\n else {\n resolve(loader.getRegister());\n }\n });\n document.head.appendChild(script);\n });\n };\n\n if (hasDocument) {\n window.addEventListener('DOMContentLoaded', loadScriptModules);\n loadScriptModules();\n }\n\n function loadScriptModules() {\n Array.prototype.forEach.call(\n document.querySelectorAll('script[type=systemjs-module]'), function (script) {\n if (script.src) {\n System.import(script.src.slice(0, 7) === 'import:' ? script.src.slice(7) : resolveUrl(script.src, baseUrl));\n }\n });\n }\n\n /*\n * Supports loading System.register in workers\n */\n\n if (hasSelf && typeof importScripts === 'function')\n systemJSPrototype.instantiate = function (url) {\n const loader = this;\n return new Promise(function (resolve, reject) {\n try {\n importScripts(url);\n }\n catch (e) {\n reject(e);\n }\n resolve(loader.getRegister());\n });\n };\n\n /*\n * SystemJS global script loading support\n * Extra for the s.js build only\n * (Included by default in system.js build)\n */\n (function (global) {\n const systemJSPrototype = global.System.constructor.prototype;\n const isIE = navigator.userAgent.indexOf('Trident') !== -1;\n\n // safari unpredictably lists some new globals first or second in object order\n let firstGlobalProp, secondGlobalProp, lastGlobalProp;\n function getGlobalProp () {\n let cnt = 0;\n let lastProp;\n for (let p in global) {\n // do not check frames cause it could be removed during import\n if (\n !global.hasOwnProperty(p)\n || (!isNaN(p) && p < global.length)\n || (isIE && global[p] && global[p].parent === window)\n )\n continue;\n if (cnt === 0 && p !== firstGlobalProp || cnt === 1 && p !== secondGlobalProp)\n return p;\n cnt++;\n lastProp = p;\n }\n if (lastProp !== lastGlobalProp)\n return lastProp;\n }\n\n function noteGlobalProps () {\n // alternatively Object.keys(global).pop()\n // but this may be faster (pending benchmarks)\n firstGlobalProp = secondGlobalProp = undefined;\n for (let p in global) {\n // do not check frames cause it could be removed during import\n if (\n !global.hasOwnProperty(p)\n || (!isNaN(p) && p < global.length)\n || (isIE && global[p] && global[p].parent === window)\n )\n continue;\n if (!firstGlobalProp)\n firstGlobalProp = p;\n else if (!secondGlobalProp)\n secondGlobalProp = p;\n lastGlobalProp = p;\n }\n return lastGlobalProp;\n }\n\n const impt = systemJSPrototype.import;\n systemJSPrototype.import = function (id, parentUrl) {\n noteGlobalProps();\n return impt.call(this, id, parentUrl);\n };\n\n const emptyInstantiation = [[], function () { return {} }];\n\n const getRegister = systemJSPrototype.getRegister;\n systemJSPrototype.getRegister = function () {\n const lastRegister = getRegister.call(this);\n if (lastRegister)\n return lastRegister;\n\n // no registration -> attempt a global detection as difference from snapshot\n // when multiple globals, we take the global value to be the last defined new global object property\n // for performance, this will not support multi-version / global collisions as previous SystemJS versions did\n // note in Edge, deleting and re-adding a global does not change its ordering\n const globalProp = getGlobalProp();\n if (!globalProp)\n return emptyInstantiation;\n\n let globalExport;\n try {\n globalExport = global[globalProp];\n }\n catch (e) {\n return emptyInstantiation;\n }\n\n return [[], function (_export) {\n return {\n execute: function () {\n _export({ default: globalExport, __useDefault: true });\n }\n };\n }];\n };\n })(typeof self !== 'undefined' ? self : global);\n\n /*\n * Loads JSON, CSS, Wasm module types based on file extensions\n * Supports application/javascript falling back to JS eval\n */\n (function(global) {\n const systemJSPrototype = global.System.constructor.prototype;\n const instantiate = systemJSPrototype.instantiate;\n\n const moduleTypesRegEx = /\\.(css|html|json|wasm)$/;\n systemJSPrototype.shouldFetch = function (url) {\n const path = url.split('?')[0].split('#')[0];\n const ext = path.slice(path.lastIndexOf('.'));\n return ext.match(moduleTypesRegEx);\n };\n systemJSPrototype.fetch = function (url) {\n return fetch(url);\n };\n\n systemJSPrototype.instantiate = function (url, parent) {\n const loader = this;\n if (this.shouldFetch(url)) {\n return this.fetch(url)\n .then(function (res) {\n if (!res.ok)\n throw Error(res.status + ' ' + res.statusText + ', loading ' + url + (parent ? ' from ' + parent : ''));\n const contentType = res.headers.get('content-type');\n if (contentType.match(/^(text|application)\\/(x-)?javascript(;|$)/)) {\n return res.text().then(function (source) {\n (0, eval)(source);\n return loader.getRegister();\n });\n }\n else if (contentType.match(/^application\\/json(;|$)/)) {\n return res.text().then(function (source) {\n return [[], function (_export) {\n return {\n execute: function () {\n _export('default', JSON.parse(source));\n }\n };\n }];\n });\n }\n else if (contentType.match(/^text\\/css(;|$)/)) {\n return res.text().then(function (source) {\n return [[], function (_export) {\n return {\n execute: function () {\n // Relies on a Constructable Stylesheet polyfill\n const stylesheet = new CSSStyleSheet();\n stylesheet.replaceSync(source);\n _export('default', stylesheet);\n }\n };\n }];\n }); \n }\n else if (contentType.match(/^application\\/wasm(;|$)/)) {\n return (WebAssembly.compileStreaming ? WebAssembly.compileStreaming(res) : res.arrayBuffer().then(WebAssembly.compile))\n .then(function (module) {\n const deps = [];\n const setters = [];\n const importObj = {};\n \n // we can only set imports if supported (eg early Safari doesnt support)\n if (WebAssembly.Module.imports)\n WebAssembly.Module.imports(module).forEach(function (impt) {\n const key = impt.module;\n if (deps.indexOf(key) === -1) {\n deps.push(key);\n setters.push(function (m) {\n importObj[key] = m;\n });\n }\n });\n \n return [deps, function (_export) {\n return {\n setters: setters,\n execute: function () {\n return WebAssembly.instantiate(module, importObj)\n .then(function (instance) {\n _export(instance.exports);\n });\n }\n };\n }];\n });\n }\n else {\n throw new Error('Unknown module type \"' + contentType + '\"');\n }\n });\n }\n return instantiate.apply(this, arguments);\n };\n })(typeof self !== 'undefined' ? self : global);\n\n const toStringTag$1 = typeof Symbol !== 'undefined' && Symbol.toStringTag;\n\n systemJSPrototype.get = function (id) {\n const load = this[REGISTRY][id];\n if (load && load.e === null && !load.E) {\n if (load.er)\n return null;\n return load.n;\n }\n };\n\n systemJSPrototype.set = function (id, module) {\n let ns;\n if (toStringTag$1 && module[toStringTag$1] === 'Module') {\n ns = module;\n }\n else {\n ns = Object.assign(Object.create(null), module);\n if (toStringTag$1)\n Object.defineProperty(ns, toStringTag$1, { value: 'Module' });\n }\n\n const done = Promise.resolve(ns);\n\n const load = this[REGISTRY][id] || (this[REGISTRY][id] = {\n id: id,\n i: [],\n h: false,\n d: [],\n e: null,\n er: undefined,\n E: undefined\n });\n\n if (load.e || load.E)\n return false;\n \n Object.assign(load, {\n n: ns,\n I: undefined,\n L: undefined,\n C: done\n });\n return ns;\n };\n\n systemJSPrototype.has = function (id) {\n const load = this[REGISTRY][id];\n return !!load;\n };\n\n // Delete function provided for hot-reloading use cases\n systemJSPrototype.delete = function (id) {\n const registry = this[REGISTRY];\n const load = registry[id];\n // in future we can support load.E case by failing load first\n // but that will require TLA callbacks to be implemented\n if (!load || load.e !== null || load.E)\n return false;\n\n let importerSetters = load.i;\n // remove from importerSetters\n // (release for gc)\n if (load.d)\n load.d.forEach(function (depLoad) {\n const importerIndex = depLoad.i.indexOf(load);\n if (importerIndex !== -1)\n depLoad.i.splice(importerIndex, 1);\n });\n delete registry[id];\n return function () {\n const load = registry[id];\n if (!load || !importerSetters || load.e !== null || load.E)\n return false;\n // add back the old setters\n importerSetters.forEach(function (setter) {\n load.i.push(setter);\n setter(load.n);\n });\n importerSetters = null;\n };\n };\n\n const iterator = typeof Symbol !== 'undefined' && Symbol.iterator;\n\n systemJSPrototype.entries = function () {\n const loader = this, keys = Object.keys(loader[REGISTRY]);\n let index = 0, ns, key;\n const result = {\n next: function () {\n while (\n (key = keys[index++]) !== undefined && \n (ns = loader.get(key)) === undefined\n );\n return {\n done: key === undefined,\n value: key !== undefined && [key, ns]\n };\n }\n };\n\n result[iterator] = function() { return this };\n\n return result;\n };\n\n}());\n","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","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","const sysytemJs = require('systemjs/dist/system')\n\nmodule.export = ({ apps, navigations, config }) => {\n sysytemJs.import('./main/index.js')\n};"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/index.js b/dist/index.js new file mode 100644 index 0000000..d70f132 --- /dev/null +++ b/dist/index.js @@ -0,0 +1,240 @@ +var bootstrap = +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) { +/******/ return installedModules[moduleId].exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); +/******/ +/******/ // Flag the module as loaded +/******/ module.l = true; +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; +/******/ +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; +/******/ +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); +/******/ } +/******/ }; +/******/ +/******/ // define __esModule on exports +/******/ __webpack_require__.r = function(exports) { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ +/******/ // create a fake namespace object +/******/ // mode & 1: value is a module id, require it +/******/ // mode & 2: merge all properties of value into the ns +/******/ // mode & 4: return value when already ns object +/******/ // mode & 8|1: behave like require +/******/ __webpack_require__.t = function(value, mode) { +/******/ if(mode & 1) value = __webpack_require__(value); +/******/ if(mode & 8) return value; +/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; +/******/ var ns = Object.create(null); +/******/ __webpack_require__.r(ns); +/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); +/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); +/******/ return ns; +/******/ }; +/******/ +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; +/******/ +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; +/******/ +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = "/boorstrap/1.0.0/"; +/******/ +/******/ +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = "./src/main.ts"); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ "./node_modules/@babel/runtime/helpers/esm/extends.js": +/*!************************************************************!*\ + !*** ./node_modules/@babel/runtime/helpers/esm/extends.js ***! + \************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return _extends; });\nfunction _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\n//# sourceURL=webpack://bootstrap/./node_modules/@babel/runtime/helpers/esm/extends.js?"); + +/***/ }), + +/***/ "./node_modules/history/esm/history.js": +/*!*********************************************!*\ + !*** ./node_modules/history/esm/history.js ***! + \*********************************************/ +/*! exports provided: createBrowserHistory, createHashHistory, createMemoryHistory, createLocation, locationsAreEqual, parsePath, createPath */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"createBrowserHistory\", function() { return createBrowserHistory; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"createHashHistory\", function() { return createHashHistory; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"createMemoryHistory\", function() { return createMemoryHistory; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"createLocation\", function() { return createLocation; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"locationsAreEqual\", function() { return locationsAreEqual; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"parsePath\", function() { return parsePath; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"createPath\", function() { return createPath; });\n/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ \"./node_modules/@babel/runtime/helpers/esm/extends.js\");\n/* harmony import */ var resolve_pathname__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! resolve-pathname */ \"./node_modules/resolve-pathname/esm/resolve-pathname.js\");\n/* harmony import */ var value_equal__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! value-equal */ \"./node_modules/value-equal/esm/value-equal.js\");\n/* harmony import */ var tiny_warning__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! tiny-warning */ \"./node_modules/tiny-warning/dist/tiny-warning.esm.js\");\n/* harmony import */ var tiny_invariant__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! tiny-invariant */ \"./node_modules/tiny-invariant/dist/tiny-invariant.esm.js\");\n\n\n\n\n\n\nfunction addLeadingSlash(path) {\n return path.charAt(0) === '/' ? path : '/' + path;\n}\nfunction stripLeadingSlash(path) {\n return path.charAt(0) === '/' ? path.substr(1) : path;\n}\nfunction hasBasename(path, prefix) {\n return path.toLowerCase().indexOf(prefix.toLowerCase()) === 0 && '/?#'.indexOf(path.charAt(prefix.length)) !== -1;\n}\nfunction stripBasename(path, prefix) {\n return hasBasename(path, prefix) ? path.substr(prefix.length) : path;\n}\nfunction stripTrailingSlash(path) {\n return path.charAt(path.length - 1) === '/' ? path.slice(0, -1) : path;\n}\nfunction parsePath(path) {\n var pathname = path || '/';\n var search = '';\n var hash = '';\n var hashIndex = pathname.indexOf('#');\n\n if (hashIndex !== -1) {\n hash = pathname.substr(hashIndex);\n pathname = pathname.substr(0, hashIndex);\n }\n\n var searchIndex = pathname.indexOf('?');\n\n if (searchIndex !== -1) {\n search = pathname.substr(searchIndex);\n pathname = pathname.substr(0, searchIndex);\n }\n\n return {\n pathname: pathname,\n search: search === '?' ? '' : search,\n hash: hash === '#' ? '' : hash\n };\n}\nfunction createPath(location) {\n var pathname = location.pathname,\n search = location.search,\n hash = location.hash;\n var path = pathname || '/';\n if (search && search !== '?') path += search.charAt(0) === '?' ? search : \"?\" + search;\n if (hash && hash !== '#') path += hash.charAt(0) === '#' ? hash : \"#\" + hash;\n return path;\n}\n\nfunction createLocation(path, state, key, currentLocation) {\n var location;\n\n if (typeof path === 'string') {\n // Two-arg form: push(path, state)\n location = parsePath(path);\n location.state = state;\n } else {\n // One-arg form: push(location)\n location = Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({}, path);\n if (location.pathname === undefined) location.pathname = '';\n\n if (location.search) {\n if (location.search.charAt(0) !== '?') location.search = '?' + location.search;\n } else {\n location.search = '';\n }\n\n if (location.hash) {\n if (location.hash.charAt(0) !== '#') location.hash = '#' + location.hash;\n } else {\n location.hash = '';\n }\n\n if (state !== undefined && location.state === undefined) location.state = state;\n }\n\n try {\n location.pathname = decodeURI(location.pathname);\n } catch (e) {\n if (e instanceof URIError) {\n throw new URIError('Pathname \"' + location.pathname + '\" could not be decoded. ' + 'This is likely caused by an invalid percent-encoding.');\n } else {\n throw e;\n }\n }\n\n if (key) location.key = key;\n\n if (currentLocation) {\n // Resolve incomplete/relative pathname relative to current location.\n if (!location.pathname) {\n location.pathname = currentLocation.pathname;\n } else if (location.pathname.charAt(0) !== '/') {\n location.pathname = Object(resolve_pathname__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(location.pathname, currentLocation.pathname);\n }\n } else {\n // When there is no prior location and pathname is empty, set it to /\n if (!location.pathname) {\n location.pathname = '/';\n }\n }\n\n return location;\n}\nfunction locationsAreEqual(a, b) {\n return a.pathname === b.pathname && a.search === b.search && a.hash === b.hash && a.key === b.key && Object(value_equal__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(a.state, b.state);\n}\n\nfunction createTransitionManager() {\n var prompt = null;\n\n function setPrompt(nextPrompt) {\n true ? Object(tiny_warning__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(prompt == null, 'A history supports only one prompt at a time') : undefined;\n prompt = nextPrompt;\n return function () {\n if (prompt === nextPrompt) prompt = null;\n };\n }\n\n function confirmTransitionTo(location, action, getUserConfirmation, callback) {\n // TODO: If another transition starts while we're still confirming\n // the previous one, we may end up in a weird state. Figure out the\n // best way to handle this.\n if (prompt != null) {\n var result = typeof prompt === 'function' ? prompt(location, action) : prompt;\n\n if (typeof result === 'string') {\n if (typeof getUserConfirmation === 'function') {\n getUserConfirmation(result, callback);\n } else {\n true ? Object(tiny_warning__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(false, 'A history needs a getUserConfirmation function in order to use a prompt message') : undefined;\n callback(true);\n }\n } else {\n // Return false from a transition hook to cancel the transition.\n callback(result !== false);\n }\n } else {\n callback(true);\n }\n }\n\n var listeners = [];\n\n function appendListener(fn) {\n var isActive = true;\n\n function listener() {\n if (isActive) fn.apply(void 0, arguments);\n }\n\n listeners.push(listener);\n return function () {\n isActive = false;\n listeners = listeners.filter(function (item) {\n return item !== listener;\n });\n };\n }\n\n function notifyListeners() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n listeners.forEach(function (listener) {\n return listener.apply(void 0, args);\n });\n }\n\n return {\n setPrompt: setPrompt,\n confirmTransitionTo: confirmTransitionTo,\n appendListener: appendListener,\n notifyListeners: notifyListeners\n };\n}\n\nvar canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);\nfunction getConfirmation(message, callback) {\n callback(window.confirm(message)); // eslint-disable-line no-alert\n}\n/**\n * Returns true if the HTML5 history API is supported. Taken from Modernizr.\n *\n * https://github.com/Modernizr/Modernizr/blob/master/LICENSE\n * https://github.com/Modernizr/Modernizr/blob/master/feature-detects/history.js\n * changed to avoid false negatives for Windows Phones: https://github.com/reactjs/react-router/issues/586\n */\n\nfunction supportsHistory() {\n var ua = window.navigator.userAgent;\n if ((ua.indexOf('Android 2.') !== -1 || ua.indexOf('Android 4.0') !== -1) && ua.indexOf('Mobile Safari') !== -1 && ua.indexOf('Chrome') === -1 && ua.indexOf('Windows Phone') === -1) return false;\n return window.history && 'pushState' in window.history;\n}\n/**\n * Returns true if browser fires popstate on hash change.\n * IE10 and IE11 do not.\n */\n\nfunction supportsPopStateOnHashChange() {\n return window.navigator.userAgent.indexOf('Trident') === -1;\n}\n/**\n * Returns false if using go(n) with hash history causes a full page reload.\n */\n\nfunction supportsGoWithoutReloadUsingHash() {\n return window.navigator.userAgent.indexOf('Firefox') === -1;\n}\n/**\n * Returns true if a given popstate event is an extraneous WebKit event.\n * Accounts for the fact that Chrome on iOS fires real popstate events\n * containing undefined state when pressing the back button.\n */\n\nfunction isExtraneousPopstateEvent(event) {\n return event.state === undefined && navigator.userAgent.indexOf('CriOS') === -1;\n}\n\nvar PopStateEvent = 'popstate';\nvar HashChangeEvent = 'hashchange';\n\nfunction getHistoryState() {\n try {\n return window.history.state || {};\n } catch (e) {\n // IE 11 sometimes throws when accessing window.history.state\n // See https://github.com/ReactTraining/history/pull/289\n return {};\n }\n}\n/**\n * Creates a history object that uses the HTML5 history API including\n * pushState, replaceState, and the popstate event.\n */\n\n\nfunction createBrowserHistory(props) {\n if (props === void 0) {\n props = {};\n }\n\n !canUseDOM ? true ? Object(tiny_invariant__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(false, 'Browser history needs a DOM') : undefined : void 0;\n var globalHistory = window.history;\n var canUseHistory = supportsHistory();\n var needsHashChangeListener = !supportsPopStateOnHashChange();\n var _props = props,\n _props$forceRefresh = _props.forceRefresh,\n forceRefresh = _props$forceRefresh === void 0 ? false : _props$forceRefresh,\n _props$getUserConfirm = _props.getUserConfirmation,\n getUserConfirmation = _props$getUserConfirm === void 0 ? getConfirmation : _props$getUserConfirm,\n _props$keyLength = _props.keyLength,\n keyLength = _props$keyLength === void 0 ? 6 : _props$keyLength;\n var basename = props.basename ? stripTrailingSlash(addLeadingSlash(props.basename)) : '';\n\n function getDOMLocation(historyState) {\n var _ref = historyState || {},\n key = _ref.key,\n state = _ref.state;\n\n var _window$location = window.location,\n pathname = _window$location.pathname,\n search = _window$location.search,\n hash = _window$location.hash;\n var path = pathname + search + hash;\n true ? Object(tiny_warning__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(!basename || hasBasename(path, basename), 'You are attempting to use a basename on a page whose URL path does not begin ' + 'with the basename. Expected path \"' + path + '\" to begin with \"' + basename + '\".') : undefined;\n if (basename) path = stripBasename(path, basename);\n return createLocation(path, state, key);\n }\n\n function createKey() {\n return Math.random().toString(36).substr(2, keyLength);\n }\n\n var transitionManager = createTransitionManager();\n\n function setState(nextState) {\n Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(history, nextState);\n\n history.length = globalHistory.length;\n transitionManager.notifyListeners(history.location, history.action);\n }\n\n function handlePopState(event) {\n // Ignore extraneous popstate events in WebKit.\n if (isExtraneousPopstateEvent(event)) return;\n handlePop(getDOMLocation(event.state));\n }\n\n function handleHashChange() {\n handlePop(getDOMLocation(getHistoryState()));\n }\n\n var forceNextPop = false;\n\n function handlePop(location) {\n if (forceNextPop) {\n forceNextPop = false;\n setState();\n } else {\n var action = 'POP';\n transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {\n if (ok) {\n setState({\n action: action,\n location: location\n });\n } else {\n revertPop(location);\n }\n });\n }\n }\n\n function revertPop(fromLocation) {\n var toLocation = history.location; // TODO: We could probably make this more reliable by\n // keeping a list of keys we've seen in sessionStorage.\n // Instead, we just default to 0 for keys we don't know.\n\n var toIndex = allKeys.indexOf(toLocation.key);\n if (toIndex === -1) toIndex = 0;\n var fromIndex = allKeys.indexOf(fromLocation.key);\n if (fromIndex === -1) fromIndex = 0;\n var delta = toIndex - fromIndex;\n\n if (delta) {\n forceNextPop = true;\n go(delta);\n }\n }\n\n var initialLocation = getDOMLocation(getHistoryState());\n var allKeys = [initialLocation.key]; // Public interface\n\n function createHref(location) {\n return basename + createPath(location);\n }\n\n function push(path, state) {\n true ? Object(tiny_warning__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(!(typeof path === 'object' && path.state !== undefined && state !== undefined), 'You should avoid providing a 2nd state argument to push when the 1st ' + 'argument is a location-like object that already has state; it is ignored') : undefined;\n var action = 'PUSH';\n var location = createLocation(path, state, createKey(), history.location);\n transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {\n if (!ok) return;\n var href = createHref(location);\n var key = location.key,\n state = location.state;\n\n if (canUseHistory) {\n globalHistory.pushState({\n key: key,\n state: state\n }, null, href);\n\n if (forceRefresh) {\n window.location.href = href;\n } else {\n var prevIndex = allKeys.indexOf(history.location.key);\n var nextKeys = allKeys.slice(0, prevIndex + 1);\n nextKeys.push(location.key);\n allKeys = nextKeys;\n setState({\n action: action,\n location: location\n });\n }\n } else {\n true ? Object(tiny_warning__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(state === undefined, 'Browser history cannot push state in browsers that do not support HTML5 history') : undefined;\n window.location.href = href;\n }\n });\n }\n\n function replace(path, state) {\n true ? Object(tiny_warning__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(!(typeof path === 'object' && path.state !== undefined && state !== undefined), 'You should avoid providing a 2nd state argument to replace when the 1st ' + 'argument is a location-like object that already has state; it is ignored') : undefined;\n var action = 'REPLACE';\n var location = createLocation(path, state, createKey(), history.location);\n transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {\n if (!ok) return;\n var href = createHref(location);\n var key = location.key,\n state = location.state;\n\n if (canUseHistory) {\n globalHistory.replaceState({\n key: key,\n state: state\n }, null, href);\n\n if (forceRefresh) {\n window.location.replace(href);\n } else {\n var prevIndex = allKeys.indexOf(history.location.key);\n if (prevIndex !== -1) allKeys[prevIndex] = location.key;\n setState({\n action: action,\n location: location\n });\n }\n } else {\n true ? Object(tiny_warning__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(state === undefined, 'Browser history cannot replace state in browsers that do not support HTML5 history') : undefined;\n window.location.replace(href);\n }\n });\n }\n\n function go(n) {\n globalHistory.go(n);\n }\n\n function goBack() {\n go(-1);\n }\n\n function goForward() {\n go(1);\n }\n\n var listenerCount = 0;\n\n function checkDOMListeners(delta) {\n listenerCount += delta;\n\n if (listenerCount === 1 && delta === 1) {\n window.addEventListener(PopStateEvent, handlePopState);\n if (needsHashChangeListener) window.addEventListener(HashChangeEvent, handleHashChange);\n } else if (listenerCount === 0) {\n window.removeEventListener(PopStateEvent, handlePopState);\n if (needsHashChangeListener) window.removeEventListener(HashChangeEvent, handleHashChange);\n }\n }\n\n var isBlocked = false;\n\n function block(prompt) {\n if (prompt === void 0) {\n prompt = false;\n }\n\n var unblock = transitionManager.setPrompt(prompt);\n\n if (!isBlocked) {\n checkDOMListeners(1);\n isBlocked = true;\n }\n\n return function () {\n if (isBlocked) {\n isBlocked = false;\n checkDOMListeners(-1);\n }\n\n return unblock();\n };\n }\n\n function listen(listener) {\n var unlisten = transitionManager.appendListener(listener);\n checkDOMListeners(1);\n return function () {\n checkDOMListeners(-1);\n unlisten();\n };\n }\n\n var history = {\n length: globalHistory.length,\n action: 'POP',\n location: initialLocation,\n createHref: createHref,\n push: push,\n replace: replace,\n go: go,\n goBack: goBack,\n goForward: goForward,\n block: block,\n listen: listen\n };\n return history;\n}\n\nvar HashChangeEvent$1 = 'hashchange';\nvar HashPathCoders = {\n hashbang: {\n encodePath: function encodePath(path) {\n return path.charAt(0) === '!' ? path : '!/' + stripLeadingSlash(path);\n },\n decodePath: function decodePath(path) {\n return path.charAt(0) === '!' ? path.substr(1) : path;\n }\n },\n noslash: {\n encodePath: stripLeadingSlash,\n decodePath: addLeadingSlash\n },\n slash: {\n encodePath: addLeadingSlash,\n decodePath: addLeadingSlash\n }\n};\n\nfunction stripHash(url) {\n var hashIndex = url.indexOf('#');\n return hashIndex === -1 ? url : url.slice(0, hashIndex);\n}\n\nfunction getHashPath() {\n // We can't use window.location.hash here because it's not\n // consistent across browsers - Firefox will pre-decode it!\n var href = window.location.href;\n var hashIndex = href.indexOf('#');\n return hashIndex === -1 ? '' : href.substring(hashIndex + 1);\n}\n\nfunction pushHashPath(path) {\n window.location.hash = path;\n}\n\nfunction replaceHashPath(path) {\n window.location.replace(stripHash(window.location.href) + '#' + path);\n}\n\nfunction createHashHistory(props) {\n if (props === void 0) {\n props = {};\n }\n\n !canUseDOM ? true ? Object(tiny_invariant__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(false, 'Hash history needs a DOM') : undefined : void 0;\n var globalHistory = window.history;\n var canGoWithoutReload = supportsGoWithoutReloadUsingHash();\n var _props = props,\n _props$getUserConfirm = _props.getUserConfirmation,\n getUserConfirmation = _props$getUserConfirm === void 0 ? getConfirmation : _props$getUserConfirm,\n _props$hashType = _props.hashType,\n hashType = _props$hashType === void 0 ? 'slash' : _props$hashType;\n var basename = props.basename ? stripTrailingSlash(addLeadingSlash(props.basename)) : '';\n var _HashPathCoders$hashT = HashPathCoders[hashType],\n encodePath = _HashPathCoders$hashT.encodePath,\n decodePath = _HashPathCoders$hashT.decodePath;\n\n function getDOMLocation() {\n var path = decodePath(getHashPath());\n true ? Object(tiny_warning__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(!basename || hasBasename(path, basename), 'You are attempting to use a basename on a page whose URL path does not begin ' + 'with the basename. Expected path \"' + path + '\" to begin with \"' + basename + '\".') : undefined;\n if (basename) path = stripBasename(path, basename);\n return createLocation(path);\n }\n\n var transitionManager = createTransitionManager();\n\n function setState(nextState) {\n Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(history, nextState);\n\n history.length = globalHistory.length;\n transitionManager.notifyListeners(history.location, history.action);\n }\n\n var forceNextPop = false;\n var ignorePath = null;\n\n function locationsAreEqual$$1(a, b) {\n return a.pathname === b.pathname && a.search === b.search && a.hash === b.hash;\n }\n\n function handleHashChange() {\n var path = getHashPath();\n var encodedPath = encodePath(path);\n\n if (path !== encodedPath) {\n // Ensure we always have a properly-encoded hash.\n replaceHashPath(encodedPath);\n } else {\n var location = getDOMLocation();\n var prevLocation = history.location;\n if (!forceNextPop && locationsAreEqual$$1(prevLocation, location)) return; // A hashchange doesn't always == location change.\n\n if (ignorePath === createPath(location)) return; // Ignore this change; we already setState in push/replace.\n\n ignorePath = null;\n handlePop(location);\n }\n }\n\n function handlePop(location) {\n if (forceNextPop) {\n forceNextPop = false;\n setState();\n } else {\n var action = 'POP';\n transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {\n if (ok) {\n setState({\n action: action,\n location: location\n });\n } else {\n revertPop(location);\n }\n });\n }\n }\n\n function revertPop(fromLocation) {\n var toLocation = history.location; // TODO: We could probably make this more reliable by\n // keeping a list of paths we've seen in sessionStorage.\n // Instead, we just default to 0 for paths we don't know.\n\n var toIndex = allPaths.lastIndexOf(createPath(toLocation));\n if (toIndex === -1) toIndex = 0;\n var fromIndex = allPaths.lastIndexOf(createPath(fromLocation));\n if (fromIndex === -1) fromIndex = 0;\n var delta = toIndex - fromIndex;\n\n if (delta) {\n forceNextPop = true;\n go(delta);\n }\n } // Ensure the hash is encoded properly before doing anything else.\n\n\n var path = getHashPath();\n var encodedPath = encodePath(path);\n if (path !== encodedPath) replaceHashPath(encodedPath);\n var initialLocation = getDOMLocation();\n var allPaths = [createPath(initialLocation)]; // Public interface\n\n function createHref(location) {\n var baseTag = document.querySelector('base');\n var href = '';\n\n if (baseTag && baseTag.getAttribute('href')) {\n href = stripHash(window.location.href);\n }\n\n return href + '#' + encodePath(basename + createPath(location));\n }\n\n function push(path, state) {\n true ? Object(tiny_warning__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(state === undefined, 'Hash history cannot push state; it is ignored') : undefined;\n var action = 'PUSH';\n var location = createLocation(path, undefined, undefined, history.location);\n transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {\n if (!ok) return;\n var path = createPath(location);\n var encodedPath = encodePath(basename + path);\n var hashChanged = getHashPath() !== encodedPath;\n\n if (hashChanged) {\n // We cannot tell if a hashchange was caused by a PUSH, so we'd\n // rather setState here and ignore the hashchange. The caveat here\n // is that other hash histories in the page will consider it a POP.\n ignorePath = path;\n pushHashPath(encodedPath);\n var prevIndex = allPaths.lastIndexOf(createPath(history.location));\n var nextPaths = allPaths.slice(0, prevIndex + 1);\n nextPaths.push(path);\n allPaths = nextPaths;\n setState({\n action: action,\n location: location\n });\n } else {\n true ? Object(tiny_warning__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(false, 'Hash history cannot PUSH the same path; a new entry will not be added to the history stack') : undefined;\n setState();\n }\n });\n }\n\n function replace(path, state) {\n true ? Object(tiny_warning__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(state === undefined, 'Hash history cannot replace state; it is ignored') : undefined;\n var action = 'REPLACE';\n var location = createLocation(path, undefined, undefined, history.location);\n transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {\n if (!ok) return;\n var path = createPath(location);\n var encodedPath = encodePath(basename + path);\n var hashChanged = getHashPath() !== encodedPath;\n\n if (hashChanged) {\n // We cannot tell if a hashchange was caused by a REPLACE, so we'd\n // rather setState here and ignore the hashchange. The caveat here\n // is that other hash histories in the page will consider it a POP.\n ignorePath = path;\n replaceHashPath(encodedPath);\n }\n\n var prevIndex = allPaths.indexOf(createPath(history.location));\n if (prevIndex !== -1) allPaths[prevIndex] = path;\n setState({\n action: action,\n location: location\n });\n });\n }\n\n function go(n) {\n true ? Object(tiny_warning__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(canGoWithoutReload, 'Hash history go(n) causes a full page reload in this browser') : undefined;\n globalHistory.go(n);\n }\n\n function goBack() {\n go(-1);\n }\n\n function goForward() {\n go(1);\n }\n\n var listenerCount = 0;\n\n function checkDOMListeners(delta) {\n listenerCount += delta;\n\n if (listenerCount === 1 && delta === 1) {\n window.addEventListener(HashChangeEvent$1, handleHashChange);\n } else if (listenerCount === 0) {\n window.removeEventListener(HashChangeEvent$1, handleHashChange);\n }\n }\n\n var isBlocked = false;\n\n function block(prompt) {\n if (prompt === void 0) {\n prompt = false;\n }\n\n var unblock = transitionManager.setPrompt(prompt);\n\n if (!isBlocked) {\n checkDOMListeners(1);\n isBlocked = true;\n }\n\n return function () {\n if (isBlocked) {\n isBlocked = false;\n checkDOMListeners(-1);\n }\n\n return unblock();\n };\n }\n\n function listen(listener) {\n var unlisten = transitionManager.appendListener(listener);\n checkDOMListeners(1);\n return function () {\n checkDOMListeners(-1);\n unlisten();\n };\n }\n\n var history = {\n length: globalHistory.length,\n action: 'POP',\n location: initialLocation,\n createHref: createHref,\n push: push,\n replace: replace,\n go: go,\n goBack: goBack,\n goForward: goForward,\n block: block,\n listen: listen\n };\n return history;\n}\n\nfunction clamp(n, lowerBound, upperBound) {\n return Math.min(Math.max(n, lowerBound), upperBound);\n}\n/**\n * Creates a history object that stores locations in memory.\n */\n\n\nfunction createMemoryHistory(props) {\n if (props === void 0) {\n props = {};\n }\n\n var _props = props,\n getUserConfirmation = _props.getUserConfirmation,\n _props$initialEntries = _props.initialEntries,\n initialEntries = _props$initialEntries === void 0 ? ['/'] : _props$initialEntries,\n _props$initialIndex = _props.initialIndex,\n initialIndex = _props$initialIndex === void 0 ? 0 : _props$initialIndex,\n _props$keyLength = _props.keyLength,\n keyLength = _props$keyLength === void 0 ? 6 : _props$keyLength;\n var transitionManager = createTransitionManager();\n\n function setState(nextState) {\n Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(history, nextState);\n\n history.length = history.entries.length;\n transitionManager.notifyListeners(history.location, history.action);\n }\n\n function createKey() {\n return Math.random().toString(36).substr(2, keyLength);\n }\n\n var index = clamp(initialIndex, 0, initialEntries.length - 1);\n var entries = initialEntries.map(function (entry) {\n return typeof entry === 'string' ? createLocation(entry, undefined, createKey()) : createLocation(entry, undefined, entry.key || createKey());\n }); // Public interface\n\n var createHref = createPath;\n\n function push(path, state) {\n true ? Object(tiny_warning__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(!(typeof path === 'object' && path.state !== undefined && state !== undefined), 'You should avoid providing a 2nd state argument to push when the 1st ' + 'argument is a location-like object that already has state; it is ignored') : undefined;\n var action = 'PUSH';\n var location = createLocation(path, state, createKey(), history.location);\n transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {\n if (!ok) return;\n var prevIndex = history.index;\n var nextIndex = prevIndex + 1;\n var nextEntries = history.entries.slice(0);\n\n if (nextEntries.length > nextIndex) {\n nextEntries.splice(nextIndex, nextEntries.length - nextIndex, location);\n } else {\n nextEntries.push(location);\n }\n\n setState({\n action: action,\n location: location,\n index: nextIndex,\n entries: nextEntries\n });\n });\n }\n\n function replace(path, state) {\n true ? Object(tiny_warning__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(!(typeof path === 'object' && path.state !== undefined && state !== undefined), 'You should avoid providing a 2nd state argument to replace when the 1st ' + 'argument is a location-like object that already has state; it is ignored') : undefined;\n var action = 'REPLACE';\n var location = createLocation(path, state, createKey(), history.location);\n transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {\n if (!ok) return;\n history.entries[history.index] = location;\n setState({\n action: action,\n location: location\n });\n });\n }\n\n function go(n) {\n var nextIndex = clamp(history.index + n, 0, history.entries.length - 1);\n var action = 'POP';\n var location = history.entries[nextIndex];\n transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {\n if (ok) {\n setState({\n action: action,\n location: location,\n index: nextIndex\n });\n } else {\n // Mimic the behavior of DOM histories by\n // causing a render after a cancelled POP.\n setState();\n }\n });\n }\n\n function goBack() {\n go(-1);\n }\n\n function goForward() {\n go(1);\n }\n\n function canGo(n) {\n var nextIndex = history.index + n;\n return nextIndex >= 0 && nextIndex < history.entries.length;\n }\n\n function block(prompt) {\n if (prompt === void 0) {\n prompt = false;\n }\n\n return transitionManager.setPrompt(prompt);\n }\n\n function listen(listener) {\n return transitionManager.appendListener(listener);\n }\n\n var history = {\n length: entries.length,\n action: 'POP',\n location: entries[index],\n index: index,\n entries: entries,\n createHref: createHref,\n push: push,\n replace: replace,\n go: go,\n goBack: goBack,\n goForward: goForward,\n canGo: canGo,\n block: block,\n listen: listen\n };\n return history;\n}\n\n\n\n\n//# sourceURL=webpack://bootstrap/./node_modules/history/esm/history.js?"); + +/***/ }), + +/***/ "./node_modules/resolve-pathname/esm/resolve-pathname.js": +/*!***************************************************************!*\ + !*** ./node_modules/resolve-pathname/esm/resolve-pathname.js ***! + \***************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\nfunction isAbsolute(pathname) {\n return pathname.charAt(0) === '/';\n}\n\n// About 1.5x faster than the two-arg version of Array#splice()\nfunction spliceOne(list, index) {\n for (var i = index, k = i + 1, n = list.length; k < n; i += 1, k += 1) {\n list[i] = list[k];\n }\n\n list.pop();\n}\n\n// This implementation is based heavily on node's url.parse\nfunction resolvePathname(to, from) {\n if (from === undefined) from = '';\n\n var toParts = (to && to.split('/')) || [];\n var fromParts = (from && from.split('/')) || [];\n\n var isToAbs = to && isAbsolute(to);\n var isFromAbs = from && isAbsolute(from);\n var mustEndAbs = isToAbs || isFromAbs;\n\n if (to && isAbsolute(to)) {\n // to is absolute\n fromParts = toParts;\n } else if (toParts.length) {\n // to is relative, drop the filename\n fromParts.pop();\n fromParts = fromParts.concat(toParts);\n }\n\n if (!fromParts.length) return '/';\n\n var hasTrailingSlash;\n if (fromParts.length) {\n var last = fromParts[fromParts.length - 1];\n hasTrailingSlash = last === '.' || last === '..' || last === '';\n } else {\n hasTrailingSlash = false;\n }\n\n var up = 0;\n for (var i = fromParts.length; i >= 0; i--) {\n var part = fromParts[i];\n\n if (part === '.') {\n spliceOne(fromParts, i);\n } else if (part === '..') {\n spliceOne(fromParts, i);\n up++;\n } else if (up) {\n spliceOne(fromParts, i);\n up--;\n }\n }\n\n if (!mustEndAbs) for (; up--; up) fromParts.unshift('..');\n\n if (\n mustEndAbs &&\n fromParts[0] !== '' &&\n (!fromParts[0] || !isAbsolute(fromParts[0]))\n )\n fromParts.unshift('');\n\n var result = fromParts.join('/');\n\n if (hasTrailingSlash && result.substr(-1) !== '/') result += '/';\n\n return result;\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (resolvePathname);\n\n\n//# sourceURL=webpack://bootstrap/./node_modules/resolve-pathname/esm/resolve-pathname.js?"); + +/***/ }), + +/***/ "./node_modules/systemjs/dist/extras/amd.js": +/*!**************************************************!*\ + !*** ./node_modules/systemjs/dist/extras/amd.js ***! + \**************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +eval("/* WEBPACK VAR INJECTION */(function(global) {/*\n * Support for AMD loading\n */\n(function (global) {\n const systemPrototype = global.System.constructor.prototype;\n\n const emptyInstantiation = [[], function () { return {} }];\n\n function unsupportedRequire () {\n throw Error('AMD require not supported.');\n }\n\n let tmpRegister, firstNamedDefine;\n\n function emptyFn () {}\n\n const requireExportsModule = ['require', 'exports', 'module'];\n\n function createAMDRegister (amdDefineDeps, amdDefineExec) {\n const exports = {};\n const module = { exports: exports };\n const depModules = [];\n const setters = [];\n let splice = 0;\n for (let i = 0; i < amdDefineDeps.length; i++) {\n const id = amdDefineDeps[i];\n const index = setters.length;\n if (id === 'require') {\n depModules[i] = unsupportedRequire;\n splice++;\n }\n else if (id === 'module') {\n depModules[i] = module;\n splice++;\n }\n else if (id === 'exports') {\n depModules[i] = exports;\n splice++;\n }\n else {\n // needed for ie11 lack of iteration scope\n const idx = i;\n setters.push(function (ns) {\n depModules[idx] = ns.__useDefault ? ns.default : ns;\n });\n }\n if (splice)\n amdDefineDeps[index] = id;\n }\n if (splice)\n amdDefineDeps.length -= splice;\n const amdExec = amdDefineExec;\n return [amdDefineDeps, function (_export) {\n _export({ default: exports, __useDefault: true });\n return {\n setters: setters,\n execute: function () {\n module.exports = amdExec.apply(exports, depModules) || module.exports;\n if (exports !== module.exports)\n _export('default', module.exports);\n }\n };\n }];\n }\n\n const _import = systemPrototype.import;\n systemPrototype.import = function() {\n firstNamedDefine = null;\n return _import.apply(this, arguments);\n };\n\n // hook System.register to know the last declaration binding\n let lastRegisterDeclare;\n const systemRegister = systemPrototype.register;\n systemPrototype.register = function (name, deps, declare) {\n lastRegisterDeclare = typeof name === 'string' ? declare : deps;\n systemRegister.apply(this, arguments);\n };\n\n const instantiate = systemPrototype.instantiate;\n systemPrototype.instantiate = function() {\n // Reset \"currently executing script\"\n amdDefineDeps = null;\n return instantiate.apply(this, arguments);\n };\n\n const getRegister = systemPrototype.getRegister;\n systemPrototype.getRegister = function () {\n if (tmpRegister)\n return tmpRegister;\n\n const _firstNamedDefine = firstNamedDefine;\n firstNamedDefine = null;\n\n const register = getRegister.call(this);\n // if its an actual System.register leave it\n if (register && register[1] === lastRegisterDeclare)\n return register;\n\n const _amdDefineDeps = amdDefineDeps;\n amdDefineDeps = null;\n\n // If the script registered a named module, return that module instead of re-instantiating it.\n if (_firstNamedDefine)\n return _firstNamedDefine;\n\n // otherwise AMD takes priority\n // no registration -> attempt AMD detection\n if (!_amdDefineDeps)\n return register || emptyInstantiation;\n\n return createAMDRegister(_amdDefineDeps, amdDefineExec);\n };\n let amdDefineDeps, amdDefineExec;\n global.define = function (name, deps, execute) {\n // define('', [], function () {})\n if (typeof name === 'string') {\n const depsAndExec = getDepsAndExec(deps, execute);\n if (amdDefineDeps) {\n if (!System.registerRegistry)\n throw Error('Include the named register extension for SystemJS named AMD support.');\n addToRegisterRegistry(name, createAMDRegister(depsAndExec[0], depsAndExec[1]));\n amdDefineDeps = [];\n amdDefineExec = emptyFn;\n return;\n }\n else {\n if (System.registerRegistry)\n addToRegisterRegistry(name, createAMDRegister([].concat(depsAndExec[0]), depsAndExec[1]));\n name = deps;\n deps = execute;\n }\n }\n const depsAndExec = getDepsAndExec(name, deps);\n amdDefineDeps = depsAndExec[0];\n amdDefineExec = depsAndExec[1];\n };\n global.define.amd = {};\n\n function getDepsAndExec(arg1, arg2) {\n // define([], function () {})\n if (arg1 instanceof Array) {\n return [arg1, arg2];\n }\n // define({})\n else if (typeof arg1 === 'object') {\n return [[], function () { return arg1 }];\n }\n // define(function () {})\n else if (typeof arg1 === 'function') {\n return [requireExportsModule, arg1];\n }\n }\n\n function addToRegisterRegistry(name, define) {\n if (!firstNamedDefine) {\n firstNamedDefine = define;\n }\n\n // We must call System.getRegister() here to give other extras, such as the named-exports extra,\n // a chance to modify the define before it's put into the registerRegistry.\n // See https://github.com/systemjs/systemjs/issues/2073\n tmpRegister = define;\n System.registerRegistry[name] = System.getRegister();\n tmpRegister = null;\n }\n})(typeof self !== 'undefined' ? self : global);\n\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../webpack/buildin/global.js */ \"./node_modules/webpack/buildin/global.js\")))\n\n//# sourceURL=webpack://bootstrap/./node_modules/systemjs/dist/extras/amd.js?"); + +/***/ }), + +/***/ "./node_modules/systemjs/dist/extras/named-exports.js": +/*!************************************************************!*\ + !*** ./node_modules/systemjs/dist/extras/named-exports.js ***! + \************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +eval("/* WEBPACK VAR INJECTION */(function(global) {/*\n * Named exports support for legacy module formats in SystemJS 2.0\n */\n(function (global) {\n const systemJSPrototype = global.System.constructor.prototype;\n \n // hook System.register to know the last declaration binding\n let lastRegisterDeclare;\n const systemRegister = systemJSPrototype.register;\n systemJSPrototype.register = function (name, deps, declare) {\n lastRegisterDeclare = typeof name === 'string' ? declare : deps;\n systemRegister.apply(this, arguments);\n };\n\n const getRegister = systemJSPrototype.getRegister;\n systemJSPrototype.getRegister = function () {\n const register = getRegister.call(this);\n // if it is an actual System.register call, then its ESM\n // -> dont add named exports\n if (!register || register[1] === lastRegisterDeclare || register[1].length === 0)\n return register;\n \n // otherwise it was provided by a custom instantiator\n // -> extend the registration with named exports support\n const registerDeclare = register[1];\n register[1] = function (_export, _context) {\n // hook the _export function to note the default export\n let defaultExport, hasDefaultExport = false;\n const declaration = registerDeclare.call(this, function (name, value) {\n if (typeof name === 'object' && name.__useDefault)\n defaultExport = name.default, hasDefaultExport = true;\n else if (name === 'default')\n defaultExport = value;\n else if (name === '__useDefault')\n hasDefaultExport = true;\n _export(name, value);\n }, _context);\n // hook the execute function\n const execute = declaration.execute;\n if (execute)\n declaration.execute = function () {\n execute.call(this);\n // do a bulk export of the default export object\n // to export all its names as named exports\n if (hasDefaultExport && typeof defaultExport === 'object')\n for (let name in defaultExport) {\n // default is not a named export\n if (name !== 'default') {\n _export(name, defaultExport[name]);\n }\n }\n };\n return declaration;\n };\n return register;\n };\n})(typeof self !== 'undefined' ? self : global);\n\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../webpack/buildin/global.js */ \"./node_modules/webpack/buildin/global.js\")))\n\n//# sourceURL=webpack://bootstrap/./node_modules/systemjs/dist/extras/named-exports.js?"); + +/***/ }), + +/***/ "./node_modules/systemjs/dist/extras/named-register.js": +/*!*************************************************************!*\ + !*** ./node_modules/systemjs/dist/extras/named-register.js ***! + \*************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +eval("/* WEBPACK VAR INJECTION */(function(global) {/*\n * SystemJS named register extension\n * Supports System.register('name', [..deps..], function (_export, _context) { ... })\n * \n * Names are written to the registry as-is\n * System.register('x', ...) can be imported as System.import('x')\n */\n(function (global) {\n const System = global.System;\n setRegisterRegistry(System);\n const systemJSPrototype = System.constructor.prototype;\n const constructor = System.constructor;\n const SystemJS = function () {\n constructor.call(this);\n setRegisterRegistry(this);\n };\n SystemJS.prototype = systemJSPrototype;\n System.constructor = SystemJS;\n\n let firstNamedDefine;\n\n function setRegisterRegistry(systemInstance) {\n systemInstance.registerRegistry = Object.create(null);\n }\n\n const _import = systemJSPrototype.import;\n systemJSPrototype.import = function() {\n firstNamedDefine = null;\n return _import.apply(this, arguments);\n };\n\n const register = systemJSPrototype.register;\n systemJSPrototype.register = function (name, deps, declare) {\n if (typeof name !== 'string')\n return register.apply(this, arguments);\n const define = [deps, declare];\n this.registerRegistry[name] = define;\n if (!firstNamedDefine) {\n firstNamedDefine = define;\n }\n return register.apply(this, arguments);\n };\n\n const resolve = systemJSPrototype.resolve;\n systemJSPrototype.resolve = function (id, parentURL) {\n try {\n // Prefer import map (or other existing) resolution over the registerRegistry\n return resolve.call(this, id, parentURL);\n } catch (err) {\n if (id in this.registerRegistry)\n return id;\n throw err;\n }\n };\n\n const instantiate = systemJSPrototype.instantiate;\n systemJSPrototype.instantiate = function (url, firstParentUrl) {\n return this.registerRegistry[url] || instantiate.call(this, url, firstParentUrl);\n };\n\n const getRegister = systemJSPrototype.getRegister;\n systemJSPrototype.getRegister = function () {\n // Calling getRegister() because other extras need to know it was called so they can perform side effects\n const register = getRegister.call(this);\n\n const result = firstNamedDefine || register;\n firstNamedDefine = null;\n return result;\n }\n})(typeof self !== 'undefined' ? self : global);\n\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../webpack/buildin/global.js */ \"./node_modules/webpack/buildin/global.js\")))\n\n//# sourceURL=webpack://bootstrap/./node_modules/systemjs/dist/extras/named-register.js?"); + +/***/ }), + +/***/ "./node_modules/systemjs/dist/extras/transform.js": +/*!********************************************************!*\ + !*** ./node_modules/systemjs/dist/extras/transform.js ***! + \********************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +eval("/* WEBPACK VAR INJECTION */(function(global) {/*\n * Support for a \"transform\" loader interface\n */\n(function (global) {\n const systemJSPrototype = global.System.constructor.prototype;\n\n const instantiate = systemJSPrototype.instantiate;\n systemJSPrototype.instantiate = function (url, parent) {\n if (url.slice(-5) === '.wasm')\n return instantiate.call(this, url, parent);\n\n const loader = this;\n return fetch(url, { credentials: 'same-origin' })\n .then(function (res) {\n if (!res.ok)\n throw Error('Fetch error: ' + res.status + ' ' + res.statusText + (parent ? ' loading from ' + parent : ''));\n return res.text();\n })\n .then(function (source) {\n return loader.transform.call(this, url, source);\n })\n .then(function (source) {\n (0, eval)(source + '\\n//# sourceURL=' + url);\n return loader.getRegister();\n });\n };\n\n // Hookable transform function!\n systemJSPrototype.transform = function (_id, source) {\n return source;\n };\n})(typeof self !== 'undefined' ? self : global);\n\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../webpack/buildin/global.js */ \"./node_modules/webpack/buildin/global.js\")))\n\n//# sourceURL=webpack://bootstrap/./node_modules/systemjs/dist/extras/transform.js?"); + +/***/ }), + +/***/ "./node_modules/systemjs/dist/s.js": +/*!*****************************************!*\ + !*** ./node_modules/systemjs/dist/s.js ***! + \*****************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +eval("/* WEBPACK VAR INJECTION */(function(global) {/*\n* SJS 6.2.2\n* Minimal SystemJS Build\n*/\n(function () {\n const hasSelf = typeof self !== 'undefined';\n\n const hasDocument = typeof document !== 'undefined';\n\n const envGlobal = hasSelf ? self : global;\n\n let baseUrl;\n\n if (hasDocument) {\n const baseEl = document.querySelector('base[href]');\n if (baseEl)\n baseUrl = baseEl.href;\n }\n\n if (!baseUrl && typeof location !== 'undefined') {\n baseUrl = location.href.split('#')[0].split('?')[0];\n const lastSepIndex = baseUrl.lastIndexOf('/');\n if (lastSepIndex !== -1)\n baseUrl = baseUrl.slice(0, lastSepIndex + 1);\n }\n\n const backslashRegEx = /\\\\/g;\n function resolveIfNotPlainOrUrl (relUrl, parentUrl) {\n if (relUrl.indexOf('\\\\') !== -1)\n relUrl = relUrl.replace(backslashRegEx, '/');\n // protocol-relative\n if (relUrl[0] === '/' && relUrl[1] === '/') {\n return parentUrl.slice(0, parentUrl.indexOf(':') + 1) + relUrl;\n }\n // relative-url\n else if (relUrl[0] === '.' && (relUrl[1] === '/' || relUrl[1] === '.' && (relUrl[2] === '/' || relUrl.length === 2 && (relUrl += '/')) ||\n relUrl.length === 1 && (relUrl += '/')) ||\n relUrl[0] === '/') {\n const parentProtocol = parentUrl.slice(0, parentUrl.indexOf(':') + 1);\n // Disabled, but these cases will give inconsistent results for deep backtracking\n //if (parentUrl[parentProtocol.length] !== '/')\n // throw Error('Cannot resolve');\n // read pathname from parent URL\n // pathname taken to be part after leading \"/\"\n let pathname;\n if (parentUrl[parentProtocol.length + 1] === '/') {\n // resolving to a :// so we need to read out the auth and host\n if (parentProtocol !== 'file:') {\n pathname = parentUrl.slice(parentProtocol.length + 2);\n pathname = pathname.slice(pathname.indexOf('/') + 1);\n }\n else {\n pathname = parentUrl.slice(8);\n }\n }\n else {\n // resolving to :/ so pathname is the /... part\n pathname = parentUrl.slice(parentProtocol.length + (parentUrl[parentProtocol.length] === '/'));\n }\n\n if (relUrl[0] === '/')\n return parentUrl.slice(0, parentUrl.length - pathname.length - 1) + relUrl;\n\n // join together and split for removal of .. and . segments\n // looping the string instead of anything fancy for perf reasons\n // '../../../../../z' resolved to 'x/y' is just 'z'\n const segmented = pathname.slice(0, pathname.lastIndexOf('/') + 1) + relUrl;\n\n const output = [];\n let segmentIndex = -1;\n for (let i = 0; i < segmented.length; i++) {\n // busy reading a segment - only terminate on '/'\n if (segmentIndex !== -1) {\n if (segmented[i] === '/') {\n output.push(segmented.slice(segmentIndex, i + 1));\n segmentIndex = -1;\n }\n }\n\n // new segment - check if it is relative\n else if (segmented[i] === '.') {\n // ../ segment\n if (segmented[i + 1] === '.' && (segmented[i + 2] === '/' || i + 2 === segmented.length)) {\n output.pop();\n i += 2;\n }\n // ./ segment\n else if (segmented[i + 1] === '/' || i + 1 === segmented.length) {\n i += 1;\n }\n else {\n // the start of a new segment as below\n segmentIndex = i;\n }\n }\n // it is the start of a new segment\n else {\n segmentIndex = i;\n }\n }\n // finish reading out the last segment\n if (segmentIndex !== -1)\n output.push(segmented.slice(segmentIndex));\n return parentUrl.slice(0, parentUrl.length - pathname.length) + output.join('');\n }\n }\n\n /*\n * Import maps implementation\n *\n * To make lookups fast we pre-resolve the entire import map\n * and then match based on backtracked hash lookups\n *\n */\n\n function resolveUrl (relUrl, parentUrl) {\n return resolveIfNotPlainOrUrl(relUrl, parentUrl) || (relUrl.indexOf(':') !== -1 ? relUrl : resolveIfNotPlainOrUrl('./' + relUrl, parentUrl));\n }\n\n /*\n * SystemJS Core\n * \n * Provides\n * - System.import\n * - System.register support for\n * live bindings, function hoisting through circular references,\n * reexports, dynamic import, import.meta.url, top-level await\n * - System.getRegister to get the registration\n * - Symbol.toStringTag support in Module objects\n * - Hookable System.createContext to customize import.meta\n * - System.onload(err, id, deps) handler for tracing / hot-reloading\n * \n * Core comes with no System.prototype.resolve or\n * System.prototype.instantiate implementations\n */\n\n const hasSymbol = typeof Symbol !== 'undefined';\n const toStringTag = hasSymbol && Symbol.toStringTag;\n const REGISTRY = hasSymbol ? Symbol() : '@';\n\n function SystemJS () {\n this[REGISTRY] = {};\n }\n\n const systemJSPrototype = SystemJS.prototype;\n\n systemJSPrototype.prepareImport = function () {};\n\n systemJSPrototype.import = function (id, parentUrl) {\n const loader = this;\n return Promise.resolve(loader.prepareImport())\n .then(function() {\n return loader.resolve(id, parentUrl);\n })\n .then(function (id) {\n const load = getOrCreateLoad(loader, id);\n return load.C || topLevelLoad(loader, load);\n });\n };\n\n // Hookable createContext function -> allowing eg custom import meta\n systemJSPrototype.createContext = function (parentId) {\n return {\n url: parentId\n };\n };\n\n let lastRegister;\n systemJSPrototype.register = function (deps, declare) {\n lastRegister = [deps, declare];\n };\n\n /*\n * getRegister provides the last anonymous System.register call\n */\n systemJSPrototype.getRegister = function () {\n const _lastRegister = lastRegister;\n lastRegister = undefined;\n return _lastRegister;\n };\n\n function getOrCreateLoad (loader, id, firstParentUrl) {\n let load = loader[REGISTRY][id];\n if (load)\n return load;\n\n const importerSetters = [];\n const ns = Object.create(null);\n if (toStringTag)\n Object.defineProperty(ns, toStringTag, { value: 'Module' });\n \n let instantiatePromise = Promise.resolve()\n .then(function () {\n return loader.instantiate(id, firstParentUrl);\n })\n .then(function (registration) {\n if (!registration)\n throw Error('Module ' + id + ' did not instantiate');\n function _export (name, value) {\n // note if we have hoisted exports (including reexports)\n load.h = true;\n let changed = false;\n if (typeof name !== 'object') {\n if (!(name in ns) || ns[name] !== value) {\n ns[name] = value;\n changed = true;\n }\n }\n else {\n for (let p in name) {\n let value = name[p];\n if (!(p in ns) || ns[p] !== value) {\n ns[p] = value;\n changed = true;\n }\n }\n\n if (name.__esModule) {\n ns.__esModule = name.__esModule;\n }\n }\n if (changed)\n for (let i = 0; i < importerSetters.length; i++)\n importerSetters[i](ns);\n return value;\n }\n const declared = registration[1](_export, registration[1].length === 2 ? {\n import: function (importId) {\n return loader.import(importId, id);\n },\n meta: loader.createContext(id)\n } : undefined);\n load.e = declared.execute || function () {};\n return [registration[0], declared.setters || []];\n });\n\n const linkPromise = instantiatePromise\n .then(function (instantiation) {\n return Promise.all(instantiation[0].map(function (dep, i) {\n const setter = instantiation[1][i];\n return Promise.resolve(loader.resolve(dep, id))\n .then(function (depId) {\n const depLoad = getOrCreateLoad(loader, depId, id);\n // depLoad.I may be undefined for already-evaluated\n return Promise.resolve(depLoad.I)\n .then(function () {\n if (setter) {\n depLoad.i.push(setter);\n // only run early setters when there are hoisted exports of that module\n // the timing works here as pending hoisted export calls will trigger through importerSetters\n if (depLoad.h || !depLoad.I)\n setter(depLoad.n);\n }\n return depLoad;\n });\n })\n }))\n .then(function (depLoads) {\n load.d = depLoads;\n });\n });\n\n linkPromise.catch(function (err) {\n load.e = null;\n load.er = err;\n });\n\n // Capital letter = a promise function\n return load = loader[REGISTRY][id] = {\n id: id,\n // importerSetters, the setters functions registered to this dependency\n // we retain this to add more later\n i: importerSetters,\n // module namespace object\n n: ns,\n\n // instantiate\n I: instantiatePromise,\n // link\n L: linkPromise,\n // whether it has hoisted exports\n h: false,\n\n // On instantiate completion we have populated:\n // dependency load records\n d: undefined,\n // execution function\n // set to NULL immediately after execution (or on any failure) to indicate execution has happened\n // in such a case, C should be used, and E, I, L will be emptied\n e: undefined,\n\n // On execution we have populated:\n // the execution error if any\n er: undefined,\n // in the case of TLA, the execution promise\n E: undefined,\n\n // On execution, L, I, E cleared\n\n // Promise for top-level completion\n C: undefined\n };\n }\n\n function instantiateAll (loader, load, loaded) {\n if (!loaded[load.id]) {\n loaded[load.id] = true;\n // load.L may be undefined for already-instantiated\n return Promise.resolve(load.L)\n .then(function () {\n return Promise.all(load.d.map(function (dep) {\n return instantiateAll(loader, dep, loaded);\n }));\n })\n }\n }\n\n function topLevelLoad (loader, load) {\n return load.C = instantiateAll(loader, load, {})\n .then(function () {\n return postOrderExec(loader, load, {});\n })\n .then(function () {\n return load.n;\n });\n }\n\n // the closest we can get to call(undefined)\n const nullContext = Object.freeze(Object.create(null));\n\n // returns a promise if and only if a top-level await subgraph\n // throws on sync errors\n function postOrderExec (loader, load, seen) {\n if (seen[load.id])\n return;\n seen[load.id] = true;\n\n if (!load.e) {\n if (load.er)\n throw load.er;\n if (load.E)\n return load.E;\n return;\n }\n\n // deps execute first, unless circular\n let depLoadPromises;\n load.d.forEach(function (depLoad) {\n {\n const depLoadPromise = postOrderExec(loader, depLoad, seen);\n if (depLoadPromise)\n (depLoadPromises = depLoadPromises || []).push(depLoadPromise);\n }\n });\n if (depLoadPromises)\n return Promise.all(depLoadPromises).then(doExec);\n\n return doExec();\n\n function doExec () {\n try {\n let execPromise = load.e.call(nullContext);\n if (execPromise) {\n execPromise = execPromise.then(function () {\n load.C = load.n;\n load.E = null;\n });\n return load.E = load.E || execPromise;\n }\n // (should be a promise, but a minify optimization to leave out Promise.resolve)\n load.C = load.n;\n }\n catch (err) {\n load.er = err;\n throw err;\n }\n finally {\n load.L = load.I = undefined;\n load.e = null;\n }\n }\n }\n\n envGlobal.System = new SystemJS();\n\n /*\n * Supports loading System.register via script tag injection\n */\n\n const systemRegister = systemJSPrototype.register;\n systemJSPrototype.register = function (deps, declare) {\n systemRegister.call(this, deps, declare);\n };\n\n systemJSPrototype.createScript = function (url) {\n const script = document.createElement('script');\n script.charset = 'utf-8';\n script.async = true;\n script.crossOrigin = 'anonymous';\n script.src = url;\n return script;\n };\n\n let lastWindowErrorUrl, lastWindowError;\n if (hasDocument)\n window.addEventListener('error', function (evt) {\n lastWindowErrorUrl = evt.filename;\n lastWindowError = evt.error;\n });\n\n systemJSPrototype.instantiate = function (url, firstParentUrl) {\n const loader = this;\n return new Promise(function (resolve, reject) {\n const script = systemJSPrototype.createScript(url);\n script.addEventListener('error', function () {\n reject(Error('Error loading ' + url + (firstParentUrl ? ' from ' + firstParentUrl : '')));\n });\n script.addEventListener('load', function () {\n document.head.removeChild(script);\n // Note that if an error occurs that isn't caught by this if statement,\n // that getRegister will return null and a \"did not instantiate\" error will be thrown.\n if (lastWindowErrorUrl === url) {\n reject(lastWindowError);\n }\n else {\n resolve(loader.getRegister());\n }\n });\n document.head.appendChild(script);\n });\n };\n\n if (hasDocument) {\n window.addEventListener('DOMContentLoaded', loadScriptModules);\n loadScriptModules();\n }\n\n function loadScriptModules() {\n Array.prototype.forEach.call(\n document.querySelectorAll('script[type=systemjs-module]'), function (script) {\n if (script.src) {\n System.import(script.src.slice(0, 7) === 'import:' ? script.src.slice(7) : resolveUrl(script.src, baseUrl));\n }\n });\n }\n\n /*\n * Supports loading System.register in workers\n */\n\n if (hasSelf && typeof importScripts === 'function')\n systemJSPrototype.instantiate = function (url) {\n const loader = this;\n return new Promise(function (resolve, reject) {\n try {\n importScripts(url);\n }\n catch (e) {\n reject(e);\n }\n resolve(loader.getRegister());\n });\n };\n\n systemJSPrototype.resolve = function (id, parentUrl) {\n const resolved = resolveIfNotPlainOrUrl(id, parentUrl || baseUrl);\n if (!resolved) {\n if (id.indexOf(':') !== -1)\n return Promise.resolve(id);\n throw Error('Cannot resolve \"' + id + (parentUrl ? '\" from ' + parentUrl : '\"'));\n }\n return Promise.resolve(resolved);\n };\n\n}());\n\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../webpack/buildin/global.js */ \"./node_modules/webpack/buildin/global.js\")))\n\n//# sourceURL=webpack://bootstrap/./node_modules/systemjs/dist/s.js?"); + +/***/ }), + +/***/ "./node_modules/tiny-invariant/dist/tiny-invariant.esm.js": +/*!****************************************************************!*\ + !*** ./node_modules/tiny-invariant/dist/tiny-invariant.esm.js ***! + \****************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\nvar isProduction = \"development\" === 'production';\nvar prefix = 'Invariant failed';\nfunction invariant(condition, message) {\n if (condition) {\n return;\n }\n if (isProduction) {\n throw new Error(prefix);\n }\n throw new Error(prefix + \": \" + (message || ''));\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (invariant);\n\n\n//# sourceURL=webpack://bootstrap/./node_modules/tiny-invariant/dist/tiny-invariant.esm.js?"); + +/***/ }), + +/***/ "./node_modules/tiny-warning/dist/tiny-warning.esm.js": +/*!************************************************************!*\ + !*** ./node_modules/tiny-warning/dist/tiny-warning.esm.js ***! + \************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\nvar isProduction = \"development\" === 'production';\nfunction warning(condition, message) {\n if (!isProduction) {\n if (condition) {\n return;\n }\n\n var text = \"Warning: \" + message;\n\n if (typeof console !== 'undefined') {\n console.warn(text);\n }\n\n try {\n throw Error(text);\n } catch (x) {}\n }\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (warning);\n\n\n//# sourceURL=webpack://bootstrap/./node_modules/tiny-warning/dist/tiny-warning.esm.js?"); + +/***/ }), + +/***/ "./node_modules/value-equal/esm/value-equal.js": +/*!*****************************************************!*\ + !*** ./node_modules/value-equal/esm/value-equal.js ***! + \*****************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\nfunction valueOf(obj) {\n return obj.valueOf ? obj.valueOf() : Object.prototype.valueOf.call(obj);\n}\n\nfunction valueEqual(a, b) {\n // Test for strict equality first.\n if (a === b) return true;\n\n // Otherwise, if either of them == null they are not equal.\n if (a == null || b == null) return false;\n\n if (Array.isArray(a)) {\n return (\n Array.isArray(b) &&\n a.length === b.length &&\n a.every(function(item, index) {\n return valueEqual(item, b[index]);\n })\n );\n }\n\n if (typeof a === 'object' || typeof b === 'object') {\n var aValue = valueOf(a);\n var bValue = valueOf(b);\n\n if (aValue !== a || bValue !== b) return valueEqual(aValue, bValue);\n\n return Object.keys(Object.assign({}, a, b)).every(function(key) {\n return valueEqual(a[key], b[key]);\n });\n }\n\n return false;\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (valueEqual);\n\n\n//# sourceURL=webpack://bootstrap/./node_modules/value-equal/esm/value-equal.js?"); + +/***/ }), + +/***/ "./node_modules/webpack/buildin/global.js": +/*!***********************************!*\ + !*** (webpack)/buildin/global.js ***! + \***********************************/ +/*! no static exports found */ +/***/ (function(module, exports) { + +eval("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://bootstrap/(webpack)/buildin/global.js?"); + +/***/ }), + +/***/ "./src/main.ts": +/*!*********************!*\ + !*** ./src/main.ts ***! + \*********************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nvar __awaiter = (this && this.__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 __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\n__webpack_require__(/*! systemjs/dist/s */ \"./node_modules/systemjs/dist/s.js\");\n__webpack_require__(/*! systemjs/dist/extras/amd */ \"./node_modules/systemjs/dist/extras/amd.js\");\n__webpack_require__(/*! systemjs/dist/extras/named-register */ \"./node_modules/systemjs/dist/extras/named-register.js\");\n__webpack_require__(/*! systemjs/dist/extras/named-exports */ \"./node_modules/systemjs/dist/extras/named-exports.js\");\n__webpack_require__(/*! systemjs/dist/extras/transform */ \"./node_modules/systemjs/dist/extras/transform.js\");\nvar history_1 = __webpack_require__(/*! history */ \"./node_modules/history/esm/history.js\");\nvar systemJSImport = function (requestUrl) { return __awaiter(void 0, void 0, void 0, function () {\n var _a, component, mount, unmount;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0: return [4 /*yield*/, System.import(requestUrl)];\n case 1:\n _a = _b.sent(), component = _a.default, mount = _a.mount, unmount = _a.unmount;\n return [2 /*return*/, { component: component, mount: mount, unmount: unmount }];\n }\n });\n}); };\nvar getApp = function (apps, path) {\n var searchKey = path.substr(1);\n return \"./\" + searchKey + \"/\" + apps[searchKey].version + \"/index.js\";\n};\nexports.default = (function (_a) {\n var apps = _a.apps, navigations = _a.navigations, config = _a.config;\n return __awaiter(void 0, void 0, void 0, function () {\n var history, prevPathname, app, _b, component, mount, unmount;\n return __generator(this, function (_c) {\n switch (_c.label) {\n case 0:\n history = history_1.createBrowserHistory();\n prevPathname = window.location.pathname;\n /* tslint:disable-next-line */\n __webpack_require__.p = \"/static\" + __webpack_require__.p;\n app = getApp(apps, history.location.pathname);\n return [4 /*yield*/, systemJSImport(app)];\n case 1:\n _b = _c.sent(), component = _b.component, mount = _b.mount, unmount = _b.unmount;\n mount(component.default);\n history.listen(function (location) {\n if (location.pathname !== prevPathname) {\n prevPathname = location.pathname;\n unmount();\n }\n });\n return [2 /*return*/];\n }\n });\n });\n});\n\n\n//# sourceURL=webpack://bootstrap/./src/main.ts?"); + +/***/ }) + +/******/ })["default"]; \ No newline at end of file diff --git a/exampleApp/example.js b/exampleApp/example.js deleted file mode 100644 index a2438dd..0000000 --- a/exampleApp/example.js +++ /dev/null @@ -1,161 +0,0 @@ -(function webpackUniversalModuleDefinition(root, factory) { - if(typeof exports === 'object' && typeof module === 'object') - module.exports = factory(require("react"), require("react-dom")); - else if(typeof define === 'function' && define.amd) - define(["react", "react-dom"], factory); - else { - var a = typeof exports === 'object' ? factory(require("react"), require("react-dom")) : factory(root["react"], root["react-dom"]); - for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i]; - } -})((typeof self !== 'undefined' ? self : this), function(__WEBPACK_EXTERNAL_MODULE_react__, __WEBPACK_EXTERNAL_MODULE_react_dom__) { -return /******/ (function(modules) { // webpackBootstrap -/******/ // The module cache -/******/ var installedModules = {}; -/******/ -/******/ // The require function -/******/ function __webpack_require__(moduleId) { -/******/ -/******/ // Check if module is in cache -/******/ if(installedModules[moduleId]) { -/******/ return installedModules[moduleId].exports; -/******/ } -/******/ // Create a new module (and put it into the cache) -/******/ var module = installedModules[moduleId] = { -/******/ i: moduleId, -/******/ l: false, -/******/ exports: {} -/******/ }; -/******/ -/******/ // Execute the module function -/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); -/******/ -/******/ // Flag the module as loaded -/******/ module.l = true; -/******/ -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } -/******/ -/******/ -/******/ // expose the modules object (__webpack_modules__) -/******/ __webpack_require__.m = modules; -/******/ -/******/ // expose the module cache -/******/ __webpack_require__.c = installedModules; -/******/ -/******/ // define getter function for harmony exports -/******/ __webpack_require__.d = function(exports, name, getter) { -/******/ if(!__webpack_require__.o(exports, name)) { -/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); -/******/ } -/******/ }; -/******/ -/******/ // define __esModule on exports -/******/ __webpack_require__.r = function(exports) { -/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { -/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); -/******/ } -/******/ Object.defineProperty(exports, '__esModule', { value: true }); -/******/ }; -/******/ -/******/ // create a fake namespace object -/******/ // mode & 1: value is a module id, require it -/******/ // mode & 2: merge all properties of value into the ns -/******/ // mode & 4: return value when already ns object -/******/ // mode & 8|1: behave like require -/******/ __webpack_require__.t = function(value, mode) { -/******/ if(mode & 1) value = __webpack_require__(value); -/******/ if(mode & 8) return value; -/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; -/******/ var ns = Object.create(null); -/******/ __webpack_require__.r(ns); -/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); -/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); -/******/ return ns; -/******/ }; -/******/ -/******/ // getDefaultExport function for compatibility with non-harmony modules -/******/ __webpack_require__.n = function(module) { -/******/ var getter = module && module.__esModule ? -/******/ function getDefault() { return module['default']; } : -/******/ function getModuleExports() { return module; }; -/******/ __webpack_require__.d(getter, 'a', getter); -/******/ return getter; -/******/ }; -/******/ -/******/ // Object.prototype.hasOwnProperty.call -/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; -/******/ -/******/ // __webpack_public_path__ -/******/ __webpack_require__.p = ""; -/******/ -/******/ -/******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 1); -/******/ }) -/************************************************************************/ -/******/ ({ - -/***/ "./src/example/main.tsx": -/*!******************************!*\ - !*** ./src/example/main.tsx ***! - \******************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -var react_1 = __importDefault(__webpack_require__(/*! react */ "react")); -var react_dom_1 = __importDefault(__webpack_require__(/*! react-dom */ "react-dom")); -exports.default = (function () { return (react_1.default.createElement("div", null, "\u041D\u0430\u0448\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u04351")); }); -exports.mount = function (component) { - react_dom_1.default.render(component, document.getElementById('app')); -}; -exports.unmount = function () { - react_dom_1.default.unmountComponentAtNode(document.getElementById('app')); -}; - - -/***/ }), - -/***/ 1: -/*!************************************!*\ - !*** multi ./src/example/main.tsx ***! - \************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -module.exports = __webpack_require__(/*! ./src/example/main.tsx */"./src/example/main.tsx"); - - -/***/ }), - -/***/ "react": -/*!************************!*\ - !*** external "react" ***! - \************************/ -/*! no static exports found */ -/***/ (function(module, exports) { - -module.exports = __WEBPACK_EXTERNAL_MODULE_react__; - -/***/ }), - -/***/ "react-dom": -/*!****************************!*\ - !*** external "react-dom" ***! - \****************************/ -/*! no static exports found */ -/***/ (function(module, exports) { - -module.exports = __WEBPACK_EXTERNAL_MODULE_react_dom__; - -/***/ }) - -/******/ }); -}); -//# sourceMappingURL=example.js.map \ No newline at end of file diff --git a/exampleApp/example.js.map b/exampleApp/example.js.map deleted file mode 100644 index c58312c..0000000 --- a/exampleApp/example.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["webpack:///webpack/universalModuleDefinition","webpack:///webpack/bootstrap","webpack:///./src/example/main.tsx","webpack:///external \"react\"","webpack:///external \"react-dom\""],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;QCVA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;;;;;;;;AClFA,yEAA0B;AAC1B,qFAAiC;AAEjC,mBAAe,cAAM,QAAC,oIAA2B,CAAC,EAA7B,CAA6B,EAAC;AAEtC,aAAK,GAAG,UAAC,SAAS;IAC3B,mBAAQ,CAAC,MAAM,CACX,SAAS,EACT,QAAQ,CAAC,cAAc,CAAC,KAAK,CAAC,CACjC,CAAC;AACN,CAAC;AAGY,eAAO,GAAG;IACnB,mBAAQ,CAAC,sBAAsB,CAAC,QAAQ,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;AACnE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;ACfD,mD;;;;;;;;;;;ACAA,uD","file":"example.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"react\"), require(\"react-dom\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"react\", \"react-dom\"], factory);\n\telse {\n\t\tvar a = typeof exports === 'object' ? factory(require(\"react\"), require(\"react-dom\")) : factory(root[\"react\"], root[\"react-dom\"]);\n\t\tfor(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];\n\t}\n})((typeof self !== 'undefined' ? self : this), function(__WEBPACK_EXTERNAL_MODULE_react__, __WEBPACK_EXTERNAL_MODULE_react_dom__) {\nreturn "," \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 = 1);\n","import React from 'react';\nimport ReactDom from 'react-dom';\n\nexport default () => (
Наше приложение1
);\n\nexport const mount = (component) => {\n ReactDom.render(\n component,\n document.getElementById('app')\n );\n}\n\n\nexport const unmount = () => {\n ReactDom.unmountComponentAtNode(document.getElementById('app'))\n}\n\n\n\n\n","module.exports = __WEBPACK_EXTERNAL_MODULE_react__;","module.exports = __WEBPACK_EXTERNAL_MODULE_react_dom__;"],"sourceRoot":""} \ No newline at end of file diff --git a/exampleApp/example2.js b/exampleApp/example2.js deleted file mode 100644 index 1180eea..0000000 --- a/exampleApp/example2.js +++ /dev/null @@ -1,161 +0,0 @@ -(function webpackUniversalModuleDefinition(root, factory) { - if(typeof exports === 'object' && typeof module === 'object') - module.exports = factory(require("react"), require("react-dom")); - else if(typeof define === 'function' && define.amd) - define(["react", "react-dom"], factory); - else { - var a = typeof exports === 'object' ? factory(require("react"), require("react-dom")) : factory(root["react"], root["react-dom"]); - for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i]; - } -})((typeof self !== 'undefined' ? self : this), function(__WEBPACK_EXTERNAL_MODULE_react__, __WEBPACK_EXTERNAL_MODULE_react_dom__) { -return /******/ (function(modules) { // webpackBootstrap -/******/ // The module cache -/******/ var installedModules = {}; -/******/ -/******/ // The require function -/******/ function __webpack_require__(moduleId) { -/******/ -/******/ // Check if module is in cache -/******/ if(installedModules[moduleId]) { -/******/ return installedModules[moduleId].exports; -/******/ } -/******/ // Create a new module (and put it into the cache) -/******/ var module = installedModules[moduleId] = { -/******/ i: moduleId, -/******/ l: false, -/******/ exports: {} -/******/ }; -/******/ -/******/ // Execute the module function -/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); -/******/ -/******/ // Flag the module as loaded -/******/ module.l = true; -/******/ -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } -/******/ -/******/ -/******/ // expose the modules object (__webpack_modules__) -/******/ __webpack_require__.m = modules; -/******/ -/******/ // expose the module cache -/******/ __webpack_require__.c = installedModules; -/******/ -/******/ // define getter function for harmony exports -/******/ __webpack_require__.d = function(exports, name, getter) { -/******/ if(!__webpack_require__.o(exports, name)) { -/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); -/******/ } -/******/ }; -/******/ -/******/ // define __esModule on exports -/******/ __webpack_require__.r = function(exports) { -/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { -/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); -/******/ } -/******/ Object.defineProperty(exports, '__esModule', { value: true }); -/******/ }; -/******/ -/******/ // create a fake namespace object -/******/ // mode & 1: value is a module id, require it -/******/ // mode & 2: merge all properties of value into the ns -/******/ // mode & 4: return value when already ns object -/******/ // mode & 8|1: behave like require -/******/ __webpack_require__.t = function(value, mode) { -/******/ if(mode & 1) value = __webpack_require__(value); -/******/ if(mode & 8) return value; -/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; -/******/ var ns = Object.create(null); -/******/ __webpack_require__.r(ns); -/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); -/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); -/******/ return ns; -/******/ }; -/******/ -/******/ // getDefaultExport function for compatibility with non-harmony modules -/******/ __webpack_require__.n = function(module) { -/******/ var getter = module && module.__esModule ? -/******/ function getDefault() { return module['default']; } : -/******/ function getModuleExports() { return module; }; -/******/ __webpack_require__.d(getter, 'a', getter); -/******/ return getter; -/******/ }; -/******/ -/******/ // Object.prototype.hasOwnProperty.call -/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; -/******/ -/******/ // __webpack_public_path__ -/******/ __webpack_require__.p = ""; -/******/ -/******/ -/******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 2); -/******/ }) -/************************************************************************/ -/******/ ({ - -/***/ "./src/example2/main.tsx": -/*!*******************************!*\ - !*** ./src/example2/main.tsx ***! - \*******************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -var react_1 = __importDefault(__webpack_require__(/*! react */ "react")); -var react_dom_1 = __importDefault(__webpack_require__(/*! react-dom */ "react-dom")); -exports.default = (function () { return (react_1.default.createElement("div", null, "\u041D\u0430\u0448\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u04352")); }); -exports.mount = function (component) { - react_dom_1.default.render(component, document.getElementById('app')); -}; -exports.unmount = function () { - react_dom_1.default.unmountComponentAtNode(document.getElementById('app')); -}; - - -/***/ }), - -/***/ 2: -/*!*************************************!*\ - !*** multi ./src/example2/main.tsx ***! - \*************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -module.exports = __webpack_require__(/*! ./src/example2/main.tsx */"./src/example2/main.tsx"); - - -/***/ }), - -/***/ "react": -/*!************************!*\ - !*** external "react" ***! - \************************/ -/*! no static exports found */ -/***/ (function(module, exports) { - -module.exports = __WEBPACK_EXTERNAL_MODULE_react__; - -/***/ }), - -/***/ "react-dom": -/*!****************************!*\ - !*** external "react-dom" ***! - \****************************/ -/*! no static exports found */ -/***/ (function(module, exports) { - -module.exports = __WEBPACK_EXTERNAL_MODULE_react_dom__; - -/***/ }) - -/******/ }); -}); -//# sourceMappingURL=example2.js.map \ No newline at end of file diff --git a/exampleApp/example2.js.map b/exampleApp/example2.js.map deleted file mode 100644 index b41bda0..0000000 --- a/exampleApp/example2.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["webpack:///webpack/universalModuleDefinition","webpack:///webpack/bootstrap","webpack:///./src/example2/main.tsx","webpack:///external \"react\"","webpack:///external \"react-dom\""],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;QCVA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;;;;;;;;AClFA,yEAA0B;AAC1B,qFAAiC;AAEjC,mBAAe,cAAM,QAAC,oIAA2B,CAAC,EAA7B,CAA6B,EAAC;AAEtC,aAAK,GAAG,UAAC,SAAS;IAC3B,mBAAQ,CAAC,MAAM,CACX,SAAS,EACT,QAAQ,CAAC,cAAc,CAAC,KAAK,CAAC,CACjC,CAAC;AACN,CAAC;AAGY,eAAO,GAAG;IACnB,mBAAQ,CAAC,sBAAsB,CAAC,QAAQ,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;AACnE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;ACfD,mD;;;;;;;;;;;ACAA,uD","file":"example2.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"react\"), require(\"react-dom\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"react\", \"react-dom\"], factory);\n\telse {\n\t\tvar a = typeof exports === 'object' ? factory(require(\"react\"), require(\"react-dom\")) : factory(root[\"react\"], root[\"react-dom\"]);\n\t\tfor(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];\n\t}\n})((typeof self !== 'undefined' ? self : this), function(__WEBPACK_EXTERNAL_MODULE_react__, __WEBPACK_EXTERNAL_MODULE_react_dom__) {\nreturn "," \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 = 2);\n","import React from 'react';\nimport ReactDom from 'react-dom';\n\nexport default () => (
Наше приложение2
);\n\nexport const mount = (component) => {\n ReactDom.render(\n component,\n document.getElementById('app')\n );\n}\n\n\nexport const unmount = () => {\n ReactDom.unmountComponentAtNode(document.getElementById('app'))\n}\n\n\n\n\n","module.exports = __WEBPACK_EXTERNAL_MODULE_react__;","module.exports = __WEBPACK_EXTERNAL_MODULE_react_dom__;"],"sourceRoot":""} \ No newline at end of file diff --git a/package.json b/package.json index bd63c38..e80800d 100644 --- a/package.json +++ b/package.json @@ -31,8 +31,8 @@ "systemjs": "6.2.2", "typescript": "3.7.5", "uds-news-original": "0.1.1", - "uds-sections-origin": "1.0.1", "uds-org": "../uds-org", + "uds-sections-origin": "1.0.1", "webpack": "4.41.5", "webpack-cli": "3.3.10", "webpack-dev-middleware": "3.7.2", diff --git a/src/.DS_Store b/src/.DS_Store index b73ff00..5008ddf 100644 Binary files a/src/.DS_Store and b/src/.DS_Store differ diff --git a/src/example/main.tsx b/src/example/main.tsx deleted file mode 100644 index 21a0e9f..0000000 --- a/src/example/main.tsx +++ /dev/null @@ -1,23 +0,0 @@ -import React from 'react'; -import ReactDom from 'react-dom'; - -export default () => (
Наше приложение1
); - - - -export const mount = (Сomponent) => { - // console.log('component', component); - ReactDom.render( - <Сomponent/>, - document.getElementById('app') - ); -} - - -export const unmount = () => { - ReactDom.unmountComponentAtNode(document.getElementById('app')) -} - - - - diff --git a/src/example2/main.tsx b/src/example2/main.tsx deleted file mode 100644 index 35d4092..0000000 --- a/src/example2/main.tsx +++ /dev/null @@ -1,20 +0,0 @@ -import React from 'react'; -import ReactDom from 'react-dom'; - -export default () => (
Наше приложение2
); - -export const mount = (Сomponent) => { - ReactDom.render( - <Сomponent/>, - document.getElementById('app') - ); -} - - -export const unmount = () => { - ReactDom.unmountComponentAtNode(document.getElementById('app')) -} - - - - diff --git a/src/main.js b/src/main.js deleted file mode 100644 index c072d62..0000000 --- a/src/main.js +++ /dev/null @@ -1,7 +0,0 @@ -const sysytemJs = require("systemjs/dist/system"); - -module.export = ({ apps, navigations, config }) => { - console.log("apps", apps); - - sysytemJs.import("./main/index.js"); -}; diff --git a/src/main.ts b/src/main.ts new file mode 100644 index 0000000..c3c9507 --- /dev/null +++ b/src/main.ts @@ -0,0 +1,46 @@ +import "systemjs/dist/s"; +import "systemjs/dist/extras/amd"; +import "systemjs/dist/extras/named-register"; +import "systemjs/dist/extras/named-exports"; +import "systemjs/dist/extras/transform"; +import { createBrowserHistory } from 'history' + +declare var System: { + import(string): Promise +} + +const systemJSImport = async (requestUrl: string) => { + const { default: component, mount, unmount } = await System.import( + requestUrl + ) + return { component, mount, unmount } +} + +const getApp = (apps, path) => { + const searchKey = path.substr(1) + return `./${searchKey}/${apps[searchKey].version}/index.js` +} + +export default async ({ apps, navigations, config }) => { + + const history = createBrowserHistory() + + let prevPathname = window.location.pathname + + /* tslint:disable-next-line */ + __webpack_public_path__ = `/static${__webpack_public_path__}` + + const app = getApp(apps, history.location.pathname) + + const { component, mount, unmount } = await systemJSImport(app); + + mount(component.default); + + + history.listen((location) => { + if (location.pathname !== prevPathname) { + prevPathname = location.pathname + unmount() + } + }) +}; diff --git a/src/main.tsx b/src/main.tsx deleted file mode 100644 index 0f2fcaa..0000000 --- a/src/main.tsx +++ /dev/null @@ -1,50 +0,0 @@ -import React from 'react'; -import ReactDom from 'react-dom'; -import { loadApp } from './utils'; - -class Bootstrap extends React.PureComponent { - App: any; - currentBundle: string = ''; - - async downloader(bundleName: string) { - let _bundleName = bundleName; - this.currentBundle = bundleName; - this.App = await loadApp(_bundleName); - this.forceUpdate(); - } - - mountApp = async(nameApp) => { - await this.downloader(nameApp); - this.App.mount(this.App.default) - } - - unmountApp = () => { - this.App.unmount(); - } - - render () { - return ( -
- - - - -
- ); - } -} - -ReactDom.render( - , - document.getElementById('bootstrap') -); - - diff --git a/src/utils.ts b/src/utils.ts deleted file mode 100644 index 73a46cf..0000000 --- a/src/utils.ts +++ /dev/null @@ -1,10 +0,0 @@ -export async function loadApp(bundleName) { - return await System.import(`./${bundleName}.js`) - .then(result => { - return result.default; - }) - .catch(error => { - console.info(`Загрузить ${bundleName} не удалось!`); - console.info(`error in ${bundleName}`, error); - }); -} diff --git a/stubs/index.html b/stubs/index.html deleted file mode 100644 index d1427b3..0000000 --- a/stubs/index.html +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - Занятие по загрузчику - - - - - - - - - -
-
- - \ No newline at end of file diff --git a/stubs/index.js b/stubs/index.js deleted file mode 100644 index 951a79d..0000000 --- a/stubs/index.js +++ /dev/null @@ -1,10 +0,0 @@ -const express = require("express"); -const app = express(); - - -app.use(express.static(__dirname + "/dist")); - - -app.listen(8088, () => console.log("Listening on port 8088!")); - -module.exports = app; \ No newline at end of file diff --git a/stubs/server.js b/stubs/server.js deleted file mode 100644 index 2254579..0000000 --- a/stubs/server.js +++ /dev/null @@ -1,17 +0,0 @@ -const hotClient = require('webpack-hot-client'); -const middleware = require('webpack-dev-middleware'); -const webpack = require('webpack'); -const config = require('../webpack.config'); -const app = require('../stubs'); -const compiler = webpack(config); -const { publicPath } = config.output; -const options = { }; // webpack-hot-client options - -// we recommend calling the client _before_ adding the dev middleware -const client = hotClient(compiler, options); -const { server } = client; -server.on('listening', () => { - app.use(middleware(compiler, { publicPath, historyApiFallback: true })); - - -}); \ No newline at end of file diff --git a/webpack.config.js b/webpack.config.js index a1e88c1..fe1e727 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -5,30 +5,24 @@ const { CleanWebpackPlugin } = require('clean-webpack-plugin'); const outputDirectory = 'dist'; +const pkg = require('./package.json') + module.exports = { - mode: 'development', + mode: "development", entry: { - bootstrap: ['./src/main.js'] + index: "./src/main.ts" }, output: { - filename: '[name].js', + library: "bootstrap", path: path.resolve(__dirname, outputDirectory), - globalObject: `(typeof self !== 'undefined' ? self : this)` + libraryExport: "default", + publicPath: `/boorstrap/${pkg.version}/` }, - node: { - fs: 'empty' - }, - plugins: [ - new CleanWebpackPlugin(), - new webpack.DefinePlugin({ - 'typeof window': JSON.stringify('object') - }) - ], - devtool: '#source-map', - //devtool: 'none', + + plugins: [new CleanWebpackPlugin()], + resolve: { - modules: ['node_modules', 'src'], - extensions: ['.webpack.js', '.web.js', '.ts', '.tsx', '.js', '.css'] + extensions: [".jsx", ".js"] }, module: { @@ -36,13 +30,12 @@ module.exports = { { parser: { system: false } }, { test: /\.tsx?$/, - loader: 'awesome-typescript-loader' + loader: "awesome-typescript-loader" }, { test: /\.(jpe?g|gif|png|svg|woff|ttf|eot|wav|mp3)$/, - loader: 'file-loader' + loader: "file-loader" } ] - } };