/**
 * Minified by jsDelivr using Terser v5.39.0.
 * Original file: /npm/3cma@0.0.1/dist/estrella.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
#!/usr/bin/env node
var __create=Object.create,__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__markAsModule=e=>__defProp(e,"__esModule",{value:!0}),__commonJS=(e,t)=>function(){return t||(0,e[Object.keys(e)[0]])((t={exports:{}}).exports,t),t.exports},__export=(e,t)=>{for(var r in t)__defProp(e,r,{get:t[r],enumerable:!0})},__reExport=(e,t,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of __getOwnPropNames(t))__hasOwnProp.call(e,o)||"default"===o||__defProp(e,o,{get:()=>t[o],enumerable:!(r=__getOwnPropDesc(t,o))||r.enumerable});return e},__toModule=e=>__reExport(__markAsModule(__defProp(null!=e?__create(__getProtoOf(e)):{},"default",e&&e.__esModule&&"default"in e?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e),require_miniglob=__commonJS({"node_modules/.pnpm/miniglob@0.1.2/node_modules/miniglob/miniglob.js"(e){var t=Object.defineProperty;((e,r)=>{for(var o in(e=>{t(e,"__esModule",{value:!0})})(e),r)t(e,o,{get:r[o],enumerable:!0})})(e,{PatternError:()=>a,glob:()=>c,match:()=>w});var{readdirSync:r,statSync:o}=require("fs"),n=(()=>{try{return require("path").sep}catch(e){return"/"}})(),i=n.charCodeAt(0),s=":"==n?/\:+/g:"\\"==n?/\\+/g:/\/+/g,l="win32"==process.platform,a=class extends Error{constructor(){super("bad pattern")}};function c(e){if(e.indexOf("**")<0)return m(e);let t=[],r=new Set;return g("",e.split(/\*{2,}/),0,t,r),t}var u=l?e=>{if(e.length<2)return 0;let t=e[0];return":"==e[1]&&("a"<=t&&t<="z"||"A"<=t&&t<="Z")?2:0}:e=>0,d=l?(e,t)=>{let r=t(e);return""==e?[0,"."]:r+1==e.length&&f(e,e.length-1)?[r+1,e]:r==e.length&&2==e.length?[r,e+"."]:(r>=e.length&&(r=e.length-1),[r,e.substr(0,e.length-1)])}:(e,t)=>""==e?[t,"."]:e==n?[t,e]:[t,e.substr(0,e.length-1)];function f(e,t){return e.charCodeAt(t)===i}function g(e,t,r,s,l){r>=t.length&&(r=t.length-1);let a=t[r],c=a;function u(e){return!l.has(e)&&(l.add(e),!0)}function d(e){let o=e,l=o.lastIndexOf(n);-1!=l&&(o=o.substr(l+1));let a=Math.min(r+1,t.length-1),c=t.slice(a).join("*");c.charCodeAt(0)==i?c=function(e){let t=0;for(;e.charCodeAt(t)===i;)t++;return 0!=t?e.substr(t):e}(c):"*"!=c[0]&&(c="*"+c),w(c,o)&&s.push(e)}0===r?a.charCodeAt(a.length-1)!=i&&(c+="*"):r===t.length-1?a.charCodeAt(0)!=i&&(c="*"+c):(a.charCodeAt(0)!=i&&(c="*"+c),a.charCodeAt(a.length-1)!=i&&(c+="*")),e&&(c=c[0]!=n?e+n+c:e+c);let f=!1;c.charCodeAt(c.length-1)===i&&(f=!0,c=function(e){let t=e.length-1,r=t;for(;e.charCodeAt(r)===i;)r--;return r!=t?e.substr(0,r+1):e}(c));let h=m(c);for(let e of h){o(e).isDirectory()?u(e)&&p(e,((e,o)=>{u(e)&&(o.isDirectory()?g(e,t,r+1,s,l):d(e))})):!f&&u(e)&&d(e)}return s}function p(e,t){e=function(e){let t=e.length-1,r=t;for(;r&&e.charCodeAt(r)===i;)--r;return r!=t&&(e=e.substr(0,r+1)),e.split(s).join(n)}(e);let r=o(e);r.isDirectory()&&h(e,t,new Set([r.ino]))}function h(e,t,o){for(let n of r(e)){let r=E(e,n),i=C(r),s=t(r,i);(s||void 0===s)&&i&&i.isDirectory()&&!o.has(i.ino)&&(o.add(i.ino),h(r,t,o))}}function m(e){let t=[];if(!_(e))return C(e)?[e]:t;let r=u(e),o=e.length-1;for(;o>=r&&!f(e,o);)o--;let n=e.substr(0,o+1),i=e.substr(o+1);if([r,n]=d(n,r),_(n.substr(r))){if(n==e)throw new a;let r=m(n);for(let e of r)y(e,i,t)}else y(n,i,t);return t}function y(e,t,o){let n,i=C(e);if(null!==i&&i.isDirectory()){try{n=r(e)}catch(e){return}n.sort();for(let r of n)w(t,r)&&o.push(E(e,r))}}function _(e){for(let t=0;t<e.length;++t)switch(e.charCodeAt(t)){case 42:case 63:case 91:case 123:return!0}return!1}function b(e,t){for(let r=0;r<e.length;++r)if(e.charCodeAt(r)===t)return!0;return!1}function w(e,t){e:for(;e.length>0;){let r=!1,o="";if([r,o,e]=S(e),r&&""==o)return!b(t,i);let[n,s]=P(o,t);if(!s||!(0==n.length||e.length>0)){if(r)for(let r=0;r<t.length&&t.charCodeAt(r)!=i;r++)if([n,s]=P(o,t.substr(r+1)),s){if(0==e.length&&n.length>0)continue;t=n;continue e}return!1}t=n}return 0==t.length}function S(e){let t=!1;for(;e.length>0&&42==e.charCodeAt(0);)e=e.substr(1),t=!0;let r=!1,o=0;e:for(;o<e.length;o++)switch(e.charCodeAt(o)){case 92:l||o+1<e.length&&o++;break;case 91:r=!0;break;case 93:r=!1;break;case 42:if(!r)break e}return[t,e.substr(0,o),e.substr(o)]}function P(e,t){for(;e.length>0;){if(0==t.length)return["",!1];switch(e.charCodeAt(0)){case 91:{let r=t.codePointAt(0),o=r<=65535?1:2;if(t=t.substr(o),e=e.substr(1),r.toString(16),0==e.length)throw new a;let n=94==e.charCodeAt(0);n&&(e=e.substr(1));let i=!1,s=0;for(;;){if(e.length>0&&93==e.charCodeAt(0)&&s>0){e=e.substr(1);break}let t,o;if([o,e,t]=v(e),!t)return["",!1];let n=o;if(45==e.charCodeAt(0)&&([n,e,t]=v(e.substr(1)),!t))return["",!1];o<=r&&r<=n&&(i=!0),s++}if(i==n)return["",!1];break}case 63:if(t.charCodeAt(0)==i)return["",!1];let r=t.codePointAt(0)<=65535?1:2;t=t.substr(r),e=e.substr(1);break;case 92:if(!l&&0==(e=e.substr(1)).length)throw new a;default:if(e.charCodeAt(0)!=t.charCodeAt(0))return e[0],t[0],e.charCodeAt(0).toString(16),t.charCodeAt(0).toString(16),["",!1];t=t.substr(1),e=e.substr(1)}}return[t,!0]}function v(e){let t=0,r="",o=e.charCodeAt(0);if(0==e.length||45==o||93==o)throw new a;if(92==o&&!l&&0==(e=e.substr(1)).length)throw new a;t=e.codePointAt(0);let n=t<=65535?1:2;if(65535==t&&1==n)throw new a;if(r=e.substr(n),0==r.length)throw new a;return[t,r,!0]}function C(e){try{return o(e)}catch(e){}return null}function E(e,t){return"."==e||""==e?t:e+n+t}}}),esbuild2=__toModule(require("esbuild")),fs10=__toModule(require("fs")),os4=__toModule(require("os")),Path7=__toModule(require("path")),glob=__toModule(require_miniglob());function assert2(e,t,r){0}assert2.throws=!1,global.assert=assert2;var Path4=__toModule(require("path")),fs=__toModule(require("fs")),Path=__toModule(require("path")),os=__toModule(require("os")),import_perf_hooks=__toModule(require("perf_hooks"));function numColors(e,t){let r=0;if(!0===t){let e=process.env.TERM||"";r=e&&["xterm","screen","vt100"].some((t=>-1!=e.indexOf(t)))?-1!=e.indexOf("256color")?8:4:2}else!1!==t&&e.isTTY&&(r=e.getColorDepth());return r}function termStyle(e,t){return createTermStyle(numColors(e,t),t)}function createTermStyle(e,t){const r=e=>`[${e}m`,o=e>0||t?(e,t)=>{const o=r(e),n=r(t);return e=>o+e+n}:e=>e=>e,n=e>=8?(e,t,r)=>{let o="["+t+"m",n="["+r+"m";return e=>o+e+n}:e>0?(e,t,r)=>{let o="["+e+"m",n="["+r+"m";return e=>o+e+n}:(e,t,r)=>e=>e;return{_hint:t,ncolors:e,reset:t||e>0?"e[0m":"",bold:o("1","22"),italic:o("3","23"),underline:o("4","24"),inverse:o("7","27"),white:n("37","38;2;255;255;255","39"),grey:n("90","38;5;244","39"),black:n("30","38;5;16","39"),blue:n("34","38;5;75","39"),cyan:n("36","38;5;87","39"),green:n("32","38;5;84","39"),magenta:n("35","38;5;213","39"),purple:n("35","38;5;141","39"),pink:n("35","38;5;211","39"),red:n("31","38;2;255;110;80","39"),yellow:n("33","38;5;227","39"),lightyellow:n("93","38;5;229","39"),orange:n("33","38;5;215","39"),reconfigure(e,t){const r=numColors(e,t);return r!=this.ncolors&&t!=this._hint&&Object.assign(this,createTermStyle(r,t)),this}}}var stdoutStyle=termStyle(process.stdout),stderrStyle=termStyle(process.stderr),import_util=__toModule(require("util")),json=(e,t,r)=>JSON.stringify(e,r,t),clock=()=>import_perf_hooks.performance.now(),isWindows=process.platform.startsWith("win"),TYPE=Symbol("TYPE");function runtimeRequire(e){try{return require(e)}catch{return null}}runtimeRequire.resolve=e=>{try{return require.resolve(e)}catch{return""}};var isCLI="."==module.id||process.mainModule.filename==__filename;function repr(e,t){let r={colors:stdoutStyle.ncolors>0};return"object"==typeof t?r={...t}:void 0!==t&&(r.compact=!t),(0,import_util.inspect)(e,r)}var _tmpdir="";function tmpdir2(){return _tmpdir||(_tmpdir=fs.realpathSync.native(os.tmpdir())),_tmpdir}function fmtDuration(e){return e>=59500?(e/6e4).toFixed(0)+"min":e>=999.5?(e/1e3).toFixed(1)+"s":e.toFixed(2)+"ms"}function fmtByteSize(e){return e>=1024e3?(e/1024e3).toFixed(1)+"MB":e>=1e3?(e/1024).toFixed(1)+"kB":e+"B"}function findInPATH(e){const t=isWindows?4294967295:fs.constants.X_OK,r=new Set((process.env.PATH||"").split(Path.delimiter));for(let o of r){let r=Path.join(Path.resolve(o),e);for(isWindows&&(r+=".cmd");;){try{let e=fs.statSync(r);if(e.isSymbolicLink()){r=fs.realpathSync.native(r);continue}if(e.isFile()&&e.mode&t)return r}catch(t){if(isWindows&&r.endsWith(".cmd")){r=Path.join(Path.resolve(o),e)+".exe";continue}}break}}return null}function jsonparse(e,t){try{return JSON.parse(json)}catch(r){return require("vm").runInNewContext("("+e+")",{},{filename:t,displayErrors:!0})}}function jsonparseFile(e){const t=fs.readFileSync(e,"utf8");try{return jsonparse(t)}catch(t){throw new Error(`failed to parse ${e}: ${t.message||t}`)}}function expandTildePath(e){const t=os.homedir();return"~"==e?t:e.startsWith("~"+Path.sep)?t+e.substr(1):e}function tildePath(e){const t=Path.resolve(e),r=os.homedir();return t.startsWith(r)?"~"+t.substr(r.length):t}var LogLevel,import_console=__toModule(require("console")),Path2=__toModule(require("path")),prog=(()=>{const e=process.env._,t=process.argv[1];if(!t)return e||process.argv[0];if(e&&!Path2.isAbsolute(e))return e;let r="";if(e){const t=Path2.basename(process.execPath);e.endsWith(Path2.sep+t)&&(r=t+" ")}if(t.startsWith(process.cwd())){let e=Path2.relative(process.cwd(),t);if(!e.startsWith("node_modules"+Path2.sep)&&-1==e.indexOf(Path2.sep+"node_modules"+Path2.sep))return"/"==Path2.sep&&(e="./"+e),e}return r+Path2.basename(t)})();function parseopt(e,t){let[r,o]=parseFlags(t.flags.filter((e=>e))),n={},i=!1,s=[],l=0;const a=()=>{s.push(e.splice(l,1)[0]),l--};for(;l<e.length;l++){let s=e[l];if("--"==s){l++;break}if("-"!=s[0]||"-"==s){a();continue}s=s.replace(/^\-+/,"");let c,u=s.indexOf("=");-1!=u&&(c=s.substr(u+1),s=s.substr(0,u));let d=r.get(s);if(!d){if("h"==s||"help"==s)i=!0,t.help||(console.log(fmtUsage(o,t.usage,t.trailer)),process.exit(0));else{if(t.unknownFlagAsArg){a();continue}printUnknownOptionsAndExit([e[l]])}break}let f=!0;if(d.valueName){if(void 0===c){if(c=e[l+1],void 0===c||"-"==c[0]){console.error(`missing value for option -${s} (see ${prog} -help)`),process.exit(1);break}l++}try{f=d.valueParser?d.valueParser(c):c}catch(e){console.error(`invalid value for option -${s} (${e.message})`)}}else void 0!==c&&(console.error(`unexpected value provided for flag -${s}`),process.exit(1));n[s]=f;for(let e of d.names)e!=s&&(n[e]=f)}return l<e.length&&(s=s.concat(e.slice(l))),i&&t.help&&t.help(o,n,s),[n,s]}function printUnknownOptionsAndExit(e){console.error(`unknown option${e.length>1?"s":""} ${e.join(", ")} (see ${prog} -help)`),process.exit(1)}function parseFlags(e){let t=new Map,r=[];for(let o of e){let e=parseFlag(o);r.push(e);for(let r of e.names){if(t.has(r))throw new Error(`duplicate CLI flag ${json(r)} in definition ${json(o)}`);t.set(r,e)}}return[t,r]}function parseFlag(e){const t=e=>e.replace(/(?:^|[\s,])\-+/g,""),r=e=>e.split(/\s*,\s*/);if("string"==typeof e)return{names:r(t(e))};let o={names:"string"==typeof e[0]?r(t(e[0])):e[0].map(t),description:e[1]||void 0};if(e[2]){let[t,r]=e[2].replace(/^[<>]+|[<>]+$/g,"").split(/:/,2);if(r)switch(r.toLowerCase()){case"string":case"str":r="string";break;case"bool":case"boolean":r="boolean",o.valueParser=e=>"false"!=(e=e.toLowerCase())&&"0"!=e&&"no"!=e&&"off"!=e;break;case"number":case"num":case"float":case"int":r="number",o.valueParser=e=>{let t=Number(e);if(isNaN(t))throw new Error(`${json(e)} is not a number`);return t};break;default:throw new Error(`invalid argument type "${r}"`)}else r="string";o.valueName=t||r,o.valueType=r}return o}function fmtUsage(e,t,r){let o={prog:prog,0:prog};const n=e=>e.replace(/\$(\w+)/g,((e,t)=>{let r=o[t];if(!r)throw new Error(`unknown variable $${t} (to print a dollar sign, use '\\$')`);return r}));let i=n(t?"function"==typeof t?t():String(t):e.length>0?"Usage: $prog [options]":"Usage: $prog");if(e.length>0){i+="\noptions:\n";let t=0,r=[];for(let o of e){let e="  -"+(o.valueName?o.names.join("=,-")+"="+("boolean"==o.valueType?"on|off":"<"+o.valueName+">"):o.names.join(", -"));t=Math.max(t,e.length),r.push(e)}for(let o=0;o<e.length;o++){let n=e[o],s=r[o],l=n.description;n.description||(l=n.valueType?"Set ":"Enable "+n.names.reduce(((e,t)=>t.length>e.length?t:e),"")),i+=`${s.padEnd(t," ")}  ${l}`,o+1<e.length&&(i+="\n")}}return r&&(i+="\n"+n(r.replace(/[\n\s]+$/,""))),i}!function(e){e[e.Silent=-1]="Silent",e[e.Error=0]="Error",e[e.Warn=1]="Warn",e[e.Info=2]="Info",e[e.Debug=3]="Debug"}(LogLevel||(LogLevel={}));var log_console=console,log_colorMode=void 0,log=new class{constructor(){this.SILENT=-1,this.ERROR=0,this.WARN=1,this.INFO=2,this.DEBUG=3,this.level=2,this.infoOnce=this.info,this.debug=log_debug}error(...e){log.level>=0&&(evalFunctionInArgs(e),log_console.error(stderrStyle.red(`${prog}:`),...e))}warn(...e){log.level>=1&&(evalFunctionInArgs(e),log_console.error(stderrStyle.magenta(`${prog}:`),...e))}info(...e){log.level>=2&&(evalFunctionInArgs(e),log_console.log(...e))}get colorMode(){return log_colorMode}set colorMode(e){log_colorMode!==e&&(log_colorMode=e,log_console=void 0===e?console:new import_console.Console({stdout:process.stdout,stderr:process.stderr,colorMode:e}))}},log_default=log;function evalFunctionInArgs(e){"function"==typeof e[0]&&(e[0]=e[0]())}function log_debug(...e){if(log.level>=3){let t="";if(evalFunctionInArgs(e),0==e.length||1==e.length&&(""===e[0]||void 0===e[0]))return;log_console.log(stdoutStyle.bold(stdoutStyle.blue(`[DEBUG${t}]`)),...e)}}var file_exports={};__export(file_exports,{_ts_check_file:()=>_ts_check_file,file:()=>file,fileModificationLog:()=>fileModificationLog,fileModificationLogAppend:()=>fileModificationLogAppend,fileWasModifiedRecentlyByUser:()=>fileWasModifiedRecentlyByUser,scandir:()=>scandir});var fs3=__toModule(require("fs")),Path3=__toModule(require("path")),crypto=__toModule(require("crypto")),fs2=__toModule(require("fs")),chr=String.fromCharCode,ord=(e,t)=>e.charCodeAt(t||0);function chmod2(e,t){if("number"==typeof t)return fs2.chmodSync(e,t),t;let r=fs2.statSync(e).mode,o=editFileMode(r,t);return r!=o&&fs2.chmodSync(e,o),o}function chmodp(e,t){return new Promise(((r,o)=>{if("number"==typeof t)return fs2.chmod(e,t,(e=>{e?o(e):r(t)}));fs2.stat(e,((n,i)=>{if(n)return o(n);let s=editFileMode(i.mode,t);if(i.mode==s)return r(s);fs2.chmod(e,s,(e=>{e?o(e):r(s)}))}))}))}function editFileMode(e,t){const r=(e,t)=>new Error(`${e} in modifier ${json(t)}. Expected format: [ugoa]*[+-=][rwx]+`);let o=[];for(let e of Array.isArray(t)?t:[t])o=o.concat(e.trim().split(/\s*,+\s*/));for(let t of o){let o=[],n=!1,i=0,s=0;for(let e=0;e<t.length;e++){let l=ord(t,e);if(0==i)switch(l){case 117:case 103:case 111:n||o.push(l);break;case 97:o=[117,103,111],n=!0;break;case 43:case 45:case 61:i=l;break;default:if(0==i)throw r(`Invalid target or operation ${json(chr(l))}`,t)}else switch(l){case 114:s|=4;break;case 119:s|=2;break;case 120:s|=1;break;default:throw r(`Invalid permission ${json(chr(l))}`,t)}}if(0==i)throw r("Missing operation",t);0==o.length&&(o=[117]),0==s&&(s=7);let l=0;for(let e of o)switch(e){case 117:l|=s<<6;break;case 103:l|=s<<3;break;case 111:l|=s}switch(i){case 43:e|=l;break;case 45:e&=~l;break;case 61:e=l}}return e}var fsp=fs3.promises,fileModificationLog={};function fileModificationLogAppend(e){fileModificationLog[Path3.resolve(String(e))]=clock()}function fileWasModifiedRecentlyByUser(e){const t=fileModificationLog[Path3.resolve(e)];return void 0!==t&&clock()-t<=3e4}var _ts_check_file=file;function file(e,t){return fsp.readFile(e,t)}function read(e,t){return fsp.readFile(e,t)}function readSync(e,t){return fs3.readFileSync(e,t)}function mtime(...e){return Promise.all(e.map((e=>fsp.stat(e).then((e=>e.mtimeMs)).catch((e=>null))))).then((e=>1==e.length?e[0]:e))}function sha1(e,t){return new Promise(((r,o)=>{const n=fs3.createReadStream(e),i=crypto.createHash("sha1");n.on("error",o),n.on("end",(()=>{i.end(),r(t?i.digest(t):i.digest())})),n.pipe(i)}))}async function scandir(e,t,r){if(r||(r={}),!fs3.promises||!fs3.promises.opendir)throw new Error("scandir not implemented for nodejs <12.12.0");const o=[],n=new Set,i=void 0!==r.recursive?r.recursive?1/0:0:void 0!==r.depth?r.depth:1/0;async function s(e,r,l){if(n.has(e))return;n.add(e);const a=await fs3.promises.opendir(e);for await(const n of a){let a=n.name;n.isDirectory()?i<l&&await s(Path3.join(e,a),Path3.join(r,a),l+1):(n.isFile()||n.isSymbolicLink())&&t&&t.test(a)&&o.push(Path3.join(r,a))}}const l=Array.isArray(e)?e:[e];return Promise.all(l.map((e=>s(Path3.resolve(e),".",0)))).then((()=>o.sort()))}file.editMode=editFileMode,file.chmod=(e,t)=>(fileModificationLogAppend(e),chmodp(e,t)),file.read=read,file.readSync=readSync,file.stat=fsp.stat,file.mtime=mtime,file.readall=(...e)=>Promise.all(e.map((e=>fsp.readFile(e)))),file.readallText=(e,...t)=>Promise.all(t.map((t=>fsp.readFile(t,{encoding:e||"utf8"})))),file.write=async(e,t,r)=>{fileModificationLogAppend(e);const o=r&&"object"==typeof r?r:{};try{await fsp.writeFile(e,t,r)}catch(n){if(o.mkdirOff||"ENOENT"!=n.code)throw n;await file.mkdirs(Path3.dirname(String(e)),o.mkdirMode),await fsp.writeFile(e,t,r)}if(o.log){let t=Path3.relative(process.cwd(),String(e));t.startsWith(".."+Path3.sep)&&(t=tildePath(e)),log_default.info(stdoutStyle.green(`Wrote ${t}`))}},file.writeSync=(e,t,r)=>{fileModificationLogAppend(e),fs3.writeFileSync(e,t,r)},file.sha1=sha1,file.copy=(e,t,r)=>{let o=fs3.constants.COPYFILE_FICLONE;return r&&(o|=fs3.constants.COPYFILE_EXCL),fileModificationLogAppend(t),fsp.copyFile(e,t,o)},file.move=(e,t)=>(fileModificationLogAppend(t),fsp.rename(e,t)),file.mkdirs=(e,t)=>fsp.mkdir(e,{recursive:!0,mode:t}).then((e=>!!e&&e.length>0));var estrellaDir=__dirname;function createLazyModuleAccessor(e){let t=null;return function(){return t||(log.debug(`loading ${e} module`),t=runtimeRequire(Path4.join(estrellaDir,e)),t.initModule(log.level,file_exports)),t}}var debug=createLazyModuleAccessor("debug.js"),watch=createLazyModuleAccessor("watch.js"),UserError=class extends Error{constructor(e){super(e),this.name="UserError"}};function bugReportMessage(e,t){return debug().bugReportMessage(e,t)}function printErrorAndExit(e,t){return debug().printErrorAndExit(e,t)}function Error_prepareStackTrace(e,t){Error.prepareStackTrace=void 0;try{if(debug().installSourceMapSupport(),Error.prepareStackTrace!==Error_prepareStackTrace)return Error.prepareStackTrace(e,t)}catch(e){}return e.stack||String(e)}Error.prepareStackTrace=Error_prepareStackTrace,process.on("uncaughtException",printErrorAndExit),process.on("unhandledRejection",((e,t)=>{printErrorAndExit(e||"PromiseRejection","unhandledRejection")}));var memoizeMap=new Map,isMemoized=Symbol("isMemoized"),stdoutIsTTY=!!process.stdout.isTTY,stderrIsTTY=!!process.stderr.isTTY,screen={width:60,height:20,clear(){},banner:e=>(e||(e="-"),e.repeat(Math.floor((screen.width-1)/e.length)))};if(stdoutIsTTY||stderrIsTTY){const e=stdoutIsTTY&&process.stdout||process.stderr,t=()=>{screen.width=e.columns,screen.height=e.rows};e.on("resize",t),t(),screen.clear=()=>{e.write("c")}}var Path6=__toModule(require("path")),fs5=__toModule(require("fs")),import_child_process=__toModule(require("child_process")),Path5=__toModule(require("path")),fs4=__toModule(require("fs")),TS_CONFIG_FILE=Symbol("TS_CONFIG_FILE"),TS_CONFIG=Symbol("TS_CONFIG"),{dirname:dirname3,basename:basename2}=Path5;function findTSC(e){let t="",r=process.cwd();const o=isWindows?"tsc.cmd":"tsc";e&&process.chdir(e);try{t=require.resolve("typescript")}catch(e){}if(e&&process.chdir(r),t){const e=Path5.sep+"node_modules"+Path5.sep;let r=t.indexOf(e);if(-1!=r)return Path5.join(t.substr(0,r+e.length-Path5.sep.length),".bin",o)}return o}function findTSConfigFile(e,t){for(let r of searchTSConfigFile(e,t))try{if(fs4.statSync(r).isFile())return r}catch(e){}return null}function*searchTSConfigFile(e,t){e=Path5.resolve(e);const r=Path5.parse(e).root;for(t=t?Path5.resolve(t):r;yield Path5.join(e,"tsconfig.json"),e!=t&&(e=dirname3(e))!=r;);}function tsConfigFileSearchDirForConfig(e){let t=e.cwd||process.cwd();if(e.entryPoints&&Object.keys(e.entryPoints).length>0){let r="";if(Array.isArray(e.entryPoints))r=e.entryPoints[0];else for(let t of Object.keys(e.entryPoints)){r=e.entryPoints[t];break}t=Path5.resolve(t,Path5.dirname(r))}return t}function getTSConfigFileForConfig(e){let t=e[TS_CONFIG_FILE];if(void 0===t){if("off"===e.tslint||!1===e.tslint||"off"===e.tsc||!1===e.tsc)t=null;else{t=findTSConfigFile(tsConfigFileSearchDirForConfig(e),e.cwd)}Object.defineProperty(e,TS_CONFIG_FILE,{value:t})}return t}function getTSConfigForConfig(e){let t=e[TS_CONFIG];if(void 0===t){const r=getTSConfigFileForConfig(e);if(r)try{t=jsonparseFile(r)}catch(e){log_default.warn((()=>`failed to parse ${r}: ${e.stack||e}`))}t||(t=null),Object.defineProperty(e,TS_CONFIG,{value:t})}return t}var{dirname:dirname4,basename:basename3}=Path6,defaultTSRules={6031:"IGNORE",6194:"IGNORE",6133:"WARNING",2531:"WARNING",7006:"WARNING",7015:"WARNING",7053:"WARNING"},IGNORE=0,INFO=1,WARNING=2,ERROR=3,severities={IGNORE:IGNORE,INFO:INFO,WARNING:WARNING,ERROR:ERROR};function addTSRules(e,t){for(let r of Object.keys(t)){let o=severities[String(t[r]).toUpperCase()];if(void 0===o)throw new UserError(`Invalid value for TS rule ${r}: ${json(o)} -- expected value to be one of: `+Object.keys(severities).map(json).join(", "));e[r]=o}}function tslint(e){e||(e={});let t={cancelled:!1,cancel(){}},r=new Promise(((r,o)=>{if("off"==e.mode)return r(!0);const n=e.cwd||process.cwd();let i=e.tsconfigFile;if(void 0===i&&(i=findTSConfigFile(e.srcdir?Path6.resolve(n,e.srcdir):n)),"on"!=e.mode&&!i)return r(!0);const s=e.format?e.format.toLowerCase():"",l=s.startsWith("short"),a=s.startsWith("short"),c="short-all"==s;let u=findTSC(e.cwd);if("tsc"==u&&"on"!=e.mode&&!(u=findInPATH(u)))return log_default.warn("tsc not found in node_modules or PATH. However a tsconfig.json file was found in "+Path6.relative(process.cwd(),dirname4(i))+'. Set tslint options.tslint="off" or pass -no-diag on the command line to disable tsc.'),r(!0);const d={};addTSRules(d,defaultTSRules),e.rules&&addTSRules(d,e.rules);let f=["--noEmit",e.colors&&"--pretty",e.watch&&"--watch",i&&"--project",i].concat(e.args||[]).filter((e=>e));log_default.debug((()=>`spawning process ${u} ${json(f,2)}`));const g=(0,import_child_process.spawn)(u,f,{stdio:["inherit","pipe","inherit"],cwd:n}),p=()=>{try{g.kill()}catch(e){}};process.on("exit",p),t.cancel=()=>{g.kill()};const h=e=>e,m=stdoutStyle.orange,y=stdoutStyle.red,_=stdoutStyle.green,b=Buffer.from(" TS"),w=Buffer.from("Found "),S=Buffer.from("c"),P=Buffer.from("tarting compilation"),v=Buffer.from("tarting incremental compilation"),C=[];let E=0,I=!1,T={errors:0,warnings:0,other:0,reset(){this.errors=0,this.warnings=0,this.other=0}},x=!1;function j(){if(!e.quiet||T.errors>=0){e.watch&&console.log(screen.banner("—"));let t=[];T.errors>0?t.push(y("TS: "+k("$ error","$ errors",T.errors))):t.push(_("TS: OK")),T.warnings>0&&t.push(m(k("$ warning","$ warnings",T.warnings))),T.other>0&&t.push(k("$ message","$ messages",T.other)),console.log(t.join("   ")),e.watch&&console.log(screen.banner("—"))}I=T.errors>0,e.onEnd&&e.onEnd(T),T.reset(),x=!0}function O(e){let t=C.slice();if(C.length=0,0==E){let r=0,o=t[r++];for(;0==o.length||10==o[0]&&r<t.length;)o=t[r++];if(o.includes(P)||o.includes(v))return T.reset(),e&&j();if(t.every((e=>e.length<=1)))return e&&j()}else{const r=/(?:\x1b\[\d+m|)error(?:\x1b\[\d+m|)/g;let o=t.shift().toString("utf8");switch(d[E]){case IGNORE:return e&&j();case INFO:o=o.replace(r,"info"),l?t=[]:A(t,h),T.other++;break;case WARNING:o=o.replace(r,m("warning")),a?t=[]:A(t,m),T.warnings++;break;default:c&&(t=[]),r.test(o)?T.errors++:T.other++}process.stdout.write(o)}t.forEach((e=>process.stdout.write(e))),e&&j()}function A(e,t){for(let r=1;r<e.length;r++){let o=e[r];if(o.includes(126)){let n=o.toString("utf8");n=n.replace(/\x1b\[\d+m(\s*~+)/g,t("$1")),e[r]=n}}}function k(e,t,r){return(1==r?e:t).replace(/\$/g,r)}lineReader(g.stdout,((t,r)=>{if(e.clearScreen||(t=function(e){let t=e.indexOf(S);return-1==t?e:0==t?e.subarray(3):Buffer.concat([e.subarray(0,t),e.subarray(t+3)],e.length-3)}(t)),r)return t.length>0&&C.push(t),void(C.length>0&&O());if(x&&t.length>1&&(x=!1,e.onRestart&&e.onRestart()),t.includes(w)){let e=function(e){return e.replace(/\x1b\[\d+m/g,"")}(t.toString("utf8"));if(/^(?:\[[^\]]+\] |[\d\:PAM \-]+|)Found \d+ error/.test(e))return O(!0),void(E=0);O(!1),E=0}else if(t.includes(b)){const e=t.toString("utf8"),r=/(?:\x1b\[\d+m|)error(?:\x1b\[\d+m\x1b\[\d+m|) TS(\d+)\:/.exec(e);let o=r?parseInt(r[1]):0;o>0&&!isNaN(o)&&(C.length>0&&O(),E=o)}C.push(t)})),g.on("close",(e=>{process.removeListener("exit",p),r(!I)}))}));return r.cancel=()=>(t.cancelled||(t.cancelled=!0,t.cancel()),r),r}var emptyBuffer=Buffer.allocUnsafe(0);function lineReader(e,t){let r=[],o=0;const n=()=>{r.length>0?t(Buffer.concat(r,o),!0):t(emptyBuffer,!0)};e.on("data",(e=>{let n=0;for(;;){let i=e.indexOf(10,n);if(-1==i){if(n<e.length-1){const t=e.subarray(n);r.push(t),o+=t.length}break}i++;let s=e.subarray(n,i);o>0&&(s=Buffer.concat(r.concat(s),o+s.length),r.length=0,o=0),t(s,!1),n=i}})),e.on("close",n),e.on("end",n)}var fs9=__toModule(require("fs")),fs7=__toModule(require("fs")),os2=__toModule(require("os")),subproc=__toModule(require("child_process")),import_stream=__toModule(require("stream")),fs6=__toModule(require("fs"));function isReadableStream(e){return e&&e.read}function isWritableStream(e){return e&&e.write}var _a,emptyBuffer2=Buffer.allocUnsafe(0);function isReader(e){return e&&"object"==typeof e&&"Reader"==e[TYPE]}function createReader(e){return e?new StreamReader(e):InvalidReader}function createWriter(e){return e?{[TYPE]:"Writer",stream:e}:InvalidWriter}var _a2,_b,_a3,InvalidReader=new class{constructor(){this[_a]="Reader"}_E(){return new Error("stream not readable")}get stream(){throw this._E()}[(_a=TYPE,Symbol.asyncIterator)](){throw this._E()}read(){return Promise.reject(this._E())}},InvalidWriter=new(_b=class{constructor(){this[_a2]="Writer"}_E(){return new Error("stream not writable")}get stream(){throw this._E()}},_a2=TYPE,_b),StreamReader=class{constructor(e){this[_a3]="Reader",this._ended=!1,this.stream=e,e.pause(),e.once("end",(()=>{this._ended=!0}))}[(_a3=TYPE,Symbol.asyncIterator)](){return this.stream[Symbol.asyncIterator]()}async read(e,t){const r=this.stream;if(r.pause(),"string"==typeof e)t=e,e=Number.MAX_SAFE_INTEGER;else if(null==e||e<0)e=Number.MAX_SAFE_INTEGER;else if(0==e)return t?"":emptyBuffer2;if(r.readable){let o=r.read(this._ended?void 0:e);if(o)return t?o.toString(t):o}if(this._ended)return t?"":emptyBuffer2;const o=[];let n=0;if(r.readable){const e=r.read();e&&(o.push(e),n+=e.length)}for(;n<e&&!this._ended;){await new Promise(((e,t)=>{r.once("error",t),r.once("end",e),r.once("readable",e)}));let t=r.read(e-n);t||(t=r.read()),t&&(o.push(t),n+=t.length)}const i=joinbufs(o);return t?i.toString(t):i}};function joinbufs(e,t){return 0==e.length?emptyBuffer2:1==e.length?e[0]:Buffer.concat(e,t)}function createWriteBuffer(){const e=[];let t=0;const r=e.push;return e.push=o=>(t+=o.length,r.call(e,o)),e.buffer=()=>joinbufs(e,t),e}function errorCodeMsg(e){return debug().libuv_errors[e]||""}function createTimeout(e,t,r){const o=setTimeout((()=>{const e=new Error("timeout");e.name="Timeout",r(e)}),t);return e.then((e=>(clearTimeout(o),e)),(e=>{throw clearTimeout(o),e}))}var notStartedError="process not started",Cmd=class{constructor(e,...t){this.dir="",this.env={...process.env},this.shell=!1,this.stdin=null,this.stdout=null,this.stderr=null,this.extraFiles=[],this.windowsHide=!0,this.process=null,this.running=!1,this.pid=0,this.exitCode=-1,this._resolve=()=>{},this._reject=()=>{},this._onerror=e=>{log_default.debug((()=>`${this} error:\n${e.stack||e}`)),this._reject(e)},this._onexit=(e,t)=>{const r=this;log_default.debug((()=>`${r} exited status=${e} signal=${t}`)),r.running=!1,null===e||null!==t?(assert("string"==typeof t),r.exitCode=-(os2.constants.signals[t]||1)):r.exitCode=e||0,r._resolve(r.exitCode)},this.command=e,this.args=t,this.promise=Promise.reject(new Error(notStartedError)),this.promise.catch((e=>{}))}start(){return null}run(e){return this.start(),this.wait(e)}output(e,t){this.stdout="pipe",this.stderr||(this.stderr="pipe");const{stdout:r,stderr:o}=this.start(),n=createWriteBuffer(),i=createWriteBuffer();return r.stream.on("data",(e=>{n.push(e)})),o&&o.stream.on("data",(e=>{i.push(e)})),this.wait(t||0).then((t=>{if(0!=t){let e="";const r=i.buffer();try{e=r.toString("utf8")}catch(t){e=r.toString("ascii")}throw e.length>0&&(e=". stderr output:\n"+e),new Error(`command exited with status ${t}${e}`)}const r=n.buffer();return e?r.toString(e):r}))}wait(e,t){return void 0===e||e<=0?this.promise:this._waitTimeout(e,((e,r,o)=>(log_default.debug((()=>`${this} wait timeout reached; killing process`)),e.message="Cmd.wait timeout",this.kill(t).then((()=>o(e))))))}signal(e,t){const r=this._checkproc();if("group"==t)try{return process.kill(-r.pid,e),!0}catch(e){}return r.kill(e)}async kill(e="SIGTERM",t=500,r){const o=this._checkproc();return this.signal(e,r||"group")?t<=0?this.promise:this._waitTimeout(t,((e,t)=>(log_default.debug((()=>`${this} kill timeout reached; sending SIGKILL`)),o.kill("SIGKILL"),this.promise.then(t)))):o.exitCode||0}toString(){return this.process?`Cmd[${this.pid}]`:"Cmd"}_checkproc(){if(!this.process)throw new Error(notStartedError);return this.process}_rejectAndKill(e){this._reject(e)}_waitTimeout(e,t){return new Promise(((r,o)=>{let n=!1;return this.promise.then((e=>{n||r(e)})),createTimeout(this.promise,e,(e=>{n=!0,t(e,r,o)}))}))}};function guessSpawnError(e){let t="",r="unspecified error";if(0==e.shell){try{fs7.accessSync(e.dir,fs7.constants.R_OK|fs7.constants.X_OK);t=fs7.statSync(e.command).mode&fs7.constants.S_IFREG?"EIO":"EACCES"}catch(e){t=e.code||"ENOENT"}r=errorCodeMsg(t)||r}if(!t){try{fs7.accessSync(e.dir,fs7.constants.R_OK|fs7.constants.X_OK),t="EIO"}catch(e){t=e.code||"ENOENT"}r=errorCodeMsg(t)||r,t&&(r=r+"; cmd.dir="+repr(e.dir))}t||(t="UNKNOWN");const o=new Error(`failed to spawn process ${repr(e.command)} (${t} ${r})`);return o.code=t,o}Cmd.prototype.start=function(){const e=this;if(e.running)throw new Error("start() called while command is running");e.exitCode=-1,e.promise=new Promise(((t,r)=>{e._resolve=t,e._reject=r}));let t=null,r=null;e.stdin instanceof Buffer?t="pipe":isReader(e.stdin)?"string"==typeof e.stdin.stream.fd?t=e.stdin.stream:(t="pipe",r=e.stdin.stream):t=e.stdin;const o={stdio:[t||"ignore",e.stdout===process.stdout?1:e.stdout||"ignore",e.stderr===process.stderr?2:e.stderr?e.stderr:"ignore",...e.extraFiles],cwd:e.dir?expandTildePath(e.dir):void 0,env:e.env,shell:e.shell,windowsHide:e.windowsHide,detached:!isWindows},n=subproc.spawn(e.command,e.args,o);if(void 0===n.pid){e.process=null,e.pid=0;const t=guessSpawnError(e);throw e._reject(t),t}if(e.running=!0,e.process=n,e.pid=n.pid,n.on("exit",e._onexit),n.on("error",e._reject),log_default.debug((()=>`${e} started (${repr(e.command)})`)),n.stdin)if(e.stdin instanceof Buffer){const t=new import_stream.PassThrough;t.end(e.stdin),t.pipe(n.stdin),n.stdin=null}else r&&(r.pipe(n.stdin),n.stdin=null);if(!n.stdin&&!n.stdout&&!n.stderr&&n.stdio.length<4)return null;return{stdin:n.stdin?createWriter(n.stdin):null,stdout:n.stdout?createReader(n.stdout):null,stderr:n.stderr?createReader(n.stderr):null,extraFiles:n.stdio.slice(3).map((e=>isReadableStream(e)?createReader(e):isWritableStream(e)?createWriter(e):null))}};var fs8=__toModule(require("fs")),os3=__toModule(require("os")),_listenermap=new Map;function addListener(e,t){let r=_listenermap.get(e);if(r)r.listeners.add(t);else{const r=new Set([t]),o=e=>{"SIGINT"==e&&fs8.writeSync(1,"\n");try{for(let t of r)t(e)}catch(e){t=`error in signal listener: ${e.stack||e}`,fs8.writeSync(process.stderr.fd,t+"\n")}var t;process.exit(-(os3.constants.signals[e]||1))};process.on(e,o),_listenermap.set(e,{rootListener:o,listeners:r})}}var _initialized=!1,_deinitialized=!1,_runContexts=new Set;function init(){if(_initialized)return;_initialized=!0,process.on("beforeExit",(e=>atexit(!1))),process.on("exit",(e=>atexit(!1)));const e=e=>atexit(!1);addListener("SIGINT",e),addListener("SIGHUP",e),addListener("SIGTERM",e),addListener("SIGPIPE",e)}function atexit(e){if(_deinitialized)return;_deinitialized=!0;const t=e=>fs9.writeSync(process.stderr.fd,e+"\n");try{0;for(let e of _runContexts)if(e.cmd.running)try{e.cmd.signal("SIGTERM")}catch(e){}_runContexts.clear()}catch(e){t(`ignoring error in run.atexit: ${e.stack||e}`)}}function configure(e){if(!e.run)return;log_default.debug((()=>`run.configure run=${repr(e.run)}`));const t=new RunContext(e);_runContexts.add(t);const r=e.onEnd;e.onEnd=async(e,o,n)=>{let i;return"function"==typeof r&&(i=r(e,o,n),i instanceof Promise&&(i=await i)),await t.onEndBuild(o),i},init()}function waitAll(){return Promise.all(Array.from(_runContexts).map((e=>e.cmd.promise))).then((e=>e.reduce(((e,t)=>Math.max(e,t)),0)))}var RunContext=class{constructor(e){if(this._logOnExit=!0,this.config=e,this.cmd=new Cmd(""),this.cmd.stdout="inherit",this.cmd.stderr="inherit",this.cmd.env.ESTRELLA_PATH=__filename,this.cmd.env.ESTRELLA_VERSION="1.4.1","string"==typeof e.run)this.cmd.command=e.run,this.cmd.shell=!0,this.cmdname=e.run;else if("boolean"==typeof e.run){if(!e.outfile)throw new UserError("please set config.outfile=<file> or config.run=<file>");this.cmd.command=process.execPath,this.cmd.args=[e.outfileAbs],this.cmdname=e.outfile}else{if(!e.run||0==e.run.length)throw new UserError("config.run is an empty list");this.cmd.command=e.run[0],this.cmd.args=e.run.slice(1),this.cmdname=e.run.join(" "),this.cmdname.length>60&&(this.cmdname=this.cmdname.substr(0,57)+"...")}}async onEndBuild(e){if(e.errors.length>0)return;const t=this.cmd,r=stdoutStyle.pink,o=t.running;t.running&&(this._logOnExit=!1,log_default.debug((()=>`Stopping ${this.cmdname} [${t.pid}] ...`)),await t.kill()),log_default.debug((()=>`Starting command ${repr([t.command,...t.args])}`)),t.start(),this.config.watch&&(log_default.info((()=>r(`${o?"Restarted":"Running"} ${this.cmdname} [${t.pid}]`))),this._logOnExit=!0,t.promise.then((e=>{this._logOnExit&&log_default.info((()=>r(`${this.cmdname} exited (${e})`)))})))}};function createTSAPI(e){let t=e;if(!t){log_default.debug("typescript API requested; attempting to load typescript module");try{const e=require;if(t=e("typescript"),parseFloat(t.versionMajorMinor)<3.5)return log_default.warn(`typescript ${t.version} is too old; disabling "ts" API.\n  You are seeing this message because you are importing the ts API.\n  Either install a more recent version of typescript or remove the ts import.`),null;log_default.debug((()=>`loaded typescript ${t.version} from ${tildePath(e.resolve("typescript"))}`))}catch(e){return log_default.debug((()=>"failed to load typescript; module unavailable")),null}}const r=new Map;function o(e){const o=json(Object.keys(e).sort().map((t=>[t,e[t]]))),n=r.get(o);if(n)return log_default.debug("ts.getCompilerHost cache hit"),n;e={newLine:t.NewLineKind.LineFeed,...e};const i=[t.createCompilerHost(e,!0),e];return r.set(o,i),log_default.debug("ts.getCompilerHost cache miss"),i}function n(e,r){const[n,i]=o(r||{}),s=t.createProgram([e],i,n).getSourceFile(e);if(!s)throw new Error(`${e}: file not found`);return s}async function i(e,t,r){return s(n(e,r),t)}function s(e,r){const o=function(e){const r=new Map;return t.forEachChild(e,(e=>{e.kind==t.SyntaxKind.InterfaceDeclaration&&r.set(e.name.escapedText,e)})),r}(e),n=new Map,i=[];for(let t of r||o.keys()){const r=o.get(t);r?i.push(l(e,r,o,n)):i.push(null)}return i}function l(e,r,o,n){const i=n.get(r);if(i)return i;const s={heritage:[],name:r.name.escapedText,props:{},computedProps(){const e={};for(let t of s.heritage)Object.assign(e,t.props);return Object.assign(e,s.props),e},lookupProp(e){let t=s.props[e];if(!t)for(let r of s.heritage)if(t=r.lookupProp(e))break;return t}};if(n.set(r,s),r.heritageClauses)for(let i of r.heritageClauses)for(let r of i.types){const i=r.expression;if(t.isIdentifier(i)){const t=o.get(i.escapedText);t&&s.heritage.push(l(e,t,o,n))}}return r.forEachChild((r=>{if(t.isPropertySignature(r)){const o=function(e,r,o){const n=t.getLineAndCharacterOfPosition(r,e.pos);let i=null;const s=e.type,l=function(e){switch(e.kind){case t.SyntaxKind.Identifier:case t.SyntaxKind.PrivateIdentifier:return e.escapedText;case t.SyntaxKind.StringLiteral:case t.SyntaxKind.NumericLiteral:return e.text;case t.SyntaxKind.ComputedPropertyName:return"[computed]";default:return"?"}}(e.name),a={name:l,type:s,get typestr(){return null===i&&(i=s?c(s,r):"any"),Object.defineProperty(a,"typestr",{enumerable:!0,value:i}),i},srcfile:r.fileName,srcline:n.line,srccol:n.character,parent:o};return a}(r,e,s);s.props[o.name]=o}})),s}const a=t.createPrinter({removeComments:!0,newLine:t.NewLineKind.LineFeed,omitTrailingSemicolon:!0,noEmitHelpers:!0});function c(e,r){if(!r){let o=e;for(;o.kind!=t.SyntaxKind.SourceFile;)if(o=o.parent,!o)throw new Error("node without SourceFile parent (provide file to ts.fmt)");r=o}return a.printNode(t.EmitHint.Unspecified,e,r)}return{ts:t,getCompilerHost:o,parse:async function(e,r){const n="string"==typeof e?{"/<source>/a.ts":e}:e,i=Object.keys(n),[s,l]=o(r||{}),a=s.readFile;s.readFile=e=>e in n?n[e]:a(e);const c=t.createProgram(i,l,s);if("string"==typeof e)return c.getSourceFile(i[0]);const u={};for(let e of i)u[e]=c.getSourceFile(e);return u},parseFile:async function(e,t){return n(e,t)},interfaceInfo:function(e,t,r){return i(e,[t],r).then((e=>e[0]))},interfacesInfo:i,interfacesInfoAST:s,fmt:c}}var esbuild={version:"0.11.23",BuildOptions:new Set(["sourcemap","legalComments","sourceRoot","sourcesContent","format","globalName","target","minify","minifyWhitespace","minifyIdentifiers","minifySyntax","charset","treeShaking","jsxFactory","jsxFragment","define","pure","keepNames","color","logLevel","logLimit","bundle","splitting","preserveSymlinks","outfile","metafile","outdir","outbase","platform","external","loader","resolveExtensions","mainFields","conditions","write","allowOverwrite","tsconfig","outExtension","publicPath","entryNames","chunkNames","assetNames","inject","banner","footer","incremental","entryPoints","stdin","plugins","absWorkingDir","nodePaths","watch"])},estrella={BuildConfig:new Set(["entry","debug","watch","cwd","quiet","silent","clear","tslint","onStart","onEnd","outfileMode","run","tsc","tsrules","title"])},filepath=__toModule(require("path")),crypto2=__toModule(require("crypto"));function sha12(e,t){const r=crypto2.createHash("sha1").update(e);return t?r.digest(t):r.digest()}function entryPointsMapToList(e){return Object.keys(e).map((t=>t+":"+e[t]))}function createBuildConfig(e,t){let r=!1,o=!1,n=!1,i=!1,s="";let l="";const a=Object.create({get outfileAbs(){return s},setOutfile(e){a.outfile=e,s=e&&"-"!=e?filepath.resolve(a.cwd,e):""},get projectID(){return l},updateProjectID:()=>(l=function(e){const t=[e.cwd,e.outfile||"",...Array.isArray(e.entryPoints)?e.entryPoints:"object"==typeof e.entryPoints?entryPointsMapToList(e.entryPoints):e.entryPoints?[e.entryPoints]:[]].join(filepath.delimiter);return base36EncodeBuf(sha12(Buffer.from(t,"utf8")))}(a),l),get buildIsCancelled(){return r},set buildIsCancelled(e){r=e},get outfileIsTemporary(){return o},set outfileIsTemporary(e){o=e},get outfileCopyToStdout(){return n},set outfileCopyToStdout(e){n=e},get metafileIsTemporary(){return i},set metafileIsTemporary(e){i=e}});return Object.assign(a,e),a.cwd=e.cwd?filepath.resolve(e.cwd):!isCLI&&process.mainModule?process.mainModule.path:t,a.setOutfile(e.outfile||""),a.updateProjectID(),a}function base36EncodeBuf(e){let t="";for(let r=0;r<e.length;r+=4)t+=e.readUInt32LE(r).toString(36);return t}var{dirname:dirname5,basename:basename4}=Path7,CLI_DOC={usage:"usage: $0 [options]",flags:[["-w, watch","Watch source files for changes and rebuild."],["-g, debug","Do not optimize and define DEBUG=true."],["-r, run","Run the output file after a successful build."],["-sourcemap","Generate sourcemap."],["-inline-sourcemap","Generate inline sourcemap."],["-no-color","Disable use of colors."],["-no-clear","Disable clearing of the screen, regardless of TTY status."],["-no-diag","Disable TypeScript diagnostics."],["-color","Color terminal output, regardless of TTY status."],["-diag","Only run TypeScript diagnostics (no esbuild.)"],["-quiet","Only log warnings and errors but nothing else."],["-silent","Don't log anything, not even errors."],["-estrella-version","Print version of estrella and exit 0."],["-estrella-debug","Enable debug logging of estrella itself."]]},CLI_DOC_STANDALONE={usage:"usage: $0 [options] <srcfile> ...",flags:CLI_DOC.flags.concat([["-o, outfile","Write output to <file> instead of stdout.","<file>"],["-bundle","Include all dependencies."],["-minify","Simplify and compress generated code."],["-outdir","Write output to <dir> instead of stdout.","<dir>"],["-esbuild","Pass arbitrary JSON to esbuild's build function.","<json>"]]),trailer:'\n<srcfile> is a filename, or "-" for stdin.\n\nExample of using estrella without a build script:\n  $0 -o out/app.js main.ts\n    This compile main.ts and writes the output to out/app.js\n\nExample of using estrella with a build script:\n  1. Create a file called build.js with the following contents:\n       #!/usr/bin/env node\n       const { build } = require("estrella")\n       build({\n         entry: "main.ts",\n         outfile: "out/main.js",\n       })\n  2. Make that file executable and run it:\n       chmod +x build.js\n       ./build.js\n  You can now customize your build behavior by changing build.js.\n  Try ./build.js -help\n\nSee https://github.com/rsms/estrella#readme for documentation.\n  '},cli_ready=Promise.resolve(),cliopts={},cliargs=[],IS_MAIN_CALL=Symbol("IS_MAIN_CALL"),_setErrorExitCode=!1;function setErrorExitCode(e){if(!_setErrorExitCode){_setErrorExitCode=!0;let t=e||1;process.exitCode=t,process.on("exit",(e=>{process.exit(e||t)}))}}function len(e){switch(typeof e){case"object":return Array.isArray(e)?e.length:Object.keys(e).length;case"string":return e.length;default:return 0}}function processAPIConfig(e){if(log_default.debug((()=>`input config ${repr(e)}`)),e.entryPoints||(e.entryPoints=[]),e.entry)if(Array.isArray(e.entry))e.entryPoints=e.entryPoints.concat(e.entry);else if("object"==typeof e.entry){if(0!=e.entryPoints.length)throw new UserError("Both config.entryPoints and .entry can not be set when .entry is an object");e.entryPoints=e.entry}else e.entryPoints.push(e.entry);delete e.entry;if(0==len(e.entryPoints)&&!e.stdin&&(log_default.debug((()=>"missing entryPoints; attempting inference")),e.entryPoints=guessEntryPoints(e),0==e.entryPoints.length)){let t=getTSConfigForConfig(e)?" (could not guess from tsconfig.json)":"";throw new UserError(`config.entryPoints is empty or not set${t}`)}if(e.sourcemap?"inline"!=e.sourcemap&&"external"!=e.sourcemap&&(e.sourcemap=!0):e.sourcemap=!1,!e.outfile&&!e.outdir){e.setOutfile("-");const t=e.updateProjectID();e.setOutfile(Path7.join(tmpdir2(),`esbuild.${t}.out.js`)),e.outfileIsTemporary=!0}e.updateProjectID(),log_default.debug((()=>`effective config for project#${e.projectID}: ${repr(e)}`))}function patchSourceMap(e,t){const r=clock(),o=JSON.parse(fs10.readFileSync(e));for(let e in t){let r=t[e];void 0===r?delete o[e]:("function"==typeof r&&(r=r(o[e])),o[e]=r)}fs10.writeFileSync(e,JSON.stringify(o)),log_default.debug((()=>`patched source map ${e} with overrides ${repr(t)} (${fmtDuration(clock()-r)})`))}function guessEntryPoints(e){const t=getTSConfigForConfig(e);if(t){if(log_default.debug((()=>`tsconfig file found at ${getTSConfigFileForConfig(e)}`)),t.files)return t.files;if(t.include){let e=[];for(let r of t.include)log_default.debug(`guessing entry points: glob.glob(${r}) =>`,glob.glob(r)),e=e.concat(glob.glob(r));if(t.exclude)for(let r of t.exclude)e=e.filter((e=>!glob.match(r,e)));return e.slice(0,1)}}return[]}function esbuildOptionsFromConfig(e){let t={},r={};const o={name:"globalName"};for(let n of Object.keys(e))estrella.BuildConfig.has(n)||(esbuild.BuildOptions.has(n)||(r[n]=e[n]),n=o[n]||n,t[n]=e[n]);return Object.keys(r).length>0&&log_default.info(`Notice: Potentially invalid esbuild.BuildOption(s): ${repr(r)}\n`+bugReportMessage("guess",json(Object.keys(r)))),t.outfile||delete t.outfile,t}var _logInfoOnceRecord=new Set;function logInfoOnce(...e){if(log_default.level>=log_default.INFO){const t=e.join(" ");_logInfoOnceRecord.has(t)||(_logInfoOnceRecord.add(t),log_default.info(...e))}}function build2(e){e=createBuildConfig(e||{},e[IS_MAIN_CALL]?process.cwd():process.mainModule&&dirname5(process.mainModule.filename)||__dirname);const t={resolve(){},reject(){}},r=[];let o={addCancelCallback:function(t){e.isCancelled?t():r.push(t)},buildCounter:0,rebuild:()=>(log_default.warn("rebuild() called before initial build completed. Ignoring"),Promise.resolve(!0))};const n=cli_ready.then((()=>new Promise(((r,n)=>{if(e.isCancelled)return log_default.debug("build cancelled immediately"),!1;t.resolve=r,t.reject=n,build1(e,o).then(r).catch(n)}))));return n.rebuild=()=>o.rebuild(),Object.defineProperty(n,"buildCounter",{get:()=>o.buildCounter}),n.cancel=function(o){if(!e.isCancelled){log_default.debug("build cancelled",{reason:o}),e.isCancelled=!0;for(let e of r)e&&e();r.length=0,o?t.reject(o):t.resolve(!0)}},n}async function build1(e,t){const r=IS_MAIN_CALL in e;delete e[IS_MAIN_CALL];let o=cliopts,n=cliargs;if(void 0===e.run&&(e.run=o.run),"-"==e.outfile||"-"==o.outfile||r&&!o.outfile&&!o.outdir){e.setOutfile("-");const t=e.updateProjectID();o.outfile=Path7.join(tmpdir2(),`esbuild.${t}.out.js`),e.setOutfile(o.outfile),e.outfileIsTemporary=!0,e.outfileCopyToStdout=!0}if(r){if(0==n.length)if(process.stdin.isTTY){const t=guessEntryPoints(e);log_default.debug((()=>`no input files provided; best guess: ${repr(t)}`)),0==t.length&&(log_default.error(`missing <srcfile> argument (see ${prog} -help)`),process.exit(1)),n.splice(n.length-1,0,...t);const r=getTSConfigForConfig(e);o.outfile||o.outdir||!r||(o.outfile=r.outFile,o.outfile||(o.outdir=r.outDir)),0==n.length&&(log_default.error(`missing <srcfile> argument (see ${prog} -help)`),process.exit(1))}else n=["-"];if(n=n.filter((t=>"-"!=t||(e.stdin||(e.stdin={contents:fs10.readFileSync(0,"utf8"),sourcefile:"stdin",resolveDir:process.cwd(),loader:"ts"}),!1))),e.setOutfile(o.outfile||void 0),n.length>0&&(e.entryPoints=n),o.outdir&&(e.outdir=o.outdir),o.bundle&&(e.bundle=o.bundle),o.minify&&(e.minify=o.minify),o.esbuild){const t=jsonparse(o.esbuild,"-esbuild");if(!t||"object"!=typeof t)return log_default.error(`-esbuild needs a JS object, for example '{key:"value"}'. Got ${typeof t}.`),!1;log_default.debug((()=>`applying custom esbuild config ${repr(t)}`));for(let r in t)e[r]=t[r]}}else processAPIConfig(e);const i=e.debug=o.debug=!(!o.debug&&!e.debug),s=e.silent=o.silent=!(!o.silent&&!e.silent),l=e.quiet=o.quiet=s||!(!o.quiet&&!e.quiet);o.watch=!(!o.watch&&!e.watch),e.watch&&"object"==typeof e.watch||(e.watch=o.watch),void 0!==e.color&&(log_default.colorMode=e.color,stdoutStyle.reconfigure(process.stdout,e.color),stderrStyle.reconfigure(process.stderr,e.color)),l&&log_default.level<log_default.DEBUG&&(log_default.level=s?log_default.SILENT:log_default.WARN),e.sourcemap=o["inline-sourcemap"]?"inline":!!o.sourcemap||e.sourcemap,e.outfileIsTemporary&&e.outfileCopyToStdout&&!0===e.sourcemap&&(e.sourcemap="inline"),e.clear=!o["no-clear"]&&(void 0===e.clear?!!process.stdout.isTTY:e.clear),log_default.debug((()=>`project directory ${repr(e.cwd)} (config.cwd)`)),e.title||(e.title=e.name||tildePath(e.cwd));let a=!0===o.diag?"on":!1===o.diag?"off":"auto";if("off"===a||e.entryPoints&&0!=len(e.entryPoints)){if("off"!==a){void 0!==e.tsc&&(log_default.info("the 'tsc' property is deprecated. Please rename to 'tslint'."),void 0===e.tslint&&(e.tslint=e.tsc)),e.tslint&&"auto"!==e.tslint&&(a=e.tslint);"auto"===a||"object"==typeof a&&("auto"===e.tslint.mode||!e.tslint.mode)?getTSConfigFileForConfig(e)||(log_default.debug((()=>{const t=tsConfigFileSearchDirForConfig(e);return`skipping tslint in auto mode since no tsconfig.json file was found in project.\nTried the following filenames:${Array.from(searchTSConfigFile(t,e.cwd)).map((e=>`\n  ${tildePath(e)}`))}`})),a="off"):void 0!==e.tslint&&"auto"!==e.tslint&&(a=e.tslint)}}else log_default.debug("disabling tslint (no entryPoints)"),a="off";e.run&&configure(e);let c=0;let u=!1;const d=e.onEnd;let f=d?async(r,o)=>{let n;u=!0;try{const o=d(e,r,t);n=o instanceof Promise?await o:o}catch(e){throw log_default.debug((()=>`error in onEnd handler: ${e.stack||e}`)),e}finally{u=!1}return void 0===n?o:!!n}:(e,t)=>t;function g(e){let t=f;f=async(r,o)=>{const n=await e(r,o);return void 0!==n&&(o=n),t(r,o)}}e.outfileMode&&e.outfile&&g((async(t,r)=>{if(log_default.debug("onEnd chmod"),0==t.errors.length)try{chmod2(e.outfileAbs,e.outfileMode)}catch(e){log_default.error("configuration error: outfileMode: "+e.message),setErrorExitCode(1)}})),e.outfileCopyToStdout&&!e.run&&!1!==e.write&&g((async(t,r)=>{if(log_default.debug("onEnd copyToStdout"),0==t.errors.length)return new Promise(((t,o)=>{const n=fs10.createReadStream(e.outfileAbs);n.on("end",(()=>t(r))),n.on("error",o),n.pipe(process.stdout)}))})),e.outfileIsTemporary&&!e.outfileCopyToStdout&&!1!==e.write&&g((async(t,r)=>{if(log_default.debug("onEnd load results"),t.js=fs10.readFileSync(e.outfile,{encoding:"utf8"}),!0===e.sourcemap){try{t.map=fs10.readFileSync(e.outfile+".map",{encoding:"utf8"})}catch(t){log_default.debug(`failed to load temporary source map at ${e.outfile}.map: ${t.stack||t}`)}const r=t.js.lastIndexOf("\n//# sourceMappingURL");-1!=r&&(t.js=t.js.substr(0,r+1))}})),e.watch&&g((async(e,t)=>{logInfoOnce("Watching files for changes...")}));let p={DEBUG:i?"true":"false",...e.define||{}};const h={minify:!i,sourcemap:e.sourcemap,sourcesContent:!1,color:stderrStyle.ncolors>0,logLevel:log_default.level==log_default.DEBUG?"info":e.silent?"silent":e.quiet?"error":"warning",...esbuildOptionsFromConfig(e),define:p};let m=null,y={warnings:[],errors:[],metafile:null};if(e.watch){const r=e.projectID;if(h.incremental=!0,h.metafile=!0,(h.outfile||h.outdir)&&!1!==h.write||(h.outfile=Path7.join(tmpdir2(),`esbuild.${r}.out.js`),e.outfileIsTemporary=!0,delete h.write),t.addCancelCallback((()=>{m&&m.rebuild&&m.rebuild.dispose()})),e.entryPoints&&len(e.entryPoints)>0)if(y.metafile={inputs:{},outputs:{}},Array.isArray(e.entryPoints))for(let t of e.entryPoints)y.metafile.inputs[t]={};else for(let t of Object.keys(e.entryPoints)){let r=e.entryPoints[t];y.metafile.inputs[r]={}}}function _(t,r){log_default.debug("esbuild finished with result",r),m=r,logWarnings(r.warnings||[]);const o=fmtDuration(clock()-t);if(e.outfile){let t=e.outfile;e.sourcemap&&e.outfileIsTemporary&&"inline"!=e.sourcemap&&!1!==e.write&&patchSourceMap(e.outfileAbs+".map",{sources:t=>t&&t.map((t=>Path7.relative(e.cwd,t)))});let r=0;try{r=fs10.statSync(e.outfileAbs).size}catch(e){}e.outfileIsTemporary||log_default.info(stdoutStyle.green(`Wrote ${t}`)+` (${fmtByteSize(r)}, ${o})`)}else log_default.info(stdoutStyle.green(e.outdir?`Wrote to dir ${e.outdir} (${o})`:`Finished (write=false, ${o})`));return y.warnings=r.warnings,y.errors=[],y.metafile=r.metafile||null,f(y,!0)}t.rebuild=()=>S([]).then((e=>(u&&log_default.warn("waiting for rebuild() inside onEnd handler may cause a deadlock"),e)));let b=!0;function w(e,t){log_default.debug("esbuild finished with error:",t?t.stack||t:null);let r=t.warnings||[],o=t.errors||[];return 0==o.length&&(log_default.error(t.message),o.push({text:String(t),location:null})),logWarnings(r),y.warnings=r,y.errors=o,b?b=!1:y.metafile=null,f(y,!1)}async function S(r){e.watch&&e.clear&&(screen.clear(),c=clock());let o=[];for(let t of r)if("move"==t.type){let r=!1;if(Array.isArray(e.entryPoints)){const o=e.entryPoints?e.entryPoints.indexOf(t.name):-1;-1!=o&&(log_default.debug("detected entryPoint file rename",t.name,"->",t.newname),e.entryPoints[o]=t.newname,r=!0)}else for(let e of Object.keys(entryPoints)){if(entryPoints[e]==t.name){entryPoints[e]=t.newname,r=!0;break}}r&&(h.entryPoints=e.entryPoints,m=null),o.push(t.newname)}else o.push(t.name);if(e.entry=e.entryPoints,e.onStart)try{const r=e.onStart(e,o,t);r instanceof Promise&&await r}catch(e){throw log_default.debug((()=>`error in onStart handler: ${e.stack||e}`)),e}if(e.isCancelled)return;const n=!(!m||!m.rebuild);log_default.debug((()=>`invoking ${n?"esbuildResult.rebuild":"esbuild.build"} in ${process.cwd()} with options: ${repr(h)}`));const i=process.cwd();process.chdir(e.cwd);const s=n?m.rebuild():esbuild2.build(h);return process.chdir(i),s.then(_.bind(null,clock()),w.bind(null,clock()))}const P=o.diag?null:S([]),[v,C]="off"!==a?startTSLint(a,o,e):[null,!1];v&&!C&&(v.catch((e=>(log_default.error(e.stack||String(e)),!1))),t.addCancelCallback((()=>{v.cancel()})),cliopts.diag&&e.watch&&e.clear&&screen.clear());let E=!0;if(P&&(log_default.debug("awaiting esbuild"),E=await P,e.isCancelled))return!1;if(e.watch){let r=function(){return y.metafile};return await watch().watchFiles(e,r,t,(e=>{const t=e.length,r=e.map((e=>"move"==e.type?e.newname:e.name));return log_default.info(`${t} ${t>1?"files":"file"} changed: ${r.join(", ")}`),S(e)})),log_default.debug("fswatch ended"),!0}if(v){let e=null;E?(log_default.debug("awaiting eslint"),C||o.diag||(e=setTimeout((()=>log_default.info("Waiting for TypeScript... (^C to skip)")),1e3)),E=await v.catch((()=>!1))):(log_default.debug("cancelling eslint since esbuild reported an error"),v.cancel()),clearTimeout(e)}if(e.isCancelled||E||setErrorExitCode(),E){const e=await waitAll();process.exitCode=e}return E}var tslintProcessCache=new Map;function startTSLint(e,t,r){let o=e,n={};if(e&&"object"==typeof e&&(o=void 0,n=e,"off"==n.mode))return log_default.debug((()=>'tslint disabled by tslint config {mode:"off"}')),[null,!1];r.tsrules&&r.tsrules.length&&(log_default.info("The 'tsrules' property is deprecated. Please use 'tslint.rules' instead"),n.rules={...r.tsrules,...n.rules});const i=t.diag&&r.watch&&r.clear,s=getTSConfigFileForConfig(r),l=`${s||r.cwd}`,a=tslintProcessCache.get(l);if(a)return log_default.debug((()=>"tslint sharing process (no new process created)")),[a,!0];let c=r.cwd;if(r.entryPoints)if(Array.isArray(r.entryPoints))r.entryPoints.length>0&&(c=dirname5(r.entryPoints[0]));else for(let e of Object.keys(r.entryPoints)){c=dirname5(r.entryPoints[e]);break}const u={colors:stdoutStyle.ncolors>0,quiet:r.quiet,mode:o,...n,watch:r.watch,cwd:r.cwd,clearScreen:i,srcdir:c,tsconfigFile:s,onRestart(){log_default.debug("tsc restarting")}};log_default.debug((()=>`starting tslint with options ${repr(u)}`));const d=tslint(u);return tslintProcessCache.set(l,d),[d,!1]}function logWarnings(e){e.length>0&&log_default.warn("[warn] "+e.map((e=>e.text)).join("\n"))}function main(){return build2({[IS_MAIN_CALL]:1}).catch((e=>{console.error(stderrStyle.red(prog+": "+(e?e.stack||e:"error")));const t=process.exitCode||0;process.exit(t>0?t:1)})).then((e=>{const t=process.exitCode||0;process.exit(e||t>0?t:1)}))}function postProcessCLIOpts(){cliopts["no-color"]&&(cliopts.color=!1),cliopts["no-diag"]&&(cliopts.diag=!1),log_default.colorMode=cliopts.color,stdoutStyle.reconfigure(process.stdout,cliopts.color),stderrStyle.reconfigure(process.stderr,cliopts.color),cliopts.color,cliopts["estrella-version"]&&(console.log("estrella 1.4.1"),process.exit(0)),cliopts["estrella-debug"]&&(log_default.level=log_default.DEBUG),cliopts.diag&&cliopts.run&&(log_default.info("Disabling -run since -diag is set"),cliopts.run=void 0),log_default.debug((()=>`Parsed initial CLI arguments: ${repr({options:cliopts,args:cliargs},2)}`))}function watch2(e,t,r){return watch().watch(e,t,r)}function legacy_watchdir(e,t,r,o){return log_default.info((()=>"estrella.watchdir is deprecated. Please use estrella.watch instead")),void 0===o&&(void 0===r?(o=t,r={}):(o=r,void 0!==(r={...r,filter:t}).recursive&&(r.recursive||(r.depth=0),delete r.recursive))),watch2(e,r,o)}isCLI?([cliopts,cliargs]=parseopt(process.argv.slice(2),CLI_DOC_STANDALONE),postProcessCLIOpts(),main()):([cliopts,cliargs]=parseopt(process.argv.slice(2),{...CLI_DOC,unknownFlagAsArg:!0,help(e,t,r){cli_ready=new Promise((t=>{process.nextTick((()=>{console.log(fmtUsage(e,CLI_DOC.usage,CLI_DOC.trailer)),process.exit(0),t()}))}))}}),postProcessCLIOpts(),cliargs.length>0&&cli_ready.then((()=>{cliargs.length>0&&printUnknownOptionsAndExit(cliargs)})),cliopts.parse=(...e)=>{log_default.debug((()=>`Parsing custom CLI arguments ${json(cliargs.join)} via cliopts.parse(`+repr(e)+")"));const t=parseopt(cliargs,{...CLI_DOC,flags:CLI_DOC.flags.concat(e)});return log_default.debug((()=>"Parsed extra CLI arguments: "+json({options:t[0],args:t[1]},2))),cliargs.splice(0,cliargs.length),t});var _tsapiInstance=void 0;module.exports={version:"1.4.1",prog:prog,cliopts:cliopts,cliargs:cliargs,dirname:dirname5,basename:basename4,watch:watch2,watchdir:legacy_watchdir,scandir:scandir,tslint:tslint,defaultTSRules:defaultTSRules,termStyle:termStyle,stdoutStyle:stdoutStyle,stderrStyle:stderrStyle,chmod:file.chmod,editFileMode:file.editMode,fmtDuration:fmtDuration,tildePath:tildePath,findInPATH:findInPATH,tsconfig:getTSConfigForConfig,tsconfigFile:getTSConfigFileForConfig,glob:glob.glob,globmatch:glob.match,file:file,sha1:sha12,log:log_default,get ts(){return void 0===_tsapiInstance&&(_tsapiInstance=createTSAPI()),_tsapiInstance},build:build2};
//# sourceMappingURL=/sm/f63d7fdeea79fd7f8e30d65634fce92e7bf347aa09f0c1910a736c02cd93fb5f.map