Dot_Files/.config/raycast/extensions/9dae4bd8-1609-4deb-a818-f2f01838bb9e/index.js

9 lines
40 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

var Vr=Object.create;var ue=Object.defineProperty;var Wr=Object.getOwnPropertyDescriptor;var Gr=Object.getOwnPropertyNames;var Xr=Object.getPrototypeOf,Yr=Object.prototype.hasOwnProperty;var ut=t=>ue(t,"__esModule",{value:!0});var p=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Kr=(t,e)=>{for(var r in e)ue(t,r,{get:e[r],enumerable:!0})},ct=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Gr(e))!Yr.call(t,s)&&(r||s!=="default")&&ue(t,s,{get:()=>e[s],enumerable:!(n=Wr(e,s))||n.enumerable});return t},ft=(t,e)=>ct(ut(ue(t!=null?Vr(Xr(t)):{},"default",!e&&t&&t.__esModule?{get:()=>t.default,enumerable:!0}:{value:t,enumerable:!0})),t),Qr=(t=>(e,r)=>t&&t.get(e)||(r=ct(ut({}),e,1),t&&t.set(e,r),r))(typeof WeakMap!="undefined"?new WeakMap:0);var Se=p((Is,lt)=>{"use strict";lt.exports=function(e,r){return function(){for(var s=new Array(arguments.length),o=0;o<s.length;o++)s[o]=arguments[o];return e.apply(r,s)}}});var q=p((Ms,pt)=>{"use strict";var Zr=Se(),I=Object.prototype.toString;function Fe(t){return I.call(t)==="[object Array]"}function Ae(t){return typeof t=="undefined"}function en(t){return t!==null&&!Ae(t)&&t.constructor!==null&&!Ae(t.constructor)&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function tn(t){return I.call(t)==="[object ArrayBuffer]"}function rn(t){return typeof FormData!="undefined"&&t instanceof FormData}function nn(t){var e;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&t.buffer instanceof ArrayBuffer,e}function sn(t){return typeof t=="string"}function on(t){return typeof t=="number"}function ht(t){return t!==null&&typeof t=="object"}function ce(t){if(I.call(t)!=="[object Object]")return!1;var e=Object.getPrototypeOf(t);return e===null||e===Object.prototype}function an(t){return I.call(t)==="[object Date]"}function un(t){return I.call(t)==="[object File]"}function cn(t){return I.call(t)==="[object Blob]"}function dt(t){return I.call(t)==="[object Function]"}function fn(t){return ht(t)&&dt(t.pipe)}function ln(t){return typeof URLSearchParams!="undefined"&&t instanceof URLSearchParams}function hn(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function dn(){return typeof navigator!="undefined"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window!="undefined"&&typeof document!="undefined"}function Ne(t,e){if(!(t===null||typeof t=="undefined"))if(typeof t!="object"&&(t=[t]),Fe(t))for(var r=0,n=t.length;r<n;r++)e.call(null,t[r],r,t);else for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.call(null,t[s],s,t)}function Le(){var t={};function e(s,o){ce(t[o])&&ce(s)?t[o]=Le(t[o],s):ce(s)?t[o]=Le({},s):Fe(s)?t[o]=s.slice():t[o]=s}for(var r=0,n=arguments.length;r<n;r++)Ne(arguments[r],e);return t}function pn(t,e,r){return Ne(e,function(s,o){r&&typeof s=="function"?t[o]=Zr(s,r):t[o]=s}),t}function mn(t){return t.charCodeAt(0)===65279&&(t=t.slice(1)),t}pt.exports={isArray:Fe,isArrayBuffer:tn,isBuffer:en,isFormData:rn,isArrayBufferView:nn,isString:sn,isNumber:on,isObject:ht,isPlainObject:ce,isUndefined:Ae,isDate:an,isFile:un,isBlob:cn,isFunction:dt,isStream:fn,isURLSearchParams:ln,isStandardBrowserEnv:dn,forEach:Ne,merge:Le,extend:pn,trim:hn,stripBOM:mn}});var fe=p((js,vt)=>{"use strict";var k=q();function mt(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}vt.exports=function(e,r,n){if(!r)return e;var s;if(n)s=n(r);else if(k.isURLSearchParams(r))s=r.toString();else{var o=[];k.forEach(r,function(f,h){f===null||typeof f=="undefined"||(k.isArray(f)?h=h+"[]":f=[f],k.forEach(f,function(c){k.isDate(c)?c=c.toISOString():k.isObject(c)&&(c=JSON.stringify(c)),o.push(mt(h)+"="+mt(c))}))}),s=o.join("&")}if(s){var a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}});var yt=p((ks,Ct)=>{"use strict";var vn=q();function le(){this.handlers=[]}le.prototype.use=function(e,r,n){return this.handlers.push({fulfilled:e,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1};le.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)};le.prototype.forEach=function(e){vn.forEach(this.handlers,function(n){n!==null&&e(n)})};Ct.exports=le});var wt=p((Hs,bt)=>{"use strict";var Cn=q();bt.exports=function(e,r){Cn.forEach(e,function(s,o){o!==r&&o.toUpperCase()===r.toUpperCase()&&(e[r]=s,delete e[o])})}});var he=p((zs,Rt)=>{"use strict";Rt.exports=function(e,r,n,s,o){return e.config=r,n&&(e.code=n),e.request=s,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e}});var de=p(($s,gt)=>{"use strict";var yn=he();gt.exports=function(e,r,n,s,o){var a=new Error(e);return yn(a,r,n,s,o)}});var Be=p((Js,Et)=>{"use strict";var bn=de();Et.exports=function(e,r,n){var s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):r(bn("Request failed with status code "+n.status,n.config,null,n.request,n))}});var _t=p((Vs,qt)=>{"use strict";var pe=q();qt.exports=pe.isStandardBrowserEnv()?function(){return{write:function(r,n,s,o,a,u){var f=[];f.push(r+"="+encodeURIComponent(n)),pe.isNumber(s)&&f.push("expires="+new Date(s).toGMTString()),pe.isString(o)&&f.push("path="+o),pe.isString(a)&&f.push("domain="+a),u===!0&&f.push("secure"),document.cookie=f.join("; ")},read:function(r){var n=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()});var Ot=p((Ws,xt)=>{"use strict";xt.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}});var St=p((Gs,Tt)=>{"use strict";Tt.exports=function(e,r){return r?e.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):e}});var Pe=p((Xs,Ft)=>{"use strict";var wn=Ot(),Rn=St();Ft.exports=function(e,r){return e&&!wn(r)?Rn(e,r):r}});var Nt=p((Ys,At)=>{"use strict";var De=q(),gn=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];At.exports=function(e){var r={},n,s,o;return e&&De.forEach(e.split(`
`),function(u){if(o=u.indexOf(":"),n=De.trim(u.substr(0,o)).toLowerCase(),s=De.trim(u.substr(o+1)),n){if(r[n]&&gn.indexOf(n)>=0)return;n==="set-cookie"?r[n]=(r[n]?r[n]:[]).concat([s]):r[n]=r[n]?r[n]+", "+s:s}}),r}});var Pt=p((Ks,Bt)=>{"use strict";var Lt=q();Bt.exports=Lt.isStandardBrowserEnv()?function(){var e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),n;function s(o){var a=o;return e&&(r.setAttribute("href",a),a=r.href),r.setAttribute("href",a),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=s(window.location.href),function(a){var u=Lt.isString(a)?s(a):a;return u.protocol===n.protocol&&u.host===n.host}}():function(){return function(){return!0}}()});var H=p((Qs,Dt)=>{"use strict";function Ue(t){this.message=t}Ue.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")};Ue.prototype.__CANCEL__=!0;Dt.exports=Ue});var It=p((Zs,Ut)=>{"use strict";var me=q(),En=Be(),qn=_t(),_n=fe(),xn=Pe(),On=Nt(),Tn=Pt(),Ie=de(),Sn=z(),Fn=H();Ut.exports=function(e){return new Promise(function(n,s){var o=e.data,a=e.headers,u=e.responseType,f;function h(){e.cancelToken&&e.cancelToken.unsubscribe(f),e.signal&&e.signal.removeEventListener("abort",f)}me.isFormData(o)&&delete a["Content-Type"];var i=new XMLHttpRequest;if(e.auth){var c=e.auth.username||"",l=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";a.Authorization="Basic "+btoa(c+":"+l)}var _=xn(e.baseURL,e.url);i.open(e.method.toUpperCase(),_n(_,e.params,e.paramsSerializer),!0),i.timeout=e.timeout;function D(){if(!!i){var d="getAllResponseHeaders"in i?On(i.getAllResponseHeaders()):null,C=!u||u==="text"||u==="json"?i.responseText:i.response,g={data:C,status:i.status,statusText:i.statusText,headers:d,config:e,request:i};En(function(L){n(L),h()},function(L){s(L),h()},g),i=null}}if("onloadend"in i?i.onloadend=D:i.onreadystatechange=function(){!i||i.readyState!==4||i.status===0&&!(i.responseURL&&i.responseURL.indexOf("file:")===0)||setTimeout(D)},i.onabort=function(){!i||(s(Ie("Request aborted",e,"ECONNABORTED",i)),i=null)},i.onerror=function(){s(Ie("Network Error",e,null,i)),i=null},i.ontimeout=function(){var C=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",g=e.transitional||Sn.transitional;e.timeoutErrorMessage&&(C=e.timeoutErrorMessage),s(Ie(C,e,g.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",i)),i=null},me.isStandardBrowserEnv()){var R=(e.withCredentials||Tn(_))&&e.xsrfCookieName?qn.read(e.xsrfCookieName):void 0;R&&(a[e.xsrfHeaderName]=R)}"setRequestHeader"in i&&me.forEach(a,function(C,g){typeof o=="undefined"&&g.toLowerCase()==="content-type"?delete a[g]:i.setRequestHeader(g,C)}),me.isUndefined(e.withCredentials)||(i.withCredentials=!!e.withCredentials),u&&u!=="json"&&(i.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&i.addEventListener("progress",e.onDownloadProgress),typeof e.onUploadProgress=="function"&&i.upload&&i.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(f=function(d){!i||(s(!d||d&&d.type?new Fn("canceled"):d),i.abort(),i=null)},e.cancelToken&&e.cancelToken.subscribe(f),e.signal&&(e.signal.aborted?f():e.signal.addEventListener("abort",f))),o||(o=null),i.send(o)})}});var jt=p((ei,Mt)=>{var $=1e3,J=$*60,V=J*60,M=V*24,An=M*7,Nn=M*365.25;Mt.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return Ln(t);if(r==="number"&&isFinite(t))return e.long?Pn(t):Bn(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function Ln(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(!!e){var r=parseFloat(e[1]),n=(e[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*Nn;case"weeks":case"week":case"w":return r*An;case"days":case"day":case"d":return r*M;case"hours":case"hour":case"hrs":case"hr":case"h":return r*V;case"minutes":case"minute":case"mins":case"min":case"m":return r*J;case"seconds":case"second":case"secs":case"sec":case"s":return r*$;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function Bn(t){var e=Math.abs(t);return e>=M?Math.round(t/M)+"d":e>=V?Math.round(t/V)+"h":e>=J?Math.round(t/J)+"m":e>=$?Math.round(t/$)+"s":t+"ms"}function Pn(t){var e=Math.abs(t);return e>=M?ve(t,e,M,"day"):e>=V?ve(t,e,V,"hour"):e>=J?ve(t,e,J,"minute"):e>=$?ve(t,e,$,"second"):t+" ms"}function ve(t,e,r,n){var s=e>=r*1.5;return Math.round(t/r)+" "+n+(s?"s":"")}});var Me=p((ti,kt)=>{function Dn(t){r.debug=r,r.default=r,r.coerce=f,r.disable=o,r.enable=s,r.enabled=a,r.humanize=jt(),r.destroy=h,Object.keys(t).forEach(i=>{r[i]=t[i]}),r.names=[],r.skips=[],r.formatters={};function e(i){let c=0;for(let l=0;l<i.length;l++)c=(c<<5)-c+i.charCodeAt(l),c|=0;return r.colors[Math.abs(c)%r.colors.length]}r.selectColor=e;function r(i){let c,l=null,_,D;function R(...d){if(!R.enabled)return;let C=R,g=Number(new Date),Q=g-(c||g);C.diff=Q,C.prev=c,C.curr=g,c=g,d[0]=r.coerce(d[0]),typeof d[0]!="string"&&d.unshift("%O");let L=0;d[0]=d[0].replace(/%([a-zA-Z%])/g,(Z,F)=>{if(Z==="%%")return"%";L++;let A=r.formatters[F];if(typeof A=="function"){let se=d[L];Z=A.call(C,se),d.splice(L,1),L--}return Z}),r.formatArgs.call(C,d),(C.log||r.log).apply(C,d)}return R.namespace=i,R.useColors=r.useColors(),R.color=r.selectColor(i),R.extend=n,R.destroy=r.destroy,Object.defineProperty(R,"enabled",{enumerable:!0,configurable:!1,get:()=>l!==null?l:(_!==r.namespaces&&(_=r.namespaces,D=r.enabled(i)),D),set:d=>{l=d}}),typeof r.init=="function"&&r.init(R),R}function n(i,c){let l=r(this.namespace+(typeof c=="undefined"?":":c)+i);return l.log=this.log,l}function s(i){r.save(i),r.namespaces=i,r.names=[],r.skips=[];let c,l=(typeof i=="string"?i:"").split(/[\s,]+/),_=l.length;for(c=0;c<_;c++)!l[c]||(i=l[c].replace(/\*/g,".*?"),i[0]==="-"?r.skips.push(new RegExp("^"+i.substr(1)+"$")):r.names.push(new RegExp("^"+i+"$")))}function o(){let i=[...r.names.map(u),...r.skips.map(u).map(c=>"-"+c)].join(",");return r.enable(""),i}function a(i){if(i[i.length-1]==="*")return!0;let c,l;for(c=0,l=r.skips.length;c<l;c++)if(r.skips[c].test(i))return!1;for(c=0,l=r.names.length;c<l;c++)if(r.names[c].test(i))return!0;return!1}function u(i){return i.toString().substring(2,i.toString().length-2).replace(/\.\*\?$/,"*")}function f(i){return i instanceof Error?i.stack||i.message:i}function h(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}kt.exports=Dn});var Ht=p((O,Ce)=>{O.formatArgs=In;O.save=Mn;O.load=jn;O.useColors=Un;O.storage=kn();O.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();O.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function Un(){return typeof window!="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document!="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function In(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+Ce.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let r=0,n=0;t[0].replace(/%[a-zA-Z%]/g,s=>{s!=="%%"&&(r++,s==="%c"&&(n=r))}),t.splice(n,0,e)}O.log=console.debug||console.log||(()=>{});function Mn(t){try{t?O.storage.setItem("debug",t):O.storage.removeItem("debug")}catch{}}function jn(){let t;try{t=O.storage.getItem("debug")}catch{}return!t&&typeof process!="undefined"&&"env"in process&&(t=process.env.DEBUG),t}function kn(){try{return localStorage}catch{}}Ce.exports=Me()(O);var{formatters:Hn}=Ce.exports;Hn.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var $t=p((ri,zt)=>{"use strict";zt.exports=(t,e)=>{e=e||process.argv;let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),s=e.indexOf("--");return n!==-1&&(s===-1?!0:n<s)}});var Vt=p((ni,Jt)=>{"use strict";var zn=require("os"),N=$t(),w=process.env,W;N("no-color")||N("no-colors")||N("color=false")?W=!1:(N("color")||N("colors")||N("color=true")||N("color=always"))&&(W=!0);"FORCE_COLOR"in w&&(W=w.FORCE_COLOR.length===0||parseInt(w.FORCE_COLOR,10)!==0);function $n(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function Jn(t){if(W===!1)return 0;if(N("color=16m")||N("color=full")||N("color=truecolor"))return 3;if(N("color=256"))return 2;if(t&&!t.isTTY&&W!==!0)return 0;let e=W?1:0;if(process.platform==="win32"){let r=zn.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(r[0])>=10&&Number(r[2])>=10586?Number(r[2])>=14931?3:2:1}if("CI"in w)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(r=>r in w)||w.CI_NAME==="codeship"?1:e;if("TEAMCITY_VERSION"in w)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(w.TEAMCITY_VERSION)?1:0;if(w.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in w){let r=parseInt((w.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(w.TERM_PROGRAM){case"iTerm.app":return r>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(w.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(w.TERM)||"COLORTERM"in w?1:(w.TERM==="dumb",e)}function je(t){let e=Jn(t);return $n(e)}Jt.exports={supportsColor:je,stdout:je(process.stdout),stderr:je(process.stderr)}});var Gt=p((y,be)=>{var Vn=require("tty"),ye=require("util");y.init=Zn;y.log=Yn;y.formatArgs=Gn;y.save=Kn;y.load=Qn;y.useColors=Wn;y.destroy=ye.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");y.colors=[6,2,3,4,5,1];try{let t=Vt();t&&(t.stderr||t).level>=2&&(y.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}y.inspectOpts=Object.keys(process.env).filter(t=>/^debug_/i.test(t)).reduce((t,e)=>{let r=e.substring(6).toLowerCase().replace(/_([a-z])/g,(s,o)=>o.toUpperCase()),n=process.env[e];return/^(yes|on|true|enabled)$/i.test(n)?n=!0:/^(no|off|false|disabled)$/i.test(n)?n=!1:n==="null"?n=null:n=Number(n),t[r]=n,t},{});function Wn(){return"colors"in y.inspectOpts?Boolean(y.inspectOpts.colors):Vn.isatty(process.stderr.fd)}function Gn(t){let{namespace:e,useColors:r}=this;if(r){let n=this.color,s="[3"+(n<8?n:"8;5;"+n),o=` ${s};1m${e} `;t[0]=o+t[0].split(`
`).join(`
`+o),t.push(s+"m+"+be.exports.humanize(this.diff)+"")}else t[0]=Xn()+e+" "+t[0]}function Xn(){return y.inspectOpts.hideDate?"":new Date().toISOString()+" "}function Yn(...t){return process.stderr.write(ye.format(...t)+`
`)}function Kn(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function Qn(){return process.env.DEBUG}function Zn(t){t.inspectOpts={};let e=Object.keys(y.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=y.inspectOpts[e[r]]}be.exports=Me()(y);var{formatters:Wt}=be.exports;Wt.o=function(t){return this.inspectOpts.colors=this.useColors,ye.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};Wt.O=function(t){return this.inspectOpts.colors=this.useColors,ye.inspect(t,this.inspectOpts)}});var Xt=p((si,ke)=>{typeof process=="undefined"||process.type==="renderer"||process.browser===!0||process.__nwjs?ke.exports=Ht():ke.exports=Gt()});var Kt=p((ii,Yt)=>{var te;Yt.exports=function(){if(!te){try{te=Xt()("follow-redirects")}catch{}typeof te!="function"&&(te=function(){})}te.apply(null,arguments)}});var Ve=p((oi,Je)=>{var G=require("url"),He=G.URL,es=require("http"),ts=require("https"),Qt=require("stream").Writable,rs=require("assert"),Zt=Kt(),j=["abort","aborted","connect","error","socket","timeout"],ze=Object.create(null);j.forEach(function(t){ze[t]=function(e,r,n){this._redirectable.emit(t,e,r,n)}});var ns=we("ERR_FR_REDIRECTION_FAILURE",""),ss=we("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded"),is=we("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),os=we("ERR_STREAM_WRITE_AFTER_END","write after end");function T(t,e){Qt.call(this),this._sanitizeOptions(t),this._options=t,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],e&&this.on("response",e);var r=this;this._onNativeResponse=function(n){r._processResponse(n)},this._performRequest()}T.prototype=Object.create(Qt.prototype);T.prototype.abort=function(){rr(this._currentRequest),this.emit("abort")};T.prototype.write=function(t,e,r){if(this._ending)throw new os;if(!(typeof t=="string"||typeof t=="object"&&"length"in t))throw new TypeError("data should be a string, Buffer or Uint8Array");if(typeof e=="function"&&(r=e,e=null),t.length===0){r&&r();return}this._requestBodyLength+t.length<=this._options.maxBodyLength?(this._requestBodyLength+=t.length,this._requestBodyBuffers.push({data:t,encoding:e}),this._currentRequest.write(t,e,r)):(this.emit("error",new is),this.abort())};T.prototype.end=function(t,e,r){if(typeof t=="function"?(r=t,t=e=null):typeof e=="function"&&(r=e,e=null),!t)this._ended=this._ending=!0,this._currentRequest.end(null,null,r);else{var n=this,s=this._currentRequest;this.write(t,e,function(){n._ended=!0,s.end(null,null,r)}),this._ending=!0}};T.prototype.setHeader=function(t,e){this._options.headers[t]=e,this._currentRequest.setHeader(t,e)};T.prototype.removeHeader=function(t){delete this._options.headers[t],this._currentRequest.removeHeader(t)};T.prototype.setTimeout=function(t,e){var r=this;function n(a){a.setTimeout(t),a.removeListener("timeout",a.destroy),a.addListener("timeout",a.destroy)}function s(a){r._timeout&&clearTimeout(r._timeout),r._timeout=setTimeout(function(){r.emit("timeout"),o()},t),n(a)}function o(){r._timeout&&(clearTimeout(r._timeout),r._timeout=null),e&&r.removeListener("timeout",e),r.socket||r._currentRequest.removeListener("socket",s)}return e&&this.on("timeout",e),this.socket?s(this.socket):this._currentRequest.once("socket",s),this.on("socket",n),this.once("response",o),this.once("error",o),this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(t){T.prototype[t]=function(e,r){return this._currentRequest[t](e,r)}});["aborted","connection","socket"].forEach(function(t){Object.defineProperty(T.prototype,t,{get:function(){return this._currentRequest[t]}})});T.prototype._sanitizeOptions=function(t){if(t.headers||(t.headers={}),t.host&&(t.hostname||(t.hostname=t.host),delete t.host),!t.pathname&&t.path){var e=t.path.indexOf("?");e<0?t.pathname=t.path:(t.pathname=t.path.substring(0,e),t.search=t.path.substring(e))}};T.prototype._performRequest=function(){var t=this._options.protocol,e=this._options.nativeProtocols[t];if(!e){this.emit("error",new TypeError("Unsupported protocol "+t));return}if(this._options.agents){var r=t.substr(0,t.length-1);this._options.agent=this._options.agents[r]}var n=this._currentRequest=e.request(this._options,this._onNativeResponse);this._currentUrl=G.format(this._options),n._redirectable=this;for(var s=0;s<j.length;s++)n.on(j[s],ze[j[s]]);if(this._isRedirect){var o=0,a=this,u=this._requestBodyBuffers;(function f(h){if(n===a._currentRequest)if(h)a.emit("error",h);else if(o<u.length){var i=u[o++];n.finished||n.write(i.data,i.encoding,f)}else a._ended&&n.end()})()}};T.prototype._processResponse=function(t){var e=t.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:t.headers,statusCode:e});var r=t.headers.location;if(r&&this._options.followRedirects!==!1&&e>=300&&e<400){if(rr(this._currentRequest),t.destroy(),++this._redirectCount>this._options.maxRedirects){this.emit("error",new ss);return}((e===301||e===302)&&this._options.method==="POST"||e===303&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],$e(/^content-/i,this._options.headers));var n=$e(/^host$/i,this._options.headers)||G.parse(this._currentUrl).hostname,s=G.resolve(this._currentUrl,r);Zt("redirecting to",s),this._isRedirect=!0;var o=G.parse(s);if(Object.assign(this._options,o),o.hostname!==n&&$e(/^authorization$/i,this._options.headers),typeof this._options.beforeRedirect=="function"){var a={headers:t.headers};try{this._options.beforeRedirect.call(null,this._options,a)}catch(f){this.emit("error",f);return}this._sanitizeOptions(this._options)}try{this._performRequest()}catch(f){var u=new ns("Redirected request failed: "+f.message);u.cause=f,this.emit("error",u)}}else t.responseUrl=this._currentUrl,t.redirects=this._redirects,this.emit("response",t),this._requestBodyBuffers=[]};function er(t){var e={maxRedirects:21,maxBodyLength:10*1024*1024},r={};return Object.keys(t).forEach(function(n){var s=n+":",o=r[s]=t[n],a=e[n]=Object.create(o);function u(h,i,c){if(typeof h=="string"){var l=h;try{h=tr(new He(l))}catch{h=G.parse(l)}}else He&&h instanceof He?h=tr(h):(c=i,i=h,h={protocol:s});return typeof i=="function"&&(c=i,i=null),i=Object.assign({maxRedirects:e.maxRedirects,maxBodyLength:e.maxBodyLength},h,i),i.nativeProtocols=r,rs.equal(i.protocol,s,"protocol mismatch"),Zt("options",i),new T(i,c)}function f(h,i,c){var l=a.request(h,i,c);return l.end(),l}Object.defineProperties(a,{request:{value:u,configurable:!0,enumerable:!0,writable:!0},get:{value:f,configurable:!0,enumerable:!0,writable:!0}})}),e}function as(){}function tr(t){var e={protocol:t.protocol,hostname:t.hostname.startsWith("[")?t.hostname.slice(1,-1):t.hostname,hash:t.hash,search:t.search,pathname:t.pathname,path:t.pathname+t.search,href:t.href};return t.port!==""&&(e.port=Number(t.port)),e}function $e(t,e){var r;for(var n in e)t.test(n)&&(r=e[n],delete e[n]);return r}function we(t,e){function r(n){Error.captureStackTrace(this,this.constructor),this.message=n||e}return r.prototype=new Error,r.prototype.constructor=r,r.prototype.name="Error ["+t+"]",r.prototype.code=t,r}function rr(t){for(var e=0;e<j.length;e++)t.removeListener(j[e],ze[j[e]]);t.on("error",as),t.abort()}Je.exports=er({http:es,https:ts});Je.exports.wrap=er});var Re=p((ai,nr)=>{nr.exports={version:"0.23.0"}});var cr=p((ui,ur)=>{"use strict";var re=q(),sr=Be(),us=Pe(),cs=fe(),fs=require("http"),ls=require("https"),hs=Ve().http,ds=Ve().https,ir=require("url"),ps=require("zlib"),ms=Re().version,ge=de(),We=he(),vs=z(),Cs=H(),or=/https:?/;function ar(t,e,r){if(t.hostname=e.host,t.host=e.host,t.port=e.port,t.path=r,e.auth){var n=Buffer.from(e.auth.username+":"+e.auth.password,"utf8").toString("base64");t.headers["Proxy-Authorization"]="Basic "+n}t.beforeRedirect=function(o){o.headers.host=o.host,ar(o,e,o.href)}}ur.exports=function(e){return new Promise(function(n,s){var o;function a(){e.cancelToken&&e.cancelToken.unsubscribe(o),e.signal&&e.signal.removeEventListener("abort",o)}var u=function(m){a(),n(m)},f=function(m){a(),s(m)},h=e.data,i=e.headers,c={};if(Object.keys(i).forEach(function(m){c[m.toLowerCase()]=m}),"user-agent"in c?i[c["user-agent"]]||delete i[c["user-agent"]]:i["User-Agent"]="axios/"+ms,h&&!re.isStream(h)){if(!Buffer.isBuffer(h))if(re.isArrayBuffer(h))h=Buffer.from(new Uint8Array(h));else if(re.isString(h))h=Buffer.from(h,"utf-8");else return f(ge("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",e));c["content-length"]||(i["Content-Length"]=h.length)}var l=void 0;if(e.auth){var _=e.auth.username||"",D=e.auth.password||"";l=_+":"+D}var R=us(e.baseURL,e.url),d=ir.parse(R),C=d.protocol||"http:";if(!l&&d.auth){var g=d.auth.split(":"),Q=g[0]||"",L=g[1]||"";l=Q+":"+L}l&&c.authorization&&delete i[c.authorization];var Oe=or.test(C),Z=Oe?e.httpsAgent:e.httpAgent,F={path:cs(d.path,e.params,e.paramsSerializer).replace(/^\?/,""),method:e.method.toUpperCase(),headers:i,agent:Z,agents:{http:e.httpAgent,https:e.httpsAgent},auth:l};e.socketPath?F.socketPath=e.socketPath:(F.hostname=d.hostname,F.port=d.port);var A=e.proxy;if(!A&&A!==!1){var se=C.slice(0,-1)+"_proxy",et=process.env[se]||process.env[se.toUpperCase()];if(et){var ee=ir.parse(et),tt=process.env.no_proxy||process.env.NO_PROXY,rt=!0;if(tt){var Jr=tt.split(",").map(function(m){return m.trim()});rt=!Jr.some(function(m){return m?m==="*"||m[0]==="."&&d.hostname.substr(d.hostname.length-m.length)===m?!0:d.hostname===m:!1})}if(rt&&(A={host:ee.hostname,port:ee.port,protocol:ee.protocol},ee.auth)){var nt=ee.auth.split(":");A.auth={username:nt[0],password:nt[1]}}}}A&&(F.headers.host=d.hostname+(d.port?":"+d.port:""),ar(F,A,C+"//"+d.hostname+(d.port?":"+d.port:"")+F.path));var ie,st=Oe&&(A?or.test(A.protocol):!0);e.transport?ie=e.transport:e.maxRedirects===0?ie=st?ls:fs:(e.maxRedirects&&(F.maxRedirects=e.maxRedirects),ie=st?ds:hs),e.maxBodyLength>-1&&(F.maxBodyLength=e.maxBodyLength),e.insecureHTTPParser&&(F.insecureHTTPParser=e.insecureHTTPParser);var E=ie.request(F,function(m){if(!E.aborted){var U=m,oe=m.req||E;if(m.statusCode!==204&&oe.method!=="HEAD"&&e.decompress!==!1)switch(m.headers["content-encoding"]){case"gzip":case"compress":case"deflate":U=U.pipe(ps.createUnzip()),delete m.headers["content-encoding"];break}var ae={status:m.statusCode,statusText:m.statusMessage,headers:m.headers,config:e,request:oe};if(e.responseType==="stream")ae.data=U,sr(u,f,ae);else{var it=[],ot=0;U.on("data",function(B){it.push(B),ot+=B.length,e.maxContentLength>-1&&ot>e.maxContentLength&&(U.destroy(),f(ge("maxContentLength size of "+e.maxContentLength+" exceeded",e,null,oe)))}),U.on("error",function(B){E.aborted||f(We(B,e,null,oe))}),U.on("end",function(){var B=Buffer.concat(it);e.responseType!=="arraybuffer"&&(B=B.toString(e.responseEncoding),(!e.responseEncoding||e.responseEncoding==="utf8")&&(B=re.stripBOM(B))),ae.data=B,sr(u,f,ae)})}}});if(E.on("error",function(m){E.aborted&&m.code!=="ERR_FR_TOO_MANY_REDIRECTS"||f(We(m,e,null,E))}),e.timeout){var Te=parseInt(e.timeout,10);if(isNaN(Te)){f(ge("error trying to parse `config.timeout` to int",e,"ERR_PARSE_TIMEOUT",E));return}E.setTimeout(Te,function(){E.abort();var m=e.transitional||vs.transitional;f(ge("timeout of "+Te+"ms exceeded",e,m.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",E))})}(e.cancelToken||e.signal)&&(o=function(x){E.aborted||(E.abort(),f(!x||x&&x.type?new Cs("canceled"):x))},e.cancelToken&&e.cancelToken.subscribe(o),e.signal&&(e.signal.aborted?o():e.signal.addEventListener("abort",o))),re.isStream(h)?h.on("error",function(m){f(We(m,e,null,E))}).pipe(E):E.end(h)})}});var z=p((ci,hr)=>{"use strict";var b=q(),fr=wt(),ys=he(),bs={"Content-Type":"application/x-www-form-urlencoded"};function lr(t,e){!b.isUndefined(t)&&b.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}function ws(){var t;return typeof XMLHttpRequest!="undefined"?t=It():typeof process!="undefined"&&Object.prototype.toString.call(process)==="[object process]"&&(t=cr()),t}function Rs(t,e,r){if(b.isString(t))try{return(e||JSON.parse)(t),b.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(t)}var Ee={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:ws(),transformRequest:[function(e,r){return fr(r,"Accept"),fr(r,"Content-Type"),b.isFormData(e)||b.isArrayBuffer(e)||b.isBuffer(e)||b.isStream(e)||b.isFile(e)||b.isBlob(e)?e:b.isArrayBufferView(e)?e.buffer:b.isURLSearchParams(e)?(lr(r,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):b.isObject(e)||r&&r["Content-Type"]==="application/json"?(lr(r,"application/json"),Rs(e)):e}],transformResponse:[function(e){var r=this.transitional||Ee.transitional,n=r&&r.silentJSONParsing,s=r&&r.forcedJSONParsing,o=!n&&this.responseType==="json";if(o||s&&b.isString(e)&&e.length)try{return JSON.parse(e)}catch(a){if(o)throw a.name==="SyntaxError"?ys(a,this,"E_JSON_PARSE"):a}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};b.forEach(["delete","get","head"],function(e){Ee.headers[e]={}});b.forEach(["post","put","patch"],function(e){Ee.headers[e]=b.merge(bs)});hr.exports=Ee});var pr=p((fi,dr)=>{"use strict";var gs=q(),Es=z();dr.exports=function(e,r,n){var s=this||Es;return gs.forEach(n,function(a){e=a.call(s,e,r)}),e}});var Ge=p((li,mr)=>{"use strict";mr.exports=function(e){return!!(e&&e.__CANCEL__)}});var yr=p((hi,Cr)=>{"use strict";var vr=q(),Xe=pr(),qs=Ge(),_s=z(),xs=H();function Ye(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new xs("canceled")}Cr.exports=function(e){Ye(e),e.headers=e.headers||{},e.data=Xe.call(e,e.data,e.headers,e.transformRequest),e.headers=vr.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),vr.forEach(["delete","get","head","post","put","patch","common"],function(s){delete e.headers[s]});var r=e.adapter||_s.adapter;return r(e).then(function(s){return Ye(e),s.data=Xe.call(e,s.data,s.headers,e.transformResponse),s},function(s){return qs(s)||(Ye(e),s&&s.response&&(s.response.data=Xe.call(e,s.response.data,s.response.headers,e.transformResponse))),Promise.reject(s)})}});var Ke=p((di,br)=>{"use strict";var S=q();br.exports=function(e,r){r=r||{};var n={};function s(i,c){return S.isPlainObject(i)&&S.isPlainObject(c)?S.merge(i,c):S.isPlainObject(c)?S.merge({},c):S.isArray(c)?c.slice():c}function o(i){if(S.isUndefined(r[i])){if(!S.isUndefined(e[i]))return s(void 0,e[i])}else return s(e[i],r[i])}function a(i){if(!S.isUndefined(r[i]))return s(void 0,r[i])}function u(i){if(S.isUndefined(r[i])){if(!S.isUndefined(e[i]))return s(void 0,e[i])}else return s(void 0,r[i])}function f(i){if(i in r)return s(e[i],r[i]);if(i in e)return s(void 0,e[i])}var h={url:a,method:a,data:a,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,responseEncoding:u,validateStatus:f};return S.forEach(Object.keys(e).concat(Object.keys(r)),function(c){var l=h[c]||o,_=l(c);S.isUndefined(_)&&l!==f||(n[c]=_)}),n}});var gr=p((pi,Rr)=>{"use strict";var Os=Re().version,Qe={};["object","boolean","number","function","string","symbol"].forEach(function(t,e){Qe[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});var wr={};Qe.transitional=function(e,r,n){function s(o,a){return"[Axios v"+Os+"] Transitional option '"+o+"'"+a+(n?". "+n:"")}return function(o,a,u){if(e===!1)throw new Error(s(a," has been removed"+(r?" in "+r:"")));return r&&!wr[a]&&(wr[a]=!0,console.warn(s(a," has been deprecated since v"+r+" and will be removed in the near future"))),e?e(o,a,u):!0}};function Ts(t,e,r){if(typeof t!="object")throw new TypeError("options must be an object");for(var n=Object.keys(t),s=n.length;s-- >0;){var o=n[s],a=e[o];if(a){var u=t[o],f=u===void 0||a(u,o,t);if(f!==!0)throw new TypeError("option "+o+" must be "+f);continue}if(r!==!0)throw Error("Unknown option "+o)}}Rr.exports={assertOptions:Ts,validators:Qe}});var Tr=p((mi,Or)=>{"use strict";var Er=q(),Ss=fe(),qr=yt(),_r=yr(),qe=Ke(),xr=gr(),X=xr.validators;function ne(t){this.defaults=t,this.interceptors={request:new qr,response:new qr}}ne.prototype.request=function(e){typeof e=="string"?(e=arguments[1]||{},e.url=arguments[0]):e=e||{},e=qe(this.defaults,e),e.method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var r=e.transitional;r!==void 0&&xr.assertOptions(r,{silentJSONParsing:X.transitional(X.boolean),forcedJSONParsing:X.transitional(X.boolean),clarifyTimeoutError:X.transitional(X.boolean)},!1);var n=[],s=!0;this.interceptors.request.forEach(function(l){typeof l.runWhen=="function"&&l.runWhen(e)===!1||(s=s&&l.synchronous,n.unshift(l.fulfilled,l.rejected))});var o=[];this.interceptors.response.forEach(function(l){o.push(l.fulfilled,l.rejected)});var a;if(!s){var u=[_r,void 0];for(Array.prototype.unshift.apply(u,n),u=u.concat(o),a=Promise.resolve(e);u.length;)a=a.then(u.shift(),u.shift());return a}for(var f=e;n.length;){var h=n.shift(),i=n.shift();try{f=h(f)}catch(c){i(c);break}}try{a=_r(f)}catch(c){return Promise.reject(c)}for(;o.length;)a=a.then(o.shift(),o.shift());return a};ne.prototype.getUri=function(e){return e=qe(this.defaults,e),Ss(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")};Er.forEach(["delete","get","head","options"],function(e){ne.prototype[e]=function(r,n){return this.request(qe(n||{},{method:e,url:r,data:(n||{}).data}))}});Er.forEach(["post","put","patch"],function(e){ne.prototype[e]=function(r,n,s){return this.request(qe(s||{},{method:e,url:r,data:n}))}});Or.exports=ne});var Fr=p((vi,Sr)=>{"use strict";var Fs=H();function Y(t){if(typeof t!="function")throw new TypeError("executor must be a function.");var e;this.promise=new Promise(function(s){e=s});var r=this;this.promise.then(function(n){if(!!r._listeners){var s,o=r._listeners.length;for(s=0;s<o;s++)r._listeners[s](n);r._listeners=null}}),this.promise.then=function(n){var s,o=new Promise(function(a){r.subscribe(a),s=a}).then(n);return o.cancel=function(){r.unsubscribe(s)},o},t(function(s){r.reason||(r.reason=new Fs(s),e(r.reason))})}Y.prototype.throwIfRequested=function(){if(this.reason)throw this.reason};Y.prototype.subscribe=function(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]};Y.prototype.unsubscribe=function(e){if(!!this._listeners){var r=this._listeners.indexOf(e);r!==-1&&this._listeners.splice(r,1)}};Y.source=function(){var e,r=new Y(function(s){e=s});return{token:r,cancel:e}};Sr.exports=Y});var Nr=p((Ci,Ar)=>{"use strict";Ar.exports=function(e){return function(n){return e.apply(null,n)}}});var Br=p((yi,Lr)=>{"use strict";Lr.exports=function(e){return typeof e=="object"&&e.isAxiosError===!0}});var Ur=p((bi,Ze)=>{"use strict";var Pr=q(),As=Se(),_e=Tr(),Ns=Ke(),Ls=z();function Dr(t){var e=new _e(t),r=As(_e.prototype.request,e);return Pr.extend(r,_e.prototype,e),Pr.extend(r,e),r.create=function(s){return Dr(Ns(t,s))},r}var P=Dr(Ls);P.Axios=_e;P.Cancel=H();P.CancelToken=Fr();P.isCancel=Ge();P.VERSION=Re().version;P.all=function(e){return Promise.all(e)};P.spread=Nr();P.isAxiosError=Br();Ze.exports=P;Ze.exports.default=P});var Mr=p((wi,Ir)=>{Ir.exports=Ur()});var kr=p((jr,xe)=>{(function(t,e,r){typeof xe!="undefined"&&xe.exports?xe.exports=r():typeof define=="function"&&define.amd?define(r):e[t]=r()})("urljoin",jr,function(){function t(e){var r=[];if(e.length===0)return"";if(typeof e[0]!="string")throw new TypeError("Url must be a string. Received "+e[0]);if(e[0].match(/^[^/:]+:\/*$/)&&e.length>1){var n=e.shift();e[0]=n+e[0]}e[0].match(/^file:\/\/\//)?e[0]=e[0].replace(/^([^/:]+):\/*/,"$1:///"):e[0]=e[0].replace(/^([^/:]+):\/*/,"$1://");for(var s=0;s<e.length;s++){var o=e[s];if(typeof o!="string")throw new TypeError("Url must be a string. Received "+o);o!==""&&(s>0&&(o=o.replace(/^[\/]+/,"")),s<e.length-1?o=o.replace(/[\/]+$/,""):o=o.replace(/[\/]+$/,"/"),r.push(o))}var a=r.join("/");a=a.replace(/\/(\?|&|#[^!])/g,"$1");var u=a.split("?");return a=u.shift()+(u.length>0?"?":"")+u.join("&"),a}return function(){var e;return typeof arguments[0]=="object"?e=arguments[0]:e=[].slice.call(arguments),t(e)}})});var Ds={};Kr(Ds,{default:()=>$r});var v=require("@raycast/api"),K=require("react"),Hr=ft(Mr()),zr=ft(kr());function $r(){let[t,e]=(0,K.useState)(null),[r,n]=(0,K.useState)([]),[s,o]=(0,K.useState)(!1),{push:a}=(0,v.useNavigation)();return(0,K.useEffect)(()=>{async function u(){if(!t){n([]);return}o(!0);let f=await Ps(t);n(f),o(!1)}u()},[t]),_jsx(v.List,{isLoading:s,searchBarPlaceholder:"Type to search MDN...",onSearchTextChange:u=>e(u),throttle:!0},r.map((u,f)=>_jsx(v.List.Item,{id:f.toString(),key:f,title:u.title,icon:"icon.png",subtitle:u.summary,actions:_jsx(v.ActionPanel,null,_jsx(v.ActionPanel.Item,{title:"Show Details",icon:v.Icon.Sidebar,onAction:()=>a(_jsx(Bs,{...u}))}),_jsx(v.OpenInBrowserAction,{url:u.url}),_jsx(v.CopyToClipboardAction,{title:"Copy URL",content:u.url,shortcut:{modifiers:["cmd"],key:"."}}))})))}function Bs(t){let{title:e,summary:r,url:n}=t;return _jsx(v.Detail,{markdown:`# ${e}
## Summary
${r}`,actions:_jsx(v.ActionPanel,null,_jsx(v.OpenInBrowserAction,{url:n}),_jsx(v.CopyToClipboardAction,{title:"Copy URL",content:n}))})}async function Ps(t){try{return(await Hr.default.get("https://developer.mozilla.org/api/v1/search/en-US",{params:{q:t,sort:"best"}})).data.documents.map(r=>({title:r.title,summary:r.summary,url:(0,zr.default)("https://developer.mozilla.org",r.mdn_url)}))}catch(e){return console.error(e),(0,v.showToast)(v.ToastStyle.Failure,`Could not load MDN results. ${e}`),Promise.resolve([])}}module.exports=Qr(Ds);0&&(module.exports={});