@adyen/adyen-salesforce-pwa
Version:
This NPM package enables you to go live fast with payments with Adyen as a payment service provider when building your Salesforce PWA Retail application.
3 lines • 22.1 kB
JavaScript
/*! For license information please see include-env.js.LICENSE.txt */
(()=>{var t={374:(t,e,r)=>{"use strict";const n=r(317),o=r(14),s=r(436);function i(t,e,r){const i=o(t,e,r),c=n.spawn(i.command,i.args,i.options);return s.hookChildProcess(c,i),c}t.exports=i,t.exports.spawn=i,t.exports.sync=function(t,e,r){const i=o(t,e,r),c=n.spawnSync(i.command,i.args,i.options);return c.error=c.error||s.verifyENOENTSync(c.status,i),c},t.exports._parse=o,t.exports._enoent=s},436:t=>{"use strict";const e="win32"===process.platform;function r(t,e){return Object.assign(new Error(`${e} ${t.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${e} ${t.command}`,path:t.command,spawnargs:t.args})}function n(t,n){return e&&1===t&&!n.file?r(n.original,"spawn"):null}t.exports={hookChildProcess:function(t,r){if(!e)return;const o=t.emit;t.emit=function(e,s){if("exit"===e){const e=n(s,r);if(e)return o.call(t,"error",e)}return o.apply(t,arguments)}},verifyENOENT:n,verifyENOENTSync:function(t,n){return e&&1===t&&!n.file?r(n.original,"spawnSync"):null},notFoundError:r}},14:(t,e,r)=>{"use strict";const n=r(928),o=r(45),s=r(483),i=r(182),c="win32"===process.platform,a=/\.(?:com|exe)$/i,u=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;t.exports=function(t,e,r){e&&!Array.isArray(e)&&(r=e,e=null);const l={command:t,args:e=e?e.slice(0):[],options:r=Object.assign({},r),file:void 0,original:{command:t,args:e}};return r.shell?l:function(t){if(!c)return t;const e=function(t){t.file=o(t);const e=t.file&&i(t.file);return e?(t.args.unshift(t.file),t.command=e,o(t)):t.file}(t),r=!a.test(e);if(t.options.forceShell||r){const r=u.test(e);t.command=n.normalize(t.command),t.command=s.command(t.command),t.args=t.args.map((t=>s.argument(t,r)));const o=[t.command].concat(t.args).join(" ");t.args=["/d","/s","/c",`"${o}"`],t.command=process.env.comspec||"cmd.exe",t.options.windowsVerbatimArguments=!0}return t}(l)}},483:t=>{"use strict";const e=/([()\][%!^"`<>&|;, *?])/g;t.exports.command=function(t){return t.replace(e,"^$1")},t.exports.argument=function(t,r){return t=(t=`"${t=(t=(t=`${t}`).replace(/(?=(\\+?)?)\1"/g,'$1$1\\"')).replace(/(?=(\\+?)?)\1$/,"$1$1")}"`).replace(e,"^$1"),r&&(t=t.replace(e,"^$1")),t}},182:(t,e,r)=>{"use strict";const n=r(896),o=r(887);t.exports=function(t){const e=Buffer.alloc(150);let r;try{r=n.openSync(t,"r"),n.readSync(r,e,0,150,0),n.closeSync(r)}catch(t){}return o(e.toString())}},45:(t,e,r)=>{"use strict";const n=r(928),o=r(307),s=r(212);function i(t,e){const r=t.options.env||process.env,i=process.cwd(),c=null!=t.options.cwd,a=c&&void 0!==process.chdir&&!process.chdir.disabled;if(a)try{process.chdir(t.options.cwd)}catch(t){}let u;try{u=o.sync(t.command,{path:r[s({env:r})],pathExt:e?n.delimiter:void 0})}catch(t){}finally{a&&process.chdir(i)}return u&&(u=n.resolve(c?t.options.cwd:"",u)),u}t.exports=function(t){return i(t)||i(t,!0)}},212:t=>{"use strict";const e=(t={})=>{const e=t.env||process.env;return"win32"!==(t.platform||process.platform)?"PATH":Object.keys(e).reverse().find((t=>"PATH"===t.toUpperCase()))||"Path"};t.exports=e,t.exports.default=e},887:(t,e,r)=>{"use strict";const n=r(909);t.exports=(t="")=>{const e=t.match(n);if(!e)return null;const[r,o]=e[0].replace(/#! ?/,"").split(" "),s=r.split("/").pop();return"env"===s?o:o?`${s} ${o}`:s}},909:t=>{"use strict";t.exports=/^#!(.*)/},307:(t,e,r)=>{const n="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,o=r(928),s=n?";":":",i=r(147),c=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),a=(t,e)=>{const r=e.colon||s,o=t.match(/\//)||n&&t.match(/\\/)?[""]:[...n?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(r)],i=n?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",c=n?i.split(r):[""];return n&&-1!==t.indexOf(".")&&""!==c[0]&&c.unshift(""),{pathEnv:o,pathExt:c,pathExtExe:i}},u=(t,e,r)=>{"function"==typeof e&&(r=e,e={}),e||(e={});const{pathEnv:n,pathExt:s,pathExtExe:u}=a(t,e),l=[],p=r=>new Promise(((s,i)=>{if(r===n.length)return e.all&&l.length?s(l):i(c(t));const a=n[r],u=/^".*"$/.test(a)?a.slice(1,-1):a,p=o.join(u,t),h=!u&&/^\.[\\\/]/.test(t)?t.slice(0,2)+p:p;s(f(h,r,0))})),f=(t,r,n)=>new Promise(((o,c)=>{if(n===s.length)return o(p(r+1));const a=s[n];i(t+a,{pathExt:u},((s,i)=>{if(!s&&i){if(!e.all)return o(t+a);l.push(t+a)}return o(f(t,r,n+1))}))}));return r?p(0).then((t=>r(null,t)),r):p(0)};t.exports=u,u.sync=(t,e)=>{e=e||{};const{pathEnv:r,pathExt:n,pathExtExe:s}=a(t,e),u=[];for(let c=0;c<r.length;c++){const a=r[c],l=/^".*"$/.test(a)?a.slice(1,-1):a,p=o.join(l,t),f=!l&&/^\.[\\\/]/.test(t)?t.slice(0,2)+p:p;for(let t=0;t<n.length;t++){const r=f+n[t];try{if(i.sync(r,{pathExt:s})){if(!e.all)return r;u.push(r)}}catch(t){}}}if(e.all&&u.length)return u;if(e.nothrow)return null;throw c(t)}},998:(t,e,r)=>{const n=r(896),o=r(928),s=r(857),i=r(982),c=r(56).version,a=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/gm;function u(t){console.log(`[dotenv@${c}][DEBUG] ${t}`)}function l(t){return t&&t.DOTENV_KEY&&t.DOTENV_KEY.length>0?t.DOTENV_KEY:process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0?process.env.DOTENV_KEY:""}function p(t,e){let r;try{r=new URL(e)}catch(t){if("ERR_INVALID_URL"===t.code)throw new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenv.org/vault/.env.vault?environment=development");throw t}const n=r.password;if(!n)throw new Error("INVALID_DOTENV_KEY: Missing key part");const o=r.searchParams.get("environment");if(!o)throw new Error("INVALID_DOTENV_KEY: Missing environment part");const s=`DOTENV_VAULT_${o.toUpperCase()}`,i=t.parsed[s];if(!i)throw new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${s} in your .env.vault file.`);return{ciphertext:i,key:n}}function f(t){let e=o.resolve(process.cwd(),".env");return t&&t.path&&t.path.length>0&&(e=t.path),e.endsWith(".vault")?e:`${e}.vault`}const h={configDotenv:function(t){let e=o.resolve(process.cwd(),".env"),r="utf8";const i=Boolean(t&&t.debug);var c;t&&(null!=t.path&&(e="~"===(c=t.path)[0]?o.join(s.homedir(),c.slice(1)):c),null!=t.encoding&&(r=t.encoding));try{const o=h.parse(n.readFileSync(e,{encoding:r}));let s=process.env;return t&&null!=t.processEnv&&(s=t.processEnv),h.populate(s,o,t),{parsed:o}}catch(t){return i&&u(`Failed to load ${e} ${t.message}`),{error:t}}},_configVault:function(t){console.log(`[dotenv@${c}][INFO] Loading env from encrypted .env.vault`);const e=h._parseVault(t);let r=process.env;return t&&null!=t.processEnv&&(r=t.processEnv),h.populate(r,e,t),{parsed:e}},_parseVault:function(t){const e=f(t),r=h.configDotenv({path:e});if(!r.parsed)throw new Error(`MISSING_DATA: Cannot parse ${e} for an unknown reason`);const n=l(t).split(","),o=n.length;let s;for(let t=0;t<o;t++)try{const e=p(r,n[t].trim());s=h.decrypt(e.ciphertext,e.key);break}catch(e){if(t+1>=o)throw e}return h.parse(s)},config:function(t){const e=f(t);return 0===l(t).length?h.configDotenv(t):n.existsSync(e)?h._configVault(t):(r=`You set DOTENV_KEY but you are missing a .env.vault file at ${e}. Did you forget to build it?`,console.log(`[dotenv@${c}][WARN] ${r}`),h.configDotenv(t));var r},decrypt:function(t,e){const r=Buffer.from(e.slice(-64),"hex");let n=Buffer.from(t,"base64");const o=n.slice(0,12),s=n.slice(-16);n=n.slice(12,-16);try{const t=i.createDecipheriv("aes-256-gcm",r,o);return t.setAuthTag(s),`${t.update(n)}${t.final()}`}catch(t){const e=t instanceof RangeError,r="Invalid key length"===t.message,n="Unsupported state or unable to authenticate data"===t.message;if(e||r)throw new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");if(n)throw new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");throw console.error("Error: ",t.code),console.error("Error: ",t.message),t}},parse:function(t){const e={};let r,n=t.toString();for(n=n.replace(/\r\n?/gm,"\n");null!=(r=a.exec(n));){const t=r[1];let n=r[2]||"";n=n.trim();const o=n[0];n=n.replace(/^(['"`])([\s\S]*)\1$/gm,"$2"),'"'===o&&(n=n.replace(/\\n/g,"\n"),n=n.replace(/\\r/g,"\r")),e[t]=n}return e},populate:function(t,e,r={}){const n=Boolean(r&&r.debug),o=Boolean(r&&r.override);if("object"!=typeof e)throw new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");for(const r of Object.keys(e))Object.prototype.hasOwnProperty.call(t,r)?(!0===o&&(t[r]=e[r]),n&&u(!0===o?`"${r}" is already defined and WAS overwritten`:`"${r}" is already defined and was NOT overwritten`)):t[r]=e[r]}};t.exports.configDotenv=h.configDotenv,t.exports._configVault=h._configVault,t.exports._parseVault=h._parseVault,t.exports.config=h.config,t.exports.decrypt=h.decrypt,t.exports.parse=h.parse,t.exports.populate=h.populate,t.exports=h},147:(t,e,r)=>{var n;function o(t,e,r){if("function"==typeof e&&(r=e,e={}),!r){if("function"!=typeof Promise)throw new TypeError("callback not provided");return new Promise((function(r,n){o(t,e||{},(function(t,e){t?n(t):r(e)}))}))}n(t,e||{},(function(t,n){t&&("EACCES"===t.code||e&&e.ignoreErrors)&&(t=null,n=!1),r(t,n)}))}r(896),n="win32"===process.platform||global.TESTING_WINDOWS?r(438):r(96),t.exports=o,o.sync=function(t,e){try{return n.sync(t,e||{})}catch(t){if(e&&e.ignoreErrors||"EACCES"===t.code)return!1;throw t}}},96:(t,e,r)=>{t.exports=o,o.sync=function(t,e){return s(n.statSync(t),e)};var n=r(896);function o(t,e,r){n.stat(t,(function(t,n){r(t,!t&&s(n,e))}))}function s(t,e){return t.isFile()&&function(t,e){var r=t.mode,n=t.uid,o=t.gid,s=void 0!==e.uid?e.uid:process.getuid&&process.getuid(),i=void 0!==e.gid?e.gid:process.getgid&&process.getgid(),c=parseInt("100",8),a=parseInt("010",8);return r&parseInt("001",8)||r&a&&o===i||r&c&&n===s||r&(c|a)&&0===s}(t,e)}},438:(t,e,r)=>{t.exports=s,s.sync=function(t,e){return o(n.statSync(t),t,e)};var n=r(896);function o(t,e,r){return!(!t.isSymbolicLink()&&!t.isFile())&&function(t,e){var r=void 0!==e.pathExt?e.pathExt:process.env.PATHEXT;if(!r)return!0;if(-1!==(r=r.split(";")).indexOf(""))return!0;for(var n=0;n<r.length;n++){var o=r[n].toLowerCase();if(o&&t.substr(-o.length).toLowerCase()===o)return!0}return!1}(e,r)}function s(t,e,r){n.stat(t,(function(n,s){r(n,!n&&o(s,t,e))}))}},31:t=>{"use strict";function e(t){return"number"==typeof t||!!/^0x[0-9a-f]+$/i.test(t)||/^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(t)}function r(t,e){return"constructor"===e&&"function"==typeof t[e]||"__proto__"===e}t.exports=function(t,n){n||(n={});var o={bools:{},strings:{},unknownFn:null};"function"==typeof n.unknown&&(o.unknownFn=n.unknown),"boolean"==typeof n.boolean&&n.boolean?o.allBools=!0:[].concat(n.boolean).filter(Boolean).forEach((function(t){o.bools[t]=!0}));var s={};function i(t){return s[t].some((function(t){return o.bools[t]}))}Object.keys(n.alias||{}).forEach((function(t){s[t]=[].concat(n.alias[t]),s[t].forEach((function(e){s[e]=[t].concat(s[t].filter((function(t){return e!==t})))}))})),[].concat(n.string).filter(Boolean).forEach((function(t){o.strings[t]=!0,s[t]&&[].concat(s[t]).forEach((function(t){o.strings[t]=!0}))}));var c=n.default||{},a={_:[]};function u(t,e,n){for(var s=t,i=0;i<e.length-1;i++){var c=e[i];if(r(s,c))return;void 0===s[c]&&(s[c]={}),s[c]!==Object.prototype&&s[c]!==Number.prototype&&s[c]!==String.prototype||(s[c]={}),s[c]===Array.prototype&&(s[c]=[]),s=s[c]}var a=e[e.length-1];r(s,a)||(s!==Object.prototype&&s!==Number.prototype&&s!==String.prototype||(s={}),s===Array.prototype&&(s=[]),void 0===s[a]||o.bools[a]||"boolean"==typeof s[a]?s[a]=n:Array.isArray(s[a])?s[a].push(n):s[a]=[s[a],n])}function l(t,r,n){if(!n||!o.unknownFn||function(t,e){return o.allBools&&/^--[^=]+$/.test(e)||o.strings[t]||o.bools[t]||s[t]}(t,n)||!1!==o.unknownFn(n)){var i=!o.strings[t]&&e(r)?Number(r):r;u(a,t.split("."),i),(s[t]||[]).forEach((function(t){u(a,t.split("."),i)}))}}Object.keys(o.bools).forEach((function(t){l(t,void 0!==c[t]&&c[t])}));var p=[];-1!==t.indexOf("--")&&(p=t.slice(t.indexOf("--")+1),t=t.slice(0,t.indexOf("--")));for(var f=0;f<t.length;f++){var h,d,v=t[f];if(/^--.+=/.test(v)){var g=v.match(/^--([^=]+)=([\s\S]*)$/);h=g[1];var y=g[2];o.bools[h]&&(y="false"!==y),l(h,y,v)}else if(/^--no-.+/.test(v))l(h=v.match(/^--no-(.+)/)[1],!1,v);else if(/^--.+/.test(v))h=v.match(/^--(.+)/)[1],void 0===(d=t[f+1])||/^(-|--)[^-]/.test(d)||o.bools[h]||o.allBools||s[h]&&i(h)?/^(true|false)$/.test(d)?(l(h,"true"===d,v),f+=1):l(h,!o.strings[h]||"",v):(l(h,d,v),f+=1);else if(/^-[^-]+/.test(v)){for(var m=v.slice(1,-1).split(""),E=!1,w=0;w<m.length;w++)if("-"!==(d=v.slice(w+2))){if(/[A-Za-z]/.test(m[w])&&"="===d[0]){l(m[w],d.slice(1),v),E=!0;break}if(/[A-Za-z]/.test(m[w])&&/-?\d+(\.\d*)?(e-?\d+)?$/.test(d)){l(m[w],d,v),E=!0;break}if(m[w+1]&&m[w+1].match(/\W/)){l(m[w],v.slice(w+2),v),E=!0;break}l(m[w],!o.strings[m[w]]||"",v)}else l(m[w],d,v);h=v.slice(-1)[0],E||"-"===h||(!t[f+1]||/^(-|--)[^-]/.test(t[f+1])||o.bools[h]||s[h]&&i(h)?t[f+1]&&/^(true|false)$/.test(t[f+1])?(l(h,"true"===t[f+1],v),f+=1):l(h,!o.strings[h]||"",v):(l(h,t[f+1],v),f+=1))}else if(o.unknownFn&&!1===o.unknownFn(v)||a._.push(o.strings._||!e(v)?v:Number(v)),n.stopEarly){a._.push.apply(a._,t.slice(f+1));break}}return Object.keys(c).forEach((function(t){var e,r,n;e=a,r=t.split("."),n=e,r.slice(0,-1).forEach((function(t){n=n[t]||{}})),r[r.length-1]in n||(u(a,t.split("."),c[t]),(s[t]||[]).forEach((function(e){u(a,e.split("."),c[t])})))})),n["--"]?a["--"]=p.slice():p.forEach((function(t){a._.push(t)})),a}},317:t=>{"use strict";t.exports=require("child_process")},982:t=>{"use strict";t.exports=require("crypto")},896:t=>{"use strict";t.exports=require("fs")},857:t=>{"use strict";t.exports=require("os")},928:t=>{"use strict";t.exports=require("path")},56:t=>{"use strict";t.exports=JSON.parse('{"name":"dotenv","version":"16.3.1","description":"Loads environment variables from .env file","main":"lib/main.js","types":"lib/main.d.ts","exports":{".":{"types":"./lib/main.d.ts","require":"./lib/main.js","default":"./lib/main.js"},"./config":"./config.js","./config.js":"./config.js","./lib/env-options":"./lib/env-options.js","./lib/env-options.js":"./lib/env-options.js","./lib/cli-options":"./lib/cli-options.js","./lib/cli-options.js":"./lib/cli-options.js","./package.json":"./package.json"},"scripts":{"dts-check":"tsc --project tests/types/tsconfig.json","lint":"standard","lint-readme":"standard-markdown","pretest":"npm run lint && npm run dts-check","test":"tap tests/*.js --100 -Rspec","prerelease":"npm test","release":"standard-version"},"repository":{"type":"git","url":"git://github.com/motdotla/dotenv.git"},"funding":"https://github.com/motdotla/dotenv?sponsor=1","keywords":["dotenv","env",".env","environment","variables","config","settings"],"readmeFilename":"README.md","license":"BSD-2-Clause","devDependencies":{"@definitelytyped/dtslint":"^0.0.133","@types/node":"^18.11.3","decache":"^4.6.1","sinon":"^14.0.1","standard":"^17.0.0","standard-markdown":"^7.1.0","standard-version":"^9.5.0","tap":"^16.3.0","tar":"^6.1.11","typescript":"^4.8.4"},"engines":{"node":">=12"},"browser":{"fs":false}}')}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var s=e[n]={exports:{}};return t[n](s,s.exports,r),s.exports}(()=>{"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(){e=function(){return n};var r,n={},o=Object.prototype,s=o.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(t,e,r,n){Object.defineProperty(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n})}try{l({},"")}catch(r){l=function(t,e,r){return t[e]=r}}function p(t,e,n,o){var s=e&&e.prototype instanceof d?e:d,i=Object.create(s.prototype);return l(i,"_invoke",function(t,e,n){var o=1;return function(s,i){if(3===o)throw Error("Generator is already running");if(4===o){if("throw"===s)throw i;return{value:r,done:!0}}for(n.method=s,n.arg=i;;){var c=n.delegate;if(c){var a=_(c,n);if(a){if(a===h)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(1===o)throw o=4,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=3;var u=f(t,e,n);if("normal"===u.type){if(o=n.done?4:2,u.arg===h)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=4,n.method="throw",n.arg=u.arg)}}}(t,n,new $(o||[])),!0),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}n.wrap=p;var h={};function d(){}function v(){}function g(){}var y={};l(y,c,(function(){return this}));var m=Object.getPrototypeOf,E=m&&m(m(k([])));E&&E!==o&&s.call(E,c)&&(y=E);var w=g.prototype=d.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function x(e,r){function n(o,i,c,a){var u=f(e[o],e,i);if("throw"!==u.type){var l=u.arg,p=l.value;return p&&"object"==t(p)&&s.call(p,"__await")?r.resolve(p.__await).then((function(t){n("next",t,c,a)}),(function(t){n("throw",t,c,a)})):r.resolve(p).then((function(t){l.value=t,c(l)}),(function(t){return n("throw",t,c,a)}))}a(u.arg)}var o;l(this,"_invoke",(function(t,e){function s(){return new r((function(r,o){n(t,e,r,o)}))}return o=o?o.then(s,s):s()}),!0)}function _(t,e){var n=e.method,o=t.i[n];if(o===r)return e.delegate=null,"throw"===n&&t.i.return&&(e.method="return",e.arg=r,_(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var s=f(o,t.i,e.arg);if("throw"===s.type)return e.method="throw",e.arg=s.arg,e.delegate=null,h;var i=s.arg;return i?i.done?(e[t.r]=i.value,e.next=t.n,"return"!==e.method&&(e.method="next",e.arg=r),e.delegate=null,h):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function O(t){this.tryEntries.push(t)}function N(t){var e=t[4]||{};e.type="normal",e.arg=r,t[4]=e}function $(t){this.tryEntries=[[-1]],t.forEach(O,this),this.reset(!0)}function k(e){if(null!=e){var n=e[c];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function t(){for(;++o<e.length;)if(s.call(e,o))return t.value=e[o],t.done=!1,t;return t.value=r,t.done=!0,t};return i.next=i}}throw new TypeError(t(e)+" is not iterable")}return v.prototype=g,l(w,"constructor",g),l(g,"constructor",v),l(g,u,v.displayName="GeneratorFunction"),n.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},n.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,l(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},n.awrap=function(t){return{__await:t}},b(x.prototype),l(x.prototype,a,(function(){return this})),n.AsyncIterator=x,n.async=function(t,e,r,o,s){void 0===s&&(s=Promise);var i=new x(p(t,e,r,o),s);return n.isGeneratorFunction(e)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},b(w),l(w,u,"Generator"),l(w,c,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),n.keys=function(t){var e=Object(t),r=[];for(var n in e)r.unshift(n);return function t(){for(;r.length;)if((n=r.pop())in e)return t.value=n,t.done=!1,t;return t.done=!0,t}},n.values=k,$.prototype={constructor:$,reset:function(t){if(this.prev=this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(N),!t)for(var e in this)"t"===e.charAt(0)&&s.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=r)},stop:function(){this.done=!0;var t=this.tryEntries[0][4];if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r){i.type="throw",i.arg=t,e.next=r}for(var o=e.tryEntries.length-1;o>=0;--o){var s=this.tryEntries[o],i=s[4],c=this.prev,a=s[1],u=s[2];if(-1===s[0])return n("end"),!1;if(!a&&!u)throw Error("try statement without catch or finally");if(null!=s[0]&&s[0]<=c){if(c<a)return this.method="next",this.arg=r,n(a),!0;if(c<u)return n(u),!1}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n[0]>-1&&n[0]<=this.prev&&this.prev<n[2]){var o=n;break}}o&&("break"===t||"continue"===t)&&o[0]<=e&&e<=o[2]&&(o=null);var s=o?o[4]:{};return s.type=t,s.arg=e,o?(this.method="next",this.next=o[2],h):this.complete(s)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r[2]===t)return this.complete(r[4],r[3]),N(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r[0]===t){var n=r[4];if("throw"===n.type){var o=n.arg;N(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={i:k(t),r:e,n},"next"===this.method&&(this.arg=r),h}},n}function n(t,e,r,n,o,s,i){try{var c=t[s](i),a=c.value}catch(t){return void r(t)}c.done?e(a):Promise.resolve(a).then(n,o)}var o,s=r(374),i=r(998),c=r(31)(process.argv.slice(2));(o=e().mark((function t(){var r,n,o;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=c.e||".env",!(n=i.config({path:r})).error){t.next=4;break}throw n.error;case 4:Object.assign(process.env,n.parsed),c.p&&((o=s(c.p,c._)).stdout.on("data",(function(t){console.log(t.toString())})),o.stderr.on("data",(function(t){console.error(t.toString())})),o.on("exit",(function(t){console.log("Child exited with code ".concat(t))})));case 6:case"end":return t.stop()}}),t)})),function(){var t=this,e=arguments;return new Promise((function(r,s){var i=o.apply(t,e);function c(t){n(i,r,s,c,a,"next",t)}function a(t){n(i,r,s,c,a,"throw",t)}c(void 0)}))})()})(),Object.defineProperty(exports,"__esModule",{value:!0})})();