This commit is contained in:
Guy Bedford 2024-01-01 06:15:18 -08:00
parent dcd8f3178c
commit 3400f59002
12 changed files with 13 additions and 13 deletions

View File

@ -81,7 +81,7 @@ hoist_funs = true
keep_fargs = false
pure_getters = true
passes = 2
unsafe = true
unsafe = false
[[task]]
target = 'dist/system-node.cjs'

View File

@ -1,2 +1,2 @@
!function(){function e(e,t){if(-1!==e.indexOf("\\")&&(e=e.replace(i,"/")),"/"===e[0]&&"/"===e[1])return t.slice(0,t.indexOf(":")+1)+e;if("."===e[0]&&("/"===e[1]||"."===e[1]&&("/"===e[2]||2===e.length&&(e+="/"))||1===e.length&&(e+="/"))||"/"===e[0]){var n,s=t.slice(0,t.indexOf(":")+1);if(n="/"===t[s.length+1]?"file:"!==s?(n=t.slice(s.length+2)).slice(n.indexOf("/")+1):t.slice(8):t.slice(s.length+("/"===t[s.length])),"/"===e[0])return t.slice(0,t.length-n.length-1)+e;for(var r=n.slice(0,n.lastIndexOf("/")+1)+e,l=[],o=-1,c=0;c<r.length;c++)-1!==o?"/"===r[c]&&(l.push(r.slice(o,c+1)),o=-1):"."===r[c]?"."!==r[c+1]||"/"!==r[c+2]&&c+2!==r.length?"/"===r[c+1]||c+1===r.length?c+=1:o=c:(l.pop(),c+=2):o=c;return-1!==o&&l.push(r.slice(o)),t.slice(0,t.length-n.length)+l.join("")}}var t;if("undefined"!=typeof document){var n=document.querySelector("base[href]");n&&(t=n.href)}if(!t&&"undefined"!=typeof location){var s=(t=location.href.split("#")[0].split("?")[0]).lastIndexOf("/");-1!==s&&(t=t.slice(0,s+1))}var i=/\\/g;!function(t){var n=t.System.constructor.prototype,s=/^[^#?]+\.(css|html|json|wasm)([?#].*)?$/,i=n.shouldFetch.bind(n);n.shouldFetch=function(e){return i(e)||s.test(e)};var r=/^application\/json(;|$)/,l=/^text\/css(;|$)/,o=/^application\/wasm(;|$)/,c=n.fetch;n.fetch=function(n,s){return c(n,s).then((function(i){if(s.passThrough)return i;if(!i.ok)return i;var c=i.headers.get("content-type");return r.test(c)?i.json().then((function(e){return new Response(new Blob(['System.register([],function(e){return{execute:function(){e("default",'+JSON.stringify(e)+")}}})"],{type:"application/javascript"}))})):l.test(c)?i.text().then((function(t){return t=t.replace(/url\(\s*(?:(["'])((?:\\.|[^\n\\"'])+)\1|((?:\\.|[^\s,"'()\\])+))\s*\)/g,(function(t,s,i,r){return"url("+s+(e(l=i||r,o=n)||(-1!==l.indexOf(":")?l:e("./"+l,o)))+s+")";var l,o})),new Response(new Blob(["System.register([],function(e){return{execute:function(){var s=new CSSStyleSheet();s.replaceSync("+JSON.stringify(t)+');e("default",s)}}})'],{type:"application/javascript"}))})):o.test(c)?(WebAssembly.compileStreaming?WebAssembly.compileStreaming(i):i.arrayBuffer().then(WebAssembly.compile)).then((function(e){t.System.wasmModules||(t.System.wasmModules=Object.create(null)),t.System.wasmModules[n]=e;var s=[],i=[];return WebAssembly.Module.imports&&WebAssembly.Module.imports(e).forEach((function(e){var t=JSON.stringify(e.module);-1===s.indexOf(t)&&(s.push(t),i.push("function(m){i["+t+"]=m}"))})),new Response(new Blob(["System.register(["+s.join(",")+"],function(e){var i={};return{setters:["+i.join(",")+"],execute:function(){return WebAssembly.instantiate(System.wasmModules["+JSON.stringify(n)+"],i).then(function(m){e(m.exports)})}}})"],{type:"application/javascript"}))})):i}))}}("undefined"!=typeof self?self:global)}();
!function(){function e(e,t){if(-1!==e.indexOf("\\")&&(e=e.replace(i,"/")),"/"===e[0]&&"/"===e[1])return t.slice(0,t.indexOf(":")+1)+e;if("."===e[0]&&("/"===e[1]||"."===e[1]&&("/"===e[2]||2===e.length&&(e+="/"))||1===e.length&&(e+="/"))||"/"===e[0]){var n,s=t.slice(0,t.indexOf(":")+1);if(n="/"===t[s.length+1]?"file:"!==s?(n=t.slice(s.length+2)).slice(n.indexOf("/")+1):t.slice(8):t.slice(s.length+("/"===t[s.length])),"/"===e[0])return t.slice(0,t.length-n.length-1)+e;for(var r=n.slice(0,n.lastIndexOf("/")+1)+e,l=[],o=-1,c=0;c<r.length;c++)-1!==o?"/"===r[c]&&(l.push(r.slice(o,c+1)),o=-1):"."===r[c]?"."!==r[c+1]||"/"!==r[c+2]&&c+2!==r.length?"/"===r[c+1]||c+1===r.length?c+=1:o=c:(l.pop(),c+=2):o=c;return-1!==o&&l.push(r.slice(o)),t.slice(0,t.length-n.length)+l.join("")}}var t;if("undefined"!=typeof document){var n=document.querySelector("base[href]");n&&(t=n.href)}if(!t&&"undefined"!=typeof location){var s=(t=location.href.split("#")[0].split("?")[0]).lastIndexOf("/");-1!==s&&(t=t.slice(0,s+1))}var i=/\\/g;!function(t){var n=t.System.constructor.prototype,s=/^[^#?]+\.(css|html|json|wasm)([?#].*)?$/,i=n.shouldFetch.bind(n);n.shouldFetch=function(e){return i(e)||s.test(e)};var r=/^application\/json(;|$)/,l=/^text\/css(;|$)/,o=/^application\/wasm(;|$)/,c=n.fetch;n.fetch=function(n,s){return c(n,s).then((function(i){if(s.passThrough)return i;if(!i.ok)return i;var c=i.headers.get("content-type");return r.test(c)?i.json().then((function(e){return new Response(new Blob(['System.register([],function(e){return{execute:function(){e("default",'+JSON.stringify(e)+")}}})"],{type:"application/javascript"}))})):l.test(c)?i.text().then((function(t){return t=t.replace(/url\(\s*(?:(["'])((?:\\.|[^\n\\"'])+)\1|((?:\\.|[^\s,"'()\\])+))\s*\)/g,(function(t,s,i,r){return["url(",s,(l=i||r,o=n,e(l,o)||(-1!==l.indexOf(":")?l:e("./"+l,o))),s,")"].join("");var l,o})),new Response(new Blob(["System.register([],function(e){return{execute:function(){var s=new CSSStyleSheet();s.replaceSync("+JSON.stringify(t)+');e("default",s)}}})'],{type:"application/javascript"}))})):o.test(c)?(WebAssembly.compileStreaming?WebAssembly.compileStreaming(i):i.arrayBuffer().then(WebAssembly.compile)).then((function(e){t.System.wasmModules||(t.System.wasmModules=Object.create(null)),t.System.wasmModules[n]=e;var s=[],i=[];return WebAssembly.Module.imports&&WebAssembly.Module.imports(e).forEach((function(e){var t=JSON.stringify(e.module);-1===s.indexOf(t)&&(s.push(t),i.push("function(m){i["+t+"]=m}"))})),new Response(new Blob(["System.register(["+s.join(",")+"],function(e){var i={};return{setters:["+i.join(",")+"],execute:function(){return WebAssembly.instantiate(System.wasmModules["+JSON.stringify(n)+"],i).then(function(m){e(m.exports)})}}})"],{type:"application/javascript"}))})):i}))}}("undefined"!=typeof self?self:global)}();
//# sourceMappingURL=module-types.min.js.map

File diff suppressed because one or more lines are too long

View File

@ -1,2 +1,2 @@
!function(t){function e(t){t.registerRegistry=Object.create(null),t.namedRegisterAliases=Object.create(null)}var r=t.System;e(r);var i,s,n=r.constructor.prototype,l=r.constructor,a=function(){l.call(this),e(this)};a.prototype=n,r.constructor=a;var o=n.register;n.register=function(t,e,r,n){if("string"!=typeof t)return o.apply(this,arguments);var l=[e,r,n];return this.registerRegistry[t]=l,i||(i=l,s=t),Promise.resolve().then((function(){i=null,s=null})),o.call(this,e,r,n)};var c=n.resolve;n.resolve=function(t,e){try{return c.call(this,t,e)}catch(r){if(t in this.registerRegistry)return this.namedRegisterAliases[t]||t;throw r}};var u=n.instantiate;n.instantiate=function(t,e,r){var i=this.registerRegistry[t];return i?(this.registerRegistry[t]=null,i):u.call(this,t,e,r)};var g=n.getRegister;n.getRegister=function(t){var e=g.call(this,t);s&&t&&(this.namedRegisterAliases[s]=t);var r=i||e;return i=null,s=null,r}}("undefined"!=typeof self?self:global);
!function(t){function e(t){t.registerRegistry=Object.create(null),t.namedRegisterAliases=Object.create(null)}var r=t.System;e(r);var i,s,n=r.constructor.prototype,l=r.constructor,a=function(){l.call(this),e(this)};a.prototype=n,r.constructor=a;var o=n.register;n.register=function(t,e,r,n){if("string"!=typeof t)return o.apply(this,arguments);var l=[e,r,n];return this.registerRegistry[t]=l,i||(i=l,s=t),Promise.resolve().then((function(){i=null,s=null})),o.apply(this,[e,r,n])};var u=n.resolve;n.resolve=function(t,e){try{return u.call(this,t,e)}catch(r){if(t in this.registerRegistry)return this.namedRegisterAliases[t]||t;throw r}};var c=n.instantiate;n.instantiate=function(t,e,r){var i=this.registerRegistry[t];return i?(this.registerRegistry[t]=null,i):c.call(this,t,e,r)};var g=n.getRegister;n.getRegister=function(t){var e=g.call(this,t);s&&t&&(this.namedRegisterAliases[s]=t);var r=i||e;return i=null,s=null,r}}("undefined"!=typeof self?self:global);
//# sourceMappingURL=named-register.min.js.map

View File

@ -1 +1 @@
{"version":3,"file":"##.min.js","names":["global","setRegisterRegistry","systemInstance","registerRegistry","Object","create","namedRegisterAliases","System","firstNamedDefine","firstName","systemJSPrototype","constructor","prototype","SystemJS","call","this","register","name","deps","declare","metas","apply","arguments","define","Promise","resolve","then","id","parentURL","err","instantiate","url","firstParentUrl","meta","result","getRegister","self"],"sources":["named-register.js"],"sourcesContent":["(function () {\n\n /*\r\n * SystemJS named register extension\r\n * Supports System.register('name', [..deps..], function (_export, _context) { ... })\r\n *\r\n * Names are written to the registry as-is\r\n * System.register('x', ...) can be imported as System.import('x')\r\n */\r\n (function (global) {\r\n var System = global.System;\r\n setRegisterRegistry(System);\r\n var systemJSPrototype = System.constructor.prototype;\r\n var constructor = System.constructor;\r\n var SystemJS = function () {\r\n constructor.call(this);\r\n setRegisterRegistry(this);\r\n };\r\n SystemJS.prototype = systemJSPrototype;\r\n System.constructor = SystemJS;\r\n\r\n var firstNamedDefine, firstName;\r\n\r\n function setRegisterRegistry(systemInstance) {\r\n systemInstance.registerRegistry = Object.create(null);\r\n systemInstance.namedRegisterAliases = Object.create(null);\r\n }\r\n\r\n var register = systemJSPrototype.register;\r\n systemJSPrototype.register = function (name, deps, declare, metas) {\r\n if (typeof name !== 'string')\r\n return register.apply(this, arguments);\r\n var define = [deps, declare, metas];\r\n this.registerRegistry[name] = define;\r\n if (!firstNamedDefine) {\r\n firstNamedDefine = define;\r\n firstName = name;\r\n }\r\n Promise.resolve().then(function () {\r\n firstNamedDefine = null;\r\n firstName = null;\r\n });\r\n return register.apply(this, [deps, declare, metas]);\r\n };\r\n\r\n var resolve = systemJSPrototype.resolve;\r\n systemJSPrototype.resolve = function (id, parentURL) {\r\n try {\r\n // Prefer import map (or other existing) resolution over the registerRegistry\r\n return resolve.call(this, id, parentURL);\r\n } catch (err) {\r\n if (id in this.registerRegistry) {\r\n return this.namedRegisterAliases[id] || id;\r\n }\r\n throw err;\r\n }\r\n };\r\n\r\n var instantiate = systemJSPrototype.instantiate;\r\n systemJSPrototype.instantiate = function (url, firstParentUrl, meta) {\r\n var result = this.registerRegistry[url];\r\n if (result) {\r\n this.registerRegistry[url] = null;\r\n return result;\r\n } else {\r\n return instantiate.call(this, url, firstParentUrl, meta);\r\n }\r\n };\r\n\r\n var getRegister = systemJSPrototype.getRegister;\r\n systemJSPrototype.getRegister = function (url) {\r\n // Calling getRegister() because other extras need to know it was called so they can perform side effects\r\n var register = getRegister.call(this, url);\r\n\r\n if (firstName && url) {\r\n this.namedRegisterAliases[firstName] = url;\r\n }\r\n var result = firstNamedDefine || register;\r\n firstNamedDefine = null;\r\n firstName = null;\r\n return result;\r\n };\r\n })(typeof self !== 'undefined' ? self : global);\n\n})();\n"],"mappings":"CASE,SAAWA,GAcT,SAASC,EAAoBC,GAC3BA,EAAeC,iBAAmBC,OAAOC,OAAO,MAChDH,EAAeI,qBAAuBF,OAAOC,OAAO,KACtD,CAhBA,IAAIE,EAASP,EAAOO,OACpBN,EAAoBM,GACpB,IASIC,EAAkBC,EATlBC,EAAoBH,EAAOI,YAAYC,UACvCD,EAAcJ,EAAOI,YACrBE,EAAW,WACbF,EAAYG,KAAKC,MACjBd,EAAoBc,KACtB,EACAF,EAASD,UAAYF,EACrBH,EAAOI,YAAcE,EASrB,IAAIG,EAAWN,EAAkBM,SACjCN,EAAkBM,SAAW,SAAUC,EAAMC,EAAMC,EAASC,GAC1D,GAAoB,iBAATH,EACT,OAAOD,EAASK,MAAMN,KAAMO,WAC9B,IAAIC,EAAS,CAACL,EAAMC,EAASC,GAU7B,OATAL,KAAKZ,iBAAiBc,GAAQM,EACzBf,IACHA,EAAmBe,EACnBd,EAAYQ,GAEdO,QAAQC,UAAUC,MAAK,WACrBlB,EAAmB,KACnBC,EAAY,IACd,IACOO,EAASK,KAAMN,KAAOG,EAAMC,EAASC,EAC9C,EAEA,IAAIK,EAAUf,EAAkBe,QAChCf,EAAkBe,QAAU,SAAUE,EAAIC,GACxC,IAEE,OAAOH,EAAQX,KAAKC,KAAMY,EAAIC,EAMhC,CALE,MAAOC,GACP,GAAIF,KAAMZ,KAAKZ,iBACb,OAAOY,KAAKT,qBAAqBqB,IAAOA,EAE1C,MAAME,CACR,CACF,EAEA,IAAIC,EAAcpB,EAAkBoB,YACpCpB,EAAkBoB,YAAc,SAAUC,EAAKC,EAAgBC,GAC7D,IAAIC,EAASnB,KAAKZ,iBAAiB4B,GACnC,OAAIG,GACFnB,KAAKZ,iBAAiB4B,GAAO,KACtBG,GAEAJ,EAAYhB,KAAKC,KAAMgB,EAAKC,EAAgBC,EAEvD,EAEA,IAAIE,EAAczB,EAAkByB,YACpCzB,EAAkByB,YAAc,SAAUJ,GAExC,IAAIf,EAAWmB,EAAYrB,KAAKC,KAAMgB,GAElCtB,GAAasB,IACfhB,KAAKT,qBAAqBG,GAAasB,GAEzC,IAAIG,EAAS1B,GAAoBQ,EAGjC,OAFAR,EAAmB,KACnBC,EAAY,KACLyB,CACT,CACD,CAzED,CAyEmB,oBAATE,KAAuBA,KAAOpC"}
{"version":3,"file":"##.min.js","names":["global","setRegisterRegistry","systemInstance","registerRegistry","Object","create","namedRegisterAliases","System","firstNamedDefine","firstName","systemJSPrototype","constructor","prototype","SystemJS","call","this","register","name","deps","declare","metas","apply","arguments","define","Promise","resolve","then","id","parentURL","err","instantiate","url","firstParentUrl","meta","result","getRegister","self"],"sources":["named-register.js"],"sourcesContent":["(function () {\n\n /*\r\n * SystemJS named register extension\r\n * Supports System.register('name', [..deps..], function (_export, _context) { ... })\r\n *\r\n * Names are written to the registry as-is\r\n * System.register('x', ...) can be imported as System.import('x')\r\n */\r\n (function (global) {\r\n var System = global.System;\r\n setRegisterRegistry(System);\r\n var systemJSPrototype = System.constructor.prototype;\r\n var constructor = System.constructor;\r\n var SystemJS = function () {\r\n constructor.call(this);\r\n setRegisterRegistry(this);\r\n };\r\n SystemJS.prototype = systemJSPrototype;\r\n System.constructor = SystemJS;\r\n\r\n var firstNamedDefine, firstName;\r\n\r\n function setRegisterRegistry(systemInstance) {\r\n systemInstance.registerRegistry = Object.create(null);\r\n systemInstance.namedRegisterAliases = Object.create(null);\r\n }\r\n\r\n var register = systemJSPrototype.register;\r\n systemJSPrototype.register = function (name, deps, declare, metas) {\r\n if (typeof name !== 'string')\r\n return register.apply(this, arguments);\r\n var define = [deps, declare, metas];\r\n this.registerRegistry[name] = define;\r\n if (!firstNamedDefine) {\r\n firstNamedDefine = define;\r\n firstName = name;\r\n }\r\n Promise.resolve().then(function () {\r\n firstNamedDefine = null;\r\n firstName = null;\r\n });\r\n return register.apply(this, [deps, declare, metas]);\r\n };\r\n\r\n var resolve = systemJSPrototype.resolve;\r\n systemJSPrototype.resolve = function (id, parentURL) {\r\n try {\r\n // Prefer import map (or other existing) resolution over the registerRegistry\r\n return resolve.call(this, id, parentURL);\r\n } catch (err) {\r\n if (id in this.registerRegistry) {\r\n return this.namedRegisterAliases[id] || id;\r\n }\r\n throw err;\r\n }\r\n };\r\n\r\n var instantiate = systemJSPrototype.instantiate;\r\n systemJSPrototype.instantiate = function (url, firstParentUrl, meta) {\r\n var result = this.registerRegistry[url];\r\n if (result) {\r\n this.registerRegistry[url] = null;\r\n return result;\r\n } else {\r\n return instantiate.call(this, url, firstParentUrl, meta);\r\n }\r\n };\r\n\r\n var getRegister = systemJSPrototype.getRegister;\r\n systemJSPrototype.getRegister = function (url) {\r\n // Calling getRegister() because other extras need to know it was called so they can perform side effects\r\n var register = getRegister.call(this, url);\r\n\r\n if (firstName && url) {\r\n this.namedRegisterAliases[firstName] = url;\r\n }\r\n var result = firstNamedDefine || register;\r\n firstNamedDefine = null;\r\n firstName = null;\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CzB,EAAkByB,YAAc,SAAUJ,GAExC,IAAIf,EAAWmB,EAAYrB,KAAKC,KAAMgB,GAElCtB,GAAasB,IACfhB,KAAKT,qBAAqBG,GAAasB,GAEzC,IAAIG,EAAS1B,GAAoBQ,EAGjC,OAFAR,EAAmB,KACnBC,EAAY,KACLyB,CACT,CACD,CAzED,CAyEmB,oBAATE,KAAuBA,KAAOpC"}

2
dist/s.js vendored
View File

@ -1,5 +1,5 @@
/*!
* SJS 6.14.2
* SJS 6.14.3
*/
(function () {

2
dist/s.min.js vendored

File diff suppressed because one or more lines are too long

2
dist/s.min.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/system.js vendored
View File

@ -1,5 +1,5 @@
/*!
* SystemJS 6.14.2
* SystemJS 6.14.3
*/
(function () {

4
dist/system.min.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
{
"name": "systemjs",
"version": "6.14.2",
"version": "6.14.3",
"main": "dist/system-node.cjs",
"exports": {
".": {