@vansite/ts-sharetribe-flex-sdk
Version:
This is a TypeScript SDK for Sharetribe Flex API. It reduces the complexity of the API and provides a more user-friendly interface.
2 lines • 434 kB
JavaScript
/*! For license information please see index.js.LICENSE.txt */
(()=>{var __webpack_modules__={1873(t,o,n){t.exports={parallel:n(8798),serial:n(2081),serialOrdered:n(28)}},4555(t){function clean(t){"function"==typeof this.jobs[t]&&this.jobs[t]()}t.exports=function abort(t){Object.keys(t.jobs).forEach(clean.bind(t)),t.jobs={}}},2313(t,o,n){var i=n(405);t.exports=function async(t){var o=!1;return i((function(){o=!0})),function async_callback(n,s){o?t(n,s):i((function nextTick_callback(){t(n,s)}))}}},405(t){t.exports=function defer(t){var o="function"==typeof setImmediate?setImmediate:"object"==typeof process&&"function"==typeof process.nextTick?process.nextTick:null;o?o(t):setTimeout(t,0)}},8051(t,o,n){var i=n(2313),s=n(4555);t.exports=function iterate(t,o,n,r){var p=n.keyedList?n.keyedList[n.index]:n.index;n.jobs[p]=function runJob(t,o,n,s){var r;r=2==t.length?t(n,i(s)):t(n,o,i(s));return r}(o,p,t[p],(function(t,o){p in n.jobs&&(delete n.jobs[p],t?s(n):n.results[p]=o,r(t,n.results))}))}},9500(t){t.exports=function state(t,o){var n=!Array.isArray(t),i={index:0,keyedList:n||o?Object.keys(t):null,jobs:{},results:n?{}:[],size:n?Object.keys(t).length:t.length};o&&i.keyedList.sort(n?o:function(n,i){return o(t[n],t[i])});return i}},6276(t,o,n){var i=n(4555),s=n(2313);t.exports=function terminator(t){if(!Object.keys(this.jobs).length)return;this.index=this.size,i(this),s(t)(null,this.results)}},8798(t,o,n){var i=n(8051),s=n(9500),r=n(6276);t.exports=function parallel(t,o,n){var p=s(t);for(;p.index<(p.keyedList||t).length;)i(t,o,p,(function(t,o){t?n(t,o):0!==Object.keys(p.jobs).length||n(null,p.results)})),p.index++;return r.bind(p,n)}},2081(t,o,n){var i=n(28);t.exports=function serial(t,o,n){return i(t,o,null,n)}},28(t,o,n){var i=n(8051),s=n(9500),r=n(6276);function ascending(t,o){return t<o?-1:t>o?1:0}t.exports=function serialOrdered(t,o,n,p){var l=s(t,n);return i(t,o,l,(function iteratorHandler(n,s){n?p(n,s):(l.index++,l.index<(l.keyedList||t).length?i(t,o,l,iteratorHandler):p(null,l.results))})),r.bind(l,p)},t.exports.ascending=ascending,t.exports.descending=function descending(t,o){return-1*ascending(t,o)}},3144(t,o,n){"use strict";var i=n(6743),s=n(1002),r=n(76),p=n(7119);t.exports=p||i.call(r,s)},1002(t){"use strict";t.exports=Function.prototype.apply},76(t){"use strict";t.exports=Function.prototype.call},3126(t,o,n){"use strict";var i=n(6743),s=n(9675),r=n(76),p=n(3144);t.exports=function callBindBasic(t){if(t.length<1||"function"!=typeof t[0])throw new s("a function is required");return p(i,r,t)}},7119(t){"use strict";t.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},801(t,o,n){var i=n(9023),s=n(2203).Stream,r=n(8069);function CombinedStream(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2097152,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null,this._insideLoop=!1,this._pendingNext=!1}t.exports=CombinedStream,i.inherits(CombinedStream,s),CombinedStream.create=function(t){var o=new this;for(var n in t=t||{})o[n]=t[n];return o},CombinedStream.isStreamLike=function(t){return"function"!=typeof t&&"string"!=typeof t&&"boolean"!=typeof t&&"number"!=typeof t&&!Buffer.isBuffer(t)},CombinedStream.prototype.append=function(t){if(CombinedStream.isStreamLike(t)){if(!(t instanceof r)){var o=r.create(t,{maxDataSize:1/0,pauseStream:this.pauseStreams});t.on("data",this._checkDataSize.bind(this)),t=o}this._handleErrors(t),this.pauseStreams&&t.pause()}return this._streams.push(t),this},CombinedStream.prototype.pipe=function(t,o){return s.prototype.pipe.call(this,t,o),this.resume(),t},CombinedStream.prototype._getNext=function(){if(this._currentStream=null,this._insideLoop)this._pendingNext=!0;else{this._insideLoop=!0;try{do{this._pendingNext=!1,this._realGetNext()}while(this._pendingNext)}finally{this._insideLoop=!1}}},CombinedStream.prototype._realGetNext=function(){var t=this._streams.shift();void 0!==t?"function"==typeof t?t(function(t){CombinedStream.isStreamLike(t)&&(t.on("data",this._checkDataSize.bind(this)),this._handleErrors(t)),this._pipeNext(t)}.bind(this)):this._pipeNext(t):this.end()},CombinedStream.prototype._pipeNext=function(t){if(this._currentStream=t,CombinedStream.isStreamLike(t))return t.on("end",this._getNext.bind(this)),void t.pipe(this,{end:!1});var o=t;this.write(o),this._getNext()},CombinedStream.prototype._handleErrors=function(t){var o=this;t.on("error",(function(t){o._emitError(t)}))},CombinedStream.prototype.write=function(t){this.emit("data",t)},CombinedStream.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&"function"==typeof this._currentStream.pause&&this._currentStream.pause(),this.emit("pause"))},CombinedStream.prototype.resume=function(){this._released||(this._released=!0,this.writable=!0,this._getNext()),this.pauseStreams&&this._currentStream&&"function"==typeof this._currentStream.resume&&this._currentStream.resume(),this.emit("resume")},CombinedStream.prototype.end=function(){this._reset(),this.emit("end")},CombinedStream.prototype.destroy=function(){this._reset(),this.emit("close")},CombinedStream.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null},CombinedStream.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var t="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(t))}},CombinedStream.prototype._updateDataSize=function(){this.dataSize=0;var t=this;this._streams.forEach((function(o){o.dataSize&&(t.dataSize+=o.dataSize)})),this._currentStream&&this._currentStream.dataSize&&(this.dataSize+=this._currentStream.dataSize)},CombinedStream.prototype._emitError=function(t){this._reset(),this.emit("error",t)}},7833(t,o,n){o.formatArgs=function formatArgs(o){if(o[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+o[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;o.splice(1,0,n,"color: inherit");let i=0,s=0;o[0].replace(/%[a-zA-Z%]/g,(t=>{"%%"!==t&&(i++,"%c"===t&&(s=i))})),o.splice(s,0,n)},o.save=function save(t){try{t?o.storage.setItem("debug",t):o.storage.removeItem("debug")}catch(t){}},o.load=function load(){let t;try{t=o.storage.getItem("debug")}catch(t){}!t&&"undefined"!=typeof process&&"env"in process&&(t=process.env.DEBUG);return t},o.useColors=function useColors(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},o.storage=function localstorage(){try{return localStorage}catch(t){}}(),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"],o.log=console.debug||console.log||(()=>{}),t.exports=n(736)(o);const{formatters:i}=t.exports;i.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},736(t,o,n){t.exports=function setup(t){function createDebug(t){let o,n,i,s=null;function debug(...t){if(!debug.enabled)return;const n=debug,i=Number(new Date),s=i-(o||i);n.diff=s,n.prev=o,n.curr=i,o=i,t[0]=createDebug.coerce(t[0]),"string"!=typeof t[0]&&t.unshift("%O");let r=0;t[0]=t[0].replace(/%([a-zA-Z%])/g,((o,i)=>{if("%%"===o)return"%";r++;const s=createDebug.formatters[i];if("function"==typeof s){const i=t[r];o=s.call(n,i),t.splice(r,1),r--}return o})),createDebug.formatArgs.call(n,t);(n.log||createDebug.log).apply(n,t)}return debug.namespace=t,debug.useColors=createDebug.useColors(),debug.color=createDebug.selectColor(t),debug.extend=extend,debug.destroy=createDebug.destroy,Object.defineProperty(debug,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==s?s:(n!==createDebug.namespaces&&(n=createDebug.namespaces,i=createDebug.enabled(t)),i),set:t=>{s=t}}),"function"==typeof createDebug.init&&createDebug.init(debug),debug}function extend(t,o){const n=createDebug(this.namespace+(void 0===o?":":o)+t);return n.log=this.log,n}function toNamespace(t){return t.toString().substring(2,t.toString().length-2).replace(/\.\*\?$/,"*")}return createDebug.debug=createDebug,createDebug.default=createDebug,createDebug.coerce=function coerce(t){if(t instanceof Error)return t.stack||t.message;return t},createDebug.disable=function disable(){const t=[...createDebug.names.map(toNamespace),...createDebug.skips.map(toNamespace).map((t=>"-"+t))].join(",");return createDebug.enable(""),t},createDebug.enable=function enable(t){let o;createDebug.save(t),createDebug.namespaces=t,createDebug.names=[],createDebug.skips=[];const n=("string"==typeof t?t:"").split(/[\s,]+/),i=n.length;for(o=0;o<i;o++)n[o]&&("-"===(t=n[o].replace(/\*/g,".*?"))[0]?createDebug.skips.push(new RegExp("^"+t.slice(1)+"$")):createDebug.names.push(new RegExp("^"+t+"$")))},createDebug.enabled=function enabled(t){if("*"===t[t.length-1])return!0;let o,n;for(o=0,n=createDebug.skips.length;o<n;o++)if(createDebug.skips[o].test(t))return!1;for(o=0,n=createDebug.names.length;o<n;o++)if(createDebug.names[o].test(t))return!0;return!1},createDebug.humanize=n(6585),createDebug.destroy=function destroy(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(t).forEach((o=>{createDebug[o]=t[o]})),createDebug.names=[],createDebug.skips=[],createDebug.formatters={},createDebug.selectColor=function selectColor(t){let o=0;for(let n=0;n<t.length;n++)o=(o<<5)-o+t.charCodeAt(n),o|=0;return createDebug.colors[Math.abs(o)%createDebug.colors.length]},createDebug.enable(createDebug.load()),createDebug}},5753(t,o,n){"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?t.exports=n(7833):t.exports=n(6033)},6033(t,o,n){const i=n(2018),s=n(9023);o.init=function init(t){t.inspectOpts={};const n=Object.keys(o.inspectOpts);for(let i=0;i<n.length;i++)t.inspectOpts[n[i]]=o.inspectOpts[n[i]]},o.log=function log(...t){return process.stderr.write(s.format(...t)+"\n")},o.formatArgs=function formatArgs(n){const{namespace:i,useColors:s}=this;if(s){const o=this.color,s="[3"+(o<8?o:"8;5;"+o),r=` ${s};1m${i} [0m`;n[0]=r+n[0].split("\n").join("\n"+r),n.push(s+"m+"+t.exports.humanize(this.diff)+"[0m")}else n[0]=function getDate(){if(o.inspectOpts.hideDate)return"";return(new Date).toISOString()+" "}()+i+" "+n[0]},o.save=function save(t){t?process.env.DEBUG=t:delete process.env.DEBUG},o.load=function load(){return process.env.DEBUG},o.useColors=function useColors(){return"colors"in o.inspectOpts?Boolean(o.inspectOpts.colors):i.isatty(process.stderr.fd)},o.destroy=s.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),o.colors=[6,2,3,4,5,1];try{const t=n(7687);t&&(t.stderr||t).level>=2&&(o.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(t){}o.inspectOpts=Object.keys(process.env).filter((t=>/^debug_/i.test(t))).reduce(((t,o)=>{const n=o.substring(6).toLowerCase().replace(/_([a-z])/g,((t,o)=>o.toUpperCase()));let i=process.env[o];return i=!!/^(yes|on|true|enabled)$/i.test(i)||!/^(no|off|false|disabled)$/i.test(i)&&("null"===i?null:Number(i)),t[n]=i,t}),{}),t.exports=n(736)(o);const{formatters:r}=t.exports;r.o=function(t){return this.inspectOpts.colors=this.useColors,s.inspect(t,this.inspectOpts).split("\n").map((t=>t.trim())).join(" ")},r.O=function(t){return this.inspectOpts.colors=this.useColors,s.inspect(t,this.inspectOpts)}},8069(t,o,n){var i=n(2203).Stream,s=n(9023);function DelayedStream(){this.source=null,this.dataSize=0,this.maxDataSize=1048576,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}t.exports=DelayedStream,s.inherits(DelayedStream,i),DelayedStream.create=function(t,o){var n=new this;for(var i in o=o||{})n[i]=o[i];n.source=t;var s=t.emit;return t.emit=function(){return n._handleEmit(arguments),s.apply(t,arguments)},t.on("error",(function(){})),n.pauseStream&&t.pause(),n},Object.defineProperty(DelayedStream.prototype,"readable",{configurable:!0,enumerable:!0,get:function(){return this.source.readable}}),DelayedStream.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)},DelayedStream.prototype.resume=function(){this._released||this.release(),this.source.resume()},DelayedStream.prototype.pause=function(){this.source.pause()},DelayedStream.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(t){this.emit.apply(this,t)}.bind(this)),this._bufferedEvents=[]},DelayedStream.prototype.pipe=function(){var t=i.prototype.pipe.apply(this,arguments);return this.resume(),t},DelayedStream.prototype._handleEmit=function(t){this._released?this.emit.apply(this,t):("data"===t[0]&&(this.dataSize+=t[1].length,this._checkIfMaxDataSizeExceeded()),this._bufferedEvents.push(t))},DelayedStream.prototype._checkIfMaxDataSizeExceeded=function(){if(!(this._maxDataSizeExceeded||this.dataSize<=this.maxDataSize)){this._maxDataSizeExceeded=!0;var t="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",new Error(t))}}},7176(t,o,n){"use strict";var i,s=n(3126),r=n(5795);try{i=[].__proto__===Array.prototype}catch(t){if(!t||"object"!=typeof t||!("code"in t)||"ERR_PROTO_ACCESS"!==t.code)throw t}var p=!!i&&r&&r(Object.prototype,"__proto__"),l=Object,u=l.getPrototypeOf;t.exports=p&&"function"==typeof p.get?s([p.get]):"function"==typeof u&&function getDunder(t){return u(null==t?t:l(t))}},655(t){"use strict";var o=Object.defineProperty||!1;if(o)try{o({},"a",{value:1})}catch(t){o=!1}t.exports=o},1237(t){"use strict";t.exports=EvalError},9383(t){"use strict";t.exports=Error},9290(t){"use strict";t.exports=RangeError},9538(t){"use strict";t.exports=ReferenceError},8068(t){"use strict";t.exports=SyntaxError},9675(t){"use strict";t.exports=TypeError},5345(t){"use strict";t.exports=URIError},9612(t){"use strict";t.exports=Object},9605(t,o,n){"use strict";var i=n(453)("%Object.defineProperty%",!0),s=n(9092)(),r=n(9957),p=n(9675),l=s?Symbol.toStringTag:null;t.exports=function setToStringTag(t,o){var n=arguments.length>2&&!!arguments[2]&&arguments[2].force,s=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(void 0!==n&&"boolean"!=typeof n||void 0!==s&&"boolean"!=typeof s)throw new p("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");!l||!n&&r(t,l)||(i?i(t,l,{configurable:!s,enumerable:!1,value:o,writable:!1}):t[l]=o)}},7507(t,o,n){var i;t.exports=function(){if(!i){try{i=n(5753)("follow-redirects")}catch(t){}"function"!=typeof i&&(i=function(){})}i.apply(null,arguments)}},3164(t,o,n){var i=n(7016),s=i.URL,r=n(9856),p=n(2057),l=n(2203).Writable,u=n(2613),m=n(7507);!function detectUnsupportedEnvironment(){var t="undefined"!=typeof process,o="undefined"!=typeof window&&"undefined"!=typeof document,n=isFunction(Error.captureStackTrace);t||!o&&n||console.warn("The follow-redirects package should be excluded from browser builds.")}();var g=!1;try{u(new s(""))}catch(t){g="ERR_INVALID_URL"===t.code}var h=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],x=["abort","aborted","connect","error","socket","timeout"],y=Object.create(null);x.forEach((function(t){y[t]=function(o,n,i){this._redirectable.emit(t,o,n,i)}}));var v=createErrorType("ERR_INVALID_URL","Invalid URL",TypeError),_=createErrorType("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),A=createErrorType("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",_),w=createErrorType("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),E=createErrorType("ERR_STREAM_WRITE_AFTER_END","write after end"),S=l.prototype.destroy||noop;function RedirectableRequest(t,o){l.call(this),this._sanitizeOptions(t),this._options=t,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],o&&this.on("response",o);var n=this;this._onNativeResponse=function(t){try{n._processResponse(t)}catch(t){n.emit("error",t instanceof _?t:new _({cause:t}))}},this._performRequest()}function wrap(t){var o={maxRedirects:21,maxBodyLength:10485760},n={};return Object.keys(t).forEach((function(i){var r=i+":",p=n[r]=t[i],l=o[i]=Object.create(p);Object.defineProperties(l,{request:{value:function request(t,i,p){return!function isURL(t){return s&&t instanceof s}(t)?isString(t)?t=spreadUrlObject(parseUrl(t)):(p=i,i=validateUrl(t),t={protocol:r}):t=spreadUrlObject(t),isFunction(i)&&(p=i,i=null),(i=Object.assign({maxRedirects:o.maxRedirects,maxBodyLength:o.maxBodyLength},t,i)).nativeProtocols=n,isString(i.host)||isString(i.hostname)||(i.hostname="::1"),u.equal(i.protocol,r,"protocol mismatch"),m("options",i),new RedirectableRequest(i,p)},configurable:!0,enumerable:!0,writable:!0},get:{value:function get(t,o,n){var i=l.request(t,o,n);return i.end(),i},configurable:!0,enumerable:!0,writable:!0}})})),o}function noop(){}function parseUrl(t){var o;if(g)o=new s(t);else if(!isString((o=validateUrl(i.parse(t))).protocol))throw new v({input:t});return o}function validateUrl(t){if(/^\[/.test(t.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(t.hostname))throw new v({input:t.href||t});if(/^\[/.test(t.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(t.host))throw new v({input:t.href||t});return t}function spreadUrlObject(t,o){var n=o||{};for(var i of h)n[i]=t[i];return n.hostname.startsWith("[")&&(n.hostname=n.hostname.slice(1,-1)),""!==n.port&&(n.port=Number(n.port)),n.path=n.search?n.pathname+n.search:n.pathname,n}function removeMatchingHeaders(t,o){var n;for(var i in o)t.test(i)&&(n=o[i],delete o[i]);return null==n?void 0:String(n).trim()}function createErrorType(t,o,n){function CustomError(n){isFunction(Error.captureStackTrace)&&Error.captureStackTrace(this,this.constructor),Object.assign(this,n||{}),this.code=t,this.message=this.cause?o+": "+this.cause.message:o}return CustomError.prototype=new(n||Error),Object.defineProperties(CustomError.prototype,{constructor:{value:CustomError,enumerable:!1},name:{value:"Error ["+t+"]",enumerable:!1}}),CustomError}function destroyRequest(t,o){for(var n of x)t.removeListener(n,y[n]);t.on("error",noop),t.destroy(o)}function isString(t){return"string"==typeof t||t instanceof String}function isFunction(t){return"function"==typeof t}RedirectableRequest.prototype=Object.create(l.prototype),RedirectableRequest.prototype.abort=function(){destroyRequest(this._currentRequest),this._currentRequest.abort(),this.emit("abort")},RedirectableRequest.prototype.destroy=function(t){return destroyRequest(this._currentRequest,t),S.call(this,t),this},RedirectableRequest.prototype.write=function(t,o,n){if(this._ending)throw new E;if(!isString(t)&&!function isBuffer(t){return"object"==typeof t&&"length"in t}(t))throw new TypeError("data should be a string, Buffer or Uint8Array");isFunction(o)&&(n=o,o=null),0!==t.length?this._requestBodyLength+t.length<=this._options.maxBodyLength?(this._requestBodyLength+=t.length,this._requestBodyBuffers.push({data:t,encoding:o}),this._currentRequest.write(t,o,n)):(this.emit("error",new w),this.abort()):n&&n()},RedirectableRequest.prototype.end=function(t,o,n){if(isFunction(t)?(n=t,t=o=null):isFunction(o)&&(n=o,o=null),t){var i=this,s=this._currentRequest;this.write(t,o,(function(){i._ended=!0,s.end(null,null,n)})),this._ending=!0}else this._ended=this._ending=!0,this._currentRequest.end(null,null,n)},RedirectableRequest.prototype.setHeader=function(t,o){this._options.headers[t]=o,this._currentRequest.setHeader(t,o)},RedirectableRequest.prototype.removeHeader=function(t){delete this._options.headers[t],this._currentRequest.removeHeader(t)},RedirectableRequest.prototype.setTimeout=function(t,o){var n=this;function destroyOnTimeout(o){o.setTimeout(t),o.removeListener("timeout",o.destroy),o.addListener("timeout",o.destroy)}function startTimer(o){n._timeout&&clearTimeout(n._timeout),n._timeout=setTimeout((function(){n.emit("timeout"),clearTimer()}),t),destroyOnTimeout(o)}function clearTimer(){n._timeout&&(clearTimeout(n._timeout),n._timeout=null),n.removeListener("abort",clearTimer),n.removeListener("error",clearTimer),n.removeListener("response",clearTimer),n.removeListener("close",clearTimer),o&&n.removeListener("timeout",o),n.socket||n._currentRequest.removeListener("socket",startTimer)}return o&&this.on("timeout",o),this.socket?startTimer(this.socket):this._currentRequest.once("socket",startTimer),this.on("socket",destroyOnTimeout),this.on("abort",clearTimer),this.on("error",clearTimer),this.on("response",clearTimer),this.on("close",clearTimer),this},["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach((function(t){RedirectableRequest.prototype[t]=function(o,n){return this._currentRequest[t](o,n)}})),["aborted","connection","socket"].forEach((function(t){Object.defineProperty(RedirectableRequest.prototype,t,{get:function(){return this._currentRequest[t]}})})),RedirectableRequest.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 o=t.path.indexOf("?");o<0?t.pathname=t.path:(t.pathname=t.path.substring(0,o),t.search=t.path.substring(o))}},RedirectableRequest.prototype._performRequest=function(){var t=this._options.protocol,o=this._options.nativeProtocols[t];if(!o)throw new TypeError("Unsupported protocol "+t);if(this._options.agents){var n=t.slice(0,-1);this._options.agent=this._options.agents[n]}var s=this._currentRequest=o.request(this._options,this._onNativeResponse);for(var r of(s._redirectable=this,x))s.on(r,y[r]);if(this._currentUrl=/^\//.test(this._options.path)?i.format(this._options):this._options.path,this._isRedirect){var p=0,l=this,u=this._requestBodyBuffers;!function writeNext(t){if(s===l._currentRequest)if(t)l.emit("error",t);else if(p<u.length){var o=u[p++];s.finished||s.write(o.data,o.encoding,writeNext)}else l._ended&&s.end()}()}},RedirectableRequest.prototype._processResponse=function(t){var o=t.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:t.headers,statusCode:o});var n,r=t.headers.location;if(!r||!1===this._options.followRedirects||o<300||o>=400)return t.responseUrl=this._currentUrl,t.redirects=this._redirects,this.emit("response",t),void(this._requestBodyBuffers=[]);if(destroyRequest(this._currentRequest),t.destroy(),++this._redirectCount>this._options.maxRedirects)throw new A;var p=this._options.beforeRedirect;p&&(n=Object.assign({Host:t.req.getHeader("host")},this._options.headers));var l=this._options.method;((301===o||302===o)&&"POST"===this._options.method||303===o&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],removeMatchingHeaders(/^content-/i,this._options.headers));var h=removeMatchingHeaders(/^host$/i,this._options.headers),x=parseUrl(this._currentUrl),y=h||x.host,v=/^\w+:/.test(r)?this._currentUrl:i.format(Object.assign(x,{host:y})),_=function resolveUrl(t,o){return g?new s(t,o):parseUrl(i.resolve(o,t))}(r,v);if(m("redirecting to",_.href),this._isRedirect=!0,spreadUrlObject(_,this._options),(_.protocol!==x.protocol&&"https:"!==_.protocol||_.host!==y&&!function isSubdomain(t,o){u(isString(t)&&isString(o));var n=t.length-o.length-1;return n>0&&"."===t[n]&&t.endsWith(o)}(_.host,y))&&removeMatchingHeaders(/^(?:(?:proxy-)?authorization|cookie)$/i,this._options.headers),isFunction(p)){var w={headers:t.headers,statusCode:o},E={url:v,method:l,headers:n};p(this._options,w,E),this._sanitizeOptions(this._options)}this._performRequest()},t.exports=wrap({http:r,https:p}),t.exports.wrap=wrap},737(t,o,n){"use strict";var i=n(801),s=n(9023),r=n(6928),p=n(9856),l=n(2057),u=n(7016).parse,m=n(9896),g=n(2203).Stream,h=n(6982),x=n(6049),y=n(1873),v=n(9605),_=n(9957),A=n(1362);function FormData(t){if(!(this instanceof FormData))return new FormData(t);for(var o in this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],i.call(this),t=t||{})this[o]=t[o]}s.inherits(FormData,i),FormData.LINE_BREAK="\r\n",FormData.DEFAULT_CONTENT_TYPE="application/octet-stream",FormData.prototype.append=function(t,o,n){"string"==typeof(n=n||{})&&(n={filename:n});var s=i.prototype.append.bind(this);if("number"!=typeof o&&null!=o||(o=String(o)),Array.isArray(o))this._error(new Error("Arrays are not supported."));else{var r=this._multiPartHeader(t,o,n),p=this._multiPartFooter();s(r),s(o),s(p),this._trackLength(r,o,n)}},FormData.prototype._trackLength=function(t,o,n){var i=0;null!=n.knownLength?i+=Number(n.knownLength):Buffer.isBuffer(o)?i=o.length:"string"==typeof o&&(i=Buffer.byteLength(o)),this._valueLength+=i,this._overheadLength+=Buffer.byteLength(t)+FormData.LINE_BREAK.length,o&&(o.path||o.readable&&_(o,"httpVersion")||o instanceof g)&&(n.knownLength||this._valuesToMeasure.push(o))},FormData.prototype._lengthRetriever=function(t,o){_(t,"fd")?null!=t.end&&t.end!=1/0&&null!=t.start?o(null,t.end+1-(t.start?t.start:0)):m.stat(t.path,(function(n,i){if(n)o(n);else{var s=i.size-(t.start?t.start:0);o(null,s)}})):_(t,"httpVersion")?o(null,Number(t.headers["content-length"])):_(t,"httpModule")?(t.on("response",(function(n){t.pause(),o(null,Number(n.headers["content-length"]))})),t.resume()):o("Unknown stream")},FormData.prototype._multiPartHeader=function(t,o,n){if("string"==typeof n.header)return n.header;var i,s=this._getContentDisposition(o,n),r=this._getContentType(o,n),p="",l={"Content-Disposition":["form-data",'name="'+t+'"'].concat(s||[]),"Content-Type":[].concat(r||[])};for(var u in"object"==typeof n.header&&A(l,n.header),l)if(_(l,u)){if(null==(i=l[u]))continue;Array.isArray(i)||(i=[i]),i.length&&(p+=u+": "+i.join("; ")+FormData.LINE_BREAK)}return"--"+this.getBoundary()+FormData.LINE_BREAK+p+FormData.LINE_BREAK},FormData.prototype._getContentDisposition=function(t,o){var n;if("string"==typeof o.filepath?n=r.normalize(o.filepath).replace(/\\/g,"/"):o.filename||t&&(t.name||t.path)?n=r.basename(o.filename||t&&(t.name||t.path)):t&&t.readable&&_(t,"httpVersion")&&(n=r.basename(t.client._httpMessage.path||"")),n)return'filename="'+n+'"'},FormData.prototype._getContentType=function(t,o){var n=o.contentType;return!n&&t&&t.name&&(n=x.lookup(t.name)),!n&&t&&t.path&&(n=x.lookup(t.path)),!n&&t&&t.readable&&_(t,"httpVersion")&&(n=t.headers["content-type"]),n||!o.filepath&&!o.filename||(n=x.lookup(o.filepath||o.filename)),!n&&t&&"object"==typeof t&&(n=FormData.DEFAULT_CONTENT_TYPE),n},FormData.prototype._multiPartFooter=function(){return function(t){var o=FormData.LINE_BREAK;0===this._streams.length&&(o+=this._lastBoundary()),t(o)}.bind(this)},FormData.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+FormData.LINE_BREAK},FormData.prototype.getHeaders=function(t){var o,n={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(o in t)_(t,o)&&(n[o.toLowerCase()]=t[o]);return n},FormData.prototype.setBoundary=function(t){if("string"!=typeof t)throw new TypeError("FormData boundary must be a string");this._boundary=t},FormData.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary},FormData.prototype.getBuffer=function(){for(var t=new Buffer.alloc(0),o=this.getBoundary(),n=0,i=this._streams.length;n<i;n++)"function"!=typeof this._streams[n]&&(t=Buffer.isBuffer(this._streams[n])?Buffer.concat([t,this._streams[n]]):Buffer.concat([t,Buffer.from(this._streams[n])]),"string"==typeof this._streams[n]&&this._streams[n].substring(2,o.length+2)===o||(t=Buffer.concat([t,Buffer.from(FormData.LINE_BREAK)])));return Buffer.concat([t,Buffer.from(this._lastBoundary())])},FormData.prototype._generateBoundary=function(){this._boundary="--------------------------"+h.randomBytes(12).toString("hex")},FormData.prototype.getLengthSync=function(){var t=this._overheadLength+this._valueLength;return this._streams.length&&(t+=this._lastBoundary().length),this.hasKnownLength()||this._error(new Error("Cannot calculate proper length in synchronous way.")),t},FormData.prototype.hasKnownLength=function(){var t=!0;return this._valuesToMeasure.length&&(t=!1),t},FormData.prototype.getLength=function(t){var o=this._overheadLength+this._valueLength;this._streams.length&&(o+=this._lastBoundary().length),this._valuesToMeasure.length?y.parallel(this._valuesToMeasure,this._lengthRetriever,(function(n,i){n?t(n):(i.forEach((function(t){o+=t})),t(null,o))})):process.nextTick(t.bind(this,null,o))},FormData.prototype.submit=function(t,o){var n,i,s={method:"post"};return"string"==typeof t?(t=u(t),i=A({port:t.port,path:t.pathname,host:t.hostname,protocol:t.protocol},s)):(i=A(t,s)).port||(i.port="https:"===i.protocol?443:80),i.headers=this.getHeaders(t.headers),n="https:"===i.protocol?l.request(i):p.request(i),this.getLength(function(t,i){if(t&&"Unknown stream"!==t)this._error(t);else if(i&&n.setHeader("Content-Length",i),this.pipe(n),o){var s,callback=function(t,i){return n.removeListener("error",callback),n.removeListener("response",s),o.call(this,t,i)};s=callback.bind(this,null),n.on("error",callback),n.on("response",s)}}.bind(this)),n},FormData.prototype._error=function(t){this.error||(this.error=t,this.pause(),this.emit("error",t))},FormData.prototype.toString=function(){return"[object FormData]"},v(FormData.prototype,"FormData"),t.exports=FormData},1362(t){"use strict";t.exports=function(t,o){return Object.keys(o).forEach((function(n){t[n]=t[n]||o[n]})),t}},9353(t){"use strict";var o=Object.prototype.toString,n=Math.max,i=function concatty(t,o){for(var n=[],i=0;i<t.length;i+=1)n[i]=t[i];for(var s=0;s<o.length;s+=1)n[s+t.length]=o[s];return n};t.exports=function bind(t){var s=this;if("function"!=typeof s||"[object Function]"!==o.apply(s))throw new TypeError("Function.prototype.bind called on incompatible "+s);for(var r,p=function slicy(t,o){for(var n=[],i=o||0,s=0;i<t.length;i+=1,s+=1)n[s]=t[i];return n}(arguments,1),l=n(0,s.length-p.length),u=[],m=0;m<l;m++)u[m]="$"+m;if(r=Function("binder","return function ("+function(t,o){for(var n="",i=0;i<t.length;i+=1)n+=t[i],i+1<t.length&&(n+=o);return n}(u,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof r){var o=s.apply(this,i(p,arguments));return Object(o)===o?o:this}return s.apply(t,i(p,arguments))})),s.prototype){var g=function Empty(){};g.prototype=s.prototype,r.prototype=new g,g.prototype=null}return r}},6743(t,o,n){"use strict";var i=n(9353);t.exports=Function.prototype.bind||i},453(t,o,n){"use strict";var i,s=n(9612),r=n(9383),p=n(1237),l=n(9290),u=n(9538),m=n(8068),g=n(9675),h=n(5345),x=n(1514),y=n(8968),v=n(6188),_=n(8002),A=n(5880),w=n(414),E=n(3093),S=Function,getEvalledConstructor=function(t){try{return S('"use strict"; return ('+t+").constructor;")()}catch(t){}},T=n(5795),k=n(655),throwTypeError=function(){throw new g},C=T?function(){try{return throwTypeError}catch(t){try{return T(arguments,"callee").get}catch(t){return throwTypeError}}}():throwTypeError,R=n(4039)(),L=n(3628),O=n(1064),$=n(8648),D=n(1002),j=n(76),I={},M="undefined"!=typeof Uint8Array&&L?L(Uint8Array):i,U={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?i:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?i:ArrayBuffer,"%ArrayIteratorPrototype%":R&&L?L([][Symbol.iterator]()):i,"%AsyncFromSyncIteratorPrototype%":i,"%AsyncFunction%":I,"%AsyncGenerator%":I,"%AsyncGeneratorFunction%":I,"%AsyncIteratorPrototype%":I,"%Atomics%":"undefined"==typeof Atomics?i:Atomics,"%BigInt%":"undefined"==typeof BigInt?i:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?i:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?i:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?i:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":r,"%eval%":eval,"%EvalError%":p,"%Float16Array%":"undefined"==typeof Float16Array?i:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?i:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?i:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?i:FinalizationRegistry,"%Function%":S,"%GeneratorFunction%":I,"%Int8Array%":"undefined"==typeof Int8Array?i:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?i:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?i:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":R&&L?L(L([][Symbol.iterator]())):i,"%JSON%":"object"==typeof JSON?JSON:i,"%Map%":"undefined"==typeof Map?i:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&R&&L?L((new Map)[Symbol.iterator]()):i,"%Math%":Math,"%Number%":Number,"%Object%":s,"%Object.getOwnPropertyDescriptor%":T,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?i:Promise,"%Proxy%":"undefined"==typeof Proxy?i:Proxy,"%RangeError%":l,"%ReferenceError%":u,"%Reflect%":"undefined"==typeof Reflect?i:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?i:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&R&&L?L((new Set)[Symbol.iterator]()):i,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?i:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":R&&L?L(""[Symbol.iterator]()):i,"%Symbol%":R?Symbol:i,"%SyntaxError%":m,"%ThrowTypeError%":C,"%TypedArray%":M,"%TypeError%":g,"%Uint8Array%":"undefined"==typeof Uint8Array?i:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?i:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?i:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?i:Uint32Array,"%URIError%":h,"%WeakMap%":"undefined"==typeof WeakMap?i:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?i:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?i:WeakSet,"%Function.prototype.call%":j,"%Function.prototype.apply%":D,"%Object.defineProperty%":k,"%Object.getPrototypeOf%":O,"%Math.abs%":x,"%Math.floor%":y,"%Math.max%":v,"%Math.min%":_,"%Math.pow%":A,"%Math.round%":w,"%Math.sign%":E,"%Reflect.getPrototypeOf%":$};if(L)try{null.error}catch(t){var P=L(L(t));U["%Error.prototype%"]=P}var q=function doEval(t){var o;if("%AsyncFunction%"===t)o=getEvalledConstructor("async function () {}");else if("%GeneratorFunction%"===t)o=getEvalledConstructor("function* () {}");else if("%AsyncGeneratorFunction%"===t)o=getEvalledConstructor("async function* () {}");else if("%AsyncGenerator%"===t){var n=doEval("%AsyncGeneratorFunction%");n&&(o=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=doEval("%AsyncGenerator%");i&&L&&(o=L(i.prototype))}return U[t]=o,o},N={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},B=n(6743),F=n(9957),H=B.call(j,Array.prototype.concat),z=B.call(D,Array.prototype.splice),V=B.call(j,String.prototype.replace),G=B.call(j,String.prototype.slice),W=B.call(j,RegExp.prototype.exec),K=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Y=/\\(\\)?/g,J=function getBaseIntrinsic(t,o){var n,i=t;if(F(N,i)&&(i="%"+(n=N[i])[0]+"%"),F(U,i)){var s=U[i];if(s===I&&(s=q(i)),void 0===s&&!o)throw new g("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:n,name:i,value:s}}throw new m("intrinsic "+t+" does not exist!")};t.exports=function GetIntrinsic(t,o){if("string"!=typeof t||0===t.length)throw new g("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof o)throw new g('"allowMissing" argument must be a boolean');if(null===W(/^%?[^%]*%?$/,t))throw new m("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function stringToPath(t){var o=G(t,0,1),n=G(t,-1);if("%"===o&&"%"!==n)throw new m("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==o)throw new m("invalid intrinsic syntax, expected opening `%`");var i=[];return V(t,K,(function(t,o,n,s){i[i.length]=n?V(s,Y,"$1"):o||t})),i}(t),i=n.length>0?n[0]:"",s=J("%"+i+"%",o),r=s.name,p=s.value,l=!1,u=s.alias;u&&(i=u[0],z(n,H([0,1],u)));for(var h=1,x=!0;h<n.length;h+=1){var y=n[h],v=G(y,0,1),_=G(y,-1);if(('"'===v||"'"===v||"`"===v||'"'===_||"'"===_||"`"===_)&&v!==_)throw new m("property names with quotes must have matching quotes");if("constructor"!==y&&x||(l=!0),F(U,r="%"+(i+="."+y)+"%"))p=U[r];else if(null!=p){if(!(y in p)){if(!o)throw new g("base intrinsic for "+t+" exists, but the property is not available.");return}if(T&&h+1>=n.length){var A=T(p,y);p=(x=!!A)&&"get"in A&&!("originalValue"in A.get)?A.get:p[y]}else x=F(p,y),p=p[y];x&&!l&&(U[r]=p)}}return p}},1064(t,o,n){"use strict";var i=n(9612);t.exports=i.getPrototypeOf||null},8648(t){"use strict";t.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},3628(t,o,n){"use strict";var i=n(8648),s=n(1064),r=n(7176);t.exports=i?function getProto(t){return i(t)}:s?function getProto(t){if(!t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("getProto: not an object");return s(t)}:r?function getProto(t){return r(t)}:null},6549(t){"use strict";t.exports=Object.getOwnPropertyDescriptor},5795(t,o,n){"use strict";var i=n(6549);if(i)try{i([],"length")}catch(t){i=null}t.exports=i},5884(t){"use strict";t.exports=(t,o=process.argv)=>{const n=t.startsWith("-")?"":1===t.length?"-":"--",i=o.indexOf(n+t),s=o.indexOf("--");return-1!==i&&(-1===s||i<s)}},4039(t,o,n){"use strict";var i="undefined"!=typeof Symbol&&Symbol,s=n(1333);t.exports=function hasNativeSymbols(){return"function"==typeof i&&("function"==typeof Symbol&&("symbol"==typeof i("foo")&&("symbol"==typeof Symbol("bar")&&s())))}},1333(t){"use strict";t.exports=function hasSymbols(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},o=Symbol("test"),n=Object(o);if("string"==typeof o)return!1;if("[object Symbol]"!==Object.prototype.toString.call(o))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(var i in t[o]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var s=Object.getOwnPropertySymbols(t);if(1!==s.length||s[0]!==o)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,o))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var r=Object.getOwnPropertyDescriptor(t,o);if(42!==r.value||!0!==r.enumerable)return!1}return!0}},9092(t,o,n){"use strict";var i=n(1333);t.exports=function hasToStringTagShams(){return i()&&!!Symbol.toStringTag}},9957(t,o,n){"use strict";var i=Function.prototype.call,s=Object.prototype.hasOwnProperty,r=n(6743);t.exports=r.call(i,s)},1111(t){"use strict";const o=new Set(["ENOTFOUND","ENETUNREACH","UNABLE_TO_GET_ISSUER_CERT","UNABLE_TO_GET_CRL","UNABLE_TO_DECRYPT_CERT_SIGNATURE","UNABLE_TO_DECRYPT_CRL_SIGNATURE","UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY","CERT_SIGNATURE_FAILURE","CRL_SIGNATURE_FAILURE","CERT_NOT_YET_VALID","CERT_HAS_EXPIRED","CRL_NOT_YET_VALID","CRL_HAS_EXPIRED","ERROR_IN_CERT_NOT_BEFORE_FIELD","ERROR_IN_CERT_NOT_AFTER_FIELD","ERROR_IN_CRL_LAST_UPDATE_FIELD","ERROR_IN_CRL_NEXT_UPDATE_FIELD","OUT_OF_MEM","DEPTH_ZERO_SELF_SIGNED_CERT","SELF_SIGNED_CERT_IN_CHAIN","UNABLE_TO_GET_ISSUER_CERT_LOCALLY","UNABLE_TO_VERIFY_LEAF_SIGNATURE","CERT_CHAIN_TOO_LONG","CERT_REVOKED","INVALID_CA","PATH_LENGTH_EXCEEDED","INVALID_PURPOSE","CERT_UNTRUSTED","CERT_REJECTED","HOSTNAME_MISMATCH"]);t.exports=t=>!o.has(t&&t.code)},1514(t){"use strict";t.exports=Math.abs},8968(t){"use strict";t.exports=Math.floor},4459(t){"use strict";t.exports=Number.isNaN||function isNaN(t){return t!=t}},6188(t){"use strict";t.exports=Math.max},8002(t){"use strict";t.exports=Math.min},5880(t){"use strict";t.exports=Math.pow},414(t){"use strict";t.exports=Math.round},3093(t,o,n){"use strict";var i=n(4459);t.exports=function sign(t){return i(t)||0===t?t:t<0?-1:1}},7598(t,o,n){t.exports=n(1813)},6049(t,o,n){"use strict";var i=n(7598),s=n(6928).extname,r=/^\s*([^;\s]*)(?:;|\s|$)/,p=/^text\//i;function charset(t){if(!t||"string"!=typeof t)return!1;var o=r.exec(t),n=o&&i[o[1].toLowerCase()];return n&&n.charset?n.charset:!(!o||!p.test(o[1]))&&"UTF-8"}o.charset=charset,o.charsets={lookup:charset},o.contentType=function contentType(t){if(!t||"string"!=typeof t)return!1;var n=-1===t.indexOf("/")?o.lookup(t):t;if(!n)return!1;if(-1===n.indexOf("charset")){var i=o.charset(n);i&&(n+="; charset="+i.toLowerCase())}return n},o.extension=function extension(t){if(!t||"string"!=typeof t)return!1;var n=r.exec(t),i=n&&o.extensions[n[1].toLowerCase()];if(!i||!i.length)return!1;return i[0]},o.extensions=Object.create(null),o.lookup=function lookup(t){if(!t||"string"!=typeof t)return!1;var n=s("x."+t).toLowerCase().substr(1);if(!n)return!1;return o.types[n]||!1},o.types=Object.create(null),function populateMaps(t,o){var n=["nginx","apache",void 0,"iana"];Object.keys(i).forEach((function forEachMimeType(s){var r=i[s],p=r.extensions;if(p&&p.length){t[s]=p;for(var l=0;l<p.length;l++){var u=p[l];if(o[u]){var m=n.indexOf(i[o[u]].source),g=n.indexOf(r.source);if("application/octet-stream"!==o[u]&&(m>g||m===g&&"application/"===o[u].substr(0,12)))continue}o[u]=s}}}))}(o.extensions,o.types)},6585(t){var o=1e3,n=60*o,i=60*n,s=24*i,r=7*s,p=365.25*s;function plural(t,o,n,i){var s=o>=1.5*n;return Math.round(t/n)+" "+i+(s?"s":"")}t.exports=function(t,l){l=l||{};var u=typeof t;if("string"===u&&t.length>0)return function parse(t){if((t=String(t)).length>100)return;var l=/^(-?(?:\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(!l)return;var u=parseFloat(l[1]);switch((l[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return u*p;case"weeks":case"week":case"w":return u*r;case"days":case"day":case"d":return u*s;case"hours":case"hour":case"hrs":case"hr":case"h":return u*i;case"minutes":case"minute":case"mins":case"min":case"m":return u*n;case"seconds":case"second":case"secs":case"sec":case"s":return u*o;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return u;default:return}}(t);if("number"===u&&isFinite(t))return l.long?function fmtLong(t){var r=Math.abs(t);if(r>=s)return plural(t,r,s,"day");if(r>=i)return plural(t,r,i,"hour");if(r>=n)return plural(t,r,n,"minute");if(r>=o)return plural(t,r,o,"second");return t+" ms"}(t):function fmtShort(t){var r=Math.abs(t);if(r>=s)return Math.round(t/s)+"d";if(r>=i)return Math.round(t/i)+"h";if(r>=n)return Math.round(t/n)+"m";if(r>=o)return Math.round(t/o)+"s";return t+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},7687(t,o,n){"use strict";const i=n(857),s=n(2018),r=n(5884),{env:p}=process;let l;function translateLevel(t){return 0!==t&&{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function supportsColor(t,o){if(0===l)return 0;if(r("color=16m")||r("color=full")||r("color=truecolor"))return 3;if(r("color=256"))return 2;if(t&&!o&&void 0===l)return 0;const n=l||0;if("dumb"===p.TERM)return n;if("win32"===process.platform){const t=i.release().split(".");return Number(t[0])>=10&&Number(t[2])>=10586?Number(t[2])>=14931?3:2:1}if("CI"in p)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((t=>t in p))||"codeship"===p.CI_NAME?1:n;if("TEAMCITY_VERSION"in p)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(p.TEAMCITY_VERSION)?1:0;if("truecolor"===p.COLORTERM)return 3;if("TERM_PROGRAM"in p){const t=parseInt((p.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(p.TERM_PROGRAM){case"iTerm.app":return t>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(p.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(p.TERM)||"COLORTERM"in p?1:n}r("no-color")||r("no-colors")||r("color=false")||r("color=never")?l=0:(r("color")||r("colors")||r("color=true")||r("color=always"))&&(l=1),"FORCE_COLOR"in p&&(l="true"===p.FORCE_COLOR?1:"false"===p.FORCE_COLOR?0:0===p.FORCE_COLOR.length?1:Math.min(parseInt(p.FORCE_COLOR,10),3)),t.exports={supportsColor:function getSupportLevel(t){return translateLevel(supportsColor(t,t&&t.isTTY))},stdout:translateLevel(supportsColor(!0,s.isatty(1))),stderr:translateLevel(supportsColor(!0,s.isatty(2)))}},3499(module){"use strict";var COMPILED=!0,goog=goog||{};if(goog.global=this||self,goog.exportPath_=function(t,o,n,i){t=t.split("."),i=i||goog.global,t[0]in i||void 0===i.execScript||i.execScript("var "+t[0]);for(var s;t.length&&(s=t.shift());)if(t.length||void 0===o)i=i[s]&&i[s]!==Object.prototype[s]?i[s]:i[s]={};else if(!n&&goog.isObject(o)&&goog.isObject(i[s]))for(var r in o)o.hasOwnProperty(r)&&(i[s][r]=o[r]);else i[s]=o},goog.define=function(t,o){if(!COMPILED){var n=goog.global.CLOSURE_UNCOMPILED_DEFINES,i=goog.global.CLOSURE_DEFINES;n&&void 0===n.nodeType&&Object.prototype.hasOwnProperty.call(n,t)?o=n[t]:i&&void 0===i.nodeType&&Object.prototype.hasOwnProperty.call(i,t)&&(o=i[t])}return o},goog.FEATURESET_YEAR=2012,goog.DEBUG=!0,goog.LOCALE="en",goog.TRUSTED_SITE=!0,goog.DISALLOW_TEST_ONLY_CODE=COMPILED&&!goog.DEBUG,goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING=!1,goog.provide=function(t){if(goog.isInModuleLoader_())throw Error("goog.provide cannot be used within a module.");if(!COMPILED&&goog.isProvided_(t))throw Error('Namespace "'+t+'" already declared.');goog.constructNamespace_(t)},goog.constructNamespace_=function(t,o,n){if(!COMPILED){delete goog.implicitNamespaces_[t];for(var i=t;(i=i.substring(0,i.lastIndexOf(".")))&&!goog.getObjectByName(i);)goog.implicitNamespaces_[i]=!0}goog.exportPath_(t,o,n)},goog.getScriptNonce=function(t){return t&&t!=goog.global?goog.getScriptNonce_(t.document):(null===goog.cspNonce_&&(goog.cspNonce_=goog.getScriptNonce_(goog.global.document)),goog.cspNonce_)},go