sample-cross-fx 0.15.0-beta.4672 → 0.15.0-beta.4699
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/{index.b0ccff.js → index.69a0d8.js} +1180 -1418
- package/app/{index.b0ccff.js.map → index.69a0d8.js.map} +1 -1
- package/app/index.d.ts +4 -0
- package/app/index.html +1 -1
- package/app/index.js +1 -1
- package/files.tar +0 -0
- package/files_once.tar +0 -0
- package/package.json +20 -20
|
@@ -54234,8 +54234,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
54234
54234
|
/* harmony export */ "createConverter": () => (/* binding */ createConverter)
|
|
54235
54235
|
/* harmony export */ });
|
|
54236
54236
|
/* harmony import */ var _events__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./events */ "../../converters/piral-blazor/esm/events.js");
|
|
54237
|
-
/* harmony import */ var
|
|
54238
|
-
/* harmony import */ var
|
|
54237
|
+
/* harmony import */ var _interop__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./interop */ "../../converters/piral-blazor/esm/interop.js");
|
|
54238
|
+
/* harmony import */ var _infra_codegen__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../infra.codegen */ "../../converters/piral-blazor/infra.codegen");
|
|
54239
54239
|
|
|
54240
54240
|
|
|
54241
54241
|
|
|
@@ -54262,7 +54262,10 @@ function prefixMediaSources(component, prefix) {
|
|
|
54262
54262
|
}
|
|
54263
54263
|
|
|
54264
54264
|
function project(component, destination, options) {
|
|
54265
|
-
(options === null || options === void 0 ? void 0 : options.resourcePathRoot) &&
|
|
54265
|
+
if ((options === null || options === void 0 ? void 0 : options.resourcePathRoot) && !_infra_codegen__WEBPACK_IMPORTED_MODULE_0__["default"].noMutation) {
|
|
54266
|
+
prefixMediaSources(component, options.resourcePathRoot);
|
|
54267
|
+
}
|
|
54268
|
+
|
|
54266
54269
|
destination.appendChild(component);
|
|
54267
54270
|
}
|
|
54268
54271
|
|
|
@@ -54277,7 +54280,7 @@ function makeUrl(href) {
|
|
|
54277
54280
|
}
|
|
54278
54281
|
|
|
54279
54282
|
function createConverter(lazy) {
|
|
54280
|
-
const boot = (0,
|
|
54283
|
+
const boot = (0,_interop__WEBPACK_IMPORTED_MODULE_1__.createBootLoader)(_infra_codegen__WEBPACK_IMPORTED_MODULE_0__["default"].url, _infra_codegen__WEBPACK_IMPORTED_MODULE_0__["default"].satellites);
|
|
54281
54284
|
let loader = !lazy && boot();
|
|
54282
54285
|
let listener = undefined;
|
|
54283
54286
|
|
|
@@ -54304,7 +54307,7 @@ function createConverter(lazy) {
|
|
|
54304
54307
|
// POP is already handled by .NET
|
|
54305
54308
|
if (action !== 'POP') {
|
|
54306
54309
|
const url = makeUrl(location.href);
|
|
54307
|
-
(0,
|
|
54310
|
+
(0,_interop__WEBPACK_IMPORTED_MODULE_1__.callNotifyLocationChanged)(url, action === 'REPLACE');
|
|
54308
54311
|
}
|
|
54309
54312
|
});
|
|
54310
54313
|
}
|
|
@@ -54312,7 +54315,7 @@ function createConverter(lazy) {
|
|
|
54312
54315
|
locals.state = 'fresh';
|
|
54313
54316
|
locals.update = noop;
|
|
54314
54317
|
locals.dispose = (0,_events__WEBPACK_IMPORTED_MODULE_2__.attachEvents)(el, ev => data.piral.renderHtmlExtension(ev.detail.target, ev.detail.props), ev => ev.detail.replace ? nav.replace(ev.detail.to, ev.detail.store) : nav.push(ev.detail.to, ev.detail.state));
|
|
54315
|
-
(loader || (loader = boot())).then(root => dependency().then(() => (0,
|
|
54318
|
+
(loader || (loader = boot())).then(root => dependency().then(() => (0,_interop__WEBPACK_IMPORTED_MODULE_1__.activate)(moduleName, props)).then(refId => {
|
|
54316
54319
|
if (locals.state === 'fresh') {
|
|
54317
54320
|
locals.id = refId;
|
|
54318
54321
|
locals.node = root.querySelector(`#${locals.id} > div`);
|
|
@@ -54328,7 +54331,7 @@ function createConverter(lazy) {
|
|
|
54328
54331
|
update(el, data, ctx, locals) {
|
|
54329
54332
|
enqueueChange(locals, () => {
|
|
54330
54333
|
const props = Object.assign(Object.assign({}, args), data);
|
|
54331
|
-
(0,
|
|
54334
|
+
(0,_interop__WEBPACK_IMPORTED_MODULE_1__.reactivate)(moduleName, locals.referenceId, props);
|
|
54332
54335
|
});
|
|
54333
54336
|
},
|
|
54334
54337
|
|
|
@@ -54338,7 +54341,7 @@ function createConverter(lazy) {
|
|
|
54338
54341
|
locals.dispose();
|
|
54339
54342
|
enqueueChange(locals, root => {
|
|
54340
54343
|
root.querySelector(`#${locals.id}`).appendChild(locals.node);
|
|
54341
|
-
(0,
|
|
54344
|
+
(0,_interop__WEBPACK_IMPORTED_MODULE_1__.deactivate)(moduleName, locals.referenceId);
|
|
54342
54345
|
});
|
|
54343
54346
|
el.innerHTML = '';
|
|
54344
54347
|
locals.state = 'removed';
|
|
@@ -54441,7 +54444,7 @@ function createDependencyLoader(convert, lazy = true) {
|
|
|
54441
54444
|
const load = () => (0,tslib__WEBPACK_IMPORTED_MODULE_0__.__awaiter)(this, void 0, void 0, function* () {
|
|
54442
54445
|
for (const dllUrl of references) {
|
|
54443
54446
|
if (dllUrl.endsWith('.dll')) {
|
|
54444
|
-
const urlWithoutExtension = dllUrl.
|
|
54447
|
+
const urlWithoutExtension = dllUrl.substring(0, dllUrl.length - 4);
|
|
54445
54448
|
const pdbName = `${urlWithoutExtension}.pdb`;
|
|
54446
54449
|
const pdbUrl = references.find(m => m === pdbName);
|
|
54447
54450
|
|
|
@@ -54676,6 +54679,19 @@ function computePath() {
|
|
|
54676
54679
|
return '/';
|
|
54677
54680
|
}
|
|
54678
54681
|
|
|
54682
|
+
function addScript(url) {
|
|
54683
|
+
return new Promise((resolve, reject) => {
|
|
54684
|
+
const script = document.createElement('script');
|
|
54685
|
+
script.src = url;
|
|
54686
|
+
|
|
54687
|
+
script.onerror = () => reject();
|
|
54688
|
+
|
|
54689
|
+
script.onload = () => resolve();
|
|
54690
|
+
|
|
54691
|
+
document.body.appendChild(script);
|
|
54692
|
+
});
|
|
54693
|
+
}
|
|
54694
|
+
|
|
54679
54695
|
function activate(moduleName, props) {
|
|
54680
54696
|
return window.DotNet.invokeMethodAsync(coreLib, 'Activate', moduleName, props);
|
|
54681
54697
|
}
|
|
@@ -54719,11 +54735,12 @@ function initialize(scriptUrl, publicPath) {
|
|
|
54719
54735
|
document.body.appendChild(script);
|
|
54720
54736
|
});
|
|
54721
54737
|
}
|
|
54722
|
-
function createBootLoader(scriptUrl) {
|
|
54738
|
+
function createBootLoader(scriptUrl, satellites) {
|
|
54723
54739
|
const publicPath = computePath();
|
|
54724
54740
|
return () => {
|
|
54725
54741
|
if (typeof window.$blazorLoader === 'undefined') {
|
|
54726
|
-
|
|
54742
|
+
// we load all satellite scripts before we initialize blazor
|
|
54743
|
+
window.$blazorLoader = Promise.all(satellites.map(url => addScript(url))).then(() => initialize(scriptUrl, publicPath));
|
|
54727
54744
|
}
|
|
54728
54745
|
|
|
54729
54746
|
return window.$blazorLoader;
|
|
@@ -58597,193 +58614,921 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
58597
58614
|
/* harmony export */ "requireModule": () => (/* binding */ requireModule),
|
|
58598
58615
|
/* harmony export */ "unregisterModules": () => (/* binding */ unregisterModules)
|
|
58599
58616
|
/* harmony export */ });
|
|
58600
|
-
|
|
58601
|
-
|
|
58602
|
-
|
|
58603
|
-
|
|
58604
|
-
|
|
58617
|
+
// ../../../node_modules/systemjs/dist/system.js
|
|
58618
|
+
(function () {
|
|
58619
|
+
function errMsg(errCode, msg) {
|
|
58620
|
+
return (msg || "") + " (SystemJS Error#" + errCode + " https://git.io/JvFET#" + errCode + ")";
|
|
58621
|
+
}
|
|
58605
58622
|
|
|
58623
|
+
var hasSymbol = typeof Symbol !== "undefined";
|
|
58624
|
+
var hasSelf = typeof self !== "undefined";
|
|
58625
|
+
var hasDocument = typeof document !== "undefined";
|
|
58626
|
+
var envGlobal = hasSelf ? self : __webpack_require__.g;
|
|
58627
|
+
var baseUrl;
|
|
58606
58628
|
|
|
58629
|
+
if (hasDocument) {
|
|
58630
|
+
var baseEl = document.querySelector("base[href]");
|
|
58631
|
+
if (baseEl) baseUrl = baseEl.href;
|
|
58632
|
+
}
|
|
58607
58633
|
|
|
58608
|
-
|
|
58609
|
-
|
|
58634
|
+
if (!baseUrl && typeof location !== "undefined") {
|
|
58635
|
+
baseUrl = location.href.split("#")[0].split("?")[0];
|
|
58636
|
+
var lastSepIndex = baseUrl.lastIndexOf("/");
|
|
58637
|
+
if (lastSepIndex !== -1) baseUrl = baseUrl.slice(0, lastSepIndex + 1);
|
|
58638
|
+
}
|
|
58610
58639
|
|
|
58611
|
-
|
|
58612
|
-
return [...System.entries()].filter(([name]) => name.startsWith(prefix)).map(([name]) => name.substring(prefix.length));
|
|
58613
|
-
}
|
|
58640
|
+
var backslashRegEx = /\\/g;
|
|
58614
58641
|
|
|
58615
|
-
function
|
|
58616
|
-
|
|
58642
|
+
function resolveIfNotPlainOrUrl(relUrl, parentUrl) {
|
|
58643
|
+
if (relUrl.indexOf("\\") !== -1) relUrl = relUrl.replace(backslashRegEx, "/");
|
|
58617
58644
|
|
|
58618
|
-
|
|
58619
|
-
|
|
58620
|
-
|
|
58621
|
-
|
|
58645
|
+
if (relUrl[0] === "/" && relUrl[1] === "/") {
|
|
58646
|
+
return parentUrl.slice(0, parentUrl.indexOf(":") + 1) + relUrl;
|
|
58647
|
+
} else if (relUrl[0] === "." && (relUrl[1] === "/" || relUrl[1] === "." && (relUrl[2] === "/" || relUrl.length === 2 && (relUrl += "/")) || relUrl.length === 1 && (relUrl += "/")) || relUrl[0] === "/") {
|
|
58648
|
+
var parentProtocol = parentUrl.slice(0, parentUrl.indexOf(":") + 1);
|
|
58649
|
+
var pathname;
|
|
58622
58650
|
|
|
58623
|
-
|
|
58624
|
-
|
|
58625
|
-
|
|
58651
|
+
if (parentUrl[parentProtocol.length + 1] === "/") {
|
|
58652
|
+
if (parentProtocol !== "file:") {
|
|
58653
|
+
pathname = parentUrl.slice(parentProtocol.length + 2);
|
|
58654
|
+
pathname = pathname.slice(pathname.indexOf("/") + 1);
|
|
58655
|
+
} else {
|
|
58656
|
+
pathname = parentUrl.slice(8);
|
|
58657
|
+
}
|
|
58658
|
+
} else {
|
|
58659
|
+
pathname = parentUrl.slice(parentProtocol.length + (parentUrl[parentProtocol.length] === "/"));
|
|
58660
|
+
}
|
|
58626
58661
|
|
|
58627
|
-
|
|
58662
|
+
if (relUrl[0] === "/") return parentUrl.slice(0, parentUrl.length - pathname.length - 1) + relUrl;
|
|
58663
|
+
var segmented = pathname.slice(0, pathname.lastIndexOf("/") + 1) + relUrl;
|
|
58664
|
+
var output = [];
|
|
58665
|
+
var segmentIndex = -1;
|
|
58628
58666
|
|
|
58629
|
-
for (
|
|
58630
|
-
if (
|
|
58631
|
-
|
|
58667
|
+
for (var i = 0; i < segmented.length; i++) {
|
|
58668
|
+
if (segmentIndex !== -1) {
|
|
58669
|
+
if (segmented[i] === "/") {
|
|
58670
|
+
output.push(segmented.slice(segmentIndex, i + 1));
|
|
58671
|
+
segmentIndex = -1;
|
|
58672
|
+
}
|
|
58673
|
+
} else if (segmented[i] === ".") {
|
|
58674
|
+
if (segmented[i + 1] === "." && (segmented[i + 2] === "/" || i + 2 === segmented.length)) {
|
|
58675
|
+
output.pop();
|
|
58676
|
+
i += 2;
|
|
58677
|
+
} else if (segmented[i + 1] === "/" || i + 1 === segmented.length) {
|
|
58678
|
+
i += 1;
|
|
58679
|
+
} else {
|
|
58680
|
+
segmentIndex = i;
|
|
58681
|
+
}
|
|
58682
|
+
} else {
|
|
58683
|
+
segmentIndex = i;
|
|
58632
58684
|
}
|
|
58633
58685
|
}
|
|
58686
|
+
|
|
58687
|
+
if (segmentIndex !== -1) output.push(segmented.slice(segmentIndex));
|
|
58688
|
+
return parentUrl.slice(0, parentUrl.length - pathname.length) + output.join("");
|
|
58634
58689
|
}
|
|
58635
58690
|
}
|
|
58636
58691
|
|
|
58637
|
-
|
|
58638
|
-
|
|
58692
|
+
function resolveUrl(relUrl, parentUrl) {
|
|
58693
|
+
return resolveIfNotPlainOrUrl(relUrl, parentUrl) || (relUrl.indexOf(":") !== -1 ? relUrl : resolveIfNotPlainOrUrl("./" + relUrl, parentUrl));
|
|
58694
|
+
}
|
|
58639
58695
|
|
|
58640
|
-
function
|
|
58641
|
-
|
|
58642
|
-
|
|
58643
|
-
|
|
58644
|
-
|
|
58645
|
-
|
|
58696
|
+
function resolveAndComposePackages(packages, outPackages, baseUrl2, parentMap, parentUrl) {
|
|
58697
|
+
for (var p in packages) {
|
|
58698
|
+
var resolvedLhs = resolveIfNotPlainOrUrl(p, baseUrl2) || p;
|
|
58699
|
+
var rhs = packages[p];
|
|
58700
|
+
if (typeof rhs !== "string") continue;
|
|
58701
|
+
var mapped = resolveImportMap(parentMap, resolveIfNotPlainOrUrl(rhs, baseUrl2) || rhs, parentUrl);
|
|
58702
|
+
|
|
58703
|
+
if (!mapped) {
|
|
58704
|
+
targetWarning("W1", p, rhs, "bare specifier did not resolve");
|
|
58705
|
+
} else outPackages[resolvedLhs] = mapped;
|
|
58706
|
+
}
|
|
58646
58707
|
}
|
|
58647
|
-
}
|
|
58648
58708
|
|
|
58649
|
-
function
|
|
58650
|
-
|
|
58651
|
-
|
|
58652
|
-
}
|
|
58709
|
+
function resolveAndComposeImportMap(json, baseUrl2, outMap) {
|
|
58710
|
+
if (json.imports) resolveAndComposePackages(json.imports, outMap.imports, baseUrl2, outMap, null);
|
|
58711
|
+
var u;
|
|
58653
58712
|
|
|
58654
|
-
|
|
58655
|
-
|
|
58656
|
-
|
|
58657
|
-
|
|
58658
|
-
const result = findMatchingPackage(id);
|
|
58713
|
+
for (u in json.scopes || {}) {
|
|
58714
|
+
var resolvedScope = resolveUrl(u, baseUrl2);
|
|
58715
|
+
resolveAndComposePackages(json.scopes[u], outMap.scopes[resolvedScope] || (outMap.scopes[resolvedScope] = {}), baseUrl2, outMap, resolvedScope);
|
|
58716
|
+
}
|
|
58659
58717
|
|
|
58660
|
-
|
|
58661
|
-
|
|
58718
|
+
for (u in json.depcache || {}) outMap.depcache[resolveUrl(u, baseUrl2)] = json.depcache[u];
|
|
58719
|
+
|
|
58720
|
+
for (u in json.integrity || {}) outMap.integrity[resolveUrl(u, baseUrl2)] = json.integrity[u];
|
|
58721
|
+
}
|
|
58722
|
+
|
|
58723
|
+
function getMatch(path, matchObj) {
|
|
58724
|
+
if (matchObj[path]) return path;
|
|
58725
|
+
var sepIndex = path.length;
|
|
58726
|
+
|
|
58727
|
+
do {
|
|
58728
|
+
var segment = path.slice(0, sepIndex + 1);
|
|
58729
|
+
if (segment in matchObj) return segment;
|
|
58730
|
+
} while ((sepIndex = path.lastIndexOf("/", sepIndex - 1)) !== -1);
|
|
58731
|
+
}
|
|
58732
|
+
|
|
58733
|
+
function applyPackages(id, packages) {
|
|
58734
|
+
var pkgName = getMatch(id, packages);
|
|
58735
|
+
|
|
58736
|
+
if (pkgName) {
|
|
58737
|
+
var pkg = packages[pkgName];
|
|
58738
|
+
if (pkg === null) return;
|
|
58739
|
+
|
|
58740
|
+
if (id.length > pkgName.length && pkg[pkg.length - 1] !== "/") {
|
|
58741
|
+
targetWarning("W2", pkgName, pkg, "should have a trailing '/'");
|
|
58742
|
+
} else return pkg + id.slice(pkgName.length);
|
|
58662
58743
|
}
|
|
58744
|
+
}
|
|
58663
58745
|
|
|
58664
|
-
|
|
58746
|
+
function targetWarning(code, match, target, msg) {
|
|
58747
|
+
console.warn(errMsg(code, "Package target " + msg + ", resolving target '" + target + "' for " + match));
|
|
58665
58748
|
}
|
|
58666
|
-
};
|
|
58667
58749
|
|
|
58668
|
-
|
|
58669
|
-
|
|
58670
|
-
|
|
58671
|
-
const exp = (...p) => {
|
|
58672
|
-
if (p.length === 1) {
|
|
58673
|
-
const content = p[0];
|
|
58750
|
+
function resolveImportMap(importMap2, resolvedOrPlain, parentUrl) {
|
|
58751
|
+
var scopes = importMap2.scopes;
|
|
58752
|
+
var scopeUrl = parentUrl && getMatch(parentUrl, scopes);
|
|
58674
58753
|
|
|
58675
|
-
|
|
58676
|
-
|
|
58677
|
-
|
|
58678
|
-
|
|
58754
|
+
while (scopeUrl) {
|
|
58755
|
+
var packageResolution = applyPackages(resolvedOrPlain, scopes[scopeUrl]);
|
|
58756
|
+
if (packageResolution) return packageResolution;
|
|
58757
|
+
scopeUrl = getMatch(scopeUrl.slice(0, scopeUrl.lastIndexOf("/")), scopes);
|
|
58758
|
+
}
|
|
58679
58759
|
|
|
58680
|
-
|
|
58681
|
-
|
|
58682
|
-
});
|
|
58760
|
+
return applyPackages(resolvedOrPlain, importMap2.imports) || resolvedOrPlain.indexOf(":") !== -1 && resolvedOrPlain;
|
|
58761
|
+
}
|
|
58683
58762
|
|
|
58684
|
-
|
|
58685
|
-
|
|
58686
|
-
_export('__esModule', true);
|
|
58763
|
+
var toStringTag$1 = hasSymbol && Symbol.toStringTag;
|
|
58764
|
+
var REGISTRY = hasSymbol ? Symbol() : "@";
|
|
58687
58765
|
|
|
58688
|
-
|
|
58689
|
-
|
|
58690
|
-
|
|
58766
|
+
function SystemJS() {
|
|
58767
|
+
this[REGISTRY] = {};
|
|
58768
|
+
}
|
|
58691
58769
|
|
|
58692
|
-
|
|
58693
|
-
|
|
58770
|
+
var systemJSPrototype = SystemJS.prototype;
|
|
58771
|
+
|
|
58772
|
+
systemJSPrototype.import = function (id, parentUrl) {
|
|
58773
|
+
var loader = this;
|
|
58774
|
+
return Promise.resolve(loader.prepareImport()).then(function () {
|
|
58775
|
+
return loader.resolve(id, parentUrl);
|
|
58776
|
+
}).then(function (id2) {
|
|
58777
|
+
var load = getOrCreateLoad(loader, id2);
|
|
58778
|
+
return load.C || topLevelLoad(loader, load);
|
|
58779
|
+
});
|
|
58780
|
+
};
|
|
58781
|
+
|
|
58782
|
+
systemJSPrototype.createContext = function (parentId) {
|
|
58783
|
+
var loader = this;
|
|
58784
|
+
return {
|
|
58785
|
+
url: parentId,
|
|
58786
|
+
resolve: function (id, parentUrl) {
|
|
58787
|
+
return Promise.resolve(loader.resolve(id, parentUrl || parentId));
|
|
58788
|
+
}
|
|
58789
|
+
};
|
|
58790
|
+
};
|
|
58791
|
+
|
|
58792
|
+
systemJSPrototype.onload = function () {};
|
|
58793
|
+
|
|
58794
|
+
function loadToId(load) {
|
|
58795
|
+
return load.id;
|
|
58796
|
+
}
|
|
58797
|
+
|
|
58798
|
+
function triggerOnload(loader, load, err, isErrSource) {
|
|
58799
|
+
loader.onload(err, load.id, load.d && load.d.map(loadToId), !!isErrSource);
|
|
58800
|
+
if (err) throw err;
|
|
58801
|
+
}
|
|
58802
|
+
|
|
58803
|
+
var lastRegister;
|
|
58804
|
+
|
|
58805
|
+
systemJSPrototype.register = function (deps, declare) {
|
|
58806
|
+
lastRegister = [deps, declare];
|
|
58807
|
+
};
|
|
58808
|
+
|
|
58809
|
+
systemJSPrototype.getRegister = function () {
|
|
58810
|
+
var _lastRegister = lastRegister;
|
|
58811
|
+
lastRegister = void 0;
|
|
58812
|
+
return _lastRegister;
|
|
58813
|
+
};
|
|
58814
|
+
|
|
58815
|
+
function getOrCreateLoad(loader, id, firstParentUrl) {
|
|
58816
|
+
var load = loader[REGISTRY][id];
|
|
58817
|
+
if (load) return load;
|
|
58818
|
+
var importerSetters = [];
|
|
58819
|
+
var ns = Object.create(null);
|
|
58820
|
+
if (toStringTag$1) Object.defineProperty(ns, toStringTag$1, {
|
|
58821
|
+
value: "Module"
|
|
58822
|
+
});
|
|
58823
|
+
var instantiatePromise = Promise.resolve().then(function () {
|
|
58824
|
+
return loader.instantiate(id, firstParentUrl);
|
|
58825
|
+
}).then(function (registration) {
|
|
58826
|
+
if (!registration) throw Error(errMsg(2, "Module " + id + " did not instantiate"));
|
|
58827
|
+
|
|
58828
|
+
function _export(name, value) {
|
|
58829
|
+
load.h = true;
|
|
58830
|
+
var changed = false;
|
|
58831
|
+
|
|
58832
|
+
if (typeof name === "string") {
|
|
58833
|
+
if (!(name in ns) || ns[name] !== value) {
|
|
58834
|
+
ns[name] = value;
|
|
58835
|
+
changed = true;
|
|
58836
|
+
}
|
|
58837
|
+
} else {
|
|
58838
|
+
for (var p in name) {
|
|
58839
|
+
var value = name[p];
|
|
58840
|
+
|
|
58841
|
+
if (!(p in ns) || ns[p] !== value) {
|
|
58842
|
+
ns[p] = value;
|
|
58843
|
+
changed = true;
|
|
58844
|
+
}
|
|
58845
|
+
}
|
|
58846
|
+
|
|
58847
|
+
if (name && name.__esModule) {
|
|
58848
|
+
ns.__esModule = name.__esModule;
|
|
58694
58849
|
}
|
|
58695
58850
|
}
|
|
58696
|
-
|
|
58697
|
-
|
|
58851
|
+
|
|
58852
|
+
if (changed) for (var i = 0; i < importerSetters.length; i++) {
|
|
58853
|
+
var setter = importerSetters[i];
|
|
58854
|
+
if (setter) setter(ns);
|
|
58855
|
+
}
|
|
58856
|
+
return value;
|
|
58698
58857
|
}
|
|
58858
|
+
|
|
58859
|
+
var declared = registration[1](_export, registration[1].length === 2 ? {
|
|
58860
|
+
import: function (importId) {
|
|
58861
|
+
return loader.import(importId, id);
|
|
58862
|
+
},
|
|
58863
|
+
meta: loader.createContext(id)
|
|
58864
|
+
} : void 0);
|
|
58865
|
+
|
|
58866
|
+
load.e = declared.execute || function () {};
|
|
58867
|
+
|
|
58868
|
+
return [registration[0], declared.setters || []];
|
|
58869
|
+
}, function (err) {
|
|
58870
|
+
load.e = null;
|
|
58871
|
+
load.er = err;
|
|
58872
|
+
triggerOnload(loader, load, err, true);
|
|
58873
|
+
throw err;
|
|
58874
|
+
});
|
|
58875
|
+
var linkPromise = instantiatePromise.then(function (instantiation) {
|
|
58876
|
+
return Promise.all(instantiation[0].map(function (dep, i) {
|
|
58877
|
+
var setter = instantiation[1][i];
|
|
58878
|
+
return Promise.resolve(loader.resolve(dep, id)).then(function (depId) {
|
|
58879
|
+
var depLoad = getOrCreateLoad(loader, depId, id);
|
|
58880
|
+
return Promise.resolve(depLoad.I).then(function () {
|
|
58881
|
+
if (setter) {
|
|
58882
|
+
depLoad.i.push(setter);
|
|
58883
|
+
if (depLoad.h || !depLoad.I) setter(depLoad.n);
|
|
58884
|
+
}
|
|
58885
|
+
|
|
58886
|
+
return depLoad;
|
|
58887
|
+
});
|
|
58888
|
+
});
|
|
58889
|
+
})).then(function (depLoads) {
|
|
58890
|
+
load.d = depLoads;
|
|
58891
|
+
});
|
|
58892
|
+
});
|
|
58893
|
+
return load = loader[REGISTRY][id] = {
|
|
58894
|
+
id,
|
|
58895
|
+
i: importerSetters,
|
|
58896
|
+
n: ns,
|
|
58897
|
+
I: instantiatePromise,
|
|
58898
|
+
L: linkPromise,
|
|
58899
|
+
h: false,
|
|
58900
|
+
d: void 0,
|
|
58901
|
+
e: void 0,
|
|
58902
|
+
er: void 0,
|
|
58903
|
+
E: void 0,
|
|
58904
|
+
C: void 0,
|
|
58905
|
+
p: void 0
|
|
58699
58906
|
};
|
|
58907
|
+
}
|
|
58700
58908
|
|
|
58701
|
-
|
|
58702
|
-
|
|
58703
|
-
|
|
58704
|
-
|
|
58705
|
-
|
|
58706
|
-
|
|
58707
|
-
|
|
58708
|
-
|
|
58709
|
-
|
|
58909
|
+
function instantiateAll(loader, load, parent, loaded) {
|
|
58910
|
+
if (!loaded[load.id]) {
|
|
58911
|
+
loaded[load.id] = true;
|
|
58912
|
+
return Promise.resolve(load.L).then(function () {
|
|
58913
|
+
if (!load.p || load.p.e === null) load.p = parent;
|
|
58914
|
+
return Promise.all(load.d.map(function (dep) {
|
|
58915
|
+
return instantiateAll(loader, dep, parent, loaded);
|
|
58916
|
+
}));
|
|
58917
|
+
}).catch(function (err) {
|
|
58918
|
+
if (load.er) throw err;
|
|
58919
|
+
load.e = null;
|
|
58920
|
+
triggerOnload(loader, load, err, false);
|
|
58921
|
+
throw err;
|
|
58922
|
+
});
|
|
58923
|
+
}
|
|
58924
|
+
}
|
|
58925
|
+
|
|
58926
|
+
function topLevelLoad(loader, load) {
|
|
58927
|
+
return load.C = instantiateAll(loader, load, load, {}).then(function () {
|
|
58928
|
+
return postOrderExec(loader, load, {});
|
|
58929
|
+
}).then(function () {
|
|
58930
|
+
return load.n;
|
|
58931
|
+
});
|
|
58932
|
+
}
|
|
58710
58933
|
|
|
58934
|
+
var nullContext = Object.freeze(Object.create(null));
|
|
58711
58935
|
|
|
58712
|
-
function
|
|
58713
|
-
|
|
58714
|
-
|
|
58715
|
-
return Promise.all(moduleNames.map(name => System.import(name)));
|
|
58716
|
-
}
|
|
58717
|
-
/**
|
|
58718
|
-
* Registers a plain module in SystemJS.
|
|
58719
|
-
* @param name The name of the module
|
|
58720
|
-
* @param resolve The resolver for the module's content.
|
|
58721
|
-
*/
|
|
58936
|
+
function postOrderExec(loader, load, seen) {
|
|
58937
|
+
if (seen[load.id]) return;
|
|
58938
|
+
seen[load.id] = true;
|
|
58722
58939
|
|
|
58723
|
-
|
|
58724
|
-
|
|
58725
|
-
|
|
58726
|
-
|
|
58940
|
+
if (!load.e) {
|
|
58941
|
+
if (load.er) throw load.er;
|
|
58942
|
+
if (load.E) return load.E;
|
|
58943
|
+
return;
|
|
58944
|
+
}
|
|
58727
58945
|
|
|
58728
|
-
|
|
58729
|
-
|
|
58730
|
-
|
|
58731
|
-
|
|
58946
|
+
var depLoadPromises;
|
|
58947
|
+
load.d.forEach(function (depLoad) {
|
|
58948
|
+
try {
|
|
58949
|
+
var depLoadPromise = postOrderExec(loader, depLoad, seen);
|
|
58950
|
+
if (depLoadPromise) (depLoadPromises = depLoadPromises || []).push(depLoadPromise);
|
|
58951
|
+
} catch (err) {
|
|
58952
|
+
load.e = null;
|
|
58953
|
+
load.er = err;
|
|
58954
|
+
triggerOnload(loader, load, err, false);
|
|
58955
|
+
throw err;
|
|
58956
|
+
}
|
|
58957
|
+
});
|
|
58958
|
+
if (depLoadPromises) return Promise.all(depLoadPromises).then(doExec);
|
|
58959
|
+
return doExec();
|
|
58960
|
+
|
|
58961
|
+
function doExec() {
|
|
58962
|
+
try {
|
|
58963
|
+
var execPromise = load.e.call(nullContext);
|
|
58964
|
+
|
|
58965
|
+
if (execPromise) {
|
|
58966
|
+
execPromise = execPromise.then(function () {
|
|
58967
|
+
load.C = load.n;
|
|
58968
|
+
load.E = null;
|
|
58969
|
+
if (true) triggerOnload(loader, load, null, true);
|
|
58970
|
+
}, function (err) {
|
|
58971
|
+
load.er = err;
|
|
58972
|
+
load.E = null;
|
|
58973
|
+
if (true) triggerOnload(loader, load, err, true);
|
|
58974
|
+
throw err;
|
|
58975
|
+
});
|
|
58976
|
+
return load.E = execPromise;
|
|
58977
|
+
}
|
|
58978
|
+
|
|
58979
|
+
load.C = load.n;
|
|
58980
|
+
load.L = load.I = void 0;
|
|
58981
|
+
} catch (err) {
|
|
58982
|
+
load.er = err;
|
|
58983
|
+
throw err;
|
|
58984
|
+
} finally {
|
|
58985
|
+
load.e = null;
|
|
58986
|
+
triggerOnload(loader, load, load.er, true);
|
|
58732
58987
|
}
|
|
58733
58988
|
}
|
|
58989
|
+
}
|
|
58734
58990
|
|
|
58735
|
-
|
|
58736
|
-
|
|
58737
|
-
|
|
58738
|
-
|
|
58739
|
-
|
|
58740
|
-
|
|
58741
|
-
|
|
58991
|
+
envGlobal.System = new SystemJS();
|
|
58992
|
+
var importMapPromise = Promise.resolve();
|
|
58993
|
+
var importMap = {
|
|
58994
|
+
imports: {},
|
|
58995
|
+
scopes: {},
|
|
58996
|
+
depcache: {},
|
|
58997
|
+
integrity: {}
|
|
58998
|
+
};
|
|
58999
|
+
var processFirst = hasDocument;
|
|
58742
59000
|
|
|
58743
|
-
function
|
|
58744
|
-
|
|
58745
|
-
|
|
58746
|
-
|
|
58747
|
-
|
|
58748
|
-
* @param name The name of the module to obtain
|
|
58749
|
-
* @returns The module's content, if any, otherwise throws an error.
|
|
58750
|
-
*/
|
|
59001
|
+
systemJSPrototype.prepareImport = function (doProcessScripts) {
|
|
59002
|
+
if (processFirst || doProcessScripts) {
|
|
59003
|
+
processScripts();
|
|
59004
|
+
processFirst = false;
|
|
59005
|
+
}
|
|
58751
59006
|
|
|
58752
|
-
|
|
58753
|
-
|
|
58754
|
-
const dependency = moduleId && System.get(moduleId);
|
|
59007
|
+
return importMapPromise;
|
|
59008
|
+
};
|
|
58755
59009
|
|
|
58756
|
-
if (
|
|
58757
|
-
|
|
58758
|
-
|
|
58759
|
-
throw error;
|
|
59010
|
+
if (hasDocument) {
|
|
59011
|
+
processScripts();
|
|
59012
|
+
window.addEventListener("DOMContentLoaded", processScripts);
|
|
58760
59013
|
}
|
|
58761
59014
|
|
|
58762
|
-
|
|
58763
|
-
|
|
59015
|
+
function processScripts() {
|
|
59016
|
+
[].forEach.call(document.querySelectorAll("script"), function (script) {
|
|
59017
|
+
if (script.sp) return;
|
|
58764
59018
|
|
|
58765
|
-
|
|
59019
|
+
if (script.type === "systemjs-module") {
|
|
59020
|
+
script.sp = true;
|
|
59021
|
+
if (!script.src) return;
|
|
59022
|
+
System.import(script.src.slice(0, 7) === "import:" ? script.src.slice(7) : resolveUrl(script.src, baseUrl)).catch(function (e) {
|
|
59023
|
+
if (e.message.indexOf("https://git.io/JvFET#3") > -1) {
|
|
59024
|
+
var event = document.createEvent("Event");
|
|
59025
|
+
event.initEvent("error", false, false);
|
|
59026
|
+
script.dispatchEvent(event);
|
|
59027
|
+
}
|
|
58766
59028
|
|
|
58767
|
-
|
|
58768
|
-
|
|
58769
|
-
|
|
58770
|
-
|
|
58771
|
-
|
|
59029
|
+
return Promise.reject(e);
|
|
59030
|
+
});
|
|
59031
|
+
} else if (script.type === "systemjs-importmap") {
|
|
59032
|
+
script.sp = true;
|
|
59033
|
+
var fetchPromise = script.src ? (System.fetch || fetch)(script.src, {
|
|
59034
|
+
integrity: script.integrity,
|
|
59035
|
+
passThrough: true
|
|
59036
|
+
}).then(function (res) {
|
|
59037
|
+
if (!res.ok) throw Error("Invalid status code: " + res.status);
|
|
59038
|
+
return res.text();
|
|
59039
|
+
}).catch(function (err) {
|
|
59040
|
+
err.message = errMsg("W4", "Error fetching systemjs-import map " + script.src) + "\n" + err.message;
|
|
59041
|
+
console.warn(err);
|
|
58772
59042
|
|
|
58773
|
-
"
|
|
58774
|
-
|
|
58775
|
-
|
|
58776
|
-
|
|
58777
|
-
|
|
58778
|
-
|
|
58779
|
-
|
|
58780
|
-
|
|
58781
|
-
|
|
58782
|
-
|
|
58783
|
-
|
|
58784
|
-
|
|
58785
|
-
|
|
58786
|
-
|
|
59043
|
+
if (typeof script.onerror === "function") {
|
|
59044
|
+
script.onerror();
|
|
59045
|
+
}
|
|
59046
|
+
|
|
59047
|
+
return "{}";
|
|
59048
|
+
}) : script.innerHTML;
|
|
59049
|
+
importMapPromise = importMapPromise.then(function () {
|
|
59050
|
+
return fetchPromise;
|
|
59051
|
+
}).then(function (text) {
|
|
59052
|
+
extendImportMap(importMap, text, script.src || baseUrl);
|
|
59053
|
+
});
|
|
59054
|
+
}
|
|
59055
|
+
});
|
|
59056
|
+
}
|
|
59057
|
+
|
|
59058
|
+
function extendImportMap(importMap2, newMapText, newMapUrl) {
|
|
59059
|
+
var newMap = {};
|
|
59060
|
+
|
|
59061
|
+
try {
|
|
59062
|
+
newMap = JSON.parse(newMapText);
|
|
59063
|
+
} catch (err) {
|
|
59064
|
+
console.warn(Error(errMsg("W5", "systemjs-importmap contains invalid JSON") + "\n\n" + newMapText + "\n"));
|
|
59065
|
+
}
|
|
59066
|
+
|
|
59067
|
+
resolveAndComposeImportMap(newMap, newMapUrl, importMap2);
|
|
59068
|
+
}
|
|
59069
|
+
|
|
59070
|
+
if (hasDocument) {
|
|
59071
|
+
window.addEventListener("error", function (evt) {
|
|
59072
|
+
lastWindowErrorUrl = evt.filename;
|
|
59073
|
+
lastWindowError = evt.error;
|
|
59074
|
+
});
|
|
59075
|
+
var baseOrigin = location.origin;
|
|
59076
|
+
}
|
|
59077
|
+
|
|
59078
|
+
systemJSPrototype.createScript = function (url) {
|
|
59079
|
+
var script = document.createElement("script");
|
|
59080
|
+
script.async = true;
|
|
59081
|
+
if (url.indexOf(baseOrigin + "/")) script.crossOrigin = "anonymous";
|
|
59082
|
+
var integrity = importMap.integrity[url];
|
|
59083
|
+
if (integrity) script.integrity = integrity;
|
|
59084
|
+
script.src = url;
|
|
59085
|
+
return script;
|
|
59086
|
+
};
|
|
59087
|
+
|
|
59088
|
+
var lastAutoImportDeps, lastAutoImportTimeout;
|
|
59089
|
+
var autoImportCandidates = {};
|
|
59090
|
+
var systemRegister2 = systemJSPrototype.register;
|
|
59091
|
+
|
|
59092
|
+
systemJSPrototype.register = function (deps, declare) {
|
|
59093
|
+
if (hasDocument && document.readyState === "loading" && typeof deps !== "string") {
|
|
59094
|
+
var scripts = document.querySelectorAll("script[src]");
|
|
59095
|
+
var lastScript = scripts[scripts.length - 1];
|
|
59096
|
+
|
|
59097
|
+
if (lastScript) {
|
|
59098
|
+
lastAutoImportDeps = deps;
|
|
59099
|
+
var loader = this;
|
|
59100
|
+
lastAutoImportTimeout = setTimeout(function () {
|
|
59101
|
+
autoImportCandidates[lastScript.src] = [deps, declare];
|
|
59102
|
+
loader.import(lastScript.src);
|
|
59103
|
+
});
|
|
59104
|
+
}
|
|
59105
|
+
} else {
|
|
59106
|
+
lastAutoImportDeps = void 0;
|
|
59107
|
+
}
|
|
59108
|
+
|
|
59109
|
+
return systemRegister2.call(this, deps, declare);
|
|
59110
|
+
};
|
|
59111
|
+
|
|
59112
|
+
var lastWindowErrorUrl, lastWindowError;
|
|
59113
|
+
|
|
59114
|
+
systemJSPrototype.instantiate = function (url, firstParentUrl) {
|
|
59115
|
+
var autoImportRegistration = autoImportCandidates[url];
|
|
59116
|
+
|
|
59117
|
+
if (autoImportRegistration) {
|
|
59118
|
+
delete autoImportCandidates[url];
|
|
59119
|
+
return autoImportRegistration;
|
|
59120
|
+
}
|
|
59121
|
+
|
|
59122
|
+
var loader = this;
|
|
59123
|
+
return Promise.resolve(systemJSPrototype.createScript(url)).then(function (script) {
|
|
59124
|
+
return new Promise(function (resolve, reject) {
|
|
59125
|
+
script.addEventListener("error", function () {
|
|
59126
|
+
reject(Error(errMsg(3, "Error loading " + url + (firstParentUrl ? " from " + firstParentUrl : ""))));
|
|
59127
|
+
});
|
|
59128
|
+
script.addEventListener("load", function () {
|
|
59129
|
+
document.head.removeChild(script);
|
|
59130
|
+
|
|
59131
|
+
if (lastWindowErrorUrl === url) {
|
|
59132
|
+
reject(lastWindowError);
|
|
59133
|
+
} else {
|
|
59134
|
+
var register = loader.getRegister(url);
|
|
59135
|
+
if (register && register[0] === lastAutoImportDeps) clearTimeout(lastAutoImportTimeout);
|
|
59136
|
+
resolve(register);
|
|
59137
|
+
}
|
|
59138
|
+
});
|
|
59139
|
+
document.head.appendChild(script);
|
|
59140
|
+
});
|
|
59141
|
+
});
|
|
59142
|
+
};
|
|
59143
|
+
|
|
59144
|
+
systemJSPrototype.shouldFetch = function () {
|
|
59145
|
+
return false;
|
|
59146
|
+
};
|
|
59147
|
+
|
|
59148
|
+
if (typeof fetch !== "undefined") systemJSPrototype.fetch = fetch;
|
|
59149
|
+
var instantiate = systemJSPrototype.instantiate;
|
|
59150
|
+
var jsContentTypeRegEx = /^(text|application)\/(x-)?javascript(;|$)/;
|
|
59151
|
+
|
|
59152
|
+
systemJSPrototype.instantiate = function (url, parent) {
|
|
59153
|
+
var loader = this;
|
|
59154
|
+
if (!this.shouldFetch(url)) return instantiate.apply(this, arguments);
|
|
59155
|
+
return this.fetch(url, {
|
|
59156
|
+
credentials: "same-origin",
|
|
59157
|
+
integrity: importMap.integrity[url]
|
|
59158
|
+
}).then(function (res) {
|
|
59159
|
+
if (!res.ok) throw Error(errMsg(7, res.status + " " + res.statusText + ", loading " + url + (parent ? " from " + parent : "")));
|
|
59160
|
+
var contentType = res.headers.get("content-type");
|
|
59161
|
+
if (!contentType || !jsContentTypeRegEx.test(contentType)) throw Error(errMsg(4, 'Unknown Content-Type "' + contentType + '", loading ' + url + (parent ? " from " + parent : "")));
|
|
59162
|
+
return res.text().then(function (source) {
|
|
59163
|
+
if (source.indexOf("//# sourceURL=") < 0) source += "\n//# sourceURL=" + url;
|
|
59164
|
+
(0, eval)(source);
|
|
59165
|
+
return loader.getRegister(url);
|
|
59166
|
+
});
|
|
59167
|
+
});
|
|
59168
|
+
};
|
|
59169
|
+
|
|
59170
|
+
systemJSPrototype.resolve = function (id, parentUrl) {
|
|
59171
|
+
parentUrl = parentUrl || false || baseUrl;
|
|
59172
|
+
return resolveImportMap(importMap, resolveIfNotPlainOrUrl(id, parentUrl) || id, parentUrl) || throwUnresolved(id, parentUrl);
|
|
59173
|
+
};
|
|
59174
|
+
|
|
59175
|
+
function throwUnresolved(id, parentUrl) {
|
|
59176
|
+
throw Error(errMsg(8, "Unable to resolve bare specifier '" + id + (parentUrl ? "' from " + parentUrl : "'")));
|
|
59177
|
+
}
|
|
59178
|
+
|
|
59179
|
+
var systemInstantiate = systemJSPrototype.instantiate;
|
|
59180
|
+
|
|
59181
|
+
systemJSPrototype.instantiate = function (url, firstParentUrl) {
|
|
59182
|
+
var preloads = importMap.depcache[url];
|
|
59183
|
+
|
|
59184
|
+
if (preloads) {
|
|
59185
|
+
for (var i = 0; i < preloads.length; i++) getOrCreateLoad(this, this.resolve(preloads[i], url), url);
|
|
59186
|
+
}
|
|
59187
|
+
|
|
59188
|
+
return systemInstantiate.call(this, url, firstParentUrl);
|
|
59189
|
+
};
|
|
59190
|
+
|
|
59191
|
+
if (hasSelf && typeof importScripts === "function") systemJSPrototype.instantiate = function (url) {
|
|
59192
|
+
var loader = this;
|
|
59193
|
+
return Promise.resolve().then(function () {
|
|
59194
|
+
importScripts(url);
|
|
59195
|
+
return loader.getRegister(url);
|
|
59196
|
+
});
|
|
59197
|
+
};
|
|
59198
|
+
|
|
59199
|
+
(function (global2) {
|
|
59200
|
+
var systemJSPrototype2 = global2.System.constructor.prototype;
|
|
59201
|
+
var firstGlobalProp, secondGlobalProp, lastGlobalProp;
|
|
59202
|
+
|
|
59203
|
+
function getGlobalProp(useFirstGlobalProp) {
|
|
59204
|
+
var cnt = 0;
|
|
59205
|
+
var foundLastProp, result;
|
|
59206
|
+
|
|
59207
|
+
for (var p in global2) {
|
|
59208
|
+
if (shouldSkipProperty(p)) continue;
|
|
59209
|
+
if (cnt === 0 && p !== firstGlobalProp || cnt === 1 && p !== secondGlobalProp) return p;
|
|
59210
|
+
|
|
59211
|
+
if (foundLastProp) {
|
|
59212
|
+
lastGlobalProp = p;
|
|
59213
|
+
result = useFirstGlobalProp && result || p;
|
|
59214
|
+
} else {
|
|
59215
|
+
foundLastProp = p === lastGlobalProp;
|
|
59216
|
+
}
|
|
59217
|
+
|
|
59218
|
+
cnt++;
|
|
59219
|
+
}
|
|
59220
|
+
|
|
59221
|
+
return result;
|
|
59222
|
+
}
|
|
59223
|
+
|
|
59224
|
+
function noteGlobalProps() {
|
|
59225
|
+
firstGlobalProp = secondGlobalProp = void 0;
|
|
59226
|
+
|
|
59227
|
+
for (var p in global2) {
|
|
59228
|
+
if (shouldSkipProperty(p)) continue;
|
|
59229
|
+
if (!firstGlobalProp) firstGlobalProp = p;else if (!secondGlobalProp) secondGlobalProp = p;
|
|
59230
|
+
lastGlobalProp = p;
|
|
59231
|
+
}
|
|
59232
|
+
|
|
59233
|
+
return lastGlobalProp;
|
|
59234
|
+
}
|
|
59235
|
+
|
|
59236
|
+
var impt = systemJSPrototype2.import;
|
|
59237
|
+
|
|
59238
|
+
systemJSPrototype2.import = function (id, parentUrl) {
|
|
59239
|
+
noteGlobalProps();
|
|
59240
|
+
return impt.call(this, id, parentUrl);
|
|
59241
|
+
};
|
|
59242
|
+
|
|
59243
|
+
var emptyInstantiation = [[], function () {
|
|
59244
|
+
return {};
|
|
59245
|
+
}];
|
|
59246
|
+
var getRegister = systemJSPrototype2.getRegister;
|
|
59247
|
+
|
|
59248
|
+
systemJSPrototype2.getRegister = function () {
|
|
59249
|
+
var lastRegister2 = getRegister.call(this);
|
|
59250
|
+
if (lastRegister2) return lastRegister2;
|
|
59251
|
+
var globalProp = getGlobalProp(this.firstGlobalProp);
|
|
59252
|
+
if (!globalProp) return emptyInstantiation;
|
|
59253
|
+
var globalExport;
|
|
59254
|
+
|
|
59255
|
+
try {
|
|
59256
|
+
globalExport = global2[globalProp];
|
|
59257
|
+
} catch (e) {
|
|
59258
|
+
return emptyInstantiation;
|
|
59259
|
+
}
|
|
59260
|
+
|
|
59261
|
+
return [[], function (_export) {
|
|
59262
|
+
return {
|
|
59263
|
+
execute: function () {
|
|
59264
|
+
_export(globalExport);
|
|
59265
|
+
|
|
59266
|
+
_export({
|
|
59267
|
+
default: globalExport,
|
|
59268
|
+
__useDefault: true
|
|
59269
|
+
});
|
|
59270
|
+
}
|
|
59271
|
+
};
|
|
59272
|
+
}];
|
|
59273
|
+
};
|
|
59274
|
+
|
|
59275
|
+
var isIE11 = typeof navigator !== "undefined" && navigator.userAgent.indexOf("Trident") !== -1;
|
|
59276
|
+
|
|
59277
|
+
function shouldSkipProperty(p) {
|
|
59278
|
+
return !global2.hasOwnProperty(p) || !isNaN(p) && p < global2.length || isIE11 && global2[p] && typeof window !== "undefined" && global2[p].parent === window;
|
|
59279
|
+
}
|
|
59280
|
+
})(typeof self !== "undefined" ? self : __webpack_require__.g);
|
|
59281
|
+
|
|
59282
|
+
(function (global2) {
|
|
59283
|
+
var systemJSPrototype2 = global2.System.constructor.prototype;
|
|
59284
|
+
var moduleTypesRegEx = /^[^#?]+\.(css|html|json|wasm)([?#].*)?$/;
|
|
59285
|
+
|
|
59286
|
+
systemJSPrototype2.shouldFetch = function (url) {
|
|
59287
|
+
return moduleTypesRegEx.test(url);
|
|
59288
|
+
};
|
|
59289
|
+
|
|
59290
|
+
var jsonContentType = /^application\/json(;|$)/;
|
|
59291
|
+
var cssContentType = /^text\/css(;|$)/;
|
|
59292
|
+
var wasmContentType = /^application\/wasm(;|$)/;
|
|
59293
|
+
var fetch2 = systemJSPrototype2.fetch;
|
|
59294
|
+
|
|
59295
|
+
systemJSPrototype2.fetch = function (url, options) {
|
|
59296
|
+
return fetch2(url, options).then(function (res) {
|
|
59297
|
+
if (options.passThrough) return res;
|
|
59298
|
+
if (!res.ok) return res;
|
|
59299
|
+
var contentType = res.headers.get("content-type");
|
|
59300
|
+
if (jsonContentType.test(contentType)) return res.json().then(function (json) {
|
|
59301
|
+
return new Response(new Blob(['System.register([],function(e){return{execute:function(){e("default",' + JSON.stringify(json) + ")}}})"], {
|
|
59302
|
+
type: "application/javascript"
|
|
59303
|
+
}));
|
|
59304
|
+
});
|
|
59305
|
+
if (cssContentType.test(contentType)) return res.text().then(function (source) {
|
|
59306
|
+
source = source.replace(/url\(\s*(?:(["'])((?:\\.|[^\n\\"'])+)\1|((?:\\.|[^\s,"'()\\])+))\s*\)/g, function (match, quotes, relUrl1, relUrl2) {
|
|
59307
|
+
return "url(" + quotes + resolveUrl(relUrl1 || relUrl2, url) + quotes + ")";
|
|
59308
|
+
});
|
|
59309
|
+
return new Response(new Blob(["System.register([],function(e){return{execute:function(){var s=new CSSStyleSheet();s.replaceSync(" + JSON.stringify(source) + ');e("default",s)}}})'], {
|
|
59310
|
+
type: "application/javascript"
|
|
59311
|
+
}));
|
|
59312
|
+
});
|
|
59313
|
+
if (wasmContentType.test(contentType)) return (WebAssembly.compileStreaming ? WebAssembly.compileStreaming(res) : res.arrayBuffer().then(WebAssembly.compile)).then(function (module) {
|
|
59314
|
+
if (!global2.System.wasmModules) global2.System.wasmModules = Object.create(null);
|
|
59315
|
+
global2.System.wasmModules[url] = module;
|
|
59316
|
+
var deps = [];
|
|
59317
|
+
var setterSources = [];
|
|
59318
|
+
if (WebAssembly.Module.imports) WebAssembly.Module.imports(module).forEach(function (impt) {
|
|
59319
|
+
var key = JSON.stringify(impt.module);
|
|
59320
|
+
|
|
59321
|
+
if (deps.indexOf(key) === -1) {
|
|
59322
|
+
deps.push(key);
|
|
59323
|
+
setterSources.push("function(m){i[" + key + "]=m}");
|
|
59324
|
+
}
|
|
59325
|
+
});
|
|
59326
|
+
return new Response(new Blob(["System.register([" + deps.join(",") + "],function(e){var i={};return{setters:[" + setterSources.join(",") + "],execute:function(){return WebAssembly.instantiate(System.wasmModules[" + JSON.stringify(url) + "],i).then(function(m){e(m.exports)})}}})"], {
|
|
59327
|
+
type: "application/javascript"
|
|
59328
|
+
}));
|
|
59329
|
+
});
|
|
59330
|
+
return res;
|
|
59331
|
+
});
|
|
59332
|
+
};
|
|
59333
|
+
})(typeof self !== "undefined" ? self : __webpack_require__.g);
|
|
59334
|
+
|
|
59335
|
+
var toStringTag = typeof Symbol !== "undefined" && Symbol.toStringTag;
|
|
59336
|
+
|
|
59337
|
+
systemJSPrototype.get = function (id) {
|
|
59338
|
+
var load = this[REGISTRY][id];
|
|
59339
|
+
|
|
59340
|
+
if (load && load.e === null && !load.E) {
|
|
59341
|
+
if (load.er) return null;
|
|
59342
|
+
return load.n;
|
|
59343
|
+
}
|
|
59344
|
+
};
|
|
59345
|
+
|
|
59346
|
+
systemJSPrototype.set = function (id, module) {
|
|
59347
|
+
{
|
|
59348
|
+
try {
|
|
59349
|
+
new URL(id);
|
|
59350
|
+
} catch (err) {
|
|
59351
|
+
console.warn(Error(errMsg("W3", '"' + id + '" is not a valid URL to set in the module registry')));
|
|
59352
|
+
}
|
|
59353
|
+
}
|
|
59354
|
+
var ns;
|
|
59355
|
+
|
|
59356
|
+
if (toStringTag && module[toStringTag] === "Module") {
|
|
59357
|
+
ns = module;
|
|
59358
|
+
} else {
|
|
59359
|
+
ns = Object.assign(Object.create(null), module);
|
|
59360
|
+
if (toStringTag) Object.defineProperty(ns, toStringTag, {
|
|
59361
|
+
value: "Module"
|
|
59362
|
+
});
|
|
59363
|
+
}
|
|
59364
|
+
|
|
59365
|
+
var done = Promise.resolve(ns);
|
|
59366
|
+
var load = this[REGISTRY][id] || (this[REGISTRY][id] = {
|
|
59367
|
+
id,
|
|
59368
|
+
i: [],
|
|
59369
|
+
h: false,
|
|
59370
|
+
d: [],
|
|
59371
|
+
e: null,
|
|
59372
|
+
er: void 0,
|
|
59373
|
+
E: void 0
|
|
59374
|
+
});
|
|
59375
|
+
if (load.e || load.E) return false;
|
|
59376
|
+
Object.assign(load, {
|
|
59377
|
+
n: ns,
|
|
59378
|
+
I: void 0,
|
|
59379
|
+
L: void 0,
|
|
59380
|
+
C: done
|
|
59381
|
+
});
|
|
59382
|
+
return ns;
|
|
59383
|
+
};
|
|
59384
|
+
|
|
59385
|
+
systemJSPrototype.has = function (id) {
|
|
59386
|
+
var load = this[REGISTRY][id];
|
|
59387
|
+
return !!load;
|
|
59388
|
+
};
|
|
59389
|
+
|
|
59390
|
+
systemJSPrototype.delete = function (id) {
|
|
59391
|
+
var registry = this[REGISTRY];
|
|
59392
|
+
var load = registry[id];
|
|
59393
|
+
if (!load || load.p && load.p.e !== null || load.E) return false;
|
|
59394
|
+
var importerSetters = load.i;
|
|
59395
|
+
if (load.d) load.d.forEach(function (depLoad) {
|
|
59396
|
+
var importerIndex = depLoad.i.indexOf(load);
|
|
59397
|
+
if (importerIndex !== -1) depLoad.i.splice(importerIndex, 1);
|
|
59398
|
+
});
|
|
59399
|
+
delete registry[id];
|
|
59400
|
+
return function () {
|
|
59401
|
+
var load2 = registry[id];
|
|
59402
|
+
if (!load2 || !importerSetters || load2.e !== null || load2.E) return false;
|
|
59403
|
+
importerSetters.forEach(function (setter) {
|
|
59404
|
+
load2.i.push(setter);
|
|
59405
|
+
setter(load2.n);
|
|
59406
|
+
});
|
|
59407
|
+
importerSetters = null;
|
|
59408
|
+
};
|
|
59409
|
+
};
|
|
59410
|
+
|
|
59411
|
+
var iterator = typeof Symbol !== "undefined" && Symbol.iterator;
|
|
59412
|
+
|
|
59413
|
+
systemJSPrototype.entries = function () {
|
|
59414
|
+
var loader = this,
|
|
59415
|
+
keys = Object.keys(loader[REGISTRY]);
|
|
59416
|
+
var index = 0,
|
|
59417
|
+
ns,
|
|
59418
|
+
key;
|
|
59419
|
+
var result = {
|
|
59420
|
+
next: function () {
|
|
59421
|
+
while ((key = keys[index++]) !== void 0 && (ns = loader.get(key)) === void 0);
|
|
59422
|
+
|
|
59423
|
+
return {
|
|
59424
|
+
done: key === void 0,
|
|
59425
|
+
value: key !== void 0 && [key, ns]
|
|
59426
|
+
};
|
|
59427
|
+
}
|
|
59428
|
+
};
|
|
59429
|
+
|
|
59430
|
+
result[iterator] = function () {
|
|
59431
|
+
return this;
|
|
59432
|
+
};
|
|
59433
|
+
|
|
59434
|
+
return result;
|
|
59435
|
+
};
|
|
59436
|
+
})(); // ../../../node_modules/systemjs/dist/extras/named-register.js
|
|
59437
|
+
|
|
59438
|
+
|
|
59439
|
+
(function () {
|
|
59440
|
+
(function (global2) {
|
|
59441
|
+
var System2 = global2.System;
|
|
59442
|
+
setRegisterRegistry(System2);
|
|
59443
|
+
var systemJSPrototype = System2.constructor.prototype;
|
|
59444
|
+
var constructor = System2.constructor;
|
|
59445
|
+
|
|
59446
|
+
var SystemJS = function () {
|
|
59447
|
+
constructor.call(this);
|
|
59448
|
+
setRegisterRegistry(this);
|
|
59449
|
+
};
|
|
59450
|
+
|
|
59451
|
+
SystemJS.prototype = systemJSPrototype;
|
|
59452
|
+
System2.constructor = SystemJS;
|
|
59453
|
+
var firstNamedDefine, firstName;
|
|
59454
|
+
|
|
59455
|
+
function setRegisterRegistry(systemInstance) {
|
|
59456
|
+
systemInstance.registerRegistry = Object.create(null);
|
|
59457
|
+
systemInstance.namedRegisterAliases = Object.create(null);
|
|
59458
|
+
}
|
|
59459
|
+
|
|
59460
|
+
var register = systemJSPrototype.register;
|
|
59461
|
+
|
|
59462
|
+
systemJSPrototype.register = function (name, deps, declare) {
|
|
59463
|
+
if (typeof name !== "string") return register.apply(this, arguments);
|
|
59464
|
+
var define = [deps, declare];
|
|
59465
|
+
this.registerRegistry[name] = define;
|
|
59466
|
+
|
|
59467
|
+
if (!firstNamedDefine) {
|
|
59468
|
+
firstNamedDefine = define;
|
|
59469
|
+
firstName = name;
|
|
59470
|
+
}
|
|
59471
|
+
|
|
59472
|
+
Promise.resolve().then(function () {
|
|
59473
|
+
firstNamedDefine = null;
|
|
59474
|
+
firstName = null;
|
|
59475
|
+
});
|
|
59476
|
+
return register.apply(this, [deps, declare]);
|
|
59477
|
+
};
|
|
59478
|
+
|
|
59479
|
+
var resolve = systemJSPrototype.resolve;
|
|
59480
|
+
|
|
59481
|
+
systemJSPrototype.resolve = function (id, parentURL) {
|
|
59482
|
+
try {
|
|
59483
|
+
return resolve.call(this, id, parentURL);
|
|
59484
|
+
} catch (err) {
|
|
59485
|
+
if (id in this.registerRegistry) {
|
|
59486
|
+
return this.namedRegisterAliases[id] || id;
|
|
59487
|
+
}
|
|
59488
|
+
|
|
59489
|
+
throw err;
|
|
59490
|
+
}
|
|
59491
|
+
};
|
|
59492
|
+
|
|
59493
|
+
var instantiate = systemJSPrototype.instantiate;
|
|
59494
|
+
|
|
59495
|
+
systemJSPrototype.instantiate = function (url, firstParentUrl) {
|
|
59496
|
+
var result = this.registerRegistry[url];
|
|
59497
|
+
|
|
59498
|
+
if (result) {
|
|
59499
|
+
this.registerRegistry[url] = null;
|
|
59500
|
+
return result;
|
|
59501
|
+
} else {
|
|
59502
|
+
return instantiate.call(this, url, firstParentUrl);
|
|
59503
|
+
}
|
|
59504
|
+
};
|
|
59505
|
+
|
|
59506
|
+
var getRegister = systemJSPrototype.getRegister;
|
|
59507
|
+
|
|
59508
|
+
systemJSPrototype.getRegister = function (url) {
|
|
59509
|
+
var register2 = getRegister.call(this, url);
|
|
59510
|
+
|
|
59511
|
+
if (firstName && url) {
|
|
59512
|
+
this.namedRegisterAliases[firstName] = url;
|
|
59513
|
+
}
|
|
59514
|
+
|
|
59515
|
+
var result = firstNamedDefine || register2;
|
|
59516
|
+
firstNamedDefine = null;
|
|
59517
|
+
firstName = null;
|
|
59518
|
+
return result;
|
|
59519
|
+
};
|
|
59520
|
+
})(typeof self !== "undefined" ? self : __webpack_require__.g);
|
|
59521
|
+
})(); // ../../tooling/piral-cli/src/common/version.ts
|
|
59522
|
+
|
|
59523
|
+
|
|
59524
|
+
var semver = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i;
|
|
59525
|
+
var acceptsAll = ["*", "x", ">=0"];
|
|
59526
|
+
var operatorResMap = {
|
|
59527
|
+
">": [1],
|
|
59528
|
+
">=": [0, 1],
|
|
59529
|
+
"=": [0],
|
|
59530
|
+
"<=": [-1, 0],
|
|
59531
|
+
"<": [-1]
|
|
58787
59532
|
};
|
|
58788
59533
|
|
|
58789
59534
|
function indexOrEnd(str, q) {
|
|
@@ -58791,15 +59536,15 @@ function indexOrEnd(str, q) {
|
|
|
58791
59536
|
}
|
|
58792
59537
|
|
|
58793
59538
|
function splitVersion(v) {
|
|
58794
|
-
|
|
58795
|
-
|
|
58796
|
-
|
|
59539
|
+
const c = v.replace(/^v/, "").replace(/\+.*$/, "");
|
|
59540
|
+
const patchIndex = indexOrEnd(c, "-");
|
|
59541
|
+
const arr = c.substring(0, patchIndex).split(".");
|
|
58797
59542
|
arr.push(c.substring(patchIndex + 1));
|
|
58798
59543
|
return arr;
|
|
58799
59544
|
}
|
|
58800
59545
|
|
|
58801
59546
|
function parseSegment(v) {
|
|
58802
|
-
|
|
59547
|
+
const n = parseInt(v, 10);
|
|
58803
59548
|
return isNaN(n) ? v : n;
|
|
58804
59549
|
}
|
|
58805
59550
|
|
|
@@ -58824,7 +59569,7 @@ function compareStrings(a, b) {
|
|
|
58824
59569
|
|
|
58825
59570
|
function compareSegments(a, b) {
|
|
58826
59571
|
for (let i = 0; i < 2; i++) {
|
|
58827
|
-
const r = compareStrings(a[i] ||
|
|
59572
|
+
const r = compareStrings(a[i] || "0", b[i] || "0");
|
|
58828
59573
|
|
|
58829
59574
|
if (r !== 0) {
|
|
58830
59575
|
return r;
|
|
@@ -58840,8 +59585,8 @@ function compareVersions(v1, v2) {
|
|
|
58840
59585
|
const len = Math.max(s1.length - 1, s2.length - 1);
|
|
58841
59586
|
|
|
58842
59587
|
for (let i = 0; i < len; i++) {
|
|
58843
|
-
const n1 = parseInt(s1[i] ||
|
|
58844
|
-
const n2 = parseInt(s2[i] ||
|
|
59588
|
+
const n1 = parseInt(s1[i] || "0", 10);
|
|
59589
|
+
const n2 = parseInt(s2[i] || "0", 10);
|
|
58845
59590
|
|
|
58846
59591
|
if (n1 > n2) {
|
|
58847
59592
|
return 1;
|
|
@@ -58854,14 +59599,14 @@ function compareVersions(v1, v2) {
|
|
|
58854
59599
|
const sp2 = s2[s2.length - 1];
|
|
58855
59600
|
|
|
58856
59601
|
if (sp1 && sp2) {
|
|
58857
|
-
const p1 = sp1.split(
|
|
58858
|
-
const p2 = sp2.split(
|
|
58859
|
-
const
|
|
59602
|
+
const p1 = sp1.split(".").map(parseSegment);
|
|
59603
|
+
const p2 = sp2.split(".").map(parseSegment);
|
|
59604
|
+
const len2 = Math.max(p1.length, p2.length);
|
|
58860
59605
|
|
|
58861
|
-
for (let i = 0; i <
|
|
58862
|
-
if (p1[i] ===
|
|
59606
|
+
for (let i = 0; i < len2; i++) {
|
|
59607
|
+
if (p1[i] === void 0 || typeof p2[i] === "string" && typeof p1[i] === "number") {
|
|
58863
59608
|
return -1;
|
|
58864
|
-
} else if (p2[i] ===
|
|
59609
|
+
} else if (p2[i] === void 0 || typeof p1[i] === "string" && typeof p2[i] === "number") {
|
|
58865
59610
|
return 1;
|
|
58866
59611
|
} else if (p1[i] > p2[i]) {
|
|
58867
59612
|
return 1;
|
|
@@ -58877,8 +59622,6 @@ function compareVersions(v1, v2) {
|
|
|
58877
59622
|
}
|
|
58878
59623
|
|
|
58879
59624
|
function compare(v1, v2, operator) {
|
|
58880
|
-
// since result of compareVersions can only be -1 or 0 or 1
|
|
58881
|
-
// a simple map can be used to replace switch
|
|
58882
59625
|
const res = compareVersions(v1, v2);
|
|
58883
59626
|
return operatorResMap[operator].indexOf(res) > -1;
|
|
58884
59627
|
}
|
|
@@ -58886,23 +59629,22 @@ function compare(v1, v2, operator) {
|
|
|
58886
59629
|
function validate(version) {
|
|
58887
59630
|
return acceptsAll.includes(version) || semver.test(version);
|
|
58888
59631
|
}
|
|
59632
|
+
|
|
58889
59633
|
function satisfies(v, r) {
|
|
58890
59634
|
if (!acceptsAll.includes(r)) {
|
|
58891
|
-
// if no range operator then "="
|
|
58892
59635
|
const match = r.match(/^([<>=~^]+)/);
|
|
58893
|
-
const op = match ? match[1] :
|
|
59636
|
+
const op = match ? match[1] : "=";
|
|
58894
59637
|
|
|
58895
|
-
if (op !==
|
|
59638
|
+
if (op !== "^" && op !== "~") {
|
|
58896
59639
|
return compare(v, r, op);
|
|
58897
|
-
}
|
|
58898
|
-
|
|
59640
|
+
}
|
|
58899
59641
|
|
|
58900
59642
|
const [v1, v2, v3] = validateAndParse(v);
|
|
58901
59643
|
const [m1, m2, m3] = validateAndParse(r);
|
|
58902
59644
|
|
|
58903
59645
|
if (compareStrings(v1, m1) !== 0) {
|
|
58904
59646
|
return false;
|
|
58905
|
-
} else if (op ===
|
|
59647
|
+
} else if (op === "^") {
|
|
58906
59648
|
return compareSegments([v2, v3], [m2, m3]) >= 0;
|
|
58907
59649
|
} else if (compareStrings(v2, m2) !== 0) {
|
|
58908
59650
|
return false;
|
|
@@ -58912,8 +59654,145 @@ function satisfies(v, r) {
|
|
|
58912
59654
|
}
|
|
58913
59655
|
|
|
58914
59656
|
return true;
|
|
59657
|
+
} // src/utils/system.ts
|
|
59658
|
+
|
|
59659
|
+
|
|
59660
|
+
var systemResolve = System.constructor.prototype.resolve;
|
|
59661
|
+
var systemRegister = System.constructor.prototype.register;
|
|
59662
|
+
|
|
59663
|
+
function getLoadedVersions(prefix) {
|
|
59664
|
+
return [...System.entries()].filter(([name]) => name.startsWith(prefix)).map(([name]) => name.substring(prefix.length));
|
|
59665
|
+
}
|
|
59666
|
+
|
|
59667
|
+
function findMatchingPackage(id) {
|
|
59668
|
+
const sep = id.indexOf("@", 1);
|
|
59669
|
+
|
|
59670
|
+
if (sep > 1) {
|
|
59671
|
+
const available = Object.keys(System.registerRegistry);
|
|
59672
|
+
const name = id.substring(0, sep + 1);
|
|
59673
|
+
const versionSpec = id.substring(sep + 1);
|
|
59674
|
+
|
|
59675
|
+
if (validate(versionSpec)) {
|
|
59676
|
+
const loadedVersions = getLoadedVersions(name);
|
|
59677
|
+
const allVersions = available.filter(m => m.startsWith(name)).map(m => m.substring(name.length));
|
|
59678
|
+
const availableVersions = [...loadedVersions, ...allVersions.filter(m => !loadedVersions.includes(m))];
|
|
59679
|
+
|
|
59680
|
+
for (const availableVersion of availableVersions) {
|
|
59681
|
+
if (validate(availableVersion) && satisfies(availableVersion, versionSpec)) {
|
|
59682
|
+
return name + availableVersion;
|
|
59683
|
+
}
|
|
59684
|
+
}
|
|
59685
|
+
}
|
|
59686
|
+
}
|
|
59687
|
+
|
|
59688
|
+
return void 0;
|
|
59689
|
+
}
|
|
59690
|
+
|
|
59691
|
+
function isPrimitiveExport(content) {
|
|
59692
|
+
const type = typeof content;
|
|
59693
|
+
return type === "number" || type === "boolean" || type === "symbol" || type === "string" || type === "bigint" || Array.isArray(content);
|
|
59694
|
+
}
|
|
59695
|
+
|
|
59696
|
+
System.constructor.prototype.resolve = function (id, parentUrl) {
|
|
59697
|
+
try {
|
|
59698
|
+
return systemResolve.call(this, id, parentUrl);
|
|
59699
|
+
} catch (ex) {
|
|
59700
|
+
const result = findMatchingPackage(id);
|
|
59701
|
+
|
|
59702
|
+
if (!result) {
|
|
59703
|
+
throw ex;
|
|
59704
|
+
}
|
|
59705
|
+
|
|
59706
|
+
return result;
|
|
59707
|
+
}
|
|
59708
|
+
};
|
|
59709
|
+
|
|
59710
|
+
System.constructor.prototype.register = function (...args) {
|
|
59711
|
+
const getContent = args.pop();
|
|
59712
|
+
args.push((_export, ctx) => {
|
|
59713
|
+
const exp = (...p) => {
|
|
59714
|
+
if (p.length === 1) {
|
|
59715
|
+
const content = p[0];
|
|
59716
|
+
|
|
59717
|
+
if (content instanceof Promise) {
|
|
59718
|
+
return content.then(exp);
|
|
59719
|
+
} else if (typeof content === "function") {
|
|
59720
|
+
_export("__esModule", true);
|
|
59721
|
+
|
|
59722
|
+
Object.keys(content).forEach(prop => {
|
|
59723
|
+
_export(prop, content[prop]);
|
|
59724
|
+
});
|
|
59725
|
+
|
|
59726
|
+
_export("default", content);
|
|
59727
|
+
} else if (isPrimitiveExport(content)) {
|
|
59728
|
+
_export("__esModule", true);
|
|
59729
|
+
|
|
59730
|
+
_export("default", content);
|
|
59731
|
+
} else if (content) {
|
|
59732
|
+
_export(content);
|
|
59733
|
+
|
|
59734
|
+
if (typeof content === "object" && !("default" in content)) {
|
|
59735
|
+
_export("default", content);
|
|
59736
|
+
}
|
|
59737
|
+
}
|
|
59738
|
+
} else {
|
|
59739
|
+
_export(...p);
|
|
59740
|
+
}
|
|
59741
|
+
};
|
|
59742
|
+
|
|
59743
|
+
return getContent(exp, ctx);
|
|
59744
|
+
});
|
|
59745
|
+
return systemRegister.apply(this, args);
|
|
59746
|
+
};
|
|
59747
|
+
|
|
59748
|
+
function tryResolve(name, parent) {
|
|
59749
|
+
try {
|
|
59750
|
+
return System.resolve(name, parent);
|
|
59751
|
+
} catch (e) {
|
|
59752
|
+
return void 0;
|
|
59753
|
+
}
|
|
59754
|
+
}
|
|
59755
|
+
|
|
59756
|
+
function registerDependencies(modules) {
|
|
59757
|
+
const moduleNames = Object.keys(modules);
|
|
59758
|
+
moduleNames.forEach(name => registerModule(name, () => modules[name]));
|
|
59759
|
+
return Promise.all(moduleNames.map(name => System.import(name)));
|
|
59760
|
+
}
|
|
59761
|
+
|
|
59762
|
+
function registerModule(name, resolve) {
|
|
59763
|
+
System.register(name, [], _exports => ({
|
|
59764
|
+
execute() {
|
|
59765
|
+
const content = resolve();
|
|
59766
|
+
|
|
59767
|
+
if (content instanceof Promise) {
|
|
59768
|
+
return content.then(_exports);
|
|
59769
|
+
} else {
|
|
59770
|
+
_exports(content);
|
|
59771
|
+
}
|
|
59772
|
+
}
|
|
59773
|
+
|
|
59774
|
+
}));
|
|
59775
|
+
}
|
|
59776
|
+
|
|
59777
|
+
function unregisterModules(baseUrl, dependencies) {
|
|
59778
|
+
[...System.entries()].map(([name]) => name).filter(name => name.startsWith(baseUrl) && !dependencies.includes(name)).forEach(name => System.delete(name));
|
|
59779
|
+
}
|
|
59780
|
+
|
|
59781
|
+
function requireModule(name, parent) {
|
|
59782
|
+
const moduleId = tryResolve(name, parent);
|
|
59783
|
+
const dependency = moduleId && System.get(moduleId);
|
|
59784
|
+
|
|
59785
|
+
if (!dependency) {
|
|
59786
|
+
const error = new Error(`Cannot find module '${name}'`);
|
|
59787
|
+
error.code = "MODULE_NOT_FOUND";
|
|
59788
|
+
throw error;
|
|
59789
|
+
}
|
|
59790
|
+
|
|
59791
|
+
return dependency;
|
|
58915
59792
|
}
|
|
58916
59793
|
|
|
59794
|
+
|
|
59795
|
+
|
|
58917
59796
|
/***/ }),
|
|
58918
59797
|
|
|
58919
59798
|
/***/ "../../framework/piral-core/esm/Piral.js":
|
|
@@ -60237,97 +61116,6 @@ function createInstance(config = {}) {
|
|
|
60237
61116
|
|
|
60238
61117
|
/***/ }),
|
|
60239
61118
|
|
|
60240
|
-
/***/ "../../framework/piral-core/esm/debugger.js":
|
|
60241
|
-
/*!**************************************************!*\
|
|
60242
|
-
!*** ../../framework/piral-core/esm/debugger.js ***!
|
|
60243
|
-
\**************************************************/
|
|
60244
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
60245
|
-
|
|
60246
|
-
"use strict";
|
|
60247
|
-
__webpack_require__.r(__webpack_exports__);
|
|
60248
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
60249
|
-
/* harmony export */ "integrateDebugger": () => (/* binding */ integrateDebugger)
|
|
60250
|
-
/* harmony export */ });
|
|
60251
|
-
/* harmony import */ var piral_debug_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! piral-debug-utils */ "../../utilities/piral-debug-utils/esm/debug.js");
|
|
60252
|
-
|
|
60253
|
-
function integrateDebugger(context, options, debug = {}) {
|
|
60254
|
-
(0,piral_debug_utils__WEBPACK_IMPORTED_MODULE_0__.installPiralDebug)(Object.assign(Object.assign({}, debug), {
|
|
60255
|
-
addPilet: context.addPilet,
|
|
60256
|
-
removePilet: context.removePilet,
|
|
60257
|
-
|
|
60258
|
-
updatePilet(pilet) {
|
|
60259
|
-
if (!pilet.disabled) {
|
|
60260
|
-
const {
|
|
60261
|
-
createApi
|
|
60262
|
-
} = options;
|
|
60263
|
-
const newApi = createApi(pilet);
|
|
60264
|
-
|
|
60265
|
-
try {
|
|
60266
|
-
context.injectPilet(pilet);
|
|
60267
|
-
pilet.setup(newApi);
|
|
60268
|
-
} catch (error) {
|
|
60269
|
-
console.error(error);
|
|
60270
|
-
}
|
|
60271
|
-
} else {
|
|
60272
|
-
context.injectPilet(pilet);
|
|
60273
|
-
}
|
|
60274
|
-
},
|
|
60275
|
-
|
|
60276
|
-
fireEvent: context.emit,
|
|
60277
|
-
|
|
60278
|
-
getDependencies() {
|
|
60279
|
-
return Object.keys(options.dependencies);
|
|
60280
|
-
},
|
|
60281
|
-
|
|
60282
|
-
getExtensions() {
|
|
60283
|
-
return context.readState(s => Object.keys(s.registry.extensions));
|
|
60284
|
-
},
|
|
60285
|
-
|
|
60286
|
-
getRoutes() {
|
|
60287
|
-
const registeredRoutes = context.readState(state => Object.keys(state.registry.pages));
|
|
60288
|
-
const componentRoutes = context.readState(state => Object.keys(state.routes));
|
|
60289
|
-
return [...componentRoutes, ...registeredRoutes];
|
|
60290
|
-
},
|
|
60291
|
-
|
|
60292
|
-
getGlobalState() {
|
|
60293
|
-
return context.readState(s => s);
|
|
60294
|
-
},
|
|
60295
|
-
|
|
60296
|
-
navigate(path, state) {
|
|
60297
|
-
return context.navigation.push(path, state);
|
|
60298
|
-
},
|
|
60299
|
-
|
|
60300
|
-
getPilets() {
|
|
60301
|
-
return context.readState(s => s.modules);
|
|
60302
|
-
},
|
|
60303
|
-
|
|
60304
|
-
integrate(dbg) {
|
|
60305
|
-
context.dispatch(s => Object.assign(Object.assign({}, s), {
|
|
60306
|
-
components: Object.assign(Object.assign({}, s.components), dbg.components),
|
|
60307
|
-
routes: Object.assign(Object.assign({}, s.routes), dbg.routes),
|
|
60308
|
-
registry: Object.assign(Object.assign({}, s.registry), {
|
|
60309
|
-
wrappers: Object.assign(Object.assign({}, s.registry.wrappers), dbg.wrappers)
|
|
60310
|
-
})
|
|
60311
|
-
}));
|
|
60312
|
-
context.state.subscribe((current, previous) => {
|
|
60313
|
-
const pilets = current.modules !== previous.modules;
|
|
60314
|
-
const pages = current.registry.pages !== previous.registry.pages || current.routes !== previous.routes;
|
|
60315
|
-
const extensions = current.registry.extensions !== previous.registry.extensions;
|
|
60316
|
-
const state = current !== previous;
|
|
60317
|
-
dbg.onChange(previous, current, {
|
|
60318
|
-
pilets,
|
|
60319
|
-
pages,
|
|
60320
|
-
extensions,
|
|
60321
|
-
state
|
|
60322
|
-
});
|
|
60323
|
-
});
|
|
60324
|
-
}
|
|
60325
|
-
|
|
60326
|
-
}));
|
|
60327
|
-
}
|
|
60328
|
-
|
|
60329
|
-
/***/ }),
|
|
60330
|
-
|
|
60331
61119
|
/***/ "../../framework/piral-core/esm/defaults/DefaultErrorInfo.js":
|
|
60332
61120
|
/*!*******************************************************************!*\
|
|
60333
61121
|
!*** ../../framework/piral-core/esm/defaults/DefaultErrorInfo.js ***!
|
|
@@ -60590,33 +61378,6 @@ function createNavigation() {
|
|
|
60590
61378
|
|
|
60591
61379
|
/***/ }),
|
|
60592
61380
|
|
|
60593
|
-
/***/ "../../framework/piral-core/esm/emulator.js":
|
|
60594
|
-
/*!**************************************************!*\
|
|
60595
|
-
!*** ../../framework/piral-core/esm/emulator.js ***!
|
|
60596
|
-
\**************************************************/
|
|
60597
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
60598
|
-
|
|
60599
|
-
"use strict";
|
|
60600
|
-
__webpack_require__.r(__webpack_exports__);
|
|
60601
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
60602
|
-
/* harmony export */ "integrateEmulator": () => (/* binding */ integrateEmulator)
|
|
60603
|
-
/* harmony export */ });
|
|
60604
|
-
/* harmony import */ var piral_debug_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! piral-debug-utils */ "../../utilities/piral-debug-utils/esm/emulator.js");
|
|
60605
|
-
|
|
60606
|
-
function integrateEmulator(context, options) {
|
|
60607
|
-
(0,piral_debug_utils__WEBPACK_IMPORTED_MODULE_0__.installPiletEmulator)(options.fetchPilets, {
|
|
60608
|
-
addPilet: context.addPilet,
|
|
60609
|
-
removePilet: context.removePilet,
|
|
60610
|
-
|
|
60611
|
-
integrate(requester) {
|
|
60612
|
-
options.fetchPilets = requester;
|
|
60613
|
-
}
|
|
60614
|
-
|
|
60615
|
-
});
|
|
60616
|
-
}
|
|
60617
|
-
|
|
60618
|
-
/***/ }),
|
|
60619
|
-
|
|
60620
61381
|
/***/ "../../framework/piral-core/esm/helpers.js":
|
|
60621
61382
|
/*!*************************************************!*\
|
|
60622
61383
|
!*** ../../framework/piral-core/esm/helpers.js ***!
|
|
@@ -60630,8 +61391,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
60630
61391
|
/* harmony export */ });
|
|
60631
61392
|
/* harmony import */ var piral_base__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! piral-base */ "../../framework/piral-base/esm/loader.js");
|
|
60632
61393
|
/* harmony import */ var _modules__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./modules */ "../../framework/piral-core/esm/modules/dependencies.js");
|
|
60633
|
-
/* harmony import */ var _app_codegen__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../app.codegen */ "../../framework/piral-core/esm/debugger.js");
|
|
60634
|
-
/* harmony import */ var _app_codegen__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../app.codegen */ "../../framework/piral-core/esm/emulator.js");
|
|
61394
|
+
/* harmony import */ var _app_codegen__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../app.codegen */ "../../framework/piral-core/esm/tools/debugger.js");
|
|
61395
|
+
/* harmony import */ var _app_codegen__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../app.codegen */ "../../framework/piral-core/esm/tools/emulator.js");
|
|
60635
61396
|
|
|
60636
61397
|
|
|
60637
61398
|
|
|
@@ -61375,6 +62136,124 @@ function withApi(context, component, piral, errorType, wrapperType = errorType,
|
|
|
61375
62136
|
|
|
61376
62137
|
/***/ }),
|
|
61377
62138
|
|
|
62139
|
+
/***/ "../../framework/piral-core/esm/tools/debugger.js":
|
|
62140
|
+
/*!********************************************************!*\
|
|
62141
|
+
!*** ../../framework/piral-core/esm/tools/debugger.js ***!
|
|
62142
|
+
\********************************************************/
|
|
62143
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
62144
|
+
|
|
62145
|
+
"use strict";
|
|
62146
|
+
__webpack_require__.r(__webpack_exports__);
|
|
62147
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
62148
|
+
/* harmony export */ "integrateDebugger": () => (/* binding */ integrateDebugger)
|
|
62149
|
+
/* harmony export */ });
|
|
62150
|
+
/* harmony import */ var piral_debug_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! piral-debug-utils */ "../../utilities/piral-debug-utils/esm/debug.js");
|
|
62151
|
+
|
|
62152
|
+
function integrateDebugger(context, options, debug = {}) {
|
|
62153
|
+
(0,piral_debug_utils__WEBPACK_IMPORTED_MODULE_0__.installPiralDebug)(Object.assign(Object.assign({}, debug), {
|
|
62154
|
+
addPilet: context.addPilet,
|
|
62155
|
+
removePilet: context.removePilet,
|
|
62156
|
+
|
|
62157
|
+
updatePilet(pilet) {
|
|
62158
|
+
if (!pilet.disabled) {
|
|
62159
|
+
const {
|
|
62160
|
+
createApi
|
|
62161
|
+
} = options;
|
|
62162
|
+
const newApi = createApi(pilet);
|
|
62163
|
+
|
|
62164
|
+
try {
|
|
62165
|
+
context.injectPilet(pilet);
|
|
62166
|
+
pilet.setup(newApi);
|
|
62167
|
+
} catch (error) {
|
|
62168
|
+
console.error(error);
|
|
62169
|
+
}
|
|
62170
|
+
} else {
|
|
62171
|
+
context.injectPilet(pilet);
|
|
62172
|
+
}
|
|
62173
|
+
},
|
|
62174
|
+
|
|
62175
|
+
fireEvent: context.emit,
|
|
62176
|
+
|
|
62177
|
+
getDependencies() {
|
|
62178
|
+
return Object.keys(options.dependencies);
|
|
62179
|
+
},
|
|
62180
|
+
|
|
62181
|
+
getExtensions() {
|
|
62182
|
+
return context.readState(s => Object.keys(s.registry.extensions));
|
|
62183
|
+
},
|
|
62184
|
+
|
|
62185
|
+
getRoutes() {
|
|
62186
|
+
const registeredRoutes = context.readState(state => Object.keys(state.registry.pages));
|
|
62187
|
+
const componentRoutes = context.readState(state => Object.keys(state.routes));
|
|
62188
|
+
return [...componentRoutes, ...registeredRoutes];
|
|
62189
|
+
},
|
|
62190
|
+
|
|
62191
|
+
getGlobalState() {
|
|
62192
|
+
return context.readState(s => s);
|
|
62193
|
+
},
|
|
62194
|
+
|
|
62195
|
+
navigate(path, state) {
|
|
62196
|
+
return context.navigation.push(path, state);
|
|
62197
|
+
},
|
|
62198
|
+
|
|
62199
|
+
getPilets() {
|
|
62200
|
+
return context.readState(s => s.modules);
|
|
62201
|
+
},
|
|
62202
|
+
|
|
62203
|
+
integrate(dbg) {
|
|
62204
|
+
context.dispatch(s => Object.assign(Object.assign({}, s), {
|
|
62205
|
+
components: Object.assign(Object.assign({}, s.components), dbg.components),
|
|
62206
|
+
routes: Object.assign(Object.assign({}, s.routes), dbg.routes),
|
|
62207
|
+
registry: Object.assign(Object.assign({}, s.registry), {
|
|
62208
|
+
wrappers: Object.assign(Object.assign({}, s.registry.wrappers), dbg.wrappers)
|
|
62209
|
+
})
|
|
62210
|
+
}));
|
|
62211
|
+
context.state.subscribe((current, previous) => {
|
|
62212
|
+
const pilets = current.modules !== previous.modules;
|
|
62213
|
+
const pages = current.registry.pages !== previous.registry.pages || current.routes !== previous.routes;
|
|
62214
|
+
const extensions = current.registry.extensions !== previous.registry.extensions;
|
|
62215
|
+
const state = current !== previous;
|
|
62216
|
+
dbg.onChange(previous, current, {
|
|
62217
|
+
pilets,
|
|
62218
|
+
pages,
|
|
62219
|
+
extensions,
|
|
62220
|
+
state
|
|
62221
|
+
});
|
|
62222
|
+
});
|
|
62223
|
+
}
|
|
62224
|
+
|
|
62225
|
+
}));
|
|
62226
|
+
}
|
|
62227
|
+
|
|
62228
|
+
/***/ }),
|
|
62229
|
+
|
|
62230
|
+
/***/ "../../framework/piral-core/esm/tools/emulator.js":
|
|
62231
|
+
/*!********************************************************!*\
|
|
62232
|
+
!*** ../../framework/piral-core/esm/tools/emulator.js ***!
|
|
62233
|
+
\********************************************************/
|
|
62234
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
62235
|
+
|
|
62236
|
+
"use strict";
|
|
62237
|
+
__webpack_require__.r(__webpack_exports__);
|
|
62238
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
62239
|
+
/* harmony export */ "integrateEmulator": () => (/* binding */ integrateEmulator)
|
|
62240
|
+
/* harmony export */ });
|
|
62241
|
+
/* harmony import */ var piral_debug_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! piral-debug-utils */ "../../utilities/piral-debug-utils/esm/emulator.js");
|
|
62242
|
+
|
|
62243
|
+
function integrateEmulator(context, options) {
|
|
62244
|
+
(0,piral_debug_utils__WEBPACK_IMPORTED_MODULE_0__.installPiletEmulator)(options.fetchPilets, {
|
|
62245
|
+
addPilet: context.addPilet,
|
|
62246
|
+
removePilet: context.removePilet,
|
|
62247
|
+
|
|
62248
|
+
integrate(requester) {
|
|
62249
|
+
options.fetchPilets = requester;
|
|
62250
|
+
}
|
|
62251
|
+
|
|
62252
|
+
});
|
|
62253
|
+
}
|
|
62254
|
+
|
|
62255
|
+
/***/ }),
|
|
62256
|
+
|
|
61378
62257
|
/***/ "../../framework/piral-core/esm/utils/compare.js":
|
|
61379
62258
|
/*!*******************************************************!*\
|
|
61380
62259
|
!*** ../../framework/piral-core/esm/utils/compare.js ***!
|
|
@@ -62791,12 +63670,12 @@ function installPiralDebug(options) {
|
|
|
62791
63670
|
debug: debugApiVersion,
|
|
62792
63671
|
instance: {
|
|
62793
63672
|
name: "sample-cross-fx",
|
|
62794
|
-
version: "0.15.0-beta.
|
|
63673
|
+
version: "0.15.0-beta.4699",
|
|
62795
63674
|
dependencies: "@angular/common,@angular/compiler,@angular/core,@angular/platform-browser,@angular/platform-browser-dynamic,@webcomponents/webcomponentsjs,angular,aurelia-framework,aurelia-templating-binding,aurelia-templating-resources,aurelia-pal-browser,aurelia-event-aggregator,aurelia-history-browser,hyperapp,inferno,inferno-create-element,mithril,lit-element,solid-js,solid-js/dom,piral-ng/common,preact,riot,rxjs,vue,zone.js,tslib,react,react-dom,react-router,react-router-dom"
|
|
62796
63675
|
},
|
|
62797
63676
|
build: {
|
|
62798
|
-
date: "2022-
|
|
62799
|
-
cli: "0.14.
|
|
63677
|
+
date: "2022-10-01T23:51:38.291Z",
|
|
63678
|
+
cli: "0.14.32",
|
|
62800
63679
|
compat: "0.14"
|
|
62801
63680
|
}
|
|
62802
63681
|
};
|
|
@@ -74504,7 +75383,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
74504
75383
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
74505
75384
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
74506
75385
|
/* harmony export */ });
|
|
74507
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ("_framework/blazor.webassembly.js");
|
|
75386
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({"url":"_framework/blazor.webassembly.js","satellites":[],"noMutation":false,"renderMode":"projection"});
|
|
74508
75387
|
|
|
74509
75388
|
/***/ }),
|
|
74510
75389
|
|
|
@@ -74522,8 +75401,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
74522
75401
|
/* harmony export */ "createNavigation": () => (/* reexport safe */ piral_core_defaults_navigator_v5__WEBPACK_IMPORTED_MODULE_31__.createNavigation),
|
|
74523
75402
|
/* harmony export */ "createRedirect": () => (/* reexport safe */ piral_core_defaults_navigator_v5__WEBPACK_IMPORTED_MODULE_31__.createRedirect),
|
|
74524
75403
|
/* harmony export */ "fillDependencies": () => (/* binding */ fillDependencies),
|
|
74525
|
-
/* harmony export */ "integrateDebugger": () => (/* reexport safe */
|
|
74526
|
-
/* harmony export */ "integrateEmulator": () => (/* reexport safe */
|
|
75404
|
+
/* harmony export */ "integrateDebugger": () => (/* reexport safe */ piral_core_tools_debugger__WEBPACK_IMPORTED_MODULE_37__.integrateDebugger),
|
|
75405
|
+
/* harmony export */ "integrateEmulator": () => (/* reexport safe */ piral_core_tools_emulator__WEBPACK_IMPORTED_MODULE_38__.integrateEmulator),
|
|
74527
75406
|
/* harmony export */ "publicPath": () => (/* binding */ publicPath),
|
|
74528
75407
|
/* harmony export */ "useRouteFilter": () => (/* binding */ useRouteFilter),
|
|
74529
75408
|
/* harmony export */ "useRouterContext": () => (/* reexport safe */ piral_core_defaults_navigator_v5__WEBPACK_IMPORTED_MODULE_31__.useRouterContext)
|
|
@@ -74570,8 +75449,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
74570
75449
|
/* harmony import */ var piral_core_defaults_DefaultRouter_v5__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! piral-core/_/defaults/DefaultRouter_v5 */ "../../framework/piral-core/esm/defaults/DefaultRouter_v5.js");
|
|
74571
75450
|
/* harmony import */ var piral_core_defaults_DefaultRouteSwitch_v5__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! piral-core/_/defaults/DefaultRouteSwitch_v5 */ "../../framework/piral-core/esm/defaults/DefaultRouteSwitch_v5.js");
|
|
74572
75451
|
/* harmony import */ var piral_core_defaults_navigator_v5__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! piral-core/_/defaults/navigator_v5 */ "../../framework/piral-core/esm/defaults/navigator_v5.js");
|
|
74573
|
-
/* harmony import */ var
|
|
74574
|
-
/* harmony import */ var
|
|
75452
|
+
/* harmony import */ var piral_core_tools_debugger__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! piral-core/_/tools/debugger */ "../../framework/piral-core/esm/tools/debugger.js");
|
|
75453
|
+
/* harmony import */ var piral_core_tools_emulator__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! piral-core/_/tools/emulator */ "../../framework/piral-core/esm/tools/emulator.js");
|
|
74575
75454
|
/* harmony import */ var piral_debug_utils__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! piral-debug-utils */ "../../utilities/piral-debug-utils/esm/emulator.js");
|
|
74576
75455
|
|
|
74577
75456
|
|
|
@@ -74613,12 +75492,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
74613
75492
|
|
|
74614
75493
|
|
|
74615
75494
|
|
|
74616
|
-
|
|
74617
75495
|
|
|
74618
75496
|
|
|
74619
75497
|
|
|
74620
75498
|
function fillDependencies(deps) {
|
|
74621
|
-
deps['sample-cross-fx']={};deps["@angular/common"]=_angular_common__WEBPACK_IMPORTED_MODULE_19__;deps["@angular/
|
|
75499
|
+
deps['sample-cross-fx']={};deps["@angular/common"]=_angular_common__WEBPACK_IMPORTED_MODULE_19__;deps["@angular/compiler"]=_angular_compiler__WEBPACK_IMPORTED_MODULE_0__;deps["@angular/core"]=_angular_core__WEBPACK_IMPORTED_MODULE_20__;deps["@angular/platform-browser"]=_angular_platform_browser__WEBPACK_IMPORTED_MODULE_21__;deps["@angular/platform-browser-dynamic"]=_angular_platform_browser_dynamic__WEBPACK_IMPORTED_MODULE_22__;deps["@webcomponents/webcomponentsjs"]=_webcomponents_webcomponentsjs__WEBPACK_IMPORTED_MODULE_1__;deps["angular"]=angular__WEBPACK_IMPORTED_MODULE_2__;deps["aurelia-framework"]=aurelia_framework__WEBPACK_IMPORTED_MODULE_3__;deps["aurelia-templating-binding"]=aurelia_templating_binding__WEBPACK_IMPORTED_MODULE_4__;deps["aurelia-templating-resources"]=aurelia_templating_resources__WEBPACK_IMPORTED_MODULE_5__;deps["aurelia-pal-browser"]=aurelia_pal_browser__WEBPACK_IMPORTED_MODULE_6__;deps["aurelia-event-aggregator"]=aurelia_event_aggregator__WEBPACK_IMPORTED_MODULE_7__;deps["aurelia-history-browser"]=aurelia_history_browser__WEBPACK_IMPORTED_MODULE_8__;deps["hyperapp"]=hyperapp__WEBPACK_IMPORTED_MODULE_9__;deps["inferno"]=inferno__WEBPACK_IMPORTED_MODULE_10__;deps["inferno-create-element"]=inferno_create_element__WEBPACK_IMPORTED_MODULE_11__;deps["mithril"]=mithril__WEBPACK_IMPORTED_MODULE_12__;deps["lit-element"]=lit_element__WEBPACK_IMPORTED_MODULE_13__;deps["solid-js"]=solid_js__WEBPACK_IMPORTED_MODULE_23__;deps["solid-js/dom"]=solid_js_dom__WEBPACK_IMPORTED_MODULE_24__;deps["piral-ng/common"]=piral_ng_common__WEBPACK_IMPORTED_MODULE_25__;deps["preact"]=preact__WEBPACK_IMPORTED_MODULE_14__;deps["riot"]=riot__WEBPACK_IMPORTED_MODULE_15__;deps["rxjs"]=rxjs__WEBPACK_IMPORTED_MODULE_26__;deps["vue"]=vue__WEBPACK_IMPORTED_MODULE_27__;deps["zone.js"]=zone_js__WEBPACK_IMPORTED_MODULE_16__;deps["tslib"]=tslib__WEBPACK_IMPORTED_MODULE_28__;deps["react"]=react__WEBPACK_IMPORTED_MODULE_17__;deps["react-dom"]=/*#__PURE__*/ (react_dom__WEBPACK_IMPORTED_MODULE_18___namespace_cache || (react_dom__WEBPACK_IMPORTED_MODULE_18___namespace_cache = __webpack_require__.t(react_dom__WEBPACK_IMPORTED_MODULE_18__, 2)));deps["react-router"]=react_router__WEBPACK_IMPORTED_MODULE_29__;deps["react-router-dom"]=react_router_dom__WEBPACK_IMPORTED_MODULE_30__
|
|
74622
75500
|
}
|
|
74623
75501
|
|
|
74624
75502
|
|
|
@@ -125496,1122 +126374,6 @@ module.exports = function (list, options) {
|
|
|
125496
126374
|
};
|
|
125497
126375
|
};
|
|
125498
126376
|
|
|
125499
|
-
/***/ }),
|
|
125500
|
-
|
|
125501
|
-
/***/ "../../../node_modules/systemjs/dist/extras/named-register.js":
|
|
125502
|
-
/*!********************************************************************!*\
|
|
125503
|
-
!*** ../../../node_modules/systemjs/dist/extras/named-register.js ***!
|
|
125504
|
-
\********************************************************************/
|
|
125505
|
-
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
|
|
125506
|
-
|
|
125507
|
-
(function(){/*
|
|
125508
|
-
* SystemJS named register extension
|
|
125509
|
-
* Supports System.register('name', [..deps..], function (_export, _context) { ... })
|
|
125510
|
-
*
|
|
125511
|
-
* Names are written to the registry as-is
|
|
125512
|
-
* System.register('x', ...) can be imported as System.import('x')
|
|
125513
|
-
*/
|
|
125514
|
-
(function (global) {
|
|
125515
|
-
var System = global.System;
|
|
125516
|
-
setRegisterRegistry(System);
|
|
125517
|
-
var systemJSPrototype = System.constructor.prototype;
|
|
125518
|
-
var constructor = System.constructor;
|
|
125519
|
-
var SystemJS = function () {
|
|
125520
|
-
constructor.call(this);
|
|
125521
|
-
setRegisterRegistry(this);
|
|
125522
|
-
};
|
|
125523
|
-
SystemJS.prototype = systemJSPrototype;
|
|
125524
|
-
System.constructor = SystemJS;
|
|
125525
|
-
|
|
125526
|
-
var firstNamedDefine, firstName;
|
|
125527
|
-
|
|
125528
|
-
function setRegisterRegistry(systemInstance) {
|
|
125529
|
-
systemInstance.registerRegistry = Object.create(null);
|
|
125530
|
-
systemInstance.namedRegisterAliases = Object.create(null);
|
|
125531
|
-
}
|
|
125532
|
-
|
|
125533
|
-
var register = systemJSPrototype.register;
|
|
125534
|
-
systemJSPrototype.register = function (name, deps, declare) {
|
|
125535
|
-
if (typeof name !== 'string')
|
|
125536
|
-
return register.apply(this, arguments);
|
|
125537
|
-
var define = [deps, declare];
|
|
125538
|
-
this.registerRegistry[name] = define;
|
|
125539
|
-
if (!firstNamedDefine) {
|
|
125540
|
-
firstNamedDefine = define;
|
|
125541
|
-
firstName = name;
|
|
125542
|
-
}
|
|
125543
|
-
Promise.resolve().then(function () {
|
|
125544
|
-
firstNamedDefine = null;
|
|
125545
|
-
firstName = null;
|
|
125546
|
-
});
|
|
125547
|
-
return register.apply(this, [deps, declare]);
|
|
125548
|
-
};
|
|
125549
|
-
|
|
125550
|
-
var resolve = systemJSPrototype.resolve;
|
|
125551
|
-
systemJSPrototype.resolve = function (id, parentURL) {
|
|
125552
|
-
try {
|
|
125553
|
-
// Prefer import map (or other existing) resolution over the registerRegistry
|
|
125554
|
-
return resolve.call(this, id, parentURL);
|
|
125555
|
-
} catch (err) {
|
|
125556
|
-
if (id in this.registerRegistry) {
|
|
125557
|
-
return this.namedRegisterAliases[id] || id;
|
|
125558
|
-
}
|
|
125559
|
-
throw err;
|
|
125560
|
-
}
|
|
125561
|
-
};
|
|
125562
|
-
|
|
125563
|
-
var instantiate = systemJSPrototype.instantiate;
|
|
125564
|
-
systemJSPrototype.instantiate = function (url, firstParentUrl) {
|
|
125565
|
-
var result = this.registerRegistry[url];
|
|
125566
|
-
if (result) {
|
|
125567
|
-
this.registerRegistry[url] = null;
|
|
125568
|
-
return result;
|
|
125569
|
-
} else {
|
|
125570
|
-
return instantiate.call(this, url, firstParentUrl);
|
|
125571
|
-
}
|
|
125572
|
-
};
|
|
125573
|
-
|
|
125574
|
-
var getRegister = systemJSPrototype.getRegister;
|
|
125575
|
-
systemJSPrototype.getRegister = function (url) {
|
|
125576
|
-
// Calling getRegister() because other extras need to know it was called so they can perform side effects
|
|
125577
|
-
var register = getRegister.call(this, url);
|
|
125578
|
-
|
|
125579
|
-
if (firstName && url) {
|
|
125580
|
-
this.namedRegisterAliases[firstName] = url;
|
|
125581
|
-
}
|
|
125582
|
-
var result = firstNamedDefine || register;
|
|
125583
|
-
firstNamedDefine = null;
|
|
125584
|
-
firstName = null;
|
|
125585
|
-
return result;
|
|
125586
|
-
};
|
|
125587
|
-
})(typeof self !== 'undefined' ? self : __webpack_require__.g);})();
|
|
125588
|
-
|
|
125589
|
-
/***/ }),
|
|
125590
|
-
|
|
125591
|
-
/***/ "../../../node_modules/systemjs/dist/system.js":
|
|
125592
|
-
/*!*****************************************************!*\
|
|
125593
|
-
!*** ../../../node_modules/systemjs/dist/system.js ***!
|
|
125594
|
-
\*****************************************************/
|
|
125595
|
-
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
|
|
125596
|
-
|
|
125597
|
-
/*
|
|
125598
|
-
* SystemJS 6.12.1
|
|
125599
|
-
*/
|
|
125600
|
-
(function () {
|
|
125601
|
-
|
|
125602
|
-
function errMsg(errCode, msg) {
|
|
125603
|
-
return (msg || "") + " (SystemJS Error#" + errCode + " " + "https://git.io/JvFET#" + errCode + ")";
|
|
125604
|
-
}
|
|
125605
|
-
|
|
125606
|
-
var hasSymbol = typeof Symbol !== 'undefined';
|
|
125607
|
-
var hasSelf = typeof self !== 'undefined';
|
|
125608
|
-
var hasDocument = typeof document !== 'undefined';
|
|
125609
|
-
|
|
125610
|
-
var envGlobal = hasSelf ? self : __webpack_require__.g;
|
|
125611
|
-
|
|
125612
|
-
var baseUrl;
|
|
125613
|
-
|
|
125614
|
-
if (hasDocument) {
|
|
125615
|
-
var baseEl = document.querySelector('base[href]');
|
|
125616
|
-
if (baseEl)
|
|
125617
|
-
baseUrl = baseEl.href;
|
|
125618
|
-
}
|
|
125619
|
-
|
|
125620
|
-
if (!baseUrl && typeof location !== 'undefined') {
|
|
125621
|
-
baseUrl = location.href.split('#')[0].split('?')[0];
|
|
125622
|
-
var lastSepIndex = baseUrl.lastIndexOf('/');
|
|
125623
|
-
if (lastSepIndex !== -1)
|
|
125624
|
-
baseUrl = baseUrl.slice(0, lastSepIndex + 1);
|
|
125625
|
-
}
|
|
125626
|
-
|
|
125627
|
-
var backslashRegEx = /\\/g;
|
|
125628
|
-
function resolveIfNotPlainOrUrl (relUrl, parentUrl) {
|
|
125629
|
-
if (relUrl.indexOf('\\') !== -1)
|
|
125630
|
-
relUrl = relUrl.replace(backslashRegEx, '/');
|
|
125631
|
-
// protocol-relative
|
|
125632
|
-
if (relUrl[0] === '/' && relUrl[1] === '/') {
|
|
125633
|
-
return parentUrl.slice(0, parentUrl.indexOf(':') + 1) + relUrl;
|
|
125634
|
-
}
|
|
125635
|
-
// relative-url
|
|
125636
|
-
else if (relUrl[0] === '.' && (relUrl[1] === '/' || relUrl[1] === '.' && (relUrl[2] === '/' || relUrl.length === 2 && (relUrl += '/')) ||
|
|
125637
|
-
relUrl.length === 1 && (relUrl += '/')) ||
|
|
125638
|
-
relUrl[0] === '/') {
|
|
125639
|
-
var parentProtocol = parentUrl.slice(0, parentUrl.indexOf(':') + 1);
|
|
125640
|
-
// Disabled, but these cases will give inconsistent results for deep backtracking
|
|
125641
|
-
//if (parentUrl[parentProtocol.length] !== '/')
|
|
125642
|
-
// throw Error('Cannot resolve');
|
|
125643
|
-
// read pathname from parent URL
|
|
125644
|
-
// pathname taken to be part after leading "/"
|
|
125645
|
-
var pathname;
|
|
125646
|
-
if (parentUrl[parentProtocol.length + 1] === '/') {
|
|
125647
|
-
// resolving to a :// so we need to read out the auth and host
|
|
125648
|
-
if (parentProtocol !== 'file:') {
|
|
125649
|
-
pathname = parentUrl.slice(parentProtocol.length + 2);
|
|
125650
|
-
pathname = pathname.slice(pathname.indexOf('/') + 1);
|
|
125651
|
-
}
|
|
125652
|
-
else {
|
|
125653
|
-
pathname = parentUrl.slice(8);
|
|
125654
|
-
}
|
|
125655
|
-
}
|
|
125656
|
-
else {
|
|
125657
|
-
// resolving to :/ so pathname is the /... part
|
|
125658
|
-
pathname = parentUrl.slice(parentProtocol.length + (parentUrl[parentProtocol.length] === '/'));
|
|
125659
|
-
}
|
|
125660
|
-
|
|
125661
|
-
if (relUrl[0] === '/')
|
|
125662
|
-
return parentUrl.slice(0, parentUrl.length - pathname.length - 1) + relUrl;
|
|
125663
|
-
|
|
125664
|
-
// join together and split for removal of .. and . segments
|
|
125665
|
-
// looping the string instead of anything fancy for perf reasons
|
|
125666
|
-
// '../../../../../z' resolved to 'x/y' is just 'z'
|
|
125667
|
-
var segmented = pathname.slice(0, pathname.lastIndexOf('/') + 1) + relUrl;
|
|
125668
|
-
|
|
125669
|
-
var output = [];
|
|
125670
|
-
var segmentIndex = -1;
|
|
125671
|
-
for (var i = 0; i < segmented.length; i++) {
|
|
125672
|
-
// busy reading a segment - only terminate on '/'
|
|
125673
|
-
if (segmentIndex !== -1) {
|
|
125674
|
-
if (segmented[i] === '/') {
|
|
125675
|
-
output.push(segmented.slice(segmentIndex, i + 1));
|
|
125676
|
-
segmentIndex = -1;
|
|
125677
|
-
}
|
|
125678
|
-
}
|
|
125679
|
-
|
|
125680
|
-
// new segment - check if it is relative
|
|
125681
|
-
else if (segmented[i] === '.') {
|
|
125682
|
-
// ../ segment
|
|
125683
|
-
if (segmented[i + 1] === '.' && (segmented[i + 2] === '/' || i + 2 === segmented.length)) {
|
|
125684
|
-
output.pop();
|
|
125685
|
-
i += 2;
|
|
125686
|
-
}
|
|
125687
|
-
// ./ segment
|
|
125688
|
-
else if (segmented[i + 1] === '/' || i + 1 === segmented.length) {
|
|
125689
|
-
i += 1;
|
|
125690
|
-
}
|
|
125691
|
-
else {
|
|
125692
|
-
// the start of a new segment as below
|
|
125693
|
-
segmentIndex = i;
|
|
125694
|
-
}
|
|
125695
|
-
}
|
|
125696
|
-
// it is the start of a new segment
|
|
125697
|
-
else {
|
|
125698
|
-
segmentIndex = i;
|
|
125699
|
-
}
|
|
125700
|
-
}
|
|
125701
|
-
// finish reading out the last segment
|
|
125702
|
-
if (segmentIndex !== -1)
|
|
125703
|
-
output.push(segmented.slice(segmentIndex));
|
|
125704
|
-
return parentUrl.slice(0, parentUrl.length - pathname.length) + output.join('');
|
|
125705
|
-
}
|
|
125706
|
-
}
|
|
125707
|
-
|
|
125708
|
-
/*
|
|
125709
|
-
* Import maps implementation
|
|
125710
|
-
*
|
|
125711
|
-
* To make lookups fast we pre-resolve the entire import map
|
|
125712
|
-
* and then match based on backtracked hash lookups
|
|
125713
|
-
*
|
|
125714
|
-
*/
|
|
125715
|
-
|
|
125716
|
-
function resolveUrl (relUrl, parentUrl) {
|
|
125717
|
-
return resolveIfNotPlainOrUrl(relUrl, parentUrl) || (relUrl.indexOf(':') !== -1 ? relUrl : resolveIfNotPlainOrUrl('./' + relUrl, parentUrl));
|
|
125718
|
-
}
|
|
125719
|
-
|
|
125720
|
-
function resolveAndComposePackages (packages, outPackages, baseUrl, parentMap, parentUrl) {
|
|
125721
|
-
for (var p in packages) {
|
|
125722
|
-
var resolvedLhs = resolveIfNotPlainOrUrl(p, baseUrl) || p;
|
|
125723
|
-
var rhs = packages[p];
|
|
125724
|
-
// package fallbacks not currently supported
|
|
125725
|
-
if (typeof rhs !== 'string')
|
|
125726
|
-
continue;
|
|
125727
|
-
var mapped = resolveImportMap(parentMap, resolveIfNotPlainOrUrl(rhs, baseUrl) || rhs, parentUrl);
|
|
125728
|
-
if (!mapped) {
|
|
125729
|
-
targetWarning('W1', p, rhs, 'bare specifier did not resolve');
|
|
125730
|
-
}
|
|
125731
|
-
else
|
|
125732
|
-
outPackages[resolvedLhs] = mapped;
|
|
125733
|
-
}
|
|
125734
|
-
}
|
|
125735
|
-
|
|
125736
|
-
function resolveAndComposeImportMap (json, baseUrl, outMap) {
|
|
125737
|
-
if (json.imports)
|
|
125738
|
-
resolveAndComposePackages(json.imports, outMap.imports, baseUrl, outMap, null);
|
|
125739
|
-
|
|
125740
|
-
var u;
|
|
125741
|
-
for (u in json.scopes || {}) {
|
|
125742
|
-
var resolvedScope = resolveUrl(u, baseUrl);
|
|
125743
|
-
resolveAndComposePackages(json.scopes[u], outMap.scopes[resolvedScope] || (outMap.scopes[resolvedScope] = {}), baseUrl, outMap, resolvedScope);
|
|
125744
|
-
}
|
|
125745
|
-
|
|
125746
|
-
for (u in json.depcache || {})
|
|
125747
|
-
outMap.depcache[resolveUrl(u, baseUrl)] = json.depcache[u];
|
|
125748
|
-
|
|
125749
|
-
for (u in json.integrity || {})
|
|
125750
|
-
outMap.integrity[resolveUrl(u, baseUrl)] = json.integrity[u];
|
|
125751
|
-
}
|
|
125752
|
-
|
|
125753
|
-
function getMatch (path, matchObj) {
|
|
125754
|
-
if (matchObj[path])
|
|
125755
|
-
return path;
|
|
125756
|
-
var sepIndex = path.length;
|
|
125757
|
-
do {
|
|
125758
|
-
var segment = path.slice(0, sepIndex + 1);
|
|
125759
|
-
if (segment in matchObj)
|
|
125760
|
-
return segment;
|
|
125761
|
-
} while ((sepIndex = path.lastIndexOf('/', sepIndex - 1)) !== -1)
|
|
125762
|
-
}
|
|
125763
|
-
|
|
125764
|
-
function applyPackages (id, packages) {
|
|
125765
|
-
var pkgName = getMatch(id, packages);
|
|
125766
|
-
if (pkgName) {
|
|
125767
|
-
var pkg = packages[pkgName];
|
|
125768
|
-
if (pkg === null) return;
|
|
125769
|
-
if (id.length > pkgName.length && pkg[pkg.length - 1] !== '/') {
|
|
125770
|
-
targetWarning('W2', pkgName, pkg, "should have a trailing '/'");
|
|
125771
|
-
}
|
|
125772
|
-
else
|
|
125773
|
-
return pkg + id.slice(pkgName.length);
|
|
125774
|
-
}
|
|
125775
|
-
}
|
|
125776
|
-
|
|
125777
|
-
function targetWarning (code, match, target, msg) {
|
|
125778
|
-
console.warn(errMsg(code, "Package target " + msg + ", resolving target '" + target + "' for " + match));
|
|
125779
|
-
}
|
|
125780
|
-
|
|
125781
|
-
function resolveImportMap (importMap, resolvedOrPlain, parentUrl) {
|
|
125782
|
-
var scopes = importMap.scopes;
|
|
125783
|
-
var scopeUrl = parentUrl && getMatch(parentUrl, scopes);
|
|
125784
|
-
while (scopeUrl) {
|
|
125785
|
-
var packageResolution = applyPackages(resolvedOrPlain, scopes[scopeUrl]);
|
|
125786
|
-
if (packageResolution)
|
|
125787
|
-
return packageResolution;
|
|
125788
|
-
scopeUrl = getMatch(scopeUrl.slice(0, scopeUrl.lastIndexOf('/')), scopes);
|
|
125789
|
-
}
|
|
125790
|
-
return applyPackages(resolvedOrPlain, importMap.imports) || resolvedOrPlain.indexOf(':') !== -1 && resolvedOrPlain;
|
|
125791
|
-
}
|
|
125792
|
-
|
|
125793
|
-
/*
|
|
125794
|
-
* SystemJS Core
|
|
125795
|
-
*
|
|
125796
|
-
* Provides
|
|
125797
|
-
* - System.import
|
|
125798
|
-
* - System.register support for
|
|
125799
|
-
* live bindings, function hoisting through circular references,
|
|
125800
|
-
* reexports, dynamic import, import.meta.url, top-level await
|
|
125801
|
-
* - System.getRegister to get the registration
|
|
125802
|
-
* - Symbol.toStringTag support in Module objects
|
|
125803
|
-
* - Hookable System.createContext to customize import.meta
|
|
125804
|
-
* - System.onload(err, id, deps) handler for tracing / hot-reloading
|
|
125805
|
-
*
|
|
125806
|
-
* Core comes with no System.prototype.resolve or
|
|
125807
|
-
* System.prototype.instantiate implementations
|
|
125808
|
-
*/
|
|
125809
|
-
|
|
125810
|
-
var toStringTag$1 = hasSymbol && Symbol.toStringTag;
|
|
125811
|
-
var REGISTRY = hasSymbol ? Symbol() : '@';
|
|
125812
|
-
|
|
125813
|
-
function SystemJS () {
|
|
125814
|
-
this[REGISTRY] = {};
|
|
125815
|
-
}
|
|
125816
|
-
|
|
125817
|
-
var systemJSPrototype = SystemJS.prototype;
|
|
125818
|
-
|
|
125819
|
-
systemJSPrototype.import = function (id, parentUrl) {
|
|
125820
|
-
var loader = this;
|
|
125821
|
-
return Promise.resolve(loader.prepareImport())
|
|
125822
|
-
.then(function() {
|
|
125823
|
-
return loader.resolve(id, parentUrl);
|
|
125824
|
-
})
|
|
125825
|
-
.then(function (id) {
|
|
125826
|
-
var load = getOrCreateLoad(loader, id);
|
|
125827
|
-
return load.C || topLevelLoad(loader, load);
|
|
125828
|
-
});
|
|
125829
|
-
};
|
|
125830
|
-
|
|
125831
|
-
// Hookable createContext function -> allowing eg custom import meta
|
|
125832
|
-
systemJSPrototype.createContext = function (parentId) {
|
|
125833
|
-
var loader = this;
|
|
125834
|
-
return {
|
|
125835
|
-
url: parentId,
|
|
125836
|
-
resolve: function (id, parentUrl) {
|
|
125837
|
-
return Promise.resolve(loader.resolve(id, parentUrl || parentId));
|
|
125838
|
-
}
|
|
125839
|
-
};
|
|
125840
|
-
};
|
|
125841
|
-
|
|
125842
|
-
// onLoad(err, id, deps) provided for tracing / hot-reloading
|
|
125843
|
-
systemJSPrototype.onload = function () {};
|
|
125844
|
-
function loadToId (load) {
|
|
125845
|
-
return load.id;
|
|
125846
|
-
}
|
|
125847
|
-
function triggerOnload (loader, load, err, isErrSource) {
|
|
125848
|
-
loader.onload(err, load.id, load.d && load.d.map(loadToId), !!isErrSource);
|
|
125849
|
-
if (err)
|
|
125850
|
-
throw err;
|
|
125851
|
-
}
|
|
125852
|
-
|
|
125853
|
-
var lastRegister;
|
|
125854
|
-
systemJSPrototype.register = function (deps, declare) {
|
|
125855
|
-
lastRegister = [deps, declare];
|
|
125856
|
-
};
|
|
125857
|
-
|
|
125858
|
-
/*
|
|
125859
|
-
* getRegister provides the last anonymous System.register call
|
|
125860
|
-
*/
|
|
125861
|
-
systemJSPrototype.getRegister = function () {
|
|
125862
|
-
var _lastRegister = lastRegister;
|
|
125863
|
-
lastRegister = undefined;
|
|
125864
|
-
return _lastRegister;
|
|
125865
|
-
};
|
|
125866
|
-
|
|
125867
|
-
function getOrCreateLoad (loader, id, firstParentUrl) {
|
|
125868
|
-
var load = loader[REGISTRY][id];
|
|
125869
|
-
if (load)
|
|
125870
|
-
return load;
|
|
125871
|
-
|
|
125872
|
-
var importerSetters = [];
|
|
125873
|
-
var ns = Object.create(null);
|
|
125874
|
-
if (toStringTag$1)
|
|
125875
|
-
Object.defineProperty(ns, toStringTag$1, { value: 'Module' });
|
|
125876
|
-
|
|
125877
|
-
var instantiatePromise = Promise.resolve()
|
|
125878
|
-
.then(function () {
|
|
125879
|
-
return loader.instantiate(id, firstParentUrl);
|
|
125880
|
-
})
|
|
125881
|
-
.then(function (registration) {
|
|
125882
|
-
if (!registration)
|
|
125883
|
-
throw Error(errMsg(2, 'Module ' + id + ' did not instantiate'));
|
|
125884
|
-
function _export (name, value) {
|
|
125885
|
-
// note if we have hoisted exports (including reexports)
|
|
125886
|
-
load.h = true;
|
|
125887
|
-
var changed = false;
|
|
125888
|
-
if (typeof name === 'string') {
|
|
125889
|
-
if (!(name in ns) || ns[name] !== value) {
|
|
125890
|
-
ns[name] = value;
|
|
125891
|
-
changed = true;
|
|
125892
|
-
}
|
|
125893
|
-
}
|
|
125894
|
-
else {
|
|
125895
|
-
for (var p in name) {
|
|
125896
|
-
var value = name[p];
|
|
125897
|
-
if (!(p in ns) || ns[p] !== value) {
|
|
125898
|
-
ns[p] = value;
|
|
125899
|
-
changed = true;
|
|
125900
|
-
}
|
|
125901
|
-
}
|
|
125902
|
-
|
|
125903
|
-
if (name && name.__esModule) {
|
|
125904
|
-
ns.__esModule = name.__esModule;
|
|
125905
|
-
}
|
|
125906
|
-
}
|
|
125907
|
-
if (changed)
|
|
125908
|
-
for (var i = 0; i < importerSetters.length; i++) {
|
|
125909
|
-
var setter = importerSetters[i];
|
|
125910
|
-
if (setter) setter(ns);
|
|
125911
|
-
}
|
|
125912
|
-
return value;
|
|
125913
|
-
}
|
|
125914
|
-
var declared = registration[1](_export, registration[1].length === 2 ? {
|
|
125915
|
-
import: function (importId) {
|
|
125916
|
-
return loader.import(importId, id);
|
|
125917
|
-
},
|
|
125918
|
-
meta: loader.createContext(id)
|
|
125919
|
-
} : undefined);
|
|
125920
|
-
load.e = declared.execute || function () {};
|
|
125921
|
-
return [registration[0], declared.setters || []];
|
|
125922
|
-
}, function (err) {
|
|
125923
|
-
load.e = null;
|
|
125924
|
-
load.er = err;
|
|
125925
|
-
triggerOnload(loader, load, err, true);
|
|
125926
|
-
throw err;
|
|
125927
|
-
});
|
|
125928
|
-
|
|
125929
|
-
var linkPromise = instantiatePromise
|
|
125930
|
-
.then(function (instantiation) {
|
|
125931
|
-
return Promise.all(instantiation[0].map(function (dep, i) {
|
|
125932
|
-
var setter = instantiation[1][i];
|
|
125933
|
-
return Promise.resolve(loader.resolve(dep, id))
|
|
125934
|
-
.then(function (depId) {
|
|
125935
|
-
var depLoad = getOrCreateLoad(loader, depId, id);
|
|
125936
|
-
// depLoad.I may be undefined for already-evaluated
|
|
125937
|
-
return Promise.resolve(depLoad.I)
|
|
125938
|
-
.then(function () {
|
|
125939
|
-
if (setter) {
|
|
125940
|
-
depLoad.i.push(setter);
|
|
125941
|
-
// only run early setters when there are hoisted exports of that module
|
|
125942
|
-
// the timing works here as pending hoisted export calls will trigger through importerSetters
|
|
125943
|
-
if (depLoad.h || !depLoad.I)
|
|
125944
|
-
setter(depLoad.n);
|
|
125945
|
-
}
|
|
125946
|
-
return depLoad;
|
|
125947
|
-
});
|
|
125948
|
-
});
|
|
125949
|
-
}))
|
|
125950
|
-
.then(function (depLoads) {
|
|
125951
|
-
load.d = depLoads;
|
|
125952
|
-
});
|
|
125953
|
-
});
|
|
125954
|
-
|
|
125955
|
-
// Capital letter = a promise function
|
|
125956
|
-
return load = loader[REGISTRY][id] = {
|
|
125957
|
-
id: id,
|
|
125958
|
-
// importerSetters, the setters functions registered to this dependency
|
|
125959
|
-
// we retain this to add more later
|
|
125960
|
-
i: importerSetters,
|
|
125961
|
-
// module namespace object
|
|
125962
|
-
n: ns,
|
|
125963
|
-
|
|
125964
|
-
// instantiate
|
|
125965
|
-
I: instantiatePromise,
|
|
125966
|
-
// link
|
|
125967
|
-
L: linkPromise,
|
|
125968
|
-
// whether it has hoisted exports
|
|
125969
|
-
h: false,
|
|
125970
|
-
|
|
125971
|
-
// On instantiate completion we have populated:
|
|
125972
|
-
// dependency load records
|
|
125973
|
-
d: undefined,
|
|
125974
|
-
// execution function
|
|
125975
|
-
e: undefined,
|
|
125976
|
-
|
|
125977
|
-
// On execution we have populated:
|
|
125978
|
-
// the execution error if any
|
|
125979
|
-
er: undefined,
|
|
125980
|
-
// in the case of TLA, the execution promise
|
|
125981
|
-
E: undefined,
|
|
125982
|
-
|
|
125983
|
-
// On execution, L, I, E cleared
|
|
125984
|
-
|
|
125985
|
-
// Promise for top-level completion
|
|
125986
|
-
C: undefined,
|
|
125987
|
-
|
|
125988
|
-
// parent instantiator / executor
|
|
125989
|
-
p: undefined
|
|
125990
|
-
};
|
|
125991
|
-
}
|
|
125992
|
-
|
|
125993
|
-
function instantiateAll (loader, load, parent, loaded) {
|
|
125994
|
-
if (!loaded[load.id]) {
|
|
125995
|
-
loaded[load.id] = true;
|
|
125996
|
-
// load.L may be undefined for already-instantiated
|
|
125997
|
-
return Promise.resolve(load.L)
|
|
125998
|
-
.then(function () {
|
|
125999
|
-
if (!load.p || load.p.e === null)
|
|
126000
|
-
load.p = parent;
|
|
126001
|
-
return Promise.all(load.d.map(function (dep) {
|
|
126002
|
-
return instantiateAll(loader, dep, parent, loaded);
|
|
126003
|
-
}));
|
|
126004
|
-
})
|
|
126005
|
-
.catch(function (err) {
|
|
126006
|
-
if (load.er)
|
|
126007
|
-
throw err;
|
|
126008
|
-
load.e = null;
|
|
126009
|
-
triggerOnload(loader, load, err, false);
|
|
126010
|
-
throw err;
|
|
126011
|
-
});
|
|
126012
|
-
}
|
|
126013
|
-
}
|
|
126014
|
-
|
|
126015
|
-
function topLevelLoad (loader, load) {
|
|
126016
|
-
return load.C = instantiateAll(loader, load, load, {})
|
|
126017
|
-
.then(function () {
|
|
126018
|
-
return postOrderExec(loader, load, {});
|
|
126019
|
-
})
|
|
126020
|
-
.then(function () {
|
|
126021
|
-
return load.n;
|
|
126022
|
-
});
|
|
126023
|
-
}
|
|
126024
|
-
|
|
126025
|
-
// the closest we can get to call(undefined)
|
|
126026
|
-
var nullContext = Object.freeze(Object.create(null));
|
|
126027
|
-
|
|
126028
|
-
// returns a promise if and only if a top-level await subgraph
|
|
126029
|
-
// throws on sync errors
|
|
126030
|
-
function postOrderExec (loader, load, seen) {
|
|
126031
|
-
if (seen[load.id])
|
|
126032
|
-
return;
|
|
126033
|
-
seen[load.id] = true;
|
|
126034
|
-
|
|
126035
|
-
if (!load.e) {
|
|
126036
|
-
if (load.er)
|
|
126037
|
-
throw load.er;
|
|
126038
|
-
if (load.E)
|
|
126039
|
-
return load.E;
|
|
126040
|
-
return;
|
|
126041
|
-
}
|
|
126042
|
-
|
|
126043
|
-
// deps execute first, unless circular
|
|
126044
|
-
var depLoadPromises;
|
|
126045
|
-
load.d.forEach(function (depLoad) {
|
|
126046
|
-
try {
|
|
126047
|
-
var depLoadPromise = postOrderExec(loader, depLoad, seen);
|
|
126048
|
-
if (depLoadPromise)
|
|
126049
|
-
(depLoadPromises = depLoadPromises || []).push(depLoadPromise);
|
|
126050
|
-
}
|
|
126051
|
-
catch (err) {
|
|
126052
|
-
load.e = null;
|
|
126053
|
-
load.er = err;
|
|
126054
|
-
triggerOnload(loader, load, err, false);
|
|
126055
|
-
throw err;
|
|
126056
|
-
}
|
|
126057
|
-
});
|
|
126058
|
-
if (depLoadPromises)
|
|
126059
|
-
return Promise.all(depLoadPromises).then(doExec);
|
|
126060
|
-
|
|
126061
|
-
return doExec();
|
|
126062
|
-
|
|
126063
|
-
function doExec () {
|
|
126064
|
-
try {
|
|
126065
|
-
var execPromise = load.e.call(nullContext);
|
|
126066
|
-
if (execPromise) {
|
|
126067
|
-
execPromise = execPromise.then(function () {
|
|
126068
|
-
load.C = load.n;
|
|
126069
|
-
load.E = null; // indicates completion
|
|
126070
|
-
if (true) triggerOnload(loader, load, null, true);
|
|
126071
|
-
}, function (err) {
|
|
126072
|
-
load.er = err;
|
|
126073
|
-
load.E = null;
|
|
126074
|
-
if (true) triggerOnload(loader, load, err, true);
|
|
126075
|
-
throw err;
|
|
126076
|
-
});
|
|
126077
|
-
return load.E = execPromise;
|
|
126078
|
-
}
|
|
126079
|
-
// (should be a promise, but a minify optimization to leave out Promise.resolve)
|
|
126080
|
-
load.C = load.n;
|
|
126081
|
-
load.L = load.I = undefined;
|
|
126082
|
-
}
|
|
126083
|
-
catch (err) {
|
|
126084
|
-
load.er = err;
|
|
126085
|
-
throw err;
|
|
126086
|
-
}
|
|
126087
|
-
finally {
|
|
126088
|
-
load.e = null;
|
|
126089
|
-
triggerOnload(loader, load, load.er, true);
|
|
126090
|
-
}
|
|
126091
|
-
}
|
|
126092
|
-
}
|
|
126093
|
-
|
|
126094
|
-
envGlobal.System = new SystemJS();
|
|
126095
|
-
|
|
126096
|
-
/*
|
|
126097
|
-
* SystemJS browser attachments for script and import map processing
|
|
126098
|
-
*/
|
|
126099
|
-
|
|
126100
|
-
var importMapPromise = Promise.resolve();
|
|
126101
|
-
var importMap = { imports: {}, scopes: {}, depcache: {}, integrity: {} };
|
|
126102
|
-
|
|
126103
|
-
// Scripts are processed immediately, on the first System.import, and on DOMReady.
|
|
126104
|
-
// Import map scripts are processed only once (by being marked) and in order for each phase.
|
|
126105
|
-
// This is to avoid using DOM mutation observers in core, although that would be an alternative.
|
|
126106
|
-
var processFirst = hasDocument;
|
|
126107
|
-
systemJSPrototype.prepareImport = function (doProcessScripts) {
|
|
126108
|
-
if (processFirst || doProcessScripts) {
|
|
126109
|
-
processScripts();
|
|
126110
|
-
processFirst = false;
|
|
126111
|
-
}
|
|
126112
|
-
return importMapPromise;
|
|
126113
|
-
};
|
|
126114
|
-
if (hasDocument) {
|
|
126115
|
-
processScripts();
|
|
126116
|
-
window.addEventListener('DOMContentLoaded', processScripts);
|
|
126117
|
-
}
|
|
126118
|
-
|
|
126119
|
-
function processScripts () {
|
|
126120
|
-
[].forEach.call(document.querySelectorAll('script'), function (script) {
|
|
126121
|
-
if (script.sp) // sp marker = systemjs processed
|
|
126122
|
-
return;
|
|
126123
|
-
// TODO: deprecate systemjs-module in next major now that we have auto import
|
|
126124
|
-
if (script.type === 'systemjs-module') {
|
|
126125
|
-
script.sp = true;
|
|
126126
|
-
if (!script.src)
|
|
126127
|
-
return;
|
|
126128
|
-
System.import(script.src.slice(0, 7) === 'import:' ? script.src.slice(7) : resolveUrl(script.src, baseUrl)).catch(function (e) {
|
|
126129
|
-
// if there is a script load error, dispatch an "error" event
|
|
126130
|
-
// on the script tag.
|
|
126131
|
-
if (e.message.indexOf('https://git.io/JvFET#3') > -1) {
|
|
126132
|
-
var event = document.createEvent('Event');
|
|
126133
|
-
event.initEvent('error', false, false);
|
|
126134
|
-
script.dispatchEvent(event);
|
|
126135
|
-
}
|
|
126136
|
-
return Promise.reject(e);
|
|
126137
|
-
});
|
|
126138
|
-
}
|
|
126139
|
-
else if (script.type === 'systemjs-importmap') {
|
|
126140
|
-
script.sp = true;
|
|
126141
|
-
// The passThrough property is for letting the module types fetch implementation know that this is not a SystemJS module.
|
|
126142
|
-
var fetchPromise = script.src ? (System.fetch || fetch)(script.src, { integrity: script.integrity, passThrough: true }).then(function (res) {
|
|
126143
|
-
if (!res.ok)
|
|
126144
|
-
throw Error('Invalid status code: ' + res.status);
|
|
126145
|
-
return res.text();
|
|
126146
|
-
}).catch(function (err) {
|
|
126147
|
-
err.message = errMsg('W4', 'Error fetching systemjs-import map ' + script.src) + '\n' + err.message;
|
|
126148
|
-
console.warn(err);
|
|
126149
|
-
if (typeof script.onerror === 'function') {
|
|
126150
|
-
script.onerror();
|
|
126151
|
-
}
|
|
126152
|
-
return '{}';
|
|
126153
|
-
}) : script.innerHTML;
|
|
126154
|
-
importMapPromise = importMapPromise.then(function () {
|
|
126155
|
-
return fetchPromise;
|
|
126156
|
-
}).then(function (text) {
|
|
126157
|
-
extendImportMap(importMap, text, script.src || baseUrl);
|
|
126158
|
-
});
|
|
126159
|
-
}
|
|
126160
|
-
});
|
|
126161
|
-
}
|
|
126162
|
-
|
|
126163
|
-
function extendImportMap (importMap, newMapText, newMapUrl) {
|
|
126164
|
-
var newMap = {};
|
|
126165
|
-
try {
|
|
126166
|
-
newMap = JSON.parse(newMapText);
|
|
126167
|
-
} catch (err) {
|
|
126168
|
-
console.warn(Error((errMsg('W5', "systemjs-importmap contains invalid JSON") + '\n\n' + newMapText + '\n' )));
|
|
126169
|
-
}
|
|
126170
|
-
resolveAndComposeImportMap(newMap, newMapUrl, importMap);
|
|
126171
|
-
}
|
|
126172
|
-
|
|
126173
|
-
/*
|
|
126174
|
-
* Script instantiation loading
|
|
126175
|
-
*/
|
|
126176
|
-
|
|
126177
|
-
if (hasDocument) {
|
|
126178
|
-
window.addEventListener('error', function (evt) {
|
|
126179
|
-
lastWindowErrorUrl = evt.filename;
|
|
126180
|
-
lastWindowError = evt.error;
|
|
126181
|
-
});
|
|
126182
|
-
var baseOrigin = location.origin;
|
|
126183
|
-
}
|
|
126184
|
-
|
|
126185
|
-
systemJSPrototype.createScript = function (url) {
|
|
126186
|
-
var script = document.createElement('script');
|
|
126187
|
-
script.async = true;
|
|
126188
|
-
// Only add cross origin for actual cross origin
|
|
126189
|
-
// this is because Safari triggers for all
|
|
126190
|
-
// - https://bugs.webkit.org/show_bug.cgi?id=171566
|
|
126191
|
-
if (url.indexOf(baseOrigin + '/'))
|
|
126192
|
-
script.crossOrigin = 'anonymous';
|
|
126193
|
-
var integrity = importMap.integrity[url];
|
|
126194
|
-
if (integrity)
|
|
126195
|
-
script.integrity = integrity;
|
|
126196
|
-
script.src = url;
|
|
126197
|
-
return script;
|
|
126198
|
-
};
|
|
126199
|
-
|
|
126200
|
-
// Auto imports -> script tags can be inlined directly for load phase
|
|
126201
|
-
var lastAutoImportDeps, lastAutoImportTimeout;
|
|
126202
|
-
var autoImportCandidates = {};
|
|
126203
|
-
var systemRegister = systemJSPrototype.register;
|
|
126204
|
-
systemJSPrototype.register = function (deps, declare) {
|
|
126205
|
-
if (hasDocument && document.readyState === 'loading' && typeof deps !== 'string') {
|
|
126206
|
-
var scripts = document.querySelectorAll('script[src]');
|
|
126207
|
-
var lastScript = scripts[scripts.length - 1];
|
|
126208
|
-
if (lastScript) {
|
|
126209
|
-
lastAutoImportDeps = deps;
|
|
126210
|
-
// if this is already a System load, then the instantiate has already begun
|
|
126211
|
-
// so this re-import has no consequence
|
|
126212
|
-
var loader = this;
|
|
126213
|
-
lastAutoImportTimeout = setTimeout(function () {
|
|
126214
|
-
autoImportCandidates[lastScript.src] = [deps, declare];
|
|
126215
|
-
loader.import(lastScript.src);
|
|
126216
|
-
});
|
|
126217
|
-
}
|
|
126218
|
-
}
|
|
126219
|
-
else {
|
|
126220
|
-
lastAutoImportDeps = undefined;
|
|
126221
|
-
}
|
|
126222
|
-
return systemRegister.call(this, deps, declare);
|
|
126223
|
-
};
|
|
126224
|
-
|
|
126225
|
-
var lastWindowErrorUrl, lastWindowError;
|
|
126226
|
-
systemJSPrototype.instantiate = function (url, firstParentUrl) {
|
|
126227
|
-
var autoImportRegistration = autoImportCandidates[url];
|
|
126228
|
-
if (autoImportRegistration) {
|
|
126229
|
-
delete autoImportCandidates[url];
|
|
126230
|
-
return autoImportRegistration;
|
|
126231
|
-
}
|
|
126232
|
-
var loader = this;
|
|
126233
|
-
return Promise.resolve(systemJSPrototype.createScript(url)).then(function (script) {
|
|
126234
|
-
return new Promise(function (resolve, reject) {
|
|
126235
|
-
script.addEventListener('error', function () {
|
|
126236
|
-
reject(Error(errMsg(3, 'Error loading ' + url + (firstParentUrl ? ' from ' + firstParentUrl : ''))));
|
|
126237
|
-
});
|
|
126238
|
-
script.addEventListener('load', function () {
|
|
126239
|
-
document.head.removeChild(script);
|
|
126240
|
-
// Note that if an error occurs that isn't caught by this if statement,
|
|
126241
|
-
// that getRegister will return null and a "did not instantiate" error will be thrown.
|
|
126242
|
-
if (lastWindowErrorUrl === url) {
|
|
126243
|
-
reject(lastWindowError);
|
|
126244
|
-
}
|
|
126245
|
-
else {
|
|
126246
|
-
var register = loader.getRegister(url);
|
|
126247
|
-
// Clear any auto import registration for dynamic import scripts during load
|
|
126248
|
-
if (register && register[0] === lastAutoImportDeps)
|
|
126249
|
-
clearTimeout(lastAutoImportTimeout);
|
|
126250
|
-
resolve(register);
|
|
126251
|
-
}
|
|
126252
|
-
});
|
|
126253
|
-
document.head.appendChild(script);
|
|
126254
|
-
});
|
|
126255
|
-
});
|
|
126256
|
-
};
|
|
126257
|
-
|
|
126258
|
-
/*
|
|
126259
|
-
* Fetch loader, sets up shouldFetch and fetch hooks
|
|
126260
|
-
*/
|
|
126261
|
-
systemJSPrototype.shouldFetch = function () {
|
|
126262
|
-
return false;
|
|
126263
|
-
};
|
|
126264
|
-
if (typeof fetch !== 'undefined')
|
|
126265
|
-
systemJSPrototype.fetch = fetch;
|
|
126266
|
-
|
|
126267
|
-
var instantiate = systemJSPrototype.instantiate;
|
|
126268
|
-
var jsContentTypeRegEx = /^(text|application)\/(x-)?javascript(;|$)/;
|
|
126269
|
-
systemJSPrototype.instantiate = function (url, parent) {
|
|
126270
|
-
var loader = this;
|
|
126271
|
-
if (!this.shouldFetch(url))
|
|
126272
|
-
return instantiate.apply(this, arguments);
|
|
126273
|
-
return this.fetch(url, {
|
|
126274
|
-
credentials: 'same-origin',
|
|
126275
|
-
integrity: importMap.integrity[url]
|
|
126276
|
-
})
|
|
126277
|
-
.then(function (res) {
|
|
126278
|
-
if (!res.ok)
|
|
126279
|
-
throw Error(errMsg(7, res.status + ' ' + res.statusText + ', loading ' + url + (parent ? ' from ' + parent : '')));
|
|
126280
|
-
var contentType = res.headers.get('content-type');
|
|
126281
|
-
if (!contentType || !jsContentTypeRegEx.test(contentType))
|
|
126282
|
-
throw Error(errMsg(4, 'Unknown Content-Type "' + contentType + '", loading ' + url + (parent ? ' from ' + parent : '')));
|
|
126283
|
-
return res.text().then(function (source) {
|
|
126284
|
-
if (source.indexOf('//# sourceURL=') < 0)
|
|
126285
|
-
source += '\n//# sourceURL=' + url;
|
|
126286
|
-
(0, eval)(source);
|
|
126287
|
-
return loader.getRegister(url);
|
|
126288
|
-
});
|
|
126289
|
-
});
|
|
126290
|
-
};
|
|
126291
|
-
|
|
126292
|
-
systemJSPrototype.resolve = function (id, parentUrl) {
|
|
126293
|
-
parentUrl = parentUrl || !true || baseUrl;
|
|
126294
|
-
return resolveImportMap((importMap), resolveIfNotPlainOrUrl(id, parentUrl) || id, parentUrl) || throwUnresolved(id, parentUrl);
|
|
126295
|
-
};
|
|
126296
|
-
|
|
126297
|
-
function throwUnresolved (id, parentUrl) {
|
|
126298
|
-
throw Error(errMsg(8, "Unable to resolve bare specifier '" + id + (parentUrl ? "' from " + parentUrl : "'")));
|
|
126299
|
-
}
|
|
126300
|
-
|
|
126301
|
-
var systemInstantiate = systemJSPrototype.instantiate;
|
|
126302
|
-
systemJSPrototype.instantiate = function (url, firstParentUrl) {
|
|
126303
|
-
var preloads = (importMap).depcache[url];
|
|
126304
|
-
if (preloads) {
|
|
126305
|
-
for (var i = 0; i < preloads.length; i++)
|
|
126306
|
-
getOrCreateLoad(this, this.resolve(preloads[i], url), url);
|
|
126307
|
-
}
|
|
126308
|
-
return systemInstantiate.call(this, url, firstParentUrl);
|
|
126309
|
-
};
|
|
126310
|
-
|
|
126311
|
-
/*
|
|
126312
|
-
* Supports loading System.register in workers
|
|
126313
|
-
*/
|
|
126314
|
-
|
|
126315
|
-
if (hasSelf && typeof importScripts === 'function')
|
|
126316
|
-
systemJSPrototype.instantiate = function (url) {
|
|
126317
|
-
var loader = this;
|
|
126318
|
-
return Promise.resolve().then(function () {
|
|
126319
|
-
importScripts(url);
|
|
126320
|
-
return loader.getRegister(url);
|
|
126321
|
-
});
|
|
126322
|
-
};
|
|
126323
|
-
|
|
126324
|
-
/*
|
|
126325
|
-
* SystemJS global script loading support
|
|
126326
|
-
* Extra for the s.js build only
|
|
126327
|
-
* (Included by default in system.js build)
|
|
126328
|
-
*/
|
|
126329
|
-
(function (global) {
|
|
126330
|
-
var systemJSPrototype = global.System.constructor.prototype;
|
|
126331
|
-
|
|
126332
|
-
// safari unpredictably lists some new globals first or second in object order
|
|
126333
|
-
var firstGlobalProp, secondGlobalProp, lastGlobalProp;
|
|
126334
|
-
function getGlobalProp (useFirstGlobalProp) {
|
|
126335
|
-
var cnt = 0;
|
|
126336
|
-
var foundLastProp, result;
|
|
126337
|
-
for (var p in global) {
|
|
126338
|
-
// do not check frames cause it could be removed during import
|
|
126339
|
-
if (shouldSkipProperty(p))
|
|
126340
|
-
continue;
|
|
126341
|
-
if (cnt === 0 && p !== firstGlobalProp || cnt === 1 && p !== secondGlobalProp)
|
|
126342
|
-
return p;
|
|
126343
|
-
if (foundLastProp) {
|
|
126344
|
-
lastGlobalProp = p;
|
|
126345
|
-
result = useFirstGlobalProp && result || p;
|
|
126346
|
-
}
|
|
126347
|
-
else {
|
|
126348
|
-
foundLastProp = p === lastGlobalProp;
|
|
126349
|
-
}
|
|
126350
|
-
cnt++;
|
|
126351
|
-
}
|
|
126352
|
-
return result;
|
|
126353
|
-
}
|
|
126354
|
-
|
|
126355
|
-
function noteGlobalProps () {
|
|
126356
|
-
// alternatively Object.keys(global).pop()
|
|
126357
|
-
// but this may be faster (pending benchmarks)
|
|
126358
|
-
firstGlobalProp = secondGlobalProp = undefined;
|
|
126359
|
-
for (var p in global) {
|
|
126360
|
-
// do not check frames cause it could be removed during import
|
|
126361
|
-
if (shouldSkipProperty(p))
|
|
126362
|
-
continue;
|
|
126363
|
-
if (!firstGlobalProp)
|
|
126364
|
-
firstGlobalProp = p;
|
|
126365
|
-
else if (!secondGlobalProp)
|
|
126366
|
-
secondGlobalProp = p;
|
|
126367
|
-
lastGlobalProp = p;
|
|
126368
|
-
}
|
|
126369
|
-
return lastGlobalProp;
|
|
126370
|
-
}
|
|
126371
|
-
|
|
126372
|
-
var impt = systemJSPrototype.import;
|
|
126373
|
-
systemJSPrototype.import = function (id, parentUrl) {
|
|
126374
|
-
noteGlobalProps();
|
|
126375
|
-
return impt.call(this, id, parentUrl);
|
|
126376
|
-
};
|
|
126377
|
-
|
|
126378
|
-
var emptyInstantiation = [[], function () { return {} }];
|
|
126379
|
-
|
|
126380
|
-
var getRegister = systemJSPrototype.getRegister;
|
|
126381
|
-
systemJSPrototype.getRegister = function () {
|
|
126382
|
-
var lastRegister = getRegister.call(this);
|
|
126383
|
-
if (lastRegister)
|
|
126384
|
-
return lastRegister;
|
|
126385
|
-
|
|
126386
|
-
// no registration -> attempt a global detection as difference from snapshot
|
|
126387
|
-
// when multiple globals, we take the global value to be the last defined new global object property
|
|
126388
|
-
// for performance, this will not support multi-version / global collisions as previous SystemJS versions did
|
|
126389
|
-
// note in Edge, deleting and re-adding a global does not change its ordering
|
|
126390
|
-
var globalProp = getGlobalProp(this.firstGlobalProp);
|
|
126391
|
-
if (!globalProp)
|
|
126392
|
-
return emptyInstantiation;
|
|
126393
|
-
|
|
126394
|
-
var globalExport;
|
|
126395
|
-
try {
|
|
126396
|
-
globalExport = global[globalProp];
|
|
126397
|
-
}
|
|
126398
|
-
catch (e) {
|
|
126399
|
-
return emptyInstantiation;
|
|
126400
|
-
}
|
|
126401
|
-
|
|
126402
|
-
return [[], function (_export) {
|
|
126403
|
-
return {
|
|
126404
|
-
execute: function () {
|
|
126405
|
-
_export(globalExport);
|
|
126406
|
-
_export({ default: globalExport, __useDefault: true });
|
|
126407
|
-
}
|
|
126408
|
-
};
|
|
126409
|
-
}];
|
|
126410
|
-
};
|
|
126411
|
-
|
|
126412
|
-
var isIE11 = typeof navigator !== 'undefined' && navigator.userAgent.indexOf('Trident') !== -1;
|
|
126413
|
-
|
|
126414
|
-
function shouldSkipProperty(p) {
|
|
126415
|
-
return !global.hasOwnProperty(p)
|
|
126416
|
-
|| !isNaN(p) && p < global.length
|
|
126417
|
-
|| isIE11 && global[p] && typeof window !== 'undefined' && global[p].parent === window;
|
|
126418
|
-
}
|
|
126419
|
-
})(typeof self !== 'undefined' ? self : __webpack_require__.g);
|
|
126420
|
-
|
|
126421
|
-
/*
|
|
126422
|
-
* Loads JSON, CSS, Wasm module types based on file extension
|
|
126423
|
-
* filters and content type verifications
|
|
126424
|
-
*/
|
|
126425
|
-
(function(global) {
|
|
126426
|
-
var systemJSPrototype = global.System.constructor.prototype;
|
|
126427
|
-
|
|
126428
|
-
var moduleTypesRegEx = /^[^#?]+\.(css|html|json|wasm)([?#].*)?$/;
|
|
126429
|
-
systemJSPrototype.shouldFetch = function (url) {
|
|
126430
|
-
return moduleTypesRegEx.test(url);
|
|
126431
|
-
};
|
|
126432
|
-
|
|
126433
|
-
var jsonContentType = /^application\/json(;|$)/;
|
|
126434
|
-
var cssContentType = /^text\/css(;|$)/;
|
|
126435
|
-
var wasmContentType = /^application\/wasm(;|$)/;
|
|
126436
|
-
|
|
126437
|
-
var fetch = systemJSPrototype.fetch;
|
|
126438
|
-
systemJSPrototype.fetch = function (url, options) {
|
|
126439
|
-
return fetch(url, options)
|
|
126440
|
-
.then(function (res) {
|
|
126441
|
-
if (options.passThrough)
|
|
126442
|
-
return res;
|
|
126443
|
-
|
|
126444
|
-
if (!res.ok)
|
|
126445
|
-
return res;
|
|
126446
|
-
var contentType = res.headers.get('content-type');
|
|
126447
|
-
if (jsonContentType.test(contentType))
|
|
126448
|
-
return res.json()
|
|
126449
|
-
.then(function (json) {
|
|
126450
|
-
return new Response(new Blob([
|
|
126451
|
-
'System.register([],function(e){return{execute:function(){e("default",' + JSON.stringify(json) + ')}}})'
|
|
126452
|
-
], {
|
|
126453
|
-
type: 'application/javascript'
|
|
126454
|
-
}));
|
|
126455
|
-
});
|
|
126456
|
-
if (cssContentType.test(contentType))
|
|
126457
|
-
return res.text()
|
|
126458
|
-
.then(function (source) {
|
|
126459
|
-
source = source.replace(/url\(\s*(?:(["'])((?:\\.|[^\n\\"'])+)\1|((?:\\.|[^\s,"'()\\])+))\s*\)/g, function (match, quotes, relUrl1, relUrl2) {
|
|
126460
|
-
return 'url(' + quotes + resolveUrl(relUrl1 || relUrl2, url) + quotes + ')';
|
|
126461
|
-
});
|
|
126462
|
-
return new Response(new Blob([
|
|
126463
|
-
'System.register([],function(e){return{execute:function(){var s=new CSSStyleSheet();s.replaceSync(' + JSON.stringify(source) + ');e("default",s)}}})'
|
|
126464
|
-
], {
|
|
126465
|
-
type: 'application/javascript'
|
|
126466
|
-
}));
|
|
126467
|
-
});
|
|
126468
|
-
if (wasmContentType.test(contentType))
|
|
126469
|
-
return (WebAssembly.compileStreaming ? WebAssembly.compileStreaming(res) : res.arrayBuffer().then(WebAssembly.compile))
|
|
126470
|
-
.then(function (module) {
|
|
126471
|
-
if (!global.System.wasmModules)
|
|
126472
|
-
global.System.wasmModules = Object.create(null);
|
|
126473
|
-
global.System.wasmModules[url] = module;
|
|
126474
|
-
// we can only set imports if supported (eg early Safari doesnt support)
|
|
126475
|
-
var deps = [];
|
|
126476
|
-
var setterSources = [];
|
|
126477
|
-
if (WebAssembly.Module.imports)
|
|
126478
|
-
WebAssembly.Module.imports(module).forEach(function (impt) {
|
|
126479
|
-
var key = JSON.stringify(impt.module);
|
|
126480
|
-
if (deps.indexOf(key) === -1) {
|
|
126481
|
-
deps.push(key);
|
|
126482
|
-
setterSources.push('function(m){i[' + key + ']=m}');
|
|
126483
|
-
}
|
|
126484
|
-
});
|
|
126485
|
-
return new Response(new Blob([
|
|
126486
|
-
'System.register([' + deps.join(',') + '],function(e){var i={};return{setters:[' + setterSources.join(',') +
|
|
126487
|
-
'],execute:function(){return WebAssembly.instantiate(System.wasmModules[' + JSON.stringify(url) +
|
|
126488
|
-
'],i).then(function(m){e(m.exports)})}}})'
|
|
126489
|
-
], {
|
|
126490
|
-
type: 'application/javascript'
|
|
126491
|
-
}));
|
|
126492
|
-
});
|
|
126493
|
-
return res;
|
|
126494
|
-
});
|
|
126495
|
-
};
|
|
126496
|
-
})(typeof self !== 'undefined' ? self : __webpack_require__.g);
|
|
126497
|
-
|
|
126498
|
-
var toStringTag = typeof Symbol !== 'undefined' && Symbol.toStringTag;
|
|
126499
|
-
|
|
126500
|
-
systemJSPrototype.get = function (id) {
|
|
126501
|
-
var load = this[REGISTRY][id];
|
|
126502
|
-
if (load && load.e === null && !load.E) {
|
|
126503
|
-
if (load.er)
|
|
126504
|
-
return null;
|
|
126505
|
-
return load.n;
|
|
126506
|
-
}
|
|
126507
|
-
};
|
|
126508
|
-
|
|
126509
|
-
systemJSPrototype.set = function (id, module) {
|
|
126510
|
-
{
|
|
126511
|
-
try {
|
|
126512
|
-
// No page-relative URLs allowed
|
|
126513
|
-
new URL(id);
|
|
126514
|
-
} catch (err) {
|
|
126515
|
-
console.warn(Error(errMsg('W3', '"' + id + '" is not a valid URL to set in the module registry')));
|
|
126516
|
-
}
|
|
126517
|
-
}
|
|
126518
|
-
var ns;
|
|
126519
|
-
if (toStringTag && module[toStringTag] === 'Module') {
|
|
126520
|
-
ns = module;
|
|
126521
|
-
}
|
|
126522
|
-
else {
|
|
126523
|
-
ns = Object.assign(Object.create(null), module);
|
|
126524
|
-
if (toStringTag)
|
|
126525
|
-
Object.defineProperty(ns, toStringTag, { value: 'Module' });
|
|
126526
|
-
}
|
|
126527
|
-
|
|
126528
|
-
var done = Promise.resolve(ns);
|
|
126529
|
-
|
|
126530
|
-
var load = this[REGISTRY][id] || (this[REGISTRY][id] = {
|
|
126531
|
-
id: id,
|
|
126532
|
-
i: [],
|
|
126533
|
-
h: false,
|
|
126534
|
-
d: [],
|
|
126535
|
-
e: null,
|
|
126536
|
-
er: undefined,
|
|
126537
|
-
E: undefined
|
|
126538
|
-
});
|
|
126539
|
-
|
|
126540
|
-
if (load.e || load.E)
|
|
126541
|
-
return false;
|
|
126542
|
-
|
|
126543
|
-
Object.assign(load, {
|
|
126544
|
-
n: ns,
|
|
126545
|
-
I: undefined,
|
|
126546
|
-
L: undefined,
|
|
126547
|
-
C: done
|
|
126548
|
-
});
|
|
126549
|
-
return ns;
|
|
126550
|
-
};
|
|
126551
|
-
|
|
126552
|
-
systemJSPrototype.has = function (id) {
|
|
126553
|
-
var load = this[REGISTRY][id];
|
|
126554
|
-
return !!load;
|
|
126555
|
-
};
|
|
126556
|
-
|
|
126557
|
-
// Delete function provided for hot-reloading use cases
|
|
126558
|
-
systemJSPrototype.delete = function (id) {
|
|
126559
|
-
var registry = this[REGISTRY];
|
|
126560
|
-
var load = registry[id];
|
|
126561
|
-
// in future we can support load.E case by failing load first
|
|
126562
|
-
// but that will require TLA callbacks to be implemented
|
|
126563
|
-
if (!load || (load.p && load.p.e !== null) || load.E)
|
|
126564
|
-
return false;
|
|
126565
|
-
|
|
126566
|
-
var importerSetters = load.i;
|
|
126567
|
-
// remove from importerSetters
|
|
126568
|
-
// (release for gc)
|
|
126569
|
-
if (load.d)
|
|
126570
|
-
load.d.forEach(function (depLoad) {
|
|
126571
|
-
var importerIndex = depLoad.i.indexOf(load);
|
|
126572
|
-
if (importerIndex !== -1)
|
|
126573
|
-
depLoad.i.splice(importerIndex, 1);
|
|
126574
|
-
});
|
|
126575
|
-
delete registry[id];
|
|
126576
|
-
return function () {
|
|
126577
|
-
var load = registry[id];
|
|
126578
|
-
if (!load || !importerSetters || load.e !== null || load.E)
|
|
126579
|
-
return false;
|
|
126580
|
-
// add back the old setters
|
|
126581
|
-
importerSetters.forEach(function (setter) {
|
|
126582
|
-
load.i.push(setter);
|
|
126583
|
-
setter(load.n);
|
|
126584
|
-
});
|
|
126585
|
-
importerSetters = null;
|
|
126586
|
-
};
|
|
126587
|
-
};
|
|
126588
|
-
|
|
126589
|
-
var iterator = typeof Symbol !== 'undefined' && Symbol.iterator;
|
|
126590
|
-
|
|
126591
|
-
systemJSPrototype.entries = function () {
|
|
126592
|
-
var loader = this, keys = Object.keys(loader[REGISTRY]);
|
|
126593
|
-
var index = 0, ns, key;
|
|
126594
|
-
var result = {
|
|
126595
|
-
next: function () {
|
|
126596
|
-
while (
|
|
126597
|
-
(key = keys[index++]) !== undefined &&
|
|
126598
|
-
(ns = loader.get(key)) === undefined
|
|
126599
|
-
);
|
|
126600
|
-
return {
|
|
126601
|
-
done: key === undefined,
|
|
126602
|
-
value: key !== undefined && [key, ns]
|
|
126603
|
-
};
|
|
126604
|
-
}
|
|
126605
|
-
};
|
|
126606
|
-
|
|
126607
|
-
result[iterator] = function() { return this };
|
|
126608
|
-
|
|
126609
|
-
return result;
|
|
126610
|
-
};
|
|
126611
|
-
|
|
126612
|
-
})();
|
|
126613
|
-
|
|
126614
|
-
|
|
126615
126377
|
/***/ }),
|
|
126616
126378
|
|
|
126617
126379
|
/***/ "../../../node_modules/tiny-invariant/dist/tiny-invariant.esm.js":
|
|
@@ -211289,4 +211051,4 @@ root.render( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8__.createElement(piral
|
|
|
211289
211051
|
|
|
211290
211052
|
/******/ })()
|
|
211291
211053
|
;
|
|
211292
|
-
//# sourceMappingURL=index.
|
|
211054
|
+
//# sourceMappingURL=index.69a0d8.js.map
|