@capgo/cli 4.20.6 → 4.20.8
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/dist/index.js +3 -3
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -289,7 +289,7 @@ GFS4: `),console.error(e)});Ot[qr]||(M0e=global[qr]||[],V0e(Ot,M0e),Ot.close=fun
|
|
|
289
289
|
`;function X0e(e,t){var r=[],i="";typeof t=="string"?t={section:t,whitespace:!1}:(t=t||{},t.whitespace=t.whitespace===!0);var n=t.whitespace?" = ":"=";return Object.keys(e).forEach(function(a,s,o){var u=e[a];u&&Array.isArray(u)?u.forEach(function(l){i+=w1(a+"[]")+n+w1(l)+`
|
|
290
290
|
`}):u&&typeof u=="object"?r.push(a):i+=w1(a)+n+w1(u)+lN}),t.section&&i.length&&(i="["+w1(t.section)+"]"+lN+i),r.forEach(function(a,s,o){var u=J0e(a).join("\\."),l=(t.section?t.section+".":"")+u,c=X0e(e[a],{section:l,whitespace:t.whitespace});i.length&&c.length&&(i+=lN),i+=c}),i}function J0e(e){return e.replace(/\1/g,"LITERAL\\1LITERAL").replace(/\\\./g,"").split(/\./).map(function(t){return t.replace(/\1/g,"\\.").replace(/\2LITERAL\\1LITERAL\2/g,"")})}function bnt(e){var t={},r=t,i=null,n=/^\[([^\]]*)\]$|^([^=]+)(=(.*))?$/i,a=e.split(/[\r\n]+/g);return a.forEach(function(s,o,u){if(!(!s||s.match(/^\s*[;#]/))){var l=s.match(n);if(l){if(l[1]!==void 0){if(i=I9(l[1]),i==="__proto__"){r={};return}r=t[i]=t[i]||{};return}var c=I9(l[2]);if(c!=="__proto__"){var p=l[3]?I9(l[4]):!0;switch(p){case"true":case"false":case"null":p=JSON.parse(p)}if(c.length>2&&c.slice(-2)==="[]"){if(c=c.substring(0,c.length-2),c==="__proto__")return;r[c]?Array.isArray(r[c])||(r[c]=[r[c]]):r[c]=[]}Array.isArray(r[c])?r[c].push(p):r[c]=p}}}}),Object.keys(t).filter(function(s,o,u){if(!t[s]||typeof t[s]!="object"||Array.isArray(t[s]))return!1;var l=J0e(s),c=t,p=l.pop(),d=p.replace(/\\\./g,".");return l.forEach(function(f,h,m){f!=="__proto__"&&((!c[f]||typeof c[f]!="object")&&(c[f]={}),c=c[f])}),c===t&&d===p?!1:(c[d]=t[s],!0)}).forEach(function(s,o,u){delete t[s]}),t}function Z0e(e){return e.charAt(0)==='"'&&e.slice(-1)==='"'||e.charAt(0)==="'"&&e.slice(-1)==="'"}function w1(e){return typeof e!="string"||e.match(/[=\r\n]/)||e.match(/^\[/)||e.length>1&&Z0e(e)||e!==e.trim()?JSON.stringify(e):e.replace(/;/g,"\\;").replace(/#/g,"\\#")}function I9(e,t){if(e=(e||"").trim(),Z0e(e)){e.charAt(0)==="'"&&(e=e.substr(1,e.length-2));try{e=JSON.parse(e)}catch{}}else{for(var r=!1,i="",n=0,a=e.length;n<a;n++){var s=e.charAt(n);if(r)"\\;#".indexOf(s)!==-1?i+=s:i+="\\"+s,r=!1;else{if(";#".indexOf(s)!==-1)break;s==="\\"?r=!0:i+=s}}return r&&(i+="\\"),i.trim()}return e}});var ime=g((Ro,rme)=>{var eme=Y0e(),Q2=require("path"),L9=require("fs"),cN=Q0e(),pN=require("events").EventEmitter,Dnt=require("url"),Ent=require("http"),Ro=rme.exports=function(){for(var e=[].slice.call(arguments),t=new Qr;e.length;){var r=e.shift();r&&t.push(typeof r=="string"?Cnt(r):r)}return t},Byt=Ro.find=function(){var e=Q2.join.apply(null,[].slice.call(arguments));function t(r,i){var n=Q2.join(r,i);try{return L9.statSync(n),n}catch{if(Q2.dirname(r)!==r)return t(Q2.dirname(r),i)}}return t(__dirname,e)},xnt=Ro.parse=function(e,t,r){if(e=""+e,r)if(r==="json")if(this.emit)try{return JSON.parse(e)}catch(i){this.emit("error",i)}else return JSON.parse(e);else return cN.parse(e);else try{return JSON.parse(e)}catch{return cN.parse(e)}},Cnt=Ro.json=function(){var e=[].slice.call(arguments).filter(function(i){return i!=null}),t=Q2.join.apply(null,e),r;try{r=L9.readFileSync(t,"utf-8")}catch{return}return xnt(r,t,"json")},jyt=Ro.env=function(e,t){t=t||process.env;var r={},i=e.length;for(var n in t)n.indexOf(e)===0&&(r[n.substring(i)]=t[n]);return r};Ro.ConfigChain=Qr;function Qr(){pN.apply(this),eme.apply(this,arguments),this._awaiting=0,this._saving=0,this.sources={}}var tme={constructor:{value:Qr}};Object.keys(pN.prototype).forEach(function(e){tme[e]=Object.getOwnPropertyDescriptor(pN.prototype,e)});Qr.prototype=Object.create(eme.prototype,tme);Qr.prototype.del=function(e,t){if(t){var r=this.sources[t];if(r=r&&r.data,!r)return this.emit("error",new Error("not found "+t));delete r[e]}else for(var i=0,n=this.list.length;i<n;i++)delete this.list[i][e];return this};Qr.prototype.set=function(e,t,r){var i;if(r){if(i=this.sources[r],i=i&&i.data,!i)return this.emit("error",new Error("not found "+r))}else if(i=this.list[0],!i)return this.emit("error",new Error("cannot set, no confs!"));return i[e]=t,this};Qr.prototype.get=function(e,t){return t?(t=this.sources[t],t&&(t=t.data),t&&Object.hasOwnProperty.call(t,e)?t[e]:void 0):this.list[0][e]};Qr.prototype.save=function(e,a,r){typeof a=="function"&&(r=a,a=null);var i=this.sources[e];if(!i||!(i.path||i.source)||!i.data)return this.emit("error",new Error("bad save target: "+e));if(i.source){var n=i.prefix||"";return Object.keys(i.data).forEach(function(o){i.source[n+o]=i.data[o]}),this}var a=a||i.type,s=i.data;return i.type==="json"?s=JSON.stringify(s):s=cN.stringify(s),this._saving++,L9.writeFile(i.path,s,"utf8",function(o){if(this._saving--,o)return r?r(o):this.emit("error",o);this._saving===0&&(r&&r(),this.emit("save"))}.bind(this)),this};Qr.prototype.addFile=function(e,t,r){r=r||e;var i={__source__:r};return this.sources[r]={path:e,type:t},this.push(i),this._await(),L9.readFile(e,"utf8",function(n,a){n&&this.emit("error",n),this.addString(a,e,t,i)}.bind(this)),this};Qr.prototype.addEnv=function(e,t,r){r=r||"env";var i=Ro.env(e,t);return this.sources[r]={data:i,source:t,prefix:e},this.add(i,r)};Qr.prototype.addUrl=function(e,t,r){this._await();var i=Dnt.format(e);r=r||i;var n={__source__:r};return this.sources[r]={href:i,type:t},this.push(n),Ent.request(e,function(a){var s=[],o=a.headers["content-type"];t||(t=o.indexOf("json")!==-1?"json":o.indexOf("ini")!==-1?"ini":i.match(/\.json$/)?"json":i.match(/\.ini$/)?"ini":null,n.type=t),a.on("data",s.push.bind(s)).on("end",function(){this.addString(Buffer.concat(s),i,t,n)}.bind(this)).on("error",this.emit.bind(this,"error"))}.bind(this)).on("error",this.emit.bind(this,"error")).end(),this};Qr.prototype.addString=function(e,t,r,i){return e=this.parse(e,t,r),this.add(e,i),this};Qr.prototype.add=function(e,t){if(t&&typeof t=="object"){var r=this.list.indexOf(t);if(r===-1)return this.emit("error",new Error("bad marker"));this.splice(r,1,e),t=t.__source__,this.sources[t]=this.sources[t]||{},this.sources[t].data=e,this._resolve()}else typeof t=="string"&&(this.sources[t]=this.sources[t]||{},this.sources[t].data=e),this._await(),this.push(e),process.nextTick(this._resolve.bind(this));return this};Qr.prototype.parse=Ro.parse;Qr.prototype._await=function(){this._awaiting++};Qr.prototype._resolve=function(){this._awaiting--,this._awaiting===0&&this.emit("load",this)}});var ame=g((qyt,nme)=>{nme.exports=function(e){let t=e.indexOf(":");if(t===-1)return dN(e);let r=e.substr(0,t),i=e.substr(t+1);return`${dN(r)}:${dN(i)}`};function dN(e){if(e=e.toLowerCase(),e==="_authtoken")return"_authToken";let t=e[0];for(let r=1;r<e.length;r++)t+=e[r]==="_"?"-":e[r];return t}});var sme=g(B9=>{"use strict";Object.defineProperty(B9,"__esModule",{value:!0});B9.envReplace=void 0;var Snt=/(?<!\\)(\\*)\$\{([^${}]+)\}/g;function Ant(e,t){return e.replace(Snt,Ont.bind(null,t))}B9.envReplace=Ant;function Ont(e,t,r,i){if(r.length%2)return t.slice((r.length+1)/2);let n=Fnt(e,i);if(n===void 0)throw new Error(`Failed to replace env in config: ${t}`);return`${r.slice(r.length/2)}${n}`}var Tnt=/([^:-]+)(:?)-(.+)/;function Fnt(e,t){let r=t.match(Tnt);if(!r)return e[t];let[,i,n,a]=r;return Object.prototype.hasOwnProperty.call(e,i)?!e[i]&&n?a:e[i]:a}});var ome=g(j9=>{"use strict";Object.defineProperty(j9,"__esModule",{value:!0});j9.envReplace=void 0;var knt=sme();Object.defineProperty(j9,"envReplace",{enumerable:!0,get:function(){return knt.envReplace}})});var lme=g(q9=>{"use strict";var Nnt=require("fs"),Qc=require("path"),{envReplace:ume}=ome(),Rnt=(e,t,r)=>{if(typeof t!="string")return t;let i=[].concat(e[r]),n=i.indexOf(Qc)!==-1,a=i.indexOf(Boolean)!==-1,s=i.indexOf(String)!==-1,o=i.indexOf(Number)!==-1;if(t=`${t}`.trim(),/^".*"$/.test(t))try{t=JSON.parse(t)}catch{throw new Error(`Failed parsing JSON config key ${r}: ${t}`)}if(a&&!s&&t==="")return!0;switch(t){case"true":return!0;case"false":return!1;case"null":return null;case"undefined":return}return t=ume(t,process.env),n&&((process.platform==="win32"?/^~(\/|\\)/:/^~\//).test(t)&&process.env.HOME&&(t=Qc.resolve(process.env.HOME,t.substr(2))),t=Qc.resolve(t)),o&&!isNaN(t)&&(t=Number(t)),t},Pnt=e=>{e=Qc.resolve(e);let t=!1;for(;Qc.basename(e)==="node_modules";)e=Qc.dirname(e),t=!0;if(t)return e;let r=(i,n)=>{let a=/^[a-zA-Z]:(\\|\/)?$/;if(i==="/"||process.platform==="win32"&&a.test(i))return n;try{let s=Nnt.readdirSync(i);if(s.includes("node_modules")||s.includes("package.json")||s.includes("package.json5")||s.includes("package.yaml")||s.includes("pnpm-workspace.yaml"))return i;let o=Qc.dirname(i);return o===i?n:r(o,n)}catch(s){if(i===n){if(s.code==="ENOENT")return n;throw s}return n}};return r(e,e)};q9.envReplace=ume;q9.findPrefix=Pnt;q9.parseField=Rnt});var dme=g(pme=>{"use strict";var ep=require("path"),Int=require("stream").Stream,$9=require("url"),Lnt=()=>{},Bnt=()=>[],cme=()=>{};pme.types={access:[null,"restricted","public"],"allow-same-version":Boolean,"always-auth":Boolean,also:[null,"dev","development"],audit:Boolean,"auth-type":["legacy","sso","saml","oauth"],"bin-links":Boolean,browser:[null,String],ca:[null,String,Array],cafile:ep,cache:ep,"cache-lock-stale":Number,"cache-lock-retries":Number,"cache-lock-wait":Number,"cache-max":Number,"cache-min":Number,cert:[null,String],cidr:[null,String,Array],color:["always",Boolean],depth:Number,description:Boolean,dev:Boolean,"dry-run":Boolean,editor:String,"engine-strict":Boolean,force:Boolean,"fetch-retries":Number,"fetch-retry-factor":Number,"fetch-retry-mintimeout":Number,"fetch-retry-maxtimeout":Number,git:String,"git-tag-version":Boolean,"commit-hooks":Boolean,global:Boolean,globalconfig:ep,"global-style":Boolean,group:[Number,String],"https-proxy":[null,$9],"user-agent":String,"ham-it-up":Boolean,heading:String,"if-present":Boolean,"ignore-prepublish":Boolean,"ignore-scripts":Boolean,"init-module":ep,"init-author-name":String,"init-author-email":String,"init-author-url":["",$9],"init-license":String,"init-version":cme,json:Boolean,key:[null,String],"legacy-bundling":Boolean,link:Boolean,"local-address":Bnt(),loglevel:["silent","error","warn","notice","http","timing","info","verbose","silly"],logstream:Int,"logs-max":Number,long:Boolean,maxsockets:Number,message:String,"metrics-registry":[null,String],"node-options":[null,String],"node-version":[null,cme],"no-proxy":[null,String,Array],offline:Boolean,"onload-script":[null,String],only:[null,"dev","development","prod","production"],optional:Boolean,"package-lock":Boolean,otp:[null,String],"package-lock-only":Boolean,parseable:Boolean,"prefer-offline":Boolean,"prefer-online":Boolean,prefix:ep,production:Boolean,progress:Boolean,proxy:[null,!1,$9],provenance:Boolean,"read-only":Boolean,"rebuild-bundle":Boolean,registry:[null,$9],rollback:Boolean,save:Boolean,"save-bundle":Boolean,"save-dev":Boolean,"save-exact":Boolean,"save-optional":Boolean,"save-prefix":String,"save-prod":Boolean,scope:String,"script-shell":[null,String],"scripts-prepend-node-path":[!1,!0,"auto","warn-only"],searchopts:String,searchexclude:[null,String],searchlimit:Number,searchstaleness:Number,"send-metrics":Boolean,shell:String,shrinkwrap:Boolean,"sign-git-tag":Boolean,"sso-poll-frequency":Number,"sso-type":[null,"oauth","saml"],"strict-ssl":Boolean,tag:String,timing:Boolean,tmp:ep,unicode:Boolean,"unsafe-perm":Boolean,usage:Boolean,user:[Number,String],userconfig:ep,umask:Lnt,version:Boolean,"tag-version-prefix":String,versions:Boolean,viewer:String,_exit:Boolean}});var gme=g((Hyt,mme)=>{"use strict";var{readCAFileSync:jnt}=G0e(),fme=require("fs"),fN=require("path"),{ConfigChain:qnt}=ime(),$nt=ame(),hme=lme(),hN=class extends qnt{constructor(t,r){super(t),this.root=t,this._parseField=hme.parseField.bind(null,r||dme())}add(t,r){try{for(let i of Object.keys(t))t[i]=this._parseField(t[i],i)}catch(i){throw i}return super.add(t,r)}addFile(t,r){r=r||t;let i={__source__:r};this.sources[r]={path:t,type:"ini"},this.push(i),this._await();try{let n=fme.readFileSync(t,"utf8");this.addString(n,t,"ini",i)}catch(n){if(n.code==="ENOENT")this.add({},i);else return`Issue while reading "${t}". ${n.message}`}}addEnv(t){t=t||process.env;let r={};return Object.keys(t).filter(i=>/^npm_config_/i.test(i)).forEach(i=>{t[i]&&(r[$nt(i.substr(11))]=t[i])}),super.addEnv("",r,"env")}loadPrefix(){let t=this.list[0];Object.defineProperty(this,"prefix",{enumerable:!0,set:i=>{let n=this.get("global");this[n?"globalPrefix":"localPrefix"]=i},get:()=>this.get("global")?this.globalPrefix:this.localPrefix}),Object.defineProperty(this,"globalPrefix",{enumerable:!0,set:i=>{this.set("prefix",i)},get:()=>fN.resolve(this.get("prefix"))});let r;if(Object.defineProperty(this,"localPrefix",{enumerable:!0,set:i=>{r=i},get:()=>r}),Object.prototype.hasOwnProperty.call(t,"prefix"))r=fN.resolve(t.prefix);else try{r=hme.findPrefix(process.cwd())}catch(i){throw i}return r}loadCAFile(t){if(!t)return;let r=jnt(t);r&&this.set("ca",r)}loadUser(){let t=this.root;if(this.get("global"))return;if(process.env.SUDO_UID){t.user=Number(process.env.SUDO_UID);return}let r=fN.resolve(this.get("prefix"));try{let i=fme.statSync(r);t.user=i.uid}catch(i){if(i.code==="ENOENT")return;throw i}}};mme.exports=hN});var Dme=g(bme=>{"use strict";var _me=require("os"),Po=require("path"),wme=_me.tmpdir(),Mnt=process.getuid?process.getuid():process.pid,Unt=()=>!0,yme=process.platform==="win32",vme={editor:()=>process.env.EDITOR||process.env.VISUAL||(yme?"notepad.exe":"vi"),shell:()=>yme?process.env.COMSPEC||"cmd.exe":process.env.SHELL||"/bin/bash"},Vnt={fromString:()=>process.umask()},b1=_me.homedir();b1?process.env.HOME=b1:b1=Po.resolve(wme,"npm-"+Mnt);var Hnt=process.platform==="win32"?"npm-cache":".npm",znt=process.platform==="win32"&&process.env.APPDATA||b1,Gnt=Po.resolve(znt,Hnt),M9,tp;Object.defineProperty(bme,"defaults",{get:function(){return M9||(process.env.PREFIX?tp=process.env.PREFIX:process.platform==="win32"?tp=Po.dirname(process.execPath):(tp=Po.dirname(Po.dirname(process.execPath)),process.env.DESTDIR&&(tp=Po.join(process.env.DESTDIR,tp))),M9={access:null,"allow-same-version":!1,"always-auth":!1,also:null,audit:!0,"auth-type":"legacy","bin-links":!0,browser:null,ca:null,cafile:null,cache:Gnt,"cache-lock-stale":6e4,"cache-lock-retries":10,"cache-lock-wait":1e4,"cache-max":1/0,"cache-min":10,cert:null,cidr:null,color:process.env.NO_COLOR==null,depth:1/0,description:!0,dev:!1,"dry-run":!1,editor:vme.editor(),"engine-strict":!1,force:!1,"fetch-retries":2,"fetch-retry-factor":10,"fetch-retry-mintimeout":1e4,"fetch-retry-maxtimeout":6e4,git:"git","git-tag-version":!0,"commit-hooks":!0,global:!1,globalconfig:Po.resolve(tp,"etc","npmrc"),"global-style":!1,group:process.platform==="win32"?0:process.env.SUDO_GID||process.getgid&&process.getgid(),"ham-it-up":!1,heading:"npm","if-present":!1,"ignore-prepublish":!1,"ignore-scripts":!1,"init-module":Po.resolve(b1,".npm-init.js"),"init-author-name":"","init-author-email":"","init-author-url":"","init-version":"1.0.0","init-license":"ISC",json:!1,key:null,"legacy-bundling":!1,link:!1,"local-address":void 0,loglevel:"notice",logstream:process.stderr,"logs-max":10,long:!1,maxsockets:50,message:"%s","metrics-registry":null,"node-options":null,offline:!1,"onload-script":!1,only:null,optional:!0,otp:null,"package-lock":!0,"package-lock-only":!1,parseable:!1,"prefer-offline":!1,"prefer-online":!1,prefix:tp,production:process.env.NODE_ENV==="production",progress:!process.env.TRAVIS&&!process.env.CI,provenance:!1,proxy:null,"https-proxy":null,"no-proxy":null,"user-agent":"npm/{npm-version} node/{node-version} {platform} {arch}","read-only":!1,"rebuild-bundle":!0,registry:"https://registry.npmjs.org/",rollback:!0,save:!0,"save-bundle":!1,"save-dev":!1,"save-exact":!1,"save-optional":!1,"save-prefix":"^","save-prod":!1,scope:"","script-shell":null,"scripts-prepend-node-path":"warn-only",searchopts:"",searchexclude:null,searchlimit:20,searchstaleness:15*60,"send-metrics":!1,shell:vme.shell(),shrinkwrap:!0,"sign-git-tag":!1,"sso-poll-frequency":500,"sso-type":"oauth","strict-ssl":!0,tag:"latest","tag-version-prefix":"v",timing:!1,tmp:wme,unicode:Unt(),"unsafe-perm":process.platform==="win32"||process.platform==="cygwin"||!(process.getuid&&process.setuid&&process.getgid&&process.setgid)||process.getuid()!==0,usage:!1,user:process.platform==="win32"?0:"nobody",userconfig:Po.resolve(b1,".npmrc"),umask:process.umask?process.umask():Vnt.fromString("022"),version:!1,versions:!1,viewer:process.platform==="win32"?"browser":"man",_exit:!0},M9)}})});var xme=g((Gyt,mN)=>{"use strict";var rp=require("path"),Wnt=gme(),Eme=Dme();mN.exports=(e,t,r)=>{let i=new Wnt(Object.assign({},Eme.defaults,r),t);i.add(Object.assign({},e),"cli");let n=[],a=!1;if(require.resolve.paths){let l=require.resolve.paths("npm"),c;try{c=require.resolve("npm",{paths:l.slice(-1)})}catch{a=!0}c&&n.push(i.addFile(rp.resolve(rp.dirname(c),"..","npmrc"),"builtin"))}i.addEnv(),i.loadPrefix();let s=rp.resolve(i.localPrefix,".npmrc"),o=i.get("userconfig");if(!i.get("global")&&s!==o?n.push(i.addFile(s,"project")):i.add({},"project"),i.get("workspace-prefix")&&i.get("workspace-prefix")!==s){let l=rp.resolve(i.get("workspace-prefix"),".npmrc");n.push(i.addFile(l,"workspace"))}if(n.push(i.addFile(i.get("userconfig"),"user")),i.get("prefix")){let l=rp.resolve(i.get("prefix"),"etc");i.root.globalconfig=rp.resolve(l,"npmrc"),i.root.globalignorefile=rp.resolve(l,"npmignore")}n.push(i.addFile(i.get("globalconfig"),"global")),i.loadUser();let u=i.get("cafile");return u&&i.loadCAFile(u),{config:i,warnings:n.filter(Boolean),failedToLoadBuiltInConfig:a}};Object.defineProperty(mN.exports,"defaults",{get(){return Eme.defaults},enumerable:!0})});var Nme=g((Wyt,kme)=>{var gN=require("url"),Cme=xme(),Sme=":_authToken",Ame=":_auth",Ome=":username",Tme=":_password";kme.exports=function(){let t,r;arguments.length>=2?(t=arguments[0],r=Object.assign({},arguments[1])):typeof arguments[0]=="string"?t=arguments[0]:r=Object.assign({},arguments[0]),r=r||{};let i=r.npmrc;return r.npmrc=(r.npmrc?{config:{get:n=>i[n]}}:Cme()).config,t=t||r.npmrc.get("registry")||Cme.defaults.registry,Fme(t,r)||Knt(r.npmrc)};function Fme(e,t){let r=gN.parse(e,!1,!0),i;for(;i!=="/"&&r.pathname!==i;){i=r.pathname||"/";let n="//"+r.host+i.replace(/\/$/,""),a=Xnt(n,t.npmrc);if(a)return a;if(!t.recursive)return/\/$/.test(e)?void 0:Fme(gN.resolve(e,"."),t);r.pathname=gN.resolve(Ynt(i),"..")||"/"}}function Knt(e){return e.get("_auth")?{token:U9(e.get("_auth")),type:"Basic"}:void 0}function Ynt(e){return e[e.length-1]==="/"?e:e+"/"}function Xnt(e,t){let r=Jnt(t.get(e+Sme)||t.get(e+"/"+Sme));if(r)return r;let i=t.get(e+Ome)||t.get(e+"/"+Ome),n=t.get(e+Tme)||t.get(e+"/"+Tme),a=Znt(i,n);if(a)return a;let s=Qnt(t.get(e+Ame)||t.get(e+"/"+Ame));if(s)return s}function U9(e){return e.replace(/^\$\{?([^}]*)\}?$/,function(t,r){return process.env[r]})}function Jnt(e){return e?{token:U9(e),type:"Bearer"}:void 0}function Znt(e,t){if(!e||!t)return;let r=Buffer.from(U9(t),"base64").toString("utf8");return{token:Buffer.from(e+":"+r,"utf8").toString("base64"),type:"Basic",password:r,username:e}}function Qnt(e){return e?{token:U9(e),type:"Basic"}:void 0}});var eg=g((Kyt,Rme)=>{var eat="2.0.0",tat=Number.MAX_SAFE_INTEGER||9007199254740991,rat=16,iat=250,nat=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Rme.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:rat,MAX_SAFE_BUILD_LENGTH:iat,MAX_SAFE_INTEGER:tat,RELEASE_TYPES:nat,SEMVER_SPEC_VERSION:eat,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var tg=g((Yyt,Pme)=>{var aat=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};Pme.exports=aat});var D1=g((Io,Ime)=>{var{MAX_SAFE_COMPONENT_LENGTH:yN,MAX_SAFE_BUILD_LENGTH:sat,MAX_LENGTH:oat}=eg(),uat=tg();Io=Ime.exports={};var lat=Io.re=[],cat=Io.safeRe=[],ee=Io.src=[],te=Io.t={},pat=0,vN="[a-zA-Z0-9-]",dat=[["\\s",1],["\\d",oat],[vN,sat]],fat=e=>{for(let[t,r]of dat)e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`);return e},we=(e,t,r)=>{let i=fat(t),n=pat++;uat(e,n,t),te[e]=n,ee[n]=t,lat[n]=new RegExp(t,r?"g":void 0),cat[n]=new RegExp(i,r?"g":void 0)};we("NUMERICIDENTIFIER","0|[1-9]\\d*");we("NUMERICIDENTIFIERLOOSE","\\d+");we("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${vN}*`);we("MAINVERSION",`(${ee[te.NUMERICIDENTIFIER]})\\.(${ee[te.NUMERICIDENTIFIER]})\\.(${ee[te.NUMERICIDENTIFIER]})`);we("MAINVERSIONLOOSE",`(${ee[te.NUMERICIDENTIFIERLOOSE]})\\.(${ee[te.NUMERICIDENTIFIERLOOSE]})\\.(${ee[te.NUMERICIDENTIFIERLOOSE]})`);we("PRERELEASEIDENTIFIER",`(?:${ee[te.NUMERICIDENTIFIER]}|${ee[te.NONNUMERICIDENTIFIER]})`);we("PRERELEASEIDENTIFIERLOOSE",`(?:${ee[te.NUMERICIDENTIFIERLOOSE]}|${ee[te.NONNUMERICIDENTIFIER]})`);we("PRERELEASE",`(?:-(${ee[te.PRERELEASEIDENTIFIER]}(?:\\.${ee[te.PRERELEASEIDENTIFIER]})*))`);we("PRERELEASELOOSE",`(?:-?(${ee[te.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${ee[te.PRERELEASEIDENTIFIERLOOSE]})*))`);we("BUILDIDENTIFIER",`${vN}+`);we("BUILD",`(?:\\+(${ee[te.BUILDIDENTIFIER]}(?:\\.${ee[te.BUILDIDENTIFIER]})*))`);we("FULLPLAIN",`v?${ee[te.MAINVERSION]}${ee[te.PRERELEASE]}?${ee[te.BUILD]}?`);we("FULL",`^${ee[te.FULLPLAIN]}$`);we("LOOSEPLAIN",`[v=\\s]*${ee[te.MAINVERSIONLOOSE]}${ee[te.PRERELEASELOOSE]}?${ee[te.BUILD]}?`);we("LOOSE",`^${ee[te.LOOSEPLAIN]}$`);we("GTLT","((?:<|>)?=?)");we("XRANGEIDENTIFIERLOOSE",`${ee[te.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);we("XRANGEIDENTIFIER",`${ee[te.NUMERICIDENTIFIER]}|x|X|\\*`);we("XRANGEPLAIN",`[v=\\s]*(${ee[te.XRANGEIDENTIFIER]})(?:\\.(${ee[te.XRANGEIDENTIFIER]})(?:\\.(${ee[te.XRANGEIDENTIFIER]})(?:${ee[te.PRERELEASE]})?${ee[te.BUILD]}?)?)?`);we("XRANGEPLAINLOOSE",`[v=\\s]*(${ee[te.XRANGEIDENTIFIERLOOSE]})(?:\\.(${ee[te.XRANGEIDENTIFIERLOOSE]})(?:\\.(${ee[te.XRANGEIDENTIFIERLOOSE]})(?:${ee[te.PRERELEASELOOSE]})?${ee[te.BUILD]}?)?)?`);we("XRANGE",`^${ee[te.GTLT]}\\s*${ee[te.XRANGEPLAIN]}$`);we("XRANGELOOSE",`^${ee[te.GTLT]}\\s*${ee[te.XRANGEPLAINLOOSE]}$`);we("COERCE",`(^|[^\\d])(\\d{1,${yN}})(?:\\.(\\d{1,${yN}}))?(?:\\.(\\d{1,${yN}}))?(?:$|[^\\d])`);we("COERCERTL",ee[te.COERCE],!0);we("LONETILDE","(?:~>?)");we("TILDETRIM",`(\\s*)${ee[te.LONETILDE]}\\s+`,!0);Io.tildeTrimReplace="$1~";we("TILDE",`^${ee[te.LONETILDE]}${ee[te.XRANGEPLAIN]}$`);we("TILDELOOSE",`^${ee[te.LONETILDE]}${ee[te.XRANGEPLAINLOOSE]}$`);we("LONECARET","(?:\\^)");we("CARETTRIM",`(\\s*)${ee[te.LONECARET]}\\s+`,!0);Io.caretTrimReplace="$1^";we("CARET",`^${ee[te.LONECARET]}${ee[te.XRANGEPLAIN]}$`);we("CARETLOOSE",`^${ee[te.LONECARET]}${ee[te.XRANGEPLAINLOOSE]}$`);we("COMPARATORLOOSE",`^${ee[te.GTLT]}\\s*(${ee[te.LOOSEPLAIN]})$|^$`);we("COMPARATOR",`^${ee[te.GTLT]}\\s*(${ee[te.FULLPLAIN]})$|^$`);we("COMPARATORTRIM",`(\\s*)${ee[te.GTLT]}\\s*(${ee[te.LOOSEPLAIN]}|${ee[te.XRANGEPLAIN]})`,!0);Io.comparatorTrimReplace="$1$2$3";we("HYPHENRANGE",`^\\s*(${ee[te.XRANGEPLAIN]})\\s+-\\s+(${ee[te.XRANGEPLAIN]})\\s*$`);we("HYPHENRANGELOOSE",`^\\s*(${ee[te.XRANGEPLAINLOOSE]})\\s+-\\s+(${ee[te.XRANGEPLAINLOOSE]})\\s*$`);we("STAR","(<|>)?=?\\s*\\*");we("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");we("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var V9=g((Xyt,Lme)=>{var hat=Object.freeze({loose:!0}),mat=Object.freeze({}),gat=e=>e?typeof e!="object"?hat:e:mat;Lme.exports=gat});var _N=g((Jyt,qme)=>{var Bme=/^[0-9]+$/,jme=(e,t)=>{let r=Bme.test(e),i=Bme.test(t);return r&&i&&(e=+e,t=+t),e===t?0:r&&!i?-1:i&&!r?1:e<t?-1:1},yat=(e,t)=>jme(t,e);qme.exports={compareIdentifiers:jme,rcompareIdentifiers:yat}});var ei=g((Zyt,Vme)=>{var H9=tg(),{MAX_LENGTH:$me,MAX_SAFE_INTEGER:z9}=eg(),{safeRe:Mme,t:Ume}=D1(),vat=V9(),{compareIdentifiers:E1}=_N(),wN=class e{constructor(t,r){if(r=vat(r),t instanceof e){if(t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>$me)throw new TypeError(`version is longer than ${$me} characters`);H9("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let i=t.trim().match(r.loose?Mme[Ume.LOOSE]:Mme[Ume.FULL]);if(!i)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+i[1],this.minor=+i[2],this.patch=+i[3],this.major>z9||this.major<0)throw new TypeError("Invalid major version");if(this.minor>z9||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>z9||this.patch<0)throw new TypeError("Invalid patch version");i[4]?this.prerelease=i[4].split(".").map(n=>{if(/^[0-9]+$/.test(n)){let a=+n;if(a>=0&&a<z9)return a}return n}):this.prerelease=[],this.build=i[5]?i[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(H9("SemVer.compare",this.version,this.options,t),!(t instanceof e)){if(typeof t=="string"&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof e||(t=new e(t,this.options)),E1(this.major,t.major)||E1(this.minor,t.minor)||E1(this.patch,t.patch)}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{let i=this.prerelease[r],n=t.prerelease[r];if(H9("prerelease compare",r,i,n),i===void 0&&n===void 0)return 0;if(n===void 0)return 1;if(i===void 0)return-1;if(i===n)continue;return E1(i,n)}while(++r)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let r=0;do{let i=this.build[r],n=t.build[r];if(H9("prerelease compare",r,i,n),i===void 0&&n===void 0)return 0;if(n===void 0)return 1;if(i===void 0)return-1;if(i===n)continue;return E1(i,n)}while(++r)}inc(t,r,i){switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r,i);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r,i);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r,i),this.inc("pre",r,i);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r,i),this.inc("pre",r,i);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let n=Number(i)?1:0;if(!r&&i===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[n];else{let a=this.prerelease.length;for(;--a>=0;)typeof this.prerelease[a]=="number"&&(this.prerelease[a]++,a=-2);if(a===-1){if(r===this.prerelease.join(".")&&i===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(n)}}if(r){let a=[r,n];i===!1&&(a=[r]),E1(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=a):this.prerelease=a}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};Vme.exports=wN});var ip=g((Qyt,zme)=>{var Hme=ei(),_at=(e,t,r=!1)=>{if(e instanceof Hme)return e;try{return new Hme(e,t)}catch(i){if(!r)return null;throw i}};zme.exports=_at});var Wme=g((evt,Gme)=>{var wat=ip(),bat=(e,t)=>{let r=wat(e,t);return r?r.version:null};Gme.exports=bat});var Yme=g((tvt,Kme)=>{var Dat=ip(),Eat=(e,t)=>{let r=Dat(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};Kme.exports=Eat});var Zme=g((rvt,Jme)=>{var Xme=ei(),xat=(e,t,r,i,n)=>{typeof r=="string"&&(n=i,i=r,r=void 0);try{return new Xme(e instanceof Xme?e.version:e,r).inc(t,i,n).version}catch{return null}};Jme.exports=xat});var t2e=g((ivt,e2e)=>{var Qme=ip(),Cat=(e,t)=>{let r=Qme(e,null,!0),i=Qme(t,null,!0),n=r.compare(i);if(n===0)return null;let a=n>0,s=a?r:i,o=a?i:r,u=!!s.prerelease.length;if(!!o.prerelease.length&&!u)return!o.patch&&!o.minor?"major":s.patch?"patch":s.minor?"minor":"major";let c=u?"pre":"";return r.major!==i.major?c+"major":r.minor!==i.minor?c+"minor":r.patch!==i.patch?c+"patch":"prerelease"};e2e.exports=Cat});var i2e=g((nvt,r2e)=>{var Sat=ei(),Aat=(e,t)=>new Sat(e,t).major;r2e.exports=Aat});var a2e=g((avt,n2e)=>{var Oat=ei(),Tat=(e,t)=>new Oat(e,t).minor;n2e.exports=Tat});var o2e=g((svt,s2e)=>{var Fat=ei(),kat=(e,t)=>new Fat(e,t).patch;s2e.exports=kat});var l2e=g((ovt,u2e)=>{var Nat=ip(),Rat=(e,t)=>{let r=Nat(e,t);return r&&r.prerelease.length?r.prerelease:null};u2e.exports=Rat});var Hn=g((uvt,p2e)=>{var c2e=ei(),Pat=(e,t,r)=>new c2e(e,r).compare(new c2e(t,r));p2e.exports=Pat});var f2e=g((lvt,d2e)=>{var Iat=Hn(),Lat=(e,t,r)=>Iat(t,e,r);d2e.exports=Lat});var m2e=g((cvt,h2e)=>{var Bat=Hn(),jat=(e,t)=>Bat(e,t,!0);h2e.exports=jat});var G9=g((pvt,y2e)=>{var g2e=ei(),qat=(e,t,r)=>{let i=new g2e(e,r),n=new g2e(t,r);return i.compare(n)||i.compareBuild(n)};y2e.exports=qat});var _2e=g((dvt,v2e)=>{var $at=G9(),Mat=(e,t)=>e.sort((r,i)=>$at(r,i,t));v2e.exports=Mat});var b2e=g((fvt,w2e)=>{var Uat=G9(),Vat=(e,t)=>e.sort((r,i)=>Uat(i,r,t));w2e.exports=Vat});var rg=g((hvt,D2e)=>{var Hat=Hn(),zat=(e,t,r)=>Hat(e,t,r)>0;D2e.exports=zat});var W9=g((mvt,E2e)=>{var Gat=Hn(),Wat=(e,t,r)=>Gat(e,t,r)<0;E2e.exports=Wat});var bN=g((gvt,x2e)=>{var Kat=Hn(),Yat=(e,t,r)=>Kat(e,t,r)===0;x2e.exports=Yat});var DN=g((yvt,C2e)=>{var Xat=Hn(),Jat=(e,t,r)=>Xat(e,t,r)!==0;C2e.exports=Jat});var K9=g((vvt,S2e)=>{var Zat=Hn(),Qat=(e,t,r)=>Zat(e,t,r)>=0;S2e.exports=Qat});var Y9=g((_vt,A2e)=>{var est=Hn(),tst=(e,t,r)=>est(e,t,r)<=0;A2e.exports=tst});var EN=g((wvt,O2e)=>{var rst=bN(),ist=DN(),nst=rg(),ast=K9(),sst=W9(),ost=Y9(),ust=(e,t,r,i)=>{switch(t){case"===":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e===r;case"!==":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e!==r;case"":case"=":case"==":return rst(e,r,i);case"!=":return ist(e,r,i);case">":return nst(e,r,i);case">=":return ast(e,r,i);case"<":return sst(e,r,i);case"<=":return ost(e,r,i);default:throw new TypeError(`Invalid operator: ${t}`)}};O2e.exports=ust});var F2e=g((bvt,T2e)=>{var lst=ei(),cst=ip(),{safeRe:X9,t:J9}=D1(),pst=(e,t)=>{if(e instanceof lst)return e;if(typeof e=="number"&&(e=String(e)),typeof e!="string")return null;t=t||{};let r=null;if(!t.rtl)r=e.match(X9[J9.COERCE]);else{let i;for(;(i=X9[J9.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length);)(!r||i.index+i[0].length!==r.index+r[0].length)&&(r=i),X9[J9.COERCERTL].lastIndex=i.index+i[1].length+i[2].length;X9[J9.COERCERTL].lastIndex=-1}return r===null?null:cst(`${r[2]}.${r[3]||"0"}.${r[4]||"0"}`,t)};T2e.exports=pst});var N2e=g((Dvt,k2e)=>{"use strict";k2e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}});var P2e=g((Evt,R2e)=>{"use strict";R2e.exports=je;je.Node=np;je.create=je;function je(e){var t=this;if(t instanceof je||(t=new je),t.tail=null,t.head=null,t.length=0,e&&typeof e.forEach=="function")e.forEach(function(n){t.push(n)});else if(arguments.length>0)for(var r=0,i=arguments.length;r<i;r++)t.push(arguments[r]);return t}je.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,r=e.prev;return t&&(t.prev=r),r&&(r.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=r),e.list.length--,e.next=null,e.prev=null,e.list=null,t};je.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}};je.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}};je.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)fst(this,arguments[e]);return this.length};je.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)hst(this,arguments[e]);return this.length};je.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}};je.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}};je.prototype.forEach=function(e,t){t=t||this;for(var r=this.head,i=0;r!==null;i++)e.call(t,r.value,i,this),r=r.next};je.prototype.forEachReverse=function(e,t){t=t||this;for(var r=this.tail,i=this.length-1;r!==null;i--)e.call(t,r.value,i,this),r=r.prev};je.prototype.get=function(e){for(var t=0,r=this.head;r!==null&&t<e;t++)r=r.next;if(t===e&&r!==null)return r.value};je.prototype.getReverse=function(e){for(var t=0,r=this.tail;r!==null&&t<e;t++)r=r.prev;if(t===e&&r!==null)return r.value};je.prototype.map=function(e,t){t=t||this;for(var r=new je,i=this.head;i!==null;)r.push(e.call(t,i.value,this)),i=i.next;return r};je.prototype.mapReverse=function(e,t){t=t||this;for(var r=new je,i=this.tail;i!==null;)r.push(e.call(t,i.value,this)),i=i.prev;return r};je.prototype.reduce=function(e,t){var r,i=this.head;if(arguments.length>1)r=t;else if(this.head)i=this.head.next,r=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var n=0;i!==null;n++)r=e(r,i.value,n),i=i.next;return r};je.prototype.reduceReverse=function(e,t){var r,i=this.tail;if(arguments.length>1)r=t;else if(this.tail)i=this.tail.prev,r=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var n=this.length-1;i!==null;n--)r=e(r,i.value,n),i=i.prev;return r};je.prototype.toArray=function(){for(var e=new Array(this.length),t=0,r=this.head;r!==null;t++)e[t]=r.value,r=r.next;return e};je.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,r=this.tail;r!==null;t++)e[t]=r.value,r=r.prev;return e};je.prototype.slice=function(e,t){t=t||this.length,t<0&&(t+=this.length),e=e||0,e<0&&(e+=this.length);var r=new je;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var i=0,n=this.head;n!==null&&i<e;i++)n=n.next;for(;n!==null&&i<t;i++,n=n.next)r.push(n.value);return r};je.prototype.sliceReverse=function(e,t){t=t||this.length,t<0&&(t+=this.length),e=e||0,e<0&&(e+=this.length);var r=new je;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var i=this.length,n=this.tail;n!==null&&i>t;i--)n=n.prev;for(;n!==null&&i>e;i--,n=n.prev)r.push(n.value);return r};je.prototype.splice=function(e,t,...r){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var i=0,n=this.head;n!==null&&i<e;i++)n=n.next;for(var a=[],i=0;n&&i<t;i++)a.push(n.value),n=this.removeNode(n);n===null&&(n=this.tail),n!==this.head&&n!==this.tail&&(n=n.prev);for(var i=0;i<r.length;i++)n=dst(this,n,r[i]);return a};je.prototype.reverse=function(){for(var e=this.head,t=this.tail,r=e;r!==null;r=r.prev){var i=r.prev;r.prev=r.next,r.next=i}return this.head=t,this.tail=e,this};function dst(e,t,r){var i=t===e.head?new np(r,null,t,e):new np(r,t,t.next,e);return i.next===null&&(e.tail=i),i.prev===null&&(e.head=i),e.length++,i}function fst(e,t){e.tail=new np(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function hst(e,t){e.head=new np(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function np(e,t,r,i){if(!(this instanceof np))return new np(e,t,r,i);this.list=i,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}try{N2e()(je)}catch{}});var q2e=g((xvt,j2e)=>{"use strict";var mst=P2e(),ap=Symbol("max"),Bo=Symbol("length"),x1=Symbol("lengthCalculator"),ng=Symbol("allowStale"),sp=Symbol("maxAge"),Lo=Symbol("dispose"),I2e=Symbol("noDisposeOnSet"),Cr=Symbol("lruList"),va=Symbol("cache"),B2e=Symbol("updateAgeOnGet"),xN=()=>1,SN=class{constructor(t){if(typeof t=="number"&&(t={max:t}),t||(t={}),t.max&&(typeof t.max!="number"||t.max<0))throw new TypeError("max must be a non-negative number");let r=this[ap]=t.max||1/0,i=t.length||xN;if(this[x1]=typeof i!="function"?xN:i,this[ng]=t.stale||!1,t.maxAge&&typeof t.maxAge!="number")throw new TypeError("maxAge must be a number");this[sp]=t.maxAge||0,this[Lo]=t.dispose,this[I2e]=t.noDisposeOnSet||!1,this[B2e]=t.updateAgeOnGet||!1,this.reset()}set max(t){if(typeof t!="number"||t<0)throw new TypeError("max must be a non-negative number");this[ap]=t||1/0,ig(this)}get max(){return this[ap]}set allowStale(t){this[ng]=!!t}get allowStale(){return this[ng]}set maxAge(t){if(typeof t!="number")throw new TypeError("maxAge must be a non-negative number");this[sp]=t,ig(this)}get maxAge(){return this[sp]}set lengthCalculator(t){typeof t!="function"&&(t=xN),t!==this[x1]&&(this[x1]=t,this[Bo]=0,this[Cr].forEach(r=>{r.length=this[x1](r.value,r.key),this[Bo]+=r.length})),ig(this)}get lengthCalculator(){return this[x1]}get length(){return this[Bo]}get itemCount(){return this[Cr].length}rforEach(t,r){r=r||this;for(let i=this[Cr].tail;i!==null;){let n=i.prev;L2e(this,t,i,r),i=n}}forEach(t,r){r=r||this;for(let i=this[Cr].head;i!==null;){let n=i.next;L2e(this,t,i,r),i=n}}keys(){return this[Cr].toArray().map(t=>t.key)}values(){return this[Cr].toArray().map(t=>t.value)}reset(){this[Lo]&&this[Cr]&&this[Cr].length&&this[Cr].forEach(t=>this[Lo](t.key,t.value)),this[va]=new Map,this[Cr]=new mst,this[Bo]=0}dump(){return this[Cr].map(t=>Z9(this,t)?!1:{k:t.key,v:t.value,e:t.now+(t.maxAge||0)}).toArray().filter(t=>t)}dumpLru(){return this[Cr]}set(t,r,i){if(i=i||this[sp],i&&typeof i!="number")throw new TypeError("maxAge must be a number");let n=i?Date.now():0,a=this[x1](r,t);if(this[va].has(t)){if(a>this[ap])return C1(this,this[va].get(t)),!1;let u=this[va].get(t).value;return this[Lo]&&(this[I2e]||this[Lo](t,u.value)),u.now=n,u.maxAge=i,u.value=r,this[Bo]+=a-u.length,u.length=a,this.get(t),ig(this),!0}let s=new AN(t,r,a,n,i);return s.length>this[ap]?(this[Lo]&&this[Lo](t,r),!1):(this[Bo]+=s.length,this[Cr].unshift(s),this[va].set(t,this[Cr].head),ig(this),!0)}has(t){if(!this[va].has(t))return!1;let r=this[va].get(t).value;return!Z9(this,r)}get(t){return CN(this,t,!0)}peek(t){return CN(this,t,!1)}pop(){let t=this[Cr].tail;return t?(C1(this,t),t.value):null}del(t){C1(this,this[va].get(t))}load(t){this.reset();let r=Date.now();for(let i=t.length-1;i>=0;i--){let n=t[i],a=n.e||0;if(a===0)this.set(n.k,n.v);else{let s=a-r;s>0&&this.set(n.k,n.v,s)}}}prune(){this[va].forEach((t,r)=>CN(this,r,!1))}},CN=(e,t,r)=>{let i=e[va].get(t);if(i){let n=i.value;if(Z9(e,n)){if(C1(e,i),!e[ng])return}else r&&(e[B2e]&&(i.value.now=Date.now()),e[Cr].unshiftNode(i));return n.value}},Z9=(e,t)=>{if(!t||!t.maxAge&&!e[sp])return!1;let r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[sp]&&r>e[sp]},ig=e=>{if(e[Bo]>e[ap])for(let t=e[Cr].tail;e[Bo]>e[ap]&&t!==null;){let r=t.prev;C1(e,t),t=r}},C1=(e,t)=>{if(t){let r=t.value;e[Lo]&&e[Lo](r.key,r.value),e[Bo]-=r.length,e[va].delete(r.key),e[Cr].removeNode(t)}},AN=class{constructor(t,r,i,n,a){this.key=t,this.value=r,this.length=i,this.now=n,this.maxAge=a||0}},L2e=(e,t,r,i)=>{let n=r.value;Z9(e,n)&&(C1(e,r),e[ng]||(n=void 0)),n&&t.call(i,n.value,n.key,e)};j2e.exports=SN});var zn=g((Cvt,V2e)=>{var ON=class e{constructor(t,r){if(r=yst(r),t instanceof e)return t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease?t:new e(t.raw,r);if(t instanceof TN)return this.raw=t.value,this.set=[[t]],this.format(),this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=t.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(i=>this.parseRange(i.trim())).filter(i=>i.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let i=this.set[0];if(this.set=this.set.filter(n=>!M2e(n[0])),this.set.length===0)this.set=[i];else if(this.set.length>1){for(let n of this.set)if(n.length===1&&xst(n[0])){this.set=[n];break}}}this.format()}format(){return this.range=this.set.map(t=>t.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(t){let i=((this.options.includePrerelease&&Dst)|(this.options.loose&&Est))+":"+t,n=$2e.get(i);if(n)return n;let a=this.options.loose,s=a?Ui[yi.HYPHENRANGELOOSE]:Ui[yi.HYPHENRANGE];t=t.replace(s,Pst(this.options.includePrerelease)),pt("hyphen replace",t),t=t.replace(Ui[yi.COMPARATORTRIM],_st),pt("comparator trim",t),t=t.replace(Ui[yi.TILDETRIM],wst),pt("tilde trim",t),t=t.replace(Ui[yi.CARETTRIM],bst),pt("caret trim",t);let o=t.split(" ").map(p=>Cst(p,this.options)).join(" ").split(/\s+/).map(p=>Rst(p,this.options));a&&(o=o.filter(p=>(pt("loose invalid filter",p,this.options),!!p.match(Ui[yi.COMPARATORLOOSE])))),pt("range list",o);let u=new Map,l=o.map(p=>new TN(p,this.options));for(let p of l){if(M2e(p))return[p];u.set(p.value,p)}u.size>1&&u.has("")&&u.delete("");let c=[...u.values()];return $2e.set(i,c),c}intersects(t,r){if(!(t instanceof e))throw new TypeError("a Range is required");return this.set.some(i=>U2e(i,r)&&t.set.some(n=>U2e(n,r)&&i.every(a=>n.every(s=>a.intersects(s,r)))))}test(t){if(!t)return!1;if(typeof t=="string")try{t=new vst(t,this.options)}catch{return!1}for(let r=0;r<this.set.length;r++)if(Ist(this.set[r],t,this.options))return!0;return!1}};V2e.exports=ON;var gst=q2e(),$2e=new gst({max:1e3}),yst=V9(),TN=ag(),pt=tg(),vst=ei(),{safeRe:Ui,t:yi,comparatorTrimReplace:_st,tildeTrimReplace:wst,caretTrimReplace:bst}=D1(),{FLAG_INCLUDE_PRERELEASE:Dst,FLAG_LOOSE:Est}=eg(),M2e=e=>e.value==="<0.0.0-0",xst=e=>e.value==="",U2e=(e,t)=>{let r=!0,i=e.slice(),n=i.pop();for(;r&&i.length;)r=i.every(a=>n.intersects(a,t)),n=i.pop();return r},Cst=(e,t)=>(pt("comp",e,t),e=Ost(e,t),pt("caret",e),e=Sst(e,t),pt("tildes",e),e=Fst(e,t),pt("xrange",e),e=Nst(e,t),pt("stars",e),e),vi=e=>!e||e.toLowerCase()==="x"||e==="*",Sst=(e,t)=>e.trim().split(/\s+/).map(r=>Ast(r,t)).join(" "),Ast=(e,t)=>{let r=t.loose?Ui[yi.TILDELOOSE]:Ui[yi.TILDE];return e.replace(r,(i,n,a,s,o)=>{pt("tilde",e,i,n,a,s,o);let u;return vi(n)?u="":vi(a)?u=`>=${n}.0.0 <${+n+1}.0.0-0`:vi(s)?u=`>=${n}.${a}.0 <${n}.${+a+1}.0-0`:o?(pt("replaceTilde pr",o),u=`>=${n}.${a}.${s}-${o} <${n}.${+a+1}.0-0`):u=`>=${n}.${a}.${s} <${n}.${+a+1}.0-0`,pt("tilde return",u),u})},Ost=(e,t)=>e.trim().split(/\s+/).map(r=>Tst(r,t)).join(" "),Tst=(e,t)=>{pt("caret",e,t);let r=t.loose?Ui[yi.CARETLOOSE]:Ui[yi.CARET],i=t.includePrerelease?"-0":"";return e.replace(r,(n,a,s,o,u)=>{pt("caret",e,n,a,s,o,u);let l;return vi(a)?l="":vi(s)?l=`>=${a}.0.0${i} <${+a+1}.0.0-0`:vi(o)?a==="0"?l=`>=${a}.${s}.0${i} <${a}.${+s+1}.0-0`:l=`>=${a}.${s}.0${i} <${+a+1}.0.0-0`:u?(pt("replaceCaret pr",u),a==="0"?s==="0"?l=`>=${a}.${s}.${o}-${u} <${a}.${s}.${+o+1}-0`:l=`>=${a}.${s}.${o}-${u} <${a}.${+s+1}.0-0`:l=`>=${a}.${s}.${o}-${u} <${+a+1}.0.0-0`):(pt("no pr"),a==="0"?s==="0"?l=`>=${a}.${s}.${o}${i} <${a}.${s}.${+o+1}-0`:l=`>=${a}.${s}.${o}${i} <${a}.${+s+1}.0-0`:l=`>=${a}.${s}.${o} <${+a+1}.0.0-0`),pt("caret return",l),l})},Fst=(e,t)=>(pt("replaceXRanges",e,t),e.split(/\s+/).map(r=>kst(r,t)).join(" ")),kst=(e,t)=>{e=e.trim();let r=t.loose?Ui[yi.XRANGELOOSE]:Ui[yi.XRANGE];return e.replace(r,(i,n,a,s,o,u)=>{pt("xRange",e,i,n,a,s,o,u);let l=vi(a),c=l||vi(s),p=c||vi(o),d=p;return n==="="&&d&&(n=""),u=t.includePrerelease?"-0":"",l?n===">"||n==="<"?i="<0.0.0-0":i="*":n&&d?(c&&(s=0),o=0,n===">"?(n=">=",c?(a=+a+1,s=0,o=0):(s=+s+1,o=0)):n==="<="&&(n="<",c?a=+a+1:s=+s+1),n==="<"&&(u="-0"),i=`${n+a}.${s}.${o}${u}`):c?i=`>=${a}.0.0${u} <${+a+1}.0.0-0`:p&&(i=`>=${a}.${s}.0${u} <${a}.${+s+1}.0-0`),pt("xRange return",i),i})},Nst=(e,t)=>(pt("replaceStars",e,t),e.trim().replace(Ui[yi.STAR],"")),Rst=(e,t)=>(pt("replaceGTE0",e,t),e.trim().replace(Ui[t.includePrerelease?yi.GTE0PRE:yi.GTE0],"")),Pst=e=>(t,r,i,n,a,s,o,u,l,c,p,d,f)=>(vi(i)?r="":vi(n)?r=`>=${i}.0.0${e?"-0":""}`:vi(a)?r=`>=${i}.${n}.0${e?"-0":""}`:s?r=`>=${r}`:r=`>=${r}${e?"-0":""}`,vi(l)?u="":vi(c)?u=`<${+l+1}.0.0-0`:vi(p)?u=`<${l}.${+c+1}.0-0`:d?u=`<=${l}.${c}.${p}-${d}`:e?u=`<${l}.${c}.${+p+1}-0`:u=`<=${u}`,`${r} ${u}`.trim()),Ist=(e,t,r)=>{for(let i=0;i<e.length;i++)if(!e[i].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(let i=0;i<e.length;i++)if(pt(e[i].semver),e[i].semver!==TN.ANY&&e[i].semver.prerelease.length>0){let n=e[i].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch)return!0}return!1}return!0}});var ag=g((Svt,Y2e)=>{var sg=Symbol("SemVer ANY"),NN=class e{static get ANY(){return sg}constructor(t,r){if(r=H2e(r),t instanceof e){if(t.loose===!!r.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(" "),kN("comparator",t,r),this.options=r,this.loose=!!r.loose,this.parse(t),this.semver===sg?this.value="":this.value=this.operator+this.semver.version,kN("comp",this)}parse(t){let r=this.options.loose?z2e[G2e.COMPARATORLOOSE]:z2e[G2e.COMPARATOR],i=t.match(r);if(!i)throw new TypeError(`Invalid comparator: ${t}`);this.operator=i[1]!==void 0?i[1]:"",this.operator==="="&&(this.operator=""),i[2]?this.semver=new W2e(i[2],this.options.loose):this.semver=sg}toString(){return this.value}test(t){if(kN("Comparator.test",t,this.options.loose),this.semver===sg||t===sg)return!0;if(typeof t=="string")try{t=new W2e(t,this.options)}catch{return!1}return FN(t,this.operator,this.semver,this.options)}intersects(t,r){if(!(t instanceof e))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new K2e(t.value,r).test(this.value):t.operator===""?t.value===""?!0:new K2e(this.value,r).test(t.semver):(r=H2e(r),r.includePrerelease&&(this.value==="<0.0.0-0"||t.value==="<0.0.0-0")||!r.includePrerelease&&(this.value.startsWith("<0.0.0")||t.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&t.operator.startsWith(">")||this.operator.startsWith("<")&&t.operator.startsWith("<")||this.semver.version===t.semver.version&&this.operator.includes("=")&&t.operator.includes("=")||FN(this.semver,"<",t.semver,r)&&this.operator.startsWith(">")&&t.operator.startsWith("<")||FN(this.semver,">",t.semver,r)&&this.operator.startsWith("<")&&t.operator.startsWith(">")))}};Y2e.exports=NN;var H2e=V9(),{safeRe:z2e,t:G2e}=D1(),FN=EN(),kN=tg(),W2e=ei(),K2e=zn()});var og=g((Avt,X2e)=>{var Lst=zn(),Bst=(e,t,r)=>{try{t=new Lst(t,r)}catch{return!1}return t.test(e)};X2e.exports=Bst});var Z2e=g((Ovt,J2e)=>{var jst=zn(),qst=(e,t)=>new jst(e,t).set.map(r=>r.map(i=>i.value).join(" ").trim().split(" "));J2e.exports=qst});var ege=g((Tvt,Q2e)=>{var $st=ei(),Mst=zn(),Ust=(e,t,r)=>{let i=null,n=null,a=null;try{a=new Mst(t,r)}catch{return null}return e.forEach(s=>{a.test(s)&&(!i||n.compare(s)===-1)&&(i=s,n=new $st(i,r))}),i};Q2e.exports=Ust});var rge=g((Fvt,tge)=>{var Vst=ei(),Hst=zn(),zst=(e,t,r)=>{let i=null,n=null,a=null;try{a=new Hst(t,r)}catch{return null}return e.forEach(s=>{a.test(s)&&(!i||n.compare(s)===1)&&(i=s,n=new Vst(i,r))}),i};tge.exports=zst});var age=g((kvt,nge)=>{var RN=ei(),Gst=zn(),ige=rg(),Wst=(e,t)=>{e=new Gst(e,t);let r=new RN("0.0.0");if(e.test(r)||(r=new RN("0.0.0-0"),e.test(r)))return r;r=null;for(let i=0;i<e.set.length;++i){let n=e.set[i],a=null;n.forEach(s=>{let o=new RN(s.semver.version);switch(s.operator){case">":o.prerelease.length===0?o.patch++:o.prerelease.push(0),o.raw=o.format();case"":case">=":(!a||ige(o,a))&&(a=o);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${s.operator}`)}}),a&&(!r||ige(r,a))&&(r=a)}return r&&e.test(r)?r:null};nge.exports=Wst});var oge=g((Nvt,sge)=>{var Kst=zn(),Yst=(e,t)=>{try{return new Kst(e,t).range||"*"}catch{return null}};sge.exports=Yst});var Q9=g((Rvt,pge)=>{var Xst=ei(),cge=ag(),{ANY:Jst}=cge,Zst=zn(),Qst=og(),uge=rg(),lge=W9(),eot=Y9(),tot=K9(),rot=(e,t,r,i)=>{e=new Xst(e,i),t=new Zst(t,i);let n,a,s,o,u;switch(r){case">":n=uge,a=eot,s=lge,o=">",u=">=";break;case"<":n=lge,a=tot,s=uge,o="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(Qst(e,t,i))return!1;for(let l=0;l<t.set.length;++l){let c=t.set[l],p=null,d=null;if(c.forEach(f=>{f.semver===Jst&&(f=new cge(">=0.0.0")),p=p||f,d=d||f,n(f.semver,p.semver,i)?p=f:s(f.semver,d.semver,i)&&(d=f)}),p.operator===o||p.operator===u||(!d.operator||d.operator===o)&&a(e,d.semver))return!1;if(d.operator===u&&s(e,d.semver))return!1}return!0};pge.exports=rot});var fge=g((Pvt,dge)=>{var iot=Q9(),not=(e,t,r)=>iot(e,t,">",r);dge.exports=not});var mge=g((Ivt,hge)=>{var aot=Q9(),sot=(e,t,r)=>aot(e,t,"<",r);hge.exports=sot});var vge=g((Lvt,yge)=>{var gge=zn(),oot=(e,t,r)=>(e=new gge(e,r),t=new gge(t,r),e.intersects(t,r));yge.exports=oot});var wge=g((Bvt,_ge)=>{var uot=og(),lot=Hn();_ge.exports=(e,t,r)=>{let i=[],n=null,a=null,s=e.sort((c,p)=>lot(c,p,r));for(let c of s)uot(c,t,r)?(a=c,n||(n=c)):(a&&i.push([n,a]),a=null,n=null);n&&i.push([n,null]);let o=[];for(let[c,p]of i)c===p?o.push(c):!p&&c===s[0]?o.push("*"):p?c===s[0]?o.push(`<=${p}`):o.push(`${c} - ${p}`):o.push(`>=${c}`);let u=o.join(" || "),l=typeof t.raw=="string"?t.raw:String(t);return u.length<l.length?u:t}});var Sge=g((jvt,Cge)=>{var bge=zn(),IN=ag(),{ANY:PN}=IN,ug=og(),LN=Hn(),cot=(e,t,r={})=>{if(e===t)return!0;e=new bge(e,r),t=new bge(t,r);let i=!1;e:for(let n of e.set){for(let a of t.set){let s=dot(n,a,r);if(i=i||s!==null,s)continue e}if(i)return!1}return!0},pot=[new IN(">=0.0.0-0")],Dge=[new IN(">=0.0.0")],dot=(e,t,r)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===PN){if(t.length===1&&t[0].semver===PN)return!0;r.includePrerelease?e=pot:e=Dge}if(t.length===1&&t[0].semver===PN){if(r.includePrerelease)return!0;t=Dge}let i=new Set,n,a;for(let f of e)f.operator===">"||f.operator===">="?n=Ege(n,f,r):f.operator==="<"||f.operator==="<="?a=xge(a,f,r):i.add(f.semver);if(i.size>1)return null;let s;if(n&&a){if(s=LN(n.semver,a.semver,r),s>0)return null;if(s===0&&(n.operator!==">="||a.operator!=="<="))return null}for(let f of i){if(n&&!ug(f,String(n),r)||a&&!ug(f,String(a),r))return null;for(let h of t)if(!ug(f,String(h),r))return!1;return!0}let o,u,l,c,p=a&&!r.includePrerelease&&a.semver.prerelease.length?a.semver:!1,d=n&&!r.includePrerelease&&n.semver.prerelease.length?n.semver:!1;p&&p.prerelease.length===1&&a.operator==="<"&&p.prerelease[0]===0&&(p=!1);for(let f of t){if(c=c||f.operator===">"||f.operator===">=",l=l||f.operator==="<"||f.operator==="<=",n){if(d&&f.semver.prerelease&&f.semver.prerelease.length&&f.semver.major===d.major&&f.semver.minor===d.minor&&f.semver.patch===d.patch&&(d=!1),f.operator===">"||f.operator===">="){if(o=Ege(n,f,r),o===f&&o!==n)return!1}else if(n.operator===">="&&!ug(n.semver,String(f),r))return!1}if(a){if(p&&f.semver.prerelease&&f.semver.prerelease.length&&f.semver.major===p.major&&f.semver.minor===p.minor&&f.semver.patch===p.patch&&(p=!1),f.operator==="<"||f.operator==="<="){if(u=xge(a,f,r),u===f&&u!==a)return!1}else if(a.operator==="<="&&!ug(a.semver,String(f),r))return!1}if(!f.operator&&(a||n)&&s!==0)return!1}return!(n&&l&&!a&&s!==0||a&&c&&!n&&s!==0||d||p)},Ege=(e,t,r)=>{if(!e)return t;let i=LN(e.semver,t.semver,r);return i>0?e:i<0||t.operator===">"&&e.operator===">="?t:e},xge=(e,t,r)=>{if(!e)return t;let i=LN(e.semver,t.semver,r);return i<0?e:i>0||t.operator==="<"&&e.operator==="<="?t:e};Cge.exports=cot});var Fge=g((qvt,Tge)=>{var BN=D1(),Age=eg(),fot=ei(),Oge=_N(),hot=ip(),mot=Wme(),got=Yme(),yot=Zme(),vot=t2e(),_ot=i2e(),wot=a2e(),bot=o2e(),Dot=l2e(),Eot=Hn(),xot=f2e(),Cot=m2e(),Sot=G9(),Aot=_2e(),Oot=b2e(),Tot=rg(),Fot=W9(),kot=bN(),Not=DN(),Rot=K9(),Pot=Y9(),Iot=EN(),Lot=F2e(),Bot=ag(),jot=zn(),qot=og(),$ot=Z2e(),Mot=ege(),Uot=rge(),Vot=age(),Hot=oge(),zot=Q9(),Got=fge(),Wot=mge(),Kot=vge(),Yot=wge(),Xot=Sge();Tge.exports={parse:hot,valid:mot,clean:got,inc:yot,diff:vot,major:_ot,minor:wot,patch:bot,prerelease:Dot,compare:Eot,rcompare:xot,compareLoose:Cot,compareBuild:Sot,sort:Aot,rsort:Oot,gt:Tot,lt:Fot,eq:kot,neq:Not,gte:Rot,lte:Pot,cmp:Iot,coerce:Lot,Comparator:Bot,Range:jot,satisfies:qot,toComparators:$ot,maxSatisfying:Mot,minSatisfying:Uot,minVersion:Vot,validRange:Hot,outside:zot,gtr:Got,ltr:Wot,intersects:Kot,simplifyRange:Yot,subset:Xot,SemVer:fot,re:BN.re,src:BN.src,tokens:BN.t,SEMVER_SPEC_VERSION:Age.SEMVER_SPEC_VERSION,RELEASE_TYPES:Age.RELEASE_TYPES,compareIdentifiers:Oge.compareIdentifiers,rcompareIdentifiers:Oge.rcompareIdentifiers}});var jN=g(($vt,Pge)=>{var Jot=require("url"),{getIt:Zot}=Vhe(),{debug:Qot,retry:kge,promise:eut,httpErrors:tut,jsonResponse:rut}=u0e(),iut=R0e(),nut=Nme(),aut=Fge(),sut=e=>/(application\/json|\+json)/.test(e||"");function out(e,t,r){let i=e.response||{statusCode:500,headers:{}};return kge.shouldRetry(e,t,r)||i&&i.statusCode>=500||i.statusCode<300&&!sut(i.headers["content-type"])}function uut(e,t){if(t.registryUrl)return t.registryUrl;let r=e.split("/")[0];return iut(r)}var Nge=Zot([rut({force:!0}),tut(),Qot({namespace:"get-latest-version"}),eut(),kge({shouldRetry:out})]);async function Rge(e,t){let r=typeof t=="string"?{range:t,auth:!0}:Object.assign({range:"latest",auth:!0},t),i=uut(e,r),n=Jot.resolve(i,encodeURIComponent(e).replace(/^%40/,"@")),a=r.auth&&nut(i,{recursive:!0}),s=r.request||Nge,o={accept:"application/vnd.npm.install-v1+json; q=1.0, application/json; q=0.8, */*"};a&&(o.authorization=`${a.type} ${a.token}`);let u;try{u=await s({url:n,headers:o})}catch(h){throw h.response&&h.response.statusCode===404?new Error(`Package \`${e}\` doesn't exist`):h}let l=u.body,c=r.range,p=l["dist-tags"].latest;if(l["dist-tags"][c])return r.includeLatest?{latest:p,inRange:l["dist-tags"][c]}:l["dist-tags"][c];if(l.versions[c])return r.includeLatest?{latest:p,inRange:c}:c;let d=Object.keys(l.versions),f=aut.maxSatisfying(d,c);return f?r.includeLatest?{latest:p,inRange:f}:f:r.includeLatest?{latest:p,inRange:void 0}:void 0}Rge.request=Nge;Pge.exports=Rge});var e6e=g((Jvt,jo)=>{var er=require("fs"),HN=require("os"),cn=require("path"),qge=require("crypto"),ws={fs:er.constants,os:HN.constants},$ge="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",Uge=/XXXXXX/,put=3,Vge=(ws.O_CREAT||ws.fs.O_CREAT)|(ws.O_EXCL||ws.fs.O_EXCL)|(ws.O_RDWR||ws.fs.O_RDWR),dut=HN.platform()==="win32",fut=ws.EBADF||ws.os.errno.EBADF,hut=ws.ENOENT||ws.os.errno.ENOENT,Hge=448,zge=384,mut="exit",S1=[],Gge=er.rmdirSync.bind(er),Wge=!1;function gut(e,t){return er.rm(e,{recursive:!0},t)}function Kge(e){return er.rmSync(e,{recursive:!0})}function zN(e,t){let r=A1(e,t),i=r[0],n=r[1];try{Jge(i)}catch(s){return n(s)}let a=i.tries;(function s(){try{let o=Xge(i);er.stat(o,function(u){if(!u)return a-- >0?s():n(new Error("Could not get a unique tmp filename, max tries reached "+o));n(null,o)})}catch(o){n(o)}})()}function GN(e){let t=A1(e),r=t[0];Jge(r);let i=r.tries;do{let n=Xge(r);try{er.statSync(n)}catch{return n}}while(i-- >0);throw new Error("Could not get a unique tmp filename, max tries reached")}function yut(e,t){let r=A1(e,t),i=r[0],n=r[1];zN(i,function(s,o){if(s)return n(s);er.open(o,Vge,i.mode||zge,function(l,c){if(l)return n(l);if(i.discardDescriptor)return er.close(c,function(d){return n(d,o,void 0,MN(o,-1,i,!1))});{let p=i.discardDescriptor||i.detachDescriptor;n(null,o,c,MN(o,p?-1:c,i,!1))}})})}function vut(e){let t=A1(e),r=t[0],i=r.discardDescriptor||r.detachDescriptor,n=GN(r);var a=er.openSync(n,Vge,r.mode||zge);return r.discardDescriptor&&(er.closeSync(a),a=void 0),{name:n,fd:a,removeCallback:MN(n,i?-1:a,r,!0)}}function _ut(e,t){let r=A1(e,t),i=r[0],n=r[1];zN(i,function(s,o){if(s)return n(s);er.mkdir(o,i.mode||Hge,function(l){if(l)return n(l);n(null,o,Yge(o,i,!1))})})}function wut(e){let t=A1(e),r=t[0],i=GN(r);return er.mkdirSync(i,r.mode||Hge),{name:i,removeCallback:Yge(i,r,!0)}}function but(e,t){let r=function(i){if(i&&!VN(i))return t(i);t()};0<=e[0]?er.close(e[0],function(){er.unlink(e[1],r)}):er.unlink(e[1],r)}function Dut(e){let t=null;try{0<=e[0]&&er.closeSync(e[0])}catch(r){if(!Cut(r)&&!VN(r))throw r}finally{try{er.unlinkSync(e[1])}catch(r){VN(r)||(t=r)}}if(t!==null)throw t}function MN(e,t,r,i){let n=t5(Dut,[t,e],i),a=t5(but,[t,e],i,n);return r.keep||S1.unshift(n),i?n:a}function Yge(e,t,r){let i=t.unsafeCleanup?gut:er.rmdir.bind(er),n=t.unsafeCleanup?Kge:Gge,a=t5(n,e,r),s=t5(i,e,r,a);return t.keep||S1.unshift(a),r?a:s}function t5(e,t,r,i){let n=!1;return function a(s){if(!n){let o=i||a,u=S1.indexOf(o);return u>=0&&S1.splice(u,1),n=!0,r||e===Gge||e===Kge?e(t):e(t,s||function(){})}}}function Eut(){if(Wge)for(;S1.length;)try{S1[0]()}catch{}}function Mge(e){let t=[],r=null;try{r=qge.randomBytes(e)}catch{r=qge.pseudoRandomBytes(e)}for(var i=0;i<e;i++)t.push($ge[r[i]%$ge.length]);return t.join("")}function xut(e){return e===null||Vi(e)||!e.trim()}function Vi(e){return typeof e>"u"}function A1(e,t){if(typeof e=="function")return[{},e];if(Vi(e))return[{},t];let r={};for(let i of Object.getOwnPropertyNames(e))r[i]=e[i];return[r,t]}function Xge(e){let t=e.tmpdir;if(!Vi(e.name))return cn.join(t,e.dir,e.name);if(!Vi(e.template))return cn.join(t,e.dir,e.template).replace(Uge,Mge(6));let r=[e.prefix?e.prefix:"tmp","-",process.pid,"-",Mge(12),e.postfix?"-"+e.postfix:""].join("");return cn.join(t,e.dir,r)}function Jge(e){e.tmpdir=Qge(e);let t=e.tmpdir;if(Vi(e.name)||$N(e.name,"name",t),Vi(e.dir)||$N(e.dir,"dir",t),!Vi(e.template)&&($N(e.template,"template",t),!e.template.match(Uge)))throw new Error(`Invalid template, found "${e.template}".`);if(!Vi(e.tries)&&isNaN(e.tries)||e.tries<0)throw new Error(`Invalid tries, found "${e.tries}".`);e.tries=Vi(e.name)?e.tries||put:1,e.keep=!!e.keep,e.detachDescriptor=!!e.detachDescriptor,e.discardDescriptor=!!e.discardDescriptor,e.unsafeCleanup=!!e.unsafeCleanup,e.dir=Vi(e.dir)?"":cn.relative(t,UN(e.dir,t)),e.template=Vi(e.template)?void 0:cn.relative(t,UN(e.template,t)),e.template=xut(e.template)?void 0:cn.relative(e.dir,e.template),e.name=Vi(e.name)?void 0:e.name,e.prefix=Vi(e.prefix)?"":e.prefix,e.postfix=Vi(e.postfix)?"":e.postfix}function UN(e,t){return e.startsWith(t)?cn.resolve(e):cn.resolve(cn.join(t,e))}function $N(e,t,r){if(t==="name"){if(cn.isAbsolute(e))throw new Error(`${t} option must not contain an absolute path, found "${e}".`);let i=cn.basename(e);if(i===".."||i==="."||i!==e)throw new Error(`${t} option must not contain a path, found "${e}".`)}else{if(cn.isAbsolute(e)&&!e.startsWith(r))throw new Error(`${t} option must be relative to "${r}", found "${e}".`);let i=UN(e,r);if(!i.startsWith(r))throw new Error(`${t} option must be relative to "${r}", found "${i}".`)}}function Cut(e){return Zge(e,-fut,"EBADF")}function VN(e){return Zge(e,-hut,"ENOENT")}function Zge(e,t,r){return dut?e.code===r:e.code===r&&e.errno===t}function Sut(){Wge=!0}function Qge(e){return cn.resolve(e&&e.tmpdir||HN.tmpdir())}process.addListener(mut,Eut);Object.defineProperty(jo.exports,"tmpdir",{enumerable:!0,configurable:!1,get:function(){return Qge()}});jo.exports.dir=_ut;jo.exports.dirSync=wut;jo.exports.file=yut;jo.exports.fileSync=vut;jo.exports.tmpName=zN;jo.exports.tmpNameSync=GN;jo.exports.setGracefulCleanup=Sut});var JN=g(O1=>{"use strict";Object.defineProperty(O1,"__esModule",{value:!0});O1.DEFAULT_COLOR_MAP=void 0;O1.DEFAULT_COLOR_MAP={red:"\x1B[31m",green:"\x1B[32m",yellow:"\x1B[33m",blue:"\x1B[34m",magenta:"\x1B[35m",cyan:"\x1B[36m",white:"\x1B[37m",white_bold:"\x1B[01m",reset:"\x1B[0m"};var XN=class{constructor(t=O1.DEFAULT_COLOR_MAP){this.text="",this.colorMap=t}addCharsWithColor(t,r){let i=this.colorMap[t];this.text+=i!==void 0?`${i}${r}${this.colorMap.reset}`:r}renderConsole(){return this.text}};O1.default=XN});var fg=g(tr=>{"use strict";Object.defineProperty(tr,"__esModule",{value:!0});tr.DEFAULT_HEADER_ALIGNMENT=tr.DEFAULT_ROW_ALIGNMENT=tr.DEFAULT_HEADER_FONT_COLOR=tr.DEFAULT_ROW_FONT_COLOR=tr.COLORS=tr.ALIGNMENTS=tr.DEFAULT_TABLE_STYLE=tr.DEFAULT_ROW_SEPARATOR=tr.DEFAULT_COLUMN_LEN=void 0;tr.DEFAULT_COLUMN_LEN=20;tr.DEFAULT_ROW_SEPARATOR=!1;tr.DEFAULT_TABLE_STYLE={headerTop:{left:"\u250C",mid:"\u252C",right:"\u2510",other:"\u2500"},headerBottom:{left:"\u251C",mid:"\u253C",right:"\u2524",other:"\u2500"},tableBottom:{left:"\u2514",mid:"\u2534",right:"\u2518",other:"\u2500"},vertical:"\u2502",rowSeparator:{left:"\u251C",mid:"\u253C",right:"\u2524",other:"\u2500"}};tr.ALIGNMENTS=["right","left","center"];tr.COLORS=["red","green","yellow","white","blue","magenta","cyan","white_bold","reset"];tr.DEFAULT_ROW_FONT_COLOR="white";tr.DEFAULT_HEADER_FONT_COLOR="white_bold";tr.DEFAULT_ROW_ALIGNMENT="right";tr.DEFAULT_HEADER_ALIGNMENT="center"});var ZN=g($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});$o.rawColumnToInternalColumn=$o.objIfExists=void 0;var Rut=fg(),Put=(e,t)=>t?{[e]:t}:{};$o.objIfExists=Put;var Iut=e=>{var t;return Object.assign(Object.assign(Object.assign(Object.assign({name:e.name,title:(t=e.title)!==null&&t!==void 0?t:e.name},(0,$o.objIfExists)("color",e.color)),(0,$o.objIfExists)("maxLen",e.maxLen)),(0,$o.objIfExists)("minLen",e.minLen)),{alignment:e.alignment||Rut.DEFAULT_ROW_ALIGNMENT})};$o.rawColumnToInternalColumn=Iut});var c6e=g(QN=>{"use strict";Object.defineProperty(QN,"__esModule",{value:!0});var Lut=[{first:768,last:879},{first:1155,last:1158},{first:1160,last:1161},{first:1425,last:1469},{first:1471,last:1471},{first:1473,last:1474},{first:1476,last:1477},{first:1479,last:1479},{first:1536,last:1539},{first:1552,last:1557},{first:1611,last:1630},{first:1648,last:1648},{first:1750,last:1764},{first:1767,last:1768},{first:1770,last:1773},{first:1807,last:1807},{first:1809,last:1809},{first:1840,last:1866},{first:1958,last:1968},{first:2027,last:2035},{first:2305,last:2306},{first:2364,last:2364},{first:2369,last:2376},{first:2381,last:2381},{first:2385,last:2388},{first:2402,last:2403},{first:2433,last:2433},{first:2492,last:2492},{first:2497,last:2500},{first:2509,last:2509},{first:2530,last:2531},{first:2561,last:2562},{first:2620,last:2620},{first:2625,last:2626},{first:2631,last:2632},{first:2635,last:2637},{first:2672,last:2673},{first:2689,last:2690},{first:2748,last:2748},{first:2753,last:2757},{first:2759,last:2760},{first:2765,last:2765},{first:2786,last:2787},{first:2817,last:2817},{first:2876,last:2876},{first:2879,last:2879},{first:2881,last:2883},{first:2893,last:2893},{first:2902,last:2902},{first:2946,last:2946},{first:3008,last:3008},{first:3021,last:3021},{first:3134,last:3136},{first:3142,last:3144},{first:3146,last:3149},{first:3157,last:3158},{first:3260,last:3260},{first:3263,last:3263},{first:3270,last:3270},{first:3276,last:3277},{first:3298,last:3299},{first:3393,last:3395},{first:3405,last:3405},{first:3530,last:3530},{first:3538,last:3540},{first:3542,last:3542},{first:3633,last:3633},{first:3636,last:3642},{first:3655,last:3662},{first:3761,last:3761},{first:3764,last:3769},{first:3771,last:3772},{first:3784,last:3789},{first:3864,last:3865},{first:3893,last:3893},{first:3895,last:3895},{first:3897,last:3897},{first:3953,last:3966},{first:3968,last:3972},{first:3974,last:3975},{first:3984,last:3991},{first:3993,last:4028},{first:4038,last:4038},{first:4141,last:4144},{first:4146,last:4146},{first:4150,last:4151},{first:4153,last:4153},{first:4184,last:4185},{first:4448,last:4607},{first:4959,last:4959},{first:5906,last:5908},{first:5938,last:5940},{first:5970,last:5971},{first:6002,last:6003},{first:6068,last:6069},{first:6071,last:6077},{first:6086,last:6086},{first:6089,last:6099},{first:6109,last:6109},{first:6155,last:6157},{first:6313,last:6313},{first:6432,last:6434},{first:6439,last:6440},{first:6450,last:6450},{first:6457,last:6459},{first:6679,last:6680},{first:6912,last:6915},{first:6964,last:6964},{first:6966,last:6970},{first:6972,last:6972},{first:6978,last:6978},{first:7019,last:7027},{first:7616,last:7626},{first:7678,last:7679},{first:8203,last:8207},{first:8234,last:8238},{first:8288,last:8291},{first:8298,last:8303},{first:8400,last:8431},{first:12330,last:12335},{first:12441,last:12442},{first:43014,last:43014},{first:43019,last:43019},{first:43045,last:43046},{first:64286,last:64286},{first:65024,last:65039},{first:65056,last:65059},{first:65279,last:65279},{first:65529,last:65531},{first:68097,last:68099},{first:68101,last:68102},{first:68108,last:68111},{first:68152,last:68154},{first:68159,last:68159},{first:119143,last:119145},{first:119155,last:119170},{first:119173,last:119179},{first:119210,last:119213},{first:119362,last:119364},{first:917505,last:917505},{first:917536,last:917631},{first:917760,last:917999}];QN.default=Lut});var p6e=g(eR=>{"use strict";Object.defineProperty(eR,"__esModule",{value:!0});var But=(e,t,r)=>{let i=0,n,a=r;if(e<t[0].first||e>t[a].last)return 0;for(;a>=i;)if(n=Math.floor((i+a)/2),e>t[n].last)i=n+1;else if(e<t[n].first)a=n-1;else return 1;return 0};eR.default=But});var tR=g(hg=>{"use strict";var f6e=hg&&hg.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(hg,"__esModule",{value:!0});var d6e=f6e(c6e()),jut=f6e(p6e()),qut=e=>e===0?0:e<32||e>=127&&e<160?-1:jut.default(e,d6e.default,d6e.default.length-1)?0:1+ +(e>=4352&&(e<=4447||e===9001||e===9002||e>=11904&&e<=42191&&e!==12351||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65135||e>=65280&&e<=65376||e>=65504&&e<=65510||e>=131072&&e<=196605||e>=196608&&e<=262141));hg.default=qut});var h6e=g(mg=>{"use strict";var $ut=mg&&mg.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(mg,"__esModule",{value:!0});var Mut=$ut(tR()),Uut=e=>{let t=0;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r),n=Mut.default(i);if(n<0)return-1;t+=n}return t};mg.default=Uut});var g6e=g(il=>{"use strict";var m6e=il&&il.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(il,"__esModule",{value:!0});il.wcswidth=il.wcwidth=void 0;var Vut=m6e(h6e());il.wcswidth=Vut.default;var Hut=m6e(tR());il.wcwidth=Hut.default});var rR=g(op=>{"use strict";Object.defineProperty(op,"__esModule",{value:!0});op.findWidthInConsole=op.stripAnsi=void 0;var zut=g6e(),Gut=/\x1b\[\d{1,3}(;\d{1,3})*m/g,Wut=e=>e.replace(Gut,"");op.stripAnsi=Wut;var Kut=(e,t)=>{let r=0;return e=(0,op.stripAnsi)(e),t&&Object.entries(t).forEach(([i,n])=>{let a=new RegExp(i,"g");r+=(e.match(a)||[]).length*n,e=e.replace(i,"")}),r+=(0,zut.wcswidth)(e),r};op.findWidthInConsole=Kut});var nR=g(bs=>{"use strict";Object.defineProperty(bs,"__esModule",{value:!0});bs.biggestWordInSentence=bs.textWithPadding=bs.splitTextIntoTextsOfMinLen=void 0;var iR=rR(),Yut=(e,t,r)=>{let i=[];return e.split(/[\n\r]/).forEach(a=>{let s=a.split(" "),o=[],u=0;s.forEach(l=>{let c=(0,iR.findWidthInConsole)(l,r);u+c<=t?(u+=c+1,o.push(l)):(o.length>0&&i.push(o.join(" ")),o=[l],u=c+1)}),i.push(o.join(" "))}),i};bs.splitTextIntoTextsOfMinLen=Yut;var Xut=(e,t,r,i)=>{let n=(0,iR.findWidthInConsole)(e,i),a=Math.floor((r-n)/2),s=r-a-n;if(r<n){let o=(0,bs.splitTextIntoTextsOfMinLen)(e,r);return o.length===1?e:o.map(u=>(0,bs.textWithPadding)(u,t,r,i)).join(`
|
|
291
291
|
`)}switch(t){case"left":return e.concat(" ".repeat(r-n));case"center":return" ".repeat(a).concat(e).concat(" ".repeat(s));case"right":default:return" ".repeat(r-n).concat(e)}};bs.textWithPadding=Xut;var Jut=(e,t)=>e.split(" ").reduce((r,i)=>Math.max(r,(0,iR.findWidthInConsole)(i,t)),0);bs.biggestWordInSentence=Jut});var gg=g(rt=>{"use strict";Object.defineProperty(rt,"__esModule",{value:!0});rt.getWidthLimitedColumnsArray=rt.createHeaderAsRow=rt.renderTableHorizontalBorders=rt.findLenOfColumn=rt.createRow=rt.createColumFromComputedColumn=rt.createColumFromOnlyName=rt.createTableHorizontalBorders=rt.convertRawRowOptionsToStandard=rt.cellText=void 0;var aR=ZN(),y6e=rR(),sR=nR(),a5=fg(),T1=(e,t)=>Math.max(e,t),Zut=e=>e==null?"":`${e}`;rt.cellText=Zut;var Qut=e=>{if(e)return{color:e.color,separator:e.separator||a5.DEFAULT_ROW_SEPARATOR}};rt.convertRawRowOptionsToStandard=Qut;var elt=({left:e,mid:t,right:r,other:i},n)=>{let a=e;return n.forEach(s=>{a+=i.repeat(s+2),a+=t}),a=a.slice(0,-t.length),a+=r,a};rt.createTableHorizontalBorders=elt;var tlt=e=>({name:e,title:e});rt.createColumFromOnlyName=tlt;var rlt=e=>{var t;return Object.assign(Object.assign(Object.assign(Object.assign({name:e.name,title:(t=e.title)!==null&&t!==void 0?t:e.name},(0,aR.objIfExists)("color",e.color)),(0,aR.objIfExists)("maxLen",e.maxLen)),(0,aR.objIfExists)("minLen",e.minLen)),{alignment:e.alignment||a5.DEFAULT_ROW_ALIGNMENT})};rt.createColumFromComputedColumn=rlt;var ilt=(e,t,r)=>({color:e,separator:r,text:t});rt.createRow=ilt;var nlt=(e,t,r)=>{let i=e.name,n=e.title,a=T1(0,e?.minLen||0);return e.maxLen?(a=T1(a,T1(e.maxLen,(0,sR.biggestWordInSentence)(n,r))),a=t.reduce((s,o)=>T1(s,(0,sR.biggestWordInSentence)((0,rt.cellText)(o.text[i]),r)),a),a):(a=T1(a,(0,y6e.findWidthInConsole)(n,r)),t.forEach(s=>{a=T1(a,(0,y6e.findWidthInConsole)((0,rt.cellText)(s.text[i]),r))}),a)};rt.findLenOfColumn=nlt;var alt=(e,t)=>(0,rt.createTableHorizontalBorders)(e,t);rt.renderTableHorizontalBorders=alt;var slt=(e,t)=>{let r=a5.DEFAULT_HEADER_FONT_COLOR,i=e(r,{},!1);return t.forEach(n=>{i.text[n.name]=n.title}),i};rt.createHeaderAsRow=slt;var olt=(e,t,r)=>{let i={};return e.forEach(n=>{i[n.name]=(0,sR.splitTextIntoTextsOfMinLen)((0,rt.cellText)(t.text[n.name]),n.length||a5.DEFAULT_COLUMN_LEN,r)}),i};rt.getWidthLimitedColumnsArray=olt});var v6e=g(F1=>{"use strict";Object.defineProperty(F1,"__esModule",{value:!0});F1.preProcessRows=F1.preProcessColumns=void 0;var ult=gg(),llt=e=>{e.computedColumns.length&&e.computedColumns.forEach(t=>{e.addColumn(t),e.rows.forEach(r=>{r.text[t.name]=t.function(r.text)})})},clt=e=>{e.enabledColumns.length&&(e.columns=e.columns.filter(t=>e.enabledColumns.includes(t.name)))},plt=e=>{e.disabledColumns.length&&(e.columns=e.columns.filter(t=>!e.disabledColumns.includes(t.name)))},dlt=e=>{e.columns.forEach(t=>{t.length=(0,ult.findLenOfColumn)(t,e.rows,e.charLength)})},flt=e=>{llt(e),plt(e),clt(e),dlt(e)};F1.preProcessColumns=flt;var hlt=e=>{let t=e.rows.filter(r=>e.filterFunction(r.text)).sort((r,i)=>e.sortFunction(r.text,i.text));e.rows=t};F1.preProcessRows=hlt});var oR=g(Wn=>{"use strict";var w6e=Wn&&Wn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Wn,"__esModule",{value:!0});Wn.printSimpleTable=Wn.renderSimpleTable=Wn.renderTable=void 0;var b6e=w6e(JN()),D6e=nR(),_a=fg(),nl=gg(),mlt=w6e(uR()),_6e=v6e(),glt=(e,t,r,i,n,a,s,o)=>{let u=new b6e.default(s);return u.addCharsWithColor("",e.vertical),t.forEach(l=>{let p=r<i[l.name].length?(0,nl.cellText)(i[l.name][r]):"";u.addCharsWithColor(_a.DEFAULT_ROW_FONT_COLOR," "),u.addCharsWithColor(n&&_a.DEFAULT_HEADER_FONT_COLOR||l.color||a.color,(0,D6e.textWithPadding)(p,l.alignment||_a.DEFAULT_ROW_ALIGNMENT,l.length||_a.DEFAULT_COLUMN_LEN,o)),u.addCharsWithColor("",` ${e.vertical}`)}),u.renderConsole()},E6e=(e,t,r,i,n,a)=>{let s=(0,nl.getWidthLimitedColumnsArray)(t,r,a),o=Object.values(s).reduce((l,c)=>Math.max(l,c.length),0),u=[];for(let l=0;l<o;l+=1){let c=glt(e,t,l,s,n,r,i,a);u.push(c)}return u},ylt=(e,t)=>{let r=[];return r=r.concat(E6e(e.tableStyle,e.columns,t,e.colorMap,void 0,e.charLength)),r},vlt=e=>{let t=[];if(e.title===void 0)return t;let r=()=>{let a=(s,o)=>s+o+2+1;return e.columns.map(s=>s.length||_a.DEFAULT_COLUMN_LEN).reduce(a,1)},i=(0,D6e.textWithPadding)(e.title,_a.DEFAULT_HEADER_ALIGNMENT,r()),n=new b6e.default(e.colorMap);return n.addCharsWithColor(_a.DEFAULT_HEADER_FONT_COLOR,i),t.push(n.renderConsole()),t},_lt=e=>{let t=[];t.push((0,nl.renderTableHorizontalBorders)(e.tableStyle.headerTop,e.columns.map(i=>i.length||_a.DEFAULT_COLUMN_LEN)));let r=(0,nl.createHeaderAsRow)(nl.createRow,e.columns);return t=t.concat(E6e(e.tableStyle,e.columns,r,e.colorMap,!0)),t.push((0,nl.renderTableHorizontalBorders)(e.tableStyle.headerBottom,e.columns.map(i=>i.length||_a.DEFAULT_COLUMN_LEN))),t},wlt=e=>{let t=[];return t.push((0,nl.renderTableHorizontalBorders)(e.tableStyle.tableBottom,e.columns.map(r=>r.length||_a.DEFAULT_COLUMN_LEN))),t},blt=(e,t)=>{let r=[],i=e.rows.length-1;return e.rows.indexOf(t)!==i&&t.separator&&r.push((0,nl.renderTableHorizontalBorders)(e.tableStyle.rowSeparator,e.columns.map(a=>a.length||_a.DEFAULT_COLUMN_LEN))),r},Dlt=e=>{(0,_6e.preProcessColumns)(e),(0,_6e.preProcessRows)(e);let t=[];return vlt(e).forEach(r=>t.push(r)),_lt(e).forEach(r=>t.push(r)),e.rows.forEach(r=>{ylt(e,r).forEach(i=>t.push(i)),blt(e,r).forEach(i=>t.push(i))}),wlt(e).forEach(r=>t.push(r)),t.join(`
|
|
292
|
-
`)};Wn.renderTable=Dlt;var Elt=e=>{let t=new mlt.default;return t.addRows(e),(0,Wn.renderTable)(t)};Wn.renderSimpleTable=Elt;var xlt=e=>{console.log((0,Wn.renderSimpleTable)(e))};Wn.printSimpleTable=xlt});var uR=g(cR=>{"use strict";Object.defineProperty(cR,"__esModule",{value:!0});var Clt=JN(),s5=fg(),o5=gg(),Slt=ZN(),Alt=oR(),Olt=()=>0,Tlt=()=>!0,lR=class{initSimple(t){this.columns=t.map(r=>({name:r,title:r,alignment:s5.DEFAULT_ROW_ALIGNMENT}))}initDetailed(t){var r;this.title=t?.title||this.title,this.tableStyle=t?.style||this.tableStyle,this.sortFunction=t?.sort||this.sortFunction,this.filterFunction=t?.filter||this.filterFunction,this.enabledColumns=t?.enabledColumns||this.enabledColumns,this.disabledColumns=t?.disabledColumns||this.disabledColumns,this.computedColumns=t?.computedColumns||this.computedColumns,this.columns=((r=t?.columns)===null||r===void 0?void 0:r.map(Slt.rawColumnToInternalColumn))||this.columns,this.rowSeparator=t?.rowSeparator||this.rowSeparator,this.charLength=t?.charLength||this.charLength,t?.shouldDisableColors?this.colorMap={}:t?.colorMap&&(this.colorMap=Object.assign(Object.assign({},this.colorMap),t.colorMap)),t.rows!==void 0&&this.addRows(t.rows)}constructor(t){this.rows=[],this.columns=[],this.title=void 0,this.tableStyle=s5.DEFAULT_TABLE_STYLE,this.filterFunction=Tlt,this.sortFunction=Olt,this.enabledColumns=[],this.disabledColumns=[],this.computedColumns=[],this.rowSeparator=s5.DEFAULT_ROW_SEPARATOR,this.colorMap=Clt.DEFAULT_COLOR_MAP,this.charLength={},t instanceof Array?this.initSimple(t):typeof t=="object"&&this.initDetailed(t)}createColumnFromRow(t){let r=this.columns.map(i=>i.name);Object.keys(t).forEach(i=>{r.includes(i)||this.columns.push((0,o5.createColumFromOnlyName)(i))})}addColumn(t){typeof t=="string"?this.columns.push((0,o5.createColumFromOnlyName)(t)):this.columns.push((0,o5.createColumFromComputedColumn)(t))}addColumns(t){t.forEach(r=>{this.addColumn(r)})}addRow(t,r){this.createColumnFromRow(t),this.rows.push((0,o5.createRow)(r?.color||s5.DEFAULT_ROW_FONT_COLOR,t,r?.separator!==void 0?r?.separator:this.rowSeparator))}addRows(t,r){t.forEach(i=>{this.addRow(i,r)})}renderTable(){return(0,Alt.renderTable)(this)}};cR.default=lR});var C6e=g(yg=>{"use strict";var Flt=yg&&yg.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(yg,"__esModule",{value:!0});var klt=Flt(uR()),x6e=gg(),pR=class{constructor(t){this.table=new klt.default(t)}addColumn(t){return this.table.addColumn(t),this}addColumns(t){return this.table.addColumns(t),this}addRow(t,r){return this.table.addRow(t,(0,x6e.convertRawRowOptionsToStandard)(r)),this}addRows(t,r){return this.table.addRows(t,(0,x6e.convertRawRowOptionsToStandard)(r)),this}printTable(){let t=this.table.renderTable();console.log(t)}render(){return this.table.renderTable()}};yg.default=pR});var vg=g(Ds=>{"use strict";var Nlt=Ds&&Ds.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ds,"__esModule",{value:!0});Ds.renderTable=Ds.printTable=Ds.Table=void 0;var Rlt=Nlt(C6e());Ds.Table=Rlt.default;var S6e=oR();Object.defineProperty(Ds,"printTable",{enumerable:!0,get:function(){return S6e.printSimpleTable}});Object.defineProperty(Ds,"renderTable",{enumerable:!0,get:function(){return S6e.renderSimpleTable}})});var K4e=g((w7t,W4e)=>{W4e.exports=zv()});var GR=ve(zR(),1),{program:$,createCommand:Pct,createArgument:Ict,createOption:Lct,CommanderError:Bct,InvalidArgumentError:jct,InvalidOptionArgumentError:qct,Command:$ct,Argument:Mct,Option:Uct,Help:Vct}=GR.default;var zo={name:"@capgo/cli",version:"4.20.6",description:"A CLI to upload to capgo servers",author:"github.com/riderx",license:"Apache 2.0",homepage:"https://github.com/Cap-go/CLIl#readme",repository:{type:"git",url:"git+https://github.com/Cap-go/CLI.git"},bugs:{url:"https://github.com/Cap-go/CLI/issues"},keywords:["appflow alternative","ionic","capacitor","auto update","live update","capgo","cli","upload","capgo-cli"],main:"dist/index.js",bin:{capgo:"dist/index.js"},engines:{npm:">=8.0.0",node:">=18.0.0"},scripts:{build:"node build.mjs",dev:"NODE_ENV=development ncc build","no-debug":"node dist/index.js",test:"npx --yes ts-node -T src/index.ts","dev-build":"SUPA_DB=development ncc build",pack:"pkg",types:"npx --yes supabase gen types typescript --project-id=xvwzpoazmxkqosrdewyv > src/types/supabase.types.ts",test_rls:"ts-node ./test/test_headers_rls.ts",lint:'eslint "src/**/*.ts" --fix',"check-posix-paths":"node test/check-posix-paths.js"},devDependencies:{"@antfu/eslint-config":"^2.27.3","@bradenmacdonald/s3-lite-client":"npm:@jsr/bradenmacdonald__s3-lite-client","@capacitor/cli":"^6.1.2","@capgo/find-package-manager":"^0.0.17","@clack/prompts":"^0.7.0","@manypkg/find-root":"^2.2.3","@supabase/supabase-js":"^2.45.2","@tomasklaen/checksum":"^1.1.0","@types/adm-zip":"0.5.5","@types/mime":"^4.0.0","@types/node":"^22.5.0","@types/node-dir":"^0.0.37","@types/npmcli__ci-detect":"^2.0.3","@types/prettyjson":"^0.0.33","@types/prompt-sync":"^4.2.3","@types/semver":"^7.5.8","@types/tmp":"^0.2.6","@typescript-eslint/eslint-plugin":"^8.3.0","@typescript-eslint/parser":"^8.3.0","@vercel/ncc":"^0.38.1","adm-zip":"0.5.14","ci-info":"^4.0.0",commander:"12.1.0","console-table-printer":"^2.12.1",esbuild:"^0.23.1",eslint:"9.11.1","get-latest-version":"^5.1.0","git-format-staged":"3.1.1",husky:"^9.1.5","is-wsl":"^3.1.0",jszip:"^3.10.1",ky:"^1.7.1",logsnag:"1.0.0",mime:"^4.0.4","node-dir":"^0.1.17",open:"^10.1.0",pkg:"5.8.1",prettyjson:"^1.2.5",semver:"^7.6.3",tmp:"^0.2.3","ts-loader":"^9.5.1","ts-node":"^10.9.2","tsconfig-paths":"4.2.0","tus-js-client":"^4.2.3",typescript:"5.6.2"}};var s1=require("node:process");var ri=ve(it(),1),hp=require("node:process"),Go=ve(require("node:readline"),1),X5=ve(require("node:readline"),1),nP=require("node:tty"),Ng=ve(XR(),1);function I3e({onlyFirst:e=!1}={}){let t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}function aP(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(I3e(),"")}var J5={},L3e={get exports(){return J5},set exports(e){J5=e}};(function(e){var t={};e.exports=t,t.eastAsianWidth=function(i){var n=i.charCodeAt(0),a=i.length==2?i.charCodeAt(1):0,s=n;return 55296<=n&&n<=56319&&56320<=a&&a<=57343&&(n&=1023,a&=1023,s=n<<10|a,s+=65536),s==12288||65281<=s&&s<=65376||65504<=s&&s<=65510?"F":s==8361||65377<=s&&s<=65470||65474<=s&&s<=65479||65482<=s&&s<=65487||65490<=s&&s<=65495||65498<=s&&s<=65500||65512<=s&&s<=65518?"H":4352<=s&&s<=4447||4515<=s&&s<=4519||4602<=s&&s<=4607||9001<=s&&s<=9002||11904<=s&&s<=11929||11931<=s&&s<=12019||12032<=s&&s<=12245||12272<=s&&s<=12283||12289<=s&&s<=12350||12353<=s&&s<=12438||12441<=s&&s<=12543||12549<=s&&s<=12589||12593<=s&&s<=12686||12688<=s&&s<=12730||12736<=s&&s<=12771||12784<=s&&s<=12830||12832<=s&&s<=12871||12880<=s&&s<=13054||13056<=s&&s<=19903||19968<=s&&s<=42124||42128<=s&&s<=42182||43360<=s&&s<=43388||44032<=s&&s<=55203||55216<=s&&s<=55238||55243<=s&&s<=55291||63744<=s&&s<=64255||65040<=s&&s<=65049||65072<=s&&s<=65106||65108<=s&&s<=65126||65128<=s&&s<=65131||110592<=s&&s<=110593||127488<=s&&s<=127490||127504<=s&&s<=127546||127552<=s&&s<=127560||127568<=s&&s<=127569||131072<=s&&s<=194367||177984<=s&&s<=196605||196608<=s&&s<=262141?"W":32<=s&&s<=126||162<=s&&s<=163||165<=s&&s<=166||s==172||s==175||10214<=s&&s<=10221||10629<=s&&s<=10630?"Na":s==161||s==164||167<=s&&s<=168||s==170||173<=s&&s<=174||176<=s&&s<=180||182<=s&&s<=186||188<=s&&s<=191||s==198||s==208||215<=s&&s<=216||222<=s&&s<=225||s==230||232<=s&&s<=234||236<=s&&s<=237||s==240||242<=s&&s<=243||247<=s&&s<=250||s==252||s==254||s==257||s==273||s==275||s==283||294<=s&&s<=295||s==299||305<=s&&s<=307||s==312||319<=s&&s<=322||s==324||328<=s&&s<=331||s==333||338<=s&&s<=339||358<=s&&s<=359||s==363||s==462||s==464||s==466||s==468||s==470||s==472||s==474||s==476||s==593||s==609||s==708||s==711||713<=s&&s<=715||s==717||s==720||728<=s&&s<=731||s==733||s==735||768<=s&&s<=879||913<=s&&s<=929||931<=s&&s<=937||945<=s&&s<=961||963<=s&&s<=969||s==1025||1040<=s&&s<=1103||s==1105||s==8208||8211<=s&&s<=8214||8216<=s&&s<=8217||8220<=s&&s<=8221||8224<=s&&s<=8226||8228<=s&&s<=8231||s==8240||8242<=s&&s<=8243||s==8245||s==8251||s==8254||s==8308||s==8319||8321<=s&&s<=8324||s==8364||s==8451||s==8453||s==8457||s==8467||s==8470||8481<=s&&s<=8482||s==8486||s==8491||8531<=s&&s<=8532||8539<=s&&s<=8542||8544<=s&&s<=8555||8560<=s&&s<=8569||s==8585||8592<=s&&s<=8601||8632<=s&&s<=8633||s==8658||s==8660||s==8679||s==8704||8706<=s&&s<=8707||8711<=s&&s<=8712||s==8715||s==8719||s==8721||s==8725||s==8730||8733<=s&&s<=8736||s==8739||s==8741||8743<=s&&s<=8748||s==8750||8756<=s&&s<=8759||8764<=s&&s<=8765||s==8776||s==8780||s==8786||8800<=s&&s<=8801||8804<=s&&s<=8807||8810<=s&&s<=8811||8814<=s&&s<=8815||8834<=s&&s<=8835||8838<=s&&s<=8839||s==8853||s==8857||s==8869||s==8895||s==8978||9312<=s&&s<=9449||9451<=s&&s<=9547||9552<=s&&s<=9587||9600<=s&&s<=9615||9618<=s&&s<=9621||9632<=s&&s<=9633||9635<=s&&s<=9641||9650<=s&&s<=9651||9654<=s&&s<=9655||9660<=s&&s<=9661||9664<=s&&s<=9665||9670<=s&&s<=9672||s==9675||9678<=s&&s<=9681||9698<=s&&s<=9701||s==9711||9733<=s&&s<=9734||s==9737||9742<=s&&s<=9743||9748<=s&&s<=9749||s==9756||s==9758||s==9792||s==9794||9824<=s&&s<=9825||9827<=s&&s<=9829||9831<=s&&s<=9834||9836<=s&&s<=9837||s==9839||9886<=s&&s<=9887||9918<=s&&s<=9919||9924<=s&&s<=9933||9935<=s&&s<=9953||s==9955||9960<=s&&s<=9983||s==10045||s==10071||10102<=s&&s<=10111||11093<=s&&s<=11097||12872<=s&&s<=12879||57344<=s&&s<=63743||65024<=s&&s<=65039||s==65533||127232<=s&&s<=127242||127248<=s&&s<=127277||127280<=s&&s<=127337||127344<=s&&s<=127386||917760<=s&&s<=917999||983040<=s&&s<=1048573||1048576<=s&&s<=1114109?"A":"N"},t.characterLength=function(i){var n=this.eastAsianWidth(i);return n=="F"||n=="W"||n=="A"?2:1};function r(i){return i.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g)||[]}t.length=function(i){for(var n=r(i),a=0,s=0;s<n.length;s++)a=a+this.characterLength(n[s]);return a},t.slice=function(i,n,a){textLen=t.length(i),n=n||0,a=a||1,n<0&&(n=textLen+n),a<0&&(a=textLen+a);for(var s="",o=0,u=r(i),l=0;l<u.length;l++){var c=u[l],p=t.length(c);if(o>=n-(p==2?1:0))if(o+p<=a)s+=c;else break;o+=p}return s}})(L3e);var B3e=J5,j3e=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g};function $1(e,t={}){if(typeof e!="string"||e.length===0||(t={ambiguousIsNarrow:!0,...t},e=aP(e),e.length===0))return 0;e=e.replace(j3e()," ");let r=t.ambiguousIsNarrow?1:2,i=0;for(let n of e){let a=n.codePointAt(0);if(!(a<=31||a>=127&&a<=159||a>=768&&a<=879))switch(B3e.eastAsianWidth(n)){case"F":case"W":i+=2;break;case"A":i+=r;break;default:i+=1}}return i}var K5=10,JR=(e=0)=>t=>`\x1B[${t+e}m`,ZR=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,QR=(e=0)=>(t,r,i)=>`\x1B[${38+e};2;${t};${r};${i}m`,ft={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};Object.keys(ft.modifier);var q3e=Object.keys(ft.color),$3e=Object.keys(ft.bgColor);[...q3e,...$3e];function M3e(){let e=new Map;for(let[t,r]of Object.entries(ft)){for(let[i,n]of Object.entries(r))ft[i]={open:`\x1B[${n[0]}m`,close:`\x1B[${n[1]}m`},r[i]=ft[i],e.set(n[0],n[1]);Object.defineProperty(ft,t,{value:r,enumerable:!1})}return Object.defineProperty(ft,"codes",{value:e,enumerable:!1}),ft.color.close="\x1B[39m",ft.bgColor.close="\x1B[49m",ft.color.ansi=JR(),ft.color.ansi256=ZR(),ft.color.ansi16m=QR(),ft.bgColor.ansi=JR(K5),ft.bgColor.ansi256=ZR(K5),ft.bgColor.ansi16m=QR(K5),Object.defineProperties(ft,{rgbToAnsi256:{value:(t,r,i)=>t===r&&r===i?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(i/255*5),enumerable:!1},hexToRgb:{value:t=>{let r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(t.toString(16));if(!r)return[0,0,0];let[i]=r;i.length===3&&(i=[...i].map(a=>a+a).join(""));let n=Number.parseInt(i,16);return[n>>16&255,n>>8&255,n&255]},enumerable:!1},hexToAnsi256:{value:t=>ft.rgbToAnsi256(...ft.hexToRgb(t)),enumerable:!1},ansi256ToAnsi:{value:t=>{if(t<8)return 30+t;if(t<16)return 90+(t-8);let r,i,n;if(t>=232)r=((t-232)*10+8)/255,i=r,n=r;else{t-=16;let o=t%36;r=Math.floor(t/36)/5,i=Math.floor(o/6)/5,n=o%6/5}let a=Math.max(r,i,n)*2;if(a===0)return 30;let s=30+(Math.round(n)<<2|Math.round(i)<<1|Math.round(r));return a===2&&(s+=60),s},enumerable:!1},rgbToAnsi:{value:(t,r,i)=>ft.ansi256ToAnsi(ft.rgbToAnsi256(t,r,i)),enumerable:!1},hexToAnsi:{value:t=>ft.ansi256ToAnsi(ft.hexToAnsi256(t)),enumerable:!1}}),ft}var U3e=M3e(),Lg=new Set(["\x1B","\x9B"]),V3e=39,Z5="\x07",sP="[",H3e="]",oP="m",Q5=`${H3e}8;;`,eP=e=>`${Lg.values().next().value}${sP}${e}${oP}`,tP=e=>`${Lg.values().next().value}${Q5}${e}${Z5}`,z3e=e=>e.split(" ").map(t=>$1(t)),Y5=(e,t,r)=>{let i=[...t],n=!1,a=!1,s=$1(aP(e[e.length-1]));for(let[o,u]of i.entries()){let l=$1(u);if(s+l<=r?e[e.length-1]+=u:(e.push(u),s=0),Lg.has(u)&&(n=!0,a=i.slice(o+1).join("").startsWith(Q5)),n){a?u===Z5&&(n=!1,a=!1):u===oP&&(n=!1);continue}s+=l,s===r&&o<i.length-1&&(e.push(""),s=0)}!s&&e[e.length-1].length>0&&e.length>1&&(e[e.length-2]+=e.pop())},G3e=e=>{let t=e.split(" "),r=t.length;for(;r>0&&!($1(t[r-1])>0);)r--;return r===t.length?e:t.slice(0,r).join(" ")+t.slice(r).join("")},W3e=(e,t,r={})=>{if(r.trim!==!1&&e.trim()==="")return"";let i="",n,a,s=z3e(e),o=[""];for(let[l,c]of e.split(" ").entries()){r.trim!==!1&&(o[o.length-1]=o[o.length-1].trimStart());let p=$1(o[o.length-1]);if(l!==0&&(p>=t&&(r.wordWrap===!1||r.trim===!1)&&(o.push(""),p=0),(p>0||r.trim===!1)&&(o[o.length-1]+=" ",p++)),r.hard&&s[l]>t){let d=t-p,f=1+Math.floor((s[l]-d-1)/t);Math.floor((s[l]-1)/t)<f&&o.push(""),Y5(o,c,t);continue}if(p+s[l]>t&&p>0&&s[l]>0){if(r.wordWrap===!1&&p<t){Y5(o,c,t);continue}o.push("")}if(p+s[l]>t&&r.wordWrap===!1){Y5(o,c,t);continue}o[o.length-1]+=c}r.trim!==!1&&(o=o.map(l=>G3e(l)));let u=[...o.join(`
|
|
292
|
+
`)};Wn.renderTable=Dlt;var Elt=e=>{let t=new mlt.default;return t.addRows(e),(0,Wn.renderTable)(t)};Wn.renderSimpleTable=Elt;var xlt=e=>{console.log((0,Wn.renderSimpleTable)(e))};Wn.printSimpleTable=xlt});var uR=g(cR=>{"use strict";Object.defineProperty(cR,"__esModule",{value:!0});var Clt=JN(),s5=fg(),o5=gg(),Slt=ZN(),Alt=oR(),Olt=()=>0,Tlt=()=>!0,lR=class{initSimple(t){this.columns=t.map(r=>({name:r,title:r,alignment:s5.DEFAULT_ROW_ALIGNMENT}))}initDetailed(t){var r;this.title=t?.title||this.title,this.tableStyle=t?.style||this.tableStyle,this.sortFunction=t?.sort||this.sortFunction,this.filterFunction=t?.filter||this.filterFunction,this.enabledColumns=t?.enabledColumns||this.enabledColumns,this.disabledColumns=t?.disabledColumns||this.disabledColumns,this.computedColumns=t?.computedColumns||this.computedColumns,this.columns=((r=t?.columns)===null||r===void 0?void 0:r.map(Slt.rawColumnToInternalColumn))||this.columns,this.rowSeparator=t?.rowSeparator||this.rowSeparator,this.charLength=t?.charLength||this.charLength,t?.shouldDisableColors?this.colorMap={}:t?.colorMap&&(this.colorMap=Object.assign(Object.assign({},this.colorMap),t.colorMap)),t.rows!==void 0&&this.addRows(t.rows)}constructor(t){this.rows=[],this.columns=[],this.title=void 0,this.tableStyle=s5.DEFAULT_TABLE_STYLE,this.filterFunction=Tlt,this.sortFunction=Olt,this.enabledColumns=[],this.disabledColumns=[],this.computedColumns=[],this.rowSeparator=s5.DEFAULT_ROW_SEPARATOR,this.colorMap=Clt.DEFAULT_COLOR_MAP,this.charLength={},t instanceof Array?this.initSimple(t):typeof t=="object"&&this.initDetailed(t)}createColumnFromRow(t){let r=this.columns.map(i=>i.name);Object.keys(t).forEach(i=>{r.includes(i)||this.columns.push((0,o5.createColumFromOnlyName)(i))})}addColumn(t){typeof t=="string"?this.columns.push((0,o5.createColumFromOnlyName)(t)):this.columns.push((0,o5.createColumFromComputedColumn)(t))}addColumns(t){t.forEach(r=>{this.addColumn(r)})}addRow(t,r){this.createColumnFromRow(t),this.rows.push((0,o5.createRow)(r?.color||s5.DEFAULT_ROW_FONT_COLOR,t,r?.separator!==void 0?r?.separator:this.rowSeparator))}addRows(t,r){t.forEach(i=>{this.addRow(i,r)})}renderTable(){return(0,Alt.renderTable)(this)}};cR.default=lR});var C6e=g(yg=>{"use strict";var Flt=yg&&yg.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(yg,"__esModule",{value:!0});var klt=Flt(uR()),x6e=gg(),pR=class{constructor(t){this.table=new klt.default(t)}addColumn(t){return this.table.addColumn(t),this}addColumns(t){return this.table.addColumns(t),this}addRow(t,r){return this.table.addRow(t,(0,x6e.convertRawRowOptionsToStandard)(r)),this}addRows(t,r){return this.table.addRows(t,(0,x6e.convertRawRowOptionsToStandard)(r)),this}printTable(){let t=this.table.renderTable();console.log(t)}render(){return this.table.renderTable()}};yg.default=pR});var vg=g(Ds=>{"use strict";var Nlt=Ds&&Ds.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ds,"__esModule",{value:!0});Ds.renderTable=Ds.printTable=Ds.Table=void 0;var Rlt=Nlt(C6e());Ds.Table=Rlt.default;var S6e=oR();Object.defineProperty(Ds,"printTable",{enumerable:!0,get:function(){return S6e.printSimpleTable}});Object.defineProperty(Ds,"renderTable",{enumerable:!0,get:function(){return S6e.renderSimpleTable}})});var K4e=g((w7t,W4e)=>{W4e.exports=zv()});var GR=ve(zR(),1),{program:$,createCommand:Pct,createArgument:Ict,createOption:Lct,CommanderError:Bct,InvalidArgumentError:jct,InvalidOptionArgumentError:qct,Command:$ct,Argument:Mct,Option:Uct,Help:Vct}=GR.default;var zo={name:"@capgo/cli",version:"4.20.8",description:"A CLI to upload to capgo servers",author:"github.com/riderx",license:"Apache 2.0",homepage:"https://github.com/Cap-go/CLIl#readme",repository:{type:"git",url:"git+https://github.com/Cap-go/CLI.git"},bugs:{url:"https://github.com/Cap-go/CLI/issues"},keywords:["appflow alternative","ionic","capacitor","auto update","live update","capgo","cli","upload","capgo-cli"],main:"dist/index.js",bin:{capgo:"dist/index.js"},engines:{npm:">=8.0.0",node:">=18.0.0"},scripts:{build:"node build.mjs",dev:"NODE_ENV=development ncc build","no-debug":"node dist/index.js",test:"npx --yes ts-node -T src/index.ts","dev-build":"SUPA_DB=development ncc build",pack:"pkg",types:"npx --yes supabase gen types typescript --project-id=xvwzpoazmxkqosrdewyv > src/types/supabase.types.ts",test_rls:"ts-node ./test/test_headers_rls.ts",lint:'eslint "src/**/*.ts" --fix',"check-posix-paths":"node test/check-posix-paths.js"},devDependencies:{"@antfu/eslint-config":"^2.27.3","@bradenmacdonald/s3-lite-client":"npm:@jsr/bradenmacdonald__s3-lite-client","@capacitor/cli":"^6.1.2","@capgo/find-package-manager":"^0.0.17","@clack/prompts":"^0.7.0","@manypkg/find-root":"^2.2.3","@supabase/supabase-js":"^2.45.2","@tomasklaen/checksum":"^1.1.0","@types/adm-zip":"0.5.5","@types/mime":"^4.0.0","@types/node":"^22.5.0","@types/node-dir":"^0.0.37","@types/npmcli__ci-detect":"^2.0.3","@types/prettyjson":"^0.0.33","@types/prompt-sync":"^4.2.3","@types/semver":"^7.5.8","@types/tmp":"^0.2.6","@typescript-eslint/eslint-plugin":"^8.3.0","@typescript-eslint/parser":"^8.3.0","@vercel/ncc":"^0.38.1","adm-zip":"0.5.14","ci-info":"^4.0.0",commander:"12.1.0","console-table-printer":"^2.12.1",esbuild:"^0.23.1",eslint:"9.12.0","get-latest-version":"^5.1.0","git-format-staged":"3.1.1",husky:"^9.1.5","is-wsl":"^3.1.0",jszip:"^3.10.1",ky:"^1.7.1",logsnag:"1.0.0",mime:"^4.0.4","node-dir":"^0.1.17",open:"^10.1.0",pkg:"5.8.1",prettyjson:"^1.2.5",semver:"^7.6.3",tmp:"^0.2.3","ts-loader":"^9.5.1","ts-node":"^10.9.2","tsconfig-paths":"4.2.0","tus-js-client":"^4.2.3",typescript:"5.6.2"}};var s1=require("node:process");var ri=ve(it(),1),hp=require("node:process"),Go=ve(require("node:readline"),1),X5=ve(require("node:readline"),1),nP=require("node:tty"),Ng=ve(XR(),1);function I3e({onlyFirst:e=!1}={}){let t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}function aP(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(I3e(),"")}var J5={},L3e={get exports(){return J5},set exports(e){J5=e}};(function(e){var t={};e.exports=t,t.eastAsianWidth=function(i){var n=i.charCodeAt(0),a=i.length==2?i.charCodeAt(1):0,s=n;return 55296<=n&&n<=56319&&56320<=a&&a<=57343&&(n&=1023,a&=1023,s=n<<10|a,s+=65536),s==12288||65281<=s&&s<=65376||65504<=s&&s<=65510?"F":s==8361||65377<=s&&s<=65470||65474<=s&&s<=65479||65482<=s&&s<=65487||65490<=s&&s<=65495||65498<=s&&s<=65500||65512<=s&&s<=65518?"H":4352<=s&&s<=4447||4515<=s&&s<=4519||4602<=s&&s<=4607||9001<=s&&s<=9002||11904<=s&&s<=11929||11931<=s&&s<=12019||12032<=s&&s<=12245||12272<=s&&s<=12283||12289<=s&&s<=12350||12353<=s&&s<=12438||12441<=s&&s<=12543||12549<=s&&s<=12589||12593<=s&&s<=12686||12688<=s&&s<=12730||12736<=s&&s<=12771||12784<=s&&s<=12830||12832<=s&&s<=12871||12880<=s&&s<=13054||13056<=s&&s<=19903||19968<=s&&s<=42124||42128<=s&&s<=42182||43360<=s&&s<=43388||44032<=s&&s<=55203||55216<=s&&s<=55238||55243<=s&&s<=55291||63744<=s&&s<=64255||65040<=s&&s<=65049||65072<=s&&s<=65106||65108<=s&&s<=65126||65128<=s&&s<=65131||110592<=s&&s<=110593||127488<=s&&s<=127490||127504<=s&&s<=127546||127552<=s&&s<=127560||127568<=s&&s<=127569||131072<=s&&s<=194367||177984<=s&&s<=196605||196608<=s&&s<=262141?"W":32<=s&&s<=126||162<=s&&s<=163||165<=s&&s<=166||s==172||s==175||10214<=s&&s<=10221||10629<=s&&s<=10630?"Na":s==161||s==164||167<=s&&s<=168||s==170||173<=s&&s<=174||176<=s&&s<=180||182<=s&&s<=186||188<=s&&s<=191||s==198||s==208||215<=s&&s<=216||222<=s&&s<=225||s==230||232<=s&&s<=234||236<=s&&s<=237||s==240||242<=s&&s<=243||247<=s&&s<=250||s==252||s==254||s==257||s==273||s==275||s==283||294<=s&&s<=295||s==299||305<=s&&s<=307||s==312||319<=s&&s<=322||s==324||328<=s&&s<=331||s==333||338<=s&&s<=339||358<=s&&s<=359||s==363||s==462||s==464||s==466||s==468||s==470||s==472||s==474||s==476||s==593||s==609||s==708||s==711||713<=s&&s<=715||s==717||s==720||728<=s&&s<=731||s==733||s==735||768<=s&&s<=879||913<=s&&s<=929||931<=s&&s<=937||945<=s&&s<=961||963<=s&&s<=969||s==1025||1040<=s&&s<=1103||s==1105||s==8208||8211<=s&&s<=8214||8216<=s&&s<=8217||8220<=s&&s<=8221||8224<=s&&s<=8226||8228<=s&&s<=8231||s==8240||8242<=s&&s<=8243||s==8245||s==8251||s==8254||s==8308||s==8319||8321<=s&&s<=8324||s==8364||s==8451||s==8453||s==8457||s==8467||s==8470||8481<=s&&s<=8482||s==8486||s==8491||8531<=s&&s<=8532||8539<=s&&s<=8542||8544<=s&&s<=8555||8560<=s&&s<=8569||s==8585||8592<=s&&s<=8601||8632<=s&&s<=8633||s==8658||s==8660||s==8679||s==8704||8706<=s&&s<=8707||8711<=s&&s<=8712||s==8715||s==8719||s==8721||s==8725||s==8730||8733<=s&&s<=8736||s==8739||s==8741||8743<=s&&s<=8748||s==8750||8756<=s&&s<=8759||8764<=s&&s<=8765||s==8776||s==8780||s==8786||8800<=s&&s<=8801||8804<=s&&s<=8807||8810<=s&&s<=8811||8814<=s&&s<=8815||8834<=s&&s<=8835||8838<=s&&s<=8839||s==8853||s==8857||s==8869||s==8895||s==8978||9312<=s&&s<=9449||9451<=s&&s<=9547||9552<=s&&s<=9587||9600<=s&&s<=9615||9618<=s&&s<=9621||9632<=s&&s<=9633||9635<=s&&s<=9641||9650<=s&&s<=9651||9654<=s&&s<=9655||9660<=s&&s<=9661||9664<=s&&s<=9665||9670<=s&&s<=9672||s==9675||9678<=s&&s<=9681||9698<=s&&s<=9701||s==9711||9733<=s&&s<=9734||s==9737||9742<=s&&s<=9743||9748<=s&&s<=9749||s==9756||s==9758||s==9792||s==9794||9824<=s&&s<=9825||9827<=s&&s<=9829||9831<=s&&s<=9834||9836<=s&&s<=9837||s==9839||9886<=s&&s<=9887||9918<=s&&s<=9919||9924<=s&&s<=9933||9935<=s&&s<=9953||s==9955||9960<=s&&s<=9983||s==10045||s==10071||10102<=s&&s<=10111||11093<=s&&s<=11097||12872<=s&&s<=12879||57344<=s&&s<=63743||65024<=s&&s<=65039||s==65533||127232<=s&&s<=127242||127248<=s&&s<=127277||127280<=s&&s<=127337||127344<=s&&s<=127386||917760<=s&&s<=917999||983040<=s&&s<=1048573||1048576<=s&&s<=1114109?"A":"N"},t.characterLength=function(i){var n=this.eastAsianWidth(i);return n=="F"||n=="W"||n=="A"?2:1};function r(i){return i.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g)||[]}t.length=function(i){for(var n=r(i),a=0,s=0;s<n.length;s++)a=a+this.characterLength(n[s]);return a},t.slice=function(i,n,a){textLen=t.length(i),n=n||0,a=a||1,n<0&&(n=textLen+n),a<0&&(a=textLen+a);for(var s="",o=0,u=r(i),l=0;l<u.length;l++){var c=u[l],p=t.length(c);if(o>=n-(p==2?1:0))if(o+p<=a)s+=c;else break;o+=p}return s}})(L3e);var B3e=J5,j3e=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g};function $1(e,t={}){if(typeof e!="string"||e.length===0||(t={ambiguousIsNarrow:!0,...t},e=aP(e),e.length===0))return 0;e=e.replace(j3e()," ");let r=t.ambiguousIsNarrow?1:2,i=0;for(let n of e){let a=n.codePointAt(0);if(!(a<=31||a>=127&&a<=159||a>=768&&a<=879))switch(B3e.eastAsianWidth(n)){case"F":case"W":i+=2;break;case"A":i+=r;break;default:i+=1}}return i}var K5=10,JR=(e=0)=>t=>`\x1B[${t+e}m`,ZR=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,QR=(e=0)=>(t,r,i)=>`\x1B[${38+e};2;${t};${r};${i}m`,ft={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};Object.keys(ft.modifier);var q3e=Object.keys(ft.color),$3e=Object.keys(ft.bgColor);[...q3e,...$3e];function M3e(){let e=new Map;for(let[t,r]of Object.entries(ft)){for(let[i,n]of Object.entries(r))ft[i]={open:`\x1B[${n[0]}m`,close:`\x1B[${n[1]}m`},r[i]=ft[i],e.set(n[0],n[1]);Object.defineProperty(ft,t,{value:r,enumerable:!1})}return Object.defineProperty(ft,"codes",{value:e,enumerable:!1}),ft.color.close="\x1B[39m",ft.bgColor.close="\x1B[49m",ft.color.ansi=JR(),ft.color.ansi256=ZR(),ft.color.ansi16m=QR(),ft.bgColor.ansi=JR(K5),ft.bgColor.ansi256=ZR(K5),ft.bgColor.ansi16m=QR(K5),Object.defineProperties(ft,{rgbToAnsi256:{value:(t,r,i)=>t===r&&r===i?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(i/255*5),enumerable:!1},hexToRgb:{value:t=>{let r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(t.toString(16));if(!r)return[0,0,0];let[i]=r;i.length===3&&(i=[...i].map(a=>a+a).join(""));let n=Number.parseInt(i,16);return[n>>16&255,n>>8&255,n&255]},enumerable:!1},hexToAnsi256:{value:t=>ft.rgbToAnsi256(...ft.hexToRgb(t)),enumerable:!1},ansi256ToAnsi:{value:t=>{if(t<8)return 30+t;if(t<16)return 90+(t-8);let r,i,n;if(t>=232)r=((t-232)*10+8)/255,i=r,n=r;else{t-=16;let o=t%36;r=Math.floor(t/36)/5,i=Math.floor(o/6)/5,n=o%6/5}let a=Math.max(r,i,n)*2;if(a===0)return 30;let s=30+(Math.round(n)<<2|Math.round(i)<<1|Math.round(r));return a===2&&(s+=60),s},enumerable:!1},rgbToAnsi:{value:(t,r,i)=>ft.ansi256ToAnsi(ft.rgbToAnsi256(t,r,i)),enumerable:!1},hexToAnsi:{value:t=>ft.ansi256ToAnsi(ft.hexToAnsi256(t)),enumerable:!1}}),ft}var U3e=M3e(),Lg=new Set(["\x1B","\x9B"]),V3e=39,Z5="\x07",sP="[",H3e="]",oP="m",Q5=`${H3e}8;;`,eP=e=>`${Lg.values().next().value}${sP}${e}${oP}`,tP=e=>`${Lg.values().next().value}${Q5}${e}${Z5}`,z3e=e=>e.split(" ").map(t=>$1(t)),Y5=(e,t,r)=>{let i=[...t],n=!1,a=!1,s=$1(aP(e[e.length-1]));for(let[o,u]of i.entries()){let l=$1(u);if(s+l<=r?e[e.length-1]+=u:(e.push(u),s=0),Lg.has(u)&&(n=!0,a=i.slice(o+1).join("").startsWith(Q5)),n){a?u===Z5&&(n=!1,a=!1):u===oP&&(n=!1);continue}s+=l,s===r&&o<i.length-1&&(e.push(""),s=0)}!s&&e[e.length-1].length>0&&e.length>1&&(e[e.length-2]+=e.pop())},G3e=e=>{let t=e.split(" "),r=t.length;for(;r>0&&!($1(t[r-1])>0);)r--;return r===t.length?e:t.slice(0,r).join(" ")+t.slice(r).join("")},W3e=(e,t,r={})=>{if(r.trim!==!1&&e.trim()==="")return"";let i="",n,a,s=z3e(e),o=[""];for(let[l,c]of e.split(" ").entries()){r.trim!==!1&&(o[o.length-1]=o[o.length-1].trimStart());let p=$1(o[o.length-1]);if(l!==0&&(p>=t&&(r.wordWrap===!1||r.trim===!1)&&(o.push(""),p=0),(p>0||r.trim===!1)&&(o[o.length-1]+=" ",p++)),r.hard&&s[l]>t){let d=t-p,f=1+Math.floor((s[l]-d-1)/t);Math.floor((s[l]-1)/t)<f&&o.push(""),Y5(o,c,t);continue}if(p+s[l]>t&&p>0&&s[l]>0){if(r.wordWrap===!1&&p<t){Y5(o,c,t);continue}o.push("")}if(p+s[l]>t&&r.wordWrap===!1){Y5(o,c,t);continue}o[o.length-1]+=c}r.trim!==!1&&(o=o.map(l=>G3e(l)));let u=[...o.join(`
|
|
293
293
|
`)];for(let[l,c]of u.entries()){if(i+=c,Lg.has(c)){let{groups:d}=new RegExp(`(?:\\${sP}(?<code>\\d+)m|\\${Q5}(?<uri>.*)${Z5})`).exec(u.slice(l).join(""))||{groups:{}};if(d.code!==void 0){let f=Number.parseFloat(d.code);n=f===V3e?void 0:f}else d.uri!==void 0&&(a=d.uri.length===0?void 0:d.uri)}let p=U3e.codes.get(Number(n));u[l+1]===`
|
|
294
294
|
`?(a&&(i+=tP("")),n&&p&&(i+=eP(p))):c===`
|
|
295
295
|
`&&(n&&p&&(i+=eP(n)),a&&(i+=tP(a)))}return i};function rP(e,t,r){return String(e).normalize().replace(/\r\n/g,`
|
|
@@ -385,7 +385,7 @@ ${ce(l.error)}`),$.error("")),T.success("Channel created \u2705"),await a.track(
|
|
|
385
385
|
`)+`
|
|
386
386
|
`),u.push(i.join(";").toLowerCase()),u.push(n),u.join(`
|
|
387
387
|
`)}async function V6e(e,t,r){let i=await h5(e),n=vR(r,t),a=[];return a.push(_R),a.push(Dg(t)),a.push(n),a.push(i),a.join(`
|
|
388
|
-
`)}async function H6e(e,t,r){let i=yR(e),n=await k1("AWS4"+r,i),a=await k1(n,t),s=await k1(a,"s3");return await k1(s,"aws4_request")}function z6e(e,t,r){return`${e}/${vR(t,r)}`}async function k1(e,t){let r=new TextEncoder,i=await crypto.subtle.importKey("raw",e instanceof Uint8Array?e:r.encode(e),{name:"HMAC",hash:{name:"SHA-256"}},!1,["sign","verify"]),n=await crypto.subtle.sign("HMAC",i,t instanceof Uint8Array?t:r.encode(t));return new Uint8Array(n)}var $lt=["Content-Type","Cache-Control","Content-Disposition","Content-Encoding","Content-Language","Expires","x-amz-grant-full-control","x-amz-grant-read","x-amz-grant-read-acp","x-amz-grant-write-acp","x-amz-server-side-encryption","x-amz-storage-class","x-amz-website-redirect-location","x-amz-server-side-encryption-customer-algorithm","x-amz-server-side-encryption-customer-key","x-amz-server-side-encryption-customer-key-MD5","x-amz-server-side-encryption-aws-kms-key-id","x-amz-server-side-encryption-context","x-amz-server-side-encryption-bucket-key-enabled","x-amz-request-payer","x-amz-tagging","x-amz-object-lock-mode","x-amz-object-lock-retain-until-date","x-amz-object-lock-legal-hold","x-amz-expected-bucket-owner"],Mlt=5*1024*1024,Ult=5*1024*1024*1024,wR=5*1024*1024*1024*1024,Eg=class{host;port;protocol;accessKey;#e;sessionToken;defaultBucket;region;userAgent="s3-lite-client";pathStyle;constructor(t){if(t.useSSL===void 0&&(t.useSSL=!0),typeof t.endPoint!="string"||t.endPoint.length===0||t.endPoint.indexOf("/")!==-1)throw new p5(`Invalid endPoint : ${t.endPoint}`);if(t.port!==void 0&&!B6e(t.port))throw new Kn(`Invalid port : ${t.port}`);if(t.accessKey&&!t.secretKey)throw new Kn("If specifying access key, secret key must also be provided.");if(t.accessKey&&t.accessKey.startsWith("ASIA")&&!t.sessionToken)throw new Kn("If specifying temporary access key, session token must also be provided.");let r=t.useSSL?443:80;this.port=t.port??r,this.host=t.endPoint.toLowerCase()+(this.port!==r?`:${t.port}`:""),this.protocol=t.useSSL?"https:":"http:",this.accessKey=t.accessKey,this.#e=t.secretKey??"",this.sessionToken=t.sessionToken,this.pathStyle=t.pathStyle??!0,this.defaultBucket=t.bucket,this.region=t.region}getBucketName(t){let r=t?.bucketName??this.defaultBucket;if(r===void 0||!j6e(r))throw new d5(`Invalid bucket name: ${r}`);return r}buildRequestOptions(t){let r=this.getBucketName(t),i=this.pathStyle?this.host:`${r}.${this.host}`,n=t.headers??new Headers;n.set("host",i);let a=typeof t.query=="object"?new URLSearchParams(t.query).toString().replace("+","%20"):t.query,s=(this.pathStyle?`/${r}/${t.objectName}`:`/${t.objectName}`)+(a?`?${a}`:"");return{headers:n,host:i,path:s}}async makeRequest({method:t,payload:r,...i}){let n=new Date,{headers:a,host:s,path:o}=this.buildRequestOptions(i),u=i.statusCode??200;if(t==="POST"||t==="PUT"||t==="DELETE")r===void 0?r=new Uint8Array:typeof r=="string"&&(r=new TextEncoder().encode(r)),a.set("Content-Length",String(r.length));else if(r)throw new Error(`Unexpected payload on ${t} request.`);let l=await h5(r??new Uint8Array);a.set("x-amz-date",Dg(n)),a.set("x-amz-content-sha256",l),this.accessKey&&(this.sessionToken&&a.set("x-amz-security-token",this.sessionToken),a.set("authorization",await q6e({headers:a,method:t,path:o,accessKey:this.accessKey,secretKey:this.#e,region:this.region,date:n})));let c=`${this.protocol}//${s}${o}`,p=await fetch(c,{method:t,headers:a,body:r});if(p.status!==u)throw p.status>=400?await L6e(p):p.status===301?new Uo(p.status,"UnexpectedRedirect",'The server unexpectedly returned a redirect response. With AWS S3, this usually means you need to use a region-specific endpoint like "s3.us-west-2.amazonaws.com" instead of "s3.amazonaws.com"'):new Uo(p.status,"UnexpectedStatusCode",`Unexpected response code from the server (expected ${u}, got ${p.status} ${p.statusText}).`);return i.returnBody||await p.body?.getReader().read(),p}async deleteObject(t,r={}){let i=this.getBucketName(r);if(!lp(t))throw new Mo(`Invalid object name: ${t}`);let n=r.versionId?{versionId:r.versionId}:{},a=new Headers;r.governanceBypass&&a.set("X-Amz-Bypass-Governance-Retention","true"),await this.makeRequest({method:"DELETE",bucketName:i,objectName:t,headers:a,query:n,statusCode:204})}async exists(t,r){try{return await this.statObject(t,r),!0}catch(i){if(i instanceof Uo&&i.statusCode===404)return!1;throw i}}getObject(t,r){return this.getPartialObject(t,{...r,offset:0,length:0})}async getPartialObject(t,{offset:r,length:i,...n}){let a=this.getBucketName(n);if(!lp(t))throw new Mo(`Invalid object name: ${t}`);let s=new Headers(Object.entries(n.metadata??{})),o=200;if(r||i){let l="";r?l=`bytes=${+r}-`:(l="bytes=0-",r=0),i&&(l+=`${+i+r-1}`),s.set("Range",l),o=206}let u={...n.responseParams,...n.versionId?{versionId:n.versionId}:{}};return await this.makeRequest({method:"GET",bucketName:a,objectName:t,headers:s,query:u,statusCode:o,returnBody:!0})}getPresignedUrl(t,r,i={}){if(!this.accessKey)throw new up(`Presigned ${t} URLs cannot be generated for anonymous requests. Specify an accessKey and secretKey.`);if(!lp(r))throw new Mo(`Invalid object name: ${r}`);let{headers:n,path:a}=this.buildRequestOptions({objectName:r,bucketName:i.bucketName,query:i.parameters}),s=i.requestDate??new Date,o=i.expirySeconds??24*60*60*7;return $6e({protocol:this.protocol,headers:n,method:t,path:a,accessKey:this.accessKey,secretKey:this.#e,region:this.region,date:s,expirySeconds:o})}presignedGetObject(t,r={}){let{versionId:i,responseParams:n,...a}=r,s={...n,...i?{versionId:i}:{}};return this.getPresignedUrl("GET",t,{parameters:s,...a})}async*listObjects(t={}){for await(let r of this.listObjectsGrouped({...t,delimiter:""}))if(r.type==="Object")yield r;else throw new Error(`Unexpected result from listObjectsGrouped(): ${r}`)}async*listObjectsGrouped(t){let r=this.getBucketName(t),i="",n=t.pageSize??1e3;if(n<1||n>1e3)throw new Kn("pageSize must be between 1 and 1,000.");let a=0;for(;;){let s=t.maxResults?Math.min(n,t.maxResults-a):n;if(s===0)return;let u=await(await this.makeRequest({method:"GET",bucketName:r,objectName:"",query:{"list-type":"2",prefix:t.prefix??"",delimiter:t.delimiter,"max-keys":String(s),...i?{"continuation-token":i}:{}},returnBody:!0})).text(),l=al(u).root;if(!l||l.name!=="ListBucketResult")throw new Error(`Unexpected response: ${u}`);let c=l.children.filter(f=>f.name==="CommonPrefixes").flatMap(f=>f.children),p=[];for(let f of c)p.push({type:"CommonPrefix",prefix:f.content??""}),a++;for(let f of l.children.filter(h=>h.name==="Contents"))p.push({type:"Object",key:f.children.find(h=>h.name==="Key")?.content??"",etag:cp(f.children.find(h=>h.name==="ETag")?.content??""),size:parseInt(f.children.find(h=>h.name==="Size")?.content??"",10),lastModified:new Date(f.children.find(h=>h.name==="LastModified")?.content??"invalid")}),a++;p.sort((f,h)=>{let m=f.type==="Object"?f.key:f.prefix,v=h.type==="Object"?h.key:h.prefix;return m>v?1:m<v?-1:0});for(let f of p)yield f;if(l.children.find(f=>f.name==="IsTruncated")?.content==="true"){let f=l.children.find(h=>h.name==="NextContinuationToken")?.content;if(!f)throw new Error("Unexpectedly missing continuation token, but server said there are more results.");i=f}else return}}async putObject(t,r,i){let n=this.getBucketName(i);if(!lp(t))throw new Mo(`Invalid object name: ${t}`);let a,s;if(typeof r=="string"){let c=new TextEncoder().encode(r);typeof ReadableStream.from<"u"?s=ReadableStream.from([c]):s=new ReadableStream({start(p){p.enqueue(c),p.close()}}),a=c.length}else if(r instanceof Uint8Array)typeof ReadableStream.from<"u"?s=ReadableStream.from([r]):s=new ReadableStream({start(c){c.enqueue(r),c.close()}}),a=r.byteLength;else if(r instanceof ReadableStream)s=r;else throw new Kn("Invalid stream/data type provided.");if(i?.size!==void 0){if(a!==void 0&&i?.size!==a)throw new Kn(`size was specified (${i.size}) but doesn't match auto-detected size (${a}).`);if(typeof i.size!="number"||i.size<0||isNaN(i.size))throw new Kn(`invalid size specified: ${i.size}`);a=i.size}let o=i?.partSize??this.calculatePartSize(a);if(o<Mlt)throw new Kn("Part size should be greater than 5MB");if(o>Ult)throw new Kn("Part size should be less than 6MB");let u=new c5(o),l=new m5({client:this,bucketName:n,objectName:t,partSize:o,metadata:i?.metadata??{}});return await s.pipeThrough(u).pipeTo(l),l.getResult()}calculatePartSize(t){if(t===void 0&&(t=wR),t>wR)throw new TypeError(`size should not be more than ${wR}`);let r=64*1024*1024;for(;;){if(r*1e4>t)return r;r+=16*1024*1024}}async statObject(t,r){let i=this.getBucketName(r);if(!lp(t))throw new Mo(`Invalid object name: ${t}`);let n={};r?.versionId&&(n.versionId=r.versionId);let a=await this.makeRequest({method:"HEAD",bucketName:i,objectName:t,query:n}),s={};for(let o of $lt)a.headers.has(o)&&(s[o]=a.headers.get(o));return a.headers.forEach((o,u)=>{u.startsWith("x-amz-meta-")&&(s[u]=a.headers.get(u))}),{type:"Object",key:t,size:parseInt(a.headers.get("content-length")??"",10),metadata:s,lastModified:new Date(a.headers.get("Last-Modified")??"error: missing last modified"),versionId:a.headers.get("x-amz-version-id")||null,etag:cp(a.headers.get("ETag")??"")}}async copyObject(t,r,i){let n=this.getBucketName(i),a=t.sourceBucketName??n;if(!lp(r))throw new Mo(`Invalid object name: ${r}`);let s=`${a}/${t.sourceKey}`;t.sourceVersionId&&(s+=`?versionId=${t.sourceVersionId}`);let o=new Headers(i?.metadata);i?.metadata!==void 0&&o.set("x-amz-metadata-directive","REPLACE"),o.set("x-amz-copy-source",s);let u=await this.makeRequest({method:"PUT",bucketName:n,objectName:r,headers:o,returnBody:!0}),l=await u.text(),c=al(l).root;if(!c||c.name!=="CopyObjectResult")throw new Error(`Unexpected response: ${l}`);let p=c.children.find(f=>f.name==="ETag")?.content??"",d=c.children.find(f=>f.name==="LastModified")?.content;if(d===void 0)throw new Error("Unable to find <LastModified>...</LastModified> from the server.");return{copySourceVersionId:u.headers.get("x-amz-copy-source-version-id")||null,etag:cp(p),lastModified:new Date(d),versionId:u.headers.get("x-amz-version-id")||null}}async bucketExists(t){try{return await this.listObjects({bucketName:t}).next(),!0}catch(r){if(r instanceof Uo&&r.statusCode===404)return!1;throw r}}async makeBucket(t){await this.makeRequest({method:"PUT",bucketName:this.getBucketName({bucketName:t}),objectName:"",statusCode:200})}async removeBucket(t){await this.makeRequest({method:"DELETE",bucketName:this.getBucketName({bucketName:t}),objectName:"",statusCode:204})}};var ti=require("node:crypto"),dp=require("node:buffer"),G6e="aes-128-cbc",sl="base64",g5=ti.constants.RSA_PKCS1_PADDING;function W6e(e,t,r){let[i,n]=t.split(":"),a=(0,ti.publicDecrypt)({key:r,padding:g5},dp.Buffer.from(n,sl)),s=dp.Buffer.from(i,sl),o=(0,ti.createDecipheriv)(G6e,a,s);return o.setAutoPadding(!0),dp.Buffer.concat([o.update(e),o.final()])}function y5(e,t){return(0,ti.privateEncrypt)({key:t,padding:g5},dp.Buffer.from(e,sl)).toString(sl)}function K6e(e,t){return(0,ti.publicDecrypt)({key:t,padding:g5},dp.Buffer.from(e,sl)).toString(sl)}function v5(e,t){let r=(0,ti.randomBytes)(16),i=(0,ti.randomBytes)(16),n=(0,ti.createCipheriv)(G6e,i,r);n.setAutoPadding(!0);let a=r.toString(sl),s=(0,ti.privateEncrypt)({key:t,padding:g5},i).toString(sl),o=`${a}:${s}`;return{encryptedData:dp.Buffer.concat([n.update(e),n.final()]),ivSessionKey:o}}var Y6e=require("node:fs"),X6e=require("node:zlib"),J6e=require("node:stream/consumers"),Z6e=require("node:path");var Q6e=ve(KS());async function e4e(e,t,r,i){let n=Ue();n.start("Generating the update manifest");let a=await Ffe(e);return n.stop("Manifest generated successfully"),await t.track({channel:"partial-update",event:"Generate manifest",icon:"\u{1F4C2}",user_id:r,tags:{"app-id":i},notify:!1}).catch(),a}async function t4e(e,t,r,i,n,a){let s=Ue();s.start("Preparing partial update");let o=At(),u=0,l=t.length,c=t.map(async p=>{let d=(0,Z6e.join)(r,p.file),f=(0,Y6e.createReadStream)(d).pipe((0,X6e.createGzip)({level:9})),h=await(0,J6e.buffer)(f);return new Promise((m,v)=>{new Q6e.Upload(h,{endpoint:"https://api.capgo.app/private/files/upload/attachments/",metadata:{filename:`orgs/${a}/apps/${i}/${n}/${p.file}`,filetype:"application/gzip"},headers:{Authorization:e},onError(D){T.error(`Failed to upload ${p.file}: ${D}`),v(D)},onProgress(){let D=(u/l*100).toFixed(2);s.message(`Uploading partial update: ${D}%`)},onSuccess(){u++,m({file_name:p.file,s3_path:`orgs/${a}/apps/${i}/${n}/${p.file}`,file_hash:p.hash})}}).start()})});try{let p=await Promise.all(c);return s.stop("Partial update uploaded successfully"),await o.track({channel:"app",event:"App Partial TUS done",icon:"\u23EB",user_id:a,tags:{"app-id":i},notify:!1}).catch(),p}catch(p){return s.stop("Partial update failed"),T.error(`Error uploading partial update: ${p}`),null}}async function Vlt(e,t){let r=await mi(),i=t.bundle||e?.plugins?.CapacitorUpdater?.version||r?.version||`0.0.1-beta.${(0,r4e.randomUUID)().split("-")[0]}`;return r1.test(i)||(T.error(`Your bundle name ${i}, is not valid it should follow semver convention : https://semver.org/`),$.error("")),i}function Hlt(e){let t=e.apikey||Fe();return t||(T.error("Missing API key, you need to provide a API key to upload your bundle"),$.error("")),t}function zlt(e,t,r){let i=e||r?.plugins?.CapacitorUpdater?.appId||r?.appId,n=t.path||r?.webDir;return(!i||!n)&&(T.error("Missing argument, you need to provide a appid and a path (--path), or be in a capacitor project"),$.error("")),(0,xs.existsSync)(n)||(T.error(`Path ${n} does not exist, build your app first, or provide a valid path`),$.error("")),{appid:i,path:n}}function Glt(e,t){let r=e.codeCheck;(typeof r>"u"||r)&&(cg(t,"notifyAppReady")||(T.error("notifyAppReady() is missing in the source code. see: https://capgo.app/docs/plugin/api/#notifyappready"),$.error("")),pg(t)||(T.error("index.html is missing in the root folder or in the only folder in the root folder"),$.error("")))}async function Wlt(e,t,r,i,n,a){let s=r.ignoreMetadataCheck,o=r.autoMinUpdateVersion,u=r.minUpdateVersion,{data:l,error:c}=await e.from("channels").select("disable_auto_update, version ( min_update_version, native_packages )").eq("name",i).eq("app_id",n).single(),p=!!l&&l.disable_auto_update==="version_number",d,f;if(!c&&l&&l.version&&l.version.native_packages&&!s){let v=Ue();v.start(`Checking bundle compatibility with channel ${i}`);let{finalCompatibility:y,localDependencies:D}=await a9(e,n,i);if(f=y,d=D,f.find(b=>b.localVersion!==b.remoteVersion))v.stop(`Bundle NOT compatible with ${i} channel`),T.warn(`You can check compatibility with "${t.runner} @capgo/cli bundle compatibility"`),o&&(u=a,T.info(`Auto set min-update-version to ${u}`));else if(o)try{let{minUpdateVersion:b}=l.version;(!b||!r1.test(b))&&(T.error("Invalid remote min update version, skipping auto setting compatibility"),$.error("")),u=b,v.stop(`Auto set min-update-version to ${u}`)}catch{T.error(`Cannot auto set compatibility, invalid data ${l}`),$.error("")}else v.stop(`Bundle compatible with ${i} channel`)}else s||(T.warn(`Channel ${i} is new or it's your first upload with compatibility check, it will be ignored this time`),d=await QF(),o&&(u=a,T.info(`Auto set min-update-version to ${u}`)));p&&!u&&!s&&(T.error("You need to provide a min-update-version to upload a bundle to this channel"),$.error("")),u&&(r1.test(u)||(T.error(`Your minimal version update ${u}, is not valid it should follow semver convention : https://semver.org/`),$.error("")));let h=d?new Map(d.filter(v=>!!v.native&&v.native!==void 0).map(v=>[v.name,v])):new Map;return{nativePackages:h.size>0||!r.ignoreMetadataCheck?Array.from(h,([v,y])=>({name:v,version:y.version})):void 0,minUpdateVersion:u}}async function Klt(e,t,r){let{data:i,error:n}=await e.rpc("is_trial_org",{orgid:t}).single();(i&&i>0||n)&&(T.warn(`WARNING !!
|
|
388
|
+
`)}async function H6e(e,t,r){let i=yR(e),n=await k1("AWS4"+r,i),a=await k1(n,t),s=await k1(a,"s3");return await k1(s,"aws4_request")}function z6e(e,t,r){return`${e}/${vR(t,r)}`}async function k1(e,t){let r=new TextEncoder,i=await crypto.subtle.importKey("raw",e instanceof Uint8Array?e:r.encode(e),{name:"HMAC",hash:{name:"SHA-256"}},!1,["sign","verify"]),n=await crypto.subtle.sign("HMAC",i,t instanceof Uint8Array?t:r.encode(t));return new Uint8Array(n)}var $lt=["Content-Type","Cache-Control","Content-Disposition","Content-Encoding","Content-Language","Expires","x-amz-grant-full-control","x-amz-grant-read","x-amz-grant-read-acp","x-amz-grant-write-acp","x-amz-server-side-encryption","x-amz-storage-class","x-amz-website-redirect-location","x-amz-server-side-encryption-customer-algorithm","x-amz-server-side-encryption-customer-key","x-amz-server-side-encryption-customer-key-MD5","x-amz-server-side-encryption-aws-kms-key-id","x-amz-server-side-encryption-context","x-amz-server-side-encryption-bucket-key-enabled","x-amz-request-payer","x-amz-tagging","x-amz-object-lock-mode","x-amz-object-lock-retain-until-date","x-amz-object-lock-legal-hold","x-amz-expected-bucket-owner"],Mlt=5*1024*1024,Ult=5*1024*1024*1024,wR=5*1024*1024*1024*1024,Eg=class{host;port;protocol;accessKey;#e;sessionToken;defaultBucket;region;userAgent="s3-lite-client";pathStyle;constructor(t){if(t.useSSL===void 0&&(t.useSSL=!0),typeof t.endPoint!="string"||t.endPoint.length===0||t.endPoint.indexOf("/")!==-1)throw new p5(`Invalid endPoint : ${t.endPoint}`);if(t.port!==void 0&&!B6e(t.port))throw new Kn(`Invalid port : ${t.port}`);if(t.accessKey&&!t.secretKey)throw new Kn("If specifying access key, secret key must also be provided.");if(t.accessKey&&t.accessKey.startsWith("ASIA")&&!t.sessionToken)throw new Kn("If specifying temporary access key, session token must also be provided.");let r=t.useSSL?443:80;this.port=t.port??r,this.host=t.endPoint.toLowerCase()+(this.port!==r?`:${t.port}`:""),this.protocol=t.useSSL?"https:":"http:",this.accessKey=t.accessKey,this.#e=t.secretKey??"",this.sessionToken=t.sessionToken,this.pathStyle=t.pathStyle??!0,this.defaultBucket=t.bucket,this.region=t.region}getBucketName(t){let r=t?.bucketName??this.defaultBucket;if(r===void 0||!j6e(r))throw new d5(`Invalid bucket name: ${r}`);return r}buildRequestOptions(t){let r=this.getBucketName(t),i=this.pathStyle?this.host:`${r}.${this.host}`,n=t.headers??new Headers;n.set("host",i);let a=typeof t.query=="object"?new URLSearchParams(t.query).toString().replace("+","%20"):t.query,s=(this.pathStyle?`/${r}/${t.objectName}`:`/${t.objectName}`)+(a?`?${a}`:"");return{headers:n,host:i,path:s}}async makeRequest({method:t,payload:r,...i}){let n=new Date,{headers:a,host:s,path:o}=this.buildRequestOptions(i),u=i.statusCode??200;if(t==="POST"||t==="PUT"||t==="DELETE")r===void 0?r=new Uint8Array:typeof r=="string"&&(r=new TextEncoder().encode(r)),a.set("Content-Length",String(r.length));else if(r)throw new Error(`Unexpected payload on ${t} request.`);let l=await h5(r??new Uint8Array);a.set("x-amz-date",Dg(n)),a.set("x-amz-content-sha256",l),this.accessKey&&(this.sessionToken&&a.set("x-amz-security-token",this.sessionToken),a.set("authorization",await q6e({headers:a,method:t,path:o,accessKey:this.accessKey,secretKey:this.#e,region:this.region,date:n})));let c=`${this.protocol}//${s}${o}`,p=await fetch(c,{method:t,headers:a,body:r});if(p.status!==u)throw p.status>=400?await L6e(p):p.status===301?new Uo(p.status,"UnexpectedRedirect",'The server unexpectedly returned a redirect response. With AWS S3, this usually means you need to use a region-specific endpoint like "s3.us-west-2.amazonaws.com" instead of "s3.amazonaws.com"'):new Uo(p.status,"UnexpectedStatusCode",`Unexpected response code from the server (expected ${u}, got ${p.status} ${p.statusText}).`);return i.returnBody||await p.body?.getReader().read(),p}async deleteObject(t,r={}){let i=this.getBucketName(r);if(!lp(t))throw new Mo(`Invalid object name: ${t}`);let n=r.versionId?{versionId:r.versionId}:{},a=new Headers;r.governanceBypass&&a.set("X-Amz-Bypass-Governance-Retention","true"),await this.makeRequest({method:"DELETE",bucketName:i,objectName:t,headers:a,query:n,statusCode:204})}async exists(t,r){try{return await this.statObject(t,r),!0}catch(i){if(i instanceof Uo&&i.statusCode===404)return!1;throw i}}getObject(t,r){return this.getPartialObject(t,{...r,offset:0,length:0})}async getPartialObject(t,{offset:r,length:i,...n}){let a=this.getBucketName(n);if(!lp(t))throw new Mo(`Invalid object name: ${t}`);let s=new Headers(Object.entries(n.metadata??{})),o=200;if(r||i){let l="";r?l=`bytes=${+r}-`:(l="bytes=0-",r=0),i&&(l+=`${+i+r-1}`),s.set("Range",l),o=206}let u={...n.responseParams,...n.versionId?{versionId:n.versionId}:{}};return await this.makeRequest({method:"GET",bucketName:a,objectName:t,headers:s,query:u,statusCode:o,returnBody:!0})}getPresignedUrl(t,r,i={}){if(!this.accessKey)throw new up(`Presigned ${t} URLs cannot be generated for anonymous requests. Specify an accessKey and secretKey.`);if(!lp(r))throw new Mo(`Invalid object name: ${r}`);let{headers:n,path:a}=this.buildRequestOptions({objectName:r,bucketName:i.bucketName,query:i.parameters}),s=i.requestDate??new Date,o=i.expirySeconds??24*60*60*7;return $6e({protocol:this.protocol,headers:n,method:t,path:a,accessKey:this.accessKey,secretKey:this.#e,region:this.region,date:s,expirySeconds:o})}presignedGetObject(t,r={}){let{versionId:i,responseParams:n,...a}=r,s={...n,...i?{versionId:i}:{}};return this.getPresignedUrl("GET",t,{parameters:s,...a})}async*listObjects(t={}){for await(let r of this.listObjectsGrouped({...t,delimiter:""}))if(r.type==="Object")yield r;else throw new Error(`Unexpected result from listObjectsGrouped(): ${r}`)}async*listObjectsGrouped(t){let r=this.getBucketName(t),i="",n=t.pageSize??1e3;if(n<1||n>1e3)throw new Kn("pageSize must be between 1 and 1,000.");let a=0;for(;;){let s=t.maxResults?Math.min(n,t.maxResults-a):n;if(s===0)return;let u=await(await this.makeRequest({method:"GET",bucketName:r,objectName:"",query:{"list-type":"2",prefix:t.prefix??"",delimiter:t.delimiter,"max-keys":String(s),...i?{"continuation-token":i}:{}},returnBody:!0})).text(),l=al(u).root;if(!l||l.name!=="ListBucketResult")throw new Error(`Unexpected response: ${u}`);let c=l.children.filter(f=>f.name==="CommonPrefixes").flatMap(f=>f.children),p=[];for(let f of c)p.push({type:"CommonPrefix",prefix:f.content??""}),a++;for(let f of l.children.filter(h=>h.name==="Contents"))p.push({type:"Object",key:f.children.find(h=>h.name==="Key")?.content??"",etag:cp(f.children.find(h=>h.name==="ETag")?.content??""),size:parseInt(f.children.find(h=>h.name==="Size")?.content??"",10),lastModified:new Date(f.children.find(h=>h.name==="LastModified")?.content??"invalid")}),a++;p.sort((f,h)=>{let m=f.type==="Object"?f.key:f.prefix,v=h.type==="Object"?h.key:h.prefix;return m>v?1:m<v?-1:0});for(let f of p)yield f;if(l.children.find(f=>f.name==="IsTruncated")?.content==="true"){let f=l.children.find(h=>h.name==="NextContinuationToken")?.content;if(!f)throw new Error("Unexpectedly missing continuation token, but server said there are more results.");i=f}else return}}async putObject(t,r,i){let n=this.getBucketName(i);if(!lp(t))throw new Mo(`Invalid object name: ${t}`);let a,s;if(typeof r=="string"){let c=new TextEncoder().encode(r);typeof ReadableStream.from<"u"?s=ReadableStream.from([c]):s=new ReadableStream({start(p){p.enqueue(c),p.close()}}),a=c.length}else if(r instanceof Uint8Array)typeof ReadableStream.from<"u"?s=ReadableStream.from([r]):s=new ReadableStream({start(c){c.enqueue(r),c.close()}}),a=r.byteLength;else if(r instanceof ReadableStream)s=r;else throw new Kn("Invalid stream/data type provided.");if(i?.size!==void 0){if(a!==void 0&&i?.size!==a)throw new Kn(`size was specified (${i.size}) but doesn't match auto-detected size (${a}).`);if(typeof i.size!="number"||i.size<0||isNaN(i.size))throw new Kn(`invalid size specified: ${i.size}`);a=i.size}let o=i?.partSize??this.calculatePartSize(a);if(o<Mlt)throw new Kn("Part size should be greater than 5MB");if(o>Ult)throw new Kn("Part size should be less than 6MB");let u=new c5(o),l=new m5({client:this,bucketName:n,objectName:t,partSize:o,metadata:i?.metadata??{}});return await s.pipeThrough(u).pipeTo(l),l.getResult()}calculatePartSize(t){if(t===void 0&&(t=wR),t>wR)throw new TypeError(`size should not be more than ${wR}`);let r=64*1024*1024;for(;;){if(r*1e4>t)return r;r+=16*1024*1024}}async statObject(t,r){let i=this.getBucketName(r);if(!lp(t))throw new Mo(`Invalid object name: ${t}`);let n={};r?.versionId&&(n.versionId=r.versionId);let a=await this.makeRequest({method:"HEAD",bucketName:i,objectName:t,query:n}),s={};for(let o of $lt)a.headers.has(o)&&(s[o]=a.headers.get(o));return a.headers.forEach((o,u)=>{u.startsWith("x-amz-meta-")&&(s[u]=a.headers.get(u))}),{type:"Object",key:t,size:parseInt(a.headers.get("content-length")??"",10),metadata:s,lastModified:new Date(a.headers.get("Last-Modified")??"error: missing last modified"),versionId:a.headers.get("x-amz-version-id")||null,etag:cp(a.headers.get("ETag")??"")}}async copyObject(t,r,i){let n=this.getBucketName(i),a=t.sourceBucketName??n;if(!lp(r))throw new Mo(`Invalid object name: ${r}`);let s=`${a}/${t.sourceKey}`;t.sourceVersionId&&(s+=`?versionId=${t.sourceVersionId}`);let o=new Headers(i?.metadata);i?.metadata!==void 0&&o.set("x-amz-metadata-directive","REPLACE"),o.set("x-amz-copy-source",s);let u=await this.makeRequest({method:"PUT",bucketName:n,objectName:r,headers:o,returnBody:!0}),l=await u.text(),c=al(l).root;if(!c||c.name!=="CopyObjectResult")throw new Error(`Unexpected response: ${l}`);let p=c.children.find(f=>f.name==="ETag")?.content??"",d=c.children.find(f=>f.name==="LastModified")?.content;if(d===void 0)throw new Error("Unable to find <LastModified>...</LastModified> from the server.");return{copySourceVersionId:u.headers.get("x-amz-copy-source-version-id")||null,etag:cp(p),lastModified:new Date(d),versionId:u.headers.get("x-amz-version-id")||null}}async bucketExists(t){try{return await this.listObjects({bucketName:t}).next(),!0}catch(r){if(r instanceof Uo&&r.statusCode===404)return!1;throw r}}async makeBucket(t){await this.makeRequest({method:"PUT",bucketName:this.getBucketName({bucketName:t}),objectName:"",statusCode:200})}async removeBucket(t){await this.makeRequest({method:"DELETE",bucketName:this.getBucketName({bucketName:t}),objectName:"",statusCode:204})}};var ti=require("node:crypto"),dp=require("node:buffer"),G6e="aes-128-cbc",sl="base64",g5=ti.constants.RSA_PKCS1_PADDING;function W6e(e,t,r){let[i,n]=t.split(":"),a=(0,ti.publicDecrypt)({key:r,padding:g5},dp.Buffer.from(n,sl)),s=dp.Buffer.from(i,sl),o=(0,ti.createDecipheriv)(G6e,a,s);return o.setAutoPadding(!0),dp.Buffer.concat([o.update(e),o.final()])}function y5(e,t){return(0,ti.privateEncrypt)({key:t,padding:g5},dp.Buffer.from(e,sl)).toString(sl)}function K6e(e,t){return(0,ti.publicDecrypt)({key:t,padding:g5},dp.Buffer.from(e,sl)).toString(sl)}function v5(e,t){let r=(0,ti.randomBytes)(16),i=(0,ti.randomBytes)(16),n=(0,ti.createCipheriv)(G6e,i,r);n.setAutoPadding(!0);let a=r.toString(sl),s=(0,ti.privateEncrypt)({key:t,padding:g5},i).toString(sl),o=`${a}:${s}`;return{encryptedData:dp.Buffer.concat([n.update(e),n.final()]),ivSessionKey:o}}var Y6e=require("node:fs"),X6e=require("node:zlib"),J6e=require("node:stream/consumers"),Z6e=require("node:path");var Q6e=ve(KS());async function e4e(e,t,r,i){let n=Ue();n.start("Generating the update manifest");let a=await Ffe(e);return n.stop("Manifest generated successfully"),await t.track({channel:"partial-update",event:"Generate manifest",icon:"\u{1F4C2}",user_id:r,tags:{"app-id":i},notify:!1}).catch(),a}async function t4e(e,t,r,i,n,a){let s=Ue();s.start("Preparing partial update with TUS protocol");let o=At(),u=0,l=t.length,c=t.map(async p=>{let d=(0,Z6e.join)(r,p.file),f=(0,Y6e.createReadStream)(d).pipe((0,X6e.createGzip)({level:9})),h=await(0,J6e.buffer)(f);return new Promise((m,v)=>{new Q6e.Upload(h,{endpoint:"https://api.capgo.app/private/files/upload/attachments/",metadata:{filename:`orgs/${a}/apps/${i}/${n}/${p.file}`,filetype:"application/gzip"},headers:{Authorization:e},onError(D){T.error(`Failed to upload ${p.file}: ${D}`),v(D)},onProgress(){let D=(u/l*100).toFixed(2);s.message(`Uploading partial update: ${D}%`)},onSuccess(){u++,m({file_name:p.file,s3_path:`orgs/${a}/apps/${i}/${n}/${p.file}`,file_hash:p.hash})}}).start()})});try{let p=await Promise.all(c);return s.stop("Partial update uploaded successfully with TUS protocol"),await o.track({channel:"app",event:"App Partial TUS done",icon:"\u23EB",user_id:a,tags:{"app-id":i},notify:!1}).catch(),p}catch(p){return s.stop("Partial update failed"),T.error(`Error uploading partial update: ${p}`),null}}async function Vlt(e,t){let r=await mi(),i=t.bundle||e?.plugins?.CapacitorUpdater?.version||r?.version||`0.0.1-beta.${(0,r4e.randomUUID)().split("-")[0]}`;return r1.test(i)||(T.error(`Your bundle name ${i}, is not valid it should follow semver convention : https://semver.org/`),$.error("")),i}function Hlt(e){let t=e.apikey||Fe();return t||(T.error("Missing API key, you need to provide a API key to upload your bundle"),$.error("")),t}function zlt(e,t,r){let i=e||r?.plugins?.CapacitorUpdater?.appId||r?.appId,n=t.path||r?.webDir;return(!i||!n)&&(T.error("Missing argument, you need to provide a appid and a path (--path), or be in a capacitor project"),$.error("")),(0,xs.existsSync)(n)||(T.error(`Path ${n} does not exist, build your app first, or provide a valid path`),$.error("")),{appid:i,path:n}}function Glt(e,t){let r=e.codeCheck;(typeof r>"u"||r)&&(cg(t,"notifyAppReady")||(T.error("notifyAppReady() is missing in the source code. see: https://capgo.app/docs/plugin/api/#notifyappready"),$.error("")),pg(t)||(T.error("index.html is missing in the root folder or in the only folder in the root folder"),$.error("")))}async function Wlt(e,t,r,i,n,a){let s=r.ignoreMetadataCheck,o=r.autoMinUpdateVersion,u=r.minUpdateVersion,{data:l,error:c}=await e.from("channels").select("disable_auto_update, version ( min_update_version, native_packages )").eq("name",i).eq("app_id",n).single(),p=!!l&&l.disable_auto_update==="version_number",d,f;if(!c&&l&&l.version&&l.version.native_packages&&!s){let v=Ue();v.start(`Checking bundle compatibility with channel ${i}`);let{finalCompatibility:y,localDependencies:D}=await a9(e,n,i);if(f=y,d=D,f.find(b=>b.localVersion!==b.remoteVersion))v.stop(`Bundle NOT compatible with ${i} channel`),T.warn(`You can check compatibility with "${t.runner} @capgo/cli bundle compatibility"`),o&&(u=a,T.info(`Auto set min-update-version to ${u}`));else if(o)try{let{minUpdateVersion:b}=l.version;(!b||!r1.test(b))&&(T.error("Invalid remote min update version, skipping auto setting compatibility"),$.error("")),u=b,v.stop(`Auto set min-update-version to ${u}`)}catch{T.error(`Cannot auto set compatibility, invalid data ${l}`),$.error("")}else v.stop(`Bundle compatible with ${i} channel`)}else s||(T.warn(`Channel ${i} is new or it's your first upload with compatibility check, it will be ignored this time`),d=await QF(),o&&(u=a,T.info(`Auto set min-update-version to ${u}`)));p&&!u&&!s&&(T.error("You need to provide a min-update-version to upload a bundle to this channel"),$.error("")),u&&(r1.test(u)||(T.error(`Your minimal version update ${u}, is not valid it should follow semver convention : https://semver.org/`),$.error("")));let h=d?new Map(d.filter(v=>!!v.native&&v.native!==void 0).map(v=>[v.name,v])):new Map;return{nativePackages:h.size>0||!r.ignoreMetadataCheck?Array.from(h,([v,y])=>({name:v,version:y.version})):void 0,minUpdateVersion:u}}async function Klt(e,t,r){let{data:i,error:n}=await e.rpc("is_trial_org",{orgid:t}).single();(i&&i>0||n)&&(T.warn(`WARNING !!
|
|
389
389
|
Trial expires in ${i} days`),T.warn(`Upgrade here: ${r.hostWeb}/dashboard/settings/plans?oid=${t}`))}async function Ylt(e,t,r){let{data:i,error:n}=await e.rpc("exist_app_versions",{appid:t,apikey:"",name_version:r}).single();(i||n)&&(T.error(`Version already exists ${ce(n)}`),$.error(""))}async function Xlt(e,t,r,i,n,a){let s,o="",u=null,l=t.key,c=t.keyV2;u=await i9(e);let p=Ue();if(p.start("Calculating checksum"),c||(0,xs.existsSync)(on)?o=await(0,bR.checksum)(u,"sha256"):o=await(0,bR.checksum)(u,"crc32"),p.stop(`Checksum: ${o}`),l===!1)T.info("Encryption ignored");else if((c||(0,xs.existsSync)(on))&&!t.oldEncryption){let f=typeof c=="string"?c:on,h=t.keyDataV2||"";!h&&!(0,xs.existsSync)(f)&&(T.error(`Cannot find private key ${f}`),$.error("")),await i.track({channel:"app",event:"App encryption v2",icon:"\u{1F511}",user_id:n,tags:{"app-id":a},notify:!1}).catch(),h||(h=(0,xs.readFileSync)(f).toString()),T.info("Encrypting your bundle with V2");let m=v5(u,h);o=y5(o,h),s=m.ivSessionKey,t.displayIvSession&&T.info(`Your Iv Session key is ${s},
|
|
390
390
|
keep it safe, you will need it to decrypt your bundle.
|
|
391
391
|
It will be also visible in your dashboard
|
|
@@ -395,7 +395,7 @@ It will be also visible in your dashboard
|
|
|
395
395
|
`),u=m.encryptedData}let d=Math.floor((u?.byteLength??0)/1024/1024);return d>bfe&&(T.warn(`WARNING !!
|
|
396
396
|
The app size is ${d} Mb, this may take a while to download for users
|
|
397
397
|
`),T.info(`Learn how to optimize your assets https://capgo.app/blog/optimise-your-images-for-updates/
|
|
398
|
-
`),await i.track({channel:"app-error",event:"App Too Large",icon:"\u{1F69B}",user_id:n,tags:{"app-id":a},notify:!1}).catch()),{zipped:u,sessionKey:s,checksum:o}}async function Jlt(e,t,r,i,n,a,s){let o=Ue();o.start("Uploading Bundle");let u=performance.now();try{if(s.tus!==void 0&&s.tus){T.info("Uploading bundle with TUS protocol"),await ZF(e,a,n,r,i,o);let p=`orgs/${n}/apps/${r}/${i}.zip`,{error:d}=await t.from("app_versions").update({r2_path:p}).eq("
|
|
398
|
+
`),await i.track({channel:"app-error",event:"App Too Large",icon:"\u{1F69B}",user_id:n,tags:{"app-id":a},notify:!1}).catch()),{zipped:u,sessionKey:s,checksum:o}}async function Jlt(e,t,r,i,n,a,s){let o=Ue();o.start("Uploading Bundle");let u=performance.now();try{if(s.tus!==void 0&&s.tus){T.info("Uploading bundle with TUS protocol"),await ZF(e,a,n,r,i,o);let p=`orgs/${n}/apps/${r}/${i}.zip`,{error:d}=await t.from("app_versions").update({r2_path:p}).eq("name",i).eq("app_id",r);d&&(T.error(`Cannot finish TUS upload ${ce(d)}`),Promise.reject(new Error("Cannot finish TUS upload")))}if(s.multipart!==void 0&&s.multipart)T.info("Uploading bundle with TUS protocol, multipart is deprecated"),await ZF(e,a,n,r,i,o);else{let p=await Tfe(t,r,i);p||(T.error("Cannot get upload url"),Promise.reject(new Error("Cannot get upload url"))),await Kp.put(p,{timeout:s.timeout||Dfe,retry:5,body:a})}}catch(p){let f=((performance.now()-u)/1e3).toFixed(2);if(o.stop(`Failed to upload bundle ( after ${f} seconds)`),p instanceof uu){let h=await p.response.json();T.error(`Response Error: ${h.error||h.status||h.message}`)}else T.error(`Cannot upload bundle ( try again with --tus option) ${ce(p)}`);await kfe(t,r,i),$.error("")}let c=((performance.now()-u)/1e3).toFixed(2);o.stop(`Bundle Uploaded \u{1F4AA} (${c} seconds)`)}async function Zlt(e,t,r,i,n,a,s,o,u){let{data:l}=await e.rpc("get_app_versions",{apikey:t,name_version:i,appid:o}).single();l||(T.warn("Cannot get version id, cannot set channel"),$.error(""));let{error:c,data:p}=await n9(e,{name:n,app_id:o,created_by:a,version:l,owner_org:s});c&&(T.error(`Cannot set channel, the upload key is not allowed to do that, use the "all" for this. ${ce(c)}`),$.error(""));let d=jc(o),f=`${u.hostWeb}/app/p/${d}/channel/${p.id}`;p?.public?T.info("Your update is now available in your public channel \u{1F389}"):p?.id&&T.info(`Link device to this bundle to try it: ${f}`),r?T.info(`Bundle url: ${f}`):l||(T.warn("Cannot set bundle with upload key, use key with more rights for that"),$.error(""))}async function Qlt(e,t){let{error:r,data:i}=await t.from("apps").select("default_upload_channel").single();if(r){T.error("Cannot find default upload channel");let n=jc(e);return T.info(`You can set it here: https://web.capgo.app/app/p/${n}/settings`),null}return i.default_upload_channel}async function _5(e,t,r=!0){re("Uploading");let i=gi();await Ie();let{s3Region:n,s3Apikey:a,s3Apisecret:s,s3BucketName:o,s3Endpoint:u,s3Port:l,s3SSL:c}=t,p=Hlt(t),d=await pe(),{appid:f,path:h}=zlt(e,t,d.config),m=await Vlt(d.config,t),v=At();Glt(t,h),T.info(`Upload ${f}@${m} started from path "${h}" to Capgo cloud`);let y=await N2(),D=await Se(p),b=await Ae(D,p,["write","all","upload"]),_=t.channel||await Qlt(f,D)||"dev",w=await Mn(D,f);await i1(D,w,p,f,!0),await Klt(D,w,y);let{nativePackages:O,minUpdateVersion:C}=await Wlt(D,i,t,_,f,m);await Ylt(D,f,m),t.external&&!t.external.startsWith("https://")&&(T.error(`External link should should start with "https://" current is "${external}"`),$.error(""));let S={name:m,app_id:f,session_key:void 0,external_url:t.external,storage_provider:t.external?"external":"r2-direct",min_update_version:C,native_packages:O,owner_org:w,user_id:b,checksum:void 0},F=null;if(t.external)await v.track({channel:"app",event:"App external",icon:"\u{1F4E4}",user_id:w,tags:{"app-id":f},notify:!1}).catch(),S.session_key=t.ivSessionKey,S.checksum=t.encryptedChecksum;else{let{zipped:q,sessionKey:H,checksum:B}=await Xlt(h,t,y,v,w,f);S.session_key=H,S.checksum=B,F=q,t.ignoreChecksumCheck||await Rfe(D,f,_,B)}let x=t.partial?await e4e(h,v,w,f):[],{error:E}=await JF(D,S);if(E&&(T.error(`Cannot add bundle ${ce(E)}`),$.error("")),F&&(o||u||n||a||s||l||c)){(!o||!u||!n||!a||!s||!l)&&(T.error("Missing argument, for S3 upload you need to provide a bucket name, endpoint, region, port, API key, and API secret"),$.error("")),T.info("Uploading to S3");let q=new Eg({endPoint:u,region:n,port:l,useSSL:c,bucket:o,credentials:{accessKeyId:a,secretAccessKey:s}}),H=`${f}-${m}`,B=encodeURIComponent(H);await q.putObject(H,F),S.external_url=`https://${u}/${B}`,S.storage_provider="external"}else if(F){await Jlt(p,D,f,m,w,F,t);let q=null;try{q=t.partial?await t4e(p,x,h,f,m,w):null}catch(B){T.error(`Failed to upload partial files to capgo cloud. Error: ${ce(B)}`)}S.storage_provider="r2",S.manifest=q;let{error:H}=await JF(D,S);H&&(T.error(`Cannot update bundle ${ce(H)}`),$.error(""))}let I=await tt(D,p,f,2);return xfe(I,3)?await Zlt(D,p,!!t.bundleUrl,m,_,b,w,f,y):T.warn("Cannot set channel as a upload organization member"),await v.track({channel:"app",event:"App Uploaded",icon:"\u23EB",user_id:w,tags:{"app-id":f},notify:!1}).catch(),r&&(ae("Time to share your update to the world \u{1F30D}"),(0,i4e.exit)()),!0}async function n4e(e,t){try{await _5(e,t,!0)}catch(r){T.error(ce(r)),$.error("")}}async function a4e(e,t){let r=gi();T.warn(`\u26A0\uFE0F This command is deprecated, use "${r.runner} @capgo/cli bundle upload" instead \u26A0\uFE0F`);try{await _5(e,t,!0)}catch(i){T.error(ce(i)),$.error("")}}var Vo=require("node:fs"),ER=require("node:os"),DR=require("node:process");async function s4e(){let e=(0,ER.homedir)();return(0,Vo.existsSync)(`${e}/.capgo`)||(0,Vo.existsSync)(".capgo")}async function xR(e,t,r=!0){if(r&&re("Login to Capgo"),!e)return r&&(T.error("Missing API key, you need to provide a API key to upload your bundle"),$.error("")),!1;await Ie();try{let{local:i}=t,n=At();if(i)(0,Vo.existsSync)(".git")||(T.error("To use local you should be in a git repository"),$.error("")),(0,Vo.writeFileSync)(".capgo",`${e}
|
|
399
399
|
`),(0,Vo.appendFileSync)(".gitignore",`.capgo
|
|
400
400
|
`);else{let o=(0,ER.homedir)();(0,Vo.writeFileSync)(`${o}/.capgo`,`${e}
|
|
401
401
|
`)}let a=await Se(e),s=await Ae(a,e,["write","all","upload"]);await n.track({channel:"user-login",event:"User CLI login",icon:"\u2705",user_id:s,notify:!1}).catch(),T.success(`login saved into .capgo file in ${i?"local":"home"} directory`)}catch{T.error("Error while saving login"),(0,DR.exit)(1)}return r&&(ae("Done \u2705"),(0,DR.exit)()),!0}async function o4e(e,t){xR(e,t,!0)}var P1=require("node:fs"),d4e=require("node:process");var u4e={"application/prs.cww":["cww"],"application/prs.xsf+xml":["xsf"],"application/vnd.1000minds.decision-model+xml":["1km"],"application/vnd.3gpp.pic-bw-large":["plb"],"application/vnd.3gpp.pic-bw-small":["psb"],"application/vnd.3gpp.pic-bw-var":["pvb"],"application/vnd.3gpp2.tcap":["tcap"],"application/vnd.3m.post-it-notes":["pwn"],"application/vnd.accpac.simply.aso":["aso"],"application/vnd.accpac.simply.imp":["imp"],"application/vnd.acucobol":["acu"],"application/vnd.acucorp":["atc","acutc"],"application/vnd.adobe.air-application-installer-package+zip":["air"],"application/vnd.adobe.formscentral.fcdt":["fcdt"],"application/vnd.adobe.fxp":["fxp","fxpl"],"application/vnd.adobe.xdp+xml":["xdp"],"application/vnd.adobe.xfdf":["*xfdf"],"application/vnd.age":["age"],"application/vnd.ahead.space":["ahead"],"application/vnd.airzip.filesecure.azf":["azf"],"application/vnd.airzip.filesecure.azs":["azs"],"application/vnd.amazon.ebook":["azw"],"application/vnd.americandynamics.acc":["acc"],"application/vnd.amiga.ami":["ami"],"application/vnd.android.package-archive":["apk"],"application/vnd.anser-web-certificate-issue-initiation":["cii"],"application/vnd.anser-web-funds-transfer-initiation":["fti"],"application/vnd.antix.game-component":["atx"],"application/vnd.apple.installer+xml":["mpkg"],"application/vnd.apple.keynote":["key"],"application/vnd.apple.mpegurl":["m3u8"],"application/vnd.apple.numbers":["numbers"],"application/vnd.apple.pages":["pages"],"application/vnd.apple.pkpass":["pkpass"],"application/vnd.aristanetworks.swi":["swi"],"application/vnd.astraea-software.iota":["iota"],"application/vnd.audiograph":["aep"],"application/vnd.balsamiq.bmml+xml":["bmml"],"application/vnd.blueice.multipass":["mpm"],"application/vnd.bmi":["bmi"],"application/vnd.businessobjects":["rep"],"application/vnd.chemdraw+xml":["cdxml"],"application/vnd.chipnuts.karaoke-mmd":["mmd"],"application/vnd.cinderella":["cdy"],"application/vnd.citationstyles.style+xml":["csl"],"application/vnd.claymore":["cla"],"application/vnd.cloanto.rp9":["rp9"],"application/vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"application/vnd.cluetrust.cartomobile-config":["c11amc"],"application/vnd.cluetrust.cartomobile-config-pkg":["c11amz"],"application/vnd.commonspace":["csp"],"application/vnd.contact.cmsg":["cdbcmsg"],"application/vnd.cosmocaller":["cmc"],"application/vnd.crick.clicker":["clkx"],"application/vnd.crick.clicker.keyboard":["clkk"],"application/vnd.crick.clicker.palette":["clkp"],"application/vnd.crick.clicker.template":["clkt"],"application/vnd.crick.clicker.wordbank":["clkw"],"application/vnd.criticaltools.wbs+xml":["wbs"],"application/vnd.ctc-posml":["pml"],"application/vnd.cups-ppd":["ppd"],"application/vnd.curl.car":["car"],"application/vnd.curl.pcurl":["pcurl"],"application/vnd.dart":["dart"],"application/vnd.data-vision.rdz":["rdz"],"application/vnd.dbf":["dbf"],"application/vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"application/vnd.dece.ttml+xml":["uvt","uvvt"],"application/vnd.dece.unspecified":["uvx","uvvx"],"application/vnd.dece.zip":["uvz","uvvz"],"application/vnd.denovo.fcselayout-link":["fe_launch"],"application/vnd.dna":["dna"],"application/vnd.dolby.mlp":["mlp"],"application/vnd.dpgraph":["dpg"],"application/vnd.dreamfactory":["dfac"],"application/vnd.ds-keypoint":["kpxx"],"application/vnd.dvb.ait":["ait"],"application/vnd.dvb.service":["svc"],"application/vnd.dynageo":["geo"],"application/vnd.ecowin.chart":["mag"],"application/vnd.enliven":["nml"],"application/vnd.epson.esf":["esf"],"application/vnd.epson.msf":["msf"],"application/vnd.epson.quickanime":["qam"],"application/vnd.epson.salt":["slt"],"application/vnd.epson.ssf":["ssf"],"application/vnd.eszigno3+xml":["es3","et3"],"application/vnd.ezpix-album":["ez2"],"application/vnd.ezpix-package":["ez3"],"application/vnd.fdf":["*fdf"],"application/vnd.fdsn.mseed":["mseed"],"application/vnd.fdsn.seed":["seed","dataless"],"application/vnd.flographit":["gph"],"application/vnd.fluxtime.clip":["ftc"],"application/vnd.framemaker":["fm","frame","maker","book"],"application/vnd.frogans.fnc":["fnc"],"application/vnd.frogans.ltf":["ltf"],"application/vnd.fsc.weblaunch":["fsc"],"application/vnd.fujitsu.oasys":["oas"],"application/vnd.fujitsu.oasys2":["oa2"],"application/vnd.fujitsu.oasys3":["oa3"],"application/vnd.fujitsu.oasysgp":["fg5"],"application/vnd.fujitsu.oasysprs":["bh2"],"application/vnd.fujixerox.ddd":["ddd"],"application/vnd.fujixerox.docuworks":["xdw"],"application/vnd.fujixerox.docuworks.binder":["xbd"],"application/vnd.fuzzysheet":["fzs"],"application/vnd.genomatix.tuxedo":["txd"],"application/vnd.geogebra.file":["ggb"],"application/vnd.geogebra.tool":["ggt"],"application/vnd.geometry-explorer":["gex","gre"],"application/vnd.geonext":["gxt"],"application/vnd.geoplan":["g2w"],"application/vnd.geospace":["g3w"],"application/vnd.gmx":["gmx"],"application/vnd.google-apps.document":["gdoc"],"application/vnd.google-apps.presentation":["gslides"],"application/vnd.google-apps.spreadsheet":["gsheet"],"application/vnd.google-earth.kml+xml":["kml"],"application/vnd.google-earth.kmz":["kmz"],"application/vnd.grafeq":["gqf","gqs"],"application/vnd.groove-account":["gac"],"application/vnd.groove-help":["ghf"],"application/vnd.groove-identity-message":["gim"],"application/vnd.groove-injector":["grv"],"application/vnd.groove-tool-message":["gtm"],"application/vnd.groove-tool-template":["tpl"],"application/vnd.groove-vcard":["vcg"],"application/vnd.hal+xml":["hal"],"application/vnd.handheld-entertainment+xml":["zmm"],"application/vnd.hbci":["hbci"],"application/vnd.hhe.lesson-player":["les"],"application/vnd.hp-hpgl":["hpgl"],"application/vnd.hp-hpid":["hpid"],"application/vnd.hp-hps":["hps"],"application/vnd.hp-jlyt":["jlt"],"application/vnd.hp-pcl":["pcl"],"application/vnd.hp-pclxl":["pclxl"],"application/vnd.hydrostatix.sof-data":["sfd-hdstx"],"application/vnd.ibm.minipay":["mpy"],"application/vnd.ibm.modcap":["afp","listafp","list3820"],"application/vnd.ibm.rights-management":["irm"],"application/vnd.ibm.secure-container":["sc"],"application/vnd.iccprofile":["icc","icm"],"application/vnd.igloader":["igl"],"application/vnd.immervision-ivp":["ivp"],"application/vnd.immervision-ivu":["ivu"],"application/vnd.insors.igm":["igm"],"application/vnd.intercon.formnet":["xpw","xpx"],"application/vnd.intergeo":["i2g"],"application/vnd.intu.qbo":["qbo"],"application/vnd.intu.qfx":["qfx"],"application/vnd.ipunplugged.rcprofile":["rcprofile"],"application/vnd.irepository.package+xml":["irp"],"application/vnd.is-xpr":["xpr"],"application/vnd.isac.fcs":["fcs"],"application/vnd.jam":["jam"],"application/vnd.jcp.javame.midlet-rms":["rms"],"application/vnd.jisp":["jisp"],"application/vnd.joost.joda-archive":["joda"],"application/vnd.kahootz":["ktz","ktr"],"application/vnd.kde.karbon":["karbon"],"application/vnd.kde.kchart":["chrt"],"application/vnd.kde.kformula":["kfo"],"application/vnd.kde.kivio":["flw"],"application/vnd.kde.kontour":["kon"],"application/vnd.kde.kpresenter":["kpr","kpt"],"application/vnd.kde.kspread":["ksp"],"application/vnd.kde.kword":["kwd","kwt"],"application/vnd.kenameaapp":["htke"],"application/vnd.kidspiration":["kia"],"application/vnd.kinar":["kne","knp"],"application/vnd.koan":["skp","skd","skt","skm"],"application/vnd.kodak-descriptor":["sse"],"application/vnd.las.las+xml":["lasxml"],"application/vnd.llamagraphics.life-balance.desktop":["lbd"],"application/vnd.llamagraphics.life-balance.exchange+xml":["lbe"],"application/vnd.lotus-1-2-3":["123"],"application/vnd.lotus-approach":["apr"],"application/vnd.lotus-freelance":["pre"],"application/vnd.lotus-notes":["nsf"],"application/vnd.lotus-organizer":["org"],"application/vnd.lotus-screencam":["scm"],"application/vnd.lotus-wordpro":["lwp"],"application/vnd.macports.portpkg":["portpkg"],"application/vnd.mapbox-vector-tile":["mvt"],"application/vnd.mcd":["mcd"],"application/vnd.medcalcdata":["mc1"],"application/vnd.mediastation.cdkey":["cdkey"],"application/vnd.mfer":["mwf"],"application/vnd.mfmp":["mfm"],"application/vnd.micrografx.flo":["flo"],"application/vnd.micrografx.igx":["igx"],"application/vnd.mif":["mif"],"application/vnd.mobius.daf":["daf"],"application/vnd.mobius.dis":["dis"],"application/vnd.mobius.mbk":["mbk"],"application/vnd.mobius.mqy":["mqy"],"application/vnd.mobius.msl":["msl"],"application/vnd.mobius.plc":["plc"],"application/vnd.mobius.txf":["txf"],"application/vnd.mophun.application":["mpn"],"application/vnd.mophun.certificate":["mpc"],"application/vnd.mozilla.xul+xml":["xul"],"application/vnd.ms-artgalry":["cil"],"application/vnd.ms-cab-compressed":["cab"],"application/vnd.ms-excel":["xls","xlm","xla","xlc","xlt","xlw"],"application/vnd.ms-excel.addin.macroenabled.12":["xlam"],"application/vnd.ms-excel.sheet.binary.macroenabled.12":["xlsb"],"application/vnd.ms-excel.sheet.macroenabled.12":["xlsm"],"application/vnd.ms-excel.template.macroenabled.12":["xltm"],"application/vnd.ms-fontobject":["eot"],"application/vnd.ms-htmlhelp":["chm"],"application/vnd.ms-ims":["ims"],"application/vnd.ms-lrm":["lrm"],"application/vnd.ms-officetheme":["thmx"],"application/vnd.ms-outlook":["msg"],"application/vnd.ms-pki.seccat":["cat"],"application/vnd.ms-pki.stl":["*stl"],"application/vnd.ms-powerpoint":["ppt","pps","pot"],"application/vnd.ms-powerpoint.addin.macroenabled.12":["ppam"],"application/vnd.ms-powerpoint.presentation.macroenabled.12":["pptm"],"application/vnd.ms-powerpoint.slide.macroenabled.12":["sldm"],"application/vnd.ms-powerpoint.slideshow.macroenabled.12":["ppsm"],"application/vnd.ms-powerpoint.template.macroenabled.12":["potm"],"application/vnd.ms-project":["*mpp","mpt"],"application/vnd.ms-word.document.macroenabled.12":["docm"],"application/vnd.ms-word.template.macroenabled.12":["dotm"],"application/vnd.ms-works":["wps","wks","wcm","wdb"],"application/vnd.ms-wpl":["wpl"],"application/vnd.ms-xpsdocument":["xps"],"application/vnd.mseq":["mseq"],"application/vnd.musician":["mus"],"application/vnd.muvee.style":["msty"],"application/vnd.mynfc":["taglet"],"application/vnd.neurolanguage.nlu":["nlu"],"application/vnd.nitf":["ntf","nitf"],"application/vnd.noblenet-directory":["nnd"],"application/vnd.noblenet-sealer":["nns"],"application/vnd.noblenet-web":["nnw"],"application/vnd.nokia.n-gage.ac+xml":["*ac"],"application/vnd.nokia.n-gage.data":["ngdat"],"application/vnd.nokia.n-gage.symbian.install":["n-gage"],"application/vnd.nokia.radio-preset":["rpst"],"application/vnd.nokia.radio-presets":["rpss"],"application/vnd.novadigm.edm":["edm"],"application/vnd.novadigm.edx":["edx"],"application/vnd.novadigm.ext":["ext"],"application/vnd.oasis.opendocument.chart":["odc"],"application/vnd.oasis.opendocument.chart-template":["otc"],"application/vnd.oasis.opendocument.database":["odb"],"application/vnd.oasis.opendocument.formula":["odf"],"application/vnd.oasis.opendocument.formula-template":["odft"],"application/vnd.oasis.opendocument.graphics":["odg"],"application/vnd.oasis.opendocument.graphics-template":["otg"],"application/vnd.oasis.opendocument.image":["odi"],"application/vnd.oasis.opendocument.image-template":["oti"],"application/vnd.oasis.opendocument.presentation":["odp"],"application/vnd.oasis.opendocument.presentation-template":["otp"],"application/vnd.oasis.opendocument.spreadsheet":["ods"],"application/vnd.oasis.opendocument.spreadsheet-template":["ots"],"application/vnd.oasis.opendocument.text":["odt"],"application/vnd.oasis.opendocument.text-master":["odm"],"application/vnd.oasis.opendocument.text-template":["ott"],"application/vnd.oasis.opendocument.text-web":["oth"],"application/vnd.olpc-sugar":["xo"],"application/vnd.oma.dd2+xml":["dd2"],"application/vnd.openblox.game+xml":["obgx"],"application/vnd.openofficeorg.extension":["oxt"],"application/vnd.openstreetmap.data+xml":["osm"],"application/vnd.openxmlformats-officedocument.presentationml.presentation":["pptx"],"application/vnd.openxmlformats-officedocument.presentationml.slide":["sldx"],"application/vnd.openxmlformats-officedocument.presentationml.slideshow":["ppsx"],"application/vnd.openxmlformats-officedocument.presentationml.template":["potx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":["xlsx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.template":["xltx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":["docx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.template":["dotx"],"application/vnd.osgeo.mapguide.package":["mgp"],"application/vnd.osgi.dp":["dp"],"application/vnd.osgi.subsystem":["esa"],"application/vnd.palm":["pdb","pqa","oprc"],"application/vnd.pawaafile":["paw"],"application/vnd.pg.format":["str"],"application/vnd.pg.osasli":["ei6"],"application/vnd.picsel":["efif"],"application/vnd.pmi.widget":["wg"],"application/vnd.pocketlearn":["plf"],"application/vnd.powerbuilder6":["pbd"],"application/vnd.previewsystems.box":["box"],"application/vnd.proteus.magazine":["mgz"],"application/vnd.publishare-delta-tree":["qps"],"application/vnd.pvi.ptid1":["ptid"],"application/vnd.pwg-xhtml-print+xml":["xhtm"],"application/vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"application/vnd.rar":["rar"],"application/vnd.realvnc.bed":["bed"],"application/vnd.recordare.musicxml":["mxl"],"application/vnd.recordare.musicxml+xml":["musicxml"],"application/vnd.rig.cryptonote":["cryptonote"],"application/vnd.rim.cod":["cod"],"application/vnd.rn-realmedia":["rm"],"application/vnd.rn-realmedia-vbr":["rmvb"],"application/vnd.route66.link66+xml":["link66"],"application/vnd.sailingtracker.track":["st"],"application/vnd.seemail":["see"],"application/vnd.sema":["sema"],"application/vnd.semd":["semd"],"application/vnd.semf":["semf"],"application/vnd.shana.informed.formdata":["ifm"],"application/vnd.shana.informed.formtemplate":["itp"],"application/vnd.shana.informed.interchange":["iif"],"application/vnd.shana.informed.package":["ipk"],"application/vnd.simtech-mindmapper":["twd","twds"],"application/vnd.smaf":["mmf"],"application/vnd.smart.teacher":["teacher"],"application/vnd.software602.filler.form+xml":["fo"],"application/vnd.solent.sdkm+xml":["sdkm","sdkd"],"application/vnd.spotfire.dxp":["dxp"],"application/vnd.spotfire.sfs":["sfs"],"application/vnd.stardivision.calc":["sdc"],"application/vnd.stardivision.draw":["sda"],"application/vnd.stardivision.impress":["sdd"],"application/vnd.stardivision.math":["smf"],"application/vnd.stardivision.writer":["sdw","vor"],"application/vnd.stardivision.writer-global":["sgl"],"application/vnd.stepmania.package":["smzip"],"application/vnd.stepmania.stepchart":["sm"],"application/vnd.sun.wadl+xml":["wadl"],"application/vnd.sun.xml.calc":["sxc"],"application/vnd.sun.xml.calc.template":["stc"],"application/vnd.sun.xml.draw":["sxd"],"application/vnd.sun.xml.draw.template":["std"],"application/vnd.sun.xml.impress":["sxi"],"application/vnd.sun.xml.impress.template":["sti"],"application/vnd.sun.xml.math":["sxm"],"application/vnd.sun.xml.writer":["sxw"],"application/vnd.sun.xml.writer.global":["sxg"],"application/vnd.sun.xml.writer.template":["stw"],"application/vnd.sus-calendar":["sus","susp"],"application/vnd.svd":["svd"],"application/vnd.symbian.install":["sis","sisx"],"application/vnd.syncml+xml":["xsm"],"application/vnd.syncml.dm+wbxml":["bdm"],"application/vnd.syncml.dm+xml":["xdm"],"application/vnd.syncml.dmddf+xml":["ddf"],"application/vnd.tao.intent-module-archive":["tao"],"application/vnd.tcpdump.pcap":["pcap","cap","dmp"],"application/vnd.tmobile-livetv":["tmo"],"application/vnd.trid.tpt":["tpt"],"application/vnd.triscape.mxs":["mxs"],"application/vnd.trueapp":["tra"],"application/vnd.ufdl":["ufd","ufdl"],"application/vnd.uiq.theme":["utz"],"application/vnd.umajin":["umj"],"application/vnd.unity":["unityweb"],"application/vnd.uoml+xml":["uoml","uo"],"application/vnd.vcx":["vcx"],"application/vnd.visio":["vsd","vst","vss","vsw"],"application/vnd.visionary":["vis"],"application/vnd.vsf":["vsf"],"application/vnd.wap.wbxml":["wbxml"],"application/vnd.wap.wmlc":["wmlc"],"application/vnd.wap.wmlscriptc":["wmlsc"],"application/vnd.webturbo":["wtb"],"application/vnd.wolfram.player":["nbp"],"application/vnd.wordperfect":["wpd"],"application/vnd.wqd":["wqd"],"application/vnd.wt.stf":["stf"],"application/vnd.xara":["xar"],"application/vnd.xfdl":["xfdl"],"application/vnd.yamaha.hv-dic":["hvd"],"application/vnd.yamaha.hv-script":["hvs"],"application/vnd.yamaha.hv-voice":["hvp"],"application/vnd.yamaha.openscoreformat":["osf"],"application/vnd.yamaha.openscoreformat.osfpvg+xml":["osfpvg"],"application/vnd.yamaha.smaf-audio":["saf"],"application/vnd.yamaha.smaf-phrase":["spf"],"application/vnd.yellowriver-custom-menu":["cmp"],"application/vnd.zul":["zir","zirz"],"application/vnd.zzazz.deck+xml":["zaz"],"application/x-7z-compressed":["7z"],"application/x-abiword":["abw"],"application/x-ace-compressed":["ace"],"application/x-apple-diskimage":["*dmg"],"application/x-arj":["arj"],"application/x-authorware-bin":["aab","x32","u32","vox"],"application/x-authorware-map":["aam"],"application/x-authorware-seg":["aas"],"application/x-bcpio":["bcpio"],"application/x-bdoc":["*bdoc"],"application/x-bittorrent":["torrent"],"application/x-blorb":["blb","blorb"],"application/x-bzip":["bz"],"application/x-bzip2":["bz2","boz"],"application/x-cbr":["cbr","cba","cbt","cbz","cb7"],"application/x-cdlink":["vcd"],"application/x-cfs-compressed":["cfs"],"application/x-chat":["chat"],"application/x-chess-pgn":["pgn"],"application/x-chrome-extension":["crx"],"application/x-cocoa":["cco"],"application/x-conference":["nsc"],"application/x-cpio":["cpio"],"application/x-csh":["csh"],"application/x-debian-package":["*deb","udeb"],"application/x-dgc-compressed":["dgc"],"application/x-director":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"],"application/x-doom":["wad"],"application/x-dtbncx+xml":["ncx"],"application/x-dtbook+xml":["dtb"],"application/x-dtbresource+xml":["res"],"application/x-dvi":["dvi"],"application/x-envoy":["evy"],"application/x-eva":["eva"],"application/x-font-bdf":["bdf"],"application/x-font-ghostscript":["gsf"],"application/x-font-linux-psf":["psf"],"application/x-font-pcf":["pcf"],"application/x-font-snf":["snf"],"application/x-font-type1":["pfa","pfb","pfm","afm"],"application/x-freearc":["arc"],"application/x-futuresplash":["spl"],"application/x-gca-compressed":["gca"],"application/x-glulx":["ulx"],"application/x-gnumeric":["gnumeric"],"application/x-gramps-xml":["gramps"],"application/x-gtar":["gtar"],"application/x-hdf":["hdf"],"application/x-httpd-php":["php"],"application/x-install-instructions":["install"],"application/x-iso9660-image":["*iso"],"application/x-iwork-keynote-sffkey":["*key"],"application/x-iwork-numbers-sffnumbers":["*numbers"],"application/x-iwork-pages-sffpages":["*pages"],"application/x-java-archive-diff":["jardiff"],"application/x-java-jnlp-file":["jnlp"],"application/x-keepass2":["kdbx"],"application/x-latex":["latex"],"application/x-lua-bytecode":["luac"],"application/x-lzh-compressed":["lzh","lha"],"application/x-makeself":["run"],"application/x-mie":["mie"],"application/x-mobipocket-ebook":["*prc","mobi"],"application/x-ms-application":["application"],"application/x-ms-shortcut":["lnk"],"application/x-ms-wmd":["wmd"],"application/x-ms-wmz":["wmz"],"application/x-ms-xbap":["xbap"],"application/x-msaccess":["mdb"],"application/x-msbinder":["obd"],"application/x-mscardfile":["crd"],"application/x-msclip":["clp"],"application/x-msdos-program":["*exe"],"application/x-msdownload":["*exe","*dll","com","bat","*msi"],"application/x-msmediaview":["mvb","m13","m14"],"application/x-msmetafile":["*wmf","*wmz","*emf","emz"],"application/x-msmoney":["mny"],"application/x-mspublisher":["pub"],"application/x-msschedule":["scd"],"application/x-msterminal":["trm"],"application/x-mswrite":["wri"],"application/x-netcdf":["nc","cdf"],"application/x-ns-proxy-autoconfig":["pac"],"application/x-nzb":["nzb"],"application/x-perl":["pl","pm"],"application/x-pilot":["*prc","*pdb"],"application/x-pkcs12":["p12","pfx"],"application/x-pkcs7-certificates":["p7b","spc"],"application/x-pkcs7-certreqresp":["p7r"],"application/x-rar-compressed":["*rar"],"application/x-redhat-package-manager":["rpm"],"application/x-research-info-systems":["ris"],"application/x-sea":["sea"],"application/x-sh":["sh"],"application/x-shar":["shar"],"application/x-shockwave-flash":["swf"],"application/x-silverlight-app":["xap"],"application/x-sql":["*sql"],"application/x-stuffit":["sit"],"application/x-stuffitx":["sitx"],"application/x-subrip":["srt"],"application/x-sv4cpio":["sv4cpio"],"application/x-sv4crc":["sv4crc"],"application/x-t3vm-image":["t3"],"application/x-tads":["gam"],"application/x-tar":["tar"],"application/x-tcl":["tcl","tk"],"application/x-tex":["tex"],"application/x-tex-tfm":["tfm"],"application/x-texinfo":["texinfo","texi"],"application/x-tgif":["*obj"],"application/x-ustar":["ustar"],"application/x-virtualbox-hdd":["hdd"],"application/x-virtualbox-ova":["ova"],"application/x-virtualbox-ovf":["ovf"],"application/x-virtualbox-vbox":["vbox"],"application/x-virtualbox-vbox-extpack":["vbox-extpack"],"application/x-virtualbox-vdi":["vdi"],"application/x-virtualbox-vhd":["vhd"],"application/x-virtualbox-vmdk":["vmdk"],"application/x-wais-source":["src"],"application/x-web-app-manifest+json":["webapp"],"application/x-x509-ca-cert":["der","crt","pem"],"application/x-xfig":["fig"],"application/x-xliff+xml":["*xlf"],"application/x-xpinstall":["xpi"],"application/x-xz":["xz"],"application/x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"audio/vnd.dece.audio":["uva","uvva"],"audio/vnd.digital-winds":["eol"],"audio/vnd.dra":["dra"],"audio/vnd.dts":["dts"],"audio/vnd.dts.hd":["dtshd"],"audio/vnd.lucent.voice":["lvp"],"audio/vnd.ms-playready.media.pya":["pya"],"audio/vnd.nuera.ecelp4800":["ecelp4800"],"audio/vnd.nuera.ecelp7470":["ecelp7470"],"audio/vnd.nuera.ecelp9600":["ecelp9600"],"audio/vnd.rip":["rip"],"audio/x-aac":["*aac"],"audio/x-aiff":["aif","aiff","aifc"],"audio/x-caf":["caf"],"audio/x-flac":["flac"],"audio/x-m4a":["*m4a"],"audio/x-matroska":["mka"],"audio/x-mpegurl":["m3u"],"audio/x-ms-wax":["wax"],"audio/x-ms-wma":["wma"],"audio/x-pn-realaudio":["ram","ra"],"audio/x-pn-realaudio-plugin":["rmp"],"audio/x-realaudio":["*ra"],"audio/x-wav":["*wav"],"chemical/x-cdx":["cdx"],"chemical/x-cif":["cif"],"chemical/x-cmdf":["cmdf"],"chemical/x-cml":["cml"],"chemical/x-csml":["csml"],"chemical/x-xyz":["xyz"],"image/prs.btif":["btif","btf"],"image/prs.pti":["pti"],"image/vnd.adobe.photoshop":["psd"],"image/vnd.airzip.accelerator.azv":["azv"],"image/vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"image/vnd.djvu":["djvu","djv"],"image/vnd.dvb.subtitle":["*sub"],"image/vnd.dwg":["dwg"],"image/vnd.dxf":["dxf"],"image/vnd.fastbidsheet":["fbs"],"image/vnd.fpx":["fpx"],"image/vnd.fst":["fst"],"image/vnd.fujixerox.edmics-mmr":["mmr"],"image/vnd.fujixerox.edmics-rlc":["rlc"],"image/vnd.microsoft.icon":["ico"],"image/vnd.ms-dds":["dds"],"image/vnd.ms-modi":["mdi"],"image/vnd.ms-photo":["wdp"],"image/vnd.net-fpx":["npx"],"image/vnd.pco.b16":["b16"],"image/vnd.tencent.tap":["tap"],"image/vnd.valve.source.texture":["vtf"],"image/vnd.wap.wbmp":["wbmp"],"image/vnd.xiff":["xif"],"image/vnd.zbrush.pcx":["pcx"],"image/x-3ds":["3ds"],"image/x-cmu-raster":["ras"],"image/x-cmx":["cmx"],"image/x-freehand":["fh","fhc","fh4","fh5","fh7"],"image/x-icon":["*ico"],"image/x-jng":["jng"],"image/x-mrsid-image":["sid"],"image/x-ms-bmp":["*bmp"],"image/x-pcx":["*pcx"],"image/x-pict":["pic","pct"],"image/x-portable-anymap":["pnm"],"image/x-portable-bitmap":["pbm"],"image/x-portable-graymap":["pgm"],"image/x-portable-pixmap":["ppm"],"image/x-rgb":["rgb"],"image/x-tga":["tga"],"image/x-xbitmap":["xbm"],"image/x-xpixmap":["xpm"],"image/x-xwindowdump":["xwd"],"message/vnd.wfa.wsc":["wsc"],"model/vnd.cld":["cld"],"model/vnd.collada+xml":["dae"],"model/vnd.dwf":["dwf"],"model/vnd.gdl":["gdl"],"model/vnd.gtw":["gtw"],"model/vnd.mts":["mts"],"model/vnd.opengex":["ogex"],"model/vnd.parasolid.transmit.binary":["x_b"],"model/vnd.parasolid.transmit.text":["x_t"],"model/vnd.pytha.pyox":["pyo","pyox"],"model/vnd.sap.vds":["vds"],"model/vnd.usda":["usda"],"model/vnd.usdz+zip":["usdz"],"model/vnd.valve.source.compiled-map":["bsp"],"model/vnd.vtu":["vtu"],"text/prs.lines.tag":["dsc"],"text/vnd.curl":["curl"],"text/vnd.curl.dcurl":["dcurl"],"text/vnd.curl.mcurl":["mcurl"],"text/vnd.curl.scurl":["scurl"],"text/vnd.dvb.subtitle":["sub"],"text/vnd.familysearch.gedcom":["ged"],"text/vnd.fly":["fly"],"text/vnd.fmi.flexstor":["flx"],"text/vnd.graphviz":["gv"],"text/vnd.in3d.3dml":["3dml"],"text/vnd.in3d.spot":["spot"],"text/vnd.sun.j2me.app-descriptor":["jad"],"text/vnd.wap.wml":["wml"],"text/vnd.wap.wmlscript":["wmls"],"text/x-asm":["s","asm"],"text/x-c":["c","cc","cxx","cpp","h","hh","dic"],"text/x-component":["htc"],"text/x-fortran":["f","for","f77","f90"],"text/x-handlebars-template":["hbs"],"text/x-java-source":["java"],"text/x-lua":["lua"],"text/x-markdown":["mkd"],"text/x-nfo":["nfo"],"text/x-opml":["opml"],"text/x-org":["*org"],"text/x-pascal":["p","pas"],"text/x-processing":["pde"],"text/x-sass":["sass"],"text/x-scss":["scss"],"text/x-setext":["etx"],"text/x-sfv":["sfv"],"text/x-suse-ymp":["ymp"],"text/x-uuencode":["uu"],"text/x-vcalendar":["vcs"],"text/x-vcard":["vcf"],"video/vnd.dece.hd":["uvh","uvvh"],"video/vnd.dece.mobile":["uvm","uvvm"],"video/vnd.dece.pd":["uvp","uvvp"],"video/vnd.dece.sd":["uvs","uvvs"],"video/vnd.dece.video":["uvv","uvvv"],"video/vnd.dvb.file":["dvb"],"video/vnd.fvt":["fvt"],"video/vnd.mpegurl":["mxu","m4u"],"video/vnd.ms-playready.media.pyv":["pyv"],"video/vnd.uvvu.mp4":["uvu","uvvu"],"video/vnd.vivo":["viv"],"video/x-f4v":["f4v"],"video/x-fli":["fli"],"video/x-flv":["flv"],"video/x-m4v":["m4v"],"video/x-matroska":["mkv","mk3d","mks"],"video/x-mng":["mng"],"video/x-ms-asf":["asf","asx"],"video/x-ms-vob":["vob"],"video/x-ms-wm":["wm"],"video/x-ms-wmv":["wmv"],"video/x-ms-wmx":["wmx"],"video/x-ms-wvx":["wvx"],"video/x-msvideo":["avi"],"video/x-sgi-movie":["movie"],"video/x-smv":["smv"],"x-conference/x-cooltalk":["ice"]};Object.freeze(u4e);var l4e=u4e;var c4e={"application/andrew-inset":["ez"],"application/appinstaller":["appinstaller"],"application/applixware":["aw"],"application/appx":["appx"],"application/appxbundle":["appxbundle"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/automationml-aml+xml":["aml"],"application/automationml-amlx+zip":["amlx"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cpl+xml":["cpl"],"application/cu-seeme":["cu"],"application/cwl":["cwl"],"application/dash+xml":["mpd"],"application/dash-patch+xml":["mpp"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdf":["fdf"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["*js"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/media-policy-dataset+xml":["mpf"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["*mp4","*mpg4","mp4s","m4p"],"application/msix":["msix"],"application/msixbundle":["msixbundle"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-keys":["asc"],"application/pgp-signature":["sig","*asc"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/sql":["sql"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/watcherinfo+xml":["wif"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xfdf":["xfdf"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":["*3gpp"],"audio/aac":["adts","aac"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avci":["avci"],"image/avcs":["avcs"],"image/avif":["avif"],"image/bmp":["bmp","dib"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/dpx":["dpx"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/hsj2":["hsj2"],"image/ief":["ief"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm","jpgm"],"image/jpx":["jpx","jpf"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/jt":["jt"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/prc":["prc"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/u3d":["u3d"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/javascript":["js","mjs"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["md","markdown"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/wgsl":["wgsl"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","*jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]};Object.freeze(c4e);var p4e=c4e;var Yn=function(e,t,r,i){if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?i:r==="a"?i.call(e):i?i.value:t.get(e)},N1,xg,fp,CR=class{constructor(...t){N1.set(this,new Map),xg.set(this,new Map),fp.set(this,new Map);for(let r of t)this.define(r)}define(t,r=!1){for(let[i,n]of Object.entries(t)){i=i.toLowerCase(),n=n.map(o=>o.toLowerCase()),Yn(this,fp,"f").has(i)||Yn(this,fp,"f").set(i,new Set);let a=Yn(this,fp,"f").get(i),s=!0;for(let o of n){let u=o.startsWith("*");if(o=u?o.slice(1):o,a?.add(o),s&&Yn(this,xg,"f").set(i,o),s=!1,u)continue;let l=Yn(this,N1,"f").get(o);if(l&&l!=i&&!r)throw new Error(`"${i} -> ${o}" conflicts with "${l} -> ${o}". Pass \`force=true\` to override this definition.`);Yn(this,N1,"f").set(o,i)}}return this}getType(t){if(typeof t!="string")return null;let r=t.replace(/^.*[/\\]/,"").toLowerCase(),i=r.replace(/^.*\./,"").toLowerCase(),n=r.length<t.length;return!(i.length<r.length-1)&&n?null:Yn(this,N1,"f").get(i)??null}getExtension(t){return typeof t!="string"?null:(t=t?.split?.(";")[0],(t&&Yn(this,xg,"f").get(t.trim().toLowerCase()))??null)}getAllExtensions(t){return typeof t!="string"?null:Yn(this,fp,"f").get(t.toLowerCase())??null}_freeze(){this.define=()=>{throw new Error("define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances")},Object.freeze(this);for(let t of Yn(this,fp,"f").values())Object.freeze(t);return this}_getTestState(){return{types:Yn(this,N1,"f"),extensions:Yn(this,xg,"f")}}};N1=new WeakMap,xg=new WeakMap,fp=new WeakMap;var SR=CR;var R1=new SR(p4e,l4e)._freeze();async function ect(e,t,r=!0){await AR(e,t,void 0,r)}async function AR(e,t,r,i=!0){i&&re("Adding"),await Ie(),t.apikey=t.apikey||Fe();let n=await pe();e=e||n?.config?.appId,t.apikey||(T.error("Missing API key, you need to provide a API key to upload your bundle"),$.error("")),e||(T.error("Missing argument, you need to provide a appId, or be in a capacitor project"),$.error("")),e.includes("--")&&(T.error('The app id includes illegal symbols. You cannot use "--" in the app id'),$.error(""));let a=await Se(t.apikey);await Ae(a,t.apikey,["write","all"]),await u6e(a,e)&&(T.error(`App ${e} already exist`),$.error("")),r||(r=await n1(a,["admin","super_admin"]));let o=r.gid;await i1(a,o,t.apikey,void 0,!1);let{name:u,icon:l}=t;u=u||n.config?.appName||"Unknown",l=l||"resources/icon.png",(!l||!u)&&(T.error("Missing argument, you need to provide a appId and a name, or be in a capacitor project"),$.error("")),i&&T.info(`Adding ${e} to Capgo`);let c,p;l&&(0,P1.existsSync)(l)?(c=(0,P1.readFileSync)(l),p=R1.getType(l)||"image/png",T.warn(`Found app icon ${l}`)):(0,P1.existsSync)(Gn)?(c=(0,P1.readFileSync)(Gn),p=R1.getType(Gn)||"image/png",T.warn(`Found app icon ${Gn}`)):T.warn(`Cannot find app icon in any of the following locations: ${l}, ${Gn}`);let d="icon",f="https://xvwzpoazmxkqosrdewyv.supabase.co/storage/v1/object/public/images/capgo.png";if(c&&p){let{error:v}=await a.storage.from(`images/org/${o}/${e}`).upload(d,c,{contentType:p});v&&(console.error(v),T.error(`Could not add app ${ce(v)}`),$.error(""));let{data:y}=await a.storage.from(`images/org/${o}/${e}`).getPublicUrl(d);f=y?.publicUrl||f}let{error:h}=await a.from("apps").insert({icon_url:f,owner_org:o,name:u,app_id:e});h&&(T.error(`Could not add app ${ce(h)}`),$.error(""));let{error:m}=await a.from("app_versions").insert([{owner_org:o,deleted:!0,name:"unknown",app_id:e},{owner_org:o,deleted:!0,name:"builtin",app_id:e}]);return m&&(T.error(`Could not add app ${ce(m)}`),$.error("")),T.success(`App ${e} added to Capgo. ${i?"You can upload a bundle now":""}`),i&&(ae("Done \u2705"),(0,d4e.exit)()),!0}async function f4e(e,t){ect(e,t,!0)}var h4e="import { CapacitorUpdater } from '@capgo/capacitor-updater'",w5="CapacitorUpdater.notifyAppReady()",tct=/import.*from.*/g,Cg="production",m4e={stdio:"pipe"},I1;function g4e(){I1||(I1=(0,rr.readdirSync)(E5.default.tmpdir).map(e=>({name:e,full:`${E5.default.tmpdir}/${e}`})).find(e=>e.name.startsWith("capgocli"))?.full??E5.default.fileSync({prefix:"capgocli"}).name)}function ol(e){try{g4e(),(0,rr.writeFileSync)(I1,JSON.stringify({step_done:e}))}catch(t){T.error(`Cannot mark step as done in the CLI, error:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capgo/cli",
|
|
3
|
-
"version": "4.20.
|
|
3
|
+
"version": "4.20.8",
|
|
4
4
|
"description": "A CLI to upload to capgo servers",
|
|
5
5
|
"author": "github.com/riderx",
|
|
6
6
|
"license": "Apache 2.0",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"commander": "12.1.0",
|
|
70
70
|
"console-table-printer": "^2.12.1",
|
|
71
71
|
"esbuild": "^0.23.1",
|
|
72
|
-
"eslint": "9.
|
|
72
|
+
"eslint": "9.12.0",
|
|
73
73
|
"get-latest-version": "^5.1.0",
|
|
74
74
|
"git-format-staged": "3.1.1",
|
|
75
75
|
"husky": "^9.1.5",
|