(()=>{vare={898:(e,s,r)=>{"use strict";varo=r(81).spawn;vart=r(837);varescapeSpaces=function(e){if(typeofe==="string"){returne.replace(/\b\s/g,"\\ ")}else{returne}};varescapeSpacesInOptions=function(e){["src","dest","include","exclude","excludeFirst"].forEach((function(s){varr=e[s];if(typeofr==="string"){e[s]=escapeSpaces(r)}elseif(Array.isArray(r)===true){e[s]=r.map(escapeSpaces)}}));returne};e.exports=function(e,s){e=e||{};e=t._extend({},e);e=escapeSpacesInOptions(e);varr=e.platform||process.platform;varn=r==="win32";if(typeofe.src==="undefined"){thrownewError("'src' directory is missing from options")}if(typeofe.dest==="undefined"){thrownewError("'dest' directory is missing from options")}varc=e.dest;if(typeofe.host!=="undefined"){c=e.host+":"+e.dest}if(!Array.isArray(e.src)){e.src=[e.src]}vari=[].concat(e.src);i.push(c);vara=(e.args||[]).find((function(e){returne.match(/--chmod=/)}));if(n&&!a){i.push("--chmod=ugo=rwX")}if(typeofe.host!=="undefined"||e.ssh){i.push("--rsh");vard="ssh";if(typeofe.port!=="undefined"){d+=" -p "+e.port}if(typeofe.privateKey!=="undefined"){d+=" -i "+e.privateKey}if(typeofe.sshCmdArgs!=="undefined"){d+=" "+e.sshCmdArgs.join(" ")}i.push(d)}if(e.recursive===true){i.push("--recursive")}if(e.times===true){i.push("--times")}if(e.syncDest===true||e.deleteAll===true){i.push("--delete");i.push("--delete-excluded")}if(e.syncDestIgnoreExcl===true||e.delete===true){i.push("--delete")}if(e.dryRun===true){i.push("--dry-run");i.push("--verbose")}if(typeofe.excludeFirst!=="undefined"&&t.isArray(e.excludeFirst)){e.excludeFirst.forEach((function(e,s){i.push("--exclude="+e)}))}if(typeofe.include!=="undefined"&&t.isArray(e.include)){e.include.forEach((function(e,s){i.push("--include="+e)}))}if(typeofe.exclude!=="undefined"&&t.isArray(e.exclude)){e.exclude.forEach((function(e,s){i.push("--exclude="+e)}))}switch(e.compareMode){case"sizeOnly":i.push("--size-only");break;case"checksum":i.push("--checksum");break}if(typeofe.args!=="undefined"&&t.isArray(e.args)){i=[...newSet([...i,...e.args])]}i=[...newSet(i)];varnoop=function(){};varl=e.onStdout||noop;varu=e.onStderr||noop;varf="rsync ";i.forEach((function(e){if(e.substr(0,4)==="ssh "){e='"'+e+'"'}f+=e+" "}));f=f.trim();if(e.noExec){s(null,null,null,f);return}try{varp="";varh="";vary;if(n){y=o("cmd.exe",["/s","/c",'"'+f+'"'],{windowsVerbatimArguments:true,stdio:[process.stdin,"pipe","pipe"]})}else{y=o("/bin/sh",["-c",f])}y.stdout.on("data",(function(e){l(e);p+=e}));y.stderr.on("data",(function(e){u(e);h+=e}));y.on("exit",(function(e){varr=null;if(e!==0){r=newError("rsync exited with code "+e);r.code=e}s(r,p,h,f)}))}catch(e){s(e,null,null,f)}}},505:(e,s,r)=>{const{existsSync:o,mkdirSync:t,writeFileSync:n}=r(147);const{join:c}=r(17);constvalidateDir=e=>{if(!e){console.warn("⚠️ [DIR] dir is not defined");return}if(o(e)){console.log(`✅ [DIR] ${e} dir exist`);return}console.log(`[DIR] Creating ${e} dir in workspace root`);t(e);console.log("✅ [DIR] dir created.")};consthandleError=(e,s)=>{if(s){thrownewError(e)}console.warn(e)};constwriteToFile=({dir:e,filename:s,content:r,isRequired:t,mode:i="0644"})=>{validateDir(e);consta=c(e,s);if(o(a)){conste=`⚠️ [FILE] ${a} Required file exist.`;handleError(e,t);return}try{console.log(`[FILE] writing ${a} file ...`,r.length);n(a,r,{encoding:"utf8",mode:i})}catch(e){consts=`⚠️[FILE] Writing to file error. filePath: ${a}, message: ${e.message}`;handleError(s,t)}};constvalidateRequiredInputs=e=>{consts=Object.keys(e);constr=s.filter((s=>{constr=e[s];if(!r){console.error(`❌ [INPUTS] ${s} is mandatory`)}returnr}));if(r.length!==s.length){thrownewError("⚠️ [INPUTS] Inputs not valid, aborting ...")}};constsnakeToCamel=e=>e.replace(/[^a-zA-Z0-9]+(.)/g,((e,s)=>s.toUpperCase()));e.exports={writeToFile:writeToFile,validateRequiredInputs:validateRequiredInputs,snakeToCamel:snakeToCamel}},229:(e,s,r)=>{const{snakeToCamel:o}=r(505);constt=["REMOTE_HOST","REMOTE_USER","REMOTE_PORT","SSH_PRIVATE_KEY","DEPLOY_KEY_NAME","SOURCE","TARGET","ARGS","SSH_CMD_ARGS","EXC