1 |
- !function(){"use strict";!function(){const t="undefined"!=typeof self,e="undefined"!=typeof document,n=t?self:global;let r;if(e){const t=document.querySelector("base[href]");t&&(r=t.href)}if(!r&&"undefined"!=typeof location){r=location.href.split("#")[0].split("?")[0];const t=r.lastIndexOf("/");-1!==t&&(r=r.slice(0,t+1))}const o=/\\/g;function i(t,e){if(-1!==t.indexOf("\\")&&(t=t.replace(o,"/")),"/"===t[0]&&"/"===t[1])return e.slice(0,e.indexOf(":")+1)+t;if("."===t[0]&&("/"===t[1]||"."===t[1]&&("/"===t[2]||2===t.length&&(t+="/"))||1===t.length&&(t+="/"))||"/"===t[0]){const n=e.slice(0,e.indexOf(":")+1);let r;if("/"===e[n.length+1]?"file:"!==n?(r=e.slice(n.length+2),r=r.slice(r.indexOf("/")+1)):r=e.slice(8):r=e.slice(n.length+("/"===e[n.length])),"/"===t[0])return e.slice(0,e.length-r.length-1)+t;const o=r.slice(0,r.lastIndexOf("/")+1)+t,i=[];let s=-1;for(let t=0;t<o.length;t++)-1!==s?"/"===o[t]&&(i.push(o.slice(s,t+1)),s=-1):"."===o[t]?"."!==o[t+1]||"/"!==o[t+2]&&t+2!==o.length?"/"===o[t+1]||t+1===o.length?t+=1:s=t:(i.pop(),t+=2):s=t;return-1!==s&&i.push(o.slice(s)),e.slice(0,e.length-r.length)+i.join("")}}function s(t,e){return i(t,e)||(-1!==t.indexOf(":")?t:i("./"+t,e))}function c(t,e){for(let n in e)t[n]=e[n];return t}function u(t,e,n,r,o){for(let s in t){const c=i(s,n)||s,u=t[s];if("string"!=typeof u)continue;const l=h(r,i(u,n)||u,o);l?e[c]=l:a(s,u,"bare specifier did not resolve")}}function l(t,e){if(e[t])return t;let n=t.length;do{const r=t.slice(0,n+1);if(r in e)return r}while(-1!==(n=t.lastIndexOf("/",n-1)))}function f(t,e){const n=l(t,e);if(n){const r=e[n];if(null===r)return;if(!(t.length>n.length&&"/"!==r[r.length-1]))return r+t.slice(n.length);a(n,r,"should have a trailing '/'")}}function a(t,e,n){console.warn("Package target "+n+", resolving target '"+e+"' for "+t)}function h(t,e,n){let r=n&&l(n,t.scopes);for(;r;){const n=f(e,t.scopes[r]);if(n)return n;r=l(r.slice(0,r.lastIndexOf("/")),t.scopes)}return f(e,t.imports)||-1!==e.indexOf(":")&&e}var p=Object.freeze({hasSelf:t,hasDocument:e,global:n,get baseUrl(){return r},resolveIfNotPlainOrUrl:i,resolveUrl:s,resolveAndComposeImportMap:function(t,e,n){const r={imports:c({},n.imports),scopes:c({},n.scopes)};if(t.imports&&u(t.imports,r.imports,e,n,null),t.scopes)for(let o in t.scopes){const i=s(o,e);u(t.scopes[o],r.scopes[i]||(r.scopes[i]={}),e,n,i)}return r},resolveImportMap:h});const d="undefined"!=typeof Symbol,m=d&&Symbol.toStringTag,g=d?Symbol():"@";function y(){this[g]={}}const v=y.prototype;function b(t){return t.id}function O(t,e,n){if(t.onload(n,e.id,e.d&&e.d.map(b)),n)throw n}let w;v.patches={},v.patches.common=p,v.prepareImport=function(){},v.import=function(t,e){const n=this;return Promise.resolve(n.prepareImport()).then((function(){return n.resolve(t,e)})).then((function(t){const e=function t(e,n,r){let o=e[g][n];if(o)return o;const i=[],s=Object.create(null);m&&Object.defineProperty(s,m,{value:"Module"});let c=Promise.resolve().then((function(){return e.instantiate(n,r)})).then((function(t){if(!t)throw Error("Module "+n+" did not instantiate");const r=t[1]((function(t,e){o.h=!0;let n=!1;if("object"!=typeof t)t in s&&s[t]===e||(s[t]=e,n=!0);else{for(let e in t){let r=t[e];e in s&&s[e]===r||(s[e]=r,n=!0)}t.__esModule&&(s.__esModule=t.__esModule)}if(n)for(let t=0;t<i.length;t++)i[t](s);return e}),2===t[1].length?{import:function(t){return e.import(t,n)},meta:e.createContext(n)}:void 0);return o.e=r.execute||function(){},[t[0],r.setters||[]]}));c=c.catch((function(t){O(e,o,t)}));const u=c.then((function(r){return Promise.all(r[0].map((function(o,i){const s=r[1][i];return Promise.resolve(e.resolve(o,n)).then((function(r){const o=t(e,r,n);return Promise.resolve(o.I).then((function(){return s&&(o.i.push(s),!o.h&&o.I||s(o.n)),o}))}))}))).then((function(t){o.d=t}))}));return u.catch((function(t){o.e=null,o.er=t})),o=e[g][n]={id:n,i:i,n:s,I:c,L:u,h:!1,d:void 0,e:void 0,er:void 0,E:void 0,C:void 0}}(n,t);return e.C||function(t,e){return e.C=function t(e,n,r){if(!r[n.id])return r[n.id]=!0,Promise.resolve(n.L).then((function(){return Promise.all(n.d.map((function(n){return t(e,n,r)})))}))}(t,e,{}).then((function(){return function t(e,n,r){if(r[n.id])return;if(r[n.id]=!0,!n.e){if(n.er)throw n.er;return n.E?n.E:void 0}let o;return n.d.forEach((function(i){try{const s=t(e,i,r);s&&(s.catch((function(t){O(e,n,t)})),(o=o||[]).push(s))}catch(t){O(e,n,t)}})),o?Promise.all(o).then(i):i();function i(){try{let t=n.e.call(S);if(t)return t=t.then((function(){n.C=n.n,n.E=null,O(e,n,null)}),(function(t){O(e,n,t)})),n.E=n.E||t;n.C=n.n,O(e,n,null)}catch(t){throw O(e,n,t),n.er=t,t}finally{n.L=n.I=void 0,n.e=null}}}(t,e,{})})).then((function(){return e.n}))}(n,e)}))},v.createContext=function(t){return{url:t}},v.onload=function(){},v.register=function(t,e){w=[t,e]},v.getRegister=function(){const t=w;return w=void 0,t};const S=Object.freeze(Object.create(null));n.System=new y,v.patches.importMap={imports:{},scopes:{}},v.resolve=function(t,e){return e=e||r,h(v.patches.importMap,i(t,e)||t,e)||function(t,e){throw Error("Unable to resolve specifier '"+t+(e?"' from "+e:"'"))}(t,e)};const x=v.register;let E,P;function j(){Array.prototype.forEach.call(document.querySelectorAll("script[type=systemjs-module]"),(function(t){t.src&&System.import("import:"===t.src.slice(0,7)?t.src.slice(7):s(t.src,r))}))}v.register=function(t,e){x.call(this,t,e)},v.createScript=function(t){const e=document.createElement("script");return e.charset="utf-8",e.async=!0,e.crossOrigin="anonymous",e.src=t,e},e&&window.addEventListener("error",(function(t){E=t.filename,P=t.error})),v.instantiate=function(t,e){const n=this;return new Promise((function(r,o){const i=v.createScript(t);i.addEventListener("error",(function(){o(Error("Error loading "+t+(e?" from "+e:"")))})),i.addEventListener("load",(function(){document.head.removeChild(i),E===t?o(P):r(n.getRegister())})),document.head.appendChild(i)}))},e&&(window.addEventListener("DOMContentLoaded",j),j()),t&&"function"==typeof importScripts&&(v.instantiate=function(t){const e=this;return new Promise((function(n,r){try{importScripts(t)}catch(t){r(t)}n(e.getRegister())}))}),function(t){const e=t.System.constructor.prototype,n=-1!==navigator.userAgent.indexOf("Trident");let r,o,i;const s=e.import;e.import=function(e,c){return function(){r=o=void 0;for(let e in t)!t.hasOwnProperty(e)||!isNaN(e)&&e<t.length||n&&t[e]&&t[e].parent===window||(r?o||(o=e):r=e,i=e)}(),s.call(this,e,c)};const c=[[],function(){return{}}],u=e.getRegister;e.getRegister=function(){const e=u.call(this);if(e)return e;const s=function(){let e,s=0;for(let i in t)if(!(!t.hasOwnProperty(i)||!isNaN(i)&&i<t.length||n&&t[i]&&t[i].parent===window)){if(0===s&&i!==r||1===s&&i!==o)return i;s++,e=i}if(e!==i)return e}();if(!s)return c;let l;try{l=t[s]}catch(t){return c}return[[],function(t){return{execute:function(){t({default:l,__useDefault:!0})}}}]}}("undefined"!=typeof self?self:global),function(t){const e=t.System.constructor.prototype,n=e.instantiate,r=/\.(css|html|json|wasm)$/;e.shouldFetch=function(t){const e=t.split("?")[0].split("#")[0];return e.slice(e.lastIndexOf(".")).match(r)},e.fetch=function(t){return fetch(t)},e.instantiate=function(t,e){const r=this;return this.shouldFetch(t)?this.fetch(t).then((function(n){if(!n.ok)throw Error(n.status+" "+n.statusText+", loading "+t+(e?" from "+e:""));const o=n.headers.get("content-type");if(o.match(/^(text|application)\/(x-)?javascript(;|$)/))return n.text().then((function(t){return(0,eval)(t),r.getRegister()}));if(o.match(/^application\/json(;|$)/))return n.text().then((function(t){return[[],function(e){return{execute:function(){e("default",JSON.parse(t))}}}]}));if(o.match(/^text\/css(;|$)/))return n.text().then((function(t){return[[],function(e){return{execute:function(){const n=new CSSStyleSheet;n.replaceSync(t),e("default",n)}}}]}));if(o.match(/^application\/wasm(;|$)/))return(WebAssembly.compileStreaming?WebAssembly.compileStreaming(n):n.arrayBuffer().then(WebAssembly.compile)).then((function(t){const e=[],n=[],r={};return WebAssembly.Module.imports&&WebAssembly.Module.imports(t).forEach((function(t){const o=t.module;-1===e.indexOf(o)&&(e.push(o),n.push((function(t){r[o]=t})))})),[e,function(e){return{setters:n,execute:function(){return WebAssembly.instantiate(t,r).then((function(t){e(t.exports)}))}}}]}));throw new Error('Unknown module type "'+o+'"')})):n.apply(this,arguments)}}("undefined"!=typeof self?self:global);const I="undefined"!=typeof Symbol&&Symbol.toStringTag;v.get=function(t){const e=this[g][t];if(e&&null===e.e&&!e.E)return e.er?null:e.n},v.set=function(t,e){let n;I&&"Module"===e[I]?n=e:(n=Object.assign(Object.create(null),e),I&&Object.defineProperty(n,I,{value:"Module"}));const r=Promise.resolve(n),o=this[g][t]||(this[g][t]={id:t,i:[],h:!1,d:[],e:null,er:void 0,E:void 0});return!o.e&&!o.E&&(Object.assign(o,{n:n,I:void 0,L:void 0,C:r}),n)},v.has=function(t){return!!this[g][t]},v.delete=function(t){const e=this[g],n=e[t];if(!n||null!==n.e||n.E)return!1;let r=n.i;return n.d&&n.d.forEach((function(t){const e=t.i.indexOf(n);-1!==e&&t.i.splice(e,1)})),delete e[t],function(){const n=e[t];if(!n||!r||null!==n.e||n.E)return!1;r.forEach((function(t){n.i.push(t),t(n.n)})),r=null}};const M="undefined"!=typeof Symbol&&Symbol.iterator;v.entries=function(){const t=this,e=Object.keys(t[g]);let n,r,o=0;const i={next:function(){for(;void 0!==(r=e[o++])&&void 0===(n=t.get(r)););return{done:void 0===r,value:void 0!==r&&[r,n]}}};return i[M]=function(){return this},i}}(),function(t){t.System.constructor.prototype.createScript=function(t,e){throw new Error("You are trying to load "+t+" from "+e+". However your platform does not support loading script through DOM.")}}("undefined"!=typeof self?self:global),function(t){if(!t.parent){window.System = t.System;}const e=t.System;s(e);const n=e.constructor.prototype,r=e.constructor,o=function(){r.call(this),s(this)};let i;function s(t){t.registerRegistry=Object.create(null)}o.prototype=n,e.constructor=o;const c=n.register;n.register=function(t,e,n){if("string"!=typeof t)return c.apply(this,arguments);const r=[e,n];return this.registerRegistry[t]=r,i||(i=r,Promise.resolve().then((function(){i=null}))),c.apply(this,arguments)};const u=n.resolve;n.resolve=function(t,e){try{return u.call(this,t,e)}catch(e){if(t in this.registerRegistry)return t;throw e}};const l=n.instantiate;n.instantiate=function(t,e){const n=this.registerRegistry[t];return n?(this.registerRegistry[t]=null,n):l.call(this,t,e)};const f=n.getRegister;n.getRegister=function(){const t=f.call(this),e=i||t;return i=null,e}}("undefined"!=typeof self?self:global)}();
|