@uipath/cli 1.202.1 → 1.203.0-preview.180
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +101 -5
- package/dist/THIRD-PARTY-NOTICES.md +64 -7
- package/dist/{cli-p61a1vc8.js → cli-w7vb50ez.js} +4 -4
- package/dist/{index-tqczrxct.js → index-7pvwjzsq.js} +297 -25
- package/dist/{index-bhjtwzfa.js → index-hgvsratt.js} +14 -2
- package/dist/{index-vmj27s6h.js → index-mtdmza3c.js} +55 -32
- package/dist/{index-9d17sa6t.js → index-szrenqr6.js} +331 -39
- package/dist/{index-v5cj0bhj.js → index-vmn69waj.js} +127 -12
- package/dist/index.js +5 -5
- package/dist/{server-0243hbq7.js → server-z7wh3gfs.js} +6 -5
- package/dist/{telemetry-drain-wqmnr7t7.js → telemetry-drain-zkrm8xja.js} +1 -1
- package/dist/{updateService-mashkk31.js → updateService-n7hftkkv.js} +2 -2
- package/package.json +8 -12
- package/README.browser.md +0 -128
- package/dist/index.browser.js +0 -16410
- package/dist/services.feedback.browser.js +0 -90
- package/dist/services.markdown.browser.js +0 -4
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
// Process global — must exist before bundle init
|
|
2
|
-
if (!globalThis.process) { globalThis.process = {
|
|
3
|
-
env: { NO_COLOR: "1", FORCE_COLOR: "0", NODE_ENV: "production" },
|
|
4
|
-
cwd: function() { return "/"; },
|
|
5
|
-
platform: "browser",
|
|
6
|
-
argv: ["browser", "uip"],
|
|
7
|
-
stdout: { isTTY: false, write: function(d) { console.log(d); return true; }, columns: 80 },
|
|
8
|
-
stderr: { isTTY: false, write: function(d) { console.error(d); return true; }, columns: 80 },
|
|
9
|
-
stdin: { isTTY: true, setEncoding: function() {}, on: function() { return this; }, resume: function() { return this; }, pause: function() { return this; } },
|
|
10
|
-
exit: function() {},
|
|
11
|
-
version: "v20.0.0",
|
|
12
|
-
versions: { node: "20.0.0" }
|
|
13
|
-
}; }
|
|
14
|
-
var process = globalThis.process;
|
|
15
|
-
var process2 = globalThis.process;
|
|
16
|
-
var ba=Object.create;var Dt=Object.defineProperty;var va=Object.getOwnPropertyDescriptor;var xa=Object.getOwnPropertyNames;var wa=Object.getPrototypeOf,Sa=Object.prototype.hasOwnProperty;var ke=(r,e,t)=>()=>{if(t)throw t[0];try{return r&&(e=r(r=0)),e}catch(i){throw t=[i],i}};var Z=(r,e)=>()=>{try{return e||r((e={exports:{}}).exports,e),e.exports}catch(t){throw e=0,t}},Ye=(r,e)=>{for(var t in e)Dt(r,t,{get:e[t],enumerable:!0})},Zr=(r,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of xa(e))!Sa.call(r,o)&&o!==t&&Dt(r,o,{get:()=>e[o],enumerable:!(i=va(e,o))||i.enumerable});return r};var pn=(r,e,t)=>(t=r!=null?ba(wa(r)):{},Zr(e||!r||!r.__esModule?Dt(t,"default",{value:r,enumerable:!0}):t,r)),ze=r=>Zr(Dt({},"__esModule",{value:!0}),r);var ei=Z((Tf,Qr)=>{"use strict";Qr.exports=Ca;function Ca(r){var e,t;if(typeof r!="function")throw new Error("expected a function but got "+r);return function(){return e||(e=!0,t=r.apply(this,arguments)),t}}});var ni=Z(ti=>{"use strict";(function(r){"use strict";function e(A,P){var R;return A instanceof Buffer?R=A:R=Buffer.from(A.buffer,A.byteOffset,A.byteLength),R.toString(P)}var t=function(A){return Buffer.from(A)};function i(A){for(var P=0,R=Math.min(256*256,A.length+1),I=new Uint16Array(R),G=[],H=0;;){var W=P<A.length;if(!W||H>=R-1){var X=I.subarray(0,H),Q=X;if(G.push(String.fromCharCode.apply(null,Q)),!W)return G.join("");A=A.subarray(P),P=0,H=0}var te=A[P++];if((te&128)===0)I[H++]=te;else if((te&224)===192){var ne=A[P++]&63;I[H++]=(te&31)<<6|ne}else if((te&240)===224){var ne=A[P++]&63,ee=A[P++]&63;I[H++]=(te&31)<<12|ne<<6|ee}else if((te&248)===240){var ne=A[P++]&63,ee=A[P++]&63,fe=A[P++]&63,z=(te&7)<<18|ne<<12|ee<<6|fe;z>65535&&(z-=65536,I[H++]=z>>>10&1023|55296,z=56320|z&1023),I[H++]=z}}}function o(A){for(var P=0,R=A.length,I=0,G=Math.max(32,R+(R>>>1)+7),H=new Uint8Array(G>>>3<<3);P<R;){var W=A.charCodeAt(P++);if(W>=55296&&W<=56319){if(P<R){var X=A.charCodeAt(P);(X&64512)===56320&&(++P,W=((W&1023)<<10)+(X&1023)+65536)}if(W>=55296&&W<=56319)continue}if(I+4>H.length){G+=8,G*=1+P/A.length*2,G=G>>>3<<3;var Q=new Uint8Array(G);Q.set(H),H=Q}if((W&4294967168)===0){H[I++]=W;continue}else if((W&4294965248)===0)H[I++]=W>>>6&31|192;else if((W&4294901760)===0)H[I++]=W>>>12&15|224,H[I++]=W>>>6&63|128;else if((W&4292870144)===0)H[I++]=W>>>18&7|240,H[I++]=W>>>12&63|128,H[I++]=W>>>6&63|128;else continue;H[I++]=W&63|128}return H.slice?H.slice(0,I):H.subarray(0,I)}var s="Failed to ",a=function(A,P,R){if(A)throw new Error("".concat(s).concat(P,": the '").concat(R,"' option is unsupported."))},c=typeof Buffer=="function"&&Buffer.from,h=c?t:o;function d(){this.encoding="utf-8"}d.prototype.encode=function(A,P){return a(P&&P.stream,"encode","stream"),h(A)};function p(A){var P;try{var R=new Blob([A],{type:"text/plain;charset=UTF-8"});P=URL.createObjectURL(R);var I=new XMLHttpRequest;return I.open("GET",P,!1),I.send(),I.responseText}finally{P&&URL.revokeObjectURL(P)}}var g=!c&&typeof Blob=="function"&&typeof URL=="function"&&typeof URL.createObjectURL=="function",S=["utf-8","utf8","unicode-1-1-utf-8"],$=i;c?$=e:g&&($=function(A){try{return p(A)}catch{return i(A)}});var B="construct 'TextDecoder'",V="".concat(s," ").concat(B,": the ");function Y(A,P){a(P&&P.fatal,B,"fatal"),A=A||"utf-8";var R;if(c?R=Buffer.isEncoding(A):R=S.indexOf(A.toLowerCase())!==-1,!R)throw new RangeError("".concat(V," encoding label provided ('").concat(A,"') is invalid."));this.encoding=A,this.fatal=!1,this.ignoreBOM=!1}Y.prototype.decode=function(A,P){a(P&&P.stream,"decode","stream");var R;return A instanceof Uint8Array?R=A:A.buffer instanceof ArrayBuffer?R=new Uint8Array(A.buffer):R=new Uint8Array(A),$(R,this.encoding)},r.TextEncoder=r.TextEncoder||d,r.TextDecoder=r.TextDecoder||Y})(typeof window<"u"?window:typeof global<"u"?global:ti)});var ii=Z((bf,ri)=>{"use strict";ni();ri.exports={encode:r=>new TextEncoder().encode(r),decode:r=>new TextDecoder().decode(r)}});var si=Z((vf,oi)=>{"use strict";oi.exports=ka;function ka(r,e,t){var i;return function(){if(!e)return r.apply(this,arguments);var o=this,s=arguments,a=t&&!i;if(clearTimeout(i),i=setTimeout(function(){if(i=null,!a)return r.apply(o,s)},e),a)return r.apply(this,arguments)}}});var $t=Z((xf,li)=>{"use strict";function ai(r){if(r.length===0)return".";let e=ui(r);return e=e.reduce(Ra,[]),mn(...e)}function Aa(...r){let e="";for(let t of r)t.startsWith("/")?e=t:e=ai(mn(e,t));return e}function mn(...r){if(r.length===0)return"";let e=r.join("/");return e=e.replace(/\/{2,}/g,"/"),e}function ui(r){if(r.length===0)return[];if(r==="/")return["/"];let e=r.split("/");return e[e.length-1]===""&&e.pop(),r[0]==="/"?e[0]="/":e[0]!=="."&&e.unshift("."),e}function Oa(r){let e=r.lastIndexOf("/");if(e===-1)throw new Error(`Cannot get dirname of "${r}"`);return e===0?"/":r.slice(0,e)}function Pa(r){if(r==="/")throw new Error(`Cannot get basename of "${r}"`);let e=r.lastIndexOf("/");return e===-1?r:r.slice(e+1)}function Ra(r,e){if(r.length===0)return r.push(e),r;if(e===".")return r;if(e===".."){if(r.length===1){if(r[0]==="/")throw new Error("Unable to normalize path - traverses above root directory");if(r[0]===".")return r.push(e),r}return r[r.length-1]===".."?(r.push(".."),r):(r.pop(),r)}return r.push(e),r}li.exports={join:mn,normalize:ai,split:ui,basename:Pa,dirname:Oa,resolve:Aa}});var hn=Z((wf,ci)=>{"use strict";function ft(r){return class extends Error{constructor(...e){super(...e),this.code=r,this.message?this.message=r+": "+this.message:this.message=r}}}var Ia=ft("EEXIST"),Na=ft("ENOENT"),La=ft("ENOTDIR"),Fa=ft("ENOTEMPTY"),Ma=ft("ETIMEDOUT"),Da=ft("EISDIR");ci.exports={EEXIST:Ia,ENOENT:Na,ENOTDIR:La,ENOTEMPTY:Fa,ETIMEDOUT:Ma,EISDIR:Da}});var mi=Z((kf,pi)=>{"use strict";var ce=$t(),{EEXIST:di,ENOENT:$a,ENOTDIR:fi,ENOTEMPTY:Ha,EISDIR:Ua}=hn(),se=0;pi.exports=class{constructor(){}_makeRoot(e=new Map){return e.set(se,{mode:511,type:"dir",size:0,ino:0,mtimeMs:Date.now()}),e}activate(e=null){e===null?this._root=new Map([["/",this._makeRoot()]]):typeof e=="string"?this._root=new Map([["/",this._makeRoot(this.parse(e))]]):this._root=e}get activated(){return!!this._root}deactivate(){this._root=void 0}size(){return this._countInodes(this._root.get("/"))-1}_countInodes(e){let t=1;for(let[i,o]of e)i!==se&&(t+=this._countInodes(o));return t}autoinc(){return this._maxInode(this._root.get("/"))+1}_maxInode(e){let t=e.get(se).ino;for(let[i,o]of e)i!==se&&(t=Math.max(t,this._maxInode(o)));return t}print(e=this._root.get("/")){let t="",i=(o,s)=>{for(let[a,c]of o){if(a===0)continue;let h=c.get(se),d=h.mode.toString(8);t+=`${" ".repeat(s)}${a} ${d}`,h.type==="file"?t+=` ${h.size} ${h.mtimeMs}
|
|
17
|
-
`:(t+=`
|
|
18
|
-
`,i(c,s+1))}};return i(e,0),t}parse(e){let t=0;function i(c){let h=++t,d=c.length===1?"dir":"file",[p,g,S]=c;return p=parseInt(p,8),g=g?parseInt(g):0,S=S?parseInt(S):Date.now(),new Map([[se,{mode:p,type:d,size:g,mtimeMs:S,ino:h}]])}let o=e.trim().split(`
|
|
19
|
-
`),s=this._makeRoot(),a=[{indent:-1,node:s},{indent:0,node:null}];for(let c of o){let d=c.match(/^\t*/)[0].length;c=c.slice(d);let[p,...g]=c.split(" "),S=i(g);if(d<=a[a.length-1].indent)for(;d<=a[a.length-1].indent;)a.pop();a.push({indent:d,node:S}),a[a.length-2].node.set(p,S)}return s}_lookup(e,t=!0){let i=this._root,o="/",s=ce.split(e);for(let a=0;a<s.length;++a){let c=s[a];if(i=i.get(c),!i)throw new $a(e);if(t||a<s.length-1){let h=i.get(se);if(h.type==="symlink"){let d=ce.resolve(o,h.target);i=this._lookup(d)}o?o=ce.join(o,c):o=c}}return i}mkdir(e,{mode:t}){if(e==="/")throw new di;let i=this._lookup(ce.dirname(e)),o=ce.basename(e);if(i.has(o))throw new di;let s=new Map,a={mode:t,type:"dir",size:0,mtimeMs:Date.now(),ino:this.autoinc()};s.set(se,a),i.set(o,s)}rmdir(e){let t=this._lookup(e);if(t.get(se).type!=="dir")throw new fi;if(t.size>1)throw new Ha;let i=this._lookup(ce.dirname(e)),o=ce.basename(e);i.delete(o)}readdir(e){let t=this._lookup(e);if(t.get(se).type!=="dir")throw new fi;return[...t.keys()].filter(i=>typeof i=="string")}writeStat(e,t,{mode:i}){let o,s;try{s=this.stat(e)}catch{}if(s!==void 0){if(s.type==="dir")throw new Ua;i==null&&(i=s.mode),o=s.ino}i==null&&(i=438),o==null&&(o=this.autoinc());let a=this._lookup(ce.dirname(e)),c=ce.basename(e),h={mode:i,type:"file",size:t,mtimeMs:Date.now(),ino:o},d=new Map;return d.set(se,h),a.set(c,d),h}unlink(e){let t=this._lookup(ce.dirname(e)),i=ce.basename(e);t.delete(i)}rename(e,t){let i=ce.basename(t),o=this._lookup(e);this._lookup(ce.dirname(t)).set(i,o),this.unlink(e)}stat(e){return this._lookup(e).get(se)}lstat(e){return this._lookup(e,!1).get(se)}readlink(e){return this._lookup(e,!1).get(se).target}symlink(e,t){let i,o;try{let d=this.stat(t);o===null&&(o=d.mode),i=d.ino}catch{}o==null&&(o=40960),i==null&&(i=this.autoinc());let s=this._lookup(ce.dirname(t)),a=ce.basename(t),c={mode:o,type:"symlink",target:e,size:0,mtimeMs:Date.now(),ino:i},h=new Map;return h.set(se,c),s.set(a,h),c}_du(e){let t=0;for(let[i,o]of e.entries())i===se?t+=o.size:t+=this._du(o);return t}du(e){let t=this._lookup(e);return this._du(t)}}});var yn=Z(Ie=>{"use strict";Object.defineProperty(Ie,"__esModule",{value:!0});var Ht=class{constructor(e="keyval-store",t="keyval"){this.storeName=t,this._dbName=e,this._storeName=t,this._init()}_init(){this._dbp||(this._dbp=new Promise((e,t)=>{let i=indexedDB.open(this._dbName);i.onerror=()=>t(i.error),i.onsuccess=()=>e(i.result),i.onupgradeneeded=()=>{i.result.createObjectStore(this._storeName)}}))}_withIDBStore(e,t){return this._init(),this._dbp.then(i=>new Promise((o,s)=>{let a=i.transaction(this.storeName,e);a.oncomplete=()=>o(),a.onabort=a.onerror=()=>s(a.error),t(a.objectStore(this.storeName))}))}_close(){return this._init(),this._dbp.then(e=>{e.close(),this._dbp=void 0})}},gn;function nt(){return gn||(gn=new Ht),gn}function ja(r,e=nt()){let t;return e._withIDBStore("readwrite",i=>{t=i.get(r)}).then(()=>t.result)}function qa(r,e,t=nt()){return t._withIDBStore("readwrite",i=>{i.put(e,r)})}function Va(r,e,t=nt()){return t._withIDBStore("readwrite",i=>{let o=i.get(r);o.onsuccess=()=>{i.put(e(o.result),r)}})}function Ga(r,e=nt()){return e._withIDBStore("readwrite",t=>{t.delete(r)})}function Ba(r=nt()){return r._withIDBStore("readwrite",e=>{e.clear()})}function Wa(r=nt()){let e=[];return r._withIDBStore("readwrite",t=>{(t.openKeyCursor||t.openCursor).call(t).onsuccess=function(){this.result&&(e.push(this.result.key),this.result.continue())}}).then(()=>e)}function Ya(r=nt()){return r._close()}Ie.Store=Ht;Ie.get=ja;Ie.set=qa;Ie.update=Va;Ie.del=Ga;Ie.clear=Ba;Ie.keys=Wa;Ie.close=Ya});var gi=Z((Pf,hi)=>{"use strict";var Ke=yn();hi.exports=class{constructor(e,t){this._database=e,this._storename=t,this._store=new Ke.Store(this._database,this._storename)}saveSuperblock(e){return Ke.set("!root",e,this._store)}loadSuperblock(){return Ke.get("!root",this._store)}readFile(e){return Ke.get(e,this._store)}writeFile(e,t){return Ke.set(e,t,this._store)}unlink(e){return Ke.del(e,this._store)}wipe(){return Ke.clear(this._store)}close(){return Ke.close(this._store)}}});var _i=Z((If,yi)=>{"use strict";yi.exports=class{constructor(e){this._url=e}loadSuperblock(){return fetch(this._url+"/.superblock.txt").then(e=>e.ok?e.text():null)}async readFile(e){let t=await fetch(this._url+e);if(t.status===200)return t.arrayBuffer();throw new Error("ENOENT")}async sizeFile(e){let t=await fetch(this._url+e,{method:"HEAD"});if(t.status===200)return t.headers.get("content-length");throw new Error("ENOENT")}}});var Ei=Z((Lf,Ti)=>{"use strict";var bt=yn(),za=r=>new Promise(e=>setTimeout(e,r));Ti.exports=class{constructor(e,t){this._id=Math.random(),this._database=e,this._storename=t,this._store=new bt.Store(this._database,this._storename),this._lock=null}async has({margin:e=2e3}={}){if(this._lock&&this._lock.holder===this._id){let t=Date.now();return this._lock.expires>t+e?!0:await this.renew()}else return!1}async renew({ttl:e=5e3}={}){let t;return await bt.update("lock",i=>{let s=Date.now()+e;return t=i&&i.holder===this._id,this._lock=t?{holder:this._id,expires:s}:i,this._lock},this._store),t}async acquire({ttl:e=5e3}={}){let t,i,o;if(await bt.update("lock",s=>{let a=Date.now(),c=a+e;return i=s&&s.expires<a,t=s===void 0||i,o=s&&s.holder===this._id,this._lock=t?{holder:this._id,expires:c}:s,this._lock},this._store),o)throw new Error("Mutex double-locked");return t}async wait({interval:e=100,limit:t=6e3,ttl:i}={}){for(;t--;){if(await this.acquire({ttl:i}))return!0;await za(e)}throw new Error("Mutex timeout")}async release({force:e=!1}={}){let t,i,o;if(await bt.update("lock",s=>(t=e||s&&s.holder===this._id,i=s===void 0,o=s&&s.holder!==this._id,this._lock=t?void 0:s,this._lock),this._store),await bt.close(this._store),!t&&!e){if(i)throw new Error("Mutex double-freed");if(o)throw new Error("Mutex lost ownership")}return t}}});var vi=Z((Mf,bi)=>{"use strict";bi.exports=class{constructor(e){this._id=Math.random(),this._database=e,this._has=!1,this._release=null}async has(){return this._has}async acquire(){return new Promise(e=>{navigator.locks.request(this._database+"_lock",{ifAvailable:!0},t=>(this._has=!!t,e(!!t),new Promise(i=>{this._release=i})))})}async wait({timeout:e=6e5}={}){return new Promise((t,i)=>{let o=new AbortController;setTimeout(()=>{o.abort(),i(new Error("Mutex timeout"))},e),navigator.locks.request(this._database+"_lock",{signal:o.signal},s=>(this._has=!!s,t(!!s),new Promise(a=>{this._release=a})))})}async release({force:e=!1}={}){this._has=!1,this._release?this._release():e&&navigator.locks.request(this._database+"_lock",{steal:!0},t=>!0)}}});var Si=Z(($f,wi)=>{"use strict";var{encode:Ka,decode:xi}=ii(),Ja=si(),Xa=mi(),{ENOENT:Za,ENOTEMPTY:Qa,ETIMEDOUT:eu}=hn(),tu=gi(),nu=_i(),ru=Ei(),iu=vi(),vt=$t();wi.exports=class{constructor(){this.saveSuperblock=Ja(()=>{this.flush()},500)}async init(e,{wipe:t,url:i,urlauto:o,fileDbName:s=e,db:a=null,fileStoreName:c=e+"_files",lockDbName:h=e+"_lock",lockStoreName:d=e+"_lock"}={}){this._name=e,this._idb=a||new tu(s,c),this._mutex=navigator.locks?new iu(e):new ru(h,d),this._cache=new Xa(e),this._opts={wipe:t,url:i},this._needsWipe=!!t,i&&(this._http=new nu(i),this._urlauto=!!o)}async activate(){if(this._cache.activated)return;this._needsWipe&&(this._needsWipe=!1,await this._idb.wipe(),await this._mutex.release({force:!0})),await this._mutex.has()||await this._mutex.wait();let e=await this._idb.loadSuperblock();if(e)this._cache.activate(e);else if(this._http){let t=await this._http.loadSuperblock();this._cache.activate(t),await this._saveSuperblock()}else this._cache.activate();if(!await this._mutex.has())throw new eu}async deactivate(){await this._mutex.has()&&await this._saveSuperblock(),this._cache.deactivate();try{await this._mutex.release()}catch(e){console.log(e)}await this._idb.close()}async _saveSuperblock(){this._cache.activated&&(this._lastSavedAt=Date.now(),await this._idb.saveSuperblock(this._cache._root))}_writeStat(e,t,i){let o=vt.split(vt.dirname(e)),s=o.shift();for(let a of o){s=vt.join(s,a);try{this._cache.mkdir(s,{mode:511})}catch{}}return this._cache.writeStat(e,t,i)}async readFile(e,t){let i=typeof t=="string"?t:t&&t.encoding;if(i&&i!=="utf8")throw new Error('Only "utf8" encoding is supported in readFile');let o=null,s=null;try{s=this._cache.stat(e),o=await this._idb.readFile(s.ino)}catch(a){if(!this._urlauto)throw a}if(!o&&this._http){let a=this._cache.lstat(e);for(;a.type==="symlink";)e=vt.resolve(vt.dirname(e),a.target),a=this._cache.lstat(e);o=await this._http.readFile(e)}if(o&&((!s||s.size!=o.byteLength)&&(s=await this._writeStat(e,o.byteLength,{mode:s?s.mode:438}),this.saveSuperblock()),i==="utf8"?o=xi(o):o.toString=()=>xi(o)),!s)throw new Za(e);return o}async writeFile(e,t,i){let{mode:o,encoding:s="utf8"}=i;if(typeof t=="string"){if(s!=="utf8")throw new Error('Only "utf8" encoding is supported in writeFile');t=Ka(t)}let a=await this._cache.writeStat(e,t.byteLength,{mode:o});await this._idb.writeFile(a.ino,t)}async unlink(e,t){let i=this._cache.lstat(e);this._cache.unlink(e),i.type!=="symlink"&&await this._idb.unlink(i.ino)}readdir(e,t){return this._cache.readdir(e)}mkdir(e,t){let{mode:i=511}=t;this._cache.mkdir(e,{mode:i})}rmdir(e,t){if(e==="/")throw new Qa;this._cache.rmdir(e)}rename(e,t){this._cache.rename(e,t)}stat(e,t){return this._cache.stat(e)}lstat(e,t){return this._cache.lstat(e)}readlink(e,t){return this._cache.readlink(e)}symlink(e,t){this._cache.symlink(e,t)}async backFile(e,t){let i=await this._http.sizeFile(e);await this._writeStat(e,i,t)}du(e){return this._cache.du(e)}flush(){return this._saveSuperblock()}}});var ki=Z((Uf,Ci)=>{"use strict";Ci.exports=class{constructor(e){this.type=e.type,this.mode=e.mode,this.size=e.size,this.ino=e.ino,this.mtimeMs=e.mtimeMs,this.ctimeMs=e.ctimeMs||e.mtimeMs,this.uid=1,this.gid=1,this.dev=1}isFile(){return this.type==="file"}isDirectory(){return this.type==="dir"}isSymbolicLink(){return this.type==="symlink"}}});var Ri=Z((qf,Pi)=>{"use strict";var ou=Si(),Ai=ki(),Ut=$t();function Ne(r,e,...t){return r=Ut.normalize(r),(typeof e>"u"||typeof e=="function")&&(e={}),typeof e=="string"&&(e={encoding:e}),[r,e,...t]}function su(r,e,t,...i){return r=Ut.normalize(r),(typeof t>"u"||typeof t=="function")&&(t={}),typeof t=="string"&&(t={encoding:t}),[r,e,t,...i]}function Oi(r,e,...t){return[Ut.normalize(r),Ut.normalize(e),...t]}Pi.exports=class{constructor(e,t={}){this.init=this.init.bind(this),this.readFile=this._wrap(this.readFile,Ne,!1),this.writeFile=this._wrap(this.writeFile,su,!0),this.unlink=this._wrap(this.unlink,Ne,!0),this.readdir=this._wrap(this.readdir,Ne,!1),this.mkdir=this._wrap(this.mkdir,Ne,!0),this.rmdir=this._wrap(this.rmdir,Ne,!0),this.rename=this._wrap(this.rename,Oi,!0),this.stat=this._wrap(this.stat,Ne,!1),this.lstat=this._wrap(this.lstat,Ne,!1),this.readlink=this._wrap(this.readlink,Ne,!1),this.symlink=this._wrap(this.symlink,Oi,!0),this.backFile=this._wrap(this.backFile,Ne,!0),this.du=this._wrap(this.du,Ne,!1),this._deactivationPromise=null,this._deactivationTimeout=null,this._activationPromise=null,this._operations=new Set,e&&this.init(e,t)}async init(...e){return this._initPromiseResolve&&await this._initPromise,this._initPromise=this._init(...e),this._initPromise}async _init(e,t={}){await this._gracefulShutdown(),this._activationPromise&&await this._deactivate(),this._backend&&this._backend.destroy&&await this._backend.destroy(),this._backend=t.backend||new ou,this._backend.init&&await this._backend.init(e,t),this._initPromiseResolve&&(this._initPromiseResolve(),this._initPromiseResolve=null),t.defer||this.stat("/")}async _gracefulShutdown(){this._operations.size>0&&(this._isShuttingDown=!0,await new Promise(e=>this._gracefulShutdownResolve=e),this._isShuttingDown=!1,this._gracefulShutdownResolve=null)}_wrap(e,t,i){return async(...o)=>{o=t(...o);let s={name:e.name,args:o};this._operations.add(s);try{return await this._activate(),await e.apply(this,o)}finally{this._operations.delete(s),i&&this._backend.saveSuperblock(),this._operations.size===0&&(this._deactivationTimeout||clearTimeout(this._deactivationTimeout),this._deactivationTimeout=setTimeout(this._deactivate.bind(this),500))}}}async _activate(){this._initPromise||console.warn(new Error(`Attempted to use LightningFS ${this._name} before it was initialized.`)),await this._initPromise,this._deactivationTimeout&&(clearTimeout(this._deactivationTimeout),this._deactivationTimeout=null),this._deactivationPromise&&await this._deactivationPromise,this._deactivationPromise=null,this._activationPromise||(this._activationPromise=this._backend.activate?this._backend.activate():Promise.resolve()),await this._activationPromise}async _deactivate(){return this._activationPromise&&await this._activationPromise,this._deactivationPromise||(this._deactivationPromise=this._backend.deactivate?this._backend.deactivate():Promise.resolve()),this._activationPromise=null,this._gracefulShutdownResolve&&this._gracefulShutdownResolve(),this._deactivationPromise}async readFile(e,t){return this._backend.readFile(e,t)}async writeFile(e,t,i){return await this._backend.writeFile(e,t,i),null}async unlink(e,t){return await this._backend.unlink(e,t),null}async readdir(e,t){return this._backend.readdir(e,t)}async mkdir(e,t){return await this._backend.mkdir(e,t),null}async rmdir(e,t){return await this._backend.rmdir(e,t),null}async rename(e,t){return await this._backend.rename(e,t),null}async stat(e,t){let i=await this._backend.stat(e,t);return new Ai(i)}async lstat(e,t){let i=await this._backend.lstat(e,t);return new Ai(i)}async readlink(e,t){return this._backend.readlink(e,t)}async symlink(e,t){return await this._backend.symlink(e,t),null}async backFile(e,t){return await this._backend.backFile(e,t),null}async du(e){return this._backend.du(e)}async flush(){return this._backend.flush()}}});var Ni=Z((Gf,Ii)=>{"use strict";var au=ei(),uu=Ri();function ge(r,e){return typeof r=="function"&&(e=r),e=au(e),[(...i)=>e(null,...i),e]}Ii.exports=class{constructor(...e){this.promises=new uu(...e),this.init=this.init.bind(this),this.readFile=this.readFile.bind(this),this.writeFile=this.writeFile.bind(this),this.unlink=this.unlink.bind(this),this.readdir=this.readdir.bind(this),this.mkdir=this.mkdir.bind(this),this.rmdir=this.rmdir.bind(this),this.rename=this.rename.bind(this),this.stat=this.stat.bind(this),this.lstat=this.lstat.bind(this),this.readlink=this.readlink.bind(this),this.symlink=this.symlink.bind(this),this.backFile=this.backFile.bind(this),this.du=this.du.bind(this),this.flush=this.flush.bind(this)}init(e,t){return this.promises.init(e,t)}readFile(e,t,i){let[o,s]=ge(t,i);this.promises.readFile(e,t).then(o).catch(s)}writeFile(e,t,i,o){let[s,a]=ge(i,o);this.promises.writeFile(e,t,i).then(s).catch(a)}unlink(e,t,i){let[o,s]=ge(t,i);this.promises.unlink(e,t).then(o).catch(s)}readdir(e,t,i){let[o,s]=ge(t,i);this.promises.readdir(e,t).then(o).catch(s)}mkdir(e,t,i){let[o,s]=ge(t,i);this.promises.mkdir(e,t).then(o).catch(s)}rmdir(e,t,i){let[o,s]=ge(t,i);this.promises.rmdir(e,t).then(o).catch(s)}rename(e,t,i){let[o,s]=ge(i);this.promises.rename(e,t).then(o).catch(s)}stat(e,t,i){let[o,s]=ge(t,i);this.promises.stat(e).then(o).catch(s)}lstat(e,t,i){let[o,s]=ge(t,i);this.promises.lstat(e).then(o).catch(s)}readlink(e,t,i){let[o,s]=ge(t,i);this.promises.readlink(e).then(o).catch(s)}symlink(e,t,i){let[o,s]=ge(i);this.promises.symlink(e,t).then(o).catch(s)}backFile(e,t,i){let[o,s]=ge(t,i);this.promises.backFile(e,t).then(o).catch(s)}du(e,t){let[i,o]=ge(t);this.promises.du(e).then(i).catch(o)}flush(e){let[t,i]=ge(e);this.promises.flush().then(t).catch(i)}}});var Mi,Li,Fi,lu,cu,rt,_n=ke(()=>{"use strict";Mi=pn(Ni(),1),Li=2e4,Fi=Symbol.for("@uipath/filesystem/lock-tails"),lu=()=>{let r=globalThis,e=r[Fi];if(e&&typeof e.get=="function"&&typeof e.set=="function"&&typeof e.delete=="function")return e;let t=new Map;return r[Fi]=t,t},cu=()=>{if(!(typeof navigator>"u"))return navigator.locks},rt=class{initialized=!1;fsInstance=null;async init(){this.initialized||(this.fsInstance=new Mi.default("uipcli-fs"),this.initialized=!0)}normalizePath(e){let t=e.startsWith("/"),i=e.split("/"),o=[];for(let s of i)s==="."||s===""||(s===".."?o.pop():o.push(s));return(t?"/":"")+o.join("/")}path={join:(...e)=>{let t=e.filter(Boolean).join("/");return this.normalizePath(t)},resolve:(...e)=>{let t="";for(let i=e.length-1;i>=0;i--){let o=e[i];if(o&&(t=t?`${o}/${t}`:o,o.startsWith("/")))break}return t.startsWith("/")||(t=`/${t}`),this.normalizePath(t)},relative:(e,t)=>{let i=this.normalizePath(e).split("/").filter(Boolean),o=this.normalizePath(t).split("/").filter(Boolean),s=0;for(;s<i.length&&s<o.length&&i[s]===o[s];)s++;let a=Array(i.length-s).fill(".."),c=o.slice(s);return[...a,...c].join("/")||"."},dirname:e=>{let t=e.split("/").filter(Boolean);return t.pop(),`/${t.join("/")}`},isAbsolute:e=>e.startsWith("/"),basename:(e,t)=>{let i=e.split("/").filter(Boolean),o=i[i.length-1]||"";return t&&o.endsWith(t)?o.slice(0,-t.length):o}};env={cwd:()=>"/",homedir:()=>"/home",tmpdir:()=>"/tmp",getenv:e=>{}};utils={open:async e=>{typeof window<"u"&&window.open(e,"_blank")}};async prepare(){await this.init()}getFs(){if(!this.fsInstance)throw new Error("Browser filesystem is not initialized.");return this.fsInstance}async readFile(e,t){try{await this.init();let i=this.getFs();if(t)return await i.promises.readFile(e,"utf8");let o=await i.promises.readFile(e);return new Uint8Array(o)}catch(i){if(this.isEnoent(i))return null;throw i}}async writeFile(e,t){await this.init();let i=this.getFs(),o=this.path.dirname(e);o&&o!=="/"&&await this.mkdir(o),await i.promises.writeFile(e,t)}async appendFile(e,t){await this.init();let i=this.getFs(),o=this.path.dirname(e);o&&o!=="/"&&await this.mkdir(o);let a=await this.readFile(e,"utf-8")??"",c=typeof t=="string"?t:new TextDecoder().decode(t);await i.promises.writeFile(e,a+c)}async readdir(e){try{return await this.init(),await this.getFs().promises.readdir(e)}catch(t){if(this.isEnoent(t))return[];throw t}}async stat(e){try{await this.init();let i=await this.getFs().promises.stat(e);return{isFile:()=>i.isFile(),isDirectory:()=>i.isDirectory(),size:i.size,mtimeMs:i.mtimeMs}}catch(t){if(this.isEnoent(t))return null;throw t}}async exists(e){return await this.stat(e)!==null}async mkdir(e){await this.init();let t=this.getFs(),i=this.normalizePath(e);if(i==="/"||i==="")return;let o=this.path.dirname(i);o!==i&&o!=="/"?await this.mkdir(o):o==="/"&&await this.checkRootDirectory();try{await t.promises.mkdir(i)}catch(s){if(this.isEexist(s))return;throw s}}async acquireLock(e){let i=`@uipath/filesystem:lock:${this.normalizePath(this.path.isAbsolute(e)?e:`/${e}`)}`,o=cu();return o?await this.acquireWebLock(o,i):this.acquireInMemoryLock(i)}async acquireWebLock(e,t){let i=new AbortController,o=setTimeout(()=>{i.abort()},Li);return await new Promise((s,a)=>{let c;e.request(t,{signal:i.signal},()=>new Promise(d=>{clearTimeout(o),c=d,s(async()=>{d()})})).catch(d=>{if(clearTimeout(o),!c){if(d?.name==="AbortError"){a(new Error(`ELOCKED: timed out waiting for lock on ${t}`));return}a(d)}})})}acquireInMemoryLock(e){let t=lu(),i=t.get(e)??Promise.resolve(),o,s=new Promise(c=>{o=c}),a=i.then(()=>s);return t.set(e,a),a.then(()=>{t.get(e)===a&&t.delete(e)}),new Promise((c,h)=>{let d=setTimeout(()=>{o(),h(new Error(`ELOCKED: timed out waiting for lock on ${e}`))},Li);i.then(()=>{clearTimeout(d),c(async()=>{o()})})})}async rm(e){await this.init();let t=this.getFs(),i=await this.stat(e);if(i){if(i.isDirectory()){let o=await this.readdir(e);for(let s of o)await this.rm(this.path.join(e,s));try{await t.promises.rmdir(e)}catch(s){if(this.isEnoent(s))return;throw s}return}try{await t.promises.unlink(e)}catch(o){if(this.isEnoent(o))return;throw o}}}async rename(e,t){await this.init(),await this.getFs().promises.rename(e,t)}async realpath(e){return e}async getTempDir(){let e=`/tmp/uipath-fs-${Date.now()}-${Math.random().toString(36).slice(2,8)}`;return await this.mkdir(e),e}async copyDirectory(e,t){let i=await this.stat(e);if(!i)throw new Error(`Source directory does not exist: ${e}`);if(!i.isDirectory())throw new Error(`Source path is not a directory: ${e}`);await this.mkdir(t);let o=await this.readdir(e);for(let s of o){let a=this.path.join(e,s),c=this.path.join(t,s),h=await this.stat(a);if(h){if(h.isDirectory())await this.copyDirectory(a,c);else if(h.isFile()){let d=await this.readFile(a);d!==null&&await this.writeFile(c,d)}}}}isEnoent(e){return typeof e=="object"&&e!==null&&"code"in e&&e.code==="ENOENT"}isEexist(e){return typeof e=="object"&&e!==null&&"code"in e&&e.code==="EEXIST"}async checkRootDirectory(){try{await this.getFs().promises.stat("/")}catch(e){if(this.isEnoent(e)){await this.getFs().promises.mkdir("/");return}throw e}}}});var Di=ke(()=>{"use strict"});var $i,Yf,du,He,it=ke(()=>{"use strict";_n();_n();Di();$i=new rt,Yf=$i.init(),du=null,He=()=>du??$i});var Hi={};Ye(Hi,{createHash:()=>pu,randomUUID:()=>mu});var fu,pu,mu,Ui=ke(()=>{"use strict";fu=r=>()=>{throw new Error(`[@uipath/cli] '${r}' from node:crypto is not available in the browser bundle. Use globalThis.crypto.subtle instead.`)},pu=fu("createHash"),mu=()=>{if(globalThis.crypto?.randomUUID)return globalThis.crypto.randomUUID();throw new Error("[@uipath/cli] node:crypto.randomUUID requires globalThis.crypto.randomUUID in the browser bundle.")}});var Pn={};Ye(Pn,{AsyncLocalStorage:()=>St,default:()=>Ju});var St,Ju,Vt=ke(()=>{"use strict";St=class{getStore(){}run(e,t,...i){return t(...i)}enterWith(e){}disable(){}},Ju={}});var zo={};Ye(zo,{CORE_SCHEMA:()=>fl,DEFAULT_SCHEMA:()=>pl,FAILSAFE_SCHEMA:()=>cl,JSON_SCHEMA:()=>dl,Schema:()=>ll,Type:()=>ul,YAMLException:()=>yl,default:()=>Yo,dump:()=>gl,load:()=>ml,loadAll:()=>hl,safeDump:()=>bl,safeLoad:()=>Tl,safeLoadAll:()=>El,types:()=>_l});function nl(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function Ct(){if(io)return Xe;io=1;function r(a){return typeof a>"u"||a===null}function e(a){return typeof a=="object"&&a!==null}function t(a){return Array.isArray(a)?a:r(a)?[]:[a]}function i(a,c){if(c){let h=Object.keys(c);for(let d=0,p=h.length;d<p;d+=1){let g=h[d];a[g]=c[g]}}return a}function o(a,c){let h="";for(let d=0;d<c;d+=1)h+=a;return h}function s(a){return a===0&&Number.NEGATIVE_INFINITY===1/a}return Xe.isNothing=r,Xe.isObject=e,Xe.toArray=t,Xe.repeat=o,Xe.isNegativeZero=s,Xe.extend=i,Xe}function kt(){if(oo)return Nn;oo=1;function r(t,i){let o="",s=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(o+='in "'+t.mark.name+'" '),o+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!i&&t.mark.snippet&&(o+=`
|
|
20
|
-
|
|
21
|
-
`+t.mark.snippet),s+" "+o):s}function e(t,i){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=i,this.message=r(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e.prototype.toString=function(i){return this.name+": "+r(this,i)},Nn=e,Nn}function rl(){if(so)return Ln;so=1;let r=Ct();function e(o,s,a,c,h){let d="",p="",g=Math.floor(h/2)-1;return c-s>g&&(d=" ... ",s=c-g+d.length),a-c>g&&(p=" ...",a=c+g-p.length),{str:d+o.slice(s,a).replace(/\t/g,"\u2192")+p,pos:c-s+d.length}}function t(o,s){return r.repeat(" ",s-o.length)+o}function i(o,s){if(s=Object.create(s||null),!o.buffer)return null;s.maxLength||(s.maxLength=79),typeof s.indent!="number"&&(s.indent=1),typeof s.linesBefore!="number"&&(s.linesBefore=3),typeof s.linesAfter!="number"&&(s.linesAfter=2);let a=/\r?\n|\r|\0/g,c=[0],h=[],d,p=-1;for(;d=a.exec(o.buffer);)h.push(d.index),c.push(d.index+d[0].length),o.position<=d.index&&p<0&&(p=c.length-2);p<0&&(p=c.length-1);let g="",S=Math.min(o.line+s.linesAfter,h.length).toString().length,$=s.maxLength-(s.indent+S+3);for(let V=1;V<=s.linesBefore&&!(p-V<0);V++){let Y=e(o.buffer,c[p-V],h[p-V],o.position-(c[p]-c[p-V]),$);g=r.repeat(" ",s.indent)+t((o.line-V+1).toString(),S)+" | "+Y.str+`
|
|
22
|
-
`+g}let B=e(o.buffer,c[p],h[p],o.position,$);g+=r.repeat(" ",s.indent)+t((o.line+1).toString(),S)+" | "+B.str+`
|
|
23
|
-
`,g+=r.repeat("-",s.indent+S+3+B.pos)+`^
|
|
24
|
-
`;for(let V=1;V<=s.linesAfter&&!(p+V>=h.length);V++){let Y=e(o.buffer,c[p+V],h[p+V],o.position-(c[p]-c[p+V]),$);g+=r.repeat(" ",s.indent)+t((o.line+V+1).toString(),S)+" | "+Y.str+`
|
|
25
|
-
`}return g.replace(/\n$/,"")}return Ln=i,Ln}function de(){if(ao)return Fn;ao=1;let r=kt(),e=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],t=["scalar","sequence","mapping"];function i(s){let a={};return s!==null&&Object.keys(s).forEach(function(c){s[c].forEach(function(h){a[String(h)]=c})}),a}function o(s,a){if(a=a||{},Object.keys(a).forEach(function(c){if(e.indexOf(c)===-1)throw new r('Unknown option "'+c+'" is met in definition of "'+s+'" YAML type.')}),this.options=a,this.tag=s,this.kind=a.kind||null,this.resolve=a.resolve||function(){return!0},this.construct=a.construct||function(c){return c},this.instanceOf=a.instanceOf||null,this.predicate=a.predicate||null,this.represent=a.represent||null,this.representName=a.representName||null,this.defaultStyle=a.defaultStyle||null,this.multi=a.multi||!1,this.styleAliases=i(a.styleAliases||null),t.indexOf(this.kind)===-1)throw new r('Unknown kind "'+this.kind+'" is specified for "'+s+'" YAML type.')}return Fn=o,Fn}function Po(){if(uo)return Mn;uo=1;let r=kt(),e=de();function t(s,a){let c=[];return s[a].forEach(function(h){let d=c.length;c.forEach(function(p,g){p.tag===h.tag&&p.kind===h.kind&&p.multi===h.multi&&(d=g)}),c[d]=h}),c}function i(){let s={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function a(c){c.multi?(s.multi[c.kind].push(c),s.multi.fallback.push(c)):s[c.kind][c.tag]=s.fallback[c.tag]=c}for(let c=0,h=arguments.length;c<h;c+=1)arguments[c].forEach(a);return s}function o(s){return this.extend(s)}return o.prototype.extend=function(a){let c=[],h=[];if(a instanceof e)h.push(a);else if(Array.isArray(a))h=h.concat(a);else if(a&&(Array.isArray(a.implicit)||Array.isArray(a.explicit)))a.implicit&&(c=c.concat(a.implicit)),a.explicit&&(h=h.concat(a.explicit));else throw new r("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");c.forEach(function(p){if(!(p instanceof e))throw new r("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(p.loadKind&&p.loadKind!=="scalar")throw new r("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(p.multi)throw new r("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),h.forEach(function(p){if(!(p instanceof e))throw new r("Specified list of YAML types (or a single Type object) contains a non-Type object.")});let d=Object.create(o.prototype);return d.implicit=(this.implicit||[]).concat(c),d.explicit=(this.explicit||[]).concat(h),d.compiledImplicit=t(d,"implicit"),d.compiledExplicit=t(d,"explicit"),d.compiledTypeMap=i(d.compiledImplicit,d.compiledExplicit),d},Mn=o,Mn}function Ro(){if(lo)return Dn;lo=1;let r=de();return Dn=new r("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),Dn}function Io(){if(co)return $n;co=1;let r=de();return $n=new r("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),$n}function No(){if(fo)return Hn;fo=1;let r=de();return Hn=new r("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),Hn}function Lo(){if(po)return Un;po=1;let r=Po();return Un=new r({explicit:[Ro(),Io(),No()]}),Un}function Fo(){if(mo)return jn;mo=1;let r=de();function e(o){if(o===null)return!0;let s=o.length;return s===1&&o==="~"||s===4&&(o==="null"||o==="Null"||o==="NULL")}function t(){return null}function i(o){return o===null}return jn=new r("tag:yaml.org,2002:null",{kind:"scalar",resolve:e,construct:t,predicate:i,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"}),jn}function Mo(){if(ho)return qn;ho=1;let r=de();function e(o){if(o===null)return!1;let s=o.length;return s===4&&(o==="true"||o==="True"||o==="TRUE")||s===5&&(o==="false"||o==="False"||o==="FALSE")}function t(o){return o==="true"||o==="True"||o==="TRUE"}function i(o){return Object.prototype.toString.call(o)==="[object Boolean]"}return qn=new r("tag:yaml.org,2002:bool",{kind:"scalar",resolve:e,construct:t,predicate:i,represent:{lowercase:function(o){return o?"true":"false"},uppercase:function(o){return o?"TRUE":"FALSE"},camelcase:function(o){return o?"True":"False"}},defaultStyle:"lowercase"}),qn}function Do(){if(go)return Vn;go=1;let r=Ct(),e=de();function t(d){return d>=48&&d<=57||d>=65&&d<=70||d>=97&&d<=102}function i(d){return d>=48&&d<=55}function o(d){return d>=48&&d<=57}function s(d){if(d===null)return!1;let p=d.length,g=0,S=!1;if(!p)return!1;let $=d[g];if(($==="-"||$==="+")&&($=d[++g]),$==="0"){if(g+1===p)return!0;if($=d[++g],$==="b"){for(g++;g<p;g++){if($=d[g],$!=="0"&&$!=="1")return!1;S=!0}return S&&isFinite(a(d))}if($==="x"){for(g++;g<p;g++){if(!t(d.charCodeAt(g)))return!1;S=!0}return S&&isFinite(a(d))}if($==="o"){for(g++;g<p;g++){if(!i(d.charCodeAt(g)))return!1;S=!0}return S&&isFinite(a(d))}}for(;g<p;g++){if(!o(d.charCodeAt(g)))return!1;S=!0}return S?isFinite(a(d)):!1}function a(d){let p=d,g=1,S=p[0];if((S==="-"||S==="+")&&(S==="-"&&(g=-1),p=p.slice(1),S=p[0]),p==="0")return 0;if(S==="0"){if(p[1]==="b")return g*parseInt(p.slice(2),2);if(p[1]==="x")return g*parseInt(p.slice(2),16);if(p[1]==="o")return g*parseInt(p.slice(2),8)}return g*parseInt(p,10)}function c(d){return a(d)}function h(d){return Object.prototype.toString.call(d)==="[object Number]"&&d%1===0&&!r.isNegativeZero(d)}return Vn=new e("tag:yaml.org,2002:int",{kind:"scalar",resolve:s,construct:c,predicate:h,represent:{binary:function(d){return d>=0?"0b"+d.toString(2):"-0b"+d.toString(2).slice(1)},octal:function(d){return d>=0?"0o"+d.toString(8):"-0o"+d.toString(8).slice(1)},decimal:function(d){return d.toString(10)},hexadecimal:function(d){return d>=0?"0x"+d.toString(16).toUpperCase():"-0x"+d.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Vn}function $o(){if(yo)return Gn;yo=1;let r=Ct(),e=de(),t=new RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),i=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function o(d){return d===null||!t.test(d)?!1:isFinite(parseFloat(d,10))?!0:i.test(d)}function s(d){let p=d.toLowerCase(),g=p[0]==="-"?-1:1;return"+-".indexOf(p[0])>=0&&(p=p.slice(1)),p===".inf"?g===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:p===".nan"?NaN:g*parseFloat(p,10)}let a=/^[-+]?[0-9]+e/;function c(d,p){if(isNaN(d))switch(p){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===d)switch(p){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===d)switch(p){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(r.isNegativeZero(d))return"-0.0";let g=d.toString(10);return a.test(g)?g.replace("e",".e"):g}function h(d){return Object.prototype.toString.call(d)==="[object Number]"&&(d%1!==0||r.isNegativeZero(d))}return Gn=new e("tag:yaml.org,2002:float",{kind:"scalar",resolve:o,construct:s,predicate:h,represent:c,defaultStyle:"lowercase"}),Gn}function Ho(){return _o||(_o=1,Bn=Lo().extend({implicit:[Fo(),Mo(),Do(),$o()]})),Bn}function Uo(){return To||(To=1,Wn=Ho()),Wn}function jo(){if(Eo)return Yn;Eo=1;let r=de(),e=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),t=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function i(a){return a===null?!1:e.exec(a)!==null||t.exec(a)!==null}function o(a){let c=0,h=null,d=e.exec(a);if(d===null&&(d=t.exec(a)),d===null)throw new Error("Date resolve error");let p=+d[1],g=+d[2]-1,S=+d[3];if(!d[4])return new Date(Date.UTC(p,g,S));let $=+d[4],B=+d[5],V=+d[6];if(d[7]){for(c=d[7].slice(0,3);c.length<3;)c+="0";c=+c}if(d[9]){let A=+d[10],P=+(d[11]||0);h=(A*60+P)*6e4,d[9]==="-"&&(h=-h)}let Y=new Date(Date.UTC(p,g,S,$,B,V,c));return h&&Y.setTime(Y.getTime()-h),Y}function s(a){return a.toISOString()}return Yn=new r("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:i,construct:o,instanceOf:Date,represent:s}),Yn}function qo(){if(bo)return zn;bo=1;let r=de();function e(t){return t==="<<"||t===null}return zn=new r("tag:yaml.org,2002:merge",{kind:"scalar",resolve:e}),zn}function Vo(){if(vo)return Kn;vo=1;let r=de(),e=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
26
|
-
\r`;function t(a){if(a===null)return!1;let c=0,h=a.length,d=e;for(let p=0;p<h;p++){let g=d.indexOf(a.charAt(p));if(!(g>64)){if(g<0)return!1;c+=6}}return c%8===0}function i(a){let c=a.replace(/[\r\n=]/g,""),h=c.length,d=e,p=0,g=[];for(let $=0;$<h;$++)$%4===0&&$&&(g.push(p>>16&255),g.push(p>>8&255),g.push(p&255)),p=p<<6|d.indexOf(c.charAt($));let S=h%4*6;return S===0?(g.push(p>>16&255),g.push(p>>8&255),g.push(p&255)):S===18?(g.push(p>>10&255),g.push(p>>2&255)):S===12&&g.push(p>>4&255),new Uint8Array(g)}function o(a){let c="",h=0,d=a.length,p=e;for(let S=0;S<d;S++)S%3===0&&S&&(c+=p[h>>18&63],c+=p[h>>12&63],c+=p[h>>6&63],c+=p[h&63]),h=(h<<8)+a[S];let g=d%3;return g===0?(c+=p[h>>18&63],c+=p[h>>12&63],c+=p[h>>6&63],c+=p[h&63]):g===2?(c+=p[h>>10&63],c+=p[h>>4&63],c+=p[h<<2&63],c+=p[64]):g===1&&(c+=p[h>>2&63],c+=p[h<<4&63],c+=p[64],c+=p[64]),c}function s(a){return Object.prototype.toString.call(a)==="[object Uint8Array]"}return Kn=new r("tag:yaml.org,2002:binary",{kind:"scalar",resolve:t,construct:i,predicate:s,represent:o}),Kn}function Go(){if(xo)return Jn;xo=1;let r=de(),e=Object.prototype.hasOwnProperty,t=Object.prototype.toString;function i(s){if(s===null)return!0;let a={},c=s;for(let h=0,d=c.length;h<d;h+=1){let p=c[h],g=!1;if(t.call(p)!=="[object Object]")return!1;let S;for(S in p)if(e.call(p,S))if(!g)g=!0;else return!1;if(!g||e.call(a,S))return!1;Object.defineProperty(a,S,{value:!0})}return!0}function o(s){return s!==null?s:[]}return Jn=new r("tag:yaml.org,2002:omap",{kind:"sequence",resolve:i,construct:o}),Jn}function Bo(){if(wo)return Xn;wo=1;let r=de(),e=Object.prototype.toString;function t(o){if(o===null)return!0;let s=o,a=new Array(s.length);for(let c=0,h=s.length;c<h;c+=1){let d=s[c];if(e.call(d)!=="[object Object]")return!1;let p=Object.keys(d);if(p.length!==1)return!1;a[c]=[p[0],d[p[0]]]}return!0}function i(o){if(o===null)return[];let s=o,a=new Array(s.length);for(let c=0,h=s.length;c<h;c+=1){let d=s[c],p=Object.keys(d);a[c]=[p[0],d[p[0]]]}return a}return Xn=new r("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:t,construct:i}),Xn}function Wo(){if(So)return Zn;So=1;let r=de(),e=Object.prototype.hasOwnProperty;function t(o){if(o===null)return!0;let s=o;for(let a in s)if(e.call(s,a)&&s[a]!==null)return!1;return!0}function i(o){return o!==null?o:{}}return Zn=new r("tag:yaml.org,2002:set",{kind:"mapping",resolve:t,construct:i}),Zn}function tr(){return Co||(Co=1,Qn=Uo().extend({implicit:[jo(),qo()],explicit:[Vo(),Go(),Bo(),Wo()]})),Qn}function il(){if(ko)return Bt;ko=1;let r=Ct(),e=kt(),t=rl(),i=tr(),o=Object.prototype.hasOwnProperty,s=1,a=2,c=3,h=4,d=1,p=2,g=3,S=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,$=/[\x85\u2028\u2029]/,B=/[,\[\]{}]/,V=/^(?:!|!!|![0-9A-Za-z-]+!)$/,Y=/^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;function A(n){return Object.prototype.toString.call(n)}function P(n){return n===10||n===13}function R(n){return n===9||n===32}function I(n){return n===9||n===32||n===10||n===13}function G(n){return n===44||n===91||n===93||n===123||n===125}function H(n){if(n>=48&&n<=57)return n-48;let f=n|32;return f>=97&&f<=102?f-97+10:-1}function W(n){return n===120?2:n===117?4:n===85?8:0}function X(n){return n>=48&&n<=57?n-48:-1}function Q(n){switch(n){case 48:return"\0";case 97:return"\x07";case 98:return"\b";case 116:return" ";case 9:return" ";case 110:return`
|
|
27
|
-
`;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 101:return"\x1B";case 32:return" ";case 34:return'"';case 47:return"/";case 92:return"\\";case 78:return"\x85";case 95:return"\xA0";case 76:return"\u2028";case 80:return"\u2029";default:return""}}function te(n){return n<=65535?String.fromCharCode(n):String.fromCharCode((n-65536>>10)+55296,(n-65536&1023)+56320)}function ne(n,f,_){f==="__proto__"?Object.defineProperty(n,f,{configurable:!0,enumerable:!0,writable:!0,value:_}):n[f]=_}let ee=new Array(256),fe=new Array(256);for(let n=0;n<256;n++)ee[n]=Q(n)?1:0,fe[n]=Q(n);function z(n,f){this.input=n,this.filename=f.filename||null,this.schema=f.schema||i,this.onWarning=f.onWarning||null,this.legacy=f.legacy||!1,this.json=f.json||!1,this.listener=f.listener||null,this.maxDepth=typeof f.maxDepth=="number"?f.maxDepth:100,this.maxTotalMergeKeys=typeof f.maxTotalMergeKeys=="number"?f.maxTotalMergeKeys:1e4,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=n.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.depth=0,this.totalMergeKeys=0,this.firstTabInLine=-1,this.documents=[],this.anchorMapTransactions=[]}function qe(n,f){let _={name:n.filename,buffer:n.input.slice(0,-1),position:n.position,line:n.line,column:n.position-n.lineStart};return _.snippet=t(_),new e(f,_)}function N(n,f){throw qe(n,f)}function Se(n,f){n.onWarning&&n.onWarning.call(null,qe(n,f))}function pe(n,f,_){let v=n.anchorMapTransactions;if(v.length!==0){let E=v[v.length-1];o.call(E,f)||(E[f]={existed:o.call(n.anchorMap,f),value:n.anchorMap[f]})}n.anchorMap[f]=_}function Ve(n){n.anchorMapTransactions.push(Object.create(null))}function Te(n){let f=n.anchorMapTransactions.pop(),_=n.anchorMapTransactions;if(_.length===0)return;let v=_[_.length-1],E=Object.keys(f);for(let u=0,T=E.length;u<T;u+=1){let b=E[u];o.call(v,b)||(v[b]=f[b])}}function Ge(n){let f=n.anchorMapTransactions.pop(),_=Object.keys(f);for(let v=_.length-1;v>=0;v-=1){let E=f[_[v]];E.existed?n.anchorMap[_[v]]=E.value:delete n.anchorMap[_[v]]}}function Oe(n){return{position:n.position,line:n.line,lineStart:n.lineStart,lineIndent:n.lineIndent,firstTabInLine:n.firstTabInLine,tag:n.tag,anchor:n.anchor,kind:n.kind,result:n.result}}function ue(n,f){n.position=f.position,n.line=f.line,n.lineStart=f.lineStart,n.lineIndent=f.lineIndent,n.firstTabInLine=f.firstTabInLine,n.tag=f.tag,n.anchor=f.anchor,n.kind=f.kind,n.result=f.result}let Ee={YAML:function(f,_,v){f.version!==null&&N(f,"duplication of %YAML directive"),v.length!==1&&N(f,"YAML directive accepts exactly one argument");let E=/^([0-9]+)\.([0-9]+)$/.exec(v[0]);E===null&&N(f,"ill-formed argument of the YAML directive");let u=parseInt(E[1],10),T=parseInt(E[2],10);u!==1&&N(f,"unacceptable YAML version of the document"),f.version=v[0],f.checkLineBreaks=T<2,T!==1&&T!==2&&Se(f,"unsupported YAML version of the document")},TAG:function(f,_,v){let E;v.length!==2&&N(f,"TAG directive accepts exactly two arguments");let u=v[0];E=v[1],V.test(u)||N(f,"ill-formed tag handle (first argument) of the TAG directive"),o.call(f.tagMap,u)&&N(f,'there is a previously declared suffix for "'+u+'" tag handle'),Y.test(E)||N(f,"ill-formed tag prefix (second argument) of the TAG directive");try{E=decodeURIComponent(E)}catch{N(f,"tag prefix is malformed: "+E)}f.tagMap[u]=E}};function re(n,f,_,v){if(f<_){let E=n.input.slice(f,_);if(v)for(let u=0,T=E.length;u<T;u+=1){let b=E.charCodeAt(u);b===9||b>=32&&b<=1114111||N(n,"expected valid JSON character")}else S.test(E)&&N(n,"the stream contains non-printable characters");n.result+=E}}function me(n){n.totalMergeKeys++,n.maxTotalMergeKeys!==-1&&n.totalMergeKeys>n.maxTotalMergeKeys&&N(n,"merge keys exceeded maxTotalMergeKeys ("+n.maxTotalMergeKeys+")")}function Fe(n,f,_,v){r.isObject(_)||N(n,"cannot merge mappings; the provided source object is unacceptable"),me(n);let E=Object.keys(_);for(let u=0,T=E.length;u<T;u+=1){let b=E[u];me(n),o.call(f,b)||(ne(f,b,_[b]),v[b]=!0)}}function le(n,f,_,v,E,u,T,b,x){if(Array.isArray(E)){E=Array.prototype.slice.call(E);for(let C=0,k=E.length;C<k;C+=1)Array.isArray(E[C])&&N(n,"nested arrays are not supported inside keys"),typeof E=="object"&&A(E[C])==="[object Object]"&&(E[C]="[object Object]")}if(typeof E=="object"&&A(E)==="[object Object]"&&(E="[object Object]"),E=String(E),f===null&&(f={}),v==="tag:yaml.org,2002:merge")if(Array.isArray(u)){u.length>100&&N(n,"abnormal merge sequence size");for(let C=0,k=u.length;C<k;C+=1)Fe(n,f,u[C],_)}else Fe(n,f,u,_);else!n.json&&!o.call(_,E)&&o.call(f,E)&&(n.line=T||n.line,n.lineStart=b||n.lineStart,n.position=x||n.position,N(n,"duplicated mapping key")),ne(f,E,u),delete _[E];return f}function _e(n){let f=n.input.charCodeAt(n.position);f===10?n.position++:f===13?(n.position++,n.input.charCodeAt(n.position)===10&&n.position++):N(n,"a line break is expected"),n.line+=1,n.lineStart=n.position,n.firstTabInLine=-1}function J(n,f,_){let v=0,E=n.input.charCodeAt(n.position);for(;E!==0;){for(;R(E);)E===9&&n.firstTabInLine===-1&&(n.firstTabInLine=n.position),E=n.input.charCodeAt(++n.position);if(f&&E===35)do E=n.input.charCodeAt(++n.position);while(E!==10&&E!==13&&E!==0);if(P(E))for(_e(n),E=n.input.charCodeAt(n.position),v++,n.lineIndent=0;E===32;)n.lineIndent++,E=n.input.charCodeAt(++n.position);else break}return _!==-1&&v!==0&&n.lineIndent<_&&Se(n,"deficient indentation"),v}function he(n){let f=n.position,_=n.input.charCodeAt(f);return!!((_===45||_===46)&&_===n.input.charCodeAt(f+1)&&_===n.input.charCodeAt(f+2)&&(f+=3,_=n.input.charCodeAt(f),_===0||I(_)))}function Me(n,f){f===1?n.result+=" ":f>1&&(n.result+=r.repeat(`
|
|
28
|
-
`,f-1))}function ut(n,f,_){let v,E,u,T,b,x,C=n.kind,k=n.result,w=n.input.charCodeAt(n.position);if(I(w)||G(w)||w===35||w===38||w===42||w===33||w===124||w===62||w===39||w===34||w===37||w===64||w===96)return!1;if(w===63||w===45){let O=n.input.charCodeAt(n.position+1);if(I(O)||_&&G(O))return!1}for(n.kind="scalar",n.result="",v=E=n.position,u=!1;w!==0;){if(w===58){let O=n.input.charCodeAt(n.position+1);if(I(O)||_&&G(O))break}else if(w===35){let O=n.input.charCodeAt(n.position-1);if(I(O))break}else{if(n.position===n.lineStart&&he(n)||_&&G(w))break;if(P(w))if(T=n.line,b=n.lineStart,x=n.lineIndent,J(n,!1,-1),n.lineIndent>=f){u=!0,w=n.input.charCodeAt(n.position);continue}else{n.position=E,n.line=T,n.lineStart=b,n.lineIndent=x;break}}u&&(re(n,v,E,!1),Me(n,n.line-T),v=E=n.position,u=!1),R(w)||(E=n.position+1),w=n.input.charCodeAt(++n.position)}return re(n,v,E,!1),n.result?!0:(n.kind=C,n.result=k,!1)}function Qe(n,f){let _,v,E=n.input.charCodeAt(n.position);if(E!==39)return!1;for(n.kind="scalar",n.result="",n.position++,_=v=n.position;(E=n.input.charCodeAt(n.position))!==0;)if(E===39)if(re(n,_,n.position,!0),E=n.input.charCodeAt(++n.position),E===39)_=n.position,n.position++,v=n.position;else return!0;else P(E)?(re(n,_,v,!0),Me(n,J(n,!1,f)),_=v=n.position):n.position===n.lineStart&&he(n)?N(n,"unexpected end of the document within a single quoted scalar"):(n.position++,R(E)||(v=n.position));N(n,"unexpected end of the stream within a single quoted scalar")}function lt(n,f){let _,v,E,u=n.input.charCodeAt(n.position);if(u!==34)return!1;for(n.kind="scalar",n.result="",n.position++,_=v=n.position;(u=n.input.charCodeAt(n.position))!==0;){if(u===34)return re(n,_,n.position,!0),n.position++,!0;if(u===92){if(re(n,_,n.position,!0),u=n.input.charCodeAt(++n.position),P(u))J(n,!1,f);else if(u<256&&ee[u])n.result+=fe[u],n.position++;else if((E=W(u))>0){let T=E,b=0;for(;T>0;T--)u=n.input.charCodeAt(++n.position),(E=H(u))>=0?b=(b<<4)+E:N(n,"expected hexadecimal character");n.result+=te(b),n.position++}else N(n,"unknown escape sequence");_=v=n.position}else P(u)?(re(n,_,v,!0),Me(n,J(n,!1,f)),_=v=n.position):n.position===n.lineStart&&he(n)?N(n,"unexpected end of the document within a double quoted scalar"):(n.position++,R(u)||(v=n.position))}N(n,"unexpected end of the stream within a double quoted scalar")}function et(n,f){let _=!0,v,E,u,T=n.tag,b,x=n.anchor,C,k,w,O,L=Object.create(null),D,F,j,q=n.input.charCodeAt(n.position);if(q===91)C=93,O=!1,b=[];else if(q===123)C=125,O=!0,b={};else return!1;for(n.anchor!==null&&pe(n,n.anchor,b),q=n.input.charCodeAt(++n.position);q!==0;){if(J(n,!0,f),q=n.input.charCodeAt(n.position),q===C)return n.position++,n.tag=T,n.anchor=x,n.kind=O?"mapping":"sequence",n.result=b,!0;if(_?q===44&&N(n,"expected the node content, but found ','"):N(n,"missed comma between flow collection entries"),F=D=j=null,k=w=!1,q===63){let Ce=n.input.charCodeAt(n.position+1);I(Ce)&&(k=w=!0,n.position++,J(n,!0,f))}v=n.line,E=n.lineStart,u=n.position,Re(n,f,s,!1,!0),F=n.tag,D=n.result,J(n,!0,f),q=n.input.charCodeAt(n.position),(w||n.line===v)&&q===58&&(k=!0,q=n.input.charCodeAt(++n.position),J(n,!0,f),Re(n,f,s,!1,!0),j=n.result),O?le(n,b,L,F,D,j,v,E,u):k?b.push(le(n,null,L,F,D,j,v,E,u)):b.push(D),J(n,!0,f),q=n.input.charCodeAt(n.position),q===44?(_=!0,q=n.input.charCodeAt(++n.position)):_=!1}N(n,"unexpected end of the stream within a flow collection")}function Pe(n,f){let _,v=d,E=!1,u=!1,T=f,b=0,x=!1,C,k=n.input.charCodeAt(n.position);if(k===124)_=!1;else if(k===62)_=!0;else return!1;for(n.kind="scalar",n.result="";k!==0;)if(k=n.input.charCodeAt(++n.position),k===43||k===45)d===v?v=k===43?g:p:N(n,"repeat of a chomping mode identifier");else if((C=X(k))>=0)C===0?N(n,"bad explicit indentation width of a block scalar; it cannot be less than one"):u?N(n,"repeat of an indentation width identifier"):(T=f+C-1,u=!0);else break;if(R(k)){do k=n.input.charCodeAt(++n.position);while(R(k));if(k===35)do k=n.input.charCodeAt(++n.position);while(!P(k)&&k!==0)}for(;k!==0;){for(_e(n),n.lineIndent=0,k=n.input.charCodeAt(n.position);(!u||n.lineIndent<T)&&k===32;)n.lineIndent++,k=n.input.charCodeAt(++n.position);if(!u&&n.lineIndent>T&&(T=n.lineIndent),P(k)){b++;continue}if(!u&&T===0&&N(n,"missing indentation for block scalar"),n.lineIndent<T){v===g?n.result+=r.repeat(`
|
|
29
|
-
`,E?1+b:b):v===d&&E&&(n.result+=`
|
|
30
|
-
`);break}_?R(k)?(x=!0,n.result+=r.repeat(`
|
|
31
|
-
`,E?1+b:b)):x?(x=!1,n.result+=r.repeat(`
|
|
32
|
-
`,b+1)):b===0?E&&(n.result+=" "):n.result+=r.repeat(`
|
|
33
|
-
`,b):n.result+=r.repeat(`
|
|
34
|
-
`,E?1+b:b),E=!0,u=!0,b=0;let w=n.position;for(;!P(k)&&k!==0;)k=n.input.charCodeAt(++n.position);re(n,w,n.position,!1)}return!0}function Be(n,f){let _=n.tag,v=n.anchor,E=[],u=!1;if(n.firstTabInLine!==-1)return!1;n.anchor!==null&&pe(n,n.anchor,E);let T=n.input.charCodeAt(n.position);for(;T!==0&&(n.firstTabInLine!==-1&&(n.position=n.firstTabInLine,N(n,"tab characters must not be used in indentation")),T===45);){let b=n.input.charCodeAt(n.position+1);if(!I(b))break;if(u=!0,n.position++,J(n,!0,-1)&&n.lineIndent<=f){E.push(null),T=n.input.charCodeAt(n.position);continue}let x=n.line;if(Re(n,f,c,!1,!0),E.push(n.result),J(n,!0,-1),T=n.input.charCodeAt(n.position),(n.line===x||n.lineIndent>f)&&T!==0)N(n,"bad indentation of a sequence entry");else if(n.lineIndent<f)break}return u?(n.tag=_,n.anchor=v,n.kind="sequence",n.result=E,!0):!1}function U(n,f,_){let v,E,u,T,b=n.tag,x=n.anchor,C={},k=Object.create(null),w=null,O=null,L=null,D=!1,F=!1;if(n.firstTabInLine!==-1)return!1;n.anchor!==null&&pe(n,n.anchor,C);let j=n.input.charCodeAt(n.position);for(;j!==0;){!D&&n.firstTabInLine!==-1&&(n.position=n.firstTabInLine,N(n,"tab characters must not be used in indentation"));let q=n.input.charCodeAt(n.position+1),Ce=n.line;if((j===63||j===58)&&I(q))j===63?(D&&(le(n,C,k,w,O,null,E,u,T),w=O=L=null),F=!0,D=!0,v=!0):D?(D=!1,v=!0):N(n,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),n.position+=1,j=q;else{if(E=n.line,u=n.lineStart,T=n.position,!Re(n,_,a,!1,!0))break;if(n.line===Ce){for(j=n.input.charCodeAt(n.position);R(j);)j=n.input.charCodeAt(++n.position);if(j===58)j=n.input.charCodeAt(++n.position),I(j)||N(n,"a whitespace character is expected after the key-value separator within a block mapping"),D&&(le(n,C,k,w,O,null,E,u,T),w=O=L=null),F=!0,D=!1,v=!1,w=n.tag,O=n.result;else if(F)N(n,"can not read an implicit mapping pair; a colon is missed");else return n.tag=b,n.anchor=x,!0}else if(F)N(n,"can not read a block mapping entry; a multiline key may not be an implicit key");else return n.tag=b,n.anchor=x,!0}if((n.line===Ce||n.lineIndent>f)&&(D&&(E=n.line,u=n.lineStart,T=n.position),Re(n,f,h,!0,v)&&(D?O=n.result:L=n.result),D||(le(n,C,k,w,O,L,E,u,T),w=O=L=null),J(n,!0,-1),j=n.input.charCodeAt(n.position)),(n.line===Ce||n.lineIndent>f)&&j!==0)N(n,"bad indentation of a mapping entry");else if(n.lineIndent<f)break}return D&&le(n,C,k,w,O,null,E,u,T),F&&(n.tag=b,n.anchor=x,n.kind="mapping",n.result=C),F}function We(n){let f=!1,_=!1,v,E,u=n.input.charCodeAt(n.position);if(u!==33)return!1;n.tag!==null&&N(n,"duplication of a tag property"),u=n.input.charCodeAt(++n.position),u===60?(f=!0,u=n.input.charCodeAt(++n.position)):u===33?(_=!0,v="!!",u=n.input.charCodeAt(++n.position)):v="!";let T=n.position;if(f){do u=n.input.charCodeAt(++n.position);while(u!==0&&u!==62);n.position<n.length?(E=n.input.slice(T,n.position),u=n.input.charCodeAt(++n.position)):N(n,"unexpected end of the stream within a verbatim tag")}else{for(;u!==0&&!I(u);)u===33&&(_?N(n,"tag suffix cannot contain exclamation marks"):(v=n.input.slice(T-1,n.position+1),V.test(v)||N(n,"named tag handle cannot contain such characters"),_=!0,T=n.position+1)),u=n.input.charCodeAt(++n.position);E=n.input.slice(T,n.position),B.test(E)&&N(n,"tag suffix cannot contain flow indicator characters")}E&&!Y.test(E)&&N(n,"tag name cannot contain such characters: "+E);try{E=decodeURIComponent(E)}catch{N(n,"tag name is malformed: "+E)}return f?n.tag=E:o.call(n.tagMap,v)?n.tag=n.tagMap[v]+E:v==="!"?n.tag="!"+E:v==="!!"?n.tag="tag:yaml.org,2002:"+E:N(n,'undeclared tag handle "'+v+'"'),!0}function tt(n){let f=n.input.charCodeAt(n.position);if(f!==38)return!1;n.anchor!==null&&N(n,"duplication of an anchor property"),f=n.input.charCodeAt(++n.position);let _=n.position;for(;f!==0&&!I(f)&&!G(f);)f=n.input.charCodeAt(++n.position);return n.position===_&&N(n,"name of an anchor node must contain at least one character"),n.anchor=n.input.slice(_,n.position),!0}function ct(n){let f=n.input.charCodeAt(n.position);if(f!==42)return!1;f=n.input.charCodeAt(++n.position);let _=n.position;for(;f!==0&&!I(f)&&!G(f);)f=n.input.charCodeAt(++n.position);n.position===_&&N(n,"name of an alias node must contain at least one character");let v=n.input.slice(_,n.position);return o.call(n.anchorMap,v)||N(n,'unidentified alias "'+v+'"'),n.result=n.anchorMap[v],J(n,!0,-1),!0}function dt(n,f,_,v){let E=Oe(n);return Ve(n),ue(n,f),n.tag=null,n.anchor=null,n.kind=null,n.result=null,U(n,_,v)&&n.kind==="mapping"?(Te(n),!0):(Ge(n),ue(n,E),!1)}function Re(n,f,_,v,E){let u,T,b=1,x=!1,C=!1,k=null,w,O,L;n.depth>=n.maxDepth&&N(n,"nesting exceeded maxDepth ("+n.maxDepth+")"),n.depth+=1,n.listener!==null&&n.listener("open",n),n.tag=null,n.anchor=null,n.kind=null,n.result=null;let D=u=T=h===_||c===_;if(v&&J(n,!0,-1)&&(x=!0,n.lineIndent>f?b=1:n.lineIndent===f?b=0:n.lineIndent<f&&(b=-1)),b===1)for(;;){let F=n.input.charCodeAt(n.position),j=Oe(n);if(x&&(F===33&&n.tag!==null||F===38&&n.anchor!==null)||!We(n)&&!tt(n))break;k===null&&(k=j),J(n,!0,-1)?(x=!0,T=D,n.lineIndent>f?b=1:n.lineIndent===f?b=0:n.lineIndent<f&&(b=-1)):T=!1}if(T&&(T=x||E),b===1||h===_)if(s===_||a===_?O=f:O=f+1,L=n.position-n.lineStart,b===1)if(T&&(Be(n,L)||U(n,L,O))||et(n,O))C=!0;else{let F=n.input.charCodeAt(n.position);k!==null&&D&&!T&&F!==124&&F!==62&&dt(n,k,k.position-k.lineStart,O)||u&&Pe(n,O)||Qe(n,O)||lt(n,O)?C=!0:ct(n)?(C=!0,(n.tag!==null||n.anchor!==null)&&N(n,"alias node should not have any properties")):ut(n,O,s===_)&&(C=!0,n.tag===null&&(n.tag="?")),n.anchor!==null&&pe(n,n.anchor,n.result)}else b===0&&(C=T&&Be(n,L));if(n.tag===null)n.anchor!==null&&pe(n,n.anchor,n.result);else if(n.tag==="?"){n.result!==null&&n.kind!=="scalar"&&N(n,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+n.kind+'"');for(let F=0,j=n.implicitTypes.length;F<j;F+=1)if(w=n.implicitTypes[F],w.resolve(n.result)){n.result=w.construct(n.result),n.tag=w.tag,n.anchor!==null&&pe(n,n.anchor,n.result);break}}else if(n.tag!=="!"){if(o.call(n.typeMap[n.kind||"fallback"],n.tag))w=n.typeMap[n.kind||"fallback"][n.tag];else{w=null;let F=n.typeMap.multi[n.kind||"fallback"];for(let j=0,q=F.length;j<q;j+=1)if(n.tag.slice(0,F[j].tag.length)===F[j].tag){w=F[j];break}}w||N(n,"unknown tag !<"+n.tag+">"),n.result!==null&&w.kind!==n.kind&&N(n,"unacceptable node kind for !<"+n.tag+'> tag; it should be "'+w.kind+'", not "'+n.kind+'"'),w.resolve(n.result,n.tag)?(n.result=w.construct(n.result,n.tag),n.anchor!==null&&pe(n,n.anchor,n.result)):N(n,"cannot resolve a node with !<"+n.tag+"> explicit tag")}return n.listener!==null&&n.listener("close",n),n.depth-=1,n.tag!==null||n.anchor!==null||C}function Et(n){let f=n.position,_=!1,v;for(n.version=null,n.checkLineBreaks=n.legacy,n.tagMap=Object.create(null),n.anchorMap=Object.create(null);(v=n.input.charCodeAt(n.position))!==0&&(J(n,!0,-1),v=n.input.charCodeAt(n.position),!(n.lineIndent>0||v!==37));){_=!0,v=n.input.charCodeAt(++n.position);let E=n.position;for(;v!==0&&!I(v);)v=n.input.charCodeAt(++n.position);let u=n.input.slice(E,n.position),T=[];for(u.length<1&&N(n,"directive name must not be less than one character in length");v!==0;){for(;R(v);)v=n.input.charCodeAt(++n.position);if(v===35){do v=n.input.charCodeAt(++n.position);while(v!==0&&!P(v));break}if(P(v))break;for(E=n.position;v!==0&&!I(v);)v=n.input.charCodeAt(++n.position);T.push(n.input.slice(E,n.position))}v!==0&&_e(n),o.call(Ee,u)?Ee[u](n,u,T):Se(n,'unknown document directive "'+u+'"')}if(J(n,!0,-1),n.lineIndent===0&&n.input.charCodeAt(n.position)===45&&n.input.charCodeAt(n.position+1)===45&&n.input.charCodeAt(n.position+2)===45?(n.position+=3,J(n,!0,-1)):_&&N(n,"directives end mark is expected"),Re(n,n.lineIndent-1,h,!1,!0),J(n,!0,-1),n.checkLineBreaks&&$.test(n.input.slice(f,n.position))&&Se(n,"non-ASCII line breaks are interpreted as content"),n.documents.push(n.result),n.position===n.lineStart&&he(n)){n.input.charCodeAt(n.position)===46&&(n.position+=3,J(n,!0,-1));return}n.position<n.length-1&&N(n,"end of the stream or a document separator is expected")}function l(n,f){n=String(n),f=f||{},n.length!==0&&(n.charCodeAt(n.length-1)!==10&&n.charCodeAt(n.length-1)!==13&&(n+=`
|
|
35
|
-
`),n.charCodeAt(0)===65279&&(n=n.slice(1)));let _=new z(n,f),v=n.indexOf("\0");for(v!==-1&&(_.position=v,N(_,"null byte is not allowed in input")),_.input+="\0";_.input.charCodeAt(_.position)===32;)_.lineIndent+=1,_.position+=1;for(;_.position<_.length-1;)Et(_);return _.documents}function m(n,f,_){f!==null&&typeof f=="object"&&typeof _>"u"&&(_=f,f=null);let v=l(n,_);if(typeof f!="function")return v;for(let E=0,u=v.length;E<u;E+=1)f(v[E])}function y(n,f){let _=l(n,f);if(_.length!==0){if(_.length===1)return _[0];throw new e("expected a single document in the stream, but found more")}}return Bt.loadAll=m,Bt.load=y,Bt}function ol(){if(Ao)return er;Ao=1;let r=Ct(),e=kt(),t=tr(),i=Object.prototype.toString,o=Object.prototype.hasOwnProperty,s=65279,a=9,c=10,h=13,d=32,p=33,g=34,S=35,$=37,B=38,V=39,Y=42,A=44,P=45,R=58,I=61,G=62,H=63,W=64,X=91,Q=93,te=96,ne=123,ee=124,fe=125,z={};z[0]="\\0",z[7]="\\a",z[8]="\\b",z[9]="\\t",z[10]="\\n",z[11]="\\v",z[12]="\\f",z[13]="\\r",z[27]="\\e",z[34]='\\"',z[92]="\\\\",z[133]="\\N",z[160]="\\_",z[8232]="\\L",z[8233]="\\P";let qe=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],N=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Se(u,T){if(T===null)return{};let b={},x=Object.keys(T);for(let C=0,k=x.length;C<k;C+=1){let w=x[C],O=String(T[w]);w.slice(0,2)==="!!"&&(w="tag:yaml.org,2002:"+w.slice(2));let L=u.compiledTypeMap.fallback[w];L&&o.call(L.styleAliases,O)&&(O=L.styleAliases[O]),b[w]=O}return b}function pe(u){let T,b,x=u.toString(16).toUpperCase();if(u<=255)T="x",b=2;else if(u<=65535)T="u",b=4;else if(u<=4294967295)T="U",b=8;else throw new e("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+T+r.repeat("0",b-x.length)+x}let Ve=1,Te=2;function Ge(u){this.schema=u.schema||t,this.indent=Math.max(1,u.indent||2),this.noArrayIndent=u.noArrayIndent||!1,this.skipInvalid=u.skipInvalid||!1,this.flowLevel=r.isNothing(u.flowLevel)?-1:u.flowLevel,this.styleMap=Se(this.schema,u.styles||null),this.sortKeys=u.sortKeys||!1,this.lineWidth=u.lineWidth||80,this.noRefs=u.noRefs||!1,this.noCompatMode=u.noCompatMode||!1,this.condenseFlow=u.condenseFlow||!1,this.quotingType=u.quotingType==='"'?Te:Ve,this.forceQuotes=u.forceQuotes||!1,this.replacer=typeof u.replacer=="function"?u.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Oe(u,T){let b=r.repeat(" ",T),x=0,C="",k=u.length;for(;x<k;){let w,O=u.indexOf(`
|
|
36
|
-
`,x);O===-1?(w=u.slice(x),x=k):(w=u.slice(x,O+1),x=O+1),w.length&&w!==`
|
|
37
|
-
`&&(C+=b),C+=w}return C}function ue(u,T){return`
|
|
38
|
-
`+r.repeat(" ",u.indent*T)}function Ee(u,T){for(let b=0,x=u.implicitTypes.length;b<x;b+=1)if(u.implicitTypes[b].resolve(T))return!0;return!1}function re(u){return u===d||u===a}function me(u){return u>=32&&u<=126||u>=161&&u<=55295&&u!==8232&&u!==8233||u>=57344&&u<=65533&&u!==s||u>=65536&&u<=1114111}function Fe(u){return me(u)&&u!==s&&u!==h&&u!==c}function le(u,T,b){let x=Fe(u),C=x&&!re(u);return(b?x:x&&u!==A&&u!==X&&u!==Q&&u!==ne&&u!==fe)&&u!==S&&!(T===R&&!C)||Fe(T)&&!re(T)&&u===S||T===R&&C}function _e(u){return me(u)&&u!==s&&!re(u)&&u!==P&&u!==H&&u!==R&&u!==A&&u!==X&&u!==Q&&u!==ne&&u!==fe&&u!==S&&u!==B&&u!==Y&&u!==p&&u!==ee&&u!==I&&u!==G&&u!==V&&u!==g&&u!==$&&u!==W&&u!==te}function J(u){return!re(u)&&u!==R}function he(u,T){let b=u.charCodeAt(T),x;return b>=55296&&b<=56319&&T+1<u.length&&(x=u.charCodeAt(T+1),x>=56320&&x<=57343)?(b-55296)*1024+x-56320+65536:b}function Me(u){return/^\n* /.test(u)}let ut=1,Qe=2,lt=3,et=4,Pe=5;function Be(u,T,b,x,C,k,w,O){let L,D=0,F=null,j=!1,q=!1,Ce=x!==-1,De=-1,$e=_e(he(u,0))&&J(he(u,u.length-1));if(T||w)for(L=0;L<u.length;D>=65536?L+=2:L++){if(D=he(u,L),!me(D))return Pe;$e=$e&&le(D,F,O),F=D}else{for(L=0;L<u.length;D>=65536?L+=2:L++){if(D=he(u,L),D===c)j=!0,Ce&&(q=q||L-De-1>x&&u[De+1]!==" ",De=L);else if(!me(D))return Pe;$e=$e&&le(D,F,O),F=D}q=q||Ce&&L-De-1>x&&u[De+1]!==" "}return!j&&!q?$e&&!w&&!C(u)?ut:k===Te?Pe:Qe:b>9&&Me(u)?Pe:w?k===Te?Pe:Qe:q?et:lt}function U(u,T,b,x,C){u.dump=(function(){if(T.length===0)return u.quotingType===Te?'""':"''";if(!u.noCompatMode&&(qe.indexOf(T)!==-1||N.test(T)))return u.quotingType===Te?'"'+T+'"':"'"+T+"'";let k=u.indent*Math.max(1,b),w=u.lineWidth===-1?-1:Math.max(Math.min(u.lineWidth,40),u.lineWidth-k),O=x||u.flowLevel>-1&&b>=u.flowLevel;function L(D){return Ee(u,D)}switch(Be(T,O,u.indent,w,L,u.quotingType,u.forceQuotes&&!x,C)){case ut:return T;case Qe:return"'"+T.replace(/'/g,"''")+"'";case lt:return"|"+We(T,u.indent)+tt(Oe(T,k));case et:return">"+We(T,u.indent)+tt(Oe(ct(T,w),k));case Pe:return'"'+Re(T)+'"';default:throw new e("impossible error: invalid scalar style")}})()}function We(u,T){let b=Me(u)?String(T):"",x=u[u.length-1]===`
|
|
39
|
-
`,k=x&&(u[u.length-2]===`
|
|
40
|
-
`||u===`
|
|
41
|
-
`)?"+":x?"":"-";return b+k+`
|
|
42
|
-
`}function tt(u){return u[u.length-1]===`
|
|
43
|
-
`?u.slice(0,-1):u}function ct(u,T){let b=/(\n+)([^\n]*)/g,x=(function(){let O=u.indexOf(`
|
|
44
|
-
`);return O=O!==-1?O:u.length,b.lastIndex=O,dt(u.slice(0,O),T)})(),C=u[0]===`
|
|
45
|
-
`||u[0]===" ",k,w;for(;w=b.exec(u);){let O=w[1],L=w[2];k=L[0]===" ",x+=O+(!C&&!k&&L!==""?`
|
|
46
|
-
`:"")+dt(L,T),C=k}return x}function dt(u,T){if(u===""||u[0]===" ")return u;let b=/ [^ ]/g,x,C=0,k,w=0,O=0,L="";for(;x=b.exec(u);)O=x.index,O-C>T&&(k=w>C?w:O,L+=`
|
|
47
|
-
`+u.slice(C,k),C=k+1),w=O;return L+=`
|
|
48
|
-
`,u.length-C>T&&w>C?L+=u.slice(C,w)+`
|
|
49
|
-
`+u.slice(w+1):L+=u.slice(C),L.slice(1)}function Re(u){let T="",b=0;for(let x=0;x<u.length;b>=65536?x+=2:x++){b=he(u,x);let C=z[b];!C&&me(b)?(T+=u[x],b>=65536&&(T+=u[x+1])):T+=C||pe(b)}return T}function Et(u,T,b){let x="",C=u.tag;for(let k=0,w=b.length;k<w;k+=1){let O=b[k];u.replacer&&(O=u.replacer.call(b,String(k),O)),(f(u,T,O,!1,!1)||typeof O>"u"&&f(u,T,null,!1,!1))&&(x!==""&&(x+=","+(u.condenseFlow?"":" ")),x+=u.dump)}u.tag=C,u.dump="["+x+"]"}function l(u,T,b,x){let C="",k=u.tag;for(let w=0,O=b.length;w<O;w+=1){let L=b[w];u.replacer&&(L=u.replacer.call(b,String(w),L)),(f(u,T+1,L,!0,!0,!1,!0)||typeof L>"u"&&f(u,T+1,null,!0,!0,!1,!0))&&((!x||C!=="")&&(C+=ue(u,T)),u.dump&&c===u.dump.charCodeAt(0)?C+="-":C+="- ",C+=u.dump)}u.tag=k,u.dump=C||"[]"}function m(u,T,b){let x="",C=u.tag,k=Object.keys(b);for(let w=0,O=k.length;w<O;w+=1){let L="";x!==""&&(L+=", "),u.condenseFlow&&(L+='"');let D=k[w],F=b[D];u.replacer&&(F=u.replacer.call(b,D,F)),f(u,T,D,!1,!1)&&(u.dump.length>1024&&(L+="? "),L+=u.dump+(u.condenseFlow?'"':"")+":"+(u.condenseFlow?"":" "),f(u,T,F,!1,!1)&&(L+=u.dump,x+=L))}u.tag=C,u.dump="{"+x+"}"}function y(u,T,b,x){let C="",k=u.tag,w=Object.keys(b);if(u.sortKeys===!0)w.sort();else if(typeof u.sortKeys=="function")w.sort(u.sortKeys);else if(u.sortKeys)throw new e("sortKeys must be a boolean or a function");for(let O=0,L=w.length;O<L;O+=1){let D="";(!x||C!=="")&&(D+=ue(u,T));let F=w[O],j=b[F];if(u.replacer&&(j=u.replacer.call(b,F,j)),!f(u,T+1,F,!0,!0,!0))continue;let q=u.tag!==null&&u.tag!=="?"||u.dump&&u.dump.length>1024;q&&(u.dump&&c===u.dump.charCodeAt(0)?D+="?":D+="? "),D+=u.dump,q&&(D+=ue(u,T)),f(u,T+1,j,!0,q)&&(u.dump&&c===u.dump.charCodeAt(0)?D+=":":D+=": ",D+=u.dump,C+=D)}u.tag=k,u.dump=C||"{}"}function n(u,T,b){let x=b?u.explicitTypes:u.implicitTypes;for(let C=0,k=x.length;C<k;C+=1){let w=x[C];if((w.instanceOf||w.predicate)&&(!w.instanceOf||typeof T=="object"&&T instanceof w.instanceOf)&&(!w.predicate||w.predicate(T))){if(b?w.multi&&w.representName?u.tag=w.representName(T):u.tag=w.tag:u.tag="?",w.represent){let O=u.styleMap[w.tag]||w.defaultStyle,L;if(i.call(w.represent)==="[object Function]")L=w.represent(T,O);else if(o.call(w.represent,O))L=w.represent[O](T,O);else throw new e("!<"+w.tag+'> tag resolver accepts not "'+O+'" style');u.dump=L}return!0}}return!1}function f(u,T,b,x,C,k,w){u.tag=null,u.dump=b,n(u,b,!1)||n(u,b,!0);let O=i.call(u.dump),L=x;x&&(x=u.flowLevel<0||u.flowLevel>T);let D=O==="[object Object]"||O==="[object Array]",F,j;if(D&&(F=u.duplicates.indexOf(b),j=F!==-1),(u.tag!==null&&u.tag!=="?"||j||u.indent!==2&&T>0)&&(C=!1),j&&u.usedDuplicates[F])u.dump="*ref_"+F;else{if(D&&j&&!u.usedDuplicates[F]&&(u.usedDuplicates[F]=!0),O==="[object Object]")x&&Object.keys(u.dump).length!==0?(y(u,T,u.dump,C),j&&(u.dump="&ref_"+F+u.dump)):(m(u,T,u.dump),j&&(u.dump="&ref_"+F+" "+u.dump));else if(O==="[object Array]")x&&u.dump.length!==0?(u.noArrayIndent&&!w&&T>0?l(u,T-1,u.dump,C):l(u,T,u.dump,C),j&&(u.dump="&ref_"+F+u.dump)):(Et(u,T,u.dump),j&&(u.dump="&ref_"+F+" "+u.dump));else if(O==="[object String]")u.tag!=="?"&&U(u,u.dump,T,k,L);else{if(O==="[object Undefined]")return!1;if(u.skipInvalid)return!1;throw new e("unacceptable kind of an object to dump "+O)}if(u.tag!==null&&u.tag!=="?"){let q=encodeURI(u.tag[0]==="!"?u.tag.slice(1):u.tag).replace(/!/g,"%21");u.tag[0]==="!"?q="!"+q:q.slice(0,18)==="tag:yaml.org,2002:"?q="!!"+q.slice(18):q="!<"+q+">",u.dump=q+" "+u.dump}}return!0}function _(u,T){let b=[],x=[];v(u,b,x);let C=x.length;for(let k=0;k<C;k+=1)T.duplicates.push(b[x[k]]);T.usedDuplicates=new Array(C)}function v(u,T,b){if(u!==null&&typeof u=="object"){let x=T.indexOf(u);if(x!==-1)b.indexOf(x)===-1&&b.push(x);else if(T.push(u),Array.isArray(u))for(let C=0,k=u.length;C<k;C+=1)v(u[C],T,b);else{let C=Object.keys(u);for(let k=0,w=C.length;k<w;k+=1)v(u[C[k]],T,b)}}}function E(u,T){T=T||{};let b=new Ge(T);b.noRefs||_(u,b);let x=u;return b.replacer&&(x=b.replacer.call({"":x},"",x)),f(b,0,x,!0,!0)?b.dump+`
|
|
50
|
-
`:""}return er.dump=E,er}function sl(){if(Oo)return ae;Oo=1;let r=il(),e=ol();function t(i,o){return function(){throw new Error("Function yaml."+i+" is removed in js-yaml 4. Use yaml."+o+" instead, which is now safe by default.")}}return ae.Type=de(),ae.Schema=Po(),ae.FAILSAFE_SCHEMA=Lo(),ae.JSON_SCHEMA=Ho(),ae.CORE_SCHEMA=Uo(),ae.DEFAULT_SCHEMA=tr(),ae.load=r.load,ae.loadAll=r.loadAll,ae.dump=e.dump,ae.YAMLException=kt(),ae.types={binary:Vo(),float:$o(),map:No(),null:Fo(),pairs:Bo(),set:Wo(),timestamp:jo(),bool:Mo(),int:Do(),merge:qo(),omap:Go(),seq:Io(),str:Ro()},ae.safeLoad=t("safeLoad","load"),ae.safeLoadAll=t("safeLoadAll","loadAll"),ae.safeDump=t("safeDump","dump"),ae}var ae,Bt,Xe,io,Nn,oo,Ln,so,Fn,ao,Mn,uo,Dn,lo,$n,co,Hn,fo,Un,po,jn,mo,qn,ho,Vn,go,Gn,yo,Bn,_o,Wn,To,Yn,Eo,zn,bo,Kn,vo,Jn,xo,Xn,wo,Zn,So,Qn,Co,ko,er,Ao,Oo,al,Yo,ul,ll,cl,dl,fl,pl,ml,hl,gl,yl,_l,Tl,El,bl,Ko=ke(()=>{"use strict";ae={},Bt={},Xe={};er={};al=sl(),Yo=nl(al),{Type:ul,Schema:ll,FAILSAFE_SCHEMA:cl,JSON_SCHEMA:dl,CORE_SCHEMA:fl,DEFAULT_SCHEMA:pl,load:ml,loadAll:hl,dump:gl,YAMLException:yl,types:_l,safeLoad:Tl,safeLoadAll:El,safeDump:bl}=Yo});var Jo=Z(Wt=>{"use strict";(function(r){"use strict";function e(l){return l!==null?Object.prototype.toString.call(l)==="[object Array]":!1}function t(l){return l!==null?Object.prototype.toString.call(l)==="[object Object]":!1}function i(l,m){if(l===m)return!0;var y=Object.prototype.toString.call(l);if(y!==Object.prototype.toString.call(m))return!1;if(e(l)===!0){if(l.length!==m.length)return!1;for(var n=0;n<l.length;n++)if(i(l[n],m[n])===!1)return!1;return!0}if(t(l)===!0){var f={};for(var _ in l)if(hasOwnProperty.call(l,_)){if(i(l[_],m[_])===!1)return!1;f[_]=!0}for(var v in m)if(hasOwnProperty.call(m,v)&&f[v]!==!0)return!1;return!0}return!1}function o(l){if(l===""||l===!1||l===null)return!0;if(e(l)&&l.length===0)return!0;if(t(l)){for(var m in l)if(l.hasOwnProperty(m))return!1;return!0}else return!1}function s(l){for(var m=Object.keys(l),y=[],n=0;n<m.length;n++)y.push(l[m[n]]);return y}function a(l,m){var y={};for(var n in l)y[n]=l[n];for(var f in m)y[f]=m[f];return y}var c;typeof String.prototype.trimLeft=="function"?c=function(l){return l.trimLeft()}:c=function(l){return l.match(/^\s*(.*)/)[1]};var h=0,d=1,p=2,g=3,S=4,$=5,B=6,V=7,Y=8,A=9,P={0:"number",1:"any",2:"string",3:"array",4:"object",5:"boolean",6:"expression",7:"null",8:"Array<number>",9:"Array<string>"},R="EOF",I="UnquotedIdentifier",G="QuotedIdentifier",H="Rbracket",W="Rparen",X="Comma",Q="Colon",te="Rbrace",ne="Number",ee="Current",fe="Expref",z="Pipe",qe="Or",N="And",Se="EQ",pe="GT",Ve="LT",Te="GTE",Ge="LTE",Oe="NE",ue="Flatten",Ee="Star",re="Filter",me="Dot",Fe="Not",le="Lbrace",_e="Lbracket",J="Lparen",he="Literal",Me={".":me,"*":Ee,",":X,":":Q,"{":le,"}":te,"]":H,"(":J,")":W,"@":ee},ut={"<":!0,">":!0,"=":!0,"!":!0},Qe={" ":!0," ":!0,"\n":!0};function lt(l){return l>="a"&&l<="z"||l>="A"&&l<="Z"||l==="_"}function et(l){return l>="0"&&l<="9"||l==="-"}function Pe(l){return l>="a"&&l<="z"||l>="A"&&l<="Z"||l>="0"&&l<="9"||l==="_"}function Be(){}Be.prototype={tokenize:function(l){var m=[];this._current=0;for(var y,n,f;this._current<l.length;)if(lt(l[this._current]))y=this._current,n=this._consumeUnquotedIdentifier(l),m.push({type:I,value:n,start:y});else if(Me[l[this._current]]!==void 0)m.push({type:Me[l[this._current]],value:l[this._current],start:this._current}),this._current++;else if(et(l[this._current]))f=this._consumeNumber(l),m.push(f);else if(l[this._current]==="[")f=this._consumeLBracket(l),m.push(f);else if(l[this._current]==='"')y=this._current,n=this._consumeQuotedIdentifier(l),m.push({type:G,value:n,start:y});else if(l[this._current]==="'")y=this._current,n=this._consumeRawStringLiteral(l),m.push({type:he,value:n,start:y});else if(l[this._current]==="`"){y=this._current;var _=this._consumeLiteral(l);m.push({type:he,value:_,start:y})}else if(ut[l[this._current]]!==void 0)m.push(this._consumeOperator(l));else if(Qe[l[this._current]]!==void 0)this._current++;else if(l[this._current]==="&")y=this._current,this._current++,l[this._current]==="&"?(this._current++,m.push({type:N,value:"&&",start:y})):m.push({type:fe,value:"&",start:y});else if(l[this._current]==="|")y=this._current,this._current++,l[this._current]==="|"?(this._current++,m.push({type:qe,value:"||",start:y})):m.push({type:z,value:"|",start:y});else{var v=new Error("Unknown character:"+l[this._current]);throw v.name="LexerError",v}return m},_consumeUnquotedIdentifier:function(l){var m=this._current;for(this._current++;this._current<l.length&&Pe(l[this._current]);)this._current++;return l.slice(m,this._current)},_consumeQuotedIdentifier:function(l){var m=this._current;this._current++;for(var y=l.length;l[this._current]!=='"'&&this._current<y;){var n=this._current;l[n]==="\\"&&(l[n+1]==="\\"||l[n+1]==='"')?n+=2:n++,this._current=n}return this._current++,JSON.parse(l.slice(m,this._current))},_consumeRawStringLiteral:function(l){var m=this._current;this._current++;for(var y=l.length;l[this._current]!=="'"&&this._current<y;){var n=this._current;l[n]==="\\"&&(l[n+1]==="\\"||l[n+1]==="'")?n+=2:n++,this._current=n}this._current++;var f=l.slice(m+1,this._current-1);return f.replace("\\'","'")},_consumeNumber:function(l){var m=this._current;this._current++;for(var y=l.length;et(l[this._current])&&this._current<y;)this._current++;var n=parseInt(l.slice(m,this._current));return{type:ne,value:n,start:m}},_consumeLBracket:function(l){var m=this._current;return this._current++,l[this._current]==="?"?(this._current++,{type:re,value:"[?",start:m}):l[this._current]==="]"?(this._current++,{type:ue,value:"[]",start:m}):{type:_e,value:"[",start:m}},_consumeOperator:function(l){var m=this._current,y=l[m];if(this._current++,y==="!")return l[this._current]==="="?(this._current++,{type:Oe,value:"!=",start:m}):{type:Fe,value:"!",start:m};if(y==="<")return l[this._current]==="="?(this._current++,{type:Ge,value:"<=",start:m}):{type:Ve,value:"<",start:m};if(y===">")return l[this._current]==="="?(this._current++,{type:Te,value:">=",start:m}):{type:pe,value:">",start:m};if(y==="="&&l[this._current]==="=")return this._current++,{type:Se,value:"==",start:m}},_consumeLiteral:function(l){this._current++;for(var m=this._current,y=l.length,n;l[this._current]!=="`"&&this._current<y;){var f=this._current;l[f]==="\\"&&(l[f+1]==="\\"||l[f+1]==="`")?f+=2:f++,this._current=f}var _=c(l.slice(m,this._current));return _=_.replace("\\`","`"),this._looksLikeJSON(_)?n=JSON.parse(_):n=JSON.parse('"'+_+'"'),this._current++,n},_looksLikeJSON:function(l){var m='[{"',y=["true","false","null"],n="-0123456789";if(l==="")return!1;if(m.indexOf(l[0])>=0)return!0;if(y.indexOf(l)>=0)return!0;if(n.indexOf(l[0])>=0)try{return JSON.parse(l),!0}catch{return!1}else return!1}};var U={};U[R]=0,U[I]=0,U[G]=0,U[H]=0,U[W]=0,U[X]=0,U[te]=0,U[ne]=0,U[ee]=0,U[fe]=0,U[z]=1,U[qe]=2,U[N]=3,U[Se]=5,U[pe]=5,U[Ve]=5,U[Te]=5,U[Ge]=5,U[Oe]=5,U[ue]=9,U[Ee]=20,U[re]=21,U[me]=40,U[Fe]=45,U[le]=50,U[_e]=55,U[J]=60;function We(){}We.prototype={parse:function(l){this._loadTokens(l),this.index=0;var m=this.expression(0);if(this._lookahead(0)!==R){var y=this._lookaheadToken(0),n=new Error("Unexpected token type: "+y.type+", value: "+y.value);throw n.name="ParserError",n}return m},_loadTokens:function(l){var m=new Be,y=m.tokenize(l);y.push({type:R,value:"",start:l.length}),this.tokens=y},expression:function(l){var m=this._lookaheadToken(0);this._advance();for(var y=this.nud(m),n=this._lookahead(0);l<U[n];)this._advance(),y=this.led(n,y),n=this._lookahead(0);return y},_lookahead:function(l){return this.tokens[this.index+l].type},_lookaheadToken:function(l){return this.tokens[this.index+l]},_advance:function(){this.index++},nud:function(l){var m,y,n;switch(l.type){case he:return{type:"Literal",value:l.value};case I:return{type:"Field",name:l.value};case G:var f={type:"Field",name:l.value};if(this._lookahead(0)===J)throw new Error("Quoted identifier not allowed for function names.");return f;case Fe:return y=this.expression(U.Not),{type:"NotExpression",children:[y]};case Ee:return m={type:"Identity"},y=null,this._lookahead(0)===H?y={type:"Identity"}:y=this._parseProjectionRHS(U.Star),{type:"ValueProjection",children:[m,y]};case re:return this.led(l.type,{type:"Identity"});case le:return this._parseMultiselectHash();case ue:return m={type:ue,children:[{type:"Identity"}]},y=this._parseProjectionRHS(U.Flatten),{type:"Projection",children:[m,y]};case _e:return this._lookahead(0)===ne||this._lookahead(0)===Q?(y=this._parseIndexExpression(),this._projectIfSlice({type:"Identity"},y)):this._lookahead(0)===Ee&&this._lookahead(1)===H?(this._advance(),this._advance(),y=this._parseProjectionRHS(U.Star),{type:"Projection",children:[{type:"Identity"},y]}):this._parseMultiselectList();case ee:return{type:ee};case fe:return n=this.expression(U.Expref),{type:"ExpressionReference",children:[n]};case J:for(var _=[];this._lookahead(0)!==W;)this._lookahead(0)===ee?(n={type:ee},this._advance()):n=this.expression(0),_.push(n);return this._match(W),_[0];default:this._errorToken(l)}},led:function(l,m){var y;switch(l){case me:var n=U.Dot;return this._lookahead(0)!==Ee?(y=this._parseDotRHS(n),{type:"Subexpression",children:[m,y]}):(this._advance(),y=this._parseProjectionRHS(n),{type:"ValueProjection",children:[m,y]});case z:return y=this.expression(U.Pipe),{type:z,children:[m,y]};case qe:return y=this.expression(U.Or),{type:"OrExpression",children:[m,y]};case N:return y=this.expression(U.And),{type:"AndExpression",children:[m,y]};case J:for(var f=m.name,_=[],v,E;this._lookahead(0)!==W;)this._lookahead(0)===ee?(v={type:ee},this._advance()):v=this.expression(0),this._lookahead(0)===X&&this._match(X),_.push(v);return this._match(W),E={type:"Function",name:f,children:_},E;case re:var u=this.expression(0);return this._match(H),this._lookahead(0)===ue?y={type:"Identity"}:y=this._parseProjectionRHS(U.Filter),{type:"FilterProjection",children:[m,y,u]};case ue:var T={type:ue,children:[m]},b=this._parseProjectionRHS(U.Flatten);return{type:"Projection",children:[T,b]};case Se:case Oe:case pe:case Te:case Ve:case Ge:return this._parseComparator(m,l);case _e:var x=this._lookaheadToken(0);return x.type===ne||x.type===Q?(y=this._parseIndexExpression(),this._projectIfSlice(m,y)):(this._match(Ee),this._match(H),y=this._parseProjectionRHS(U.Star),{type:"Projection",children:[m,y]});default:this._errorToken(this._lookaheadToken(0))}},_match:function(l){if(this._lookahead(0)===l)this._advance();else{var m=this._lookaheadToken(0),y=new Error("Expected "+l+", got: "+m.type);throw y.name="ParserError",y}},_errorToken:function(l){var m=new Error("Invalid token ("+l.type+'): "'+l.value+'"');throw m.name="ParserError",m},_parseIndexExpression:function(){if(this._lookahead(0)===Q||this._lookahead(1)===Q)return this._parseSliceExpression();var l={type:"Index",value:this._lookaheadToken(0).value};return this._advance(),this._match(H),l},_projectIfSlice:function(l,m){var y={type:"IndexExpression",children:[l,m]};return m.type==="Slice"?{type:"Projection",children:[y,this._parseProjectionRHS(U.Star)]}:y},_parseSliceExpression:function(){for(var l=[null,null,null],m=0,y=this._lookahead(0);y!==H&&m<3;){if(y===Q)m++,this._advance();else if(y===ne)l[m]=this._lookaheadToken(0).value,this._advance();else{var n=this._lookahead(0),f=new Error("Syntax error, unexpected token: "+n.value+"("+n.type+")");throw f.name="Parsererror",f}y=this._lookahead(0)}return this._match(H),{type:"Slice",children:l}},_parseComparator:function(l,m){var y=this.expression(U[m]);return{type:"Comparator",name:m,children:[l,y]}},_parseDotRHS:function(l){var m=this._lookahead(0),y=[I,G,Ee];if(y.indexOf(m)>=0)return this.expression(l);if(m===_e)return this._match(_e),this._parseMultiselectList();if(m===le)return this._match(le),this._parseMultiselectHash()},_parseProjectionRHS:function(l){var m;if(U[this._lookahead(0)]<10)m={type:"Identity"};else if(this._lookahead(0)===_e)m=this.expression(l);else if(this._lookahead(0)===re)m=this.expression(l);else if(this._lookahead(0)===me)this._match(me),m=this._parseDotRHS(l);else{var y=this._lookaheadToken(0),n=new Error("Sytanx error, unexpected token: "+y.value+"("+y.type+")");throw n.name="ParserError",n}return m},_parseMultiselectList:function(){for(var l=[];this._lookahead(0)!==H;){var m=this.expression(0);if(l.push(m),this._lookahead(0)===X&&(this._match(X),this._lookahead(0)===H))throw new Error("Unexpected token Rbracket")}return this._match(H),{type:"MultiSelectList",children:l}},_parseMultiselectHash:function(){for(var l=[],m=[I,G],y,n,f,_;;){if(y=this._lookaheadToken(0),m.indexOf(y.type)<0)throw new Error("Expecting an identifier token, got: "+y.type);if(n=y.value,this._advance(),this._match(Q),f=this.expression(0),_={type:"KeyValuePair",name:n,value:f},l.push(_),this._lookahead(0)===X)this._match(X);else if(this._lookahead(0)===te){this._match(te);break}}return{type:"MultiSelectHash",children:l}}};function tt(l){this.runtime=l}tt.prototype={search:function(l,m){return this.visit(l,m)},visit:function(l,m){var y,n,f,_,v,E,u,T,b,x;switch(l.type){case"Field":return m!==null&&t(m)?(E=m[l.name],E===void 0?null:E):null;case"Subexpression":for(f=this.visit(l.children[0],m),x=1;x<l.children.length;x++)if(f=this.visit(l.children[1],f),f===null)return null;return f;case"IndexExpression":return u=this.visit(l.children[0],m),T=this.visit(l.children[1],u),T;case"Index":if(!e(m))return null;var C=l.value;return C<0&&(C=m.length+C),f=m[C],f===void 0&&(f=null),f;case"Slice":if(!e(m))return null;var k=l.children.slice(0),w=this.computeSliceParams(m.length,k),O=w[0],L=w[1],D=w[2];if(f=[],D>0)for(x=O;x<L;x+=D)f.push(m[x]);else for(x=O;x>L;x+=D)f.push(m[x]);return f;case"Projection":var F=this.visit(l.children[0],m);if(!e(F))return null;for(b=[],x=0;x<F.length;x++)n=this.visit(l.children[1],F[x]),n!==null&&b.push(n);return b;case"ValueProjection":if(F=this.visit(l.children[0],m),!t(F))return null;b=[];var j=s(F);for(x=0;x<j.length;x++)n=this.visit(l.children[1],j[x]),n!==null&&b.push(n);return b;case"FilterProjection":if(F=this.visit(l.children[0],m),!e(F))return null;var q=[],Ce=[];for(x=0;x<F.length;x++)y=this.visit(l.children[2],F[x]),o(y)||q.push(F[x]);for(var De=0;De<q.length;De++)n=this.visit(l.children[1],q[De]),n!==null&&Ce.push(n);return Ce;case"Comparator":switch(_=this.visit(l.children[0],m),v=this.visit(l.children[1],m),l.name){case Se:f=i(_,v);break;case Oe:f=!i(_,v);break;case pe:f=_>v;break;case Te:f=_>=v;break;case Ve:f=_<v;break;case Ge:f=_<=v;break;default:throw new Error("Unknown comparator: "+l.name)}return f;case ue:var $e=this.visit(l.children[0],m);if(!e($e))return null;var Mt=[];for(x=0;x<$e.length;x++)n=$e[x],e(n)?Mt.push.apply(Mt,n):Mt.push(n);return Mt;case"Identity":return m;case"MultiSelectList":if(m===null)return null;for(b=[],x=0;x<l.children.length;x++)b.push(this.visit(l.children[x],m));return b;case"MultiSelectHash":if(m===null)return null;b={};var fn;for(x=0;x<l.children.length;x++)fn=l.children[x],b[fn.name]=this.visit(fn.value,m);return b;case"OrExpression":return y=this.visit(l.children[0],m),o(y)&&(y=this.visit(l.children[1],m)),y;case"AndExpression":return _=this.visit(l.children[0],m),o(_)===!0?_:this.visit(l.children[1],m);case"NotExpression":return _=this.visit(l.children[0],m),o(_);case"Literal":return l.value;case z:return u=this.visit(l.children[0],m),this.visit(l.children[1],u);case ee:return m;case"Function":var Jr=[];for(x=0;x<l.children.length;x++)Jr.push(this.visit(l.children[x],m));return this.runtime.callFunction(l.name,Jr);case"ExpressionReference":var Xr=l.children[0];return Xr.jmespathType=fe,Xr;default:throw new Error("Unknown node type: "+l.type)}},computeSliceParams:function(l,m){var y=m[0],n=m[1],f=m[2],_=[null,null,null];if(f===null)f=1;else if(f===0){var v=new Error("Invalid slice, step cannot be 0");throw v.name="RuntimeError",v}var E=f<0;return y===null?y=E?l-1:0:y=this.capSliceRange(l,y,f),n===null?n=E?-1:l:n=this.capSliceRange(l,n,f),_[0]=y,_[1]=n,_[2]=f,_},capSliceRange:function(l,m,y){return m<0?(m+=l,m<0&&(m=y<0?-1:0)):m>=l&&(m=y<0?l-1:l),m}};function ct(l){this._interpreter=l,this.functionTable={abs:{_func:this._functionAbs,_signature:[{types:[h]}]},avg:{_func:this._functionAvg,_signature:[{types:[Y]}]},ceil:{_func:this._functionCeil,_signature:[{types:[h]}]},contains:{_func:this._functionContains,_signature:[{types:[p,g]},{types:[d]}]},ends_with:{_func:this._functionEndsWith,_signature:[{types:[p]},{types:[p]}]},floor:{_func:this._functionFloor,_signature:[{types:[h]}]},length:{_func:this._functionLength,_signature:[{types:[p,g,S]}]},map:{_func:this._functionMap,_signature:[{types:[B]},{types:[g]}]},max:{_func:this._functionMax,_signature:[{types:[Y,A]}]},merge:{_func:this._functionMerge,_signature:[{types:[S],variadic:!0}]},max_by:{_func:this._functionMaxBy,_signature:[{types:[g]},{types:[B]}]},sum:{_func:this._functionSum,_signature:[{types:[Y]}]},starts_with:{_func:this._functionStartsWith,_signature:[{types:[p]},{types:[p]}]},min:{_func:this._functionMin,_signature:[{types:[Y,A]}]},min_by:{_func:this._functionMinBy,_signature:[{types:[g]},{types:[B]}]},type:{_func:this._functionType,_signature:[{types:[d]}]},keys:{_func:this._functionKeys,_signature:[{types:[S]}]},values:{_func:this._functionValues,_signature:[{types:[S]}]},sort:{_func:this._functionSort,_signature:[{types:[A,Y]}]},sort_by:{_func:this._functionSortBy,_signature:[{types:[g]},{types:[B]}]},join:{_func:this._functionJoin,_signature:[{types:[p]},{types:[A]}]},reverse:{_func:this._functionReverse,_signature:[{types:[p,g]}]},to_array:{_func:this._functionToArray,_signature:[{types:[d]}]},to_string:{_func:this._functionToString,_signature:[{types:[d]}]},to_number:{_func:this._functionToNumber,_signature:[{types:[d]}]},not_null:{_func:this._functionNotNull,_signature:[{types:[d],variadic:!0}]}}}ct.prototype={callFunction:function(l,m){var y=this.functionTable[l];if(y===void 0)throw new Error("Unknown function: "+l+"()");return this._validateArgs(l,m,y._signature),y._func.call(this,m)},_validateArgs:function(l,m,y){var n;if(y[y.length-1].variadic){if(m.length<y.length)throw n=y.length===1?" argument":" arguments",new Error("ArgumentError: "+l+"() takes at least"+y.length+n+" but received "+m.length)}else if(m.length!==y.length)throw n=y.length===1?" argument":" arguments",new Error("ArgumentError: "+l+"() takes "+y.length+n+" but received "+m.length);for(var f,_,v,E=0;E<y.length;E++){v=!1,f=y[E].types,_=this._getTypeName(m[E]);for(var u=0;u<f.length;u++)if(this._typeMatches(_,f[u],m[E])){v=!0;break}if(!v){var T=f.map(function(b){return P[b]}).join(",");throw new Error("TypeError: "+l+"() expected argument "+(E+1)+" to be type "+T+" but received type "+P[_]+" instead.")}}},_typeMatches:function(l,m,y){if(m===d)return!0;if(m===A||m===Y||m===g){if(m===g)return l===g;if(l===g){var n;m===Y?n=h:m===A&&(n=p);for(var f=0;f<y.length;f++)if(!this._typeMatches(this._getTypeName(y[f]),n,y[f]))return!1;return!0}}else return l===m},_getTypeName:function(l){switch(Object.prototype.toString.call(l)){case"[object String]":return p;case"[object Number]":return h;case"[object Array]":return g;case"[object Boolean]":return $;case"[object Null]":return V;case"[object Object]":return l.jmespathType===fe?B:S}},_functionStartsWith:function(l){return l[0].lastIndexOf(l[1])===0},_functionEndsWith:function(l){var m=l[0],y=l[1];return m.indexOf(y,m.length-y.length)!==-1},_functionReverse:function(l){var m=this._getTypeName(l[0]);if(m===p){for(var y=l[0],n="",f=y.length-1;f>=0;f--)n+=y[f];return n}else{var _=l[0].slice(0);return _.reverse(),_}},_functionAbs:function(l){return Math.abs(l[0])},_functionCeil:function(l){return Math.ceil(l[0])},_functionAvg:function(l){for(var m=0,y=l[0],n=0;n<y.length;n++)m+=y[n];return m/y.length},_functionContains:function(l){return l[0].indexOf(l[1])>=0},_functionFloor:function(l){return Math.floor(l[0])},_functionLength:function(l){return t(l[0])?Object.keys(l[0]).length:l[0].length},_functionMap:function(l){for(var m=[],y=this._interpreter,n=l[0],f=l[1],_=0;_<f.length;_++)m.push(y.visit(n,f[_]));return m},_functionMerge:function(l){for(var m={},y=0;y<l.length;y++){var n=l[y];for(var f in n)m[f]=n[f]}return m},_functionMax:function(l){if(l[0].length>0){var m=this._getTypeName(l[0][0]);if(m===h)return Math.max.apply(Math,l[0]);for(var y=l[0],n=y[0],f=1;f<y.length;f++)n.localeCompare(y[f])<0&&(n=y[f]);return n}else return null},_functionMin:function(l){if(l[0].length>0){var m=this._getTypeName(l[0][0]);if(m===h)return Math.min.apply(Math,l[0]);for(var y=l[0],n=y[0],f=1;f<y.length;f++)y[f].localeCompare(n)<0&&(n=y[f]);return n}else return null},_functionSum:function(l){for(var m=0,y=l[0],n=0;n<y.length;n++)m+=y[n];return m},_functionType:function(l){switch(this._getTypeName(l[0])){case h:return"number";case p:return"string";case g:return"array";case S:return"object";case $:return"boolean";case B:return"expref";case V:return"null"}},_functionKeys:function(l){return Object.keys(l[0])},_functionValues:function(l){for(var m=l[0],y=Object.keys(m),n=[],f=0;f<y.length;f++)n.push(m[y[f]]);return n},_functionJoin:function(l){var m=l[0],y=l[1];return y.join(m)},_functionToArray:function(l){return this._getTypeName(l[0])===g?l[0]:[l[0]]},_functionToString:function(l){return this._getTypeName(l[0])===p?l[0]:JSON.stringify(l[0])},_functionToNumber:function(l){var m=this._getTypeName(l[0]),y;return m===h?l[0]:m===p&&(y=+l[0],!isNaN(y))?y:null},_functionNotNull:function(l){for(var m=0;m<l.length;m++)if(this._getTypeName(l[m])!==V)return l[m];return null},_functionSort:function(l){var m=l[0].slice(0);return m.sort(),m},_functionSortBy:function(l){var m=l[0].slice(0);if(m.length===0)return m;var y=this._interpreter,n=l[1],f=this._getTypeName(y.visit(n,m[0]));if([h,p].indexOf(f)<0)throw new Error("TypeError");for(var _=this,v=[],E=0;E<m.length;E++)v.push([E,m[E]]);v.sort(function(T,b){var x=y.visit(n,T[1]),C=y.visit(n,b[1]);if(_._getTypeName(x)!==f)throw new Error("TypeError: expected "+f+", received "+_._getTypeName(x));if(_._getTypeName(C)!==f)throw new Error("TypeError: expected "+f+", received "+_._getTypeName(C));return x>C?1:x<C?-1:T[0]-b[0]});for(var u=0;u<v.length;u++)m[u]=v[u][1];return m},_functionMaxBy:function(l){for(var m=l[1],y=l[0],n=this.createKeyFunction(m,[h,p]),f=-1/0,_,v,E=0;E<y.length;E++)v=n(y[E]),v>f&&(f=v,_=y[E]);return _},_functionMinBy:function(l){for(var m=l[1],y=l[0],n=this.createKeyFunction(m,[h,p]),f=1/0,_,v,E=0;E<y.length;E++)v=n(y[E]),v<f&&(f=v,_=y[E]);return _},createKeyFunction:function(l,m){var y=this,n=this._interpreter,f=function(_){var v=n.visit(l,_);if(m.indexOf(y._getTypeName(v))<0){var E="TypeError: expected one of "+m+", received "+y._getTypeName(v);throw new Error(E)}return v};return f}};function dt(l){var m=new We,y=m.parse(l);return y}function Re(l){var m=new Be;return m.tokenize(l)}function Et(l,m){var y=new We,n=new ct,f=new tt(n);n._interpreter=f;var _=y.parse(m);return f.search(_,l)}r.tokenize=Re,r.compile=dt,r.search=Et,r.strictDeepEqual=i})(typeof Wt>"u"?Wt.jmespath={}:Wt)});var ss={};Ye(ss,{default:()=>Wl,exec:()=>Vl,execFile:()=>Gl,execFileSync:()=>sr,execSync:()=>ql,fork:()=>Bl,spawn:()=>os});var gt,os,sr,ql,Vl,Gl,Bl,Wl,Kt=ke(()=>{"use strict";gt=r=>()=>{throw new Error(`[@uipath/cli] '${r}' from node:child_process is not available in the browser bundle.`)},os=gt("spawn"),sr=gt("execFileSync"),ql=gt("execSync"),Vl=gt("exec"),Gl=gt("execFile"),Bl=gt("fork"),Wl={}});var Lt=Z(_r=>{"use strict";var sn=class extends Error{constructor(e,t,i){super(i),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=t,this.exitCode=e,this.nestedError=void 0}},yr=class extends sn{constructor(e){super(1,"commander.invalidArgument",e),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}};_r.CommanderError=sn;_r.InvalidArgumentError=yr});var an=Z(Er=>{"use strict";var{InvalidArgumentError:jc}=Lt(),Tr=class{constructor(e,t){switch(this.description=t||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,e[0]){case"<":this.required=!0,this._name=e.slice(1,-1);break;case"[":this.required=!1,this._name=e.slice(1,-1);break;default:this.required=!0,this._name=e;break}this._name.endsWith("...")&&(this.variadic=!0,this._name=this._name.slice(0,-3))}name(){return this._name}_collectValue(e,t){return t===this.defaultValue||!Array.isArray(t)?[e]:(t.push(e),t)}default(e,t){return this.defaultValue=e,this.defaultValueDescription=t,this}argParser(e){return this.parseArg=e,this}choices(e){return this.argChoices=e.slice(),this.parseArg=(t,i)=>{if(!this.argChoices.includes(t))throw new jc(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._collectValue(t,i):t},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}};function qc(r){let e=r.name()+(r.variadic===!0?"...":"");return r.required?"<"+e+">":"["+e+"]"}Er.Argument=Tr;Er.humanReadableArgName=qc});var Us={};Ye(Us,{EventEmitter:()=>br});var br,js=ke(()=>{"use strict";br=class{_events={};on(e,t){return this._events[e]||(this._events[e]=[]),this._events[e].push(t),this}addListener(e,t){return this.on(e,t)}emit(e,...t){let i=this._events[e];if(!i)return!1;for(let o of i)o(...t);return!0}removeListener(e,t){let i=this._events[e];return i&&(this._events[e]=i.filter(o=>o!==t)),this}off(e,t){return this.removeListener(e,t)}once(e,t){let i=(...o)=>{t(...o),this.removeListener(e,i)};return this.on(e,i)}listenerCount(e){return this._events[e]?.length??0}listeners(e){return this._events[e]?[...this._events[e]]:[]}removeAllListeners(e){return e?delete this._events[e]:this._events={},this}}});var qs={};Ye(qs,{basename:()=>kr,default:()=>Vc,delimiter:()=>Pr,dirname:()=>xr,extname:()=>un,format:()=>Ir,isAbsolute:()=>Ar,join:()=>wr,parse:()=>Rr,posix:()=>vr,relative:()=>Cr,resolve:()=>Sr,sep:()=>Or});var Ae,xr,wr,Sr,Cr,kr,Ar,un,Or,Pr,Rr,Ir,vr,Vc,Vs=ke(()=>{"use strict";it();Ae=new rt().path,xr=Ae.dirname,wr=Ae.join,Sr=Ae.resolve,Cr=Ae.relative,kr=Ae.basename,Ar=Ae.isAbsolute,un=r=>{let t=Ae.basename(r).match(/\.[^.]+$/);return t?t[0]:""},Or="/",Pr=":",Rr=r=>{let e=Ae.dirname(r),t=Ae.basename(r),i=un(t),o=i?t.slice(0,-i.length):t;return{root:Ae.isAbsolute(r)?"/":"",dir:e,base:t,ext:i,name:o}},Ir=r=>{let e=r.dir||r.root||"",t=r.base||`${r.name||""}${r.ext||""}`;return e?Ae.join(e,t):t},vr={dirname:xr,join:wr,resolve:Sr,relative:Cr,basename:kr,isAbsolute:Ar,extname:un,sep:Or,delimiter:Pr,parse:Rr,format:Ir},Vc={dirname:xr,join:wr,resolve:Sr,relative:Cr,basename:kr,isAbsolute:Ar,extname:un,sep:Or,delimiter:Pr,parse:Rr,format:Ir,posix:vr,win32:vr}});var Ws={};Ye(Ws,{default:()=>Gc,existsSync:()=>Gs,realpathSync:()=>Bs});var Gs,Bs,Gc,Ys=ke(()=>{"use strict";Gs=()=>!1,Bs=()=>{throw new Error("[@uipath/cli] node:fs.realpathSync is not available in the browser bundle. Commander's executable-subcommand feature requires child_process.spawn, which browsers cannot perform.")},Gc={existsSync:Gs,realpathSync:Bs}});var zs={};Ye(zs,{argv:()=>Kc,cwd:()=>Yc,default:()=>Bc,env:()=>Wc,exit:()=>Zc,platform:()=>zc,stderr:()=>Xc,stdout:()=>Jc,version:()=>Qc});var Ue,Bc,Wc,Yc,zc,Kc,Jc,Xc,Zc,Qc,Ks=ke(()=>{"use strict";Ue=globalThis.process??{env:{}},Bc=Ue,Wc=Ue.env,Yc=Ue.cwd,zc=Ue.platform,Kc=Ue.argv,Jc=Ue.stdout,Xc=Ue.stderr,Zc=Ue.exit,Qc=Ue.version});var Fr=Z(Lr=>{"use strict";var{humanReadableArgName:ed}=an(),Nr=class{constructor(){this.helpWidth=void 0,this.minWidthToWrap=40,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}prepareContext(e){this.helpWidth=this.helpWidth??e.helpWidth??80}visibleCommands(e){let t=e.commands.filter(o=>!o._hidden),i=e._getHelpCommand();return i&&!i._hidden&&t.push(i),this.sortSubcommands&&t.sort((o,s)=>o.name().localeCompare(s.name())),t}compareOptions(e,t){let i=o=>o.short?o.short.replace(/^-/,""):o.long.replace(/^--/,"");return i(e).localeCompare(i(t))}visibleOptions(e){let t=e.options.filter(o=>!o.hidden),i=e._getHelpOption();if(i&&!i.hidden){let o=i.short&&e._findOption(i.short),s=i.long&&e._findOption(i.long);!o&&!s?t.push(i):i.long&&!s?t.push(e.createOption(i.long,i.description)):i.short&&!o&&t.push(e.createOption(i.short,i.description))}return this.sortOptions&&t.sort(this.compareOptions),t}visibleGlobalOptions(e){if(!this.showGlobalOptions)return[];let t=[];for(let i=e.parent;i;i=i.parent){let o=i.options.filter(s=>!s.hidden);t.push(...o)}return this.sortOptions&&t.sort(this.compareOptions),t}visibleArguments(e){return e._argsDescription&&e.registeredArguments.forEach(t=>{t.description=t.description||e._argsDescription[t.name()]||""}),e.registeredArguments.find(t=>t.description)?e.registeredArguments:[]}subcommandTerm(e){let t=e.registeredArguments.map(i=>ed(i)).join(" ");return e._name+(e._aliases[0]?"|"+e._aliases[0]:"")+(e.options.length?" [options]":"")+(t?" "+t:"")}optionTerm(e){return e.flags}argumentTerm(e){return e.name()}longestSubcommandTermLength(e,t){return t.visibleCommands(e).reduce((i,o)=>Math.max(i,this.displayWidth(t.styleSubcommandTerm(t.subcommandTerm(o)))),0)}longestOptionTermLength(e,t){return t.visibleOptions(e).reduce((i,o)=>Math.max(i,this.displayWidth(t.styleOptionTerm(t.optionTerm(o)))),0)}longestGlobalOptionTermLength(e,t){return t.visibleGlobalOptions(e).reduce((i,o)=>Math.max(i,this.displayWidth(t.styleOptionTerm(t.optionTerm(o)))),0)}longestArgumentTermLength(e,t){return t.visibleArguments(e).reduce((i,o)=>Math.max(i,this.displayWidth(t.styleArgumentTerm(t.argumentTerm(o)))),0)}commandUsage(e){let t=e._name;e._aliases[0]&&(t=t+"|"+e._aliases[0]);let i="";for(let o=e.parent;o;o=o.parent)i=o.name()+" "+i;return i+t+" "+e.usage()}commandDescription(e){return e.description()}subcommandDescription(e){return e.summary()||e.description()}optionDescription(e){let t=[];if(e.argChoices&&t.push(`choices: ${e.argChoices.map(i=>JSON.stringify(i)).join(", ")}`),e.defaultValue!==void 0&&(e.required||e.optional||e.isBoolean()&&typeof e.defaultValue=="boolean")&&t.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`),e.presetArg!==void 0&&e.optional&&t.push(`preset: ${JSON.stringify(e.presetArg)}`),e.envVar!==void 0&&t.push(`env: ${e.envVar}`),t.length>0){let i=`(${t.join(", ")})`;return e.description?`${e.description} ${i}`:i}return e.description}argumentDescription(e){let t=[];if(e.argChoices&&t.push(`choices: ${e.argChoices.map(i=>JSON.stringify(i)).join(", ")}`),e.defaultValue!==void 0&&t.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`),t.length>0){let i=`(${t.join(", ")})`;return e.description?`${e.description} ${i}`:i}return e.description}formatItemList(e,t,i){return t.length===0?[]:[i.styleTitle(e),...t,""]}groupItems(e,t,i){let o=new Map;return e.forEach(s=>{let a=i(s);o.has(a)||o.set(a,[])}),t.forEach(s=>{let a=i(s);o.has(a)||o.set(a,[]),o.get(a).push(s)}),o}formatHelp(e,t){let i=t.padWidth(e,t),o=t.helpWidth??80;function s(g,S){return t.formatItem(g,i,S,t)}let a=[`${t.styleTitle("Usage:")} ${t.styleUsage(t.commandUsage(e))}`,""],c=t.commandDescription(e);c.length>0&&(a=a.concat([t.boxWrap(t.styleCommandDescription(c),o),""]));let h=t.visibleArguments(e).map(g=>s(t.styleArgumentTerm(t.argumentTerm(g)),t.styleArgumentDescription(t.argumentDescription(g))));if(a=a.concat(this.formatItemList("Arguments:",h,t)),this.groupItems(e.options,t.visibleOptions(e),g=>g.helpGroupHeading??"Options:").forEach((g,S)=>{let $=g.map(B=>s(t.styleOptionTerm(t.optionTerm(B)),t.styleOptionDescription(t.optionDescription(B))));a=a.concat(this.formatItemList(S,$,t))}),t.showGlobalOptions){let g=t.visibleGlobalOptions(e).map(S=>s(t.styleOptionTerm(t.optionTerm(S)),t.styleOptionDescription(t.optionDescription(S))));a=a.concat(this.formatItemList("Global Options:",g,t))}return this.groupItems(e.commands,t.visibleCommands(e),g=>g.helpGroup()||"Commands:").forEach((g,S)=>{let $=g.map(B=>s(t.styleSubcommandTerm(t.subcommandTerm(B)),t.styleSubcommandDescription(t.subcommandDescription(B))));a=a.concat(this.formatItemList(S,$,t))}),a.join(`
|
|
51
|
-
`)}displayWidth(e){return Js(e).length}styleTitle(e){return e}styleUsage(e){return e.split(" ").map(t=>t==="[options]"?this.styleOptionText(t):t==="[command]"?this.styleSubcommandText(t):t[0]==="["||t[0]==="<"?this.styleArgumentText(t):this.styleCommandText(t)).join(" ")}styleCommandDescription(e){return this.styleDescriptionText(e)}styleOptionDescription(e){return this.styleDescriptionText(e)}styleSubcommandDescription(e){return this.styleDescriptionText(e)}styleArgumentDescription(e){return this.styleDescriptionText(e)}styleDescriptionText(e){return e}styleOptionTerm(e){return this.styleOptionText(e)}styleSubcommandTerm(e){return e.split(" ").map(t=>t==="[options]"?this.styleOptionText(t):t[0]==="["||t[0]==="<"?this.styleArgumentText(t):this.styleSubcommandText(t)).join(" ")}styleArgumentTerm(e){return this.styleArgumentText(e)}styleOptionText(e){return e}styleArgumentText(e){return e}styleSubcommandText(e){return e}styleCommandText(e){return e}padWidth(e,t){return Math.max(t.longestOptionTermLength(e,t),t.longestGlobalOptionTermLength(e,t),t.longestSubcommandTermLength(e,t),t.longestArgumentTermLength(e,t))}preformatted(e){return/\n[^\S\r\n]/.test(e)}formatItem(e,t,i,o){let a=" ".repeat(2);if(!i)return a+e;let c=e.padEnd(t+e.length-o.displayWidth(e)),h=2,p=(this.helpWidth??80)-t-h-2,g;return p<this.minWidthToWrap||o.preformatted(i)?g=i:g=o.boxWrap(i,p).replace(/\n/g,`
|
|
52
|
-
`+" ".repeat(t+h)),a+c+" ".repeat(h)+g.replace(/\n/g,`
|
|
53
|
-
${a}`)}boxWrap(e,t){if(t<this.minWidthToWrap)return e;let i=e.split(/\r\n|\n/),o=/[\s]*[^\s]+/g,s=[];return i.forEach(a=>{let c=a.match(o);if(c===null){s.push("");return}let h=[c.shift()],d=this.displayWidth(h[0]);c.forEach(p=>{let g=this.displayWidth(p);if(d+g<=t){h.push(p),d+=g;return}s.push(h.join(""));let S=p.trimStart();h=[S],d=this.displayWidth(S)}),s.push(h.join(""))}),s.join(`
|
|
54
|
-
`)}};function Js(r){let e=/\x1b\[\d*(;\d*)*m/g;return r.replace(e,"")}Lr.Help=Nr;Lr.stripColor=Js});var Hr=Z($r=>{"use strict";var{InvalidArgumentError:td}=Lt(),Mr=class{constructor(e,t){this.flags=e,this.description=t||"",this.required=e.includes("<"),this.optional=e.includes("["),this.variadic=/\w\.\.\.[>\]]$/.test(e),this.mandatory=!1;let i=nd(e);this.short=i.shortFlag,this.long=i.longFlag,this.negate=!1,this.long&&(this.negate=this.long.startsWith("--no-")),this.defaultValue=void 0,this.defaultValueDescription=void 0,this.presetArg=void 0,this.envVar=void 0,this.parseArg=void 0,this.hidden=!1,this.argChoices=void 0,this.conflictsWith=[],this.implied=void 0,this.helpGroupHeading=void 0}default(e,t){return this.defaultValue=e,this.defaultValueDescription=t,this}preset(e){return this.presetArg=e,this}conflicts(e){return this.conflictsWith=this.conflictsWith.concat(e),this}implies(e){let t=e;return typeof e=="string"&&(t={[e]:!0}),this.implied=Object.assign(this.implied||{},t),this}env(e){return this.envVar=e,this}argParser(e){return this.parseArg=e,this}makeOptionMandatory(e=!0){return this.mandatory=!!e,this}hideHelp(e=!0){return this.hidden=!!e,this}_collectValue(e,t){return t===this.defaultValue||!Array.isArray(t)?[e]:(t.push(e),t)}choices(e){return this.argChoices=e.slice(),this.parseArg=(t,i)=>{if(!this.argChoices.includes(t))throw new td(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._collectValue(t,i):t},this}name(){return this.long?this.long.replace(/^--/,""):this.short.replace(/^-/,"")}attributeName(){return this.negate?Xs(this.name().replace(/^no-/,"")):Xs(this.name())}helpGroup(e){return this.helpGroupHeading=e,this}is(e){return this.short===e||this.long===e}isBoolean(){return!this.required&&!this.optional&&!this.negate}},Dr=class{constructor(e){this.positiveOptions=new Map,this.negativeOptions=new Map,this.dualOptions=new Set,e.forEach(t=>{t.negate?this.negativeOptions.set(t.attributeName(),t):this.positiveOptions.set(t.attributeName(),t)}),this.negativeOptions.forEach((t,i)=>{this.positiveOptions.has(i)&&this.dualOptions.add(i)})}valueFromOption(e,t){let i=t.attributeName();if(!this.dualOptions.has(i))return!0;let o=this.negativeOptions.get(i).presetArg,s=o!==void 0?o:!1;return t.negate===(s===e)}};function Xs(r){return r.split("-").reduce((e,t)=>e+t[0].toUpperCase()+t.slice(1))}function nd(r){let e,t,i=/^-[^-]$/,o=/^--[^-]/,s=r.split(/[ |,]+/).concat("guard");if(i.test(s[0])&&(e=s.shift()),o.test(s[0])&&(t=s.shift()),!e&&i.test(s[0])&&(e=s.shift()),!e&&o.test(s[0])&&(e=t,t=s.shift()),s[0].startsWith("-")){let a=s[0],c=`option creation failed due to '${a}' in option flags '${r}'`;throw/^-[^-][^-]/.test(a)?new Error(`${c}
|
|
55
|
-
- a short flag is a single dash and a single character
|
|
56
|
-
- either use a single dash and a single character (for a short flag)
|
|
57
|
-
- or use a double dash for a long option (and can have two, like '--ws, --workspace')`):i.test(a)?new Error(`${c}
|
|
58
|
-
- too many short flags`):o.test(a)?new Error(`${c}
|
|
59
|
-
- too many long flags`):new Error(`${c}
|
|
60
|
-
- unrecognised flag format`)}if(e===void 0&&t===void 0)throw new Error(`option creation failed due to no flags found in '${r}'.`);return{shortFlag:e,longFlag:t}}$r.Option=Mr;$r.DualOptions=Dr});var Qs=Z(Zs=>{"use strict";function rd(r,e){if(Math.abs(r.length-e.length)>3)return Math.max(r.length,e.length);let t=[];for(let i=0;i<=r.length;i++)t[i]=[i];for(let i=0;i<=e.length;i++)t[0][i]=i;for(let i=1;i<=e.length;i++)for(let o=1;o<=r.length;o++){let s=1;r[o-1]===e[i-1]?s=0:s=1,t[o][i]=Math.min(t[o-1][i]+1,t[o][i-1]+1,t[o-1][i-1]+s),o>1&&i>1&&r[o-1]===e[i-2]&&r[o-2]===e[i-1]&&(t[o][i]=Math.min(t[o][i],t[o-2][i-2]+1))}return t[r.length][e.length]}function id(r,e){if(!e||e.length===0)return"";e=Array.from(new Set(e));let t=r.startsWith("--");t&&(r=r.slice(2),e=e.map(a=>a.slice(2)));let i=[],o=3,s=.4;return e.forEach(a=>{if(a.length<=1)return;let c=rd(r,a),h=Math.max(r.length,a.length);(h-c)/h>s&&(c<o?(o=c,i=[a]):c===o&&i.push(a))}),i.sort((a,c)=>a.localeCompare(c)),t&&(i=i.map(a=>`--${a}`)),i.length>1?`
|
|
61
|
-
(Did you mean one of ${i.join(", ")}?)`:i.length===1?`
|
|
62
|
-
(Did you mean ${i[0]}?)`:""}Zs.suggestSimilar=id});var ra=Z(Gr=>{"use strict";var od=(js(),ze(Us)).EventEmitter,Ur=(Kt(),ze(ss)),je=(Vs(),ze(qs)),ln=(Ys(),ze(Ws)),K=(Ks(),ze(zs)),{Argument:sd,humanReadableArgName:ad}=an(),{CommanderError:jr}=Lt(),{Help:ud,stripColor:ld}=Fr(),{Option:ea,DualOptions:cd}=Hr(),{suggestSimilar:ta}=Qs(),qr=class r extends od{constructor(e){super(),this.commands=[],this.options=[],this.parent=null,this._allowUnknownOption=!1,this._allowExcessArguments=!1,this.registeredArguments=[],this._args=this.registeredArguments,this.args=[],this.rawArgs=[],this.processedArgs=[],this._scriptPath=null,this._name=e||"",this._optionValues={},this._optionValueSources={},this._storeOptionsAsProperties=!1,this._actionHandler=null,this._executableHandler=!1,this._executableFile=null,this._executableDir=null,this._defaultCommandName=null,this._exitCallback=null,this._aliases=[],this._combineFlagAndOptionalValue=!0,this._description="",this._summary="",this._argsDescription=void 0,this._enablePositionalOptions=!1,this._passThroughOptions=!1,this._lifeCycleHooks={},this._showHelpAfterError=!1,this._showSuggestionAfterError=!0,this._savedState=null,this._outputConfiguration={writeOut:t=>K.stdout.write(t),writeErr:t=>K.stderr.write(t),outputError:(t,i)=>i(t),getOutHelpWidth:()=>K.stdout.isTTY?K.stdout.columns:void 0,getErrHelpWidth:()=>K.stderr.isTTY?K.stderr.columns:void 0,getOutHasColors:()=>Vr()??(K.stdout.isTTY&&K.stdout.hasColors?.()),getErrHasColors:()=>Vr()??(K.stderr.isTTY&&K.stderr.hasColors?.()),stripColor:t=>ld(t)},this._hidden=!1,this._helpOption=void 0,this._addImplicitHelpCommand=void 0,this._helpCommand=void 0,this._helpConfiguration={},this._helpGroupHeading=void 0,this._defaultCommandGroup=void 0,this._defaultOptionGroup=void 0}copyInheritedSettings(e){return this._outputConfiguration=e._outputConfiguration,this._helpOption=e._helpOption,this._helpCommand=e._helpCommand,this._helpConfiguration=e._helpConfiguration,this._exitCallback=e._exitCallback,this._storeOptionsAsProperties=e._storeOptionsAsProperties,this._combineFlagAndOptionalValue=e._combineFlagAndOptionalValue,this._allowExcessArguments=e._allowExcessArguments,this._enablePositionalOptions=e._enablePositionalOptions,this._showHelpAfterError=e._showHelpAfterError,this._showSuggestionAfterError=e._showSuggestionAfterError,this}_getCommandAndAncestors(){let e=[];for(let t=this;t;t=t.parent)e.push(t);return e}command(e,t,i){let o=t,s=i;typeof o=="object"&&o!==null&&(s=o,o=null),s=s||{};let[,a,c]=e.match(/([^ ]+) *(.*)/),h=this.createCommand(a);return o&&(h.description(o),h._executableHandler=!0),s.isDefault&&(this._defaultCommandName=h._name),h._hidden=!!(s.noHelp||s.hidden),h._executableFile=s.executableFile||null,c&&h.arguments(c),this._registerCommand(h),h.parent=this,h.copyInheritedSettings(this),o?this:h}createCommand(e){return new r(e)}createHelp(){return Object.assign(new ud,this.configureHelp())}configureHelp(e){return e===void 0?this._helpConfiguration:(this._helpConfiguration=e,this)}configureOutput(e){return e===void 0?this._outputConfiguration:(this._outputConfiguration={...this._outputConfiguration,...e},this)}showHelpAfterError(e=!0){return typeof e!="string"&&(e=!!e),this._showHelpAfterError=e,this}showSuggestionAfterError(e=!0){return this._showSuggestionAfterError=!!e,this}addCommand(e,t){if(!e._name)throw new Error(`Command passed to .addCommand() must have a name
|
|
63
|
-
- specify the name in Command constructor or using .name()`);return t=t||{},t.isDefault&&(this._defaultCommandName=e._name),(t.noHelp||t.hidden)&&(e._hidden=!0),this._registerCommand(e),e.parent=this,e._checkForBrokenPassThrough(),this}createArgument(e,t){return new sd(e,t)}argument(e,t,i,o){let s=this.createArgument(e,t);return typeof i=="function"?s.default(o).argParser(i):s.default(i),this.addArgument(s),this}arguments(e){return e.trim().split(/ +/).forEach(t=>{this.argument(t)}),this}addArgument(e){let t=this.registeredArguments.slice(-1)[0];if(t?.variadic)throw new Error(`only the last argument can be variadic '${t.name()}'`);if(e.required&&e.defaultValue!==void 0&&e.parseArg===void 0)throw new Error(`a default value for a required argument is never used: '${e.name()}'`);return this.registeredArguments.push(e),this}helpCommand(e,t){if(typeof e=="boolean")return this._addImplicitHelpCommand=e,e&&this._defaultCommandGroup&&this._initCommandGroup(this._getHelpCommand()),this;let i=e??"help [command]",[,o,s]=i.match(/([^ ]+) *(.*)/),a=t??"display help for command",c=this.createCommand(o);return c.helpOption(!1),s&&c.arguments(s),a&&c.description(a),this._addImplicitHelpCommand=!0,this._helpCommand=c,(e||t)&&this._initCommandGroup(c),this}addHelpCommand(e,t){return typeof e!="object"?(this.helpCommand(e,t),this):(this._addImplicitHelpCommand=!0,this._helpCommand=e,this._initCommandGroup(e),this)}_getHelpCommand(){return this._addImplicitHelpCommand??(this.commands.length&&!this._actionHandler&&!this._findCommand("help"))?(this._helpCommand===void 0&&this.helpCommand(void 0,void 0),this._helpCommand):null}hook(e,t){let i=["preSubcommand","preAction","postAction"];if(!i.includes(e))throw new Error(`Unexpected value for event passed to hook : '${e}'.
|
|
64
|
-
Expecting one of '${i.join("', '")}'`);return this._lifeCycleHooks[e]?this._lifeCycleHooks[e].push(t):this._lifeCycleHooks[e]=[t],this}exitOverride(e){return e?this._exitCallback=e:this._exitCallback=t=>{if(t.code!=="commander.executeSubCommandAsync")throw t},this}_exit(e,t,i){this._exitCallback&&this._exitCallback(new jr(e,t,i)),K.exit(e)}action(e){let t=i=>{let o=this.registeredArguments.length,s=i.slice(0,o);return this._storeOptionsAsProperties?s[o]=this:s[o]=this.opts(),s.push(this),e.apply(this,s)};return this._actionHandler=t,this}createOption(e,t){return new ea(e,t)}_callParseArg(e,t,i,o){try{return e.parseArg(t,i)}catch(s){if(s.code==="commander.invalidArgument"){let a=`${o} ${s.message}`;this.error(a,{exitCode:s.exitCode,code:s.code})}throw s}}_registerOption(e){let t=e.short&&this._findOption(e.short)||e.long&&this._findOption(e.long);if(t){let i=e.long&&this._findOption(e.long)?e.long:e.short;throw new Error(`Cannot add option '${e.flags}'${this._name&&` to command '${this._name}'`} due to conflicting flag '${i}'
|
|
65
|
-
- already used by option '${t.flags}'`)}this._initOptionGroup(e),this.options.push(e)}_registerCommand(e){let t=o=>[o.name()].concat(o.aliases()),i=t(e).find(o=>this._findCommand(o));if(i){let o=t(this._findCommand(i)).join("|"),s=t(e).join("|");throw new Error(`cannot add command '${s}' as already have command '${o}'`)}this._initCommandGroup(e),this.commands.push(e)}addOption(e){this._registerOption(e);let t=e.name(),i=e.attributeName();if(e.negate){let s=e.long.replace(/^--no-/,"--");this._findOption(s)||this.setOptionValueWithSource(i,e.defaultValue===void 0?!0:e.defaultValue,"default")}else e.defaultValue!==void 0&&this.setOptionValueWithSource(i,e.defaultValue,"default");let o=(s,a,c)=>{s==null&&e.presetArg!==void 0&&(s=e.presetArg);let h=this.getOptionValue(i);s!==null&&e.parseArg?s=this._callParseArg(e,s,h,a):s!==null&&e.variadic&&(s=e._collectValue(s,h)),s==null&&(e.negate?s=!1:e.isBoolean()||e.optional?s=!0:s=""),this.setOptionValueWithSource(i,s,c)};return this.on("option:"+t,s=>{let a=`error: option '${e.flags}' argument '${s}' is invalid.`;o(s,a,"cli")}),e.envVar&&this.on("optionEnv:"+t,s=>{let a=`error: option '${e.flags}' value '${s}' from env '${e.envVar}' is invalid.`;o(s,a,"env")}),this}_optionEx(e,t,i,o,s){if(typeof t=="object"&&t instanceof ea)throw new Error("To add an Option object use addOption() instead of option() or requiredOption()");let a=this.createOption(t,i);if(a.makeOptionMandatory(!!e.mandatory),typeof o=="function")a.default(s).argParser(o);else if(o instanceof RegExp){let c=o;o=(h,d)=>{let p=c.exec(h);return p?p[0]:d},a.default(s).argParser(o)}else a.default(o);return this.addOption(a)}option(e,t,i,o){return this._optionEx({},e,t,i,o)}requiredOption(e,t,i,o){return this._optionEx({mandatory:!0},e,t,i,o)}combineFlagAndOptionalValue(e=!0){return this._combineFlagAndOptionalValue=!!e,this}allowUnknownOption(e=!0){return this._allowUnknownOption=!!e,this}allowExcessArguments(e=!0){return this._allowExcessArguments=!!e,this}enablePositionalOptions(e=!0){return this._enablePositionalOptions=!!e,this}passThroughOptions(e=!0){return this._passThroughOptions=!!e,this._checkForBrokenPassThrough(),this}_checkForBrokenPassThrough(){if(this.parent&&this._passThroughOptions&&!this.parent._enablePositionalOptions)throw new Error(`passThroughOptions cannot be used for '${this._name}' without turning on enablePositionalOptions for parent command(s)`)}storeOptionsAsProperties(e=!0){if(this.options.length)throw new Error("call .storeOptionsAsProperties() before adding options");if(Object.keys(this._optionValues).length)throw new Error("call .storeOptionsAsProperties() before setting option values");return this._storeOptionsAsProperties=!!e,this}getOptionValue(e){return this._storeOptionsAsProperties?this[e]:this._optionValues[e]}setOptionValue(e,t){return this.setOptionValueWithSource(e,t,void 0)}setOptionValueWithSource(e,t,i){return this._storeOptionsAsProperties?this[e]=t:this._optionValues[e]=t,this._optionValueSources[e]=i,this}getOptionValueSource(e){return this._optionValueSources[e]}getOptionValueSourceWithGlobals(e){let t;return this._getCommandAndAncestors().forEach(i=>{i.getOptionValueSource(e)!==void 0&&(t=i.getOptionValueSource(e))}),t}_prepareUserArgs(e,t){if(e!==void 0&&!Array.isArray(e))throw new Error("first parameter to parse must be array or undefined");if(t=t||{},e===void 0&&t.from===void 0){K.versions?.electron&&(t.from="electron");let o=K.execArgv??[];(o.includes("-e")||o.includes("--eval")||o.includes("-p")||o.includes("--print"))&&(t.from="eval")}e===void 0&&(e=K.argv),this.rawArgs=e.slice();let i;switch(t.from){case void 0:case"node":this._scriptPath=e[1],i=e.slice(2);break;case"electron":K.defaultApp?(this._scriptPath=e[1],i=e.slice(2)):i=e.slice(1);break;case"user":i=e.slice(0);break;case"eval":i=e.slice(1);break;default:throw new Error(`unexpected parse option { from: '${t.from}' }`)}return!this._name&&this._scriptPath&&this.nameFromFilename(this._scriptPath),this._name=this._name||"program",i}parse(e,t){this._prepareForParse();let i=this._prepareUserArgs(e,t);return this._parseCommand([],i),this}async parseAsync(e,t){this._prepareForParse();let i=this._prepareUserArgs(e,t);return await this._parseCommand([],i),this}_prepareForParse(){this._savedState===null?this.saveStateBeforeParse():this.restoreStateBeforeParse()}saveStateBeforeParse(){this._savedState={_name:this._name,_optionValues:{...this._optionValues},_optionValueSources:{...this._optionValueSources}}}restoreStateBeforeParse(){if(this._storeOptionsAsProperties)throw new Error(`Can not call parse again when storeOptionsAsProperties is true.
|
|
66
|
-
- either make a new Command for each call to parse, or stop storing options as properties`);this._name=this._savedState._name,this._scriptPath=null,this.rawArgs=[],this._optionValues={...this._savedState._optionValues},this._optionValueSources={...this._savedState._optionValueSources},this.args=[],this.processedArgs=[]}_checkForMissingExecutable(e,t,i){if(ln.existsSync(e))return;let o=t?`searched for local subcommand relative to directory '${t}'`:"no directory for search for local subcommand, use .executableDir() to supply a custom directory",s=`'${e}' does not exist
|
|
67
|
-
- if '${i}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead
|
|
68
|
-
- if the default executable name is not suitable, use the executableFile option to supply a custom name or path
|
|
69
|
-
- ${o}`;throw new Error(s)}_executeSubCommand(e,t){t=t.slice();let i=!1,o=[".js",".ts",".tsx",".mjs",".cjs"];function s(p,g){let S=je.resolve(p,g);if(ln.existsSync(S))return S;if(o.includes(je.extname(g)))return;let $=o.find(B=>ln.existsSync(`${S}${B}`));if($)return`${S}${$}`}this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let a=e._executableFile||`${this._name}-${e._name}`,c=this._executableDir||"";if(this._scriptPath){let p;try{p=ln.realpathSync(this._scriptPath)}catch{p=this._scriptPath}c=je.resolve(je.dirname(p),c)}if(c){let p=s(c,a);if(!p&&!e._executableFile&&this._scriptPath){let g=je.basename(this._scriptPath,je.extname(this._scriptPath));g!==this._name&&(p=s(c,`${g}-${e._name}`))}a=p||a}i=o.includes(je.extname(a));let h;K.platform!=="win32"?i?(t.unshift(a),t=na(K.execArgv).concat(t),h=Ur.spawn(K.argv[0],t,{stdio:"inherit"})):h=Ur.spawn(a,t,{stdio:"inherit"}):(this._checkForMissingExecutable(a,c,e._name),t.unshift(a),t=na(K.execArgv).concat(t),h=Ur.spawn(K.execPath,t,{stdio:"inherit"})),h.killed||["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach(g=>{K.on(g,()=>{h.killed===!1&&h.exitCode===null&&h.kill(g)})});let d=this._exitCallback;h.on("close",p=>{p=p??1,d?d(new jr(p,"commander.executeSubCommandAsync","(close)")):K.exit(p)}),h.on("error",p=>{if(p.code==="ENOENT")this._checkForMissingExecutable(a,c,e._name);else if(p.code==="EACCES")throw new Error(`'${a}' not executable`);if(!d)K.exit(1);else{let g=new jr(1,"commander.executeSubCommandAsync","(error)");g.nestedError=p,d(g)}}),this.runningCommand=h}_dispatchSubcommand(e,t,i){let o=this._findCommand(e);o||this.help({error:!0}),o._prepareForParse();let s;return s=this._chainOrCallSubCommandHook(s,o,"preSubcommand"),s=this._chainOrCall(s,()=>{if(o._executableHandler)this._executeSubCommand(o,t.concat(i));else return o._parseCommand(t,i)}),s}_dispatchHelpCommand(e){e||this.help();let t=this._findCommand(e);return t&&!t._executableHandler&&t.help(),this._dispatchSubcommand(e,[],[this._getHelpOption()?.long??this._getHelpOption()?.short??"--help"])}_checkNumberOfArguments(){this.registeredArguments.forEach((e,t)=>{e.required&&this.args[t]==null&&this.missingArgument(e.name())}),!(this.registeredArguments.length>0&&this.registeredArguments[this.registeredArguments.length-1].variadic)&&this.args.length>this.registeredArguments.length&&this._excessArguments(this.args)}_processArguments(){let e=(i,o,s)=>{let a=o;if(o!==null&&i.parseArg){let c=`error: command-argument value '${o}' is invalid for argument '${i.name()}'.`;a=this._callParseArg(i,o,s,c)}return a};this._checkNumberOfArguments();let t=[];this.registeredArguments.forEach((i,o)=>{let s=i.defaultValue;i.variadic?o<this.args.length?(s=this.args.slice(o),i.parseArg&&(s=s.reduce((a,c)=>e(i,c,a),i.defaultValue))):s===void 0&&(s=[]):o<this.args.length&&(s=this.args[o],i.parseArg&&(s=e(i,s,i.defaultValue))),t[o]=s}),this.processedArgs=t}_chainOrCall(e,t){return e?.then&&typeof e.then=="function"?e.then(()=>t()):t()}_chainOrCallHooks(e,t){let i=e,o=[];return this._getCommandAndAncestors().reverse().filter(s=>s._lifeCycleHooks[t]!==void 0).forEach(s=>{s._lifeCycleHooks[t].forEach(a=>{o.push({hookedCommand:s,callback:a})})}),t==="postAction"&&o.reverse(),o.forEach(s=>{i=this._chainOrCall(i,()=>s.callback(s.hookedCommand,this))}),i}_chainOrCallSubCommandHook(e,t,i){let o=e;return this._lifeCycleHooks[i]!==void 0&&this._lifeCycleHooks[i].forEach(s=>{o=this._chainOrCall(o,()=>s(this,t))}),o}_parseCommand(e,t){let i=this.parseOptions(t);if(this._parseOptionsEnv(),this._parseOptionsImplied(),e=e.concat(i.operands),t=i.unknown,this.args=e.concat(t),e&&this._findCommand(e[0]))return this._dispatchSubcommand(e[0],e.slice(1),t);if(this._getHelpCommand()&&e[0]===this._getHelpCommand().name())return this._dispatchHelpCommand(e[1]);if(this._defaultCommandName)return this._outputHelpIfRequested(t),this._dispatchSubcommand(this._defaultCommandName,e,t);this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName&&this.help({error:!0}),this._outputHelpIfRequested(i.unknown),this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let o=()=>{i.unknown.length>0&&this.unknownOption(i.unknown[0])},s=`command:${this.name()}`;if(this._actionHandler){o(),this._processArguments();let a;return a=this._chainOrCallHooks(a,"preAction"),a=this._chainOrCall(a,()=>this._actionHandler(this.processedArgs)),this.parent&&(a=this._chainOrCall(a,()=>{this.parent.emit(s,e,t)})),a=this._chainOrCallHooks(a,"postAction"),a}if(this.parent?.listenerCount(s))o(),this._processArguments(),this.parent.emit(s,e,t);else if(e.length){if(this._findCommand("*"))return this._dispatchSubcommand("*",e,t);this.listenerCount("command:*")?this.emit("command:*",e,t):this.commands.length?this.unknownCommand():(o(),this._processArguments())}else this.commands.length?(o(),this.help({error:!0})):(o(),this._processArguments())}_findCommand(e){if(e)return this.commands.find(t=>t._name===e||t._aliases.includes(e))}_findOption(e){return this.options.find(t=>t.is(e))}_checkForMissingMandatoryOptions(){this._getCommandAndAncestors().forEach(e=>{e.options.forEach(t=>{t.mandatory&&e.getOptionValue(t.attributeName())===void 0&&e.missingMandatoryOptionValue(t)})})}_checkForConflictingLocalOptions(){let e=this.options.filter(i=>{let o=i.attributeName();return this.getOptionValue(o)===void 0?!1:this.getOptionValueSource(o)!=="default"});e.filter(i=>i.conflictsWith.length>0).forEach(i=>{let o=e.find(s=>i.conflictsWith.includes(s.attributeName()));o&&this._conflictingOption(i,o)})}_checkForConflictingOptions(){this._getCommandAndAncestors().forEach(e=>{e._checkForConflictingLocalOptions()})}parseOptions(e){let t=[],i=[],o=t;function s(p){return p.length>1&&p[0]==="-"}let a=p=>/^-(\d+|\d*\.\d+)(e[+-]?\d+)?$/.test(p)?!this._getCommandAndAncestors().some(g=>g.options.map(S=>S.short).some(S=>/^-\d$/.test(S))):!1,c=null,h=null,d=0;for(;d<e.length||h;){let p=h??e[d++];if(h=null,p==="--"){o===i&&o.push(p),o.push(...e.slice(d));break}if(c&&(!s(p)||a(p))){this.emit(`option:${c.name()}`,p);continue}if(c=null,s(p)){let g=this._findOption(p);if(g){if(g.required){let S=e[d++];S===void 0&&this.optionMissingArgument(g),this.emit(`option:${g.name()}`,S)}else if(g.optional){let S=null;d<e.length&&(!s(e[d])||a(e[d]))&&(S=e[d++]),this.emit(`option:${g.name()}`,S)}else this.emit(`option:${g.name()}`);c=g.variadic?g:null;continue}}if(p.length>2&&p[0]==="-"&&p[1]!=="-"){let g=this._findOption(`-${p[1]}`);if(g){g.required||g.optional&&this._combineFlagAndOptionalValue?this.emit(`option:${g.name()}`,p.slice(2)):(this.emit(`option:${g.name()}`),h=`-${p.slice(2)}`);continue}}if(/^--[^=]+=/.test(p)){let g=p.indexOf("="),S=this._findOption(p.slice(0,g));if(S&&(S.required||S.optional)){this.emit(`option:${S.name()}`,p.slice(g+1));continue}}if(o===t&&s(p)&&!(this.commands.length===0&&a(p))&&(o=i),(this._enablePositionalOptions||this._passThroughOptions)&&t.length===0&&i.length===0){if(this._findCommand(p)){t.push(p),i.push(...e.slice(d));break}else if(this._getHelpCommand()&&p===this._getHelpCommand().name()){t.push(p,...e.slice(d));break}else if(this._defaultCommandName){i.push(p,...e.slice(d));break}}if(this._passThroughOptions){o.push(p,...e.slice(d));break}o.push(p)}return{operands:t,unknown:i}}opts(){if(this._storeOptionsAsProperties){let e={},t=this.options.length;for(let i=0;i<t;i++){let o=this.options[i].attributeName();e[o]=o===this._versionOptionName?this._version:this[o]}return e}return this._optionValues}optsWithGlobals(){return this._getCommandAndAncestors().reduce((e,t)=>Object.assign(e,t.opts()),{})}error(e,t){this._outputConfiguration.outputError(`${e}
|
|
70
|
-
`,this._outputConfiguration.writeErr),typeof this._showHelpAfterError=="string"?this._outputConfiguration.writeErr(`${this._showHelpAfterError}
|
|
71
|
-
`):this._showHelpAfterError&&(this._outputConfiguration.writeErr(`
|
|
72
|
-
`),this.outputHelp({error:!0}));let i=t||{},o=i.exitCode||1,s=i.code||"commander.error";this._exit(o,s,e)}_parseOptionsEnv(){this.options.forEach(e=>{if(e.envVar&&e.envVar in K.env){let t=e.attributeName();(this.getOptionValue(t)===void 0||["default","config","env"].includes(this.getOptionValueSource(t)))&&(e.required||e.optional?this.emit(`optionEnv:${e.name()}`,K.env[e.envVar]):this.emit(`optionEnv:${e.name()}`))}})}_parseOptionsImplied(){let e=new cd(this.options),t=i=>this.getOptionValue(i)!==void 0&&!["default","implied"].includes(this.getOptionValueSource(i));this.options.filter(i=>i.implied!==void 0&&t(i.attributeName())&&e.valueFromOption(this.getOptionValue(i.attributeName()),i)).forEach(i=>{Object.keys(i.implied).filter(o=>!t(o)).forEach(o=>{this.setOptionValueWithSource(o,i.implied[o],"implied")})})}missingArgument(e){let t=`error: missing required argument '${e}'`;this.error(t,{code:"commander.missingArgument"})}optionMissingArgument(e){let t=`error: option '${e.flags}' argument missing`;this.error(t,{code:"commander.optionMissingArgument"})}missingMandatoryOptionValue(e){let t=`error: required option '${e.flags}' not specified`;this.error(t,{code:"commander.missingMandatoryOptionValue"})}_conflictingOption(e,t){let i=a=>{let c=a.attributeName(),h=this.getOptionValue(c),d=this.options.find(g=>g.negate&&c===g.attributeName()),p=this.options.find(g=>!g.negate&&c===g.attributeName());return d&&(d.presetArg===void 0&&h===!1||d.presetArg!==void 0&&h===d.presetArg)?d:p||a},o=a=>{let c=i(a),h=c.attributeName();return this.getOptionValueSource(h)==="env"?`environment variable '${c.envVar}'`:`option '${c.flags}'`},s=`error: ${o(e)} cannot be used with ${o(t)}`;this.error(s,{code:"commander.conflictingOption"})}unknownOption(e){if(this._allowUnknownOption)return;let t="";if(e.startsWith("--")&&this._showSuggestionAfterError){let o=[],s=this;do{let a=s.createHelp().visibleOptions(s).filter(c=>c.long).map(c=>c.long);o=o.concat(a),s=s.parent}while(s&&!s._enablePositionalOptions);t=ta(e,o)}let i=`error: unknown option '${e}'${t}`;this.error(i,{code:"commander.unknownOption"})}_excessArguments(e){if(this._allowExcessArguments)return;let t=this.registeredArguments.length,i=t===1?"":"s",s=`error: too many arguments${this.parent?` for '${this.name()}'`:""}. Expected ${t} argument${i} but got ${e.length}.`;this.error(s,{code:"commander.excessArguments"})}unknownCommand(){let e=this.args[0],t="";if(this._showSuggestionAfterError){let o=[];this.createHelp().visibleCommands(this).forEach(s=>{o.push(s.name()),s.alias()&&o.push(s.alias())}),t=ta(e,o)}let i=`error: unknown command '${e}'${t}`;this.error(i,{code:"commander.unknownCommand"})}version(e,t,i){if(e===void 0)return this._version;this._version=e,t=t||"-V, --version",i=i||"output the version number";let o=this.createOption(t,i);return this._versionOptionName=o.attributeName(),this._registerOption(o),this.on("option:"+o.name(),()=>{this._outputConfiguration.writeOut(`${e}
|
|
73
|
-
`),this._exit(0,"commander.version",e)}),this}description(e,t){return e===void 0&&t===void 0?this._description:(this._description=e,t&&(this._argsDescription=t),this)}summary(e){return e===void 0?this._summary:(this._summary=e,this)}alias(e){if(e===void 0)return this._aliases[0];let t=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler&&(t=this.commands[this.commands.length-1]),e===t._name)throw new Error("Command alias can't be the same as its name");let i=this.parent?._findCommand(e);if(i){let o=[i.name()].concat(i.aliases()).join("|");throw new Error(`cannot add alias '${e}' to command '${this.name()}' as already have command '${o}'`)}return t._aliases.push(e),this}aliases(e){return e===void 0?this._aliases:(e.forEach(t=>this.alias(t)),this)}usage(e){if(e===void 0){if(this._usage)return this._usage;let t=this.registeredArguments.map(i=>ad(i));return[].concat(this.options.length||this._helpOption!==null?"[options]":[],this.commands.length?"[command]":[],this.registeredArguments.length?t:[]).join(" ")}return this._usage=e,this}name(e){return e===void 0?this._name:(this._name=e,this)}helpGroup(e){return e===void 0?this._helpGroupHeading??"":(this._helpGroupHeading=e,this)}commandsGroup(e){return e===void 0?this._defaultCommandGroup??"":(this._defaultCommandGroup=e,this)}optionsGroup(e){return e===void 0?this._defaultOptionGroup??"":(this._defaultOptionGroup=e,this)}_initOptionGroup(e){this._defaultOptionGroup&&!e.helpGroupHeading&&e.helpGroup(this._defaultOptionGroup)}_initCommandGroup(e){this._defaultCommandGroup&&!e.helpGroup()&&e.helpGroup(this._defaultCommandGroup)}nameFromFilename(e){return this._name=je.basename(e,je.extname(e)),this}executableDir(e){return e===void 0?this._executableDir:(this._executableDir=e,this)}helpInformation(e){let t=this.createHelp(),i=this._getOutputContext(e);t.prepareContext({error:i.error,helpWidth:i.helpWidth,outputHasColors:i.hasColors});let o=t.formatHelp(this,t);return i.hasColors?o:this._outputConfiguration.stripColor(o)}_getOutputContext(e){e=e||{};let t=!!e.error,i,o,s;return t?(i=c=>this._outputConfiguration.writeErr(c),o=this._outputConfiguration.getErrHasColors(),s=this._outputConfiguration.getErrHelpWidth()):(i=c=>this._outputConfiguration.writeOut(c),o=this._outputConfiguration.getOutHasColors(),s=this._outputConfiguration.getOutHelpWidth()),{error:t,write:c=>(o||(c=this._outputConfiguration.stripColor(c)),i(c)),hasColors:o,helpWidth:s}}outputHelp(e){let t;typeof e=="function"&&(t=e,e=void 0);let i=this._getOutputContext(e),o={error:i.error,write:i.write,command:this};this._getCommandAndAncestors().reverse().forEach(a=>a.emit("beforeAllHelp",o)),this.emit("beforeHelp",o);let s=this.helpInformation({error:i.error});if(t&&(s=t(s),typeof s!="string"&&!Buffer.isBuffer(s)))throw new Error("outputHelp callback must return a string or a Buffer");i.write(s),this._getHelpOption()?.long&&this.emit(this._getHelpOption().long),this.emit("afterHelp",o),this._getCommandAndAncestors().forEach(a=>a.emit("afterAllHelp",o))}helpOption(e,t){return typeof e=="boolean"?(e?(this._helpOption===null&&(this._helpOption=void 0),this._defaultOptionGroup&&this._initOptionGroup(this._getHelpOption())):this._helpOption=null,this):(this._helpOption=this.createOption(e??"-h, --help",t??"display help for command"),(e||t)&&this._initOptionGroup(this._helpOption),this)}_getHelpOption(){return this._helpOption===void 0&&this.helpOption(void 0,void 0),this._helpOption}addHelpOption(e){return this._helpOption=e,this._initOptionGroup(e),this}help(e){this.outputHelp(e);let t=Number(K.exitCode??0);t===0&&e&&typeof e!="function"&&e.error&&(t=1),this._exit(t,"commander.help","(outputHelp)")}addHelpText(e,t){let i=["beforeAll","before","after","afterAll"];if(!i.includes(e))throw new Error(`Unexpected value for position to addHelpText.
|
|
74
|
-
Expecting one of '${i.join("', '")}'`);let o=`${e}Help`;return this.on(o,s=>{let a;typeof t=="function"?a=t({error:s.error,command:s.command}):a=t,a&&s.write(`${a}
|
|
75
|
-
`)}),this}_outputHelpIfRequested(e){let t=this._getHelpOption();t&&e.find(o=>t.is(o))&&(this.outputHelp(),this._exit(0,"commander.helpDisplayed","(outputHelp)"))}};function na(r){return r.map(e=>{if(!e.startsWith("--inspect"))return e;let t,i="127.0.0.1",o="9229",s;return(s=e.match(/^(--inspect(-brk)?)$/))!==null?t=s[1]:(s=e.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null?(t=s[1],/^\d+$/.test(s[3])?o=s[3]:i=s[3]):(s=e.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(t=s[1],i=s[3],o=s[4]),t&&o!=="0"?`${t}=${i}:${parseInt(o)+1}`:e})}function Vr(){if(K.env.NO_COLOR||K.env.FORCE_COLOR==="0"||K.env.FORCE_COLOR==="false")return!1;if(K.env.FORCE_COLOR||K.env.CLICOLOR_FORCE!==void 0)return!0}Gr.Command=qr;Gr.useColor=Vr});var aa=Z(we=>{"use strict";var{Argument:ia}=an(),{Command:Br}=ra(),{CommanderError:dd,InvalidArgumentError:oa}=Lt(),{Help:fd}=Fr(),{Option:sa}=Hr();we.program=new Br;we.createCommand=r=>new Br(r);we.createOption=(r,e)=>new sa(r,e);we.createArgument=(r,e)=>new ia(r,e);we.Command=Br;we.Option=sa;we.Argument=ia;we.Help=fd;we.CommanderError=dd;we.InvalidArgumentError=oa;we.InvalidOptionArgumentError=oa});it();var hu="uipath-cli/telemetry/pseudonym/v1:";var gu=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),yu=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]);function Le(r,e){return(r>>>e|r<<32-e)>>>0}function jt(r){let e=new TextEncoder().encode(r),t=e.length+9+63>>6<<6,i=new Uint8Array(t);i.set(e),i[e.length]=128;let o=new DataView(i.buffer),s=e.length*8;o.setUint32(t-8,Math.floor(s/4294967296)),o.setUint32(t-4,s>>>0);let a=yu.slice(),c=new Uint32Array(64);for(let d=0;d<t;d+=64){for(let P=0;P<16;P++)c[P]=o.getUint32(d+P*4);for(let P=16;P<64;P++){let R=c[P-15],I=c[P-2],G=(Le(R,7)^Le(R,18)^R>>>3)>>>0,H=(Le(I,17)^Le(I,19)^I>>>10)>>>0;c[P]=c[P-16]+G+c[P-7]+H>>>0}let p=a[0],g=a[1],S=a[2],$=a[3],B=a[4],V=a[5],Y=a[6],A=a[7];for(let P=0;P<64;P++){let R=(Le(B,6)^Le(B,11)^Le(B,25))>>>0,I=(B&V^~B&Y)>>>0,G=A+R+I+gu[P]+c[P]>>>0,H=(Le(p,2)^Le(p,13)^Le(p,22))>>>0,W=(p&g^p&S^g&S)>>>0,X=H+W>>>0;A=Y,Y=V,V=B,B=$+G>>>0,$=S,S=g,g=p,p=G+X>>>0}a[0]=a[0]+p>>>0,a[1]=a[1]+g>>>0,a[2]=a[2]+S>>>0,a[3]=a[3]+$>>>0,a[4]=a[4]+B>>>0,a[5]=a[5]+V>>>0,a[6]=a[6]+Y>>>0,a[7]=a[7]+A>>>0}let h="";for(let d of a)h+=d.toString(16).padStart(8,"0");return h}function _u(){try{let e=(Ui(),ze(Hi))?.createHash;if(typeof e!="function")return jt;let t=i=>e("sha256").update(i,"utf8").digest("hex");return t("abc")===jt("abc")?t:jt}catch{return jt}}var ji;function Tu(r){return ji??=_u(),ji(r)}function Je(r){return Tu(`${hu}${r}`).slice(0,32)}var Eu="@uipath/common/",xt=globalThis;function M(r){let e=typeof r=="string"?r:r.name,t=Symbol.for(Eu+e);return{get(i){return xt[t]??i},set(i){xt[t]=i},clear(){delete xt[t]},getOrInit(i,o){let s=xt[t];if(s!=null&&typeof s=="object"&&(!o||o(s)))return s;let a=i();return xt[t]=a,a}}}var Tn=M("TelemetrySuppliedArgumentValues");function En(){let r=Tn.get();return Array.isArray(r)?r:[]}var bu=4;function bn(r){let e=[],t=o=>{if(Array.isArray(o)){for(let s of o)t(s);return}typeof o=="string"&&o.length>=bu&&e.push(o)};t(r);let i={values:e};return Tn.set([...En(),i]),i}function vn(r){Tn.set(En().filter(e=>e!==r))}function xn(){let r=new Set;for(let e of En())for(let t of e.values)r.add(t);return[...r].sort((e,t)=>t.length-e.length)}var pt="[REDACTED]",vu=280,wn=4096,Sn=wn;function wt(r,e){return r.length>e?`${r.slice(0,e)}\u2026`:r}var xu=new Set(["token","tokens","secret","secrets","password","passwords","pwd","credential","credentials","auth","authentication","authorization","authority","cert","certificate","certificates"]),wu=new Set(["api","access","client","private","public","signing","encryption","session","master","shared","root","ssh","rsa","aes","hmac","oauth"]),Su=/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/gi,Cu=/\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}\b/g,ku=/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+/g,Au=/\b[A-Za-z0-9_-]{40,}\b/g,Ou=/[A-Za-z0-9+/]{16,}={1,2}(?![A-Za-z0-9+/=])/g,Pu=/[A-Za-z0-9+/]{40,}/g,Ru=/(?<![A-Za-z0-9._-])([/\\])(Users|home|Profiles)([/\\])([^/\\]+)/gi,Iu=/(^|[\s"'<>|=,;([{])(\\\\[^\s"'<>|]+)/g,Nu=/(?<![/@.\w-])(?!\d+\.\d+\.\d+\.\d+:)[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?(?:\.[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?)+:\d{1,5}\b/g,Lu=new Set(["ts","tsx","js","jsx","mjs","cjs","cts","mts","py","cs","java","go","rs","rb","php","sh","ps1","json","jsonc","yaml","yml","xml","xaml","md","txt","log","css","html","htm","csproj","nuspec","sql"]),Fu=/\bhttps?:\/\/[^\s,;]+/gi,qi=200,Bi=new RegExp([`(?<![A-Za-z0-9])'(?:[^\\
|
|
76
|
-
]|\\.){2,${qi}}?'(?![A-Za-z0-9])`,`(?<![A-Za-z0-9])"(?:[^\\
|
|
77
|
-
]|\\.){2,${qi}}?"(?![A-Za-z0-9])`].join("|"),"g"),Mu=/[{[][^{}[\]]*[:,][^{}[\]]*[\]}]/g,Du="{\u2026}",Vi="body",$u=8;function Hu(r){let e=r;for(let t=0;t<$u;t++){let i=e.replace(Mu,Vi);if(i===e)break;e=i}return e.split(Vi).join(Du)}var Uu=/[.,;:!?)\]}>'"]+$/;function Gi(r){let e=r.match(Uu)?.[0]??"";return e?[r.slice(0,-e.length),e]:[r,""]}function ju(r){try{let e=new URL(r);return`${e.protocol}//${e.host}`}catch{return`url#${Je(r)}`}}function qt(r,e=vu){let t=wt(r,Sn);return t=t.replace(ku,()=>pt),t=t.replace(Fu,i=>{let[o,s]=Gi(i);return`${ju(o)}${s}`}),t=t.replace(Ru,(i,o,s,a)=>`${o}${s}${a}<user>`),t=t.replace(Iu,(i,o,s)=>{let[a,c]=Gi(s);return`${o}unc#${Je(a)}${c}`}),t=t.replace(Cu,i=>`email#${Je(i)}`),t=t.replace(Su,i=>`uuid#${Je(i)}`),t=t.replace(Nu,i=>{let o=i.lastIndexOf(":"),s=i.slice(0,o),a=s.slice(s.lastIndexOf(".")+1).toLowerCase();return Lu.has(a)?i:`host#${Je(s)}:${i.slice(o+1)}`}),t=t.replace(Ou,()=>pt),t=t.replace(Pu,i=>i.includes("+")?pt:i),t=t.replace(Au,()=>pt),wt(t,e)}function Cn(r){return qt(wt(r,Sn).replace(Bi,e=>`${e[0]}<redacted>${e[0]}`))}var qu=/^([A-Z]+) (\/.*)$/s;function Wi(r){let e=qu.exec(r);return e?`${e[1]} ${ot(e[2])}`:ot(r)}function ot(r){let e=Hu(wt(r,Sn)).replace(Bi,t=>`${t[0]}<redacted>${t[0]}`);for(let t of xn())e=e.split(t).join(pt);return qt(e)}var Vu=new Set(["message","errormessage","errmessage","error_message","msg","detail","details","reason","instructions","warning"]);function Gu(r,e){return Vu.has(r.toLowerCase())||/['"{[]/.test(e)}function kn(r){let e=new Error(ot(r.message??""));return e.name=r.name,e.stack=typeof r.stack=="string"?Bu(r.stack):void 0,e}function Bu(r){let e=wt(r,wn),t=e.indexOf(`
|
|
78
|
-
`);return t===-1?ot(e):`${ot(e.slice(0,t))}
|
|
79
|
-
${qt(e.slice(t+1),wn)}`}function Wu(r){return r.replace(/([a-z0-9])([A-Z])/g,"$1 $2").replace(/([A-Z]+)([A-Z][a-z])/g,"$1 $2").split(/[\s._-]+/).map(e=>e.toLowerCase()).filter(Boolean)}function An(r){let e=Wu(r);for(let t=0;t<e.length;t++){let i=e[t];if(xu.has(i))return!0;if(i==="key"||i==="keys"){let o=e[t-1];if(o&&wu.has(o))return!0}}return!1}function Yi(r,e){if(e!=null)return An(r)?pt:typeof e=="boolean"||typeof e=="number"?e:typeof e!="string"?"[OBJECT]":Gu(r,e)?ot(e):qt(e)}function mt(r){let e={};for(let[t,i]of Object.entries(r)){let o=Yi(t,i);o!==void 0&&(e[t]=o)}return e}var zi=500,Yu="\u2026(truncated)",zu="[REDACTED]";function Ki(r){return r.length>zi?`${r.slice(0,zi)}${Yu}`:r}function Ku(r,e){return r.length>0&&An(r)?zu:e}function Zi(r){if(typeof r!="object"||r===null)return String(r);let e;try{e=r.message}catch{e=void 0}if(typeof e=="string"&&e.length>0)return Ki(e);try{let t=JSON.stringify(r,Ku);if(t!==void 0)return Ki(t)}catch{}return String(r)}function Qi(r){return r instanceof Error?r:new Error(Zi(r),{cause:r})}function Ji(r){return r!==null&&typeof r=="object"&&typeof r.then=="function"}function ie(r){if(Ji(r))return Xi(r);try{let e=r();return Ji(e)?Xi(e):[void 0,e]}catch(e){return[Qi(e),void 0]}}function Xi(r){return Promise.resolve(r).then(e=>[void 0,e]).catch(e=>[Qi(e),void 0])}function On(r){process.exitCode=r}it();function Xu(){let[r,e]=ie(()=>(Vt(),ze(Pn)));return r||typeof e?.AsyncLocalStorage!="function"?{getStore:()=>{},run:(t,i)=>i()}:new e.AsyncLocalStorage}var Zu=M("OutputStorage"),Qu=M("OutputSink"),el=Zu.getOrInit(Xu,r=>"getStore"in r),tl={writeOut:r=>process.stdout.write(r),writeErr:r=>process.stderr.write(r),writeLog:r=>process.stdout.write(r),capabilities:{isInteractive:!1,canReadInput:!1,supportsColor:!1,outputWidth:80}};function be(){return el.getStore()??Qu.get()??tl}var ro=M("logFilePath");function eo(r){ro.set(r)}function Rn(){return ro.get("")}var to=3,Gt=class r{__brand="SimpleLogger";level;logFilePath;fileLoggingEnabled;pendingWrites=Promise.resolve();pendingInit=Promise.resolve();constructor(){this.level=r.resolveLevel(),this.logFilePath="",this.fileLoggingEnabled=!1}static getInstance(){return no.getOrInit(()=>new r,e=>"__brand"in e&&e.__brand==="SimpleLogger")}static resetInstance(){no.clear()}static isNode=typeof process<"u"&&!!process.versions?.node;static resolveLevel(){if(r.isNode){let i=r.parseLevel(process.env?.UIP_LOG_LEVEL??"");if(i!==void 0)return i;let o=process.env?.DEBUG;return o==="true"||o==="1"?0:to}let[e,t]=ie(()=>typeof localStorage<"u"&&!!localStorage.getItem("debug"));return!e&&t?0:to}static parseLevel(e){switch(e.toLowerCase()){case"debug":return 0;case"info":return 1;case"warn":return 2;case"error":return 3;default:return}}format(e,t){return t.length===0?`${e}
|
|
80
|
-
`:`${e} ${t.map(String).join(" ")}
|
|
81
|
-
`}isFileLoggingActive(){return this.fileLoggingEnabled||!!Rn()}writeToFile(e){let t=this.logFilePath||Rn();if(!t)return;let i=new Date().toISOString();this.pendingWrites=Promise.all([this.pendingWrites,this.pendingInit]).then(()=>He().appendFile(t,`${i} ${e}`).catch(()=>{}))}write(e){this.isFileLoggingActive()?this.writeToFile(e):be().writeErr(e)}debug(e,...t){if(this.level>0)return;let i=this.format(`[DEBUG] ${e}`,t);this.write(i)}info(e,...t){if(this.level>1)return;let i=this.format(e,t);this.write(i)}warn(e,...t){if(this.level>2)return;let i=this.format(`[WARN] ${e}`,t);this.write(i)}error(e,...t){if(this.level>3)return;let i=this.format(`[ERROR] ${e}`,t);this.write(i)}report(e){let t=this.format(e,[]);this.write(t)}getLevel(){return this.level}setLevel(e){this.level=e}setFileLogging(e){this.fileLoggingEnabled=e,e||(this.logFilePath="",eo(""))}setLogFile(e){if(this.logFilePath=e,eo(e),!e)return;this.fileLoggingEnabled=!0;let t=He();this.pendingInit=(async()=>{let[i]=await ie((async()=>{await t.mkdir(t.path.dirname(e)),await t.writeFile(e,"")})());i&&(this.fileLoggingEnabled=!1)})()}async flushFile(){await this.pendingInit,await this.pendingWrites}getLogFilePath(){return this.logFilePath||Rn()}handleLog=e=>{let t=[];e.source&&t.push(`[${e.source}]`),e.sourceTarget&&t.push(`[${e.sourceTarget}]`),t.push(e.message);let i=t.join(" ");switch(e.logLevel){case"Debug":this.debug(i);break;case"Information":this.info(i);break;case"Warning":this.warn(i);break;case"Error":this.error(i);break;default:this.info(i);break}}},no=M(Gt),oe=Gt.getInstance();function In(){return oe.getLogFilePath()}var nr=M("YamlCodec"),rr=M("JmespathCodec");async function Xo(r){let e=[];r.yaml&&nr.get()===void 0&&e.push(Promise.resolve().then(()=>(Ko(),zo)).then(t=>{nr.set(t)})),r.filter&&rr.get()===void 0&&e.push(Promise.resolve().then(()=>pn(Jo(),1)).then(t=>{rr.set(t)})),await Promise.all(e)}function Zo(){return nr.get()}function Qo(){return rr.get()}var vl=M("OutputFormat"),kp=M("OutputFormatExplicit"),Ap=M("HelpRequested"),xl=M("OutputFilter");function st(){return vl.get("json")}function ht(){return xl.get()}var Yt=M("CommandTelemetryFailure"),wl=new Set(["authentication_required","permission_denied"]),Sl=new Set(["invalid_argument"]),Cl=new Set(["network_error","rate_limited","server_error","not_found","method_not_allowed"]),kl=new Set(["timeout"]),Al=new Set(["ECONNREFUSED","ECONNRESET","ENOTFOUND","EAI_AGAIN","EPIPE","EHOSTUNREACH","ENETUNREACH","EAI_FAIL"]),Ol=new Set(["ETIMEDOUT","ESOCKETTIMEDOUT"]),Pl=new Set(["SELF_SIGNED_CERT_IN_CHAIN","DEPTH_ZERO_SELF_SIGNED_CERT","UNABLE_TO_VERIFY_LEAF_SIGNATURE","UNABLE_TO_GET_ISSUER_CERT_LOCALLY","UNABLE_TO_GET_ISSUER_CERT","CERT_HAS_EXPIRED","CERT_UNTRUSTED","ERR_TLS_CERT_ALTNAME_INVALID"]),Rl=new Set(["MODULE_NOT_FOUND","ERR_MODULE_NOT_FOUND"]),Il=new Set(["TypeError","ReferenceError","SyntaxError","RangeError"]);function ir(r){return r!==null&&typeof r=="object"}function At(r,e){if(!ir(r))return;let t=r[e];return typeof t=="string"?t:void 0}function Nl(r,e){if(!ir(r))return;let t=r[e];return typeof t=="number"?t:void 0}function zt(r,e){let t=r;for(let i=0;i<5&&t!==null&&typeof t=="object";i++){let o=At(t,e);if(o)return o;t=t.cause}}function es(r){return zt(r,"code")}function Ll(r){return es(r)!=="ENOENT"?!1:zt(r,"syscall")?.startsWith("spawn")===!0}function Fl(r,e,t){if(e===130)return!0;if(!ir(r))return!1;if(Nl(r,"exitCode")===130)return!0;let i=At(r,"name");return i==="ExitPromptError"||i==="AbortError"&&t?.aborted?!0:At(r,"message")?.includes("SIGINT")===!0}function Ml(r,e){if(r.recordedFailure?.terminalSignal)return r.recordedFailure.terminalSignal;let t=zt(r.error,"terminalSignal")??zt(r.error,"signal");return t||(e==="cancelled"?"SIGINT":void 0)}function Dl(r){return r===401||r===403?"auth":r===400||r===409||r===422?"validation":r===408?"timeout":"network_http"}function $l(r){switch(r){case"AuthenticationError":return"auth";case"ValidationError":return"validation";case"TimeoutError":return"timeout";default:return}}function Hl(r){if(r){if(wl.has(r))return"auth";if(Sl.has(r))return"validation";if(kl.has(r))return"timeout";if(Cl.has(r))return"network_http"}}function Ul(r){let e=es(r);if(e){if(e.startsWith("commander."))return"validation";if(Al.has(e)||Pl.has(e))return"network_http";if(Ol.has(e))return"timeout";if(Rl.has(e)||Ll(r))return"missing_dependency"}if(At(r,"message")?.includes("fetch failed")===!0)return"network_http";let i=At(r,"name");if(i&&Il.has(i))return"internal"}function jl(r){let e=r.recordedFailure;if(e?.errorClass)return e.errorClass;let t=e?.context?.httpStatus;return t!==void 0?Dl(t):$l(e?.result)??Hl(e?.errorCode)??Ul(r.error)??"unknown"}function ts(r){Yt.set(r)}function ns(){Yt.clear()}function rs(){let r=Yt.get();return Yt.clear(),r}function is(r){let e=Fl(r.error,r.exitCode,r.pollSignal),t=r.recordedFailure?.terminalOutcome??(r.exitCode===0?"success":e?"cancelled":"failure"),i=t==="success"||t==="no_op"?void 0:t==="cancelled"?"user_cancelled":jl(r),o=Ml(r,t);return{exit_code:r.exitCode,terminal_outcome:t,...i?{error_class:i}:{},...o?{terminal_signal:o}:{}}}var or={Error:"uip.error",ShipSucceeded:"uip.ship.succeeded"};Kt();it();Kt();function as(r,e){if(process.platform!=="win32")return"";let[t,i]=ie(()=>sr("reg",["query",r,"/v",e],{encoding:"utf-8",stdio:["pipe","pipe","pipe"]}));return t?"":i.match(new RegExp(`${e}\\s+REG_SZ\\s+(.+)`))?.[1]?.trim()??""}var Xt=class{analyticsUniqueId;constructor(){this.analyticsUniqueId=as("HKCU\\Software\\UiPath","AnalyticsUniqueId")}enrich(e){return{...e,...this.analyticsUniqueId?{analyticsUniqueId:this.analyticsUniqueId}:{}}}async trackEvent({name:e,properties:t}){oe.debug(Jt("Event",e,this.enrich(t)))}async trackException({error:e,properties:t}){oe.error(Jt("Exception",e.message,this.enrich({...t,stack:e.stack})))}async trackRequest({name:e,durationMs:t,success:i,properties:o}){oe.debug(Jt("Request",e,this.enrich({...o,duration:`${t}ms`,success:i})))}async trackDependency({name:e,type:t,durationMs:i,success:o,properties:s}){oe.debug(Jt("Dependency",e,this.enrich({...s,type:t,duration:`${i}ms`,success:o})))}};function Jt(r,e,t){let i=`[Telemetry] [${r}] ${e}`;if(t&&Object.keys(t).length>0){let o=Object.entries(t).filter(([s,a])=>a!==void 0).map(([s,a])=>`${s}=${a}`).join(", ");o&&(i+=` | ${o}`)}return i}var Yl=[{envVar:"CLAUDECODE",value:"1",id:"claude-code"},{envVar:"CURSOR_AGENT",value:"1",id:"cursor"},{envVar:"GEMINI_CLI",value:"1",id:"gemini-cli"},{envVar:"CODEX_THREAD_ID",id:"codex"},{envVar:"CODEX_SANDBOX",id:"codex"},{envVar:"AUGMENT_AGENT",value:"1",id:"augment"},{envVar:"CLINE_ACTIVE",value:"true",id:"cline"}];function us(r){for(let t of Yl){let i=r[t.envVar];if(t.value!==void 0){if(i===t.value)return t.id}else if(i)return t.id}let e=r.AGENT;if(e){if(e==="1"||e==="true")return"unknown";if(e.length<=32)return e.toLowerCase()}}var zl=M("TelemetryExecutionContextAuthSignal"),ve=r=>r!==void 0&&r!==""&&r!=="0"&&r.toLowerCase()!=="false",Kl=(r,e)=>r?.toLowerCase()===e,Jl=[{provider:"github_actions",matches:r=>ve(r.GITHUB_ACTIONS),isScheduler:r=>r.GITHUB_EVENT_NAME==="schedule"},{provider:"azure_devops",matches:r=>ve(r.TF_BUILD),isScheduler:r=>Kl(r.BUILD_REASON,"schedule")},{provider:"gitlab",matches:r=>ve(r.GITLAB_CI),isScheduler:r=>r.CI_PIPELINE_SOURCE==="schedule"},{provider:"circleci",matches:r=>ve(r.CIRCLECI),isScheduler:r=>r.CIRCLE_PIPELINE_TRIGGER_SOURCE==="scheduled_pipeline"},{provider:"jenkins",matches:r=>ve(r.JENKINS_URL)||ve(r.JENKINS_HOME)},{provider:"teamcity",matches:r=>ve(r.TEAMCITY_VERSION)},{provider:"buildkite",matches:r=>ve(r.BUILDKITE),isScheduler:r=>r.BUILDKITE_SOURCE==="schedule"},{provider:"bitbucket",matches:r=>ve(r.BITBUCKET_BUILD_NUMBER)},{provider:"travis",matches:r=>ve(r.TRAVIS)},{provider:"appveyor",matches:r=>ve(r.APPVEYOR)},{provider:"generic",matches:r=>ve(r.CI)}];function Xl(){return typeof process>"u"?{}:process.env}function Zl(){return typeof process>"u"?!1:!!(process.stdout?.isTTY||process.stdin?.isTTY||process.stderr?.isTTY)}function Ql(r){let e=Jl.find(t=>t.matches(r));if(e)return{executionContext:e.isScheduler?.(r)?"scheduler":"ci",ciProvider:e.provider}}function ls(r={}){let e=r.env??Xl(),t=Ql(e);return t||(r.agent??us(e)?{executionContext:"agent"}:(r.authSignal??zl.get())==="service_account"?{executionContext:"service_account"}:r.isTty??Zl()?{executionContext:"manual"}:{executionContext:"unknown"})}function ar(){let r=ls();return{execution_context:r.executionContext,...r.ciProvider?{ci_provider:r.ciProvider}:{}}}Vt();var Ot=class{storage=new St;run(e,t){return this.storage.run(e,t)}getContext(){return this.storage.getStore()}};var cs="TRACEPARENT",ec=/^00-([0-9a-f]{32})-([0-9a-f]{16})-[0-9a-f]{2}$/;function tc(){return globalThis.process?.env}function ds(r){if(!r)return;let e=ec.exec(r.trim().toLowerCase());if(!e)return;let[,t,i]=e;if(!(/^0+$/.test(t)||/^0+$/.test(i)))return{traceId:t,parentSpanId:i}}function Pt(){return ds(tc()?.[cs])}var ms="UIPATH_SESSION_ID",nc=64,rc=32,ur="session_id_source",ic=/\p{Cc}/gu,oc=[{envVar:"CLAUDE_CODE_SESSION_ID",source:"claude-code"},{envVar:"CODEX_THREAD_ID",source:"codex"},{envVar:"ANTIGRAVITY_TRAJECTORY_ID",source:"antigravity"},{envVar:"TERM_SESSION_ID",source:"terminal"},{envVar:"WT_SESSION",source:"terminal"}],fs=M("TelemetrySession"),ps=M("TelemetryOperationId");function hs(){return globalThis.process?.env}function gs(r){return typeof r!="string"&&typeof r!="number"&&typeof r!="boolean"?void 0:String(r).replace(ic,"").trim().slice(0,nc)||void 0}function ys(){return gs(hs()?.[ms])}function sc(r){for(let e of oc){let t=gs(r[e.envVar]);if(t)return{id:t,source:e.source}}}function ac(){let r=new Uint8Array(rc/2);crypto.getRandomValues(r);let e="";for(let t of r)e+=t.toString(16).padStart(2,"0");return{id:e,source:"random"}}function uc(){let r=fs.get();if(r)return r;let e=ys(),t=e?{id:e,source:"declared"}:sc(hs()??{})??ac();return fs.set(t),t}function lr(){return uc().source}function yt(){let r=ps.get();if(r)return r;let t=Pt()?.traceId??crypto.randomUUID().replaceAll("-","");return ps.set(t),t}var lc=M("TelemetryDefaultProps");function Rt(){return lc.get()}function _t(){let r=performance.now();return{startedAt:new Date(performance.timeOrigin+r),elapsedMs:()=>performance.now()-r}}var It=class{constructor(e,t){this.telemetryProvider=e;this.contextStorage=t}telemetryProvider;contextStorage;operationId;defaultProperties;setOperationId(e){this.operationId=e}setProvider(e){this.telemetryProvider=e}setDefaultProperties(e){this.defaultProperties=e===void 0?void 0:{...this.defaultProperties,...e}}trackEvent(e,t){this.telemetryProvider.trackEvent({name:Cn(e),properties:this.enrichProperties(t),...this.leafCorrelation()})}trackException(e,t,i){this.telemetryProvider.trackException({error:kn(e),properties:this.enrichProperties(t),...this.leafCorrelation(i)})}async trackRequest(e,t,i){let o=this.getActiveContext(),s=o?.operationId??this.operationId??yt(),a=o?o.id:this.inboundParentIdFor(s),c=_t(),h={operationId:s,...a!==void 0?{parentId:a}:{},id:this.generateId(),startedAt:c.startedAt};try{let d=await this.contextStorage.run(h,t),p=c.elapsedMs();return await this.telemetryProvider.trackRequest(this.spanFor(e,p,!0,i,h)),d}catch(d){let p=c.elapsedMs(),g=d instanceof Error?d:new Error(String(d));throw await this.telemetryProvider.trackRequest(this.spanFor(e,p,!1,{...i,errorMessage:g.message},h)),d}}trackRequestResult(e,t,i,o,s){let a=s??{operationId:this.operationId??yt(),id:this.generateId()};this.telemetryProvider.trackRequest(this.spanFor(e,t,i,o,a))}createRequestContext(){let e=this.operationId??yt(),t=this.inboundParentIdFor(e);return{operationId:e,...t!==void 0?{parentId:t}:{},id:this.generateId(),startedAt:_t().startedAt}}inboundParentIdFor(e){let t=Pt();return t&&t.traceId===e?t.parentSpanId:void 0}runWithContext(e,t){return this.contextStorage.run(e,t)}createDependencyContext(){let e=this.getActiveContext();if(e)return{operationId:e.operationId,parentId:e.id,id:this.generateId(),startedAt:_t().startedAt}}trackDependencyResult(e,t,i,o,s,a,c){this.telemetryProvider.trackDependency({...this.spanFor(Wi(e),i,o,s,a),type:t,...c!==void 0?{resultCode:c}:{}})}async trackDependencyOperation(e,t,i,o){let s=_t(),a=this.getActiveContext(),c=a!==void 0?{operationId:a.operationId,parentId:a.id,id:this.generateId(),startedAt:s.startedAt}:{...this.createRequestContext(),startedAt:s.startedAt};try{let h=await this.contextStorage.run(c,i),d=s.elapsedMs();return await this.telemetryProvider.trackDependency({...this.spanFor(e,d,!0,o,c),type:t}),h}catch(h){let d=s.elapsedMs(),p=h instanceof Error?h:new Error(String(h));throw await this.telemetryProvider.trackDependency({...this.spanFor(e,d,!1,{...o,errorMessage:p.message},c),type:t}),h}}getActiveContext(){return this.contextStorage.getContext()}leafCorrelation(e){let t=e??this.getActiveContext();return{operationId:t?.operationId??this.operationId??yt(),...t!==void 0?{parentId:t.id}:{}}}spanFor(e,t,i,o,s){return{name:Cn(e),durationMs:t,success:i,properties:this.enrichProperties(o),operationId:s.operationId,...s.parentId!==void 0?{parentId:s.parentId}:{},id:s.id,...s.startedAt!==void 0?{startedAt:s.startedAt}:{}}}enrichProperties(e){let t=Rt();return{...ar(),...t,...this.defaultProperties,...mt(e??{}),[ur]:lr()}}generateId(){let e=new Uint8Array(8),t="";do{crypto.getRandomValues(e),t="";for(let i of e)t+=i.toString(16).padStart(2,"0")}while(/^0+$/.test(t));return t}};var cc="UIP_TIMINGS";function dc(){let[r,e]=ie(()=>(Vt(),ze(Pn)));return r||typeof e?.AsyncLocalStorage!="function"?{getStore:()=>{},run:(t,i)=>i()}:new e.AsyncLocalStorage}var fc=M("TimingStorage"),pc=M("Timings"),mc=M("TimingsRootStarted"),hc=M("TimingsLongLivedHost"),gc=fc.getOrInit(dc,r=>"getStore"in r);function yc(r){return{baseline:r,httpMs:0,httpCalls:0}}function Zt(){let r=gc.getStore();if(r)return r;let e=_c();return e!==void 0?e:yc(Tc()?0:performance.now())}function _c(){let r=pc.get();return r!==void 0&&"httpCalls"in r&&!r.finished?r:void 0}function Tc(){return!mc.get(!1)&&!hc.get(!1)}function _s(){if(typeof process>"u")return!1;let r=process.env?.[cc];if(r===void 0)return!1;let e=r.trim().toLowerCase();return e==="1"||e==="true"}function Ts(){return new Date(performance.timeOrigin+Zt().baseline)}function Es(){return performance.now()-Zt().baseline}function bs(){_s()&&(Zt().commandStart=performance.now())}function vs(r){_s()&&(Zt().commandMs=r)}var Dm=M("ProxyAuthHttpsAgent");var Bm=M("TelemetryProvider");it();var Qm=M("TelemetrySidecarEntry");var eh=4320*60*1e3;var Ss=M("TelemetryService"),gh=atob("SW5zdHJ1bWVudGF0aW9uS2V5PTliZDM3NDgyLTgxMGUtNDQyYS1hYWE2LWQzOGVmNjVjNjY3NDtJbmdlc3Rpb25FbmRwb2ludD1odHRwczovL3dlc3RldXJvcGUtNS5pbi5hcHBsaWNhdGlvbmluc2lnaHRzLmF6dXJlLmNvbS87TGl2ZUVuZHBvaW50PWh0dHBzOi8vd2VzdGV1cm9wZS5saXZlZGlhZ25vc3RpY3MubW9uaXRvci5henVyZS5jb20vO0FwcGxpY2F0aW9uSWQ9MzU2OTdlZjEtOGJkMC00ZjE5LWEyN2MtZDg3Y2NhYzY2ZDJj");function vc(){let r=Ss.get();if(r&&typeof r=="object"&&"trackEvent"in r&&typeof r.trackEvent=="function")return r}function xc(r){Ss.set(r)}var Qt;function wc(){let r=vc();return r||(Qt||(Qt=new It(new Xt,new Ot),xc(Qt)),Qt)}var xe=new Proxy({},{get(r,e){let t=wc(),i=t[e];return typeof i=="function"?i.bind(t):i}});var Sc={red:"\x1B[31m",dim:"\x1B[2m"},Cc="\x1B[0m";function Is(r,e){return e?`${Sc[e]}${r}${Cc}`:r}var kc=["invalid_argument","authentication_required","permission_denied","local_permission_denied","not_found","rate_limited","network_error","timeout","server_error","method_not_allowed","configuration_error","unknown_error"],Ac=["RetryWillNotFix","RetryLater","RetryAfter1Second","RetryAfter10Seconds","RetryAfter30Seconds","RetryAfter60Seconds"],Oc=new Set(kc),Pc=new Set(Ac);function Ns(r){return typeof r=="string"&&Oc.has(r)}function Ls(r){return typeof r=="string"&&Pc.has(r)}var ye={Success:"Success",Failure:"Failure",ConfigError:"ConfigError",AuthenticationError:"AuthenticationError",ValidationError:"ValidationError",TimeoutError:"TimeoutError"},nn={Success:0,Failure:1,ConfigError:1,AuthenticationError:2,ValidationError:3,TimeoutError:4};function Fs(r){return r.replace(/[\u0080-\uffff]/g,e=>`\\u${e.charCodeAt(0).toString(16).padStart(4,"0")}`)}function pr(r){return process.platform==="win32"&&!r.capabilities.isInteractive}function rn(r){if(r===null||typeof r!="object")return!1;let e=Object.getPrototypeOf(r);return e===Object.prototype||e===null}function Cs(r){if(Array.isArray(r)||!rn(r))return null;let e=Object.values(r);if(e.length===0)return null;let t=null,i=!1;for(let o of e)if(Array.isArray(o)){if(t!==null)return null;t=o}else{if(o!==null&&typeof o=="object")return null;i=!0}return t===null||!i?null:t}function Rc(r){if(!r)return r;if(/[_\-\s]/.test(r)){let[e,...t]=r.split(/[_\-\s]+/).filter(Boolean);return e?[cr(e),...t.map(i=>{let o=cr(i);return o.charAt(0).toUpperCase()+o.slice(1)})].join(""):r}return cr(r)}function cr(r){return/^[A-Z0-9]+$/.test(r)?r.toLowerCase():r.replace(/^[A-Z]+(?=[A-Z][a-z]|\d|$)|^[A-Z]/,e=>e.toLowerCase())}function gr(r){let e=Rc(r);return e&&e.charAt(0).toUpperCase()+e.slice(1)}function Ms(r,e){if(!(typeof r!="object"||r===null)&&!e.has(r)){e.add(r);for(let t of Array.isArray(r)?r:Object.values(r))Ms(t,e)}}function Nt(r,e,t){if(t?.mode==="skip"&&typeof r=="object"&&r!==null&&t.refs.has(r))return r;if(Array.isArray(r))return r.map(o=>Nt(o,e,t));if(!rn(r))return r;let i={};for(let[o,s]of Object.entries(r)){let a=gr(o);if(e?.has(a)){i[a]=s,t?.mode==="collect"&&Ms(s,t.refs);continue}i[a]=Nt(s,e,t)}return i}function en(r,e,t){return Nt(r,e,t)}function Ic(r){if(Array.isArray(r))return new Set(r.map(gr))}function dr(r){let e={};for(let[t,i]of Object.entries(r)){let o=gr(t);e[o]=o==="Data"?i:Nt(i)}return e}function Ds(r,e="json",t,i=!1,o){if(!r){t("Empty response object. No data to display.");return}switch(e){case"json":{let s=JSON.stringify(r,null,2);t(i?Fs(s):s);break}case"yaml":t(Lc(r));break;case"plain":{if("Data"in r&&r.Data!=null)(Cs(r.Data)??(Array.isArray(r.Data)?r.Data:[r.Data])).forEach(c=>{let h=Object.values(c).map(d=>d??"").join(" ");t(h)});else{let s=Object.values(r).map(a=>a??"").join(" ");t(s)}break}default:{let s="Data"in r&&r.Data!=null,a=s?Cs(r.Data):null,c=a||(Array.isArray(r.Data)?r.Data:null);if(s&&!(c!==null&&c.length===0)){let h=r.Log;c!==null?Hs(c,t,h,void 0,o):$s(r.Data,t,h)}else mr([{...r}],t);break}}}function ks(r,e="json",t){let i=be(),o=i.capabilities.isInteractive&&i.capabilities.supportsColor?t:void 0;Ds(r,e,s=>i.writeOut(`${s}
|
|
82
|
-
`),pr(i),o)}function Tt(r){return r!=null&&typeof r=="object"?JSON.stringify(r):String(r??"")}function Nc(r,e){if(r.length<=e)return[r];let t=[];for(let i=0;i<r.length;i+=e)t.push(r.substring(i,i+e));return t}function mr(r,e,t,i){if(r.length===0)return;let o=Object.keys(r[0]).filter(c=>!["code","log"].includes(c.toLowerCase())),s=o.map(c=>Math.max(c.length,...r.map(h=>Tt(h[c]).length))),a=o.map((c,h)=>c.padEnd(s[h])).join(" | ");e(a),e(o.map((c,h)=>"-".repeat(s[h])).join("-|-")),r.forEach(c=>{let h=o.map((d,p)=>Tt(c[d]).padEnd(s[p])).join(" | ");e(Is(h,i?.(c)))}),t&&(e(""),e(`Log: ${t}`))}function As(r){return Array.isArray(r)&&r.length>0&&r.every(rn)}function Os(r){return rn(r)&&Object.keys(r).length>0}var fr=" ";function $s(r,e=console.log,t){let i=Object.keys(r).filter(d=>!["code","log"].includes(d.toLowerCase()));if(i.length===0)return;let o=d=>As(d)||Os(d),s=i.filter(d=>!o(r[d])),a=s.length>0?Math.max(...s.map(d=>d.length)):0,c=process.stdout.columns||120,h=Math.max(c-fr.length,1);i.forEach(d=>{let p=r[d];if(As(p)){e(`${d}:`),Hs(p,S=>e(`${fr}${S}`),void 0,h);return}if(Os(p)){e(`${d}:`),$s(p,S=>e(`${fr}${S}`));return}let g=d.padEnd(a);e(`${g} | ${Tt(p)}`)}),t&&(e(""),e(`Log: ${t}`))}function Hs(r,e=console.log,t,i,o){if(r.length===0)return;let s=Object.keys(r[0]).filter(A=>!["code","log"].includes(A.toLowerCase()));if(s.length===0)return;if(!process.stdout.isTTY){mr(r,e,t,o);return}let a=s.map(A=>Math.max(A.length,...r.map(P=>Tt(P[A]).length))),c=(s.length-1)*3,h=a.reduce((A,P)=>A+P,0)+c,d=i??(process.stdout.columns||120);if(h<=d){mr(r,e,t,o);return}let p=h-d,g=10,S=s.map(A=>Math.max(A.length,g)),$=-1,B=1/0;for(let A=0;A<s.length;A++){if(a[A]-S[A]<p)continue;let R=a[A]-p,I=0;for(let G of r){let H=Tt(G[s[A]]).length;H>R&&(I+=Math.ceil(H/R)-1)}I<B&&(B=I,$=A)}let V=[...a];if($!==-1)V[$]=a[$]-p;else{let A=p,P=s.map((R,I)=>({index:I,potential:a[I]-S[I]})).filter(R=>R.potential>0).sort((R,I)=>I.potential-R.potential);for(let R of P){if(A<=0)break;let I=Math.min(A,R.potential);V[R.index]-=I,A-=I}}let Y=s.map((A,P)=>A.padEnd(V[P])).join(" | ");e(Y),e(s.map((A,P)=>"-".repeat(V[P])).join("-|-")),r.forEach(A=>{let P=o?.(A),R=s.map((G,H)=>Nc(Tt(A[G]),V[H])),I=Math.max(...R.map(G=>G.length));for(let G=0;G<I;G++){let H=s.map((W,X)=>(G<R[X].length?R[X][G]:"").padEnd(V[X])).join(" | ");e(Is(H,P))}}),t&&(e(""),e(`Log: ${t}`))}function Lc(r){let e=Zo();if(!e)throw new Error("YAML output requested before the YAML codec was loaded. Call loadOutputCodecsAsync({ yaml: true }) first.");return e.dump(r)}function Fc(){let r=Qo();if(!r)throw new Error("An --output-filter was applied before the JMESPath codec was loaded. Call loadOutputCodecsAsync({ filter: true }) first.");return r}var hr=class extends Error{__brand="FilterEvaluationError";filter;errorCode="invalid_argument";instructions;retry="RetryWillNotFix";result=ye.ValidationError;constructor(e,t){let i=t instanceof Error?t.message:String(t);super(`Filter '${e}' failed to evaluate: ${i}`),this.name="FilterEvaluationError",this.filter=e,this.instructions=`The --output-filter expression '${e}' failed at evaluation time. Note that --output-filter operates on the 'Data' field of the envelope, not the full object. For example, on a list result use 'length(@)' instead of 'Data | length(@)'.`}},tn=class extends Error{__brand="FilterImplicitLimitError";errorCode="invalid_argument";instructions;retry="RetryWillNotFix";result=ye.ValidationError;constructor(e){super(`--output-filter requires an explicit --limit: this command defaults to --limit ${e}, so the filter would silently apply to only the first ${e} records.`),this.name="FilterImplicitLimitError",this.instructions="Pass --limit <n> to choose how many records the filter applies to. To filter over all records, pass the command's maximum accepted --limit (see the option's description in --help)."}};function Ps(r,e){let t=Fc(),i;try{i=t.search(r,e)}catch(o){throw new hr(e,o)}if(i==null)return[];if(Array.isArray(i)){if(i.length>0&&typeof i[0]!="object"){let o=e.match(/\.(\w+)$/),s=o?o[1]:"Value";return i.map(a=>({[s]:a}))}return i}return typeof i=="object"?i:{Value:i}}function Mc(r){switch(r){case ye.AuthenticationError:return"authentication_required";case ye.ConfigError:return"configuration_error";case ye.ValidationError:return"invalid_argument";case ye.TimeoutError:return"timeout";default:return"unknown_error"}}function Dc(r){let e=/^HTTP\s+(\d{3})(?::|\s|-|$)/i.exec(r.trim());if(!e)return;let t=Number(e[1]);return Number.isInteger(t)&&t>=100&&t<=599?t:void 0}function $c(r){if(r!==void 0){if(r===400||r===409||r===422)return"invalid_argument";if(r===401)return"authentication_required";if(r===403)return"permission_denied";if(r===404)return"not_found";if(r===405)return"method_not_allowed";if(r===408)return"timeout";if(r===429)return"rate_limited";if(r>=500&&r<600)return"server_error"}}var Rs=/(?:\b|\()(?:EACCES|EPERM|EROFS)(?::\s|\))/;function Hc(r){if(r.Result===ye.Failure){let e=r.Context?.httpStatus??Dc(r.Message),t=$c(e);if(t)return t;if(e===void 0&&(Rs.test(r.Message)||Rs.test(r.Instructions)))return"local_permission_denied"}return Mc(r.Result)}function Uc(r){switch(r){case"network_error":case"rate_limited":case"server_error":case"timeout":return"RetryLater";default:return"RetryWillNotFix"}}var on;(s=>{function r(a,c){a.Log??=In()||void 0;let h=c?.preserveDataKeys!==!0,d=Ic(c?.preserveDataKeys),p=d&&{refs:new Set,mode:"collect"};h&&(a.Data=en(a.Data,d,p));let g=ht();if(g){let S=Ps(a.Data,g);a.Data=h?en(S,d,p&&{refs:p.refs,mode:"skip"}):S}ks(dr(a),st(),c?.tableRowStyle)}s.success=r;function e(a){a.Log??=In()||void 0,a.ErrorCode??=Hc(a),a.Retry??=Uc(a.ErrorCode);let c=nn[a.Result]??1;On(c),ts({result:a.Result,errorCode:a.ErrorCode,retry:a.Retry,message:a.Message,context:a.Context,exitCode:c,errorClass:a.TelemetryErrorClass,terminalOutcome:a.TelemetryTerminalOutcome,terminalSignal:a.TelemetryTerminalSignal});let h=a.SuppressTelemetry===!0,d={...a};delete d.SuppressTelemetry,delete d.TelemetryErrorClass,delete d.TelemetryTerminalOutcome,delete d.TelemetryTerminalSignal,h||xe.trackEvent(or.Error,{result:a.Result,errorCode:a.ErrorCode,retry:a.Retry,message:a.Message}),ks(dr(d),st())}s.error=e;function t(a,c,h){let d={Result:ye.Success,Code:a,Data:c};c.length===0&&h?.emptyInstructions&&(d.Instructions=h.emptyInstructions),h?.warning&&(d.Warning=h.warning),h?.pagination&&(d.Pagination=h.pagination),r(d)}s.emitList=t;function i(a){let c=st(),h=be(),d=Nt(a);if(c==="json"){let p=JSON.stringify(d),g=pr(h)?Fs(p):p;h.writeErr(`${g}
|
|
83
|
-
`)}else for(let[p,g]of Object.entries(d))h.writeErr(`${p}: ${g}
|
|
84
|
-
`)}s.log=i;function o(a){let c=ht();"Data"in a&&a.Data!=null&&(a.Data=en(a.Data),c&&(a.Data=en(Ps(a.Data,c))));let h=dr(a),d=[],p=be();return Ds(h,st(),g=>{d.push(g)},pr(p)),d.join(`
|
|
85
|
-
`)}s.formatToString=o})(on||={});var ua=pn(aa(),1),{program:Uh,createCommand:jh,createArgument:qh,createOption:Vh,CommanderError:Gh,InvalidArgumentError:pd,InvalidOptionArgumentError:Bh,Command:Ze,Argument:Wh,Option:md,Help:Yh}=ua.default;var hd=new WeakMap;Ze.prototype.examples=function(r){return hd.set(this,r),this};var gd=M("PreviewBuild");function yd(){return gd.get(!1)??!1}Ze.prototype.previewCommand=function(r,e){return yd()?this.command(r,e):new Ze(r.split(/\s+/)[0]??r)};var la="uipath:";var _d=/^[a-z0-9][a-z0-9-]*[a-z0-9]$/;function ca(r,e){return{product_area:r,mode:e}}function Td(r){let e={};for(let[t,i,o]of r){let s=ca(t,i);for(let a of o)e[a]=s}return e}function Ed(r){let e=[];for(let[t,i,o]of r){let s=ca(t,i);for(let a of o)e.push({prefix:a,attribution:s})}return e}var bd=Td([["admin","operate",["uipath-admin"]],["agents","build",["uipath-agents"]],["api-workflow","build",["uipath-api-workflow"]],["automation-discovery","build",["uipath-automation-discovery"]],["coded-apps","build",["uipath-coded-apps"]],["data-fabric","operate",["uipath-data-fabric"]],["cli","troubleshoot",["uipath-feedback"]],["governance","operate",["uipath-governance"]],["action-center","build",["uipath-human-in-the-loop"]],["document-understanding","build",["uipath-ixp"]],["maestro","build",["uipath-maestro-bpmn","uipath-maestro-case","uipath-maestro-flow"]],["agenthub","build",["uipath-mcp-servers"]],["solution","build",["uipath-planner","uipath-solution"]],["platform","operate",["uipath-platform"]],["quality","troubleshoot",["uipath-review"]],["rpa","build",["uipath-rpa"]],["cli","operate",["uipath-skill-catalog"]],["action-center","operate",["uipath-tasks"]],["test-manager","operate",["uipath-test"]],["platform","troubleshoot",["uipath-troubleshoot"]]]),vd=new Set(Object.keys(bd)),xd=Ed([["cli","troubleshoot",["uip.feedback"]],["llm-gateway","operate",["uip.llm-gateway"]],["llm-gateway","operate",["uip.llm-configuration","uip.model-hub"]],["context-grounding","build",["uip.context-grounding"]],["api-workflow","build",["uip.api-workflow"]],["rpa","build",["uip.rpa-legacy"]],["conversational","operate",["uip.conversational"]],["agents","build",["uip.codedagent","uip.agent"]],["agenthub","build",["uip.agenthub"]],["coded-apps","build",["uip.codedapp"]],["functions","build",["uip.function","uip.functions"]],["solution","build",["uip.solution"]],["maestro","build",["uip.maestro","uip.case","uip.flow"]],["llm-observability","troubleshoot",["uip.traces"]],["platform","operate",["uip.platform"]],["admin","operate",["uip.admin"]],["automation-ops","operate",["uip.aops"]],["documentation","troubleshoot",["uip.docsai"]],["governance","operate",["uip.gov"]],["insights","operate",["uip.insights"]],["document-understanding","build",["uip.ixp"]],["process-mining","operate",["uip.pm"]],["action-center","operate",["uip.tasks"]],["test-manager","operate",["uip.tm"]],["vertical-solutions","build",["uip.vss"]],["data-fabric","operate",["uip.df"]],["integration-service","build",["uip.is"]],["orchestrator","operate",["uip.or"]],["cli","operate",["uip.login","uip.logout","uip.user","uip.config","uip.tools","uip.skills","uip.completion","uip.update","uip.mcp","uip.track"]]]).sort((r,e)=>e.prefix.length-r.prefix.length);function wd(r){if(typeof r!="string")return;let e=r.trim().toLowerCase();if(!e)return;let t=e.includes(" ")?e.split(/\s+/).filter(o=>o.length>0).filter(o=>!o.startsWith("-")):e.split(".").filter(o=>o.length>0);return t.length===0?void 0:(t[0]==="uip"?t:["uip",...t]).join(".")}function Sd(r){let e=wd(r);if(e)return xd.find(({prefix:t})=>e===t||e.startsWith(`${t}.`))?.attribution}function Cd(r,e){if(typeof r!="string")return;let t=r.trim().toLowerCase();if(!t)return;let i=t.startsWith(la);if(i&&!e.allowLegacyNamespace)return;let o=i?t.slice(la.length):t;if(!(o.length>80||!_d.test(o)||!vd.has(o)))return o}function kd(r){return Cd(r,{allowLegacyNamespace:!1})}function da(r,e){let t=kd(e);return{...t?{skill_name:t}:{},...Sd(r)}}function Wr(r){let e=[];for(let t of r){let i=String(t??"").split(/\s+/).filter(o=>o&&!o.startsWith("-")&&o!=="uip");if(i.every(Rd)){e.push(...i);continue}e.push(Id)}return["uip",...e].join(".")}var Ad=/^[a-z0-9][a-z0-9-]*$/,Od=32,Pd=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function Rd(r){return r.length<=Od&&Ad.test(r)&&!Pd.test(r)&&!/^\d+$/.test(r)}var Id="<unknown>";var Ft=M("TelemetryInvocationRequestContext");function fa(){return xe.getActiveContext?.()}function pa(r){let e=xe.createRequestContext();return e.startedAt=Ts(),Ft.set(e),xe.runWithContext(e,r)}function Yr(r){if(fa()!==void 0)return r();let e=Ft.get();return e===void 0?pa(r):xe.runWithContext(e,r)}function cn(){return fa()??Ft.get()}function zr(r,e,t){let i=cn();xe.trackRequestResult(r,Es(),e,t,i),i!==void 0&&Ft.get()===i&&Ft.clear()}var xg=M("PollSignal"),ma="uip.cmd.arg.";var Kr="<provided>",Nd="<default>";function ha(r,e){if(typeof r=="boolean"||typeof r=="number")return r;if(e&&e.length>0){if(typeof r=="string"&&e.includes(r))return r;if(Array.isArray(r)&&r.length>0&&r.every(t=>typeof t=="string"&&e.includes(t)))return r.join(",")}return Kr}function Ld(r){let e={};return ga(r,(t,i,o,s)=>{let a=ha(i,o);e[`${ma}${t}`]=a===Kr&&s?Nd:a}),e}function Fd(r,e){let t=r.getOptionValueSource?.(e);return t==="default"||t==="implied"}function Md(r,e){return e>=(r.args?.length??0)}function ga(r,e){let t=r.registeredArguments??[],i=r.processedArgs??[];for(let s=0;s<t.length;s++){let a=t[s].name();a&&i[s]!==void 0&&e(a,i[s],t[s].argChoices,Md(r,s))}let o=new Map;for(let s of r.options)o.set(s.attributeName(),s.argChoices);for(let[s,a]of Object.entries(r.opts()))s&&a!==void 0&&e(s,a,o.get(s),Fd(r,s))}function Dd(r){let e=[];return ga(r,(t,i,o,s)=>{s||ha(i,o)===Kr&&e.push(i)}),e}function $d(r){let e=[],t=r;for(;t;){let i=t.name();i&&e.unshift(i),t=t.parent}return e.length>1&&e.shift(),Wr(e)}function Hd(r){return r!==null&&typeof r=="object"}function Ud(r){return`An unexpected error occurred. Run '${r.replace(/\./g," ")} --help' to verify command syntax, or run with --log-level debug for details.`}function jd(r){return r instanceof Error&&r.name==="ExitPromptError"}function qd(r){if(!(ht()===void 0||!r.options.some(t=>t.attributeName()==="limit")||r.getOptionValueSource("limit")!=="default"))return new tn(String(r.opts().limit))}function Vd(r){return typeof process.exitCode=="number"?process.exitCode:r}Ze.prototype.trackedAction=function(r,e,t){let i=this;return this.action(async(...o)=>{await Xo({yaml:st()==="yaml",filter:ht()!==void 0});let s=$d(i),a=typeof t=="function"?t(...o):t;bs();let c=bn(Dd(i));try{let h=performance.now(),d,p=nn.Success;ns();let[g]=await ie(Yr(()=>{let R=qd(i);return R?Promise.reject(R):e(...o)}));if(g){d=g instanceof Error?g.message:String(g),oe.debug(`[trackedAction] ${s} failed: ${d}`);let R=g,I=typeof R.instructions=="string"?R.instructions:void 0,H=(typeof R.result=="string"&&R.result!==ye.Success&&Object.values(ye).includes(R.result)?R.result:void 0)??ye.Failure,W=R.errorCode??R.ErrorCode,X=Ns(W)?W:void 0,Q=R.retry??R.Retry,te=Ls(Q)?Q:void 0,ne=R.context??R.Context,ee=Hd(ne)?ne:void 0;p=(R.exitCode===130||jd(g)?130:void 0)??nn[H],on.error({Result:H,...X?{ErrorCode:X}:{},Message:d,Instructions:I??Ud(s),...te?{Retry:te}:{},...ee?{Context:ee}:{}}),r.exit(p)}let S=performance.now()-h;vs(S);let $=p===130?p:Vd(p),B=rs(),V=!g&&$===0,Y=is({error:g,exitCode:$,recordedFailure:B,pollSignal:r.pollSignal});Y.error_class==="internal"&&g&&xe.trackException(g instanceof Error?g:new Error(String(g)),{command_name:s},cn());let A=Ld(i);if(a)for(let R of Object.keys(a))delete A[`${ma}${R}`];let P=mt({...A,...a,...da(s,process.env.UIPATH_SKILL),command:"true",...Y,...d?{errorMessage:d}:{}});zr(s,V,P)}finally{vn(c)}})};var qg=M("ConsoleGuardInstalled"),Vg=M("ConsoleGuardOriginals");var Gd=["--output","--output-filter","--log-level","--log-file","--profile"],Bd=["--json","--interactive","--no-interactive"],ty=new Set(Gd),ny=new Set(Bd);var sy=M("InteractivityMode"),ay=M("InteractiveFlag");var at={Completed:"completed",Timeout:"timeout",Interrupted:"interrupted",Aborted:"aborted",Failed:"failed"};var wy={[at.Timeout]:"poll_timeout",[at.Failed]:"poll_failed",[at.Interrupted]:"poll_failed",[at.Aborted]:"poll_aborted"};var Xd;(e=>{function r(t){be().writeErr(`${t}
|
|
86
|
-
`)}e.progress=r})(Xd||={});var Jy=M("SdkUserAgentHostToken");var u_=M("ShipSucceededDedupeKeys");var m_=M("PackagerFactoryProvider");it();function Zd(r){let e=0;for(;e<r.length&&e<=6&&r[e]==="#";)e++;return e}function Qd(r){let e=0;for(;e<r.length&&r[e]===" ";)e++;return e}function dn(r){let e=[],t=[],i=r.replace(/`([^`\n]+)`/g,(s,a)=>(e.push(a),`\0C${e.length-1}\0`));i=i.replace(/\[([^\]\n]{1,300})\]\(([^)\s\n]{1,800})\)/g,(s,a,c)=>`[${a}|${c}]`);let o=(s,a)=>(t.push(a),`\0B${t.length-1}\0`);return i=i.replace(/\*\*([^*\n]+)\*\*/g,o),i=i.replace(/__([^_\n]+)__/g,o),i=i.replace(/\*([^*\n]+)\*/g,(s,a)=>a.trim()===""||a.startsWith(" ")||a.endsWith(" ")?s:`_${a}_`),i=i.replace(/~~([^~\n]+)~~/g,"-$1-"),i=i.replace(new RegExp("\0B(\\d+)\0","g"),(s,a)=>`*${t[Number(a)]}*`),i=i.replace(new RegExp("\0C(\\d+)\0","g"),(s,a)=>`{{${e[Number(a)]}}}`),i}function ef(r){let e=r.trim();if(!e.startsWith("```"))return null;let t=e.slice(3).trim();for(let i of t)if(i===" "||i===" ")return null;return t}function ya(r){let e=r.replace(/\r\n/g,`
|
|
87
|
-
`).split(`
|
|
88
|
-
`),t=[],i=!1;for(let o of e){let s=ef(o);if(s!==null){i?(t.push("{code}"),i=!1):(t.push(s?`{code:${s}}`:"{code}"),i=!0);continue}if(i){t.push(o);continue}let a=Zd(o);if(a>0&&(o[a]===" "||o[a]===" ")){t.push(`h${a}. ${dn(o.slice(a).trim())}`);continue}let c=Qd(o),h=Math.floor(c/2)+1,d=o.slice(c),p=0;for(;p<d.length&&d[p]>="0"&&d[p]<="9";)p++;if(p>0&&d[p]==="."&&d[p+1]===" "){t.push(`${"#".repeat(h)} ${dn(d.slice(p+2))}`);continue}let g=d[0];if((g==="-"||g==="*"||g==="+")&&d[1]===" "){t.push(`${"*".repeat(h)} ${dn(d.slice(2))}`);continue}t.push(dn(o))}return i&&t.push("{code}"),t.join(`
|
|
89
|
-
`)}var Ta=process.env.UIPATH_CLI_FEEDBACK_ENDPOINT||atob("aHR0cHM6Ly9zdHVkaW8tZmVlZGJhY2suYXp1cmUtYXBpLm5ldC9jb2RpbmctYWdlbnRz"),tf="10677",nf="29590",rf="customfield_11434",of="customfield_11433",sf="https://uipath.atlassian.net/browse";function af(r){return`${sf}/${r}`}var uf=["bug","improvement"],lf=["critical","normal","minor"];function Ea(r){return r.trim().replace(/[\r\n\t]+/g,"")}var cf={bug:{id:"1",name:"Bug"},improvement:{id:"4",name:"Improvement"}},df={critical:"3",normal:"5",minor:"4"},ff=new Set(["bug","improvement","critical","normal","minor"]);function pf(r){let e=r.trim().replace(/[^\p{L}\p{N}]+/gu,"");return e.length>0?e:void 0}function mf(r){let e=[],t=/^\s*\[([^\]]+)\]/,i=r,o=t.exec(i);for(;o;){let s=pf(o[1]);s&&!ff.has(s.toLowerCase())&&e.push(s),i=i.slice(o[0].length),o=t.exec(i)}return e}async function hf(r){let e=cf[r.type],t=df[r.priority],i=[ya(r.description)];r.slackThreadUrl&&i.push(`Slack Thread: ${Ea(r.slackThreadUrl)}`);let o={fields:{project:{id:tf},components:[{id:nf}],versions:[],summary:r.title,description:i.join(`
|
|
90
|
-
`),issuetype:{id:e.id,name:e.name},[rf]:r.environment,[of]:"",labels:mf(r.title),priority:{id:t}}},s=await fetch(`${Ta}/issue/`,{method:"POST",headers:{"Content-Type":"application/json","Accept-Encoding":"gzip, deflate",deviceId:r.deviceId},body:JSON.stringify(o),signal:AbortSignal.timeout(3e4)}),a=await s.text();if(!s.ok)throw s.status===429?new Error("Too many feedback submissions. Please wait and try again later."):new Error(`Failed to create feedback issue: ${a}`);let[c,h]=ie(()=>JSON.parse(a));if(c||!h?.key)throw new Error(`Unexpected response from feedback service: ${a}`);return{key:h.key,sig:h.sig??""}}async function gf(r,e,t,i){let o=He(),s=await o.readFile(i);if(!s)throw new Error(`Could not read attachment: "${o.path.basename(i)}"`);let a=o.path.basename(i),c=new FormData;c.append("file",new Blob([new Uint8Array(s)]),a);let h=await fetch(`${Ta}/issue/${r}/attachments`,{method:"POST",headers:{"X-SIG":e,deviceId:t,"Accept-Encoding":"gzip, deflate"},body:c,signal:AbortSignal.timeout(3e4)}),d=await h.text();if(!h.ok)throw new Error(`Failed to upload attachment "${a}": ${d}`)}async function yf(r){let t=He(),i=await t.stat(r);if(!i)throw new Error(`Attachment not found: "${t.path.basename(r)}"`);if(i.size>10485760)throw new Error(`Attachment "${t.path.basename(r)}" exceeds 10 MB limit (${Math.round(i.size/1024/1024)} MB).`)}export{lf as VALID_PRIORITIES,uf as VALID_TYPES,af as buildIssueUrl,hf as createFeedbackIssue,Ea as normalizeUrl,gf as uploadAttachment,yf as validateAttachment};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
function h(i){let e=0;for(;e<i.length&&e<=6&&i[e]==="#";)e++;return e}function f(i){let e=0;for(;e<i.length&&i[e]===" ";)e++;return e}function u(i){let e=[],r=[],n=i.replace(/`([^`\n]+)`/g,(c,t)=>(e.push(t),`\0C${e.length-1}\0`));n=n.replace(/\[([^\]\n]{1,300})\]\(([^)\s\n]{1,800})\)/g,(c,t,g)=>`[${t}|${g}]`);let s=(c,t)=>(r.push(t),`\0B${r.length-1}\0`);return n=n.replace(/\*\*([^*\n]+)\*\*/g,s),n=n.replace(/__([^_\n]+)__/g,s),n=n.replace(/\*([^*\n]+)\*/g,(c,t)=>t.trim()===""||t.startsWith(" ")||t.endsWith(" ")?c:`_${t}_`),n=n.replace(/~~([^~\n]+)~~/g,"-$1-"),n=n.replace(new RegExp("\0B(\\d+)\0","g"),(c,t)=>`*${r[Number(t)]}*`),n=n.replace(new RegExp("\0C(\\d+)\0","g"),(c,t)=>`{{${e[Number(t)]}}}`),n}function $(i){let e=i.trim();if(!e.startsWith("```"))return null;let r=e.slice(3).trim();for(let n of r)if(n===" "||n===" ")return null;return r}function E(i){let e=i.replace(/\r\n/g,`
|
|
2
|
-
`).split(`
|
|
3
|
-
`),r=[],n=!1;for(let s of e){let c=$(s);if(c!==null){n?(r.push("{code}"),n=!1):(r.push(c?`{code:${c}}`:"{code}"),n=!0);continue}if(n){r.push(s);continue}let t=h(s);if(t>0&&(s[t]===" "||s[t]===" ")){r.push(`h${t}. ${u(s.slice(t).trim())}`);continue}let g=f(s),p=Math.floor(g/2)+1,o=s.slice(g),l=0;for(;l<o.length&&o[l]>="0"&&o[l]<="9";)l++;if(l>0&&o[l]==="."&&o[l+1]===" "){r.push(`${"#".repeat(p)} ${u(o.slice(l+2))}`);continue}let a=o[0];if((a==="-"||a==="*"||a==="+")&&o[1]===" "){r.push(`${"*".repeat(p)} ${u(o.slice(2))}`);continue}r.push(u(s))}return n&&r.push("{code}"),r.join(`
|
|
4
|
-
`)}export{E as markdownToJiraWiki};
|