blob: f5fbd2b012bb290d6453bb3cebdff6388c280b54 [file] [log] [blame]
/*
* SystemJS v0.21.3 Dev
*/
!function(){"use strict";var y,p="undefined"!=typeof window&&"undefined"!=typeof document,c="undefined"!=typeof process&&process.versions&&process.versions.node,a="undefined"!=typeof process&&"string"==typeof process.platform&&process.platform.match(/^win/),E="undefined"!=typeof self?self:global,t="undefined"!=typeof Symbol;function e(e){return t?Symbol():"@@"+e}if("undefined"!=typeof document&&document.getElementsByTagName){if(!(y=document.baseURI)){var r=document.getElementsByTagName("base");y=r[0]&&r[0].href||window.location.href}}else"undefined"!=typeof location&&(y=location.href);if(y){var n=(y=y.split("#")[0].split("?")[0]).lastIndexOf("/");-1!==n&&(y=y.substr(0,n+1))}else{if("undefined"==typeof process||!process.cwd)throw new TypeError("No environment baseURI");y="file://"+(a?"/":"")+process.cwd(),a&&(y=y.replace(/\\/g,"/"))}"/"!==y[y.length-1]&&(y+="/");var i="_"==new Error(0,"_").fileName;function O(e,t){p||(t=t.replace(a?/file:\/\/\//g:/file:\/\//g,""));var r,n=(e.message||e)+"\n "+t;r=i&&e.fileName?new Error(n,e.fileName,e.lineNumber):new Error(n);var o=e.originalErr?e.originalErr.stack:e.stack;return r.stack=c?n+"\n "+o:o,r.originalErr=e.originalErr||e,r}function f(e,t){throw new RangeError('Unable to resolve "'+e+'" to '+t)}function b(e,t){e=e.trim();var r=t&&t.substr(0,t.indexOf(":")+1),n=e[0],o=e[1];if("/"===n&&"/"===o)return r||f(e,t),r+e;if("."===n&&("/"===o||"."===o&&("/"===e[2]||2===e.length&&(e+="/"))||1===e.length&&(e+="/"))||"/"===n){var i,a=!r||"/"!==t[r.length];if(a?(void 0===t&&f(e,t),i=t):i="/"===t[r.length+1]?"file:"!==r?(i=t.substr(r.length+2)).substr(i.indexOf("/")+1):t.substr(8):t.substr(r.length+1),"/"===n){if(!a)return t.substr(0,t.length-i.length-1)+e;f(e,t)}for(var s=i.substr(0,i.lastIndexOf("/")+1)+e,u=[],l=-1,d=0;d<s.length;d++)if(-1===l)if("."!==s[d])l=d;else{if("."!==s[d+1]||"/"!==s[d+2]&&d+2!==s.length){if("/"!==s[d+1]&&d+1!==s.length){l=d;continue}d+=1}else u.pop(),d+=2;a&&0===u.length&&f(e,t)}else"/"===s[d]&&(u.push(s.substring(l,d+1)),l=-1);return-1!==l&&u.push(s.substr(l)),t.substr(0,t.length-i.length)+u.join("")}return-1!==e.indexOf(":")?c&&":"===e[1]&&"\\"===e[2]&&e[0].match(/[a-z]/i)?"file:///"+e.replace(/\\/g,"/"):e:void 0}var o=Promise.resolve();function s(r){if(r.values)return r.values();if("undefined"==typeof Symbol||!Symbol.iterator)throw new Error("Symbol.iterator not supported in this browser");var e={};return e[Symbol.iterator]=function(){var e=Object.keys(r),t=0;return{next:function(){return t<e.length?{value:r[e[t++]],done:!1}:{value:void 0,done:!0}}}},e}function u(){this.registry=new w}function l(e){if(!(e instanceof S))throw new TypeError("Module instantiation did not return a valid namespace object.");return e}(u.prototype.constructor=u).prototype.import=function(t,r){if("string"!=typeof t)throw new TypeError("Loader import method must be passed a module key string");var e=this;return o.then(function(){return e[g](t,r)}).then(l).catch(function(e){throw O(e,"Loading "+t+(r?" from "+r:""))})};var d=u.resolve=e("resolve"),g=u.resolveInstantiate=e("resolveInstantiate");function h(e){if(void 0===e)throw new RangeError("No resolution found.");return e}u.prototype[g]=function(e,t){var r=this;return r.resolve(e,t).then(function(e){return r.registry.get(e)})},u.prototype.resolve=function(t,r){var e=this;return o.then(function(){return e[d](t,r)}).then(h).catch(function(e){throw O(e,"Resolving "+t+(r?" to "+r:""))})};var m="undefined"!=typeof Symbol&&Symbol.iterator,v=e("registry");function w(){this[v]={}}m&&(w.prototype[Symbol.iterator]=function(){return this.entries()[Symbol.iterator]()},w.prototype.entries=function(){var t=this[v];return s(Object.keys(t).map(function(e){return[e,t[e]]}))}),w.prototype.keys=function(){return s(Object.keys(this[v]))},w.prototype.values=function(){var t=this[v];return s(Object.keys(t).map(function(e){return t[e]}))},w.prototype.get=function(e){return this[v][e]},w.prototype.set=function(e,t){if(!(t instanceof S))throw new Error("Registry must be set with an instance of Module Namespace");return this[v][e]=t,this},w.prototype.has=function(e){return Object.hasOwnProperty.call(this[v],e)},w.prototype.delete=function(e){return!!Object.hasOwnProperty.call(this[v],e)&&(delete this[v][e],!0)};var x=e("baseObject");function S(e){Object.defineProperty(this,x,{value:e}),Object.keys(e).forEach(k,this)}function k(e){Object.defineProperty(this,e,{enumerable:!0,get:function(){return this[x][e]}})}S.prototype=Object.create(null),"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(S.prototype,Symbol.toStringTag,{value:"Module"});var j=e("register-internal");function _(){u.call(this);var r=this.registry.delete;this.registry.delete=function(e){var t=r.call(this,e);return n.hasOwnProperty(e)&&!n[e].linkRecord&&(delete n[e],t=!0),t};var n={};this[j]={lastRegister:void 0,records:n},this.trace=!1}var P=((_.prototype=Object.create(u.prototype)).constructor=_).instantiate=e("instantiate");function M(e,t,r){return e.records[t]={key:t,registration:r,module:void 0,importerSetters:void 0,loadError:void 0,evalError:void 0,linkRecord:{instantiatePromise:void 0,dependencies:void 0,execute:void 0,executingRequire:!1,moduleObj:void 0,setters:void 0,depsInstantiatePromise:void 0,dependencyInstantiations:void 0}}}function R(d,c,f,p,g){return f.instantiatePromise||(f.instantiatePromise=(c.registration?Promise.resolve():Promise.resolve().then(function(){return g.lastRegister=void 0,d[P](c.key,1<d[P].length&&(t=c,r=g,function(){var e=r.lastRegister;return e?(r.lastRegister=void 0,t.registration=e,!0):!!t.registration}));var t,r})).then(function(e){if(void 0!==e){if(!(e instanceof S))throw new TypeError("Instantiate did not return a valid Module object.");return delete g.records[c.key],d.trace&&L(d,c,f),p[c.key]=e}var t,r,n,o,i,a,s,u,l=c.registration;if(c.registration=void 0,!l)throw new TypeError("Module instantiation did not call an anonymous or correctly named System.register.");return f.dependencies=l[0],c.importerSetters=[],f.moduleObj={},l[2]?(f.moduleObj.default=f.moduleObj.__useDefault={},f.executingRequire=l[1],f.execute=l[2]):(t=d,r=c,n=f,o=l[1],i=n.moduleObj,a=r.importerSetters,s=!1,u=o.call(E,function(e,t){if("object"==typeof e){var r=!1;for(var n in e)t=e[n],"__useDefault"===n||n in i&&i[n]===t||(r=!0,i[n]=t);if(!1===r)return t}else{if((s||e in i)&&i[e]===t)return t;i[e]=t}for(var o=0;o<a.length;o++)a[o](i);return t},new A(t,r.key)),n.setters=u.setters,n.execute=u.execute,u.exports&&(n.moduleObj=i=u.exports,s=!0)),c}).catch(function(e){throw c.linkRecord=void 0,c.loadError=c.loadError||O(e,"Instantiating "+c.key)}))}function C(o,i,e,a,s,u){return o.resolve(i,e).then(function(e){u&&(u[i]=e);var t=s.records[e],r=a[e];if(r&&(!t||t.module&&r!==t.module))return r;if(t&&t.loadError)throw t.loadError;(!t||!r&&t.module)&&(t=M(s,e,t&&t.registration));var n=t.linkRecord;return n?R(o,t,n,a,s):t})}function L(e,t,r){e.loads=e.loads||{},e.loads[t.key]={key:t.key,deps:r.dependencies,dynamicDeps:[],depMap:r.depMap||{}}}function A(e,t){this.loader=e,this.key=this.id=t,this.meta={url:t}}function K(e,t,r,n,o,i){if(t.module)return t.module;if(t.evalError)throw t.evalError;if(i&&-1!==i.indexOf(t))return t.linkRecord.moduleObj;var a=function e(t,r,n,o,i,a){a.push(r);var s;if(n.setters)for(var u,l,d=0;d<n.dependencies.length;d++)if(!((u=n.dependencyInstantiations[d])instanceof S)&&((l=u.linkRecord)&&-1===a.indexOf(u)&&(s=u.evalError?u.evalError:e(t,u,l,o,i,l.setters?a:[])),s))return r.linkRecord=void 0,r.evalError=O(s,"Evaluating "+r.key),r.evalError;if(n.execute)if(n.setters)s=function(e){try{e.call(I)}catch(e){return e}}(n.execute);else{var c={id:r.key},f=n.moduleObj;Object.defineProperty(c,"exports",{configurable:!0,set:function(e){f.default=f.__useDefault=e},get:function(){return f.__useDefault}});var p=(m=t,v=r.key,y=n.dependencies,b=n.dependencyInstantiations,w=o,x=i,k=a,function(e){for(var t=0;t<y.length;t++)if(y[t]===e){var r,n=b[t];return"__useDefault"in(r=n instanceof S?n:K(m,n,n.linkRecord,w,x,k))?r.__useDefault:r}throw new Error("Module "+e+" not declared as a System.registerDynamic dependency of "+v)});if(!n.executingRequire)for(var d=0;d<n.dependencies.length;d++)p(n.dependencies[d]);s=function(e,t,r,n){try{var o=e.call(E,t,r,n);void 0!==o&&(n.exports=o)}catch(e){return e}}(n.execute,p,f.default,c),c.exports!==f.__useDefault&&(f.default=f.__useDefault=c.exports);var g=f.default;if(g&&g.__esModule)for(var h in g)Object.hasOwnProperty.call(g,h)&&(f[h]=g[h])}var m,v,y,b,w,x,k;r.linkRecord=void 0;if(s)return r.evalError=O(s,"Evaluating "+r.key);o[r.key]=r.module=new S(n.moduleObj);if(!n.setters){if(r.importerSetters)for(var d=0;d<r.importerSetters.length;d++)r.importerSetters[d](r.module);r.importerSetters=void 0}}(e,t,r,n,o,r.setters?[]:i||[]);if(a)throw a;return t.module}_.prototype[_.resolve=u.resolve]=function(e,t){return b(e,t||y)},_.prototype[P]=function(e,t){},_.prototype[u.resolveInstantiate]=function(e,t){var n=this,o=this[j],i=this.registry[v];return function(r,e,t,n,o){var i=n[e];if(i)return Promise.resolve(i);var a=o.records[e];if(a&&!a.module)return a.loadError?Promise.reject(a.loadError):R(r,a,a.linkRecord,n,o);return r.resolve(e,t).then(function(e){if(i=n[e])return i;if((a=o.records[e])&&!a.module||(a=M(o,e,a&&a.registration)),a.loadError)return Promise.reject(a.loadError);var t=a.linkRecord;return t?R(r,a,t,n,o):a})}(n,e,t,i,o).then(function(e){if(e instanceof S)return e;var u,t,l,d,r=e.linkRecord;if(!r){if(e.module)return e.module;throw e.evalError}return(u=n,t=e,l=i,d=o,new Promise(function(o,r){var n=[],i=0;function a(e){var t=e.linkRecord;t&&-1===n.indexOf(e)&&(n.push(e),i++,function(e,o,i,t,r){if(i.depsInstantiatePromise)return i.depsInstantiatePromise;for(var n=Array(i.dependencies.length),a=0;a<i.dependencies.length;a++)n[a]=C(e,i.dependencies[a],o.key,t,r,e.trace&&i.depMap||(i.depMap={}));var s=Promise.all(n).then(function(e){if(i.dependencyInstantiations=e,i.setters)for(var t=0;t<e.length;t++){var r=i.setters[t];if(r){var n=e[t];if(n instanceof S)r(n);else{if(n.loadError)throw n.loadError;r(n.module||n.linkRecord.moduleObj),n.importerSetters&&n.importerSetters.push(r)}}}return o});return e.trace&&(s=s.then(function(){return L(e,o,i),o})),(s=s.catch(function(e){throw i.depsInstantiatePromise=void 0,O(e,"Loading "+o.key)})).catch(function(){}),i.depsInstantiatePromise=s}(u,e,t,l,d).then(s,r))}function s(e){i--;var t=e.linkRecord;if(t)for(var r=0;r<t.dependencies.length;r++){var n=t.dependencyInstantiations[r];n instanceof S||a(n)}0===i&&o()}a(t)})).then(function(){return K(n,e,r,i,o,void 0)})})},_.prototype.register=function(e,t,r){var n=this[j];void 0===r?n.lastRegister=[e,t,void 0]:(n.records[e]||M(n,e,void 0)).registration=[t,r,void 0]},_.prototype.registerDynamic=function(e,t,r,n){var o=this[j];"string"!=typeof e?o.lastRegister=[e,t,r]:(o.records[e]||M(o,e,void 0)).registration=[t,r,n]},A.prototype.import=function(e){return this.loader.trace&&this.loader.loads[this.key].dynamicDeps.push(e),this.loader.import(e,this.key)};var I={};Object.freeze&&Object.freeze(I);var D=Promise.resolve();function F(){}var q,U=new S({});var T,z=e("loader-config"),J=e("metadata"),N="undefined"==typeof window&&"undefined"!=typeof self&&"undefined"!=typeof importScripts;function $(e,t){(t||this.warnings&&"undefined"!=typeof console&&console.warn)&&console.warn(e)}function B(e,t){for(var r in t)Object.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}function W(e,t){for(var r in t)Object.hasOwnProperty.call(t,r)&&void 0===e[r]&&(e[r]=t[r]);return e}function G(e,t,r){for(var n in t)if(Object.hasOwnProperty.call(t,n)){var o=t[n];void 0===e[n]?e[n]=o:o instanceof Array&&e[n]instanceof Array?e[n]=[].concat(r?o:e[n]).concat(r?e[n]:o):"object"==typeof o&&null!==o&&"object"==typeof e[n]?e[n]=(r?W:B)(B({},e[n]),o):r||(e[n]=o)}}var H=!1,Z=!1;function X(e){if(H||Z){var t=document.createElement("link");H?(t.rel="preload",t.as="script"):t.rel="prefetch",t.href=e,document.head.appendChild(t)}else{(new Image).src=e}}if(p&&function(){var e=document.createElement("link").relList;if(e&&e.supports){Z=!0;try{H=e.supports("preload")}catch(e){}}}(),p){var Y=window.onerror;window.onerror=function(e,t){Y&&Y.apply(this,arguments)}}function Q(t,e,r,n,o){if(t=t.replace(/#/g,"%23"),N)return function(e,t,r){try{importScripts(e)}catch(e){r(e)}t()}(t,n,o);var i=document.createElement("script");function a(){n(),u()}function s(e){u(),o(new Error("Fetching "+t))}function u(){i.removeEventListener("load",a,!1),i.removeEventListener("error",s,!1),document.head.removeChild(i)}i.type="text/javascript",i.charset="utf-8",i.async=!0,e&&(i.crossOrigin=e),r&&(i.integrity=r),i.addEventListener("load",a,!1),i.addEventListener("error",s,!1),i.src=t,document.head.appendChild(i)}function V(e,t){for(var r=e.split(".");r.length;)t=t[r.shift()];return t}function ee(e,t,r){var n=re(t,r);if(n){var o=t[n]+r.substr(n.length),i=b(o,y);return void 0!==i?i:e+o}return-1!==r.indexOf(":")?r:e+r}function te(e){var t=this.name;if(t.substr(0,e.length)===e&&(t.length===e.length||"/"===t[e.length]||"/"===e[e.length-1]||":"===e[e.length-1])){var r=e.split("/").length;r>this.len&&(this.match=e,this.len=r)}}function re(e,t){if(Object.hasOwnProperty.call(e,t))return t;var r={name:t,match:void 0,len:0};return Object.keys(e).forEach(te,r),r.match}var ne,oe=/(?:^\uFEFF?|[^$_a-zA-Z\xA0-\uFFFF."'])require\s*\(\s*("[^"\\]*(?:\\.[^"\\]*)*"|'[^'\\]*(?:\\.[^'\\]*)*'|`[^`\\]*(?:\\.[^`\\]*)*`)\s*\)/g;function ie(e,t,r,n){if("file:///"===e.substr(0,8)){if(se)return ae(e,t,r,n);throw new Error("Unable to fetch file URLs in this environment.")}e=e.replace(/#/g,"%23");var o={headers:{Accept:"application/x-es-module, */*"}};return r&&(o.integrity=r),t&&("string"==typeof t&&(o.headers.Authorization=t),o.credentials="include"),fetch(e,o).then(function(e){if(e.ok)return n?e.arrayBuffer():e.text();throw new Error("Fetch error: "+e.status+" "+e.statusText)})}function ae(i,a,e,s){return new Promise(function(e,t){i=i.replace(/#/g,"%23");var r=new XMLHttpRequest;function n(){e(s?r.response:r.responseText)}function o(){t(new Error("XHR error: "+(r.status?" ("+r.status+(r.statusText?" "+r.statusText:"")+")":"")+" loading "+i))}s&&(r.responseType="arraybuffer"),r.onreadystatechange=function(){4===r.readyState&&(0==r.status?r.response?n():(r.addEventListener("error",o),r.addEventListener("load",n)):200===r.status?n():o())},r.open("GET",i,!0),r.setRequestHeader&&(r.setRequestHeader("Accept","application/x-es-module, */*"),a&&("string"==typeof a&&r.setRequestHeader("Authorization",a),r.withCredentials=!0)),r.send(null)})}var se="undefined"!=typeof XMLHttpRequest,ue="undefined"!=typeof fetch,le="undefined"!=typeof self&&void 0!==self.fetch?ie:se?ae:"undefined"!=typeof require&&"undefined"!=typeof process?function(e,t,r,i){return"file:///"!=e.substr(0,8)?ue?ie(e,t,r,i):Promise.reject(new Error('Unable to fetch "'+e+'". Only file URLs of the form file:/// supported running in Node without fetch.')):(ne=ne||require("fs"),e=a?e.replace(/\//g,"\\").substr(8):e.substr(7),new Promise(function(n,o){ne.readFile(e,function(e,t){if(e)return o(e);if(i)n(t);else{var r=t+"";"\ufeff"===r[0]&&(r=r.substr(1)),n(r)}})}))}:function(){throw new Error("No fetch method is defined for this environment.")};function de(e,t,r){var n,o={pluginKey:void 0,pluginArgument:void 0,pluginModule:void 0,packageKey:void 0,packageConfig:void 0,load:void 0};r&&(t.pluginFirst?-1!==(n=r.lastIndexOf("!"))&&(o.pluginArgument=o.pluginKey=r.substr(0,n)):-1!==(n=r.indexOf("!"))&&(o.pluginArgument=o.pluginKey=r.substr(n+1)),o.packageKey=re(t.packages,r),o.packageKey&&(o.packageConfig=t.packages[o.packageKey]));return o}function ce(e,t){var r=me(e.pluginFirst,t);if(r){var n=ce.call(this,e,r.plugin);return ve(e.pluginFirst,fe.call(this,e,r.argument,void 0,!1,!1),n)}return fe.call(this,e,t,void 0,!1,!1)}function fe(e,t,r,n,o){var i=b(t,r||y);if(i)return ee(e.baseURL,e.paths,i);if(n){var a=re(e.map,t);if(a&&(i=b(t=e.map[a]+t.substr(a.length),y)))return ee(e.baseURL,e.paths,i)}if(this.registry.has(t))return t;if("@node/"===t.substr(0,6))return t;var s=o&&"/"!==t[t.length-1],u=ee(e.baseURL,e.paths,s?t+"/":t);return s?u.substr(0,u.length-1):u}function pe(e,t,r,n,o,i){if(o&&o.packageConfig&&"."!==t[0]){var a=o.packageConfig.map,s=a&&re(a,t);if(s&&"string"==typeof a[s]){var u=we(this,e,o.packageConfig,o.packageKey,s,t,n,i);if(u)return u}}var l=fe.call(this,e,t,r,!0,!0),d=Ee(e,l);if(n.packageKey=d&&d.packageKey||re(e.packages,l),!n.packageKey)return l;if(-1!==e.packageConfigKeys.indexOf(l))return n.packageKey=void 0,l;n.packageConfig=e.packages[n.packageKey]||(e.packages[n.packageKey]=Ae());var c=l.substr(n.packageKey.length+1);return function(e,t,r,n,o,i,a){if(!o){if(!r.main)return n;o="./"===r.main.substr(0,2)?r.main.substr(2):r.main}if(r.map){var s="./"+o,u=re(r.map,s);if(u||(s="./"+ye(t,r,n,o,a))!=="./"+o&&(u=re(r.map,s)),u){var l=we(e,t,r,n,u,s,i,a);if(l)return l}}return n+"/"+ye(t,r,n,o,a)}(this,e,n.packageConfig,n.packageKey,c,n,i)}function ge(n,o,i,a,r,s){var u=this;return D.then(function(){if(r&&r.packageConfig&&"./"!==o.substr(0,2)){var e=r.packageConfig.map,t=e&&re(e,o);if(t)return xe(u,n,r.packageConfig,r.packageKey,t,o,a,s)}return D}).then(function(e){if(e)return e;var t=fe.call(u,n,o,i,!0,!0),r=Ee(n,t);return a.packageKey=r&&r.packageKey||re(n.packages,t),a.packageKey?-1!==n.packageConfigKeys.indexOf(t)?(a.packageKey=void 0,a.load=he(),a.load.format="json",a.load.loader="",Promise.resolve(t)):(a.packageConfig=n.packages[a.packageKey]||(n.packages[a.packageKey]=Ae()),(r&&!a.packageConfig.configured?function(e,t,r,n,o){var i=e.pluginLoader||e;-1===t.packageConfigKeys.indexOf(r)&&t.packageConfigKeys.push(r);return i.import(r).then(function(e){Ke(n.packageConfig,e,n.packageKey,!0,t),n.packageConfig.configured=!0}).catch(function(e){throw O(e,"Unable to fetch package configuration file "+r)})}(u,n,r.configPath,a):D).then(function(){var e=t.substr(a.packageKey.length+1);return function(e,t,r,n,o,i,a){if(!o){if(!r.main)return Promise.resolve(n);o="./"===r.main.substr(0,2)?r.main.substr(2):r.main}var s,u;r.map&&(s="./"+o,(u=re(r.map,s))||(s="./"+ye(t,r,n,o,a))!=="./"+o&&(u=re(r.map,s)));return(u?xe(e,t,r,n,u,s,i,a):D).then(function(e){return e?Promise.resolve(e):Promise.resolve(n+"/"+ye(t,r,n,o,a))})}(u,n,a.packageConfig,a.packageKey,e,a,s)})):Promise.resolve(t)})}function he(){return{extension:"",deps:void 0,format:void 0,loader:void 0,scriptLoad:void 0,globals:void 0,nonce:void 0,integrity:void 0,sourceMap:void 0,exports:void 0,encapsulateGlobal:!1,crossOrigin:void 0,cjsRequireDetection:!0,cjsDeferDepsExecute:!1,esModule:!1}}function me(e,t){var r,n,o=e?t.indexOf("!"):t.lastIndexOf("!");if(-1!==o)return e?(r=t.substr(o+1),n=t.substr(0,o)):(r=t.substr(0,o),n=t.substr(o+1)||r.substr(r.lastIndexOf(".")+1)),{argument:r,plugin:n}}function ve(e,t,r){return e?r+"!"+t:t+"!"+r}function ye(e,t,r,n,o){if(!n||!t.defaultExtension||"/"===n[n.length-1]||o)return n;var i=!1;if(t.meta&&Oe(t.meta,n,function(e,t,r){if(0===r||e.lastIndexOf("*")!==e.length-1)return i=!0}),!i&&e.meta&&Oe(e.meta,r+"/"+n,function(e,t,r){if(0===r||e.lastIndexOf("*")!==e.length-1)return i=!0}),i)return n;var a="."+t.defaultExtension;return n.substr(n.length-a.length)!==a?n+a:n}function be(e,t,r){return!(t.substr(0,e.length)===e&&r.length>e.length)}function we(e,t,r,n,o,i,a,s){"/"===i[i.length-1]&&(i=i.substr(0,i.length-1));var u=r.map[o];if("object"==typeof u)throw new Error("Synchronous conditional normalization not supported sync normalizing "+o+" in "+n);if(be(o,u,i)&&"string"==typeof u)return pe.call(e,t,u+i.substr(o.length),n+"/",a,a,s)}function xe(t,r,e,n,o,i,a,s){"/"===i[i.length-1]&&(i=i.substr(0,i.length-1));var u=e.map[o];if("string"==typeof u)return be(o,u,i)?ge.call(t,r,u+i.substr(o.length),n+"/",a,a,s).then(function(e){return Me.call(t,e,n+"/",a)}):D;var l=[],d=[];for(var c in u){var f=je(c);d.push({condition:f,map:u[c]}),l.push(_.prototype.import.call(t,f.module,n))}return Promise.all(l).then(function(e){for(var t=0;t<d.length;t++){var r=d[t].condition,n=V(r.prop,"__useDefault"in e[t]?e[t].__useDefault:e[t]);if(!r.negate&&n||r.negate&&!n)return d[t].map}}).then(function(e){if(e)return be(o,e,i)?ge.call(t,r,e+i.substr(o.length),n+"/",a,a,s).then(function(e){return Me.call(t,e,n+"/",a)}):D})}var ke={};function Ee(e,t){for(var r,n,o,i,a,s=!1,u=0;u<e.packageConfigPaths.length;u++){var l=e.packageConfigPaths[u],d=ke[l]||(ke[l]=(void 0,i=(o=l).lastIndexOf("*"),{length:a=Math.max(i+1,o.lastIndexOf("/")),regEx:new RegExp("^("+o.substr(0,a).replace(/[.+?^${}()|[\]\\]/g,"\\$&").replace(/\*/g,"[^\\/]+")+")(\\/|$)"),wildcard:-1!==i}));if(!(t.length<d.length)){var c=t.match(d.regEx);!c||r&&(s&&d.wildcard||!(r.length<c[1].length))||(r=c[1],s=!d.wildcard,n=r+l.substr(d.length))}}if(r)return{packageKey:r,configPath:n}}function Oe(e,t,r){var n;for(var o in e){var i="./"===o.substr(0,2)?"./":"";if(i&&(o=o.substr(2)),-1!==(n=o.indexOf("*"))&&o.substr(0,n)===t.substr(0,n)&&o.substr(n+1)===t.substr(t.length-o.length+n+1)&&r(o,e[i+o],o.split("/").length))return}var a=e[t]&&Object.hasOwnProperty.call(e,t)?e[t]:e["./"+t];a&&r(a,a,0)}var Se=["browser","node","dev","build","production","default"];function je(e){var t,r,n,o=e.lastIndexOf("|");return-1!==o?(t=e.substr(o+1),r=e.substr(0,o),"~"===t[0]&&(n=!0,t=t.substr(1))):(n="~"===e[0],t="default",r=e.substr(n),-1!==Se.indexOf(r)&&(t=r,r=null)),{module:r||"@system-env",prop:t,negate:n}}function _e(r,e,n){return _.prototype.import.call(this,r.module,e).then(function(e){var t=V(r.prop,e);if(n&&"boolean"!=typeof t)throw new TypeError("Condition did not resolve to a boolean.");return r.negate?!t:t})}var Pe=/#\{[^\}]+\}/;function Me(t,r,e){var n=t.match(Pe);if(!n)return Promise.resolve(t);var o=je.call(this,n[0].substr(2,n[0].length-3));return _e.call(this,o,r,!1).then(function(e){if("string"!=typeof e)throw new TypeError("The condition value for "+t+" doesn't resolve to a string.");if(-1!==e.indexOf("/"))throw new TypeError("Unabled to interpolate conditional "+t+(r?" in "+r:"")+"\n\tThe condition value "+e+' cannot contain a "/" separator.');return t.replace(Pe,e)})}var Re=["browserConfig","nodeConfig","devConfig","buildConfig","productionConfig"];function Ce(e,t,r){for(var n=0;n<Re.length;n++){var o=Re[n];t[o]&&Pt[o.substr(0,o.length-6)]&&r(t[o])}}function Le(e,t){var r=e[t];return r instanceof Array?e[t].concat([]):"object"==typeof r?function e(t,r){var n={};for(var o in t){var i=t[o];1<r?i instanceof Array?n[o]=[].concat(i):"object"==typeof i?n[o]=e(i,r-1):"packageConfig"!==o&&(n[o]=i):n[o]=i}return n}(r,3):e[t]}function Ae(){return{defaultExtension:void 0,main:void 0,format:void 0,meta:void 0,map:void 0,packageConfig:void 0,configured:!1}}function Ke(e,t,r,n,o){for(var i in t)"main"===i||"format"===i||"defaultExtension"===i||"configured"===i?n&&void 0!==e[i]||(e[i]=t[i]):"map"===i?(n?W:B)(e.map=e.map||{},t.map):"meta"===i?(n?W:B)(e.meta=e.meta||{},t.meta):Object.hasOwnProperty.call(t,i)&&$.call(o,'"'+i+'" is not a valid package configuration option in package '+r);return void 0===e.defaultExtension&&(e.defaultExtension="js"),void 0===e.main&&e.map&&e.map["."]?(e.main=e.map["."],delete e.map["."]):"object"==typeof e.main&&(e.map=e.map||{},e.map["./@main"]=e.main,e.main.default=e.main.default||"./",e.main="@main"),e}var Ie="undefined"!=typeof Buffer;try{Ie&&"YQ=="!==new Buffer("a").toString("base64")&&(Ie=!1)}catch(e){Ie=!1}var De,Fe,qe,Ue,Te="\n//# sourceMappingURL=data:application/json;base64,";function ze(e,t,r,n){var o,i=e.lastIndexOf("\n");if(t){if("object"!=typeof t)throw new TypeError("load.metadata.sourceMap must be set to an object.");t=JSON.stringify(t)}return(n?"(function(System, SystemJS) {":"")+e+(n?"\n})(System, System);":"")+("\n//# sourceURL="!=e.substr(i,15)?"\n//# sourceURL="+r+(t?"!transpiled":""):"")+(t&&(o=t,Ie?Te+new Buffer(o).toString("base64"):"undefined"!=typeof btoa?Te+btoa(unescape(encodeURIComponent(o))):"")||"")}var Je=0;function Ne(e){0==Je++&&(Ue=E.System),E.System=E.SystemJS=e}function $e(){0==--Je&&(E.System=E.SystemJS=Ue)}var Be,We=!1;function Ge(e,t,r,n,o,i,a){if(t){if(i&&We)return function(e,t,r,n,o){De||(De=document.head||document.body||document.documentElement);var i=document.createElement("script");i.text=ze(t,r,n,!1);var a,s=window.onerror;if(window.onerror=function(e){a=addToError(e,"Evaluating "+n),s&&s.apply(this,arguments)},Ne(e),o&&i.setAttribute("nonce",o),De.appendChild(i),De.removeChild(i),$e(),window.onerror=s,a)return a}(e,t,r,n,i);try{Ne(e),!Fe&&e._nodeRequire&&(Fe=e._nodeRequire("vm"),qe=Fe.runInThisContext("typeof System !== 'undefined' && System")===e),qe?Fe.runInThisContext(ze(t,r,n,!a),{filename:n+(r?"!transpiled":"")}):(0,eval)(ze(t,r,n,!a)),$e()}catch(e){return $e(),e}}}function He(p){function g(e,t,r,n){if("object"==typeof e&&!(e instanceof Array))return g.apply(null,Array.prototype.splice.call(arguments,1,arguments.length-1));if("string"==typeof e&&"function"==typeof t&&(e=[e]),!(e instanceof Array)){if("string"==typeof e){var o=p.decanonicalize(e,n),i=p.get(o);if(!i)throw new Error('Module not already loaded loading "'+e+'" as '+o+(n?' from "'+n+'".':"."));return"__useDefault"in i?i.__useDefault:i}throw new TypeError("Invalid require")}for(var a=[],s=0;s<e.length;s++)a.push(p.import(e[s],n));Promise.all(a).then(function(e){t&&t.apply(null,e)},r)}function e(e,u,l){var t,d,c,f;function r(n,e,o){for(var t=[],r=0;r<u.length;r++)t.push(n(u[r]));if(o.uri=o.id,o.config=F,-1!==f&&t.splice(f,0,o),-1!==c&&t.splice(c,0,e),-1!==d){var i=function(e,t,r){return"string"==typeof e&&"function"!=typeof t?n(e):g.call(p,e,t,r,o.id)};i.toUrl=function(e){return p.normalizeSync(e,o.id)},t.splice(d,0,i)}var a=E.require;E.require=g;var s=l.apply(-1===c?E:e,t);E.require=a,void 0!==s&&(o.exports=s)}"string"!=typeof e&&(l=u,u=e,e=null),u instanceof Array||(u=["require","exports","module"].splice(0,(l=u).length)),"function"!=typeof l&&(t=l,l=function(){return t}),e||ft&&(u=u.concat(ft),ft=void 0),-1!==(d=u.indexOf("require"))&&(u.splice(d,1),e||(u=u.concat(function(e,t){var r=((e=e.replace(Qe,"")).match(st)[1].split(",")[t]||"require").replace(ut,""),n=lt[r]||(lt[r]=new RegExp(it+r+at,"g"));n.lastIndex=0;var o,i=[];for(;o=n.exec(e);)i.push(o[2]||o[3]);return i}(l.toString(),d)))),-1!==(c=u.indexOf("exports"))&&u.splice(c,1),-1!==(f=u.indexOf("module"))&&u.splice(f,1),e?(p.registerDynamic(e,u,!1,r),ct?pt=!(ct=void 0):pt||(ct=[u,r])):p.registerDynamic(u,!1,gt?dt(r):r)}e.amd={},p.amdDefine=e,p.amdRequire=g}function Ze(e){return"file:///"===e.substr(0,8)?e.substr(7+!!a):Be&&e.substr(0,Be.length)===Be?e.substr(Be.length):e}function Xe(e,t){return Ze(this.normalizeSync(e,t))}function Ye(e){var t,r=e.lastIndexOf("!"),n=(t=-1!==r?e.substr(0,r):e).split("/");return n.pop(),n=n.join("/"),{filename:Ze(t),dirname:Ze(n)}}p&&"undefined"!=typeof document&&document.getElementsByTagName&&(window.chrome&&window.chrome.extension||navigator.userAgent.match(/^Node\.js/)||(We=!0)),"undefined"!=typeof window&&"undefined"!=typeof document&&window.location&&(Be=location.protocol+"//"+location.hostname+(location.port?":"+location.port:""));var Qe=/(^|[^\\])(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/gm,Ve=/("[^"\\\n\r]*(\\.[^"\\\n\r]*)*"|'[^'\\\n\r]*(\\.[^'\\\n\r]*)*')/g;var et,tt=["_g","sessionStorage","localStorage","clipboardData","frames","frameElement","external","mozAnimationStartTime","mozPaintCount","webkitStorageInfo","webkitIndexedDB","mozInnerScreenY","mozInnerScreenX"];function rt(t){if(-1===tt.indexOf(t)){try{var e=E[t]}catch(e){tt.push(t)}this(t,e)}}function nt(e){if("string"==typeof e)return V(e,E);if(!(e instanceof Array))throw new Error("Global exports must be a string or array.");for(var t={},r=0;r<e.length;r++)t[e[r].split(".").pop()]=V(e[r],E);return t}function ot(e,i,t,a){var s,u=E.define;if(E.define=void 0,t)for(var r in s={},t)s[r]=E[r],E[r]=t[r];return i||(et={},Object.keys(E).forEach(rt,function(e,t){et[e]=t})),function(){var r,n=i?nt(i):{},o=!!i;if(i&&!a||Object.keys(E).forEach(rt,function(e,t){et[e]!==t&&void 0!==t&&(a&&(E[e]=void 0),i||(n[e]=t,void 0!==r?o||r===t||(o=!0):r=t))}),n=o?n:r,s)for(var e in s)E[e]=s[e];return E.define=u,n}}var it="(?:^|[^$_a-zA-Z\\xA0-\\uFFFF.])",at="\\s*\\(\\s*(\"([^\"]+)\"|'([^']+)')\\s*\\)",st=/\(([^\)]*)\)/,ut=/^\s+|\s+$/g,lt={};function dt(n){return function(e,t,r){n(e,t,r),"object"!=typeof(t=r.exports)&&"function"!=typeof t||"__esModule"in t||Object.defineProperty(r.exports,"__esModule",{value:!0})}}var ct,ft,pt=!1,gt=!1;var ht,mt=(p||N)&&"undefined"!=typeof navigator&&navigator.userAgent&&!navigator.userAgent.match(/MSIE (9|10).0/);function vt(e,t){!e.load.esModule||"object"!=typeof t&&"function"!=typeof t||"__esModule"in t||Object.defineProperty(t,"__esModule",{value:!0})}function yt(p,g,e,h,m){return Promise.resolve(e).then(function(e){return"detect"===h.load.format&&(h.load.format=void 0),function(e,t){var r=e.match(Mt);if(!r)return;for(var n=r[0].match(Rt),o=0;o<n.length;o++){var i=n[o],a=i.length,s=i.substr(0,1);if(";"==i.substr(a-1,1)&&a--,'"'==s||"'"==s){var u=i.substr(1,i.length-3),l=u.substr(0,u.indexOf(" "));if(l){var d=u.substr(l.length+1,u.length-l.length-1);"deps"===l&&(l="deps[]"),"[]"===l.substr(l.length-2,2)?(l=l.substr(0,l.length-2),t.load[l]=t.load[l]||[],t.load[l].push(d)):"use"!==l&&Ct(t.load,l,d)}else t.load[u]=!0}}}(e,h),h.pluginModule?(h.pluginLoad.source=e,h.pluginModule.translate?Promise.resolve(h.pluginModule.translate.call(p,h.pluginLoad,h.traceOpts)).then(function(e){if(h.load.sourceMap){if("object"!=typeof h.load.sourceMap)throw new Error("metadata.load.sourceMap must be set to an object.");jt(h.pluginLoad.address,h.load.sourceMap)}return"string"==typeof e?e:h.pluginLoad.source}):e):e}).then(function(e){return h.load.format||'"bundle"'!==e.substring(0,8)?"register"===h.load.format||!h.load.format&&kt(e)?(h.load.format="register",e):"esm"===h.load.format||!h.load.format&&e.match(wt)?(h.load.format="esm",function(t,r,n,o,e){if(!t.transpiler)throw new TypeError("Unable to dynamically transpile ES module\n A loader plugin needs to be configured via `SystemJS.config({ transpiler: 'transpiler-module' })`.");if(o.load.deps){for(var i="",a=0;a<o.load.deps.length;a++)i+='import "'+o.load.deps[a]+'"; ';r=i+r}return t.import.call(t,t.transpiler).then(function(e){if(!(e=e.__useDefault||e).translate)throw new Error(t.transpiler+" is not a valid transpiler plugin.");return e===o.pluginModule?r:("string"==typeof o.load.sourceMap&&(o.load.sourceMap=JSON.parse(o.load.sourceMap)),o.pluginLoad=o.pluginLoad||{name:n,address:n,source:r,metadata:o.load},o.load.deps=o.load.deps||[],Promise.resolve(e.translate.call(t,o.pluginLoad,o.traceOpts)).then(function(e){var t=o.load.sourceMap;return t&&"object"==typeof t&&jt(n,t),"esm"===o.load.format&&kt(e)&&(o.load.format="register"),e}))},function(e){throw O(e,"Unable to load transpiler to transpile "+n)})}(p,e,g,h)):e:(h.load.format="system",e)}).then(function(r){if("string"!=typeof r||!h.pluginModule||!h.pluginModule.instantiate)return r;var n=!1;return h.pluginLoad.source=r,Promise.resolve(h.pluginModule.instantiate.call(p,h.pluginLoad,function(e){if(r=e.source,h.load=e.metadata,n)throw new Error("Instantiate must only be called once.");n=!0})).then(function(e){return n?r:(t=e)instanceof S?t:t&&t.__esModule?new S(t):new S({default:t,__useDefault:t});var t})}).then(function(d){if("string"!=typeof d)return d;var e;h.load.format||(h.load.format=(e=d).match(Et)?"amd":(Ot.lastIndex=0,oe.lastIndex=0,oe.exec(e)||Ot.exec(e)?"cjs":"global"));var t,r,n,o=!1;switch(h.load.format){case"esm":case"register":case"system":if(s=Ge(p,d,h.load.sourceMap,g,h.load.integrity,h.load.nonce,!1))throw s;return m()?void 0:U;case"json":var i=JSON.parse(d);return p.newModule({default:i,__useDefault:i});case"amd":var a=E.define;E.define=p.amdDefine,r=h.load.deps,n=h.load.esModule,ft=r,gt=n,ct=void 0,pt=!1;var s=Ge(p,d,h.load.sourceMap,g,h.load.integrity,h.load.nonce,!1);if((o=m())||(t=p,ct?t.registerDynamic(ft?ct[0].concat(ft):ct[0],!1,gt?dt(ct[1]):ct[1]):pt&&t.registerDynamic([],!1,F),o=m()),E.define=a,s)throw s;break;case"cjs":var c=h.load.deps,u=(h.load.deps||[]).concat(h.load.cjsRequireDetection?function(e){oe.lastIndex=Qe.lastIndex=Ve.lastIndex=0;var t,r=[],n=[],o=[];function i(e,t){for(var r=0;r<e.length;r++)if(e[r][0]<t.index&&e[r][1]>t.index)return!0;return!1}if(e.length/e.split("\n").length<200){for(;t=Ve.exec(e);)n.push([t.index,t.index+t[0].length]);for(;t=Qe.exec(e);)i(n,t)||o.push([t.index+t[1].length,t.index+t[0].length-1])}for(;t=oe.exec(e);)if(!i(n,t)&&!i(o,t)){var a=t[1].substr(1,t[1].length-2);if(a.match(/"|'/))continue;r.push(a)}return r}(d):[]);for(var l in h.load.globals)h.load.globals[l]&&u.push(h.load.globals[l]);p.registerDynamic(u,!0,function(e,t,r){if(e.resolve=function(e){return Xe.call(p,e,r.id)},r.paths=[],r.require=e,!h.load.cjsDeferDepsExecute&&c)for(var n=0;n<c.length;n++)e(c[n]);var o=Ye(r.id),i={exports:t,args:[e,t,r,o.filename,o.dirname,E,E]},a="(function (require, exports, module, __filename, __dirname, global, GLOBAL";if(h.load.globals)for(var s in h.load.globals)i.args.push(e(h.load.globals[s])),a+=", "+s;var u=E.define;E.define=void 0,E.__cjsWrapper=i,d=a+") {"+d.replace(St,"")+"\n}).apply(__cjsWrapper.exports, __cjsWrapper.args);";var l=Ge(p,d,h.load.sourceMap,g,h.load.integrity,h.load.nonce,!1);if(l)throw l;vt(h,t),E.__cjsWrapper=void 0,E.define=u}),o=m();break;case"global":u=h.load.deps||[];for(var l in h.load.globals){var f=h.load.globals[l];f&&u.push(f)}p.registerDynamic(u,!1,function(e,t,r){var n;if(h.load.globals)for(var o in n={},h.load.globals)h.load.globals[o]&&(n[o]=e(h.load.globals[o]));var i=h.load.exports;i&&(d+="\n"+bt+'["'+i+'"] = '+i+";");var a=ot(r.id,i,n,h.load.encapsulateGlobal),s=Ge(p,d,h.load.sourceMap,g,h.load.integrity,h.load.nonce,!0);if(s)throw s;var u=a();return vt(h,u),u}),o=m();break;default:throw new TypeError('Unknown module format "'+h.load.format+'" for "'+g+'".'+("es6"===h.load.format?' Use "esm" instead here.':""))}if(!o)throw new Error("Module "+g+" detected as "+h.load.format+" but didn't execute correctly.")})}"undefined"==typeof require||"undefined"==typeof process||process.browser||(ht=require);var bt="undefined"!=typeof self?"self":"global",wt=/(^\s*|[}\);\n]\s*)(import\s*(['"]|(\*\s+as\s+)?(?!type)([^"'\(\)\n; ]+)\s*from\s*['"]|\{)|export\s+\*\s+from\s+["']|export\s*(\{|default|function|class|var|const|let|async\s+function))/,xt=/^(\s*\/\*[^\*]*(\*(?!\/)[^\*]*)*\*\/|\s*\/\/[^\n]*|\s*"[^"]+"\s*;?|\s*'[^']+'\s*;?)*\s*/;function kt(e){var t=e.match(xt);if(!t)return!1;var r=t[0].length;return e.startsWith("System.register",r)||e.startsWith("SystemJS.register",r)}var Et=/(?:^\uFEFF?|[^$_a-zA-Z\xA0-\uFFFF.])define\s*\(\s*("[^"]+"\s*,\s*|'[^']+'\s*,\s*)?\s*(\[(\s*(("[^"]+"|'[^']+')\s*,|\/\/.*\r?\n|\/\*(.|\s)*?\*\/))*(\s*("[^"]+"|'[^']+')\s*,?)?(\s*(\/\/.*\r?\n|\/\*(.|\s)*?\*\/))*\s*\]|function\s*|{|[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*\))/,Ot=/(?:^\uFEFF?|[^$_a-zA-Z\xA0-\uFFFF.])(exports\s*(\[['"]|\.)|module(\.exports|\['exports'\]|\["exports"\])\s*(\[['"]|[=,\.]))/,St=/^\#\!.*/;function jt(e,t){var r=e.split("!")[0];t.file&&t.file!=e||(t.file=r+"!transpiled"),(!t.sources||t.sources.length<=1&&(!t.sources[0]||t.sources[0]===e))&&(t.sources=[r])}var _t,Pt,Mt=/^(\s*\/\*[^\*]*(\*(?!\/)[^\*]*)*\*\/|\s*\/\/[^\n]*|\s*"[^"]+"\s*;?|\s*'[^']+'\s*;?)+/,Rt=/\/\*[^\*]*(\*(?!\/)[^\*]*)*\*\/|\/\/[^\n]*|"[^"]+"\s*;?|'[^']+'\s*;?/g;function Ct(e,t,r){for(var n,o=t.split(".");1<o.length;)e=e[n=o.shift()]=e[n]||{};void 0===e[n=o.shift()]&&(e[n]=r)}if("undefined"==typeof Promise)throw new Error("SystemJS needs a Promise polyfill.");if("undefined"!=typeof document){var Lt=document.getElementsByTagName("script"),At=Lt[Lt.length-1];document.currentScript&&(At.defer||At.async)&&(At=document.currentScript),_t=At&&At.src}else if("undefined"!=typeof importScripts)try{throw new Error("_")}catch(e){e.stack.replace(/(?:at|@).*(http.+):[\d]+:[\d]+/,function(e,t){_t=t})}else"undefined"!=typeof __filename&&(_t=__filename);function Kt(){var e;_.call(this),this._loader={},this[J]={},this[z]={baseURL:y,paths:{},packageConfigPaths:[],packageConfigKeys:[],map:{},packages:{},depCache:{},meta:{},bundles:{},production:!1,transpiler:void 0,loadedBundles:{},warnings:!1,pluginFirst:!1,wasm:!1},this.scriptSrc=_t,this._nodeRequire=ht,this.registry.set("@empty",U),It.call(this,!1,!1),(e=this).set("@@cjs-helpers",e.newModule({requireResolve:Xe.bind(e),getPathVars:Ye})),e.set("@@global-helpers",e.newModule({prepareGlobal:ot})),He(this)}function It(e,t){this[z].production=e,this.registry.set("@system-env",Pt=this.newModule({browser:p,node:!!this._nodeRequire,production:!t&&e,dev:t||!e,build:t,default:!0}))}((Kt.prototype=Object.create(_.prototype)).constructor=Kt).prototype[Kt.resolve=_.resolve]=Kt.prototype.normalize=function(r,n){var o=this[z],i={pluginKey:void 0,pluginArgument:void 0,pluginModule:void 0,packageKey:void 0,packageConfig:void 0,load:void 0},a=de(0,o,n),s=this;return Promise.resolve().then(function(){var t=r.lastIndexOf("#?");if(-1===t)return Promise.resolve(r);var e=je.call(s,r.substr(t+2));return _e.call(s,e,n,!0).then(function(e){return e?r.substr(0,t):"@empty"})}).then(function(e){var t=me(o.pluginFirst,e);return t?(i.pluginKey=t.plugin,Promise.all([ge.call(s,o,t.argument,a&&a.pluginArgument||n,i,a,!0),s.resolve(t.plugin,n)]).then(function(e){if(i.pluginArgument=e[0],i.pluginKey=e[1],i.pluginArgument===i.pluginKey)throw new Error("Plugin "+i.pluginArgument+" cannot load itself, make sure it is excluded from any wildcard meta configuration via a custom loader: false rule.");return ve(o.pluginFirst,e[0],e[1])})):ge.call(s,o,e,a&&a.pluginArgument||n,i,a,!1)}).then(function(e){return Me.call(s,e,n,a)}).then(function(t){return function(e,t,r){r.load=r.load||{extension:"",deps:void 0,format:void 0,loader:void 0,scriptLoad:void 0,globals:void 0,nonce:void 0,integrity:void 0,sourceMap:void 0,exports:void 0,encapsulateGlobal:!1,crossOrigin:void 0,cjsRequireDetection:!0,cjsDeferDepsExecute:!1,esModule:!1};var n,o=0;for(var i in e.meta)if(-1!==(n=i.indexOf("*"))&&i.substr(0,n)===t.substr(0,n)&&i.substr(n+1)===t.substr(t.length-i.length+n+1)){var a=i.split("/").length;o<a&&(o=a),G(r.load,e.meta[i],o!==a)}if(e.meta[t]&&G(r.load,e.meta[t],!1),r.packageKey){var s=t.substr(r.packageKey.length+1),u={};if(r.packageConfig.meta){var o=0;Oe(r.packageConfig.meta,s,function(e,t,r){o<r&&(o=r),G(u,t,r&&r<o)}),G(r.load,u,!1)}!r.packageConfig.format||r.pluginKey||r.load.loader||(r.load.format=r.load.format||r.packageConfig.format)}}.call(s,o,t,i),i.pluginKey||!i.load.loader?t:s.resolve(i.load.loader,t).then(function(e){return i.pluginKey=e,i.pluginArgument=t})}).then(function(e){return s[J][e]=i,e})},Kt.prototype.load=function(e,t){return $.call(this[z],"System.load is deprecated."),this.import(e,t)},Kt.prototype.decanonicalize=Kt.prototype.normalizeSync=Kt.prototype.resolveSync=function e(t,r){var n=this[z],o={pluginKey:void 0,pluginArgument:void 0,pluginModule:void 0,packageKey:void 0,packageConfig:void 0,load:void 0},i=i||de(0,n,r),a=me(n.pluginFirst,t);return a?(o.pluginKey=e.call(this,a.plugin,r),ve(n.pluginFirst,pe.call(this,n,a.argument,i.pluginArgument||r,o,i,!!o.pluginKey),o.pluginKey)):pe.call(this,n,t,i.pluginArgument||r,o,i,!!o.pluginKey)},Kt.prototype[Kt.instantiate=_.instantiate]=function(i,d){var c=this,f=this[z];return(function(e,t,r){var n;if(p&&(n=e.depCache[r]))for(var o=0;o<n.length;o++)t.normalize(n[o],r).then(X);else{var i=!1;for(var a in e.bundles){for(var o=0;o<e.bundles[a].length;o++){var s=e.bundles[a][o];if(s===r){i=!0;break}if(-1!==s.indexOf("*")){var u=s.split("*");if(2!==u.length){e.bundles[a].splice(o--,1);continue}if(r.substr(0,u[0].length)===u[0]&&r.substr(r.length-u[1].length,u[1].length)===u[1]){i=!0;break}}}if(i)return t.import(a)}}}(f,this,i)||D).then(function(){if(!d()){var e,t,r,n=c[J][i];if("@node/"===i.substr(0,6)){if(!c._nodeRequire)throw new TypeError("Error loading "+i+". Can only load node core modules in Node.");return c.registerDynamic([],!1,function(){return function(e,t){if("."===e[0])throw new Error("Node module "+e+" can't be loaded as it is not a package require.");if(!T){var r=this._nodeRequire("module"),n=decodeURI(t.substr(a?8:7));(T=new r(n)).paths=r._nodeModulePaths(n)}return T.require(e)}.call(c,i.substr(6),c.baseURL)}),void d()}return n.load.scriptLoad?!n.load.pluginKey&&mt||(n.load.scriptLoad=!1,$.call(f,'scriptLoad not supported for "'+i+'"')):!1!==n.load.scriptLoad&&!n.load.pluginKey&&mt&&(n.load.deps||n.load.globals||!("system"===n.load.format||"register"===n.load.format||"global"===n.load.format&&n.load.exports)||(n.load.scriptLoad=!0)),n.load.scriptLoad?new Promise(function(t,e){if("amd"===n.load.format&&E.define!==c.amdDefine)throw new Error("Loading AMD with scriptLoad requires setting the global `"+bt+".define = SystemJS.amdDefine`");Q(i,n.load.crossOrigin,n.load.integrity,function(){if(!d()){n.load.format="global";var e=n.load.exports&&nt(n.load.exports);c.registerDynamic([],!1,function(){return vt(n,e),e}),d()}t()},e)}):(e=c,t=i,r=n,r.pluginKey?e.import(r.pluginKey).then(function(e){r.pluginModule=e,r.pluginLoad={name:t,address:r.pluginArgument,source:void 0,metadata:r.load},r.load.deps=r.load.deps||[]}):D).then(function(){return o=c,a=i,s=n,u=d,l=f.wasm,s.load.exports&&!s.load.format&&(s.load.format="global"),D.then(function(){if(s.pluginModule&&s.pluginModule.locate)return Promise.resolve(s.pluginModule.locate.call(o,s.pluginLoad)).then(function(e){e&&(s.pluginLoad.address=e)})}).then(function(){return s.pluginModule?(l=!1,s.pluginModule.fetch?s.pluginModule.fetch.call(o,s.pluginLoad,function(e){return le(e.address,s.load.authorization,s.load.integrity,!1)}):le(s.pluginLoad.address,s.load.authorization,s.load.integrity,!1)):le(a,s.load.authorization,s.load.integrity,l)}).then(function(r){return l&&"string"!=typeof r?(e=o,t=r,i=u,n=new Uint8Array(t),0===n[0]&&97===n[1]&&115===n[2]?WebAssembly.compile(t).then(function(t){var r=[],n=[],o={};return WebAssembly.Module.imports&&WebAssembly.Module.imports(t).forEach(function(e){var t=e.module;n.push(function(e){o[t]=e}),-1===r.indexOf(t)&&r.push(t)}),e.register(r,function(e){return{setters:n,execute:function(){e(new WebAssembly.Instance(t,o).exports)}}}),i(),!0}):Promise.resolve(!1)).then(function(e){if(!e){var t=p?new TextDecoder("utf-8").decode(new Uint8Array(r)):r.toString();return yt(o,a,t,s,u)}}):yt(o,a,r,s,u);var e,t,i,n});var o,a,s,u,l})}}).then(function(e){return delete c[J][i],e})},Kt.prototype.config=function(e,t){var r,n=this,o=this[z];if("warnings"in e&&(o.warnings=e.warnings),"wasm"in e&&(o.wasm="undefined"!=typeof WebAssembly&&e.wasm),("production"in e||"build"in e)&&It.call(n,!!e.production,!!(e.build||Pt&&Pt.build)),!t)for(var i in Ce(0,e,function(e){r=r||e.baseURL}),(r=r||e.baseURL)&&(o.baseURL=b(r,y)||b("./"+r,y),"/"!==o.baseURL[o.baseURL.length-1]&&(o.baseURL+="/")),e.paths&&B(o.paths,e.paths),Ce(0,e,function(e){e.paths&&B(o.paths,e.paths)}),o.paths)-1!==o.paths[i].indexOf("*")&&($.call(o,"Path config "+i+" -> "+o.paths[i]+" is no longer supported as wildcards are deprecated."),delete o.paths[i]);if(e.defaultJSExtensions&&$.call(o,"The defaultJSExtensions configuration option is deprecated.\n Use packages defaultExtension instead.",!0),"boolean"==typeof e.pluginFirst&&(o.pluginFirst=e.pluginFirst),e.map)for(var i in e.map){var a=e.map[i];if("string"==typeof a){var s=fe.call(n,o,a,void 0,!1,!1);"/"===s[s.length-1]&&":"!==i[i.length-1]&&"/"!==i[i.length-1]&&(s=s.substr(0,s.length-1)),o.map[i]=s}else{h=(h=fe.call(n,o,"/"!==i[i.length-1]?i+"/":i,void 0,!0,!0)).substr(0,h.length-1);var u=o.packages[h];u||((u=o.packages[h]={defaultExtension:void 0,main:void 0,format:void 0,meta:void 0,map:void 0,packageConfig:void 0,configured:!1}).defaultExtension=""),Ke(u,{map:a},h,!1,o)}}if(e.packageConfigPaths){for(var l=[],d=0;d<e.packageConfigPaths.length;d++){var c=e.packageConfigPaths[d],f=Math.max(c.lastIndexOf("*")+1,c.lastIndexOf("/")),p=fe.call(n,o,c.substr(0,f),void 0,!1,!1);l[d]=p+c.substr(f)}o.packageConfigPaths=l}if(e.bundles)for(var i in e.bundles){var g=[];for(d=0;d<e.bundles[i].length;d++)g.push(n.normalizeSync(e.bundles[i][d]));o.bundles[i]=g}if(e.packages)for(var i in e.packages){if(i.match(/^([^\/]+:)?\/\/$/))throw new TypeError('"'+i+'" is not a valid package name.');var h;h=(h=fe.call(n,o,"/"!==i[i.length-1]?i+"/":i,void 0,!0,!0)).substr(0,h.length-1),Ke(o.packages[h]=o.packages[h]||{defaultExtension:void 0,main:void 0,format:void 0,meta:void 0,map:void 0,packageConfig:void 0,configured:!1},e.packages[i],h,!1,o)}if(e.depCache)for(var i in e.depCache)o.depCache[n.normalizeSync(i)]=[].concat(e.depCache[i]);if(e.meta)for(var i in e.meta)if("*"===i[0])B(o.meta[i]=o.meta[i]||{},e.meta[i]);else{var m=fe.call(n,o,i,void 0,!0,!0);B(o.meta[m]=o.meta[m]||{},e.meta[i])}for(var v in"transpiler"in e&&(o.transpiler=e.transpiler),e)-1===Dt.indexOf(v)&&-1===Re.indexOf(v)&&(n[v]=e[v]);Ce(0,e,function(e){n.config(e,!0)})},Kt.prototype.getConfig=function(e){if(e){if(-1!==Dt.indexOf(e))return Le(this[z],e);throw new Error('"'+e+'" is not a valid configuration name. Must be one of '+Dt.join(", ")+".")}for(var t={},r=0;r<Dt.length;r++){var n=Dt[r],o=Le(this[z],n);void 0!==o&&(t[n]=o)}return t},Kt.prototype.global=E,Kt.prototype.import=function(){return _.prototype.import.apply(this,arguments).then(function(e){return"__useDefault"in e?e.__useDefault:e})};for(var Dt=["baseURL","map","paths","packages","packageConfigPaths","depCache","meta","bundles","transpiler","warnings","pluginFirst","production","wasm"],Ft="undefined"!=typeof Proxy,qt=0;qt<Dt.length;qt++)!function(r){Object.defineProperty(Kt.prototype,r,{get:function(){var e=Le(this[z],r);return Ft&&"object"==typeof e&&(e=new Proxy(e,{set:function(e,t){throw new Error("Cannot set SystemJS."+r+'["'+t+'"] directly. Use SystemJS.config({ '+r+': { "'+t+'": ... } }) rather.')}})),e},set:function(e){throw new Error("Setting `SystemJS."+r+"` directly is no longer supported. Use `SystemJS.config({ "+r+": ... })`.")}})}(Dt[qt]);function Ut(e,t){$.call(e[z],"SystemJS."+t+" is deprecated for SystemJS.registry."+t)}Kt.prototype.delete=function(e){return Ut(this,"delete"),this.registry.delete(e)},Kt.prototype.get=function(e){return Ut(this,"get"),this.registry.get(e)},Kt.prototype.has=function(e){return Ut(this,"has"),this.registry.has(e)},Kt.prototype.set=function(e,t){return Ut(this,"set"),this.registry.set(e,t)},Kt.prototype.newModule=function(e){return new S(e)},Kt.prototype.isModule=function(e){return void 0===q&&(q="undefined"!=typeof Symbol&&!!Symbol.toStringTag),e instanceof S||q&&"[object Module]"==Object.prototype.toString.call(e)},Kt.prototype.register=function(e,t,r){return"string"==typeof e&&(e=ce.call(this,this[z],e)),_.prototype.register.call(this,e,t,r)},Kt.prototype.registerDynamic=function(e,t,r,n){return"string"==typeof e&&(e=ce.call(this,this[z],e)),_.prototype.registerDynamic.call(this,e,t,r,n)},Kt.prototype.version="0.21.3 Dev";var Tt=new Kt;(p||N)&&(E.SystemJS=E.System=Tt),"undefined"!=typeof module&&module.exports&&(module.exports=Tt)}();