@mablhq/mabl-cli 2.29.2 → 2.30.0
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/browserEngines/chromiumBrowserEngine.js +0 -1
- package/commands/constants.js +14 -3
- package/commands/tests/tests_cmds/import.js +3 -297
- package/commands/tests/tests_cmds/import_cmds/import_playwright.js +440 -0
- package/commands/tests/tests_cmds/import_cmds/import_selenium.js +295 -0
- package/domUtil/index.js +1 -1
- package/execution/index.js +2 -2
- package/mablApi/index.js +1 -1
- package/mablscript/importer.js +2 -2
- package/mablscript/steps/DatabaseQueryStep.js +24 -0
- package/mablscriptFind/index.js +1 -1
- package/package.json +3 -1
- package/proxy/index.js +1 -1
- package/resources/mablFind.js +1 -1
- package/resources/webdriver.js +1 -1
- package/upload/index.js +1 -1
- package/webdriver/index.js +5 -2
- package/mablscript/steps/DatabaseCallStep.js +0 -24
package/resources/webdriver.js
CHANGED
|
@@ -16,4 +16,4 @@ t.read=function(e,t,r,n,o){var i,s,a=8*o-n-1,c=(1<<a)-1,u=c>>1,l=-7,d=r?o-1:0,p=
|
|
|
16
16
|
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
17
17
|
var n=r(5309),o=n.Buffer;function i(e,t){for(var r in e)t[r]=e[r]}function s(e,t,r){return o(e,t,r)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?e.exports=n:(i(n,t),t.Buffer=s),s.prototype=Object.create(o.prototype),i(o,s),s.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return o(e,t,r)},s.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=o(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},s.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return o(e)},s.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},1068:(e,t,r)=>{"use strict";var n=r(1021),o=r(5086),i=r(8175)(),s=r(9662),a=n("%TypeError%"),c=n("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new a("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||c(t)!==t)throw new a("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,u=!0;if("length"in e&&s){var l=s(e,"length");l&&!l.configurable&&(n=!1),l&&!l.writable&&(u=!1)}return(n||u||!r)&&(i?o(e,"length",t,!0,!0):o(e,"length",t)),e}},3523:(e,t,r)=>{e.exports=o;var n=r(6560).EventEmitter;function o(){n.call(this)}r(9118)(o,n),o.Readable=r(5170),o.Writable=r(3327),o.Duplex=r(7664),o.Transform=r(2057),o.PassThrough=r(3163),o.finished=r(3495),o.pipeline=r(4805),o.Stream=o,o.prototype.pipe=function(e,t){var r=this;function o(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function i(){r.readable&&r.resume&&r.resume()}r.on("data",o),e.on("drain",i),e._isStdio||t&&!1===t.end||(r.on("end",a),r.on("close",c));var s=!1;function a(){s||(s=!0,e.end())}function c(){s||(s=!0,"function"==typeof e.destroy&&e.destroy())}function u(e){if(l(),0===n.listenerCount(this,"error"))throw e}function l(){r.removeListener("data",o),e.removeListener("drain",i),r.removeListener("end",a),r.removeListener("close",c),r.removeListener("error",u),e.removeListener("error",u),r.removeListener("end",l),r.removeListener("close",l),e.removeListener("close",l)}return r.on("error",u),e.on("error",u),r.on("end",l),r.on("close",l),e.on("close",l),e.emit("pipe",r),e}},2104:(e,t,r)=>{var n=r(8990),o=r(3572),i=r(8479),s=r(2106),a=r(6482),c=t;c.request=function(e,t){e="string"==typeof e?a.parse(e):i(e);var o=-1===r.g.location.protocol.search(/^https?:$/)?"http:":"",s=e.protocol||o,c=e.hostname||e.host,u=e.port,l=e.path||"/";c&&-1!==c.indexOf(":")&&(c="["+c+"]"),e.url=(c?s+"//"+c:"")+(u?":"+u:"")+l,e.method=(e.method||"GET").toUpperCase(),e.headers=e.headers||{};var d=new n(e);return t&&d.on("response",t),d},c.get=function(e,t){var r=c.request(e,t);return r.end(),r},c.ClientRequest=n,c.IncomingMessage=o.IncomingMessage,c.Agent=function(){},c.Agent.defaultMaxSockets=4,c.globalAgent=new c.Agent,c.STATUS_CODES=s,c.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]},8835:(e,t,r)=>{var n;function o(){if(void 0!==n)return n;if(r.g.XMLHttpRequest){n=new r.g.XMLHttpRequest;try{n.open("GET",r.g.XDomainRequest?"/":"https://example.com")}catch(e){n=null}}else n=null;return n}function i(e){var t=o();if(!t)return!1;try{return t.responseType=e,t.responseType===e}catch(e){}return!1}function s(e){return"function"==typeof e}t.fetch=s(r.g.fetch)&&s(r.g.ReadableStream),t.writableStream=s(r.g.WritableStream),t.abortController=s(r.g.AbortController),t.arraybuffer=t.fetch||i("arraybuffer"),t.msstream=!t.fetch&&i("ms-stream"),t.mozchunkedarraybuffer=!t.fetch&&i("moz-chunked-arraybuffer"),t.overrideMimeType=t.fetch||!!o()&&s(o().overrideMimeType),n=null},8990:(e,t,r)=>{var n=r(4675),o=r(8835),i=r(9118),s=r(3572),a=r(7260),c=s.IncomingMessage,u=s.readyStates;var l=e.exports=function(e){var t,r=this;a.Writable.call(r),r._opts=e,r._body=[],r._headers={},e.auth&&r.setHeader("Authorization","Basic "+Buffer.from(e.auth).toString("base64")),Object.keys(e.headers).forEach((function(t){r.setHeader(t,e.headers[t])}));var n=!0;if("disable-fetch"===e.mode||"requestTimeout"in e&&!o.abortController)n=!1,t=!0;else if("prefer-streaming"===e.mode)t=!1;else if("allow-wrong-content-type"===e.mode)t=!o.overrideMimeType;else{if(e.mode&&"default"!==e.mode&&"prefer-fast"!==e.mode)throw new Error("Invalid value for opts.mode");t=!0}r._mode=function(e,t){return o.fetch&&t?"fetch":o.mozchunkedarraybuffer?"moz-chunked-arraybuffer":o.msstream?"ms-stream":o.arraybuffer&&e?"arraybuffer":"text"}(t,n),r._fetchTimer=null,r._socketTimeout=null,r._socketTimer=null,r.on("finish",(function(){r._onFinish()}))};i(l,a.Writable),l.prototype.setHeader=function(e,t){var r=e.toLowerCase();-1===d.indexOf(r)&&(this._headers[r]={name:e,value:t})},l.prototype.getHeader=function(e){var t=this._headers[e.toLowerCase()];return t?t.value:null},l.prototype.removeHeader=function(e){delete this._headers[e.toLowerCase()]},l.prototype._onFinish=function(){var e=this;if(!e._destroyed){var t=e._opts;"timeout"in t&&0!==t.timeout&&e.setTimeout(t.timeout);var i=e._headers,s=null;"GET"!==t.method&&"HEAD"!==t.method&&(s=new Blob(e._body,{type:(i["content-type"]||{}).value||""}));var a=[];if(Object.keys(i).forEach((function(e){var t=i[e].name,r=i[e].value;Array.isArray(r)?r.forEach((function(e){a.push([t,e])})):a.push([t,r])})),"fetch"===e._mode){var c=null;if(o.abortController){var l=new AbortController;c=l.signal,e._fetchAbortController=l,"requestTimeout"in t&&0!==t.requestTimeout&&(e._fetchTimer=r.g.setTimeout((function(){e.emit("requestTimeout"),e._fetchAbortController&&e._fetchAbortController.abort()}),t.requestTimeout))}r.g.fetch(e._opts.url,{method:e._opts.method,headers:a,body:s||void 0,mode:"cors",credentials:t.withCredentials?"include":"same-origin",signal:c}).then((function(t){e._fetchResponse=t,e._resetTimers(!1),e._connect()}),(function(t){e._resetTimers(!0),e._destroyed||e.emit("error",t)}))}else{var d=e._xhr=new r.g.XMLHttpRequest;try{d.open(e._opts.method,e._opts.url,!0)}catch(t){return void n.nextTick((function(){e.emit("error",t)}))}"responseType"in d&&(d.responseType=e._mode),"withCredentials"in d&&(d.withCredentials=!!t.withCredentials),"text"===e._mode&&"overrideMimeType"in d&&d.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in t&&(d.timeout=t.requestTimeout,d.ontimeout=function(){e.emit("requestTimeout")}),a.forEach((function(e){d.setRequestHeader(e[0],e[1])})),e._response=null,d.onreadystatechange=function(){switch(d.readyState){case u.LOADING:case u.DONE:e._onXHRProgress()}},"moz-chunked-arraybuffer"===e._mode&&(d.onprogress=function(){e._onXHRProgress()}),d.onerror=function(){e._destroyed||(e._resetTimers(!0),e.emit("error",new Error("XHR error")))};try{d.send(s)}catch(t){return void n.nextTick((function(){e.emit("error",t)}))}}}},l.prototype._onXHRProgress=function(){var e=this;e._resetTimers(!1),function(e){try{var t=e.status;return null!==t&&0!==t}catch(e){return!1}}(e._xhr)&&!e._destroyed&&(e._response||e._connect(),e._response._onXHRProgress(e._resetTimers.bind(e)))},l.prototype._connect=function(){var e=this;e._destroyed||(e._response=new c(e._xhr,e._fetchResponse,e._mode,e._resetTimers.bind(e)),e._response.on("error",(function(t){e.emit("error",t)})),e.emit("response",e._response))},l.prototype._write=function(e,t,r){this._body.push(e),r()},l.prototype._resetTimers=function(e){var t=this;r.g.clearTimeout(t._socketTimer),t._socketTimer=null,e?(r.g.clearTimeout(t._fetchTimer),t._fetchTimer=null):t._socketTimeout&&(t._socketTimer=r.g.setTimeout((function(){t.emit("timeout")}),t._socketTimeout))},l.prototype.abort=l.prototype.destroy=function(e){var t=this;t._destroyed=!0,t._resetTimers(!0),t._response&&(t._response._destroyed=!0),t._xhr?t._xhr.abort():t._fetchAbortController&&t._fetchAbortController.abort(),e&&t.emit("error",e)},l.prototype.end=function(e,t,r){"function"==typeof e&&(r=e,e=void 0),a.Writable.prototype.end.call(this,e,t,r)},l.prototype.setTimeout=function(e,t){var r=this;t&&r.once("timeout",t),r._socketTimeout=e,r._resetTimers(!1)},l.prototype.flushHeaders=function(){},l.prototype.setNoDelay=function(){},l.prototype.setSocketKeepAlive=function(){};var d=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"]},3572:(e,t,r)=>{var n=r(4675),o=r(8835),i=r(9118),s=r(7260),a=t.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},c=t.IncomingMessage=function(e,t,r,i){var a=this;if(s.Readable.call(a),a._mode=r,a.headers={},a.rawHeaders=[],a.trailers={},a.rawTrailers=[],a.on("end",(function(){n.nextTick((function(){a.emit("close")}))})),"fetch"===r){if(a._fetchResponse=t,a.url=t.url,a.statusCode=t.status,a.statusMessage=t.statusText,t.headers.forEach((function(e,t){a.headers[t.toLowerCase()]=e,a.rawHeaders.push(t,e)})),o.writableStream){var c=new WritableStream({write:function(e){return i(!1),new Promise((function(t,r){a._destroyed?r():a.push(Buffer.from(e))?t():a._resumeFetch=t}))},close:function(){i(!0),a._destroyed||a.push(null)},abort:function(e){i(!0),a._destroyed||a.emit("error",e)}});try{return void t.body.pipeTo(c).catch((function(e){i(!0),a._destroyed||a.emit("error",e)}))}catch(e){}}var u=t.body.getReader();!function e(){u.read().then((function(t){a._destroyed||(i(t.done),t.done?a.push(null):(a.push(Buffer.from(t.value)),e()))})).catch((function(e){i(!0),a._destroyed||a.emit("error",e)}))}()}else{if(a._xhr=e,a._pos=0,a.url=e.responseURL,a.statusCode=e.status,a.statusMessage=e.statusText,e.getAllResponseHeaders().split(/\r?\n/).forEach((function(e){var t=e.match(/^([^:]+):\s*(.*)/);if(t){var r=t[1].toLowerCase();"set-cookie"===r?(void 0===a.headers[r]&&(a.headers[r]=[]),a.headers[r].push(t[2])):void 0!==a.headers[r]?a.headers[r]+=", "+t[2]:a.headers[r]=t[2],a.rawHeaders.push(t[1],t[2])}})),a._charset="x-user-defined",!o.overrideMimeType){var l=a.rawHeaders["mime-type"];if(l){var d=l.match(/;\s*charset=([^;])(;|$)/);d&&(a._charset=d[1].toLowerCase())}a._charset||(a._charset="utf-8")}}};i(c,s.Readable),c.prototype._read=function(){var e=this._resumeFetch;e&&(this._resumeFetch=null,e())},c.prototype._onXHRProgress=function(e){var t=this,n=t._xhr,o=null;switch(t._mode){case"text":if((o=n.responseText).length>t._pos){var i=o.substr(t._pos);if("x-user-defined"===t._charset){for(var s=Buffer.alloc(i.length),c=0;c<i.length;c++)s[c]=255&i.charCodeAt(c);t.push(s)}else t.push(i,t._charset);t._pos=o.length}break;case"arraybuffer":if(n.readyState!==a.DONE||!n.response)break;o=n.response,t.push(Buffer.from(new Uint8Array(o)));break;case"moz-chunked-arraybuffer":if(o=n.response,n.readyState!==a.LOADING||!o)break;t.push(Buffer.from(new Uint8Array(o)));break;case"ms-stream":if(o=n.response,n.readyState!==a.LOADING)break;var u=new r.g.MSStreamReader;u.onprogress=function(){u.result.byteLength>t._pos&&(t.push(Buffer.from(new Uint8Array(u.result.slice(t._pos)))),t._pos=u.result.byteLength)},u.onload=function(){e(!0),t.push(null)},u.readAsArrayBuffer(o)}t._xhr.readyState===a.DONE&&"ms-stream"!==t._mode&&(e(!0),t.push(null))}},2682:(e,t,r)=>{"use strict";var n=r(7578).Buffer,o=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function i(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(n.isEncoding===o||!o(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=c,this.end=u,t=4;break;case"utf8":this.fillLast=a,t=4;break;case"base64":this.text=l,this.end=d,t=3;break;default:return this.write=p,void(this.end=f)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function s(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function a(e){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function c(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function u(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function l(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function p(e){return e.toString(this.encoding)}function f(e){return e&&e.length?this.write(e):""}t.s=i,i.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},i.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},i.prototype.text=function(e,t){var r=function(e,t,r){var n=t.length-1;if(n<r)return 0;var o=s(t[n]);if(o>=0)return o>0&&(e.lastNeed=o-1),o;if(--n<r||-2===o)return 0;if(o=s(t[n]),o>=0)return o>0&&(e.lastNeed=o-2),o;if(--n<r||-2===o)return 0;if(o=s(t[n]),o>=0)return o>0&&(2===o?o=0:e.lastNeed=o-3),o;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},i.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},342:(e,t,r)=>{function n(e){try{if(!r.g.localStorage)return!1}catch(e){return!1}var t=r.g.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}e.exports=function(e,t){if(n("noDeprecation"))return e;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}},2439:e=>{e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},2406:(e,t,r)=>{"use strict";var n=r(7974),o=r(434),i=r(1826),s=r(194);function a(e){return e.call.bind(e)}var c="undefined"!=typeof BigInt,u="undefined"!=typeof Symbol,l=a(Object.prototype.toString),d=a(Number.prototype.valueOf),p=a(String.prototype.valueOf),f=a(Boolean.prototype.valueOf);if(c)var h=a(BigInt.prototype.valueOf);if(u)var m=a(Symbol.prototype.valueOf);function g(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function y(e){return"[object Map]"===l(e)}function b(e){return"[object Set]"===l(e)}function v(e){return"[object WeakMap]"===l(e)}function w(e){return"[object WeakSet]"===l(e)}function _(e){return"[object ArrayBuffer]"===l(e)}function S(e){return"undefined"!=typeof ArrayBuffer&&(_.working?_(e):e instanceof ArrayBuffer)}function E(e){return"[object DataView]"===l(e)}function x(e){return"undefined"!=typeof DataView&&(E.working?E(e):e instanceof DataView)}t.isArgumentsObject=n,t.isGeneratorFunction=o,t.isTypedArray=s,t.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},t.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):s(e)||x(e)},t.isUint8Array=function(e){return"Uint8Array"===i(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===i(e)},t.isUint16Array=function(e){return"Uint16Array"===i(e)},t.isUint32Array=function(e){return"Uint32Array"===i(e)},t.isInt8Array=function(e){return"Int8Array"===i(e)},t.isInt16Array=function(e){return"Int16Array"===i(e)},t.isInt32Array=function(e){return"Int32Array"===i(e)},t.isFloat32Array=function(e){return"Float32Array"===i(e)},t.isFloat64Array=function(e){return"Float64Array"===i(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===i(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===i(e)},y.working="undefined"!=typeof Map&&y(new Map),t.isMap=function(e){return"undefined"!=typeof Map&&(y.working?y(e):e instanceof Map)},b.working="undefined"!=typeof Set&&b(new Set),t.isSet=function(e){return"undefined"!=typeof Set&&(b.working?b(e):e instanceof Set)},v.working="undefined"!=typeof WeakMap&&v(new WeakMap),t.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(v.working?v(e):e instanceof WeakMap)},w.working="undefined"!=typeof WeakSet&&w(new WeakSet),t.isWeakSet=function(e){return w(e)},_.working="undefined"!=typeof ArrayBuffer&&_(new ArrayBuffer),t.isArrayBuffer=S,E.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&E(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=x;var k="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function T(e){return"[object SharedArrayBuffer]"===l(e)}function O(e){return void 0!==k&&(void 0===T.working&&(T.working=T(new k)),T.working?T(e):e instanceof k)}function A(e){return g(e,d)}function P(e){return g(e,p)}function I(e){return g(e,f)}function j(e){return c&&g(e,h)}function R(e){return u&&g(e,m)}t.isSharedArrayBuffer=O,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===l(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===l(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===l(e)},t.isGeneratorObject=function(e){return"[object Generator]"===l(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===l(e)},t.isNumberObject=A,t.isStringObject=P,t.isBooleanObject=I,t.isBigIntObject=j,t.isSymbolObject=R,t.isBoxedPrimitive=function(e){return A(e)||P(e)||I(e)||j(e)||R(e)},t.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(S(e)||O(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})}))},5210:(e,t,r)=>{var n=r(4675),o=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++)r[t[n]]=Object.getOwnPropertyDescriptor(e,t[n]);return r},i=/%[sdj%]/g;t.format=function(e){if(!v(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(u(arguments[r]));return t.join(" ")}r=1;for(var n=arguments,o=n.length,s=String(e).replace(i,(function(e){if("%%"===e)return"%";if(r>=o)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}})),a=n[r];r<o;a=n[++r])y(a)||!S(a)?s+=" "+a:s+=" "+u(a);return s},t.deprecate=function(e,r){if(void 0!==n&&!0===n.noDeprecation)return e;if(void 0===n)return function(){return t.deprecate(e,r).apply(this,arguments)};var o=!1;return function(){if(!o){if(n.throwDeprecation)throw new Error(r);n.traceDeprecation?console.trace(r):console.error(r),o=!0}return e.apply(this,arguments)}};var s={},a=/^$/;if(n.env.NODE_DEBUG){var c=n.env.NODE_DEBUG;c=c.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),a=new RegExp("^"+c+"$","i")}function u(e,r){var n={seen:[],stylize:d};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),g(r)?n.showHidden=r:r&&t._extend(n,r),w(n.showHidden)&&(n.showHidden=!1),w(n.depth)&&(n.depth=2),w(n.colors)&&(n.colors=!1),w(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=l),p(n,e,n.depth)}function l(e,t){var r=u.styles[t];return r?"["+u.colors[r][0]+"m"+e+"["+u.colors[r][1]+"m":e}function d(e,t){return e}function p(e,r,n){if(e.customInspect&&r&&k(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var o=r.inspect(n,e);return v(o)||(o=p(e,o,n)),o}var i=function(e,t){if(w(t))return e.stylize("undefined","undefined");if(v(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(b(t))return e.stylize(""+t,"number");if(g(t))return e.stylize(""+t,"boolean");if(y(t))return e.stylize("null","null")}(e,r);if(i)return i;var s=Object.keys(r),a=function(e){var t={};return e.forEach((function(e,r){t[e]=!0})),t}(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(r)),x(r)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return f(r);if(0===s.length){if(k(r)){var c=r.name?": "+r.name:"";return e.stylize("[Function"+c+"]","special")}if(_(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(E(r))return e.stylize(Date.prototype.toString.call(r),"date");if(x(r))return f(r)}var u,l="",d=!1,S=["{","}"];(m(r)&&(d=!0,S=["[","]"]),k(r))&&(l=" [Function"+(r.name?": "+r.name:"")+"]");return _(r)&&(l=" "+RegExp.prototype.toString.call(r)),E(r)&&(l=" "+Date.prototype.toUTCString.call(r)),x(r)&&(l=" "+f(r)),0!==s.length||d&&0!=r.length?n<0?_(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),u=d?function(e,t,r,n,o){for(var i=[],s=0,a=t.length;s<a;++s)P(t,String(s))?i.push(h(e,t,r,n,String(s),!0)):i.push("");return o.forEach((function(o){o.match(/^\d+$/)||i.push(h(e,t,r,n,o,!0))})),i}(e,r,n,a,s):s.map((function(t){return h(e,r,n,a,t,d)})),e.seen.pop(),function(e,t,r){var n=e.reduce((function(e,t){return t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0);if(n>60)return r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1];return r[0]+t+" "+e.join(", ")+" "+r[1]}(u,l,S)):S[0]+l+S[1]}function f(e){return"["+Error.prototype.toString.call(e)+"]"}function h(e,t,r,n,o,i){var s,a,c;if((c=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]}).get?a=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(a=e.stylize("[Setter]","special")),P(n,o)||(s="["+o+"]"),a||(e.seen.indexOf(c.value)<0?(a=y(r)?p(e,c.value,null):p(e,c.value,r-1)).indexOf("\n")>-1&&(a=i?a.split("\n").map((function(e){return" "+e})).join("\n").slice(2):"\n"+a.split("\n").map((function(e){return" "+e})).join("\n")):a=e.stylize("[Circular]","special")),w(s)){if(i&&o.match(/^\d+$/))return a;(s=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.slice(1,-1),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+a}function m(e){return Array.isArray(e)}function g(e){return"boolean"==typeof e}function y(e){return null===e}function b(e){return"number"==typeof e}function v(e){return"string"==typeof e}function w(e){return void 0===e}function _(e){return S(e)&&"[object RegExp]"===T(e)}function S(e){return"object"==typeof e&&null!==e}function E(e){return S(e)&&"[object Date]"===T(e)}function x(e){return S(e)&&("[object Error]"===T(e)||e instanceof Error)}function k(e){return"function"==typeof e}function T(e){return Object.prototype.toString.call(e)}function O(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(e=e.toUpperCase(),!s[e])if(a.test(e)){var r=n.pid;s[e]=function(){var n=t.format.apply(t,arguments);console.error("%s %d: %s",e,r,n)}}else s[e]=function(){};return s[e]},t.inspect=u,u.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=r(2406),t.isArray=m,t.isBoolean=g,t.isNull=y,t.isNullOrUndefined=function(e){return null==e},t.isNumber=b,t.isString=v,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=w,t.isRegExp=_,t.types.isRegExp=_,t.isObject=S,t.isDate=E,t.types.isDate=E,t.isError=x,t.types.isNativeError=x,t.isFunction=k,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(2439);var A=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function P(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,r;console.log("%s - %s",(e=new Date,r=[O(e.getHours()),O(e.getMinutes()),O(e.getSeconds())].join(":"),[e.getDate(),A[e.getMonth()],r].join(" ")),t.format.apply(t,arguments))},t.inherits=r(9118),t._extend=function(e,t){if(!t||!S(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var I="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function j(e,t){if(!e){var r=new Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(I&&e[I]){var t;if("function"!=typeof(t=e[I]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,I,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,n=new Promise((function(e,n){t=e,r=n})),o=[],i=0;i<arguments.length;i++)o.push(arguments[i]);o.push((function(e,n){e?r(e):t(n)}));try{e.apply(this,o)}catch(e){r(e)}return n}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),I&&Object.defineProperty(t,I,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,o(e))},t.promisify.custom=I,t.callbackify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');function t(){for(var t=[],r=0;r<arguments.length;r++)t.push(arguments[r]);var o=t.pop();if("function"!=typeof o)throw new TypeError("The last argument must be of type Function");var i=this,s=function(){return o.apply(i,arguments)};e.apply(this,t).then((function(e){n.nextTick(s.bind(null,null,e))}),(function(e){n.nextTick(j.bind(null,e,s))}))}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,o(e)),t}},5206:(e,t,r)=>{var n,o,i=r(69),s=r(5210),a=r(8887),c=r(5309),u=r(4675),l=r(6560),d=r(7180),p=r(7376),f=r(2104),h=r(4296),m=r(3535),g=r(3523),y=r(2894),b=r(8534),v=r(1091),w=r(3907),_=r(4435),S=r(3541);function E(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}var x="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==r.g?r.g:{};function k(e){Object.defineProperty(e,"__esModule",{value:!0,configurable:!0})}function T(e){return e&&e.__esModule?e.default:e}var O={},A={},P=x.parcelRequire3ed1;null==P&&(P=function(e){if(e in O)return O[e].exports;if(e in A){var t=A[e];delete A[e];var r={id:e,exports:{}};return O[e]=r,t.call(r.exports,r,r.exports),r.exports}var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n},P.register=function(e,t){A[e]=t},x.parcelRequire3ed1=P),P.register("aZBcl",(function(e,t){"use strict";var r=e.exports&&e.exports.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e.exports,"__esModule",{value:!0});r(i);const n=r(P("do3vr")),o=r(s),a=r(P("LStkk")),c=r(P("lEAwe")),u=r(P("5myiz"));c.default.reg(n.default);const l="info",d={error:"red",warn:"yellow",info:"cyanBright",debug:"green",trace:"cyan"},p={COMMAND:"COMMAND",DATA:"DATA",RESULT:"RESULT"},f=[{matches:e=>e instanceof Error,serialize:e=>e.stack},{matches:e=>e===p.COMMAND,serialize:e=>a.default.magenta(e)},{matches:e=>e===p.DATA,serialize:e=>a.default.yellow(e)},{matches:e=>e===p.RESULT,serialize:e=>a.default.cyan(e)}],h=n.default.getLoggers();let m={};const g=new Set;let y;const b=n.default.methodFactory,v=function(e,t,r){const n=b(e,t,r);return(...e)=>{const t=Object.values(p).filter((t=>e[0].endsWith(`: ${t}`)))[0];if(t){const r=e.shift().slice(0,-t.length-1);e.unshift(r,t)}e=e.map((e=>{for(const t of f)if(t.matches(e))return t.serialize(e);return e}));const r=(0,u.default)(`${o.default.format.apply(this,e)}\n`);if(y&&y.writable)return g.size&&(g.forEach((e=>{y&&y.write(e)})),g.clear()),y.write(r);g.add(r),n(...e)}};function w(e){if(h[e])return h[e];let t=l;const r=_(e);return m[r]&&(t=m[r]),h[e]=n.default.getLogger(e),h[e].setLevel(t),h[e].methodFactory=v,c.default.apply(h[e],{template:"%t %l %n:",timestampFormatter:e=>a.default.gray(e.toISOString()),levelFormatter:e=>a.default[d[e]](e.toUpperCase()),nameFormatter:e=>a.default.whiteBright(e)}),h[e]}e.exports.default=w,w.waitForBuffer=async()=>new Promise((e=>{if(y&&Array.isArray(y.writableBuffer)&&0!==y.writableBuffer.length)return setTimeout((async()=>{await w.waitForBuffer(),e()}),20);e()})),w.setLevel=(e,t)=>h[e].setLevel(t),w.clearLogger=()=>{y&&y.end(),y=null},w.setLogLevelsConfig=(e={},t=l)=>{m={},Object.entries(e).forEach((([e,t])=>{const r=_(e);m[r]=t})),Object.keys(h).forEach((e=>{const t=_(e),r=void 0!==m[t]?m[t]:void 0;h[e].setLevel(r)}))};const _=e=>e.split(":").shift()})),P.register("do3vr",(function(e,t){!function(i,s){"use strict";n=function(){var e=function(){},t="undefined",r=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),n=["trace","debug","info","warn","error"];function o(e,t){var r=e[t];if("function"==typeof r.bind)return r.bind(e);try{return Function.prototype.bind.call(r,e)}catch(t){return function(){return Function.prototype.apply.apply(r,[e,arguments])}}}function i(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function s(n){return"debug"===n&&(n="log"),typeof console!==t&&("trace"===n&&r?i:void 0!==console[n]?o(console,n):void 0!==console.log?o(console,"log"):e)}function a(t,r){for(var o=0;o<n.length;o++){var i=n[o];this[i]=o<t?e:this.methodFactory(i,t,r)}this.log=this.debug}function c(e,r,n){return function(){typeof console!==t&&(a.call(this,r,n),this[e].apply(this,arguments))}}function u(e,t,r){return s(e)||c.apply(this,arguments)}function l(e,r,o){var i,s=this;r=null==r?"WARN":r;var c="loglevel";function l(e){var r=(n[e]||"silent").toUpperCase();if(typeof window!==t&&c){try{return void(window.localStorage[c]=r)}catch(e){}try{window.document.cookie=encodeURIComponent(c)+"="+r+";"}catch(e){}}}function d(){var e;if(typeof window!==t&&c){try{e=window.localStorage[c]}catch(e){}if(typeof e===t)try{var r=window.document.cookie,n=r.indexOf(encodeURIComponent(c)+"=");-1!==n&&(e=/^([^;]+)/.exec(r.slice(n))[1])}catch(e){}return void 0===s.levels[e]&&(e=void 0),e}}function p(){if(typeof window!==t&&c){try{return void window.localStorage.removeItem(c)}catch(e){}try{window.document.cookie=encodeURIComponent(c)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(e){}}}"string"==typeof e?c+=":"+e:"symbol"==typeof e&&(c=void 0),s.name=e,s.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},s.methodFactory=o||u,s.getLevel=function(){return i},s.setLevel=function(r,n){if("string"==typeof r&&void 0!==s.levels[r.toUpperCase()]&&(r=s.levels[r.toUpperCase()]),!("number"==typeof r&&r>=0&&r<=s.levels.SILENT))throw"log.setLevel() called with invalid level: "+r;if(i=r,!1!==n&&l(r),a.call(s,r,e),typeof console===t&&r<s.levels.SILENT)return"No console available for logging"},s.setDefaultLevel=function(e){r=e,d()||s.setLevel(e,!1)},s.resetLevel=function(){s.setLevel(r,!1),p()},s.enableAll=function(e){s.setLevel(s.levels.TRACE,e)},s.disableAll=function(e){s.setLevel(s.levels.SILENT,e)};var f=d();null==f&&(f=r),s.setLevel(f,!1)}var d=new l,p={};d.getLogger=function(e){if("symbol"!=typeof e&&"string"!=typeof e||""===e)throw new TypeError("You must supply a name when creating a logger.");var t=p[e];return t||(t=p[e]=new l(e,d.getLevel(),d.methodFactory)),t};var f=typeof window!==t?window.log:void 0;return d.noConflict=function(){return typeof window!==t&&window.log===d&&(window.log=f),d},d.getLoggers=function(){return p},d.default=d,d},void 0===(o="function"==typeof n?n.call(t,r,t,e):n)||(e.exports=o)}(e.exports)})),P.register("LStkk",(function(e,t){"use strict";var r=P("hnMjW"),n=P("enYgM"),o=n.stdout,i=n.stderr,s=P("lXemD"),a=s.stringReplaceAll,c=s.stringEncaseCRLFWithFirstIndex;const{isArray:u}=Array,l=["ansi","ansi","ansi256","ansi16m"],d=Object.create(null);class p{constructor(e){return f(e)}}const f=e=>{const t={};return((e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");const r=o?o.level:0;e.level=void 0===t.level?r:t.level})(t,e),t.template=(...e)=>_(t.template,...e),Object.setPrototypeOf(t,h.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},t.template.Instance=p,t.template};function h(e){return f(e)}for(const[e,t]of Object.entries(r))d[e]={get(){const r=b(this,y(t.open,t.close,this._styler),this._isEmpty);return Object.defineProperty(this,e,{value:r}),r}};d.visible={get(){const e=b(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:e}),e}};const m=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(const e of m)d[e]={get(){const{level:t}=this;return function(...n){const o=y(r.color[l[t]][e](...n),r.color.close,this._styler);return b(this,o,this._isEmpty)}}};for(const e of m){d["bg"+e[0].toUpperCase()+e.slice(1)]={get(){const{level:t}=this;return function(...n){const o=y(r.bgColor[l[t]][e](...n),r.bgColor.close,this._styler);return b(this,o,this._isEmpty)}}}}const g=Object.defineProperties((()=>{}),{...d,level:{enumerable:!0,get(){return this._generator.level},set(e){this._generator.level=e}}}),y=(e,t,r)=>{let n,o;return void 0===r?(n=e,o=t):(n=r.openAll+e,o=t+r.closeAll),{open:e,close:t,openAll:n,closeAll:o,parent:r}},b=(e,t,r)=>{const n=(...e)=>u(e[0])&&u(e[0].raw)?v(n,_(n,...e)):v(n,1===e.length?""+e[0]:e.join(" "));return Object.setPrototypeOf(n,g),n._generator=e,n._styler=t,n._isEmpty=r,n},v=(e,t)=>{if(e.level<=0||!t)return e._isEmpty?"":t;let r=e._styler;if(void 0===r)return t;const{openAll:n,closeAll:o}=r;if(-1!==t.indexOf(""))for(;void 0!==r;)t=a(t,r.close,r.open),r=r.parent;const i=t.indexOf("\n");return-1!==i&&(t=c(t,o,n,i)),n+t+o};let w;const _=(e,...t)=>{const[r]=t;if(!u(r)||!u(r.raw))return t.join(" ");const n=t.slice(1),o=[r.raw[0]];for(let e=1;e<r.length;e++)o.push(String(n[e-1]).replace(/[{}\\]/g,"\\$&"),String(r.raw[e]));return void 0===w&&(w=P("wHDJ7")),w(e,o.join(""))};Object.defineProperties(h.prototype,d);const S=h();S.supportsColor=o,S.stderr=h({level:i?i.level:0}),S.stderr.supportsColor=i,e.exports=S})),P.register("hnMjW",(function(e,t){"use strict";const r=(e,t)=>(...r)=>`[${e(...r)+t}m`,n=(e,t)=>(...r)=>{const n=e(...r);return`[${38+t};5;${n}m`},o=(e,t)=>(...r)=>{const n=e(...r);return`[${38+t};2;${n[0]};${n[1]};${n[2]}m`},i=e=>e,s=(e,t,r)=>[e,t,r],a=(e,t,r)=>{Object.defineProperty(e,t,{get:()=>{const n=r();return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0}),n},enumerable:!0,configurable:!0})};let c;const u=(e,t,r,n)=>{void 0===c&&(c=P("cfkdQ"));const o=n?10:0,i={};for(const[n,s]of Object.entries(c)){const a="ansi16"===n?"ansi":n;n===t?i[a]=e(r,o):"object"==typeof s&&(i[a]=e(s[t],o))}return i};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){const e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],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],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],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.gray=t.color.blackBright,t.bgColor.bgGray=t.bgColor.bgBlackBright,t.color.grey=t.color.blackBright,t.bgColor.bgGrey=t.bgColor.bgBlackBright;for(const[r,n]of Object.entries(t)){for(const[r,o]of Object.entries(n))t[r]={open:`[${o[0]}m`,close:`[${o[1]}m`},n[r]=t[r],e.set(o[0],o[1]);Object.defineProperty(t,r,{value:n,enumerable:!1})}return Object.defineProperty(t,"codes",{value:e,enumerable:!1}),t.color.close="[39m",t.bgColor.close="[49m",a(t.color,"ansi",(()=>u(r,"ansi16",i,!1))),a(t.color,"ansi256",(()=>u(n,"ansi256",i,!1))),a(t.color,"ansi16m",(()=>u(o,"rgb",s,!1))),a(t.bgColor,"ansi",(()=>u(r,"ansi16",i,!0))),a(t.bgColor,"ansi256",(()=>u(n,"ansi256",i,!0))),a(t.bgColor,"ansi16m",(()=>u(o,"rgb",s,!0))),t}})})),P.register("cfkdQ",(function(e,t){var r=P("gJ0Vv"),n=P("2IZoC");const o={};Object.keys(r).forEach((e=>{o[e]={},Object.defineProperty(o[e],"channels",{value:r[e].channels}),Object.defineProperty(o[e],"labels",{value:r[e].labels});const t=n(e);Object.keys(t).forEach((r=>{const n=t[r];o[e][r]=function(e){const t=function(...t){const r=t[0];if(null==r)return r;r.length>1&&(t=r);const n=e(t);if("object"==typeof n)for(let e=n.length,t=0;t<e;t++)n[t]=Math.round(n[t]);return n};return"conversion"in e&&(t.conversion=e.conversion),t}(n),o[e][r].raw=function(e){const t=function(...t){const r=t[0];return null==r?r:(r.length>1&&(t=r),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(n)}))})),e.exports=o})),P.register("gJ0Vv",(function(e,t){var r=P("iOoWQ");const n={};for(const e of Object.keys(r))n[r[e]]=e;const o={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};e.exports=o;for(const e of Object.keys(o)){if(!("channels"in o[e]))throw new Error("missing channels property: "+e);if(!("labels"in o[e]))throw new Error("missing channel labels property: "+e);if(o[e].labels.length!==o[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:r}=o[e];delete o[e].channels,delete o[e].labels,Object.defineProperty(o[e],"channels",{value:t}),Object.defineProperty(o[e],"labels",{value:r})}o.rgb.hsl=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,o=Math.min(t,r,n),i=Math.max(t,r,n),s=i-o;let a,c;i===o?a=0:t===i?a=(r-n)/s:r===i?a=2+(n-t)/s:n===i&&(a=4+(t-r)/s),a=Math.min(60*a,360),a<0&&(a+=360);const u=(o+i)/2;return c=i===o?0:u<=.5?s/(i+o):s/(2-i-o),[a,100*c,100*u]},o.rgb.hsv=function(e){let t,r,n,o,i;const s=e[0]/255,a=e[1]/255,c=e[2]/255,u=Math.max(s,a,c),l=u-Math.min(s,a,c),d=function(e){return(u-e)/6/l+.5};return 0===l?(o=0,i=0):(i=l/u,t=d(s),r=d(a),n=d(c),s===u?o=n-r:a===u?o=1/3+t-n:c===u&&(o=2/3+r-t),o<0?o+=1:o>1&&(o-=1)),[360*o,100*i,100*u]},o.rgb.hwb=function(e){const t=e[0],r=e[1];let n=e[2];const i=o.rgb.hsl(e)[0],s=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[i,100*s,100*n]},o.rgb.cmyk=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,o=Math.min(1-t,1-r,1-n);return[100*((1-t-o)/(1-o)||0),100*((1-r-o)/(1-o)||0),100*((1-n-o)/(1-o)||0),100*o]},o.rgb.keyword=function(e){const t=n[e];if(t)return t;let o,i=1/0;for(const t of Object.keys(r)){const n=r[t],c=(a=n,((s=e)[0]-a[0])**2+(s[1]-a[1])**2+(s[2]-a[2])**2);c<i&&(i=c,o=t)}var s,a;return o},o.keyword.rgb=function(e){return r[e]},o.rgb.xyz=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;return[100*(.4124*t+.3576*r+.1805*n),100*(.2126*t+.7152*r+.0722*n),100*(.0193*t+.1192*r+.9505*n)]},o.rgb.lab=function(e){const t=o.rgb.xyz(e);let r=t[0],n=t[1],i=t[2];r/=95.047,n/=100,i/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;return[116*n-16,500*(r-n),200*(n-i)]},o.hsl.rgb=function(e){const t=e[0]/360,r=e[1]/100,n=e[2]/100;let o,i,s;if(0===r)return s=255*n,[s,s,s];o=n<.5?n*(1+r):n+r-n*r;const a=2*n-o,c=[0,0,0];for(let e=0;e<3;e++)i=t+1/3*-(e-1),i<0&&i++,i>1&&i--,s=6*i<1?a+6*(o-a)*i:2*i<1?o:3*i<2?a+(o-a)*(2/3-i)*6:a,c[e]=255*s;return c},o.hsl.hsv=function(e){const t=e[0];let r=e[1]/100,n=e[2]/100,o=r;const i=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,o*=i<=1?i:2-i;return[t,100*(0===n?2*o/(i+o):2*r/(n+r)),100*((n+r)/2)]},o.hsv.rgb=function(e){const t=e[0]/60,r=e[1]/100;let n=e[2]/100;const o=Math.floor(t)%6,i=t-Math.floor(t),s=255*n*(1-r),a=255*n*(1-r*i),c=255*n*(1-r*(1-i));switch(n*=255,o){case 0:return[n,c,s];case 1:return[a,n,s];case 2:return[s,n,c];case 3:return[s,a,n];case 4:return[c,s,n];case 5:return[n,s,a]}},o.hsv.hsl=function(e){const t=e[0],r=e[1]/100,n=e[2]/100,o=Math.max(n,.01);let i,s;s=(2-r)*n;const a=(2-r)*o;return i=r*o,i/=a<=1?a:2-a,i=i||0,s/=2,[t,100*i,100*s]},o.hwb.rgb=function(e){const t=e[0]/360;let r=e[1]/100,n=e[2]/100;const o=r+n;let i;o>1&&(r/=o,n/=o);const s=Math.floor(6*t),a=1-n;i=6*t-s,0!=(1&s)&&(i=1-i);const c=r+i*(a-r);let u,l,d;switch(s){default:case 6:case 0:u=a,l=c,d=r;break;case 1:u=c,l=a,d=r;break;case 2:u=r,l=a,d=c;break;case 3:u=r,l=c,d=a;break;case 4:u=c,l=r,d=a;break;case 5:u=a,l=r,d=c}return[255*u,255*l,255*d]},o.cmyk.rgb=function(e){const t=e[0]/100,r=e[1]/100,n=e[2]/100,o=e[3]/100;return[255*(1-Math.min(1,t*(1-o)+o)),255*(1-Math.min(1,r*(1-o)+o)),255*(1-Math.min(1,n*(1-o)+o))]},o.xyz.rgb=function(e){const t=e[0]/100,r=e[1]/100,n=e[2]/100;let o,i,s;return o=3.2406*t+-1.5372*r+-.4986*n,i=-.9689*t+1.8758*r+.0415*n,s=.0557*t+-.204*r+1.057*n,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,i=i>.0031308?1.055*i**(1/2.4)-.055:12.92*i,s=s>.0031308?1.055*s**(1/2.4)-.055:12.92*s,o=Math.min(Math.max(0,o),1),i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),[255*o,255*i,255*s]},o.xyz.lab=function(e){let t=e[0],r=e[1],n=e[2];t/=95.047,r/=100,n/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;return[116*r-16,500*(t-r),200*(r-n)]},o.lab.xyz=function(e){let t,r,n;r=(e[0]+16)/116,t=e[1]/500+r,n=r-e[2]/200;const o=r**3,i=t**3,s=n**3;return r=o>.008856?o:(r-16/116)/7.787,t=i>.008856?i:(t-16/116)/7.787,n=s>.008856?s:(n-16/116)/7.787,t*=95.047,r*=100,n*=108.883,[t,r,n]},o.lab.lch=function(e){const t=e[0],r=e[1],n=e[2];let o;o=360*Math.atan2(n,r)/2/Math.PI,o<0&&(o+=360);return[t,Math.sqrt(r*r+n*n),o]},o.lch.lab=function(e){const t=e[0],r=e[1],n=e[2]/360*2*Math.PI;return[t,r*Math.cos(n),r*Math.sin(n)]},o.rgb.ansi16=function(e,t=null){const[r,n,i]=e;let s=null===t?o.rgb.hsv(e)[2]:t;if(s=Math.round(s/50),0===s)return 30;let a=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return 2===s&&(a+=60),a},o.hsv.ansi16=function(e){return o.rgb.ansi16(o.hsv.rgb(e),e[2])},o.rgb.ansi256=function(e){const t=e[0],r=e[1],n=e[2];if(t===r&&r===n)return t<8?16:t>248?231:Math.round((t-8)/247*24)+232;return 16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},o.ansi16.rgb=function(e){let t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const r=.5*(1+~~(e>50));return[(1&t)*r*255,(t>>1&1)*r*255,(t>>2&1)*r*255]},o.ansi256.rgb=function(e){if(e>=232){const t=10*(e-232)+8;return[t,t,t]}let t;e-=16;return[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},o.rgb.hex=function(e){const t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},o.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];3===t[0].length&&(r=r.split("").map((e=>e+e)).join(""));const n=parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},o.rgb.hcg=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,o=Math.max(Math.max(t,r),n),i=Math.min(Math.min(t,r),n),s=o-i;let a,c;return a=s<1?i/(1-s):0,c=s<=0?0:o===t?(r-n)/s%6:o===r?2+(n-t)/s:4+(t-r)/s,c/=6,c%=1,[360*c,100*s,100*a]},o.hsl.hcg=function(e){const t=e[1]/100,r=e[2]/100,n=r<.5?2*t*r:2*t*(1-r);let o=0;return n<1&&(o=(r-.5*n)/(1-n)),[e[0],100*n,100*o]},o.hsv.hcg=function(e){const t=e[1]/100,r=e[2]/100,n=t*r;let o=0;return n<1&&(o=(r-n)/(1-n)),[e[0],100*n,100*o]},o.hcg.rgb=function(e){const t=e[0]/360,r=e[1]/100,n=e[2]/100;if(0===r)return[255*n,255*n,255*n];const o=[0,0,0],i=t%1*6,s=i%1,a=1-s;let c=0;switch(Math.floor(i)){case 0:o[0]=1,o[1]=s,o[2]=0;break;case 1:o[0]=a,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=s;break;case 3:o[0]=0,o[1]=a,o[2]=1;break;case 4:o[0]=s,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=a}return c=(1-r)*n,[255*(r*o[0]+c),255*(r*o[1]+c),255*(r*o[2]+c)]},o.hcg.hsv=function(e){const t=e[1]/100,r=t+e[2]/100*(1-t);let n=0;return r>0&&(n=t/r),[e[0],100*n,100*r]},o.hcg.hsl=function(e){const t=e[1]/100,r=e[2]/100*(1-t)+.5*t;let n=0;return r>0&&r<.5?n=t/(2*r):r>=.5&&r<1&&(n=t/(2*(1-r))),[e[0],100*n,100*r]},o.hcg.hwb=function(e){const t=e[1]/100,r=t+e[2]/100*(1-t);return[e[0],100*(r-t),100*(1-r)]},o.hwb.hcg=function(e){const t=e[1]/100,r=1-e[2]/100,n=r-t;let o=0;return n<1&&(o=(r-n)/(1-n)),[e[0],100*n,100*o]},o.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},o.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},o.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},o.gray.hsl=function(e){return[0,0,e[0]]},o.gray.hsv=o.gray.hsl,o.gray.hwb=function(e){return[0,100,e[0]]},o.gray.cmyk=function(e){return[0,0,0,e[0]]},o.gray.lab=function(e){return[e[0],0,0]},o.gray.hex=function(e){const t=255&Math.round(e[0]/100*255),r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r},o.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}})),P.register("iOoWQ",(function(e,t){"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}})),P.register("2IZoC",(function(e,t){var r=P("gJ0Vv");function n(e){const t=function(){const e={},t=Object.keys(r);for(let r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}(),n=[e];for(t[e].distance=0;n.length;){const e=n.pop(),o=Object.keys(r[e]);for(let r=o.length,i=0;i<r;i++){const r=o[i],s=t[r];-1===s.distance&&(s.distance=t[e].distance+1,s.parent=e,n.unshift(r))}}return t}function o(e,t){return function(r){return t(e(r))}}function i(e,t){const n=[t[e].parent,e];let i=r[t[e].parent][e],s=t[e].parent;for(;t[s].parent;)n.unshift(t[s].parent),i=o(r[t[s].parent][s],i),s=t[s].parent;return i.conversion=n,i}e.exports=function(e){const t=n(e),r={},o=Object.keys(t);for(let e=o.length,n=0;n<e;n++){const e=o[n];null!==t[e].parent&&(r[e]=i(e,t))}return r}})),P.register("enYgM",(function(e,t){"use strict";e.exports={stdout:!1,stderr:!1}})),P.register("lXemD",(function(e,t){"use strict";e.exports={stringReplaceAll:(e,t,r)=>{let n=e.indexOf(t);if(-1===n)return e;const o=t.length;let i=0,s="";do{s+=e.substr(i,n-i)+t+r,i=n+o,n=e.indexOf(t,i)}while(-1!==n);return s+=e.substr(i),s},stringEncaseCRLFWithFirstIndex:(e,t,r,n)=>{let o=0,i="";do{const s="\r"===e[n-1];i+=e.substr(o,(s?n-1:n)-o)+t+(s?"\r\n":"\n")+r,o=n+1,n=e.indexOf("\n",o)}while(-1!==n);return i+=e.substr(o),i}}})),P.register("wHDJ7",(function(e,t){"use strict";const r=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,n=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,o=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,i=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,s=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function a(e){const t="u"===e[0],r="{"===e[1];return t&&!r&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):t&&r?String.fromCodePoint(parseInt(e.slice(2,-1),16)):s.get(e)||e}function c(e,t){const r=[],n=t.trim().split(/\s*,\s*/g);let s;for(const t of n){const n=Number(t);if(Number.isNaN(n)){if(!(s=t.match(o)))throw new Error(`Invalid Chalk template style argument: ${t} (in style '${e}')`);r.push(s[2].replace(i,((e,t,r)=>t?a(t):r)))}else r.push(n)}return r}function u(e){n.lastIndex=0;const t=[];let r;for(;null!==(r=n.exec(e));){const e=r[1];if(r[2]){const n=c(e,r[2]);t.push([e].concat(n))}else t.push([e])}return t}function l(e,t){const r={};for(const e of t)for(const t of e.styles)r[t[0]]=e.inverse?null:t.slice(1);let n=e;for(const[e,t]of Object.entries(r))if(Array.isArray(t)){if(!(e in n))throw new Error(`Unknown Chalk style: ${e}`);n=t.length>0?n[e](...t):n[e]}return n}e.exports=(e,t)=>{const n=[],o=[];let i=[];if(t.replace(r,((t,r,s,c,d,p)=>{if(r)i.push(a(r));else if(c){const t=i.join("");i=[],o.push(0===n.length?t:l(e,n)(t)),n.push({inverse:s,styles:u(c)})}else if(d){if(0===n.length)throw new Error("Found extraneous } in Chalk template literal");o.push(l(e,n)(i.join(""))),i=[],n.pop()}else i.push(p)})),o.push(i.join("")),n.length>0){const e=`Chalk template literal is missing ${n.length} closing bracket${1===n.length?"":"s"} (\`}\`)`;throw new Error(e)}return o.join("")}})),P.register("lEAwe",(function(e,t){e.exports,n=function(e){"use strict";var t,r,n=function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(t in arguments[r])Object.prototype.hasOwnProperty.call(arguments[r],t)&&(e[t]=arguments[r][t]);return e},o={template:"[%t] %l:",levelFormatter:function(e){return e.toUpperCase()},nameFormatter:function(e){return e||"root"},timestampFormatter:function(e){return e.toTimeString().replace(/.*(\d{2}:\d{2}:\d{2}).*/,"$1")},format:void 0},i={},s=function(e,r){if(!e||!e.setLevel)throw new TypeError("Argument is not a logger");var s=e.methodFactory,a=e.name||"",c=i[a]||i[""]||o;function u(e,t,r){var n=s(e,t,r),o=i[r]||i[""],c=-1!==o.template.indexOf("%t"),u=-1!==o.template.indexOf("%l"),l=-1!==o.template.indexOf("%n");return function(){for(var t="",s=arguments.length,d=Array(s),p=0;p<s;p++)d[p]=arguments[p];if(a||!i[r]){var f=o.timestampFormatter(new Date),h=o.levelFormatter(e),m=o.nameFormatter(r);o.format?t+=o.format(h,m,f):(t+=o.template,c&&(t=t.replace(/%t/,f)),u&&(t=t.replace(/%l/,h)),l&&(t=t.replace(/%n/,m))),d.length&&"string"==typeof d[0]?d[0]=t+" "+d[0]:d.unshift(t)}n.apply(void 0,d)}}return i[a]||(e.methodFactory=u),(r=r||{}).template&&(r.format=void 0),i[a]=n({},c,r),e.setLevel(e.getLevel()),t||e.warn("It is necessary to call the function reg() of loglevel-plugin-prefix before calling apply. From the next release, it will throw an error. See more: https://github.com/kutuluk/loglevel-plugin-prefix/blob/master/README.md"),e},a={reg:function(e){if(!e||!e.getLogger)throw new TypeError("Argument is not a root logger");t=e},apply:s};return e&&(r=e.prefix,a.noConflict=function(){return e.prefix===a&&(e.prefix=r),a}),a},void 0===(o="function"==typeof n?n.call(t,r,t,e):n)||(e.exports=o)})),P.register("5myiz",(function(e,t){"use strict";var r=P("7C7Is");e.exports=e=>"string"==typeof e?e.replace(r(),""):e})),P.register("7C7Is",(function(e,t){"use strict";e.exports=({onlyFirst:e=!1}={})=>{const 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")}})),P.register("alylB",(function(e,t){"use strict";var r=e.exports&&e.exports.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e.exports,"__esModule",{value:!0});const n=r(a);var o=P("jR9TN");e.exports.default=function(e,t){if("@"===e[0]||n.default.isAbsolute(e)){const t=(0,o.safeRequire)(e);if(t)return t}if("string"!=typeof t)throw new Error("No plugin type provided");const r=(0,o.safeRequire)(`@wdio/${e.toLowerCase()}-${t}`);if(r)return r;const i=(0,o.safeRequire)(`wdio-${e.toLowerCase()}-${t}`);if(i)return i;throw new Error(`Couldn't find plugin "${e}" ${t}, neither as wdio scoped package "@wdio/${e.toLowerCase()}-${t}" nor as community package "wdio-${e.toLowerCase()}-${t}". Please make sure you have it installed!`)}})),P.register("jR9TN",(function(e,t){var n=c.Buffer,o=e.exports&&e.exports.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.sleep=e.exports.canAccess=e.exports.isBase64=e.exports.filterSpecArgs=e.exports.isFunctionAsync=e.exports.safeRequire=e.exports.getArgumentType=e.exports.isValidParameter=e.exports.transformCommandLogResult=e.exports.commandCallStructure=e.exports.overwriteElementCommands=void 0;const s=o(i),l=o(a),d='"<Screenshot[base64]>"',p=/return \(function (\w+)/;function f(e){return null===e?"null":typeof e}function h(e){var t=new RegExp("[^A-Z0-9+\\/=]","i");if("string"!=typeof e)throw new Error("Expected string but received invalid type.");const r=e.length;if(!r||r%4!=0||t.test(e))return!1;const n=e.indexOf("=");return-1===n||n===r-1||n===r-2&&"="===e[r-1]}e.exports.overwriteElementCommands=function(e){const t=e.__elementOverrides__?e.__elementOverrides__.value:{};for(const[r,n]of Object.entries(t)){if("function"!=typeof n)throw new Error("overwriteCommand: commands be overwritten only with functions, command: "+r);if(!e[r])throw new Error("overwriteCommand: no command to be overwritten: "+r);if("function"!=typeof e[r].value)throw new Error("overwriteCommand: only functions can be overwritten, command: "+r);const t=e[r].value;delete e[r];const o=function(...e){const r=this;return n.apply(r,[function(){const e=this||r;return t.apply(e,arguments)},...e])};e[r]={value:o,configurable:!0}}delete e.__elementOverrides__,e.__elementOverrides__={value:{}}},e.exports.commandCallStructure=function(e,t){const r=t.map((t=>("string"==typeof t&&(t.startsWith("!function(")||t.startsWith("return (function"))?t="<fn>":"string"==typeof t&&!e.startsWith("findElement")&&h(t)?t=d:"string"==typeof t?t=`"${t}"`:"function"==typeof t?t="<fn>":null===t?t="null":"object"==typeof t?t="<object>":void 0===t&&(t=typeof t),t))).join(", ");return`${e}(${r})`},e.exports.transformCommandLogResult=function(e){if("string"==typeof e.file&&h(e.file))return d;if("string"==typeof e.script&&h(e.script))return'"<Script[base64]>"';if("string"==typeof e.script&&e.script.match(p)){const t=e.script.match(p)[1];return{...e,script:`${t}(...) [${n.byteLength(e.script,"utf-8")} bytes]`}}return e},e.exports.isValidParameter=function(e,t){let r=!1;if("[]"===t.slice(-2)&&(t=t.slice(0,-2),r=!0),r){if(!Array.isArray(e))return!1}else e=[e];for(const r of e){if(!f(r).match(t))return!1}return!0},e.exports.getArgumentType=f,e.exports.safeRequire=function(e){var t,n;let o;try{const r=l.default.join(u.cwd(),"/node_modules");if(null===(t=void 0)||void 0===t?void 0:t.paths.includes(r))o=(void 0)(e);else{null===(n=void 0)||void 0===n||n.paths.push(r);o=(void 0)(e,{paths:(void 0,void 0)})}}catch(e){return null}try{return r(7603)(o)}catch(t){throw new Error(`Couldn't initialise "${e}".\n${t.stack}`)}},e.exports.isFunctionAsync=function(e){return e.constructor&&"AsyncFunction"===e.constructor.name||"async"===e.name},e.exports.filterSpecArgs=function(e){return e.filter((e=>"function"!=typeof e))},e.exports.isBase64=h;e.exports.canAccess=e=>{if(!e)return!1;try{return s.default.accessSync(e),!0}catch(e){return!1}};e.exports.sleep=(e=0)=>new Promise((t=>setTimeout(t,e)))})),P.register("5bL2c",(function(e,t){"use strict";var r=e.exports&&e.exports.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e.exports,"__esModule",{value:!0});const n=r(P("aZBcl"));var o=P("jR9TN");const i={browser:function(){},element:function(){}};e.exports.default=function(e,t,r={}){var s;const a=i[(null===(s=r.scope)||void 0===s?void 0:s.value)||"browser"];delete r.scope;const c=Object.create(a.prototype),u=(0,n.default)("webdriver"),d=new l.EventEmitter,p=Object.getPrototypeOf(d);function f(n,i){if(r.commandList={value:Object.keys(r)},r.options={value:e},r.requestedCapabilities={value:e.requestedCapabilities},"function"==typeof i)for(const[e,{value:t}]of Object.entries(r))"function"==typeof t&&(r[e].value=i(e,t,r),r[e].configurable=!0);o.overwriteElementCommands.call(this,r);const{puppeteer:s,...u}=r;r.__propertiesObject__={value:u};let l=Object.create(c,r);return l.sessionId=n,"Browser"===a.name&&(l.capabilities=e.capabilities),"function"==typeof t&&(l=t(l,e)),l.addCommand=function(e,t,r=!1,n,o){const s="function"==typeof i?i(e,t):t;r?(o&&Object.values(o).forEach((t=>{t.__propertiesObject__[e]={value:s}})),this.__propertiesObject__[e]={value:s}):f.lift(e,s,n)},l.overwriteCommand=function(e,t,r=!1,n,o){let s="function"==typeof i?i(e,t):t;if(r)o?Object.values(o).forEach((t=>{t.__propertiesObject__.__elementOverrides__.value[e]=s})):this.__propertiesObject__.__elementOverrides__.value[e]=s;else{if(!l[e])throw new Error("overwriteCommand: no command to be overwritten: "+e);{const t=l[e];delete l[e],f.lift(e,s,n,((...e)=>t.apply(this,e)))}}},l}f.lift=function(e,t,r,n){(r||c)[e]=function(...r){u.info("COMMAND",(0,o.commandCallStructure)(e,r)),Object.defineProperty(t,"name",{value:e,writable:!1});const i=t.apply(this,n?[n,...r]:r);return Promise.resolve(i).then((t=>{u.info("RESULT",t),this.emit("result",{name:e,result:t})})).catch((()=>{})),i}};for(let e in p)c[e]=function(...t){return d[e](...t),this};return f}})),P.register("1EKyI",(function(e,t){var r=P("hWwBc"),n=P("5Bf8r");e.exports=Object.assign(r,{instanceMethods:n})})),P.register("hWwBc",(function(e,t){e.exports.forEach=async(t,r,n)=>{const o=[];for(let i=0;i<t.length;i++)if(i in t){const s=Promise.resolve(t[i]).then((o=>r.call(n||e.exports,o,i,t)));o.push(s)}await Promise.all(o)},e.exports.forEachSeries=async(t,r,n)=>{for(let o=0;o<t.length;o++)o in t&&await r.call(n||e.exports,await t[o],o,t)},e.exports.map=async(t,r,n)=>{const o=[];for(let i=0;i<t.length;i++)i in t&&(o[i]=Promise.resolve(t[i]).then((o=>r.call(n||e.exports,o,i,t))));return Promise.all(o)},e.exports.mapSeries=async(t,r,n)=>{const o=[];for(let i=0;i<t.length;i++)i in t&&(o[i]=await r.call(n||e.exports,await t[i],i,t));return o},e.exports.find=(t,r,n)=>new Promise(((o,i)=>{if(0===t.length)return o();let s=1;for(let a=0;a<t.length;a++){const c=e=>{e?o(t[a]):s===t.length&&o(),s++};Promise.resolve(t[a]).then((o=>r.call(n||e.exports,o,a,t))).then(c).catch(i)}})),e.exports.findSeries=async(t,r,n)=>{for(let o=0;o<t.length;o++)if(await r.call(n||e.exports,await t[o],o,t))return t[o]},e.exports.findIndex=(t,r,n)=>new Promise(((o,i)=>{if(0===t.length)return o(-1);let s=1;for(let a=0;a<t.length;a++){const c=e=>{e?o(a):s===t.length&&o(-1),s++};Promise.resolve(t[a]).then((o=>r.call(n||e.exports,o,a,t))).then(c).catch(i)}})),e.exports.findIndexSeries=async(t,r,n)=>{for(let o=0;o<t.length;o++)if(await r.call(n||e.exports,await t[o],o,t))return o},e.exports.some=(t,r,n)=>new Promise(((o,i)=>{if(0===t.length)return o(!1);let s=1;for(let a=0;a<t.length;a++){if(!(a in t)){s++;continue}const c=e=>{e?o(!0):s===t.length&&o(!1),s++};Promise.resolve(t[a]).then((o=>r.call(n||e.exports,o,a,t))).then(c).catch(i)}})),e.exports.someSeries=async(t,r,n)=>{for(let o=0;o<t.length;o++)if(o in t&&await r.call(n||e.exports,await t[o],o,t))return!0;return!1},e.exports.every=(t,r,n)=>new Promise(((o,i)=>{if(0===t.length)return o(!0);let s=1;for(let a=0;a<t.length;a++){if(!(a in t)){s++;continue}const c=e=>{e?s===t.length&&o(!0):o(!1),s++};Promise.resolve(t[a]).then((o=>r.call(n||e.exports,o,a,t))).then(c).catch(i)}})),e.exports.everySeries=async(t,r,n)=>{for(let o=0;o<t.length;o++)if(o in t&&!await r.call(n||e.exports,await t[o],o,t))return!1;return!0},e.exports.filter=(t,r,n)=>new Promise((async(o,i)=>{const s=[];for(let o=0;o<t.length;o++)o in t&&(s[o]=Promise.resolve(t[o]).then((i=>r.call(n||e.exports,i,o,t))).catch(i));const a=[];for(let e=0;e<s.length;e++)await s[e]&&a.push(await t[e]);o(a)})),e.exports.filterSeries=async(t,r,n)=>{const o=[];for(let i=0;i<t.length;i++)i in t&&await r.call(n||e.exports,await t[i],i,t)&&o.push(await t[i]);return o},e.exports.reduce=async(e,t,r)=>{if(0===e.length&&void 0===r)throw TypeError("Reduce of empty array with no initial value");let n,o;for(void 0!==r?(o=r,n=0):(o=e[0],n=1);n<e.length;n++)n in e&&(o=await t(await o,await e[n],n,e));return o}})),P.register("5Bf8r",(function(e,t){var r=P("hWwBc");Object.keys(r).forEach((t=>{const n=t.charAt(0).toUpperCase()+t.slice(1);e.exports[`async${n}`]=async function(...e){return r[t](this,...e)}}))})),P.register("3mjWR",(function(e,t){"use strict";var r=e.exports&&e.exports.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e.exports,"__esModule",{value:!0});const n=r(P("abZPr")),o=r(P("aZBcl")),i=r(P("g4wF9")),s=r(P("7tc1X"));var a=P("gSLCk"),c=P("hByiW");c=P("hByiW");const u=(0,o.default)("@wdio/config:ConfigParser"),l={clone:!1};class d{constructor(e=new s.default,t=new i.default){this._pathService=e,this._moduleRequireService=t,this._config=(0,c.DEFAULT_CONFIGS)(),this._capabilities=[]}autoCompile(){this._config.autoCompileOpts&&!(0,a.loadAutoCompilers)(this._config.autoCompileOpts,this._moduleRequireService)&&u.debug("No compiler found, continue without compiling files")}addConfigFile(e){if("string"!=typeof e)throw new Error("addConfigFile requires filepath");const t=this._pathService.ensureAbsolutePath(e);try{const e=this._pathService.loadFile(t).config;if("object"!=typeof e)throw new Error("addConfigEntry requires config key");const r=(0,n.default)(e,{},l),o=Array.isArray(this._capabilities)?[]:{};this._capabilities=(0,n.default)(this._capabilities,r.capabilities||o,l),delete r.capabilities,this.addService(r);for(let e of c.SUPPORTED_HOOKS)delete r[e];this._config=(0,n.default)(this._config,r,l),delete this._config.watch}catch(e){throw u.error(`Failed loading configuration file: ${t}:`,e.message),e}}merge(e={}){const t=Array.isArray(e.spec)?e.spec:[],r=Array.isArray(e.exclude)?e.exclude:[];this._config=(0,n.default)(this._config,e,l),e.specs&&e.specs.length>0?this._config.specs=e.specs:e.exclude&&e.exclude.length>0&&(this._config.exclude=e.exclude),this._capabilities=(0,a.validObjectOrArray)(this._config.capabilities)?this._config.capabilities:this._capabilities,this._config.spec&&(0,a.isCucumberFeatureWithLineNumber)(this._config.spec)&&(this._config.cucumberFeaturesWithLineNumbers=Array.isArray(this._config.spec)?[...this._config.spec]:[this._config.spec]),t.length>0&&(this._config.specs=this.setFilePathToFilterOptions(t,this._config.specs)),r.length>0&&(this._config.exclude=this.setFilePathToFilterOptions(r,this._config.exclude))}addService(e){const t=(t,r)=>{const n=this._config[t];this._config[t]=n?"function"==typeof n?[n,r.bind(e)]:[...n,r.bind(e)]:r.bind(e)};for(const r of c.SUPPORTED_HOOKS){const n=e[r];if(n)if("function"==typeof n)t(r,n);else if(Array.isArray(n))for(const e of n)"function"==typeof e&&t(r,e)}}getSpecs(e,t){var r;const n=Array.isArray(this._config.spec);let o=d.getFilePaths(this._config.specs,void 0,this._pathService),i=d.getFilePaths(this._config.exclude,void 0,this._pathService),s=Array.isArray(this._config.suite)?this._config.suite:[];if(Array.isArray(t)&&0===i.length&&(i=d.getFilePaths(t,void 0,this._pathService)),!n&&Array.isArray(e)&&(o=d.getFilePaths(e,void 0,this._pathService)),s.length>0){let e=[];for(let t of s){let n=null===(r=this._config.suites)||void 0===r?void 0:r[t];n||u.warn(`No suite was found with name "${t}"`),Array.isArray(n)&&(e=e.concat(d.getFilePaths(n,void 0,this._pathService)))}if(0===e.length)throw new Error(`The suite(s) "${s.join('", "')}" you specified don't exist in your config file or doesn't contain any files!`);o=n?[...o,...e]:e}return o=[...new Set(o)],this.filterSpecs(o,i)}setFilePathToFilterOptions(e,t){const r=new Set,n=d.getFilePaths(t,void 0,this._pathService);if(e.forEach((e=>{e=(0,a.removeLineNumbers)(e);let t=d.getFilePaths(this._pathService.glob(e),void 0,this._pathService);this._pathService.isFile(e)?r.add(this._pathService.ensureAbsolutePath(e)):t.length?t.forEach((e=>r.add(e))):n.forEach((t=>{"string"==typeof t?t.match(e)&&r.add(t):Array.isArray(t)?t.forEach((t=>{t.match(e)&&r.add(t)})):u.warn("Unexpected entry in specs that is neither string nor array: ",t)}))})),0===r.size)throw new Error(`spec file(s) ${e.join(", ")} not found`);return[...r]}getConfig(){return this._config}getCapabilities(e){return"number"==typeof e&&Array.isArray(this._capabilities)&&this._capabilities[e]?this._capabilities[e]:this._capabilities}static getFilePaths(e,t,r=new s.default,o){let i=[],p=[];if("string"==typeof e&&(e=[e]),!Array.isArray(e))throw new Error("specs or exclude property should be an array of strings, specs may also be an array of string arrays");e=e.map((e=>Array.isArray(e)?e.map((e=>(0,a.removeLineNumbers)(e))):(0,a.removeLineNumbers)(e)));for(let s of e)if(Array.isArray(s)&&!o)p=d.getFilePaths(s,t,r,1),i.push(p);else if(Array.isArray(s)&&o)u.error("Unexpected depth of hierarchical arrays");else{s=s.toString().replace(/\\/g,"/");let e=r.glob(s);e=e.filter((e=>c.SUPPORTED_FILE_EXTENSIONS.find((t=>e.endsWith(t))))),e=e.map((e=>r.ensureAbsolutePath(e))),0!==e.length||t||u.warn("pattern",s,"did not match any file"),i=(0,n.default)(i,e,l)}return i}filterSpecs(e,t){return e.reduce(((e,r)=>(Array.isArray(r)?e.push(r.filter((e=>!t.includes(e)))):-1===t.indexOf(r)&&e.push(r),e)),[])}}e.exports.default=d})),P.register("abZPr",(function(e,t){"use strict";var r=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===n}(e)}(e)};var n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function o(e,t){return!1!==t.clone&&t.isMergeableObject(e)?u((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function i(e,t,r){return e.concat(t).map((function(e){return o(e,r)}))}function s(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function a(e,t){try{return t in e}catch(e){return!1}}function c(e,t,r){var n={};return r.isMergeableObject(e)&&s(e).forEach((function(t){n[t]=o(e[t],r)})),s(t).forEach((function(i){(function(e,t){return a(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(a(e,i)&&r.isMergeableObject(t[i])?n[i]=function(e,t){if(!t.customMerge)return u;var r=t.customMerge(e);return"function"==typeof r?r:u}(i,r)(e[i],t[i],r):n[i]=o(t[i],r))})),n}function u(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||i,n.isMergeableObject=n.isMergeableObject||r,n.cloneUnlessOtherwiseSpecified=o;var s=Array.isArray(t);return s===Array.isArray(e)?s?n.arrayMerge(e,t,n):c(e,t,n):o(t,n)}u.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,r){return u(e,r,t)}),{})};var l=u;e.exports=l})),P.register("g4wF9",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0});e.exports.default=class{require(e){return r(7603)(e)}resolve(e,t){return(void 0)(e,t)}}})),P.register("7tc1X",(function(e,t){"use strict";var n=e.exports&&e.exports.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e.exports,"__esModule",{value:!0});const o=n(i),s=n(a),c=n(P("65WU1"));e.exports.default=class{getcwd(){const e=u.cwd();if(void 0===e)throw new Error("Unable to find current working directory from process");return e}loadFile(e){if(!e)throw new Error("A path is required");return r(7603)(e)}isFile(e){return o.default.existsSync(e)&&o.default.lstatSync(e).isFile()}glob(e){return c.default.sync(e)}ensureAbsolutePath(e){return s.default.isAbsolute(e)?s.default.normalize(e):s.default.resolve(this.getcwd(),e)}}})),P.register("65WU1",(function(e,t){e.exports=v;var r=P("feGOm"),n=P("kF2SX"),o=(n.Minimatch,P("4gPgC")),i=l.EventEmitter,s=a.isAbsolute,c=P("6R9w4"),p=P("dJrmR"),f=p.setopts,h=p.ownProp,m=P("iyvjv"),g=p.childrenIgnored,y=p.isIgnored,b=P("I2OjK");function v(e,t,r){if("function"==typeof t&&(r=t,t={}),t||(t={}),t.sync){if(r)throw new TypeError("callback provided to sync glob");return c(e,t)}return new _(e,t,r)}v.sync=c;var w=v.GlobSync=c.GlobSync;function _(e,t,r){if("function"==typeof t&&(r=t,t=null),t&&t.sync){if(r)throw new TypeError("callback provided to sync glob");return new w(e,t)}if(!(this instanceof _))return new _(e,t,r);f(this,e,t),this._didRealPath=!1;var n=this.minimatch.set.length;this.matches=new Array(n),"function"==typeof r&&(r=b(r),this.on("error",r),this.on("end",(function(e){r(null,e)})));var o=this;if(this._processing=0,this._emitQueue=[],this._processQueue=[],this.paused=!1,this.noprocess)return this;if(0===n)return a();for(var i=!0,s=0;s<n;s++)this._process(this.minimatch.set[s],s,!1,a);function a(){--o._processing,o._processing<=0&&(i?u.nextTick((function(){o._finish()})):o._finish())}i=!1}v.glob=v,v.hasMagic=function(e,t){var r=function(e,t){if(null===t||"object"!=typeof t)return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e}({},t);r.noprocess=!0;var n=new _(e,r).minimatch.set;if(!e)return!1;if(n.length>1)return!0;for(var o=0;o<n[0].length;o++)if("string"!=typeof n[0][o])return!0;return!1},v.Glob=_,o(_,i),_.prototype._finish=function(){if(d(this instanceof _),!this.aborted){if(this.realpath&&!this._didRealpath)return this._realpath();p.finish(this),this.emit("end",this.found)}},_.prototype._realpath=function(){if(!this._didRealpath){this._didRealpath=!0;var e=this.matches.length;if(0===e)return this._finish();for(var t=this,r=0;r<this.matches.length;r++)this._realpathSet(r,n)}function n(){0==--e&&t._finish()}},_.prototype._realpathSet=function(e,t){var n=this.matches[e];if(!n)return t();var o=Object.keys(n),i=this,s=o.length;if(0===s)return t();var a=this.matches[e]=Object.create(null);o.forEach((function(n,o){n=i._makeAbs(n),r.realpath(n,i.realpathCache,(function(r,o){r?"stat"===r.syscall?a[n]=!0:i.emit("error",r):a[o]=!0,0==--s&&(i.matches[e]=a,t())}))}))},_.prototype._mark=function(e){return p.mark(this,e)},_.prototype._makeAbs=function(e){return p.makeAbs(this,e)},_.prototype.abort=function(){this.aborted=!0,this.emit("abort")},_.prototype.pause=function(){this.paused||(this.paused=!0,this.emit("pause"))},_.prototype.resume=function(){if(this.paused){if(this.emit("resume"),this.paused=!1,this._emitQueue.length){var e=this._emitQueue.slice(0);this._emitQueue.length=0;for(var t=0;t<e.length;t++){var r=e[t];this._emitMatch(r[0],r[1])}}if(this._processQueue.length){var n=this._processQueue.slice(0);this._processQueue.length=0;for(t=0;t<n.length;t++){var o=n[t];this._processing--,this._process(o[0],o[1],o[2],o[3])}}}},_.prototype._process=function(e,t,r,o){if(d(this instanceof _),d("function"==typeof o),!this.aborted)if(this._processing++,this.paused)this._processQueue.push([e,t,r,o]);else{for(var i,a=0;"string"==typeof e[a];)a++;switch(a){case e.length:return void this._processSimple(e.join("/"),t,o);case 0:i=null;break;default:i=e.slice(0,a).join("/")}var c,u=e.slice(a);null===i?c=".":s(i)||s(e.map((function(e){return"string"==typeof e?e:"[*]"})).join("/"))?(i&&s(i)||(i="/"+i),c=i):c=i;var l=this._makeAbs(c);if(g(this,c))return o();u[0]===n.GLOBSTAR?this._processGlobStar(i,c,l,u,t,r,o):this._processReaddir(i,c,l,u,t,r,o)}},_.prototype._processReaddir=function(e,t,r,n,o,i,s){var a=this;this._readdir(r,i,(function(c,u){return a._processReaddir2(e,t,r,n,o,i,u,s)}))},_.prototype._processReaddir2=function(e,t,r,n,o,i,s,c){if(!s)return c();for(var u=n[0],l=!!this.minimatch.negate,d=u._glob,p=this.dot||"."===d.charAt(0),f=[],h=0;h<s.length;h++){if("."!==(g=s[h]).charAt(0)||p)(l&&!e?!g.match(u):g.match(u))&&f.push(g)}var m=f.length;if(0===m)return c();if(1===n.length&&!this.mark&&!this.stat){this.matches[o]||(this.matches[o]=Object.create(null));for(h=0;h<m;h++){var g=f[h];e&&(g="/"!==e?e+"/"+g:e+g),"/"!==g.charAt(0)||this.nomount||(g=a.join(this.root,g)),this._emitMatch(o,g)}return c()}n.shift();for(h=0;h<m;h++){g=f[h];e&&(g="/"!==e?e+"/"+g:e+g),this._process([g].concat(n),o,i,c)}c()},_.prototype._emitMatch=function(e,t){if(!this.aborted&&!y(this,t))if(this.paused)this._emitQueue.push([e,t]);else{var r=s(t)?t:this._makeAbs(t);if(this.mark&&(t=this._mark(t)),this.absolute&&(t=r),!this.matches[e][t]){if(this.nodir){var n=this.cache[r];if("DIR"===n||Array.isArray(n))return}this.matches[e][t]=!0;var o=this.statCache[r];o&&this.emit("stat",t,o),this.emit("match",t)}}},_.prototype._readdirInGlobStar=function(e,t){if(!this.aborted){if(this.follow)return this._readdir(e,!1,t);var r=this,n=m("lstat\0"+e,(function(n,o){if(n&&"ENOENT"===n.code)return t();var i=o&&o.isSymbolicLink();r.symlinks[e]=i,i||!o||o.isDirectory()?r._readdir(e,!1,t):(r.cache[e]="FILE",t())}));n&&r.fs.lstat(e,n)}},_.prototype._readdir=function(e,t,r){if(!this.aborted&&(r=m("readdir\0"+e+"\0"+t,r))){if(t&&!h(this.symlinks,e))return this._readdirInGlobStar(e,r);if(h(this.cache,e)){var n=this.cache[e];if(!n||"FILE"===n)return r();if(Array.isArray(n))return r(null,n)}this.fs.readdir(e,function(e,t,r){return function(n,o){n?e._readdirError(t,n,r):e._readdirEntries(t,o,r)}}(this,e,r))}},_.prototype._readdirEntries=function(e,t,r){if(!this.aborted){if(!this.mark&&!this.stat)for(var n=0;n<t.length;n++){var o=t[n];o="/"===e?e+o:e+"/"+o,this.cache[o]=!0}return this.cache[e]=t,r(null,t)}},_.prototype._readdirError=function(e,t,r){if(!this.aborted){switch(t.code){case"ENOTSUP":case"ENOTDIR":var n=this._makeAbs(e);if(this.cache[n]="FILE",n===this.cwdAbs){var o=new Error(t.code+" invalid cwd "+this.cwd);o.path=this.cwd,o.code=t.code,this.emit("error",o),this.abort()}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(e)]=!1;break;default:this.cache[this._makeAbs(e)]=!1,this.strict&&(this.emit("error",t),this.abort()),this.silent||console.error("glob error",t)}return r()}},_.prototype._processGlobStar=function(e,t,r,n,o,i,s){var a=this;this._readdir(r,i,(function(c,u){a._processGlobStar2(e,t,r,n,o,i,u,s)}))},_.prototype._processGlobStar2=function(e,t,r,n,o,i,s,a){if(!s)return a();var c=n.slice(1),u=e?[e]:[],l=u.concat(c);this._process(l,o,!1,a);var d=this.symlinks[r],p=s.length;if(d&&i)return a();for(var f=0;f<p;f++){if("."!==s[f].charAt(0)||this.dot){var h=u.concat(s[f],c);this._process(h,o,!0,a);var m=u.concat(s[f],n);this._process(m,o,!0,a)}}a()},_.prototype._processSimple=function(e,t,r){var n=this;this._stat(e,(function(o,i){n._processSimple2(e,t,o,i,r)}))},_.prototype._processSimple2=function(e,t,r,n,o){if(this.matches[t]||(this.matches[t]=Object.create(null)),!n)return o();if(e&&s(e)&&!this.nomount){var i=/[\/\\]$/.test(e);"/"===e.charAt(0)?e=a.join(this.root,e):(e=a.resolve(this.root,e),i&&(e+="/"))}"win32"===u.platform&&(e=e.replace(/\\/g,"/")),this._emitMatch(t,e),o()},_.prototype._stat=function(e,t){var r=this._makeAbs(e),n="/"===e.slice(-1);if(e.length>this.maxLength)return t();if(!this.stat&&h(this.cache,r)){var o=this.cache[r];if(Array.isArray(o)&&(o="DIR"),!n||"DIR"===o)return t(null,o);if(n&&"FILE"===o)return t()}var i=this.statCache[r];if(void 0!==i){if(!1===i)return t(null,i);var s=i.isDirectory()?"DIR":"FILE";return n&&"FILE"===s?t():t(null,s,i)}var a=this,c=m("stat\0"+r,(function(n,o){if(o&&o.isSymbolicLink())return a.fs.stat(r,(function(n,i){n?a._stat2(e,r,null,o,t):a._stat2(e,r,n,i,t)}));a._stat2(e,r,n,o,t)}));c&&a.fs.lstat(r,c)},_.prototype._stat2=function(e,t,r,n,o){if(r&&("ENOENT"===r.code||"ENOTDIR"===r.code))return this.statCache[t]=!1,o();var i="/"===e.slice(-1);if(this.statCache[t]=n,"/"===t.slice(-1)&&n&&!n.isDirectory())return o(null,!1,n);var s=!0;return n&&(s=n.isDirectory()?"DIR":"FILE"),this.cache[t]=this.cache[t]||s,i&&"FILE"===s?o():o(null,s,n)}})),P.register("feGOm",(function(e,t){e.exports=l,l.realpath=l,l.sync=d,l.realpathSync=d,l.monkeypatch=function(){i.realpath=l,i.realpathSync=d},l.unmonkeypatch=function(){i.realpath=r,i.realpathSync=n};var r=i.realpath,n=i.realpathSync,o=u.version,s=/^v[0-5]\./.test(o),a=P("34BOU");function c(e){return e&&"realpath"===e.syscall&&("ELOOP"===e.code||"ENOMEM"===e.code||"ENAMETOOLONG"===e.code)}function l(e,t,n){if(s)return r(e,t,n);"function"==typeof t&&(n=t,t=null),r(e,t,(function(r,o){c(r)?a.realpath(e,t,n):n(r,o)}))}function d(e,t){if(s)return n(e,t);try{return n(e,t)}catch(r){if(c(r))return a.realpathSync(e,t);throw r}}})),P.register("34BOU",(function(e,t){var r,n;E(e.exports,"realpathSync",(()=>r),(e=>r=e)),E(e.exports,"realpath",(()=>n),(e=>n=e));var o="win32"===u.platform,s=void 0;function c(e){return"function"==typeof e?e:function(){var e;if(s){var t=new Error;e=function(e){e&&(t.message=e.message,r(e=t))}}else e=r;return e;function r(e){if(e){if(u.throwDeprecation)throw e;if(!u.noDeprecation){var t="fs: missing callback "+(e.stack||e.message);u.traceDeprecation?console.trace(t):console.error(t)}}}}()}a.normalize;if(o)var l=/(.*?)(?:[\/\\]+|$)/g;else l=/(.*?)(?:[\/]+|$)/g;if(o)var d=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/;else d=/^[\/]*/;r=function(e,t){if(e=a.resolve(e),t&&Object.prototype.hasOwnProperty.call(t,e))return t[e];var r,n,s,c,u=e,p={},f={};function h(){var t=d.exec(e);r=t[0].length,n=t[0],s=t[0],c="",o&&!f[s]&&(i.lstatSync(s),f[s]=!0)}for(h();r<e.length;){l.lastIndex=r;var m=l.exec(e);if(c=n,n+=m[0],s=c+m[1],r=l.lastIndex,!(f[s]||t&&t[s]===s)){var g;if(t&&Object.prototype.hasOwnProperty.call(t,s))g=t[s];else{var y=i.lstatSync(s);if(!y.isSymbolicLink()){f[s]=!0,t&&(t[s]=s);continue}var b=null;if(!o){var v=y.dev.toString(32)+":"+y.ino.toString(32);p.hasOwnProperty(v)&&(b=p[v])}null===b&&(i.statSync(s),b=i.readlinkSync(s)),g=a.resolve(c,b),t&&(t[s]=g),o||(p[v]=b)}e=a.resolve(g,e.slice(r)),h()}}return t&&(t[u]=e),e},n=function(e,t,r){if("function"!=typeof r&&(r=c(t),t=null),e=a.resolve(e),t&&Object.prototype.hasOwnProperty.call(t,e))return u.nextTick(r.bind(null,null,t[e]));var n,s,p,f,h=e,m={},g={};function y(){var t=d.exec(e);n=t[0].length,s=t[0],p=t[0],f="",o&&!g[p]?i.lstat(p,(function(e){if(e)return r(e);g[p]=!0,b()})):u.nextTick(b)}function b(){if(n>=e.length)return t&&(t[h]=e),r(null,e);l.lastIndex=n;var o=l.exec(e);return f=s,s+=o[0],p=f+o[1],n=l.lastIndex,g[p]||t&&t[p]===p?u.nextTick(b):t&&Object.prototype.hasOwnProperty.call(t,p)?_(t[p]):i.lstat(p,v)}function v(e,n){if(e)return r(e);if(!n.isSymbolicLink())return g[p]=!0,t&&(t[p]=p),u.nextTick(b);if(!o){var s=n.dev.toString(32)+":"+n.ino.toString(32);if(m.hasOwnProperty(s))return w(null,m[s],p)}i.stat(p,(function(e){if(e)return r(e);i.readlink(p,(function(e,t){o||(m[s]=t),w(e,t)}))}))}function w(e,n,o){if(e)return r(e);var i=a.resolve(f,n);t&&(t[o]=i),_(i)}function _(t){e=a.resolve(t,e.slice(n)),y()}y()}})),P.register("kF2SX",(function(e,t){const r=e.exports=(e,t,r={})=>(m(t),!(!r.nocomment&&"#"===t.charAt(0))&&new y(t,r).match(e));e.exports=r;var n=P("825Hb");r.sep=n.sep;const o=Symbol("globstar **");r.GLOBSTAR=o;var i=P("lzovL");const s={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},a="[^/]",c=a+"*?",u=e=>e.split("").reduce(((e,t)=>(e[t]=!0,e)),{}),l=u("().*{}+?[]^$\\!"),d=u("[.("),p=/\/+/;r.filter=(e,t={})=>(n,o,i)=>r(n,e,t);const f=(e,t={})=>{const r={};return Object.keys(e).forEach((t=>r[t]=e[t])),Object.keys(t).forEach((e=>r[e]=t[e])),r};r.defaults=e=>{if(!e||"object"!=typeof e||!Object.keys(e).length)return r;const t=r,n=(r,n,o)=>t(r,n,f(e,o));return(n.Minimatch=class extends t.Minimatch{constructor(t,r){super(t,f(e,r))}}).defaults=r=>t.defaults(f(e,r)).Minimatch,n.filter=(r,n)=>t.filter(r,f(e,n)),n.defaults=r=>t.defaults(f(e,r)),n.makeRe=(r,n)=>t.makeRe(r,f(e,n)),n.braceExpand=(r,n)=>t.braceExpand(r,f(e,n)),n.match=(r,n,o)=>t.match(r,n,f(e,o)),n},r.braceExpand=(e,t)=>h(e,t);const h=(e,t={})=>(m(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:i(e)),m=e=>{if("string"!=typeof e)throw new TypeError("invalid pattern");if(e.length>65536)throw new TypeError("pattern is too long")},g=Symbol("subparse");r.makeRe=(e,t)=>new y(e,t||{}).makeRe(),r.match=(e,t,r={})=>{const n=new y(t,r);return e=e.filter((e=>n.match(e))),n.options.nonull&&!e.length&&e.push(t),e};class y{constructor(e,t){m(e),t||(t={}),this.options=t,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.make()}debug(){}make(){const e=this.pattern,t=this.options;if(!t.nocomment&&"#"===e.charAt(0))return void(this.comment=!0);if(!e)return void(this.empty=!0);this.parseNegate();let r=this.globSet=this.braceExpand();t.debug&&(this.debug=(...e)=>console.error(...e)),this.debug(this.pattern,r),r=this.globParts=r.map((e=>e.split(p))),this.debug(this.pattern,r),r=r.map(((e,t,r)=>e.map(this.parse,this))),this.debug(this.pattern,r),r=r.filter((e=>-1===e.indexOf(!1))),this.debug(this.pattern,r),this.set=r}parseNegate(){if(this.options.nonegate)return;const e=this.pattern;let t=!1,r=0;for(let n=0;n<e.length&&"!"===e.charAt(n);n++)t=!t,r++;r&&(this.pattern=e.substr(r)),this.negate=t}matchOne(e,t,r){var n=this.options;this.debug("matchOne",{this:this,file:e,pattern:t}),this.debug("matchOne",e.length,t.length);for(var i=0,s=0,a=e.length,c=t.length;i<a&&s<c;i++,s++){this.debug("matchOne loop");var u,l=t[s],d=e[i];if(this.debug(t,l,d),!1===l)return!1;if(l===o){this.debug("GLOBSTAR",[t,l,d]);var p=i,f=s+1;if(f===c){for(this.debug("** at the end");i<a;i++)if("."===e[i]||".."===e[i]||!n.dot&&"."===e[i].charAt(0))return!1;return!0}for(;p<a;){var h=e[p];if(this.debug("\nglobstar while",e,p,t,f,h),this.matchOne(e.slice(p),t.slice(f),r))return this.debug("globstar found match!",p,a,h),!0;if("."===h||".."===h||!n.dot&&"."===h.charAt(0)){this.debug("dot detected!",e,p,t,f);break}this.debug("globstar swallow a segment, and continue"),p++}return!(!r||(this.debug("\n>>> no match, partial?",e,p,t,f),p!==a))}if("string"==typeof l?(u=d===l,this.debug("string match",l,d,u)):(u=d.match(l),this.debug("pattern match",l,d,u)),!u)return!1}if(i===a&&s===c)return!0;if(i===a)return r;if(s===c)return i===a-1&&""===e[i];throw new Error("wtf?")}braceExpand(){return h(this.pattern,this.options)}parse(e,t){m(e);const r=this.options;if("**"===e){if(!r.noglobstar)return o;e="*"}if(""===e)return"";let n="",i=!!r.nocase,u=!1;const p=[],f=[];let h,y,b,v,w=!1,_=-1,S=-1;const E="."===e.charAt(0)?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",x=()=>{if(h){switch(h){case"*":n+=c,i=!0;break;case"?":n+=a,i=!0;break;default:n+="\\"+h}this.debug("clearStateChar %j %j",h,n),h=!1}};for(let t,o=0;o<e.length&&(t=e.charAt(o));o++)if(this.debug("%s\t%s %s %j",e,o,n,t),u){if("/"===t)return!1;l[t]&&(n+="\\"),n+=t,u=!1}else switch(t){case"/":return!1;case"\\":x(),u=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s\t%s %s %j <-- stateChar",e,o,n,t),w){this.debug(" in class"),"!"===t&&o===S+1&&(t="^"),n+=t;continue}this.debug("call clearStateChar %j",h),x(),h=t,r.noext&&x();continue;case"(":if(w){n+="(";continue}if(!h){n+="\\(";continue}p.push({type:h,start:o-1,reStart:n.length,open:s[h].open,close:s[h].close}),n+="!"===h?"(?:(?!(?:":"(?:",this.debug("plType %j %j",h,n),h=!1;continue;case")":if(w||!p.length){n+="\\)";continue}x(),i=!0,b=p.pop(),n+=b.close,"!"===b.type&&f.push(b),b.reEnd=n.length;continue;case"|":if(w||!p.length){n+="\\|";continue}x(),n+="|";continue;case"[":if(x(),w){n+="\\"+t;continue}w=!0,S=o,_=n.length,n+=t;continue;case"]":if(o===S+1||!w){n+="\\"+t;continue}y=e.substring(S+1,o);try{RegExp("["+y+"]")}catch(e){v=this.parse(y,g),n=n.substr(0,_)+"\\["+v[0]+"\\]",i=i||v[1],w=!1;continue}i=!0,w=!1,n+=t;continue;default:x(),!l[t]||"^"===t&&w||(n+="\\"),n+=t}for(w&&(y=e.substr(S+1),v=this.parse(y,g),n=n.substr(0,_)+"\\["+v[0],i=i||v[1]),b=p.pop();b;b=p.pop()){let e;e=n.slice(b.reStart+b.open.length),this.debug("setting tail",n,b),e=e.replace(/((?:\\{2}){0,64})(\\?)\|/g,((e,t,r)=>(r||(r="\\"),t+t+r+"|"))),this.debug("tail=%j\n %s",e,e,b,n);const t="*"===b.type?c:"?"===b.type?a:"\\"+b.type;i=!0,n=n.slice(0,b.reStart)+t+"\\("+e}x(),u&&(n+="\\\\");const k=d[n.charAt(0)];for(let e=f.length-1;e>-1;e--){const r=f[e],o=n.slice(0,r.reStart),i=n.slice(r.reStart,r.reEnd-8);let s=n.slice(r.reEnd);const a=n.slice(r.reEnd-8,r.reEnd)+s,c=o.split("(").length-1;let u=s;for(let e=0;e<c;e++)u=u.replace(/\)[+*?]?/,"");s=u;n=o+i+s+(""===s&&t!==g?"$":"")+a}if(""!==n&&i&&(n="(?=.)"+n),k&&(n=E+n),t===g)return[n,i];if(!i)return e.replace(/\\(.)/g,"$1");const T=r.nocase?"i":"";try{return Object.assign(new RegExp("^"+n+"$",T),{_glob:e,_src:n})}catch(e){return new RegExp("$.")}}makeRe(){if(this.regexp||!1===this.regexp)return this.regexp;const e=this.set;if(!e.length)return this.regexp=!1,this.regexp;const t=this.options,r=t.noglobstar?c:t.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",n=t.nocase?"i":"";let i=e.map((e=>(e=e.map((e=>"string"==typeof e?e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):e===o?o:e._src)).reduce(((e,t)=>(e[e.length-1]===o&&t===o||e.push(t),e)),[]),e.forEach(((t,n)=>{t===o&&e[n-1]!==o&&(0===n?e.length>1?e[n+1]="(?:\\/|"+r+"\\/)?"+e[n+1]:e[n]=r:n===e.length-1?e[n-1]+="(?:\\/|"+r+")?":(e[n-1]+="(?:\\/|\\/"+r+"\\/)"+e[n+1],e[n+1]=o))})),e.filter((e=>e!==o)).join("/")))).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,n)}catch(e){this.regexp=!1}return this.regexp}match(e,t=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return""===e;if("/"===e&&t)return!0;const r=this.options;"/"!==n.sep&&(e=e.split(n.sep).join("/")),e=e.split(p),this.debug(this.pattern,"split",e);const o=this.set;let i;this.debug(this.pattern,"set",o);for(let t=e.length-1;t>=0&&(i=e[t],!i);t--);for(let n=0;n<o.length;n++){const s=o[n];let a=e;r.matchBase&&1===s.length&&(a=[i]);if(this.matchOne(a,s,t))return!!r.flipNegate||!this.negate}return!r.flipNegate&&this.negate}static defaults(e){return r.defaults(e).Minimatch}}r.Minimatch=y})),P.register("825Hb",(function(e,t){const r="object"==typeof u&&u&&"win32"===u.platform;e.exports=r?{sep:"\\"}:{sep:"/"}})),P.register("lzovL",(function(e,t){var r=P("1Cujy");e.exports=function(e){if(!e)return[];"{}"===e.substr(0,2)&&(e="\\{\\}"+e.substr(2));return m(function(e){return e.split("\\\\").join(n).split("\\{").join(o).split("\\}").join(i).split("\\,").join(s).split("\\.").join(a)}(e),!0).map(u)};var n="\0SLASH"+Math.random()+"\0",o="\0OPEN"+Math.random()+"\0",i="\0CLOSE"+Math.random()+"\0",s="\0COMMA"+Math.random()+"\0",a="\0PERIOD"+Math.random()+"\0";function c(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function u(e){return e.split(n).join("\\").split(o).join("{").split(i).join("}").split(s).join(",").split(a).join(".")}function l(e){if(!e)return[""];var t=[],n=r("{","}",e);if(!n)return e.split(",");var o=n.pre,i=n.body,s=n.post,a=o.split(",");a[a.length-1]+="{"+i+"}";var c=l(s);return s.length&&(a[a.length-1]+=c.shift(),a.push.apply(a,c)),t.push.apply(t,a),t}function d(e){return"{"+e+"}"}function p(e){return/^-?0\d/.test(e)}function f(e,t){return e<=t}function h(e,t){return e>=t}function m(e,t){var n=[],o=r("{","}",e);if(!o)return[e];var s=o.pre,a=o.post.length?m(o.post,!1):[""];if(/\$$/.test(o.pre))for(var u=0;u<a.length;u++){var g=s+"{"+o.body+"}"+a[u];n.push(g)}else{var y,b,v=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(o.body),w=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(o.body),_=v||w,S=o.body.indexOf(",")>=0;if(!_&&!S)return o.post.match(/,.*\}/)?m(e=o.pre+"{"+o.body+i+o.post):[e];if(_)y=o.body.split(/\.\./);else if(1===(y=l(o.body)).length&&1===(y=m(y[0],!1).map(d)).length)return a.map((function(e){return o.pre+y[0]+e}));if(_){var E=c(y[0]),x=c(y[1]),k=Math.max(y[0].length,y[1].length),T=3==y.length?Math.abs(c(y[2])):1,O=f;x<E&&(T*=-1,O=h);var A=y.some(p);b=[];for(var P=E;O(P,x);P+=T){var I;if(w)"\\"===(I=String.fromCharCode(P))&&(I="");else if(I=String(P),A){var j=k-I.length;if(j>0){var R=new Array(j+1).join("0");I=P<0?"-"+R+I.slice(1):R+I}}b.push(I)}}else{b=[];for(var C=0;C<y.length;C++)b.push.apply(b,m(y[C],!1))}for(C=0;C<b.length;C++)for(u=0;u<a.length;u++){g=s+b[C]+a[u];(!t||_||g)&&n.push(g)}}return n}})),P.register("1Cujy",(function(e,t){"use strict";function r(e,t,r){e instanceof RegExp&&(e=n(e,r)),t instanceof RegExp&&(t=n(t,r));var i=o(e,t,r);return i&&{start:i[0],end:i[1],pre:r.slice(0,i[0]),body:r.slice(i[0]+e.length,i[1]),post:r.slice(i[1]+t.length)}}function n(e,t){var r=t.match(e);return r?r[0]:null}function o(e,t,r){var n,o,i,s,a,c=r.indexOf(e),u=r.indexOf(t,c+1),l=c;if(c>=0&&u>0){if(e===t)return[c,u];for(n=[],i=r.length;l>=0&&!a;)l==c?(n.push(l),c=r.indexOf(e,l+1)):1==n.length?a=[n.pop(),u]:((o=n.pop())<i&&(i=o,s=u),u=r.indexOf(t,l+1)),l=c<u&&c>=0?c:u;n.length&&(a=[i,s])}return a}e.exports=r,r.range=o})),P.register("4gPgC",(function(e,t){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}})),P.register("6R9w4",(function(e,t){e.exports=f,f.GlobSync=h;var r=P("feGOm"),n=P("kF2SX"),o=(n.Minimatch,P("65WU1").Glob,a.isAbsolute),i=P("dJrmR"),s=i.setopts,c=i.ownProp,l=i.childrenIgnored,p=i.isIgnored;function f(e,t){if("function"==typeof t||3===arguments.length)throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167");return new h(e,t).found}function h(e,t){if(!e)throw new Error("must provide pattern");if("function"==typeof t||3===arguments.length)throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof h))return new h(e,t);if(s(this,e,t),this.noprocess)return this;var r=this.minimatch.set.length;this.matches=new Array(r);for(var n=0;n<r;n++)this._process(this.minimatch.set[n],n,!1);this._finish()}h.prototype._finish=function(){if(d.ok(this instanceof h),this.realpath){var e=this;this.matches.forEach((function(t,n){var o=e.matches[n]=Object.create(null);for(var i in t)try{i=e._makeAbs(i),o[r.realpathSync(i,e.realpathCache)]=!0}catch(t){if("stat"!==t.syscall)throw t;o[e._makeAbs(i)]=!0}}))}i.finish(this)},h.prototype._process=function(e,t,r){d.ok(this instanceof h);for(var i,s=0;"string"==typeof e[s];)s++;switch(s){case e.length:return void this._processSimple(e.join("/"),t);case 0:i=null;break;default:i=e.slice(0,s).join("/")}var a,c=e.slice(s);null===i?a=".":o(i)||o(e.map((function(e){return"string"==typeof e?e:"[*]"})).join("/"))?(i&&o(i)||(i="/"+i),a=i):a=i;var u=this._makeAbs(a);l(this,a)||(c[0]===n.GLOBSTAR?this._processGlobStar(i,a,u,c,t,r):this._processReaddir(i,a,u,c,t,r))},h.prototype._processReaddir=function(e,t,r,n,o,i){var s=this._readdir(r,i);if(s){for(var c=n[0],u=!!this.minimatch.negate,l=c._glob,d=this.dot||"."===l.charAt(0),p=[],f=0;f<s.length;f++){if("."!==(g=s[f]).charAt(0)||d)(u&&!e?!g.match(c):g.match(c))&&p.push(g)}var h=p.length;if(0!==h)if(1!==n.length||this.mark||this.stat){n.shift();for(f=0;f<h;f++){var m;g=p[f];m=e?[e,g]:[g],this._process(m.concat(n),o,i)}}else{this.matches[o]||(this.matches[o]=Object.create(null));for(var f=0;f<h;f++){var g=p[f];e&&(g="/"!==e.slice(-1)?e+"/"+g:e+g),"/"!==g.charAt(0)||this.nomount||(g=a.join(this.root,g)),this._emitMatch(o,g)}}}},h.prototype._emitMatch=function(e,t){if(!p(this,t)){var r=this._makeAbs(t);if(this.mark&&(t=this._mark(t)),this.absolute&&(t=r),!this.matches[e][t]){if(this.nodir){var n=this.cache[r];if("DIR"===n||Array.isArray(n))return}this.matches[e][t]=!0,this.stat&&this._stat(t)}}},h.prototype._readdirInGlobStar=function(e){if(this.follow)return this._readdir(e,!1);var t,r;try{r=this.fs.lstatSync(e)}catch(e){if("ENOENT"===e.code)return null}var n=r&&r.isSymbolicLink();return this.symlinks[e]=n,n||!r||r.isDirectory()?t=this._readdir(e,!1):this.cache[e]="FILE",t},h.prototype._readdir=function(e,t){if(t&&!c(this.symlinks,e))return this._readdirInGlobStar(e);if(c(this.cache,e)){var r=this.cache[e];if(!r||"FILE"===r)return null;if(Array.isArray(r))return r}try{return this._readdirEntries(e,this.fs.readdirSync(e))}catch(t){return this._readdirError(e,t),null}},h.prototype._readdirEntries=function(e,t){if(!this.mark&&!this.stat)for(var r=0;r<t.length;r++){var n=t[r];n="/"===e?e+n:e+"/"+n,this.cache[n]=!0}return this.cache[e]=t,t},h.prototype._readdirError=function(e,t){switch(t.code){case"ENOTSUP":case"ENOTDIR":var r=this._makeAbs(e);if(this.cache[r]="FILE",r===this.cwdAbs){var n=new Error(t.code+" invalid cwd "+this.cwd);throw n.path=this.cwd,n.code=t.code,n}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(e)]=!1;break;default:if(this.cache[this._makeAbs(e)]=!1,this.strict)throw t;this.silent||console.error("glob error",t)}},h.prototype._processGlobStar=function(e,t,r,n,o,i){var s=this._readdir(r,i);if(s){var a=n.slice(1),c=e?[e]:[],u=c.concat(a);this._process(u,o,!1);var l=s.length;if(!this.symlinks[r]||!i)for(var d=0;d<l;d++){if("."!==s[d].charAt(0)||this.dot){var p=c.concat(s[d],a);this._process(p,o,!0);var f=c.concat(s[d],n);this._process(f,o,!0)}}}},h.prototype._processSimple=function(e,t){var r=this._stat(e);if(this.matches[t]||(this.matches[t]=Object.create(null)),r){if(e&&o(e)&&!this.nomount){var n=/[\/\\]$/.test(e);"/"===e.charAt(0)?e=a.join(this.root,e):(e=a.resolve(this.root,e),n&&(e+="/"))}"win32"===u.platform&&(e=e.replace(/\\/g,"/")),this._emitMatch(t,e)}},h.prototype._stat=function(e){var t=this._makeAbs(e),r="/"===e.slice(-1);if(e.length>this.maxLength)return!1;if(!this.stat&&c(this.cache,t)){var n=this.cache[t];if(Array.isArray(n)&&(n="DIR"),!r||"DIR"===n)return n;if(r&&"FILE"===n)return!1}var o=this.statCache[t];if(!o){var i;try{i=this.fs.lstatSync(t)}catch(e){if(e&&("ENOENT"===e.code||"ENOTDIR"===e.code))return this.statCache[t]=!1,!1}if(i&&i.isSymbolicLink())try{o=this.fs.statSync(t)}catch(e){o=i}else o=i}this.statCache[t]=o;n=!0;return o&&(n=o.isDirectory()?"DIR":"FILE"),this.cache[t]=this.cache[t]||n,(!r||"FILE"!==n)&&n},h.prototype._mark=function(e){return i.mark(this,e)},h.prototype._makeAbs=function(e){return i.makeAbs(this,e)}})),P.register("dJrmR",(function(e,t){var r,n,o,s,c,l,d;function p(e,t){return Object.prototype.hasOwnProperty.call(e,t)}E(e.exports,"setopts",(()=>r),(e=>r=e)),E(e.exports,"ownProp",(()=>n),(e=>n=e)),E(e.exports,"makeAbs",(()=>o),(e=>o=e)),E(e.exports,"finish",(()=>s),(e=>s=e)),E(e.exports,"mark",(()=>c),(e=>c=e)),E(e.exports,"isIgnored",(()=>l),(e=>l=e)),E(e.exports,"childrenIgnored",(()=>d),(e=>d=e)),r=function(e,t,r){r||(r={});if(r.matchBase&&-1===t.indexOf("/")){if(r.noglobstar)throw new Error("base matching requires globstar");t="**/"+t}e.windowsPathsNoEscape=!!r.windowsPathsNoEscape||!1===r.allowWindowsEscape,e.windowsPathsNoEscape&&(t=t.replace(/\\/g,"/"));e.silent=!!r.silent,e.pattern=t,e.strict=!1!==r.strict,e.realpath=!!r.realpath,e.realpathCache=r.realpathCache||Object.create(null),e.follow=!!r.follow,e.dot=!!r.dot,e.mark=!!r.mark,e.nodir=!!r.nodir,e.nodir&&(e.mark=!0);e.sync=!!r.sync,e.nounique=!!r.nounique,e.nonull=!!r.nonull,e.nosort=!!r.nosort,e.nocase=!!r.nocase,e.stat=!!r.stat,e.noprocess=!!r.noprocess,e.absolute=!!r.absolute,e.fs=r.fs||i,e.maxLength=r.maxLength||1/0,e.cache=r.cache||Object.create(null),e.statCache=r.statCache||Object.create(null),e.symlinks=r.symlinks||Object.create(null),function(e,t){e.ignore=t.ignore||[],Array.isArray(e.ignore)||(e.ignore=[e.ignore]);e.ignore.length&&(e.ignore=e.ignore.map(y))}(e,r),e.changedCwd=!1;var n=u.cwd();p(r,"cwd")?(e.cwd=a.resolve(r.cwd),e.changedCwd=e.cwd!==n):e.cwd=a.resolve(n);e.root=r.root||a.resolve(e.cwd,"/"),e.root=a.resolve(e.root),e.cwdAbs=h(e.cwd)?e.cwd:b(e,e.cwd),e.nomount=!!r.nomount,"win32"===u.platform&&(e.root=e.root.replace(/\\/g,"/"),e.cwd=e.cwd.replace(/\\/g,"/"),e.cwdAbs=e.cwdAbs.replace(/\\/g,"/"));r.nonegate=!0,r.nocomment=!0,e.minimatch=new m(t,r),e.options=e.minimatch.options},n=p,o=b,s=function(e){for(var t=e.nounique,r=t?[]:Object.create(null),n=0,o=e.matches.length;n<o;n++){var i=e.matches[n];if(i&&0!==Object.keys(i).length){var s=Object.keys(i);t?r.push.apply(r,s):s.forEach((function(e){r[e]=!0}))}else if(e.nonull){var a=e.minimatch.globSet[n];t?r.push(a):r[a]=!0}}t||(r=Object.keys(r));e.nosort||(r=r.sort(g));if(e.mark){for(n=0;n<r.length;n++)r[n]=e._mark(r[n]);e.nodir&&(r=r.filter((function(t){var r=!/\/$/.test(t),n=e.cache[t]||e.cache[b(e,t)];return r&&n&&(r="DIR"!==n&&!Array.isArray(n)),r})))}e.ignore.length&&(r=r.filter((function(t){return!v(e,t)})));e.found=r},c=function(e,t){var r=b(e,t),n=e.cache[r],o=t;if(n){var i="DIR"===n||Array.isArray(n),s="/"===t.slice(-1);if(i&&!s?o+="/":!i&&s&&(o=o.slice(0,-1)),o!==t){var a=b(e,o);e.statCache[a]=e.statCache[r],e.cache[a]=e.cache[r]}}return o},l=v,d=function(e,t){return!!e.ignore.length&&e.ignore.some((function(e){return!(!e.gmatcher||!e.gmatcher.match(t))}))};var f=P("kF2SX"),h=a.isAbsolute,m=f.Minimatch;function g(e,t){return e.localeCompare(t,"en")}function y(e){var t=null;if("/**"===e.slice(-3)){var r=e.replace(/(\/\*\*)+$/,"");t=new m(r,{dot:!0})}return{matcher:new m(e,{dot:!0}),gmatcher:t}}function b(e,t){var r=t;return r="/"===t.charAt(0)?a.join(e.root,t):h(t)||""===t?t:e.changedCwd?a.resolve(e.cwd,t):a.resolve(t),"win32"===u.platform&&(r=r.replace(/\\/g,"/")),r}function v(e,t){return!!e.ignore.length&&e.ignore.some((function(e){return e.matcher.match(t)||!(!e.gmatcher||!e.gmatcher.match(t))}))}})),P.register("iyvjv",(function(e,t){var r=P("148Il"),n=Object.create(null),o=P("I2OjK");e.exports=r((function(e,t){return n[e]?(n[e].push(t),null):(n[e]=[t],function(e){return o((function t(){var r=n[e],o=r.length,i=function(e){for(var t=e.length,r=[],n=0;n<t;n++)r[n]=e[n];return r}(arguments);try{for(var s=0;s<o;s++)r[s].apply(null,i)}finally{r.length>o?(r.splice(0,o),u.nextTick((function(){t.apply(null,i)}))):delete n[e]}}))}(e))}))})),P.register("148Il",(function(e,t){e.exports=function e(t,r){if(t&&r)return e(t)(r);if("function"!=typeof t)throw new TypeError("need wrapper function");return Object.keys(t).forEach((function(e){n[e]=t[e]})),n;function n(){for(var e=new Array(arguments.length),r=0;r<e.length;r++)e[r]=arguments[r];var n=t.apply(this,e),o=e[e.length-1];return"function"==typeof n&&n!==o&&Object.keys(o).forEach((function(e){n[e]=o[e]})),n}}})),P.register("I2OjK",(function(e,t){var r=P("148Il");function n(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function o(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},r=e.name||"Function wrapped with `once`";return t.onceError=r+" shouldn't be called more than once",t.called=!1,t}e.exports=r(n),e.exports.strict=r(o),n.proto=n((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return n(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return o(this)},configurable:!0})}))})),P.register("gSLCk",(function(e,t){"use strict";var r=e.exports&&e.exports.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.loadBabelCompiler=e.exports.loadTypeScriptCompiler=e.exports.validateTsConfigPaths=e.exports.loadAutoCompilers=e.exports.validateConfig=e.exports.isCloudCapability=e.exports.isCucumberFeatureWithLineNumber=e.exports.removeLineNumbers=e.exports.validObjectOrArray=void 0;const n=r(a);var o=P("kLa2o");const i=(0,r(P("aZBcl")).default)("@wdio/config:utils");function s(e={}){if(null==e?void 0:e.project){const t=n.default.resolve(e.project);if(!(0,o.canAccess)(t))throw new Error("Provided tsconfig file path in wdio config is incorrect. Is it correctly set in wdio config ?")}}function c(e={},t,r){try{if(s(e),r.resolve("ts-node"),r.require("ts-node").register(e),i.debug("Found 'ts-node' package, auto-compiling TypeScript files"),t){i.debug("Found 'tsconfig-paths' options, register paths");$c4a6a046eb3a6050$import$7e6c09acbf4883d5.register(t)}return!0}catch(e){return!1}}function u(e={},t){try{return t.resolve("@babel/register"),t.require("@babel/register")(e),i.debug("Found '@babel/register' package, auto-compiling files with Babel"),!0}catch(e){return!1}}e.exports.validObjectOrArray=e=>Array.isArray(e)&&e.length>0||"object"==typeof e&&Object.keys(e).length>0,e.exports.removeLineNumbers=function(e){const t=e.match(/:\d+(:\d+$|$)/);return t&&(e=e.substring(0,t.index)),e},e.exports.isCucumberFeatureWithLineNumber=function(e){return(Array.isArray(e)?e:[e]).some((e=>e.match(/:\d+(:\d+$|$)/)))},e.exports.isCloudCapability=function(e){return Boolean(e&&(e["bstack:options"]||e["sauce:options"]||e["tb:options"]))},e.exports.validateConfig=function(e,t,r=[]){const n={};for(const[r,o]of Object.entries(e)){if(void 0===t[r]&&!o.default&&o.required)throw new Error(`Required option "${r.toString()}" is missing`);if(void 0===t[r]&&o.default&&(n[r]=o.default),void 0!==t[r]){const e=t[r];if(typeof e!==o.type)throw new Error(`Expected option "${r.toString()}" to be type of ${o.type} but was ${typeof t[r]}`);if("function"==typeof o.validate)try{o.validate(e)}catch(e){throw new Error(`Type check for option "${r.toString()}" failed: ${e.message}`)}if("string"==typeof e&&o.match&&!e.match(o.match))throw new Error(`Option "${r.toString()}" doesn't match expected values: ${o.match}`);n[r]=t[r]}}for(const[e,o]of Object.entries(t))r.includes(e)&&(n[e]=o);return n},e.exports.loadAutoCompilers=function(e,t){return e.autoCompile&&(c(e.tsNodeOpts,e.tsConfigPathsOpts,t)||u(e.babelOpts,t))},e.exports.validateTsConfigPaths=s,e.exports.loadTypeScriptCompiler=c,e.exports.loadBabelCompiler=u})),P.register("kLa2o",(function(e,t){"use strict";var r=e.exports&&e.exports.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.UNICODE_CHARACTERS=e.exports.devtoolsEnvironmentDetector=e.exports.capabilitiesEnvironmentDetector=e.exports.sessionEnvironmentDetector=e.exports.isW3C=e.exports.hasWdioSyncSupport=e.exports.executeHooksWithArgs=e.exports.testFnWrapper=e.exports.runTestInFiberContext=e.exports.runFnInFiberContext=e.exports.executeAsync=e.exports.executeSync=e.exports.wrapCommand=e.exports.sleep=e.exports.canAccess=e.exports.safeRequire=e.exports.getArgumentType=e.exports.isValidParameter=e.exports.commandCallStructure=e.exports.webdriverMonad=e.exports.transformCommandLogResult=e.exports.isFunctionAsync=e.exports.initialiseWorkerService=e.exports.initialiseLauncherService=e.exports.initialisePlugin=void 0;const n=r(P("alylB"));e.exports.initialisePlugin=n.default;var o=P("a0cQk");Object.defineProperty(e.exports,"initialiseWorkerService",{enumerable:!0,get:function(){return o.initialiseWorkerService}}),Object.defineProperty(e.exports,"initialiseLauncherService",{enumerable:!0,get:function(){return o.initialiseLauncherService}});const i=r(P("5bL2c"));e.exports.webdriverMonad=i.default;var s=P("jR9TN");Object.defineProperty(e.exports,"commandCallStructure",{enumerable:!0,get:function(){return s.commandCallStructure}}),Object.defineProperty(e.exports,"isValidParameter",{enumerable:!0,get:function(){return s.isValidParameter}}),Object.defineProperty(e.exports,"getArgumentType",{enumerable:!0,get:function(){return s.getArgumentType}}),Object.defineProperty(e.exports,"safeRequire",{enumerable:!0,get:function(){return s.safeRequire}}),Object.defineProperty(e.exports,"isFunctionAsync",{enumerable:!0,get:function(){return s.isFunctionAsync}}),Object.defineProperty(e.exports,"transformCommandLogResult",{enumerable:!0,get:function(){return s.transformCommandLogResult}}),Object.defineProperty(e.exports,"canAccess",{enumerable:!0,get:function(){return s.canAccess}}),Object.defineProperty(e.exports,"sleep",{enumerable:!0,get:function(){return s.sleep}});var a=P("aO266");Object.defineProperty(e.exports,"wrapCommand",{enumerable:!0,get:function(){return a.wrapCommand}}),Object.defineProperty(e.exports,"runFnInFiberContext",{enumerable:!0,get:function(){return a.runFnInFiberContext}}),Object.defineProperty(e.exports,"executeHooksWithArgs",{enumerable:!0,get:function(){return a.executeHooksWithArgs}}),Object.defineProperty(e.exports,"hasWdioSyncSupport",{enumerable:!0,get:function(){return a.hasWdioSyncSupport}}),Object.defineProperty(e.exports,"executeSync",{enumerable:!0,get:function(){return a.executeSync}}),Object.defineProperty(e.exports,"executeAsync",{enumerable:!0,get:function(){return a.executeAsync}});var c=P("3Xi5T");Object.defineProperty(e.exports,"testFnWrapper",{enumerable:!0,get:function(){return c.testFnWrapper}}),Object.defineProperty(e.exports,"runTestInFiberContext",{enumerable:!0,get:function(){return c.runTestInFiberContext}});var u=P("lfHRY");Object.defineProperty(e.exports,"isW3C",{enumerable:!0,get:function(){return u.isW3C}}),Object.defineProperty(e.exports,"capabilitiesEnvironmentDetector",{enumerable:!0,get:function(){return u.capabilitiesEnvironmentDetector}}),Object.defineProperty(e.exports,"sessionEnvironmentDetector",{enumerable:!0,get:function(){return u.sessionEnvironmentDetector}}),Object.defineProperty(e.exports,"devtoolsEnvironmentDetector",{enumerable:!0,get:function(){return u.devtoolsEnvironmentDetector}});var l=P("9gWQq");Object.defineProperty(e.exports,"UNICODE_CHARACTERS",{enumerable:!0,get:function(){return l.UNICODE_CHARACTERS}})})),P.register("a0cQk",(function(e,t){"use strict";var r=e.exports&&e.exports.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.initialiseWorkerService=e.exports.initialiseLauncherService=void 0;const n=r(P("aZBcl")),o=r(P("alylB")),i=(0,n.default)("@wdio/utils:initialiseServices");function s(e){const t=[];for(let[r,n={}]of e){if("object"==typeof r){i.debug("initialise custom initiated service"),t.push([r,{}]);continue}if("function"==typeof r){i.debug(`initialise custom service "${r.name}"`),t.push([r,n]);continue}i.debug(`initialise service "${r}" as NPM package`);const e=(0,o.default)(r,"service");t.push([e,n,r])}return t}function a(e){return Array.isArray(e)?e:[e,{}]}e.exports.initialiseLauncherService=function(e,t){const r=[],n=[];try{const o=s(e.services.map(a));for(const[i,s,a]of o){if("object"==typeof i&&!a){n.push(i);continue}const o=i.launcher;"function"==typeof o&&a&&n.push(new o(s,t,e)),"function"!=typeof i||a||n.push(new i(s,t,e)),a&&"function"!=typeof i.default&&"function"!=typeof i&&r.push(a)}}catch(e){i.error(e)}return{ignoredWorkerServices:r,launcherServices:n}},e.exports.initialiseWorkerService=function(e,t,r=[]){const n=e.services.map(a).filter((([e])=>!r.includes(e)));try{return s(n).map((([r,n,o])=>{if("object"==typeof r&&!o)return r;const i=r.default||r;return"function"==typeof i?new i(n,t,e):void 0})).filter((e=>Boolean(e)))}catch(e){return i.error(e),[]}}})),P.register("aO266",(function(e,t){"use strict";var n=e.exports&&e.exports.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.runSync=e.exports.executeAsync=e.exports.executeSync=e.exports.hasWdioSyncSupport=e.exports.wrapCommand=e.exports.runFnInFiberContext=e.exports.executeHooksWithArgs=e.exports.switchSyncFlag=e.exports.asyncSpec=e.exports.runAsync=e.exports.expectAsyncShim=void 0;const o=n(P("1EKyI")),i=(0,n(P("aZBcl")).default)("@wdio/utils:shim");let s,a,c=!1,l=!1;function d(e,t=a){const r=x.expectAsync;return!e||"function"!=typeof e.then&&!e.sessionId&&!e.elementId?t(e):r(e)}e.exports.hasWdioSyncSupport=l,e.exports.runSync=s,e.exports.expectAsyncShim=d;const p=["$","$$","custom$","custom$$","shadow$","shadow$$","react$","react$$","nextElement","previousElement","parentElement"],f=["elementId","error","selector","parent","index","isReactElement","length"],h=["then","catch","finally"];let m;e.exports.runAsync=!1,e.exports.asyncSpec=!1;try{const t="@wdio/sync";m=r(7603)(t),e.exports.hasWdioSyncSupport=l=!0,u.send&&i.warn("You are running tests with @wdio/sync which will be discontinued starting Node.js v16.Read more on https://github.com/webdriverio/webdriverio/discussions/6702")}catch(t){e.exports.runAsync=!0,e.exports.asyncSpec=!0}let g=async function(t,r=[],n=[]){e.exports.runAsync=!0,Array.isArray(r)||(r=[r]),Array.isArray(n)||(n=[n]);const o=r.map((e=>new Promise((t=>{let r;try{r=e.apply(null,n)}catch(e){return i.error(e.stack),t(e)}if(r&&"function"==typeof r.then)return r.then(t,(e=>{i.error(e.stack),t(e)}));t(r)})))),s=Date.now(),a=await Promise.all(o);return o.length&&i.debug(`Finished to run "${t}" hook in ${Date.now()-s}ms`),a};e.exports.executeHooksWithArgs=g;let y=function(t){return function(...r){return e.exports.runAsync=!0,Promise.resolve(t.apply(this,r))}};e.exports.runFnInFiberContext=y;e.exports.wrapCommand=function t(r,n){async function i(...e){const t=[r,e];let o,i;!c&&this.options.beforeCommand&&(c=!0,await g.call(this,"beforeCommand",this.options.beforeCommand,t),c=!1);try{o=await n.apply(this,e)}catch(e){i=e}if(!c&&this.options.afterCommand){c=!0;const e=[...t,o,i];await g.call(this,"afterCommand",this.options.afterCommand,e),c=!1}if(i)throw i;return o}function s(e,n,i,a){return new Proxy(Promise.resolve(e).then((e=>n.call(e,...i))),{get:(n,c)=>{if("symbol"==typeof c)return()=>({i:0,target:n,async next(){const e=await this.target;if(!Array.isArray(e))throw new Error("Can not iterate over non array");return this.i<e.length?{value:e[this.i++],done:!1}:{done:!0}}});const u=parseInt(c,10);return isNaN(u)?p.includes(c)||c.endsWith("$")?t(c,(function(...e){return this[c].apply(this,e)})):r.endsWith("$$")&&"function"==typeof o.default[c]?e=>s(n,(function(e){return o.default[c](this,e)}),[e]):f.includes(c)?n.then((e=>e[c])):h.includes(c)?n[c].bind(n):(...t)=>n.then((async r=>{if(!r){let t="Element could not be found";const r=await e;throw Array.isArray(r)&&a&&"get"===a.prop&&(t=`Index out of bounds! $$(${a.args[0]}) returned only ${r.length} elements.`),new Error(t)}return r[c](...t)})):s(n,(function(e){return this[e]}),[c],{prop:c,args:i})}})}function a(...e){return s(this,i,e)}return function(...t){return(l&&m&&Boolean(x.browser)&&!e.exports.runAsync&&!e.exports.asyncSpec?m.wrapCommand(r,n):p.includes(r)||r.endsWith("$")?a:i).apply(this,t)}},e.exports.executeAsync=async function t(r,n,o=[]){const i=x.jasmine&&x.expectAsync,s=e.exports.asyncSpec;this.wdioRetries=n.attempts,a||(a=x.expect.bind({})),i&&(x.expect=d);try{e.exports.runAsync=!0,e.exports.asyncSpec=!0;const t=r.apply(this,o);return t&&"function"==typeof t.finally?t.finally((()=>e.exports.asyncSpec=s)).catch((e=>e)):e.exports.asyncSpec=s,await t}catch(e){if(n.limit>n.attempts)return n.attempts++,await t.call(this,r,n,o);throw e}finally{i&&(x.expect=a)}};let b=async function t(r,n,o=[]){this.wdioRetries=n.attempts;try{e.exports.runAsync=!0;let t=r.apply(this,o);return t instanceof Promise?await t:t}catch(e){return n.limit>n.attempts?(n.attempts++,await t.call(this,r,n,o)):Promise.reject(e)}};function v(t){return function(...r){const n=e.exports.runAsync;e.exports.runAsync=!1;const o=t.apply(this,r);return"function"==typeof o.finally?(e.exports.runAsync=n,o):"function"==typeof o?function(...t){const r=e.exports.runAsync,n=o.apply(this,t);return"function"==typeof o.finally?o.finally((()=>e.exports.runAsync=r)):(e.exports.runAsync=r,n)}:(e.exports.runAsync=n,o)}}e.exports.executeSync=b,e.exports.switchSyncFlag=v,l&&m&&(e.exports.runFnInFiberContext=y=v(m.runFnInFiberContext),e.exports.executeHooksWithArgs=g=v(m.executeHooksWithArgs),e.exports.executeSync=b=v(m.executeSync),e.exports.runSync=s=v(m.runSync))})),P.register("3Xi5T",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.runTestInFiberContext=e.exports.testFnWrapper=void 0;var r=P("fLdZQ");Object.defineProperty(e.exports,"testFnWrapper",{enumerable:!0,get:function(){return r.testFnWrapper}});var n=P("6ZoFo");Object.defineProperty(e.exports,"runTestInFiberContext",{enumerable:!0,get:function(){return n.runTestInFiberContext}})})),P.register("fLdZQ",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.filterStackTrace=e.exports.testFrameworkFnWrapper=e.exports.testFnWrapper=void 0;var r=P("jR9TN"),n=P("bZwp2"),o=P("aO266");const i=["node_modules/webdriver/","node_modules/webdriverio/","node_modules/@wdio/","(internal/process/task"];e.exports.testFnWrapper=function(...t){return e.exports.testFrameworkFnWrapper.call(this,{executeHooksWithArgs:o.executeHooksWithArgs,executeAsync:o.executeAsync,runSync:o.runSync},...t)};e.exports.testFrameworkFnWrapper=async function({executeHooksWithArgs:t,executeAsync:o,runSync:i},s,{specFn:a,specFnArgs:c},{beforeFn:u,beforeFnArgs:l},{afterFn:d,afterFnArgs:p},f,h=0){const m={attempts:0,limit:h},g=l(this);let y,b,v;await(0,n.logHookError)(`Before${s}`,await t(`before${s}`,u,g),f),y=(0,r.isFunctionAsync)(a)||!i?o.call(this,a,m,c):new Promise(i.call(this,a,m,c));const w=Date.now();try{b=await y}catch(t){t.stack&&(t.stack=(0,e.exports.filterStackTrace)(t.stack)),v=t}const _=Date.now()-w;let S=p(this);if(!v&&S[0]&&S[0].failedExpectations&&S[0].failedExpectations.length&&(v=S[0].failedExpectations[0]),S.push({retries:m,error:v,result:b,duration:_,passed:!v}),await(0,n.logHookError)(`After${s}`,await t(`after${s}`,d,[...S]),f),v&&!v.matcherName)throw v;return b};e.exports.filterStackTrace=e=>e.split("\n").filter((e=>!i.some((t=>e.includes(t))))).join("\n")})),P.register("bZwp2",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.logHookError=void 0;e.exports.logHookError=(e,t=[],r)=>{const n=t.find((e=>e instanceof Error));if(void 0===n)return;const o={cid:r,error:{message:n.message},fullTitle:`${e} Hook`,type:"hook",state:"fail"};u.send({origin:"reporter",name:"printFailureMessage",content:o})}})),P.register("6ZoFo",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.runTestInFiberContext=e.exports.wrapTestFunction=e.exports.runSpec=e.exports.runHook=void 0;var r=P("jR9TN"),n=P("fLdZQ");const o=["skip","only"];e.exports.runHook=function(e,t,o,i,s,a,c,u,l){return t((function(...t){return n.testFnWrapper.call(this,"Hook",{specFn:e,specFnArgs:(0,r.filterSpecArgs)(t)},{beforeFn:o,beforeFnArgs:i},{afterFn:s,afterFnArgs:a},c,u)}),l)};e.exports.runSpec=function(e,t,o,i,s,a,c,u,l,d){return o(e,(function(...e){return n.testFnWrapper.call(this,"Test",{specFn:t,specFnArgs:(0,r.filterSpecArgs)(e)},{beforeFn:i,beforeFnArgs:s},{afterFn:a,afterFnArgs:c},u,l)}),d)};e.exports.wrapTestFunction=function(t,r,n,o,i,s,a){return function(...c){var u;let l="number"==typeof c[c.length-1]?c.pop():0,d=null===(u=x.jasmine)||void 0===u?void 0:u.DEFAULT_TIMEOUT_INTERVAL;x.jasmine&&("number"==typeof c[c.length-1]?d=c.pop():(d=l,l=0));const p="function"==typeof c[0]?c.shift():"function"==typeof c[1]?c[1]:void 0,f=c[0];return r?p?(0,e.exports.runSpec)(f,p,t,n,o,i,s,a,l,d):t(f):(0,e.exports.runHook)(p,t,n,o,i,s,a,l,d)}};e.exports.runTestInFiberContext=function(t,r,n,i,s,a,c,u=x){const l=u[a];u[a]=(0,e.exports.wrapTestFunction)(l,t,r,n,i,s,c),function(e,t){o.forEach((r=>{"function"==typeof e[r]&&(t[r]=e[r])}))}(l,u[a])}})),P.register("lfHRY",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.webdriverEnvironmentDetector=e.exports.devtoolsEnvironmentDetector=e.exports.sessionEnvironmentDetector=e.exports.capabilitiesEnvironmentDetector=e.exports.isW3C=void 0;const r=["ipad","iphone","android"],n=["appium-version","appiumVersion","device-type","deviceType","device-orientation","deviceOrientation","deviceName","automationName"];function o(e){if(!e)return!1;const t=Boolean(e.automationName||e.deviceName||e.appiumVersion),r=Boolean((e.platformName||e.browserVersion)&&(e.platformVersion||Object.prototype.hasOwnProperty.call(e,"setWindowRect")));return Boolean(r||t)}function i(e){return!!e&&Boolean(e.chrome||e["goog:chromeOptions"])}function s(e){return!!e&&("firefox"===e.browserName||Boolean(Object.keys(e).find((e=>e.startsWith("moz:")))))}function a(e){const t=(e.browserName||"").toLowerCase();return Boolean(Object.keys(e).find((e=>e.startsWith("appium:")))||Object.keys(e).find((e=>n.includes(e)))||""===e.browserName||r.includes(t))}function c(e){return!!e&&Boolean(e.platformName&&e.platformName.match(/iOS/i)||e.deviceName&&e.deviceName.match(/(iPad|iPhone)/i))}function u(e){return!!e&&Boolean(e.platformName&&e.platformName.match(/Android/i)||e.browserName&&e.browserName.match(/Android/i))}function l(e){if(!e)return!1;const t=e.alwaysMatch?e.alwaysMatch:e;return Boolean(t.extendedDebugging||t["sauce:options"]&&t["sauce:options"].extendedDebugging)}function d(e){return!!e&&(Boolean(e["webdriver.remote.sessionid"])||Boolean(e["se:cdp"]))}function p({browserName:e}){return{isDevTools:!0,isW3C:!0,isMobile:!1,isIOS:!1,isAndroid:!1,isFirefox:!1,isChrome:"chrome"===e,isSauce:!1,isSeleniumStandalone:!1}}function f(e){return{isChrome:i(e),isFirefox:s(e),isMobile:a(e),isIOS:c(e),isAndroid:u(e),isSauce:l(e)}}e.exports.isW3C=o,e.exports.capabilitiesEnvironmentDetector=function(e,t){return"devtools"===t?p(e):f(e)},e.exports.sessionEnvironmentDetector=function({capabilities:e,requestedCapabilities:t}){return{isW3C:o(e),isChrome:i(e),isFirefox:s(e),isMobile:a(e),isIOS:c(e),isAndroid:u(e),isSauce:l(t),isSeleniumStandalone:d(e)}},e.exports.devtoolsEnvironmentDetector=p,e.exports.webdriverEnvironmentDetector=f})),P.register("9gWQq",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.UNICODE_CHARACTERS=void 0,e.exports.UNICODE_CHARACTERS={NULL:"",Unidentified:"",Cancel:"",Help:"",Backspace:"","Back space":"",Tab:"",Clear:"",Return:"",Enter:"",Shift:"",Control:"","Control Left":"","Control Right":"",Alt:"",Pause:"",Escape:"",Space:""," ":"",PageUp:"",Pageup:"",Page_Up:"",PageDown:"",Pagedown:"",Page_Down:"",End:"",Home:"",ArrowLeft:"","Left arrow":"",Arrow_Left:"",ArrowUp:"","Up arrow":"",Arrow_Up:"",ArrowRight:"","Right arrow":"",Arrow_Right:"",ArrowDown:"","Down arrow":"",Arrow_Down:"",Insert:"",Delete:"",Semicolon:"",Equals:"","Numpad 0":"","Numpad 1":"","Numpad 2":"","Numpad 3":"","Numpad 4":"","Numpad 5":"","Numpad 6":"","Numpad 7":"","Numpad 8":"","Numpad 9":"",Multiply:"",Add:"",Separator:"",Subtract:"",Decimal:"",Divide:"",F1:"",F2:"",F3:"",F4:"",F5:"",F6:"",F7:"",F8:"",F9:"",F10:"",F11:"",F12:"",Command:"",Meta:"",ZenkakuHankaku:"",Zenkaku_Hankaku:""}})),P.register("hByiW",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.SUPPORTED_FILE_EXTENSIONS=e.exports.SUPPORTED_HOOKS=e.exports.DEFAULT_CONFIGS=void 0;const r=1e4;e.exports.DEFAULT_CONFIGS=()=>({specs:[],suites:{},exclude:[],outputDir:void 0,logLevel:"info",logLevels:{},excludeDriverLogs:[],bail:0,waitforInterval:500,waitforTimeout:5e3,framework:"mocha",reporters:[],services:[],maxInstances:100,maxInstancesPerCapability:100,filesToWatch:[],connectionRetryTimeout:12e4,connectionRetryCount:3,execArgv:[],runnerEnv:{},runner:"local",specFileRetries:0,specFileRetriesDelay:0,specFileRetriesDeferred:!1,reporterSyncInterval:100,reporterSyncTimeout:5e3,cucumberFeaturesWithLineNumbers:[],autoCompileOpts:{autoCompile:!0,tsNodeOpts:{transpileOnly:!0},babelOpts:{}},mochaOpts:{timeout:r},jasmineOpts:{defaultTimeoutInterval:r},cucumberOpts:{timeout:r},onPrepare:[],onWorkerStart:[],onWorkerEnd:[],before:[],beforeSession:[],beforeSuite:[],beforeHook:[],beforeTest:[],beforeCommand:[],afterCommand:[],afterTest:[],afterHook:[],afterSuite:[],afterSession:[],after:[],onComplete:[],onReload:[],beforeFeature:[],beforeScenario:[],beforeStep:[],afterStep:[],afterScenario:[],afterFeature:[]}),e.exports.SUPPORTED_HOOKS=["before","beforeSession","beforeSuite","beforeHook","beforeTest","beforeCommand","afterCommand","afterTest","afterHook","afterSuite","afterSession","after","beforeFeature","beforeScenario","beforeStep","afterStep","afterScenario","afterFeature","onReload","onPrepare","onWorkerStart","onWorkerEnd","onComplete"],e.exports.SUPPORTED_FILE_EXTENSIONS=[".js",".mjs",".es6",".ts",".feature",".coffee",".cjs"]})),P.register("8BEJT",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0})})),P.register("kxz8U",(function(e,t){"use strict";var r=e.exports&&e.exports.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e.exports,"__esModule",{value:!0});const n=r(P("aZBcl"));var o=P("kLa2o");const i=r(P("e0WIF")),s=(0,n.default)("webdriver");e.exports.default=function(e,t,r,a=!1){const{command:c,ref:u,parameters:l,variables:d=[],isHubCommand:p=!1}=r;return function(...r){let f=t;const h=[...d.map((e=>Object.assign(e,{required:!0,type:"string"}))),...l],m=`${c}(${h.map((e=>e.name)).join(", ")})`,g=`\n\nFor more info see ${u}\n`,y={},b=h.filter((e=>e.required)).length;if(r.length<b||r.length>h.length){const e=h.length?`\n\nProperty Description:\n${h.map((e=>` "${e.name}" (${e.type}): ${e.description}`)).join("\n")}`:"";throw new Error(`Wrong parameters applied for ${c}\nUsage: ${m}`+e+g)}for(const[e,t]of Object.entries(r)){const r=parseInt(e,10),n=h[r];if(!(0,o.isValidParameter)(t,n.type)){if(void 0===t&&!n.required)continue;const e=n.type.endsWith("[]")?`(${(Array.isArray(t)?t:[t]).map((e=>(0,o.getArgumentType)(e)))})[]`:(0,o.getArgumentType)(t);throw new Error(`Malformed type for "${n.name}" parameter of command ${c}\nExpected: ${n.type}\nActual: ${e}`+g)}if(r<d.length){const e=a?encodeURIComponent(encodeURIComponent(t)):encodeURIComponent(t);f=f.replace(`:${h[r].name}`,e)}else y[h[r].name]=t}const v=i.default.getInstance(e,f,y,p);return v.on("performance",((...e)=>this.emit("request.performance",...e))),this.emit("command",{method:e,endpoint:f,body:y}),s.info("COMMAND",(0,o.commandCallStructure)(c,r)),v.makeRequest(this.options,this.sessionId).then((t=>(null!=t.value&&s.info("RESULT",/screenshot|recording/i.test(c)&&"string"==typeof t.value&&t.value.length>64?`${t.value.substr(0,61)}...`:t.value),this.emit("result",{method:e,endpoint:f,body:y,result:t}),"deleteSession"===c&&n.default.clearLogger(),t.value)))}}})),P.register("e0WIF",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.URLFactory=void 0;e.exports.default=class{static getInstance(e,t,r,n=!1){var o;if(null===(o=null==u?void 0:u.versions)||void 0===o?void 0:o.node){const o=P("gROpM");return new(o.default||o)(e,t,r,n)}return new(0,P("9RSM6").default)(e,t,r,n)}};e.exports.URLFactory=class{static getInstance(e){var t;if(null===(t=null==u?void 0:u.versions)||void 0===t?void 0:t.node){const{URL:t}=p;return new t(e)}return new window.URL(e)}}})),P.register("gROpM",(function(e,t){"use strict";var r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)"default"!==o&&Object.prototype.hasOwnProperty.call(e,o)&&r(t,e,o);return n(t,e),t},i=e.exports&&e.exports.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e.exports,"__esModule",{value:!0});const s=i(f),a=i(h),c=o(P("cc8zC")),u=o(P("4z1vt")),l={http:new s.default.Agent({keepAlive:!0}),https:new a.default.Agent({keepAlive:!0})};class d extends u.default{constructor(e,t,r,n=!1){super(e,t,r,n),this.defaultAgents=l}async _libRequest(e,t){try{return await c.default(e,t)}catch(e){if(!(e instanceof Error))throw new u.RequestLibError(e.message||e);throw e}}_libPerformanceNow(){return m.performance.now()}}e.exports.default=d})),P.register("cc8zC",(function(e,t){"use strict";var r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),n=e.exports&&e.exports.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(e.exports,"__esModule",{value:!0});const o={options:{method:"GET",retry:{limit:2,methods:["GET","PUT","HEAD","DELETE","OPTIONS","TRACE"],statusCodes:[408,413,429,500,502,503,504,521,522,524],errorCodes:["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"],maxRetryAfter:void 0,calculateDelay:({computedValue:e})=>e},timeout:{},headers:{"user-agent":"got (https://github.com/sindresorhus/got)"},hooks:{init:[],beforeRequest:[],beforeRedirect:[],beforeRetry:[],beforeError:[],afterResponse:[]},cache:void 0,dnsCache:void 0,decompress:!0,throwHttpErrors:!0,followRedirect:!0,isStream:!1,responseType:"text",resolveBodyOnly:!1,maxRedirects:10,prefixUrl:"",methodRewriting:!0,ignoreInvalidCookies:!1,context:{},http2:!1,allowGetBody:!1,https:void 0,pagination:{transform:e=>"json"===e.request.options.responseType?e.body:JSON.parse(e.body),paginate:e=>{if(!Reflect.has(e.headers,"link"))return!1;const t=e.headers.link.split(",");let r;for(const e of t){const t=e.split(";");if(t[1].includes("next")){r=t[0].trimStart().trim(),r=r.slice(1,-1);break}}if(r){return{url:new p.URL(r)}}return!1},filter:()=>!0,shouldContinue:()=>!0,countLimit:1/0,backoff:0,requestLimit:1e4,stackAllItems:!0},parseJson:e=>JSON.parse(e),stringifyJson:e=>JSON.stringify(e),cacheOptions:{}},handlers:[P("lqnC1").defaultHandler],mutableDefaults:!1},i=P("lqnC1").default(o);e.exports.default=i,e.exports=i,e.exports.default=i,e.exports.__esModule=!0,n(P("lqnC1"),e.exports),n(P("b6512"),e.exports)})),P.register("lqnC1",(function(e,t){"use strict";var r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),n=e.exports&&e.exports.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.defaultHandler=void 0;var o=P("gTsOG"),i=P("b6512"),s=P("kwHK5"),a=P("k9qE2"),c=P("28o8F");const u={RequestError:i.RequestError,CacheError:i.CacheError,ReadError:i.ReadError,HTTPError:i.HTTPError,MaxRedirectsError:i.MaxRedirectsError,TimeoutError:i.TimeoutError,ParseError:i.ParseError,CancelError:i.CancelError,UnsupportedProtocolError:i.UnsupportedProtocolError,UploadError:i.UploadError},l=async e=>new Promise((t=>{setTimeout(t,e)})),{normalizeArguments:d}=a.default,p=(...e)=>{let t;for(const r of e)t=d(void 0,r,t);return t},f=e=>e.isStream?new a.default(void 0,e):i.default(e),h=e=>"defaults"in e&&"options"in e.defaults,m=["get","post","put","patch","head","delete"];e.exports.defaultHandler=(e,t)=>t(e);const g=(e,t)=>{if(e)for(const r of e)r(t)},y=t=>{t._rawHandlers=t.handlers,t.handlers=t.handlers.map((e=>(t,r)=>{let n;const o=e(t,(e=>(n=r(e),n)));if(o!==n&&!t.isStream&&n){const e=o,{then:t,catch:r,finally:i}=e;Object.setPrototypeOf(e,Object.getPrototypeOf(n)),Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)),e.then=t,e.catch=r,e.finally=i}return o}));const r=(e,r={},n)=>{var c,u;let l=0;const p=e=>t.handlers[l++](e,l===t.handlers.length?f:p);if(o.default.plainObject(e)){const t={...e,...r};a.setNonEnumerableProperties([e,r],t),r=t,e=void 0}try{let o;try{g(t.options.hooks.init,r),g(null===(c=r.hooks)||void 0===c?void 0:c.init,r)}catch(e){o=e}const s=d(e,r,null!=n?n:t.options);if(s[a.kIsNormalizedAlready]=!0,o)throw new i.RequestError(o.message,o,s);return p(s)}catch(e){if(r.isStream)throw e;return s.default(e,t.options.hooks.beforeError,null===(u=r.hooks)||void 0===u?void 0:u.beforeError)}};r.extend=(...r)=>{const n=[t.options];let o,i=[...t._rawHandlers];for(const e of r)h(e)?(n.push(e.defaults.options),i.push(...e.defaults._rawHandlers),o=e.defaults.mutableDefaults):(n.push(e),"handlers"in e&&i.push(...e.handlers),o=e.mutableDefaults);return i=i.filter((t=>t!==e.exports.defaultHandler)),0===i.length&&i.push(e.exports.defaultHandler),y({options:p(...n),handlers:i,mutableDefaults:Boolean(o)})};const n=async function*(e,n){let i=d(e,n,t.options);i.resolveBodyOnly=!1;const s=i.pagination;if(!o.default.object(s))throw new TypeError("`options.pagination` must be implemented");const a=[];let{countLimit:c}=s,u=0;for(;u<s.requestLimit;){0!==u&&await l(s.backoff);const e=await r(void 0,void 0,i),t=await s.transform(e),n=[];for(const e of t)if(s.filter(e,a,n)){if(!s.shouldContinue(e,a,n))return;if(yield e,s.stackAllItems&&a.push(e),n.push(e),--c<=0)return}const o=s.paginate(e,a,n);if(!1===o)return;o===e.request.options?i=e.request.options:void 0!==o&&(i=d(void 0,o,i)),u++}};(r.paginate=n).all=async(e,t)=>{const r=[];for await(const o of n(e,t))r.push(o);return r},r.paginate.each=n,r.stream=(e,t)=>r(e,{...t,isStream:!0});for(const e of m)r[e]=(t,n)=>r(t,{...n,method:e}),r.stream[e]=(t,n)=>r(t,{...n,method:e,isStream:!0});return Object.assign(r,u),Object.defineProperty(r,"defaults",{value:t.mutableDefaults?t:c.default(t),writable:t.mutableDefaults,configurable:t.mutableDefaults,enumerable:!0}),r.mergeOptions=p,r};e.exports.default=y,n(P("l4k4H"),e.exports)})),P.register("gTsOG",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0});const r=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"];const n=["Function","Generator","AsyncGenerator","GeneratorFunction","AsyncGeneratorFunction","AsyncFunction","Observable","Array","Buffer","Blob","Object","RegExp","Date","Error","Map","Set","WeakMap","WeakSet","ArrayBuffer","SharedArrayBuffer","DataView","Promise","URL","FormData","URLSearchParams","HTMLElement",...r];const o=["null","undefined","string","number","bigint","boolean","symbol"];function i(e){return t=>typeof t===e}const{toString:s}=Object.prototype,a=e=>{const t=s.call(e).slice(8,-1);return/HTML\w+Element/.test(t)&&u.domElement(e)?"HTMLElement":(r=t,n.includes(r)?t:void 0);var r},c=e=>t=>a(t)===e;function u(e){if(null===e)return"null";switch(typeof e){case"undefined":return"undefined";case"string":return"string";case"number":return"number";case"boolean":return"boolean";case"function":return"Function";case"bigint":return"bigint";case"symbol":return"symbol"}if(u.observable(e))return"Observable";if(u.array(e))return"Array";if(u.buffer(e))return"Buffer";const t=a(e);if(t)return t;if(e instanceof String||e instanceof Boolean||e instanceof Number)throw new TypeError("Please don't use object wrappers for primitive types");return"Object"}u.undefined=i("undefined"),u.string=i("string");const l=i("number");u.number=e=>l(e)&&!u.nan(e),u.bigint=i("bigint"),u.function_=i("function"),u.null_=e=>null===e,u.class_=e=>u.function_(e)&&e.toString().startsWith("class "),u.boolean=e=>!0===e||!1===e,u.symbol=i("symbol"),u.numericString=e=>u.string(e)&&!u.emptyStringOrWhitespace(e)&&!Number.isNaN(Number(e)),u.array=(e,t)=>!!Array.isArray(e)&&(!u.function_(t)||e.every(t)),u.buffer=e=>{var t,r,n,o;return null!==(o=null===(n=null===(r=null===(t=e)||void 0===t?void 0:t.constructor)||void 0===r?void 0:r.isBuffer)||void 0===n?void 0:n.call(r,e))&&void 0!==o&&o},u.blob=e=>c("Blob")(e),u.nullOrUndefined=e=>u.null_(e)||u.undefined(e),u.object=e=>!u.null_(e)&&("object"==typeof e||u.function_(e)),u.iterable=e=>{var t;return u.function_(null===(t=e)||void 0===t?void 0:t[Symbol.iterator])},u.asyncIterable=e=>{var t;return u.function_(null===(t=e)||void 0===t?void 0:t[Symbol.asyncIterator])},u.generator=e=>{var t,r;return u.iterable(e)&&u.function_(null===(t=e)||void 0===t?void 0:t.next)&&u.function_(null===(r=e)||void 0===r?void 0:r.throw)},u.asyncGenerator=e=>u.asyncIterable(e)&&u.function_(e.next)&&u.function_(e.throw),u.nativePromise=e=>c("Promise")(e);u.promise=e=>u.nativePromise(e)||(e=>{var t,r;return u.function_(null===(t=e)||void 0===t?void 0:t.then)&&u.function_(null===(r=e)||void 0===r?void 0:r.catch)})(e),u.generatorFunction=c("GeneratorFunction"),u.asyncGeneratorFunction=e=>"AsyncGeneratorFunction"===a(e),u.asyncFunction=e=>"AsyncFunction"===a(e),u.boundFunction=e=>u.function_(e)&&!e.hasOwnProperty("prototype"),u.regExp=c("RegExp"),u.date=c("Date"),u.error=c("Error"),u.map=e=>c("Map")(e),u.set=e=>c("Set")(e),u.weakMap=e=>c("WeakMap")(e),u.weakSet=e=>c("WeakSet")(e),u.int8Array=c("Int8Array"),u.uint8Array=c("Uint8Array"),u.uint8ClampedArray=c("Uint8ClampedArray"),u.int16Array=c("Int16Array"),u.uint16Array=c("Uint16Array"),u.int32Array=c("Int32Array"),u.uint32Array=c("Uint32Array"),u.float32Array=c("Float32Array"),u.float64Array=c("Float64Array"),u.bigInt64Array=c("BigInt64Array"),u.bigUint64Array=c("BigUint64Array"),u.arrayBuffer=c("ArrayBuffer"),u.sharedArrayBuffer=c("SharedArrayBuffer"),u.dataView=c("DataView"),u.enumCase=(e,t)=>Object.values(t).includes(e),u.directInstanceOf=(e,t)=>Object.getPrototypeOf(e)===t.prototype,u.urlInstance=e=>c("URL")(e),u.urlString=e=>{if(!u.string(e))return!1;try{return new URL(e),!0}catch(e){return!1}},u.truthy=e=>Boolean(e),u.falsy=e=>!e,u.nan=e=>Number.isNaN(e),u.primitive=e=>{return u.null_(e)||(t=typeof e,o.includes(t));var t},u.integer=e=>Number.isInteger(e),u.safeInteger=e=>Number.isSafeInteger(e),u.plainObject=e=>{if("[object Object]"!==s.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.getPrototypeOf({})},u.typedArray=e=>{return t=a(e),r.includes(t);var t};u.arrayLike=e=>!u.nullOrUndefined(e)&&!u.function_(e)&&(e=>u.safeInteger(e)&&e>=0)(e.length),u.inRange=(e,t)=>{if(u.number(t))return e>=Math.min(0,t)&&e<=Math.max(t,0);if(u.array(t)&&2===t.length)return e>=Math.min(...t)&&e<=Math.max(...t);throw new TypeError(`Invalid range: ${JSON.stringify(t)}`)};const d=["innerHTML","ownerDocument","style","attributes","nodeValue"];u.domElement=e=>u.object(e)&&1===e.nodeType&&u.string(e.nodeName)&&!u.plainObject(e)&&d.every((t=>t in e)),u.observable=e=>{var t,r,n,o;return!!e&&(e===(null===(r=(t=e)[Symbol.observable])||void 0===r?void 0:r.call(t))||e===(null===(o=(n=e)["@@observable"])||void 0===o?void 0:o.call(n)))},u.nodeStream=e=>u.object(e)&&u.function_(e.pipe)&&!u.observable(e),u.infinite=e=>e===1/0||e===-1/0;const p=e=>t=>u.integer(t)&&Math.abs(t%2)===e;u.evenInteger=p(0),u.oddInteger=p(1),u.emptyArray=e=>u.array(e)&&0===e.length,u.nonEmptyArray=e=>u.array(e)&&e.length>0,u.emptyString=e=>u.string(e)&&0===e.length;u.emptyStringOrWhitespace=e=>u.emptyString(e)||(e=>u.string(e)&&!/\S/.test(e))(e),u.nonEmptyString=e=>u.string(e)&&e.length>0,u.nonEmptyStringAndNotWhitespace=e=>u.string(e)&&!u.emptyStringOrWhitespace(e),u.emptyObject=e=>u.object(e)&&!u.map(e)&&!u.set(e)&&0===Object.keys(e).length,u.nonEmptyObject=e=>u.object(e)&&!u.map(e)&&!u.set(e)&&Object.keys(e).length>0,u.emptySet=e=>u.set(e)&&0===e.size,u.nonEmptySet=e=>u.set(e)&&e.size>0,u.emptyMap=e=>u.map(e)&&0===e.size,u.nonEmptyMap=e=>u.map(e)&&e.size>0,u.propertyKey=e=>u.any([u.string,u.number,u.symbol],e),u.formData=e=>c("FormData")(e),u.urlSearchParams=e=>c("URLSearchParams")(e);const f=(e,t,r)=>{if(!u.function_(t))throw new TypeError(`Invalid predicate: ${JSON.stringify(t)}`);if(0===r.length)throw new TypeError("Invalid number of values");return e.call(r,t)};u.any=(e,...t)=>(u.array(e)?e:[e]).some((e=>f(Array.prototype.some,e,t))),u.all=(e,...t)=>f(Array.prototype.every,e,t);const h=(e,t,r,n={})=>{if(!e){const{multipleValues:e}=n,o=e?`received values of types ${[...new Set(r.map((e=>`\`${u(e)}\``)))].join(", ")}`:`received value of type \`${u(r)}\``;throw new TypeError(`Expected value which is \`${t}\`, ${o}.`)}};e.exports.assert={undefined:e=>h(u.undefined(e),"undefined",e),string:e=>h(u.string(e),"string",e),number:e=>h(u.number(e),"number",e),bigint:e=>h(u.bigint(e),"bigint",e),function_:e=>h(u.function_(e),"Function",e),null_:e=>h(u.null_(e),"null",e),class_:e=>h(u.class_(e),"Class",e),boolean:e=>h(u.boolean(e),"boolean",e),symbol:e=>h(u.symbol(e),"symbol",e),numericString:e=>h(u.numericString(e),"string with a number",e),array:(e,t)=>{h(u.array(e),"Array",e),t&&e.forEach(t)},buffer:e=>h(u.buffer(e),"Buffer",e),blob:e=>h(u.blob(e),"Blob",e),nullOrUndefined:e=>h(u.nullOrUndefined(e),"null or undefined",e),object:e=>h(u.object(e),"Object",e),iterable:e=>h(u.iterable(e),"Iterable",e),asyncIterable:e=>h(u.asyncIterable(e),"AsyncIterable",e),generator:e=>h(u.generator(e),"Generator",e),asyncGenerator:e=>h(u.asyncGenerator(e),"AsyncGenerator",e),nativePromise:e=>h(u.nativePromise(e),"native Promise",e),promise:e=>h(u.promise(e),"Promise",e),generatorFunction:e=>h(u.generatorFunction(e),"GeneratorFunction",e),asyncGeneratorFunction:e=>h(u.asyncGeneratorFunction(e),"AsyncGeneratorFunction",e),asyncFunction:e=>h(u.asyncFunction(e),"AsyncFunction",e),boundFunction:e=>h(u.boundFunction(e),"Function",e),regExp:e=>h(u.regExp(e),"RegExp",e),date:e=>h(u.date(e),"Date",e),error:e=>h(u.error(e),"Error",e),map:e=>h(u.map(e),"Map",e),set:e=>h(u.set(e),"Set",e),weakMap:e=>h(u.weakMap(e),"WeakMap",e),weakSet:e=>h(u.weakSet(e),"WeakSet",e),int8Array:e=>h(u.int8Array(e),"Int8Array",e),uint8Array:e=>h(u.uint8Array(e),"Uint8Array",e),uint8ClampedArray:e=>h(u.uint8ClampedArray(e),"Uint8ClampedArray",e),int16Array:e=>h(u.int16Array(e),"Int16Array",e),uint16Array:e=>h(u.uint16Array(e),"Uint16Array",e),int32Array:e=>h(u.int32Array(e),"Int32Array",e),uint32Array:e=>h(u.uint32Array(e),"Uint32Array",e),float32Array:e=>h(u.float32Array(e),"Float32Array",e),float64Array:e=>h(u.float64Array(e),"Float64Array",e),bigInt64Array:e=>h(u.bigInt64Array(e),"BigInt64Array",e),bigUint64Array:e=>h(u.bigUint64Array(e),"BigUint64Array",e),arrayBuffer:e=>h(u.arrayBuffer(e),"ArrayBuffer",e),sharedArrayBuffer:e=>h(u.sharedArrayBuffer(e),"SharedArrayBuffer",e),dataView:e=>h(u.dataView(e),"DataView",e),enumCase:(e,t)=>h(u.enumCase(e,t),"EnumCase",e),urlInstance:e=>h(u.urlInstance(e),"URL",e),urlString:e=>h(u.urlString(e),"string with a URL",e),truthy:e=>h(u.truthy(e),"truthy",e),falsy:e=>h(u.falsy(e),"falsy",e),nan:e=>h(u.nan(e),"NaN",e),primitive:e=>h(u.primitive(e),"primitive",e),integer:e=>h(u.integer(e),"integer",e),safeInteger:e=>h(u.safeInteger(e),"integer",e),plainObject:e=>h(u.plainObject(e),"plain object",e),typedArray:e=>h(u.typedArray(e),"TypedArray",e),arrayLike:e=>h(u.arrayLike(e),"array-like",e),domElement:e=>h(u.domElement(e),"HTMLElement",e),observable:e=>h(u.observable(e),"Observable",e),nodeStream:e=>h(u.nodeStream(e),"Node.js Stream",e),infinite:e=>h(u.infinite(e),"infinite number",e),emptyArray:e=>h(u.emptyArray(e),"empty array",e),nonEmptyArray:e=>h(u.nonEmptyArray(e),"non-empty array",e),emptyString:e=>h(u.emptyString(e),"empty string",e),emptyStringOrWhitespace:e=>h(u.emptyStringOrWhitespace(e),"empty string or whitespace",e),nonEmptyString:e=>h(u.nonEmptyString(e),"non-empty string",e),nonEmptyStringAndNotWhitespace:e=>h(u.nonEmptyStringAndNotWhitespace(e),"non-empty string and not whitespace",e),emptyObject:e=>h(u.emptyObject(e),"empty object",e),nonEmptyObject:e=>h(u.nonEmptyObject(e),"non-empty object",e),emptySet:e=>h(u.emptySet(e),"empty set",e),nonEmptySet:e=>h(u.nonEmptySet(e),"non-empty set",e),emptyMap:e=>h(u.emptyMap(e),"empty map",e),nonEmptyMap:e=>h(u.nonEmptyMap(e),"non-empty map",e),propertyKey:e=>h(u.propertyKey(e),"PropertyKey",e),formData:e=>h(u.formData(e),"FormData",e),urlSearchParams:e=>h(u.urlSearchParams(e),"URLSearchParams",e),evenInteger:e=>h(u.evenInteger(e),"even integer",e),oddInteger:e=>h(u.oddInteger(e),"odd integer",e),directInstanceOf:(e,t)=>h(u.directInstanceOf(e,t),"T",e),inRange:(e,t)=>h(u.inRange(e,t),"in range",e),any:(e,...t)=>h(u.any(e,...t),"predicate returns truthy for any value",t,{multipleValues:!0}),all:(e,...t)=>h(u.all(e,...t),"predicate returns truthy for all values",t,{multipleValues:!0})},Object.defineProperties(u,{class:{value:u.class_},function:{value:u.function_},null:{value:u.null_}}),Object.defineProperties(e.exports.assert,{class:{value:e.exports.assert.class_},function:{value:e.exports.assert.function_},null:{value:e.exports.assert.null_}}),e.exports.default=u,e.exports=u,e.exports.default=u,e.exports.assert=e.exports.assert})),P.register("b6512",(function(e,t){"use strict";var r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),n=e.exports&&e.exports.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(e.exports,"__esModule",{value:!0});var o=P("gTsOG"),i=P("cjswX"),s=P("e8nKR"),a=P("k9qE2"),c=P("lSeCe"),u=P("420ky"),d=P("f5Wfg");const p=["request","response","redirect","uploadProgress","downloadProgress"];e.exports.default=function e(t){let r,n;const f=new l.EventEmitter,h=new i(((i,l,m)=>{const g=y=>{const b=new a.default(void 0,t);b.retryCount=y,b._noPipe=!0,m((()=>b.destroy())),m.shouldReject=!1,m((()=>l(new(P("dFbY3").CancelError)(b)))),r=b,b.once("response",(async t=>{var r;if(t.retryCount=y,t.request.aborted)return;let o;try{o=await u.default(b),t.rawBody=o}catch(e){return}if(b._isAboutToError)return;const c=(null!==(r=t.headers["content-encoding"])&&void 0!==r?r:"").toLowerCase(),l=["gzip","deflate","br"].includes(c),{options:p}=b;if(l&&!p.decompress)t.body=o;else try{t.body=s.default(t,p.responseType,p.parseJson,p.encoding)}catch(e){if(t.body=o.toString(),d.isResponseOk(t))return void b._beforeError(e)}try{for(const[r,n]of p.hooks.afterResponse.entries())t=await n(t,(async t=>{const n=a.default.normalizeArguments(void 0,{...t,retry:{calculateDelay:()=>0},throwHttpErrors:!1,resolveBodyOnly:!1},p);n.hooks.afterResponse=n.hooks.afterResponse.slice(0,r);for(const e of n.hooks.beforeRetry)await e(n);const o=e(n);return m((()=>{o.catch((()=>{})),o.cancel()})),o}))}catch(e){return void b._beforeError(new(P("dFbY3").RequestError)(e.message,e,b))}n=t,d.isResponseOk(t)?(b.destroy(),i(b.options.resolveBodyOnly?t.body:t)):b._beforeError(new(P("dFbY3").HTTPError)(t))}));const v=e=>{if(h.isCanceled)return;const{options:t}=b;if(e instanceof P("dFbY3").HTTPError&&!t.throwHttpErrors){const{response:t}=e;i(b.options.resolveBodyOnly?t.body:t)}else l(e)};b.once("error",v);const w=b.options.body;b.once("retry",((e,t)=>{var r,n;w===(null===(r=t.request)||void 0===r?void 0:r.options.body)&&o.default.nodeStream(null===(n=t.request)||void 0===n?void 0:n.options.body)?v(t):g(e)})),c.default(b,f,p)};g(0)}));h.on=(e,t)=>(f.on(e,t),h);const m=e=>{const t=(async()=>{await h;const{options:t}=n.request;return s.default(n,e,t.parseJson,t.encoding)})();return Object.defineProperties(t,Object.getOwnPropertyDescriptors(h)),t};return h.json=()=>{const{headers:e}=r.options;return r.writableFinished||void 0!==e.accept||(e.accept="application/json"),m("json")},h.buffer=()=>m("buffer"),h.text=()=>m("text"),h},n(P("dFbY3"),e.exports)})),P.register("cjswX",(function(e,t){"use strict";class r extends Error{constructor(e){super(e||"Promise was canceled"),this.name="CancelError"}get isCanceled(){return!0}}class n{static fn(e){return(...t)=>new n(((r,n,o)=>{t.push(o),e(...t).then(r,n)}))}constructor(e){this._cancelHandlers=[],this._isPending=!0,this._isCanceled=!1,this._rejectOnCancel=!0,this._promise=new Promise(((t,r)=>{this._reject=r;const n=e=>{if(!this._isPending)throw new Error("The `onCancel` handler was attached after the promise settled.");this._cancelHandlers.push(e)};return Object.defineProperties(n,{shouldReject:{get:()=>this._rejectOnCancel,set:e=>{this._rejectOnCancel=e}}}),e((e=>{this._isCanceled&&n.shouldReject||(this._isPending=!1,t(e))}),(e=>{this._isPending=!1,r(e)}),n)}))}then(e,t){return this._promise.then(e,t)}catch(e){return this._promise.catch(e)}finally(e){return this._promise.finally(e)}cancel(e){if(this._isPending&&!this._isCanceled){if(this._isCanceled=!0,this._cancelHandlers.length>0)try{for(const e of this._cancelHandlers)e()}catch(e){return void this._reject(e)}this._rejectOnCancel&&this._reject(new r(e))}}get isCanceled(){return this._isCanceled}}Object.setPrototypeOf(n.prototype,Promise.prototype),e.exports=n,e.exports.CancelError=r})),P.register("dFbY3",(function(e,t){"use strict";var r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),n=e.exports&&e.exports.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.CancelError=e.exports.ParseError=void 0;class o extends P("k9qE2").RequestError{constructor(e,t){const{options:r}=t.request;super(`${e.message} in "${r.url.toString()}"`,e,t.request),this.name="ParseError",this.code="ERR_GOT_REQUEST_ERROR"===this.code?"ERR_BODY_PARSE_FAILURE":this.code}}e.exports.ParseError=o;class i extends P("k9qE2").RequestError{constructor(e){super("Promise was canceled",{},e),this.name="CancelError",this.code="ERR_CANCELED"}get isCanceled(){return!0}}e.exports.CancelError=i,n(P("k9qE2"),e.exports)})),P.register("k9qE2",(function(e,t){var r=c.Buffer;Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.UnsupportedProtocolError=e.exports.ReadError=e.exports.TimeoutError=e.exports.UploadError=e.exports.CacheError=e.exports.HTTPError=e.exports.MaxRedirectsError=e.exports.RequestError=e.exports.setNonEnumerableProperties=e.exports.knownHookEvents=e.exports.withoutBody=e.exports.kIsNormalizedAlready=void 0;var n=P("5sTS6"),o=P("g6dvj"),a=P("dRxNE"),l=P("8Hrli"),d=P("8Td3W"),m=P("8Jhot"),y=P("gTsOG"),b=P("1KYbf"),v=P("6rVm0"),w=P("lSeCe"),_=P("5l83E"),S=P("kh4Im"),E=P("gZ8Ha"),x=P("1UF61"),k=P("420ky"),T=P("glizj"),O=P("f5Wfg"),A=P("d9hSi"),I=P("c7cDZ"),j=P("h2Rad");let R;const C=Symbol("request"),L=Symbol("response"),N=Symbol("responseSize"),q=Symbol("downloadedSize"),D=Symbol("bodySize"),M=Symbol("uploadedSize"),U=Symbol("serverResponsesPiped"),F=Symbol("unproxyEvents"),W=Symbol("isFromCache"),B=Symbol("cancelTimeouts"),z=Symbol("startedReading"),H=Symbol("stopReading"),G=Symbol("triggerRead"),$=Symbol("body"),J=Symbol("jobs"),Z=Symbol("originalResponse"),V=Symbol("retryTimeout");e.exports.kIsNormalizedAlready=Symbol("isNormalizedAlready");const Q=y.default.string(u.versions.brotli);e.exports.withoutBody=new Set(["GET","HEAD"]),e.exports.knownHookEvents=["init","beforeRequest","beforeRedirect","beforeError","beforeRetry","afterResponse"];const K=new x.default,X=new Set([300,301,302,303,304,307,308]),Y=["context","body","json","form"];e.exports.setNonEnumerableProperties=(e,t)=>{const r={};for(const t of e)if(t)for(const e of Y)e in t&&(r[e]={writable:!0,configurable:!0,enumerable:!1,value:t[e]});Object.defineProperties(t,r)};class ee extends Error{constructor(e,t,r){var n,o;if(super(e),Error.captureStackTrace(this,this.constructor),this.name="RequestError",this.code=null!==(n=t.code)&&void 0!==n?n:"ERR_GOT_REQUEST_ERROR",r instanceof ue?(Object.defineProperty(this,"request",{enumerable:!1,value:r}),Object.defineProperty(this,"response",{enumerable:!1,value:r[L]}),Object.defineProperty(this,"options",{enumerable:!1,value:r.options})):Object.defineProperty(this,"options",{enumerable:!1,value:r}),this.timings=null===(o=this.request)||void 0===o?void 0:o.timings,y.default.string(t.stack)&&y.default.string(this.stack)){const e=this.stack.indexOf(this.message)+this.message.length,r=this.stack.slice(e).split("\n").reverse(),n=t.stack.slice(t.stack.indexOf(t.message)+t.message.length).split("\n").reverse();for(;0!==n.length&&n[0]===r[0];)r.shift();this.stack=`${this.stack.slice(0,e)}${r.reverse().join("\n")}${n.reverse().join("\n")}`}}}e.exports.RequestError=ee;class te extends ee{constructor(e){super(`Redirected ${e.options.maxRedirects} times. Aborting.`,{},e),this.name="MaxRedirectsError",this.code="ERR_TOO_MANY_REDIRECTS"}}e.exports.MaxRedirectsError=te;class re extends ee{constructor(e){super(`Response code ${e.statusCode} (${e.statusMessage})`,{},e.request),this.name="HTTPError",this.code="ERR_NON_2XX_3XX_RESPONSE"}}e.exports.HTTPError=re;class ne extends ee{constructor(e,t){super(e.message,e,t),this.name="CacheError",this.code="ERR_GOT_REQUEST_ERROR"===this.code?"ERR_CACHE_ACCESS":this.code}}e.exports.CacheError=ne;class oe extends ee{constructor(e,t){super(e.message,e,t),this.name="UploadError",this.code="ERR_GOT_REQUEST_ERROR"===this.code?"ERR_UPLOAD":this.code}}e.exports.UploadError=oe;class ie extends ee{constructor(e,t,r){super(e.message,e,r),this.name="TimeoutError",this.event=e.event,this.timings=t}}e.exports.TimeoutError=ie;class se extends ee{constructor(e,t){super(e.message,e,t),this.name="ReadError",this.code="ERR_GOT_REQUEST_ERROR"===this.code?"ERR_READING_RESPONSE_STREAM":this.code}}e.exports.ReadError=se;class ae extends ee{constructor(e){super(`Unsupported protocol "${e.url.protocol}"`,{},e),this.name="UnsupportedProtocolError",this.code="ERR_UNSUPPORTED_PROTOCOL"}}e.exports.UnsupportedProtocolError=ae;const ce=["socket","connect","continue","information","upgrade","timeout"];class ue extends g.Duplex{constructor(t,r={},n){super({autoDestroy:!1,highWaterMark:0}),this[q]=0,this[M]=0,this.requestInitialized=!1,this[U]=new Set,this.redirects=[],this[H]=!1,this[G]=!1,this[J]=[],this.retryCount=0,this._progressCallbacks=[];const o=()=>this._unlockWrite(),s=()=>this._lockWrite();this.on("pipe",(e=>{e.prependListener("data",o),e.on("data",s),e.prependListener("end",o),e.on("end",s)})),this.on("unpipe",(e=>{e.off("data",o),e.off("data",s),e.off("end",o),e.off("end",s)})),this.on("pipe",(e=>{e instanceof f.IncomingMessage&&(this.options.headers={...e.headers,...this.options.headers})}));const{json:a,body:c,form:u}=r;if((a||c||u)&&this._lockWrite(),e.exports.kIsNormalizedAlready in r)this.options=r;else try{this.options=this.constructor.normalizeArguments(t,r,n)}catch(e){return y.default.nodeStream(r.body)&&r.body.destroy(),void this.destroy(e)}(async()=>{var e;try{this.options.body instanceof i.ReadStream&&await(async e=>new Promise(((t,r)=>{const n=e=>{r(e)};e.pending||t(),e.once("error",n),e.once("ready",(()=>{e.off("error",n),t()}))})))(this.options.body);const{url:t}=this.options;if(!t)throw new TypeError("Missing `url` property");if(this.requestUrl=t.toString(),decodeURI(this.requestUrl),await this._finalizeBody(),await this._makeRequest(),this.destroyed)return void(null===(e=this[C])||void 0===e||e.destroy());for(const e of this[J])e();this[J].length=0,this.requestInitialized=!0}catch(e){if(e instanceof ee)return void this._beforeError(e);this.destroyed||this.destroy(e)}})()}static normalizeArguments(t,r,n){var i,c,u,l,d;const f=r;if(y.default.object(t)&&!y.default.urlInstance(t))r={...n,...t,...r};else{if(t&&r&&void 0!==r.url)throw new TypeError("The `url` option is mutually exclusive with the `input` argument");r={...n,...r},void 0!==t&&(r.url=t),y.default.urlInstance(r.url)&&(r.url=new p.URL(r.url.toString()))}if(!1===r.cache&&(r.cache=void 0),!1===r.dnsCache&&(r.dnsCache=void 0),y.assert.any([y.default.string,y.default.undefined],r.method),y.assert.any([y.default.object,y.default.undefined],r.headers),y.assert.any([y.default.string,y.default.urlInstance,y.default.undefined],r.prefixUrl),y.assert.any([y.default.object,y.default.undefined],r.cookieJar),y.assert.any([y.default.object,y.default.string,y.default.undefined],r.searchParams),y.assert.any([y.default.object,y.default.string,y.default.undefined],r.cache),y.assert.any([y.default.object,y.default.number,y.default.undefined],r.timeout),y.assert.any([y.default.object,y.default.undefined],r.context),y.assert.any([y.default.object,y.default.undefined],r.hooks),y.assert.any([y.default.boolean,y.default.undefined],r.decompress),y.assert.any([y.default.boolean,y.default.undefined],r.ignoreInvalidCookies),y.assert.any([y.default.boolean,y.default.undefined],r.followRedirect),y.assert.any([y.default.number,y.default.undefined],r.maxRedirects),y.assert.any([y.default.boolean,y.default.undefined],r.throwHttpErrors),y.assert.any([y.default.boolean,y.default.undefined],r.http2),y.assert.any([y.default.boolean,y.default.undefined],r.allowGetBody),y.assert.any([y.default.string,y.default.undefined],r.localAddress),y.assert.any([T.isDnsLookupIpVersion,y.default.undefined],r.dnsLookupIpVersion),y.assert.any([y.default.object,y.default.undefined],r.https),y.assert.any([y.default.boolean,y.default.undefined],r.rejectUnauthorized),r.https&&(y.assert.any([y.default.boolean,y.default.undefined],r.https.rejectUnauthorized),y.assert.any([y.default.function_,y.default.undefined],r.https.checkServerIdentity),y.assert.any([y.default.string,y.default.object,y.default.array,y.default.undefined],r.https.certificateAuthority),y.assert.any([y.default.string,y.default.object,y.default.array,y.default.undefined],r.https.key),y.assert.any([y.default.string,y.default.object,y.default.array,y.default.undefined],r.https.certificate),y.assert.any([y.default.string,y.default.undefined],r.https.passphrase),y.assert.any([y.default.string,y.default.buffer,y.default.array,y.default.undefined],r.https.pfx)),y.assert.any([y.default.object,y.default.undefined],r.cacheOptions),y.default.string(r.method)?r.method=r.method.toUpperCase():r.method="GET",r.headers===(null==n?void 0:n.headers)?r.headers={...r.headers}:r.headers=m({...null==n?void 0:n.headers,...r.headers}),"slashes"in r)throw new TypeError("The legacy `url.Url` has been deprecated. Use `URL` instead.");if("auth"in r)throw new TypeError("Parameter `auth` is deprecated. Use `username` / `password` instead.");if("searchParams"in r&&r.searchParams&&r.searchParams!==(null==n?void 0:n.searchParams)){let e;if(y.default.string(r.searchParams)||r.searchParams instanceof p.URLSearchParams)e=new p.URLSearchParams(r.searchParams);else{!function(e){for(const t in e){const r=e[t];if(!(y.default.string(r)||y.default.number(r)||y.default.boolean(r)||y.default.null_(r)||y.default.undefined(r)))throw new TypeError(`The \`searchParams\` value '${String(r)}' must be a string, number, boolean or null`)}}(r.searchParams),e=new p.URLSearchParams;for(const t in r.searchParams){const n=r.searchParams[t];null===n?e.append(t,""):void 0!==n&&e.append(t,n)}}null===(i=null==n?void 0:n.searchParams)||void 0===i||i.forEach(((t,r)=>{e.has(r)||e.append(r,t)})),r.searchParams=e}if(r.username=null!==(c=r.username)&&void 0!==c?c:"",r.password=null!==(u=r.password)&&void 0!==u?u:"",y.default.undefined(r.prefixUrl)?r.prefixUrl=null!==(l=null==n?void 0:n.prefixUrl)&&void 0!==l?l:"":(r.prefixUrl=r.prefixUrl.toString(),""===r.prefixUrl||r.prefixUrl.endsWith("/")||(r.prefixUrl+="/")),y.default.string(r.url)){if(r.url.startsWith("/"))throw new Error("`input` must not start with a slash when using `prefixUrl`");r.url=E.default(r.prefixUrl+r.url,r)}else(y.default.undefined(r.url)&&""!==r.prefixUrl||r.protocol)&&(r.url=E.default(r.prefixUrl,r));if(r.url){"port"in r&&delete r.port;let{prefixUrl:e}=r;Object.defineProperty(r,"prefixUrl",{set:t=>{const n=r.url;if(!n.href.startsWith(t))throw new Error(`Cannot change \`prefixUrl\` from ${e} to ${t}: ${n.href}`);r.url=new p.URL(t+n.href.slice(e.length)),e=t},get:()=>e});let{protocol:t}=r.url;if("unix:"===t&&(t="http:",r.url=new p.URL(`http://unix${r.url.pathname}${r.url.search}`)),r.searchParams&&(r.url.search=r.searchParams.toString()),"http:"!==t&&"https:"!==t)throw new ae(r);""===r.username?r.username=r.url.username:r.url.username=r.username,""===r.password?r.password=r.url.password:r.url.password=r.password}const{cookieJar:h}=r;if(h){let{setCookie:e,getCookieString:t}=h;y.assert.function_(e),y.assert.function_(t),4===e.length&&0===t.length&&(e=s.promisify(e.bind(r.cookieJar)),t=s.promisify(t.bind(r.cookieJar)),r.cookieJar={setCookie:e,getCookieString:t})}const{cache:g}=r;if(g&&(K.has(g)||K.set(g,new a(((e,t)=>{const r=e[C](e,t);return y.default.promise(r)&&(r.once=(e,t)=>{if("error"===e)r.catch(t);else{if("abort"!==e)throw new Error(`Unknown HTTP2 promise event: ${e}`);(async()=>{try{(await r).once("abort",t)}catch(e){}})()}return r}),r}),g))),r.cacheOptions={...r.cacheOptions},!0===r.dnsCache)R||(R=new o.default),r.dnsCache=R;else if(!y.default.undefined(r.dnsCache)&&!r.dnsCache.lookup)throw new TypeError(`Parameter \`dnsCache\` must be a CacheableLookup instance or a boolean, got ${y.default(r.dnsCache)}`);y.default.number(r.timeout)?r.timeout={request:r.timeout}:n&&r.timeout!==n.timeout?r.timeout={...n.timeout,...r.timeout}:r.timeout={...r.timeout},r.context||(r.context={});const b=r.hooks===(null==n?void 0:n.hooks);r.hooks={...r.hooks};for(const t of e.exports.knownHookEvents)if(t in r.hooks){if(!y.default.array(r.hooks[t]))throw new TypeError(`Parameter \`${t}\` must be an Array, got ${y.default(r.hooks[t])}`);r.hooks[t]=[...r.hooks[t]]}else r.hooks[t]=[];if(n&&!b)for(const t of e.exports.knownHookEvents){n.hooks[t].length>0&&(r.hooks[t]=[...n.hooks[t],...r.hooks[t]])}if("family"in r&&A.default('"options.family" was never documented, please use "options.dnsLookupIpVersion"'),(null==n?void 0:n.https)&&(r.https={...n.https,...r.https}),"rejectUnauthorized"in r&&A.default('"options.rejectUnauthorized" is now deprecated, please use "options.https.rejectUnauthorized"'),"checkServerIdentity"in r&&A.default('"options.checkServerIdentity" was never documented, please use "options.https.checkServerIdentity"'),"ca"in r&&A.default('"options.ca" was never documented, please use "options.https.certificateAuthority"'),"key"in r&&A.default('"options.key" was never documented, please use "options.https.key"'),"cert"in r&&A.default('"options.cert" was never documented, please use "options.https.certificate"'),"passphrase"in r&&A.default('"options.passphrase" was never documented, please use "options.https.passphrase"'),"pfx"in r&&A.default('"options.pfx" was never documented, please use "options.https.pfx"'),"followRedirects"in r)throw new TypeError("The `followRedirects` option does not exist. Use `followRedirect` instead.");if(r.agent)for(const e in r.agent)if("http"!==e&&"https"!==e&&"http2"!==e)throw new TypeError(`Expected the \`options.agent\` properties to be \`http\`, \`https\` or \`http2\`, got \`${e}\``);return r.maxRedirects=null!==(d=r.maxRedirects)&&void 0!==d?d:0,e.exports.setNonEnumerableProperties([n,f],r),I.default(r,n)}_lockWrite(){const e=()=>{throw new TypeError("The payload has been already provided")};this.write=e,this.end=e}_unlockWrite(){this.write=super.write,this.end=super.end}async _finalizeBody(){const{options:t}=this,{headers:r}=t,n=!y.default.undefined(t.form),o=!y.default.undefined(t.json),i=!y.default.undefined(t.body),s=n||o||i,a=e.exports.withoutBody.has(t.method)&&!("GET"===t.method&&t.allowGetBody);if(this._cannotHaveBody=a,s){if(a)throw new TypeError(`The \`${t.method}\` method cannot be used with a body`);if([i,n,o].filter((e=>e)).length>1)throw new TypeError("The `body`, `json` and `form` options are mutually exclusive");if(i&&!(t.body instanceof g.Readable)&&!y.default.string(t.body)&&!y.default.buffer(t.body)&&!v.default(t.body))throw new TypeError("The `body` option must be a stream.Readable, string or Buffer");if(n&&!y.default.object(t.form))throw new TypeError("The `form` option must be an Object");{const e=!y.default.string(r["content-type"]);i?(v.default(t.body)&&e&&(r["content-type"]=`multipart/form-data; boundary=${t.body.getBoundary()}`),this[$]=t.body):n?(e&&(r["content-type"]="application/x-www-form-urlencoded"),this[$]=new p.URLSearchParams(t.form).toString()):(e&&(r["content-type"]="application/json"),this[$]=t.stringifyJson(t.json));const o=await b.default(this[$],t.headers);y.default.undefined(r["content-length"])&&y.default.undefined(r["transfer-encoding"])&&(a||y.default.undefined(o)||(r["content-length"]=String(o)))}}else a?this._lockWrite():this._unlockWrite();this[D]=Number(r["content-length"])||void 0}async _onResponseBase(e){const{options:t}=this,{url:n}=t;this[Z]=e,t.decompress&&(e=l(e));const o=e.statusCode,i=e;i.statusMessage=i.statusMessage?i.statusMessage:f.STATUS_CODES[o],i.url=t.url.toString(),i.requestUrl=this.requestUrl,i.redirectUrls=this.redirects,i.request=this,i.isFromCache=e.fromCache||!1,i.ip=this.ip,i.retryCount=this.retryCount,this[W]=i.isFromCache,this[N]=Number(e.headers["content-length"])||void 0,this[L]=e,e.once("end",(()=>{this[N]=this[q],this.emit("downloadProgress",this.downloadProgress)})),e.once("error",(t=>{e.destroy(),this._beforeError(new se(t,this))})),e.once("aborted",(()=>{this._beforeError(new se({name:"Error",message:"The server aborted pending request",code:"ECONNRESET"},this))})),this.emit("downloadProgress",this.downloadProgress);const s=e.headers["set-cookie"];if(y.default.object(t.cookieJar)&&s){let a=s.map((async e=>t.cookieJar.setCookie(e,n.toString())));t.ignoreInvalidCookies&&(a=a.map((async e=>e.catch((()=>{})))));try{await Promise.all(a)}catch(c){return void this._beforeError(c)}}if(t.followRedirect&&e.headers.location&&X.has(o)){e.resume(),this[C]&&(this[B](),delete this[C],this[F]());if(!(303===o&&"GET"!==t.method&&"HEAD"!==t.method)&&t.methodRewriting||(t.method="GET","body"in t&&delete t.body,"json"in t&&delete t.json,"form"in t&&delete t.form,this[$]=void 0,delete t.headers["content-length"]),this.redirects.length>=t.maxRedirects)return void this._beforeError(new te(this));try{const u=r.from(e.headers.location,"binary").toString(),d=new p.URL(u,n),h=d.toString();function m(e){return"unix:"===e.protocol||"unix"===e.hostname}if(decodeURI(h),!m(n)&&m(d))return void this._beforeError(new ee("Cannot redirect to UNIX socket",{},this));d.hostname!==n.hostname||d.port!==n.port?("host"in t.headers&&delete t.headers.host,"cookie"in t.headers&&delete t.headers.cookie,"authorization"in t.headers&&delete t.headers.authorization,(t.username||t.password)&&(t.username="",t.password="")):(d.username=t.username,d.password=t.password),this.redirects.push(h),t.url=d;for(const g of t.hooks.beforeRedirect)await g(t,i);this.emit("redirect",i,t),await this._makeRequest()}catch(b){return void this._beforeError(b)}}else if(t.isStream&&t.throwHttpErrors&&!O.isResponseOk(i))this._beforeError(new re(i));else{e.on("readable",(()=>{this[G]&&this._read()})),this.on("resume",(()=>{e.resume()})),this.on("pause",(()=>{e.pause()})),e.once("end",(()=>{this.push(null)})),this.emit("response",e);for(const v of this[U])if(!v.headersSent){for(const w in e.headers){const _=!t.decompress||"content-encoding"!==w,S=e.headers[w];_&&v.setHeader(w,S)}v.statusCode=o}}}async _onResponse(e){try{await this._onResponseBase(e)}catch(e){this._beforeError(e)}}_onRequest(e){const{options:t}=this,{timeout:r,url:o}=t;n.default(e),this[B]=_.default(e,r,o);const i=t.cache?"cacheableResponse":"response";e.once(i,(e=>{this._onResponse(e)})),e.once("error",(t=>{var r;e.destroy(),null===(r=e.res)||void 0===r||r.removeAllListeners("end"),t=t instanceof _.TimeoutError?new ie(t,this.timings,this):new ee(t.message,t,this),this._beforeError(t)})),this[F]=w.default(e,this,ce),this[C]=e,this.emit("uploadProgress",this.uploadProgress);const s=this[$],a=0===this.redirects.length?this:e;y.default.nodeStream(s)?(s.pipe(a),s.once("error",(e=>{this._beforeError(new oe(e,this))}))):(this._unlockWrite(),y.default.undefined(s)?(this._cannotHaveBody||this._noPipe)&&(a.end(),this._lockWrite()):(this._writeRequest(s,void 0,(()=>{})),a.end(),this._lockWrite())),this.emit("request",e)}async _createCacheableRequest(e,t){return new Promise(((r,n)=>{let o;Object.assign(t,S.default(e)),delete t.url;const i=K.get(t.cache)(t,(async e=>{e._readableState.autoDestroy=!1,o&&(await o).emit("cacheableResponse",e),r(e)}));t.url=e,i.once("error",n),i.once("request",(async e=>{o=e,r(o)}))}))}async _makeRequest(){var e,t,r,n,o;const{options:i}=this,{headers:s}=i;for(const e in s)if(y.default.undefined(s[e]))delete s[e];else if(y.default.null_(s[e]))throw new TypeError(`Use \`undefined\` instead of \`null\` to delete the \`${e}\` header`);if(i.decompress&&y.default.undefined(s["accept-encoding"])&&(s["accept-encoding"]=Q?"gzip, deflate, br":"gzip, deflate"),i.cookieJar){const e=await i.cookieJar.getCookieString(i.url.toString());y.default.nonEmptyString(e)&&(i.headers.cookie=e)}for(const e of i.hooks.beforeRequest){const t=await e(i);if(!y.default.undefined(t)){i.request=()=>t;break}}i.body&&this[$]!==i.body&&(this[$]=i.body);const{agent:c,request:u,timeout:l,url:p}=i;if(i.dnsCache&&!("lookup"in i)&&(i.lookup=i.dnsCache.lookup),"unix"===p.hostname){const e=/(?<socketPath>.+?):(?<path>.+)/.exec(`${p.pathname}${p.search}`);if(null==e?void 0:e.groups){const{socketPath:t,path:r}=e.groups;Object.assign(i,{socketPath:t,path:r,host:""})}}const m="https:"===p.protocol;let g;g=i.http2?d.auto:m?h.request:f.request;const b=null!==(e=i.request)&&void 0!==e?e:g,v=i.cache?this._createCacheableRequest:b;c&&!i.http2&&(i.agent=c[m?"https":"http"]),i[C]=b,delete i.request,delete i.timeout;const w=i;if(w.shared=null===(t=i.cacheOptions)||void 0===t?void 0:t.shared,w.cacheHeuristic=null===(r=i.cacheOptions)||void 0===r?void 0:r.cacheHeuristic,w.immutableMinTimeToLive=null===(n=i.cacheOptions)||void 0===n?void 0:n.immutableMinTimeToLive,w.ignoreCargoCult=null===(o=i.cacheOptions)||void 0===o?void 0:o.ignoreCargoCult,void 0!==i.dnsLookupIpVersion)try{w.family=T.dnsLookupIpVersionToFamily(i.dnsLookupIpVersion)}catch(e){throw new Error("Invalid `dnsLookupIpVersion` option value")}i.https&&("rejectUnauthorized"in i.https&&(w.rejectUnauthorized=i.https.rejectUnauthorized),i.https.checkServerIdentity&&(w.checkServerIdentity=i.https.checkServerIdentity),i.https.certificateAuthority&&(w.ca=i.https.certificateAuthority),i.https.certificate&&(w.cert=i.https.certificate),i.https.key&&(w.key=i.https.key),i.https.passphrase&&(w.passphrase=i.https.passphrase),i.https.pfx&&(w.pfx=i.https.pfx));try{let e=await v(p,w);y.default.undefined(e)&&(e=g(p,w)),i.request=u,i.timeout=l,i.agent=c,i.https&&("rejectUnauthorized"in i.https&&delete w.rejectUnauthorized,i.https.checkServerIdentity&&delete w.checkServerIdentity,i.https.certificateAuthority&&delete w.ca,i.https.certificate&&delete w.cert,i.https.key&&delete w.key,i.https.passphrase&&delete w.passphrase,i.https.pfx&&delete w.pfx),_=e,y.default.object(_)&&!("statusCode"in _)?this._onRequest(e):this.writable?(this.once("finish",(()=>{this._onResponse(e)})),this._unlockWrite(),this.end(),this._lockWrite()):this._onResponse(e)}catch(e){if(e instanceof a.CacheError)throw new ne(e,this);throw new ee(e.message,e,this)}var _}async _error(e){try{for(const t of this.options.hooks.beforeError)e=await t(e)}catch(t){e=new ee(t.message,t,this)}this.destroy(e)}_beforeError(e){if(this[H])return;const{options:t}=this,r=this.retryCount+1;this[H]=!0,e instanceof ee||(e=new ee(e.message,e,this));const n=e,{response:o}=n;(async()=>{if(o&&!o.body){o.setEncoding(this._readableState.encoding);try{o.rawBody=await k.default(o),o.body=o.rawBody.toString()}catch(e){}}if(0!==this.listenerCount("retry")){let i;try{let e;o&&"retry-after"in o.headers&&(e=Number(o.headers["retry-after"]),Number.isNaN(e)?(e=Date.parse(o.headers["retry-after"])-Date.now(),e<=0&&(e=1)):e*=1e3),i=await t.retry.calculateDelay({attemptCount:r,retryOptions:t.retry,error:n,retryAfter:e,computedValue:j.default({attemptCount:r,retryOptions:t.retry,error:n,retryAfter:e,computedValue:0})})}catch(e){return void this._error(new ee(e.message,e,this))}if(i){const t=async()=>{try{for(const e of this.options.hooks.beforeRetry)await e(this.options,n,r)}catch(t){return void this._error(new ee(t.message,e,this))}this.destroyed||(this.destroy(),this.emit("retry",r,e))};return void(this[V]=setTimeout(t,i))}}this._error(n)})()}_read(){this[G]=!0;const e=this[L];if(e&&!this[H]){let t;for(e.readableLength&&(this[G]=!1);null!==(t=e.read());){this[q]+=t.length,this[z]=!0;const e=this.downloadProgress;e.percent<1&&this.emit("downloadProgress",e),this.push(t)}}}_write(e,t,r){const n=()=>{this._writeRequest(e,t,r)};this.requestInitialized?n():this[J].push(n)}_writeRequest(e,t,n){this[C].destroyed||(this._progressCallbacks.push((()=>{this[M]+=r.byteLength(e,t);const n=this.uploadProgress;n.percent<1&&this.emit("uploadProgress",n)})),this[C].write(e,t,(e=>{!e&&this._progressCallbacks.length>0&&this._progressCallbacks.shift()(),n(e)})))}_final(e){const t=()=>{for(;0!==this._progressCallbacks.length;)this._progressCallbacks.shift()();C in this?this[C].destroyed?e():this[C].end((t=>{t||(this[D]=this[M],this.emit("uploadProgress",this.uploadProgress),this[C].emit("upload-complete")),e(t)})):e()};this.requestInitialized?t():this[J].push(t)}_destroy(e,t){var r;this[H]=!0,clearTimeout(this[V]),C in this&&(this[B](),(null===(r=this[L])||void 0===r?void 0:r.complete)||this[C].destroy()),null===e||y.default.undefined(e)||e instanceof ee||(e=new ee(e.message,e,this)),t(e)}get _isAboutToError(){return this[H]}get ip(){var e;return null===(e=this.socket)||void 0===e?void 0:e.remoteAddress}get aborted(){var e,t,r;return(null!==(t=null===(e=this[C])||void 0===e?void 0:e.destroyed)&&void 0!==t?t:this.destroyed)&&!(null===(r=this[Z])||void 0===r?void 0:r.complete)}get socket(){var e,t;return null!==(t=null===(e=this[C])||void 0===e?void 0:e.socket)&&void 0!==t?t:void 0}get downloadProgress(){let e;return e=this[N]?this[q]/this[N]:this[N]===this[q]?1:0,{percent:e,transferred:this[q],total:this[N]}}get uploadProgress(){let e;return e=this[D]?this[M]/this[D]:this[D]===this[M]?1:0,{percent:e,transferred:this[M],total:this[D]}}get timings(){var e;return null===(e=this[C])||void 0===e?void 0:e.timings}get isFromCache(){return this[W]}pipe(e,t){if(this[z])throw new Error("Failed to pipe. The response has been emitted already.");return e instanceof f.ServerResponse&&this[U].add(e),super.pipe(e,t)}unpipe(e){return e instanceof f.ServerResponse&&this[U].delete(e),super.unpipe(e),this}}e.exports.default=ue})),P.register("5sTS6",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0});var r=P("glr5f");const n=Number(u.versions.node.split(".")[0]),o=e=>{if(e.timings)return e.timings;const t={start:Date.now(),socket:void 0,lookup:void 0,connect:void 0,secureConnect:void 0,upload:void 0,response:void 0,end:void 0,error:void 0,abort:void 0,phases:{wait:void 0,dns:void 0,tcp:void 0,tls:void 0,request:void 0,firstByte:void 0,download:void 0,total:void 0}};e.timings=t;const o=e=>{const r=e.emit.bind(e);e.emit=(n,...o)=>("error"===n&&(t.error=Date.now(),t.phases.total=t.error-t.start,e.emit=r),r(n,...o))};o(e);const i=()=>{t.abort=Date.now(),(!t.response||n>=13)&&(t.phases.total=Date.now()-t.start)};e.prependOnceListener("abort",i);const a=e=>{if(t.socket=Date.now(),t.phases.wait=t.socket-t.start,s.types.isProxy(e))return;const n=()=>{t.lookup=Date.now(),t.phases.dns=t.lookup-t.socket};e.prependOnceListener("lookup",n),r.default(e,{connect:()=>{t.connect=Date.now(),void 0===t.lookup&&(e.removeListener("lookup",n),t.lookup=t.connect,t.phases.dns=t.lookup-t.socket),t.phases.tcp=t.connect-t.lookup},secureConnect:()=>{t.secureConnect=Date.now(),t.phases.tls=t.secureConnect-t.connect}})};e.socket?a(e.socket):e.prependOnceListener("socket",a);const c=()=>{var e;t.upload=Date.now(),t.phases.request=t.upload-(null!==(e=t.secureConnect)&&void 0!==e?e:t.connect)};return("boolean"==typeof e.writableFinished?!e.writableFinished:!e.finished||0!==e.outputSize||e.socket&&0!==e.socket.writableLength)?e.prependOnceListener("finish",c):c(),e.prependOnceListener("response",(e=>{t.response=Date.now(),t.phases.firstByte=t.response-t.upload,e.timings=t,o(e),e.prependOnceListener("end",(()=>{t.end=Date.now(),t.phases.download=t.end-t.response,t.phases.total=t.end-t.start})),e.prependOnceListener("aborted",i)})),t};e.exports.default=o,e.exports=o,e.exports.default=o})),P.register("glr5f",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0});const r=(e,t)=>{let r;if("function"==typeof t){r={connect:t}}else r=t;const n="function"==typeof r.connect,o="function"==typeof r.secureConnect,i="function"==typeof r.close,s=()=>{n&&r.connect(),function(e){return e.encrypted}(e)&&o&&(e.authorized?r.secureConnect():e.authorizationError||e.once("secureConnect",r.secureConnect)),i&&e.once("close",r.close)};e.writable&&!e.connecting?s():e.connecting?e.once("connect",s):e.destroyed&&i&&r.close(e._hadError)};e.exports.default=r,e.exports=r,e.exports.default=r})),P.register("g6dvj",(function(e,t){"use strict";const{V4MAPPED:r,ADDRCONFIG:n,ALL:o,promises:{Resolver:i},lookup:a}=y;var c=s.promisify;const u=Symbol("cacheableLookupCreateConnection"),l=Symbol("cacheableLookupInstance"),d=Symbol("expires"),p="number"==typeof o,f=e=>{if(!e||"function"!=typeof e.createConnection)throw new Error("Expected an Agent instance as the first argument")},h=()=>{let e=!1,t=!1;for(const r of Object.values(b.networkInterfaces()))for(const n of r)if(!n.internal&&("IPv6"===n.family?t=!0:e=!0,e&&t))return{has4:e,has6:t};return{has4:e,has6:t}},m={ttl:!0},g={all:!0};class v{constructor({cache:e=new Map,maxTtl:t=1/0,fallbackDuration:r=3600,errorTtl:n=.15,resolver:o=new i,lookup:s=a}={}){if(this.maxTtl=t,this.errorTtl=n,this._cache=e,this._resolver=o,this._dnsLookup=c(s),this._resolver instanceof i?(this._resolve4=this._resolver.resolve4.bind(this._resolver),this._resolve6=this._resolver.resolve6.bind(this._resolver)):(this._resolve4=c(this._resolver.resolve4.bind(this._resolver)),this._resolve6=c(this._resolver.resolve6.bind(this._resolver))),this._iface=h(),this._pending={},this._nextRemovalTime=!1,this._hostnamesToFallback=new Set,r<1)this._fallback=!1;else{this._fallback=!0;const e=setInterval((()=>{this._hostnamesToFallback.clear()}),1e3*r);e.unref&&e.unref()}this.lookup=this.lookup.bind(this),this.lookupAsync=this.lookupAsync.bind(this)}set servers(e){this.clear(),this._resolver.setServers(e)}get servers(){return this._resolver.getServers()}lookup(e,t,r){if("function"==typeof t?(r=t,t={}):"number"==typeof t&&(t={family:t}),!r)throw new Error("Callback must be a function.");this.lookupAsync(e,t).then((e=>{t.all?r(null,e):r(null,e.address,e.family,e.expires,e.ttl)}),r)}async lookupAsync(e,t={}){"number"==typeof t&&(t={family:t});let i=await this.query(e);if(6===t.family){const e=i.filter((e=>6===e.family));t.hints&r&&(p&&t.hints&o||0===e.length)?(e=>{for(const t of e)6!==t.family&&(t.address=`::ffff:${t.address}`,t.family=6)})(i):i=e}else 4===t.family&&(i=i.filter((e=>4===e.family)));if(t.hints&n){const{_iface:e}=this;i=i.filter((t=>6===t.family?e.has6:e.has4))}if(0===i.length){const t=new Error(`cacheableLookup ENOTFOUND ${e}`);throw t.code="ENOTFOUND",t.hostname=e,t}return t.all?i:i[0]}async query(e){let t=await this._cache.get(e);if(!t){const r=this._pending[e];if(r)t=await r;else{const r=this.queryAndCache(e);this._pending[e]=r;try{t=await r}finally{delete this._pending[e]}}}return t=t.map((e=>({...e}))),t}async _resolve(e){const[t,r]=await Promise.all([this._resolve4(e,m),this._resolve6(e,m)].map((e=>(async e=>{try{return await e}catch(e){if("ENODATA"===e.code||"ENOTFOUND"===e.code)return[];throw e}})(e))));let n=0,o=0,i=0;const s=Date.now();for(const e of t)e.family=4,e.expires=s+1e3*e.ttl,n=Math.max(n,e.ttl);for(const e of r)e.family=6,e.expires=s+1e3*e.ttl,o=Math.max(o,e.ttl);return i=t.length>0?r.length>0?Math.min(n,o):n:o,{entries:[...t,...r],cacheTtl:i}}async _lookup(e){try{return{entries:await this._dnsLookup(e,{all:!0}),cacheTtl:0}}catch(e){return{entries:[],cacheTtl:0}}}async _set(e,t,r){if(this.maxTtl>0&&r>0){r=1e3*Math.min(r,this.maxTtl),t[d]=Date.now()+r;try{await this._cache.set(e,t,r)}catch(e){this.lookupAsync=async()=>{const t=new Error("Cache Error. Please recreate the CacheableLookup instance.");throw t.cause=e,t}}n=this._cache,Symbol.iterator in n&&this._tick(r)}var n}async queryAndCache(e){if(this._hostnamesToFallback.has(e))return this._dnsLookup(e,g);let t=await this._resolve(e);0===t.entries.length&&this._fallback&&(t=await this._lookup(e),0!==t.entries.length&&this._hostnamesToFallback.add(e));const r=0===t.entries.length?this.errorTtl:t.cacheTtl;return await this._set(e,t.entries,r),t.entries}_tick(e){const t=this._nextRemovalTime;(!t||e<t)&&(clearTimeout(this._removalTimeout),this._nextRemovalTime=e,this._removalTimeout=setTimeout((()=>{this._nextRemovalTime=!1;let e=1/0;const t=Date.now();for(const[r,n]of this._cache){const o=n[d];t>=o?this._cache.delete(r):o<e&&(e=o)}e!==1/0&&this._tick(e-t)}),e),this._removalTimeout.unref&&this._removalTimeout.unref())}install(e){if(f(e),u in e)throw new Error("CacheableLookup has been already installed");e[u]=e.createConnection,e[l]=this,e.createConnection=(t,r)=>("lookup"in t||(t.lookup=this.lookup),e[u](t,r))}uninstall(e){if(f(e),e[u]){if(e[l]!==this)throw new Error("The agent is not owned by this CacheableLookup instance");e.createConnection=e[u],delete e[u],delete e[l]}}updateInterfaceInfo(){const{_iface:e}=this;this._iface=h(),(e.has4&&!this._iface.has4||e.has6&&!this._iface.has6)&&this._cache.clear()}clear(e){e?this._cache.delete(e):this._cache.clear()}}e.exports=v,e.exports.default=v})),P.register("dRxNE",(function(e,t){"use strict";var r=P("2Lkli"),n=P("4Dwbd"),o=P("1QM8Y"),i=P("2K2ZP"),s=P("8Jhot"),a=P("6ThoF"),c=P("2jzOh");class u{constructor(e,t){if("function"!=typeof e)throw new TypeError("Parameter `request` must be a function");return this.cache=new c({uri:"string"==typeof t&&t,store:"string"!=typeof t&&t,namespace:"cacheable-request"}),this.createCacheableRequest(e)}createCacheableRequest(e){return(t,c)=>{let h;if("string"==typeof t)h=f(p.parse(t)),t={};else if(t instanceof p.URL)h=f(p.parse(t.toString())),t={};else{const[e,...r]=(t.path||"").split("?"),n=r.length>0?`?${r.join("?")}`:"";h=f({...t,pathname:e,search:n})}(t={headers:{},method:"GET",cache:!0,strictTtl:!1,automaticFailover:!1,...t,...d(h)}).headers=s(t.headers);const m=new l,g=r(p.format(h),{stripWWW:!1,removeTrailingSlash:!1,stripAuthentication:!1}),y=`${t.method}:${g}`;let b=!1,v=!1;const w=t=>{v=!0;let r,s=!1;const l=new Promise((e=>{r=()=>{s||(s=!0,e())}})),d=e=>{if(b&&!t.forceRefresh){e.status=e.statusCode;const r=o.fromObject(b.cachePolicy).revalidatedPolicy(t,e);if(!r.modified){const t=r.policy.responseHeaders();(e=new i(b.statusCode,t,b.body,b.url)).cachePolicy=r.policy,e.fromCache=!0}}let r;e.fromCache||(e.cachePolicy=new o(t,e,t),e.fromCache=!1),t.cache&&e.cachePolicy.storable()?(r=a(e),(async()=>{try{const r=n.buffer(e);if(await Promise.race([l,new Promise((t=>e.once("end",t)))]),s)return;const o=await r,i={cachePolicy:e.cachePolicy.toObject(),url:e.url,statusCode:e.fromCache?b.statusCode:e.statusCode,body:o};let a=t.strictTtl?e.cachePolicy.timeToLive():void 0;t.maxTtl&&(a=a?Math.min(a,t.maxTtl):t.maxTtl),await this.cache.set(y,i,a)}catch(e){m.emit("error",new u.CacheError(e))}})()):t.cache&&b&&(async()=>{try{await this.cache.delete(y)}catch(e){m.emit("error",new u.CacheError(e))}})(),m.emit("response",r||e),"function"==typeof c&&c(r||e)};try{const n=e(t,d);n.once("error",r),n.once("abort",r),m.emit("request",n)}catch(e){m.emit("error",new u.RequestError(e))}};return(async()=>{const e=async e=>{await Promise.resolve();const t=e.cache?await this.cache.get(y):void 0;if(void 0===t)return w(e);const r=o.fromObject(t.cachePolicy);if(r.satisfiesWithoutRevalidation(e)&&!e.forceRefresh){const e=r.responseHeaders(),n=new i(t.statusCode,e,t.body,t.url);n.cachePolicy=r,n.fromCache=!0,m.emit("response",n),"function"==typeof c&&c(n)}else b=t,e.headers=r.revalidationHeaders(e),w(e)},r=e=>m.emit("error",new u.CacheError(e));this.cache.once("error",r),m.on("response",(()=>this.cache.removeListener("error",r)));try{await e(t)}catch(e){t.automaticFailover&&!v&&w(t),m.emit("error",new u.CacheError(e))}})(),m}}}function d(e){const t={...e};return t.path=`${e.pathname||"/"}${e.search||""}`,delete t.pathname,delete t.search,t}function f(e){return{protocol:e.protocol,auth:e.auth,hostname:e.hostname||e.host||"localhost",port:e.port,pathname:e.pathname,search:e.search}}u.RequestError=class extends Error{constructor(e){super(e.message),this.name="RequestError",Object.assign(this,e)}},u.CacheError=class extends Error{constructor(e){super(e.message),this.name="CacheError",Object.assign(this,e)}},e.exports=u})),P.register("2Lkli",(function(e,t){"use strict";const r=(e,t)=>t.some((t=>t instanceof RegExp?t.test(e):t===e));e.exports=(e,t)=>{if(t={defaultProtocol:"http:",normalizeProtocol:!0,forceHttp:!1,forceHttps:!1,stripAuthentication:!0,stripHash:!1,stripTextFragment:!0,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeSingleSlash:!0,removeDirectoryIndex:!1,sortQueryParameters:!0,...t},e=e.trim(),/^data:/i.test(e))return((e,{stripHash:t})=>{const r=/^data:(?<type>[^,]*?),(?<data>[^#]*?)(?:#(?<hash>.*))?$/.exec(e);if(!r)throw new Error(`Invalid URL: ${e}`);let{type:n,data:o,hash:i}=r.groups;const s=n.split(";");i=t?"":i;let a=!1;"base64"===s[s.length-1]&&(s.pop(),a=!0);const c=(s.shift()||"").toLowerCase(),u=[...s.map((e=>{let[t,r=""]=e.split("=").map((e=>e.trim()));return"charset"===t&&(r=r.toLowerCase(),"us-ascii"===r)?"":`${t}${r?`=${r}`:""}`})).filter(Boolean)];return a&&u.push("base64"),(0!==u.length||c&&"text/plain"!==c)&&u.unshift(c),`data:${u.join(";")},${a?o.trim():o}${i?`#${i}`:""}`})(e,t);if(/^view-source:/i.test(e))throw new Error("`view-source:` is not supported as it is a non-standard protocol");const n=e.startsWith("//");!n&&/^\.*\//.test(e)||(e=e.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,t.defaultProtocol));const o=new URL(e);if(t.forceHttp&&t.forceHttps)throw new Error("The `forceHttp` and `forceHttps` options cannot be used together");if(t.forceHttp&&"https:"===o.protocol&&(o.protocol="http:"),t.forceHttps&&"http:"===o.protocol&&(o.protocol="https:"),t.stripAuthentication&&(o.username="",o.password=""),t.stripHash?o.hash="":t.stripTextFragment&&(o.hash=o.hash.replace(/#?:~:text.*?$/i,"")),o.pathname&&(o.pathname=o.pathname.replace(/(?<!\b(?:[a-z][a-z\d+\-.]{1,50}:))\/{2,}/g,"/")),o.pathname)try{o.pathname=decodeURI(o.pathname)}catch(e){}if(!0===t.removeDirectoryIndex&&(t.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(t.removeDirectoryIndex)&&t.removeDirectoryIndex.length>0){let e=o.pathname.split("/");const n=e[e.length-1];r(n,t.removeDirectoryIndex)&&(e=e.slice(0,e.length-1),o.pathname=e.slice(1).join("/")+"/")}if(o.hostname&&(o.hostname=o.hostname.replace(/\.$/,""),t.stripWWW&&/^www\.(?!www\.)(?:[a-z\-\d]{1,63})\.(?:[a-z.\-\d]{2,63})$/.test(o.hostname)&&(o.hostname=o.hostname.replace(/^www\./,""))),Array.isArray(t.removeQueryParameters))for(const e of[...o.searchParams.keys()])r(e,t.removeQueryParameters)&&o.searchParams.delete(e);!0===t.removeQueryParameters&&(o.search=""),t.sortQueryParameters&&o.searchParams.sort(),t.removeTrailingSlash&&(o.pathname=o.pathname.replace(/\/$/,""));const i=e;return e=o.toString(),t.removeSingleSlash||"/"!==o.pathname||i.endsWith("/")||""!==o.hash||(e=e.replace(/\/$/,"")),(t.removeTrailingSlash||"/"===o.pathname)&&""===o.hash&&t.removeSingleSlash&&(e=e.replace(/\/$/,"")),n&&!t.normalizeProtocol&&(e=e.replace(/^http:\/\//,"//")),t.stripProtocol&&(e=e.replace(/^(?:https?:)?\/\//,"")),e}})),P.register("4Dwbd",(function(e,t){"use strict";var r=c.constants,n=P("8CIvR"),o=P("fv6uV");class i extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}}async function s(e,t){if(!e)return Promise.reject(new Error("Expected a stream"));t={maxBuffer:1/0,...t};const{maxBuffer:s}=t;let a;return await new Promise(((c,u)=>{const l=e=>{e&&a.getBufferedLength()<=r.MAX_LENGTH&&(e.bufferedData=a.getBufferedValue()),u(e)};a=n(e,o(t),(e=>{e?l(e):c()})),a.on("data",(()=>{a.getBufferedLength()>s&&l(new i)}))})),a.getBufferedValue()}e.exports=s,e.exports.default=s,e.exports.buffer=(e,t)=>s(e,{...t,encoding:"buffer"}),e.exports.array=(e,t)=>s(e,{...t,array:!0}),e.exports.MaxBufferError=i})),P.register("8CIvR",(function(e,t){var r=P("I2OjK"),n=P("jAWKF"),o=P("fNNvm"),i=function(){},s=/^v?\.0/.test(u.version),a=function(e){return"function"==typeof e},c=function(e,t,c,u){u=r(u);var l=!1;e.on("close",(function(){l=!0})),n(e,{readable:t,writable:c},(function(e){if(e)return u(e);l=!0,u()}));var d=!1;return function(t){if(!l&&!d)return d=!0,function(e){return!!s&&!!o&&(e instanceof(o.ReadStream||i)||e instanceof(o.WriteStream||i))&&a(e.close)}(e)?e.close(i):function(e){return e.setHeader&&a(e.abort)}(e)?e.abort():a(e.destroy)?e.destroy():void u(t||new Error("stream was destroyed"))}},l=function(e){e()},d=function(e,t){return e.pipe(t)};e.exports=function(){var e,t=Array.prototype.slice.call(arguments),r=a(t[t.length-1]||i)&&t.pop()||i;if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new Error("pump requires two streams per minimum");var n=t.map((function(o,i){var s=i<t.length-1;return c(o,s,i>0,(function(t){e||(e=t),t&&n.forEach(l),s||(n.forEach(l),r(e))}))}));return t.reduce(d)}})),P.register("jAWKF",(function(e,t){var r=P("I2OjK"),n=function(){},o=function(e,t,i){if("function"==typeof t)return o(e,null,t);t||(t={}),i=r(i||n);var s=e._writableState,a=e._readableState,c=t.readable||!1!==t.readable&&e.readable,l=t.writable||!1!==t.writable&&e.writable,d=!1,p=function(){e.writable||f()},f=function(){l=!1,c||i.call(e)},h=function(){c=!1,l||i.call(e)},m=function(t){i.call(e,t?new Error("exited with error code: "+t):null)},g=function(t){i.call(e,t)},y=function(){u.nextTick(b)},b=function(){if(!d)return(!c||a&&a.ended&&!a.destroyed)&&(!l||s&&s.ended&&!s.destroyed)?void 0:i.call(e,new Error("premature close"))},v=function(){e.req.on("finish",f)};return!function(e){return e.setHeader&&"function"==typeof e.abort}(e)?l&&!s&&(e.on("end",p),e.on("close",p)):(e.on("complete",f),e.on("abort",y),e.req?v():e.on("request",v)),function(e){return e.stdio&&Array.isArray(e.stdio)&&3===e.stdio.length}(e)&&e.on("exit",m),e.on("end",h),e.on("finish",f),!1!==t.error&&e.on("error",g),e.on("close",y),function(){d=!0,e.removeListener("complete",f),e.removeListener("abort",y),e.removeListener("request",v),e.req&&e.req.removeListener("finish",f),e.removeListener("end",p),e.removeListener("close",p),e.removeListener("finish",f),e.removeListener("exit",m),e.removeListener("end",h),e.removeListener("error",g),e.removeListener("close",y)}};e.exports=o})),P.register("fNNvm",(function(e,t){})),P.register("fv6uV",(function(e,t){var r=c.Buffer,n=g.PassThrough;e.exports=e=>{e={...e};const{array:t}=e;let{encoding:o}=e;const i="buffer"===o;let s=!1;t?s=!(o||i):o=o||"utf8",i&&(o=null);const a=new n({objectMode:s});o&&a.setEncoding(o);let c=0;const u=[];return a.on("data",(e=>{u.push(e),s?c=u.length:c+=e.length})),a.getBufferedValue=()=>t?u:i?r.concat(u,c):u.join(""),a.getBufferedLength=()=>c,a}})),P.register("1QM8Y",(function(e,t){"use strict";const r=new Set([200,203,204,206,300,301,308,404,405,410,414,501]),n=new Set([200,203,204,300,301,302,303,307,308,404,405,410,414,501]),o=new Set([500,502,503,504]),i={date:!0,connection:!0,"keep-alive":!0,"proxy-authenticate":!0,"proxy-authorization":!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0},s={"content-length":!0,"content-encoding":!0,"transfer-encoding":!0,"content-range":!0};function a(e){const t=parseInt(e,10);return isFinite(t)?t:0}function c(e){const t={};if(!e)return t;const r=e.trim().split(/,/);for(const e of r){const[r,n]=e.split(/=/,2);t[r.trim()]=void 0===n||n.trim().replace(/^"|"$/g,"")}return t}function u(e){let t=[];for(const r in e){const n=e[r];t.push(!0===n?r:r+"="+n)}if(t.length)return t.join(", ")}e.exports=class{constructor(e,t,{shared:r,cacheHeuristic:n,immutableMinTimeToLive:o,ignoreCargoCult:i,_fromObject:s}={}){if(s)this._fromObject(s);else{if(!t||!t.headers)throw Error("Response headers missing");this._assertRequestHasHeaders(e),this._responseTime=this.now(),this._isShared=!1!==r,this._cacheHeuristic=void 0!==n?n:.1,this._immutableMinTtl=void 0!==o?o:864e5,this._status="status"in t?t.status:200,this._resHeaders=t.headers,this._rescc=c(t.headers["cache-control"]),this._method="method"in e?e.method:"GET",this._url=e.url,this._host=e.headers.host,this._noAuthorization=!e.headers.authorization,this._reqHeaders=t.headers.vary?e.headers:null,this._reqcc=c(e.headers["cache-control"]),i&&"pre-check"in this._rescc&&"post-check"in this._rescc&&(delete this._rescc["pre-check"],delete this._rescc["post-check"],delete this._rescc["no-cache"],delete this._rescc["no-store"],delete this._rescc["must-revalidate"],this._resHeaders=Object.assign({},this._resHeaders,{"cache-control":u(this._rescc)}),delete this._resHeaders.expires,delete this._resHeaders.pragma),null==t.headers["cache-control"]&&/no-cache/.test(t.headers.pragma)&&(this._rescc["no-cache"]=!0)}}now(){return Date.now()}storable(){return!(this._reqcc["no-store"]||!("GET"===this._method||"HEAD"===this._method||"POST"===this._method&&this._hasExplicitExpiration())||!n.has(this._status)||this._rescc["no-store"]||this._isShared&&this._rescc.private||this._isShared&&!this._noAuthorization&&!this._allowsStoringAuthenticated()||!(this._resHeaders.expires||this._rescc["max-age"]||this._isShared&&this._rescc["s-maxage"]||this._rescc.public||r.has(this._status)))}_hasExplicitExpiration(){return this._isShared&&this._rescc["s-maxage"]||this._rescc["max-age"]||this._resHeaders.expires}_assertRequestHasHeaders(e){if(!e||!e.headers)throw Error("Request headers missing")}satisfiesWithoutRevalidation(e){this._assertRequestHasHeaders(e);const t=c(e.headers["cache-control"]);if(t["no-cache"]||/no-cache/.test(e.headers.pragma))return!1;if(t["max-age"]&&this.age()>t["max-age"])return!1;if(t["min-fresh"]&&this.timeToLive()<1e3*t["min-fresh"])return!1;if(this.stale()){if(!(t["max-stale"]&&!this._rescc["must-revalidate"]&&(!0===t["max-stale"]||t["max-stale"]>this.age()-this.maxAge())))return!1}return this._requestMatches(e,!1)}_requestMatches(e,t){return(!this._url||this._url===e.url)&&this._host===e.headers.host&&(!e.method||this._method===e.method||t&&"HEAD"===e.method)&&this._varyMatches(e)}_allowsStoringAuthenticated(){return this._rescc["must-revalidate"]||this._rescc.public||this._rescc["s-maxage"]}_varyMatches(e){if(!this._resHeaders.vary)return!0;if("*"===this._resHeaders.vary)return!1;const t=this._resHeaders.vary.trim().toLowerCase().split(/\s*,\s*/);for(const r of t)if(e.headers[r]!==this._reqHeaders[r])return!1;return!0}_copyWithoutHopByHopHeaders(e){const t={};for(const r in e)i[r]||(t[r]=e[r]);if(e.connection){const r=e.connection.trim().split(/\s*,\s*/);for(const e of r)delete t[e]}if(t.warning){const e=t.warning.split(/,/).filter((e=>!/^\s*1[0-9][0-9]/.test(e)));e.length?t.warning=e.join(",").trim():delete t.warning}return t}responseHeaders(){const e=this._copyWithoutHopByHopHeaders(this._resHeaders),t=this.age();return t>86400&&!this._hasExplicitExpiration()&&this.maxAge()>86400&&(e.warning=(e.warning?`${e.warning}, `:"")+'113 - "rfc7234 5.5.4"'),e.age=`${Math.round(t)}`,e.date=new Date(this.now()).toUTCString(),e}date(){const e=Date.parse(this._resHeaders.date);return isFinite(e)?e:this._responseTime}age(){return this._ageValue()+(this.now()-this._responseTime)/1e3}_ageValue(){return a(this._resHeaders.age)}maxAge(){if(!this.storable()||this._rescc["no-cache"])return 0;if(this._isShared&&this._resHeaders["set-cookie"]&&!this._rescc.public&&!this._rescc.immutable)return 0;if("*"===this._resHeaders.vary)return 0;if(this._isShared){if(this._rescc["proxy-revalidate"])return 0;if(this._rescc["s-maxage"])return a(this._rescc["s-maxage"])}if(this._rescc["max-age"])return a(this._rescc["max-age"]);const e=this._rescc.immutable?this._immutableMinTtl:0,t=this.date();if(this._resHeaders.expires){const r=Date.parse(this._resHeaders.expires);return Number.isNaN(r)||r<t?0:Math.max(e,(r-t)/1e3)}if(this._resHeaders["last-modified"]){const r=Date.parse(this._resHeaders["last-modified"]);if(isFinite(r)&&t>r)return Math.max(e,(t-r)/1e3*this._cacheHeuristic)}return e}timeToLive(){const e=this.maxAge()-this.age(),t=e+a(this._rescc["stale-if-error"]),r=e+a(this._rescc["stale-while-revalidate"]);return 1e3*Math.max(0,e,t,r)}stale(){return this.maxAge()<=this.age()}_useStaleIfError(){return this.maxAge()+a(this._rescc["stale-if-error"])>this.age()}useStaleWhileRevalidate(){return this.maxAge()+a(this._rescc["stale-while-revalidate"])>this.age()}static fromObject(e){return new this(void 0,void 0,{_fromObject:e})}_fromObject(e){if(this._responseTime)throw Error("Reinitialized");if(!e||1!==e.v)throw Error("Invalid serialization");this._responseTime=e.t,this._isShared=e.sh,this._cacheHeuristic=e.ch,this._immutableMinTtl=void 0!==e.imm?e.imm:864e5,this._status=e.st,this._resHeaders=e.resh,this._rescc=e.rescc,this._method=e.m,this._url=e.u,this._host=e.h,this._noAuthorization=e.a,this._reqHeaders=e.reqh,this._reqcc=e.reqcc}toObject(){return{v:1,t:this._responseTime,sh:this._isShared,ch:this._cacheHeuristic,imm:this._immutableMinTtl,st:this._status,resh:this._resHeaders,rescc:this._rescc,m:this._method,u:this._url,h:this._host,a:this._noAuthorization,reqh:this._reqHeaders,reqcc:this._reqcc}}revalidationHeaders(e){this._assertRequestHasHeaders(e);const t=this._copyWithoutHopByHopHeaders(e.headers);if(delete t["if-range"],!this._requestMatches(e,!0)||!this.storable())return delete t["if-none-match"],delete t["if-modified-since"],t;this._resHeaders.etag&&(t["if-none-match"]=t["if-none-match"]?`${t["if-none-match"]}, ${this._resHeaders.etag}`:this._resHeaders.etag);if(t["accept-ranges"]||t["if-match"]||t["if-unmodified-since"]||this._method&&"GET"!=this._method){if(delete t["if-modified-since"],t["if-none-match"]){const e=t["if-none-match"].split(/,/).filter((e=>!/^\s*W\//.test(e)));e.length?t["if-none-match"]=e.join(",").trim():delete t["if-none-match"]}}else this._resHeaders["last-modified"]&&!t["if-modified-since"]&&(t["if-modified-since"]=this._resHeaders["last-modified"]);return t}revalidatedPolicy(e,t){if(this._assertRequestHasHeaders(e),this._useStaleIfError()&&function(e){return!e||o.has(e.status)}(t))return{modified:!1,matches:!1,policy:this};if(!t||!t.headers)throw Error("Response headers missing");let r=!1;if(void 0!==t.status&&304!=t.status?r=!1:t.headers.etag&&!/^\s*W\//.test(t.headers.etag)?r=this._resHeaders.etag&&this._resHeaders.etag.replace(/^\s*W\//,"")===t.headers.etag:this._resHeaders.etag&&t.headers.etag?r=this._resHeaders.etag.replace(/^\s*W\//,"")===t.headers.etag.replace(/^\s*W\//,""):this._resHeaders["last-modified"]?r=this._resHeaders["last-modified"]===t.headers["last-modified"]:this._resHeaders.etag||this._resHeaders["last-modified"]||t.headers.etag||t.headers["last-modified"]||(r=!0),!r)return{policy:new this.constructor(e,t),modified:304!=t.status,matches:!1};const n={};for(const e in this._resHeaders)n[e]=e in t.headers&&!s[e]?t.headers[e]:this._resHeaders[e];const i=Object.assign({},t,{status:this._status,method:this._method,headers:n});return{policy:new this.constructor(e,i,{shared:this._isShared,cacheHeuristic:this._cacheHeuristic,immutableMinTimeToLive:this._immutableMinTtl}),modified:!1,matches:!0}}}})),P.register("2K2ZP",(function(e,t){var r=c.Buffer,n=g.Readable,o=P("8Jhot");e.exports=class extends n{constructor(e,t,n,i){if("number"!=typeof e)throw new TypeError("Argument `statusCode` should be a number");if("object"!=typeof t)throw new TypeError("Argument `headers` should be an object");if(!(n instanceof r))throw new TypeError("Argument `body` should be a buffer");if("string"!=typeof i)throw new TypeError("Argument `url` should be a string");super(),this.statusCode=e,this.headers=o(t),this.body=n,this.url=i}_read(){this.push(this.body),this.push(null)}}})),P.register("8Jhot",(function(e,t){"use strict";e.exports=e=>{const t={};for(const[r,n]of Object.entries(e))t[r.toLowerCase()]=n;return t}})),P.register("6ThoF",(function(e,t){"use strict";var r=g.PassThrough,n=P("dCYwu");e.exports=e=>{if(!e||!e.pipe)throw new TypeError("Parameter `response` must be a response stream.");const t=new r;return n(e,t),e.pipe(t)}})),P.register("dCYwu",(function(e,t){"use strict";const r=["destroy","setTimeout","socket","headers","trailers","rawHeaders","statusCode","httpVersion","httpVersionMinor","httpVersionMajor","rawTrailers","statusMessage"];e.exports=(e,t)=>{const n=new Set(Object.keys(e).concat(r));for(const r of n)r in t||(t[r]="function"==typeof e[r]?e[r].bind(e):e[r])}})),P.register("2jzOh",(function(e,t){"use strict";var n=P("gsKnX");const o=["sqlite","postgres","mysql","mongo","redis","tiered"];e.exports=class extends l{constructor(e,{emitErrors:t=!0,...o}={}){if(super(),this.opts={namespace:"keyv",serialize:n.stringify,deserialize:n.parse,..."string"==typeof e?{uri:e}:e,...o},!this.opts.store){const e={...this.opts};this.opts.store=(e=>{const t={redis:"@keyv/redis",rediss:"@keyv/redis",mongodb:"@keyv/mongo",mongo:"@keyv/mongo",sqlite:"@keyv/sqlite",postgresql:"@keyv/postgres",postgres:"@keyv/postgres",mysql:"@keyv/mysql",etcd:"@keyv/etcd",offline:"@keyv/offline",tiered:"@keyv/tiered"};if(e.adapter||e.uri){const n=e.adapter||/^[^:+]*/.exec(e.uri)[0];return new(r(7603)(t[n]))(e)}return new Map})(e)}if(this.opts.compression){const e=this.opts.compression;this.opts.serialize=e.serialize.bind(e),this.opts.deserialize=e.deserialize.bind(e)}"function"==typeof this.opts.store.on&&t&&this.opts.store.on("error",(e=>this.emit("error",e))),this.opts.store.namespace=this.opts.namespace;const i=e=>async function*(){for await(const[t,r]of"function"==typeof e?e(this.opts.store.namespace):e){const e=this.opts.deserialize(r);this.opts.store.namespace&&!t.includes(this.opts.store.namespace)||("number"==typeof e.expires&&Date.now()>e.expires?this.delete(t):yield[this._getKeyUnprefix(t),e.value])}};"function"==typeof this.opts.store[Symbol.iterator]&&this.opts.store instanceof Map?this.iterator=i(this.opts.store):"function"==typeof this.opts.store.iterator&&this.opts.store.opts&&this._checkIterableAdaptar()&&(this.iterator=i(this.opts.store.iterator.bind(this.opts.store)))}_checkIterableAdaptar(){return o.includes(this.opts.store.opts.dialect)||o.findIndex((e=>this.opts.store.opts.url.includes(e)))>=0}_getKeyPrefix(e){return`${this.opts.namespace}:${e}`}_getKeyPrefixArray(e){return e.map((e=>`${this.opts.namespace}:${e}`))}_getKeyUnprefix(e){return e.split(":").splice(1).join(":")}get(e,t){const{store:r}=this.opts,n=Array.isArray(e),o=n?this._getKeyPrefixArray(e):this._getKeyPrefix(e);if(n&&void 0===r.getMany){const e=[];for(const n of o)e.push(Promise.resolve().then((()=>r.get(n))).then((e=>"string"==typeof e||this.opts.compression?this.opts.deserialize(e):e)).then((e=>{if(null!=e)return"number"==typeof e.expires&&Date.now()>e.expires?this.delete(n).then((()=>{})):t&&t.raw?e:e.value})));return Promise.allSettled(e).then((e=>{const t=[];for(const r of e)t.push(r.value);return t}))}return Promise.resolve().then((()=>n?r.getMany(o):r.get(o))).then((e=>"string"==typeof e||this.opts.compression?this.opts.deserialize(e):e)).then((r=>{if(null!=r){if(n){const n=[];for(let o of r)"string"==typeof o&&(o=this.opts.deserialize(o)),null!=o?"number"==typeof o.expires&&Date.now()>o.expires?(this.delete(e).then((()=>{})),n.push(void 0)):n.push(t&&t.raw?o:o.value):n.push(void 0);return n}return"number"==typeof r.expires&&Date.now()>r.expires?this.delete(e).then((()=>{})):t&&t.raw?r:r.value}}))}set(e,t,r){const n=this._getKeyPrefix(e);void 0===r&&(r=this.opts.ttl),0===r&&(r=void 0);const{store:o}=this.opts;return Promise.resolve().then((()=>{const e="number"==typeof r?Date.now()+r:null;return"symbol"==typeof t&&this.emit("error","symbol cannot be serialized"),t={value:t,expires:e},this.opts.serialize(t)})).then((e=>o.set(n,e,r))).then((()=>!0))}delete(e){const{store:t}=this.opts;if(Array.isArray(e)){const r=this._getKeyPrefixArray(e);if(void 0===t.deleteMany){const e=[];for(const n of r)e.push(t.delete(n));return Promise.allSettled(e).then((e=>e.every((e=>!0===e.value))))}return Promise.resolve().then((()=>t.deleteMany(r)))}const r=this._getKeyPrefix(e);return Promise.resolve().then((()=>t.delete(r)))}clear(){const{store:e}=this.opts;return Promise.resolve().then((()=>e.clear()))}has(e){const t=this._getKeyPrefix(e),{store:r}=this.opts;return Promise.resolve().then((async()=>{if("function"==typeof r.has)return r.has(t);return void 0!==await r.get(t)}))}disconnect(){const{store:e}=this.opts;if("function"==typeof e.disconnect)return e.disconnect()}}})),P.register("gsKnX",(function(e,t){var r,n;E(e.exports,"stringify",(()=>r),(e=>r=e)),E(e.exports,"parse",(()=>n),(e=>n=e));var o=c.Buffer;r=function e(t){if(void 0===t)return t;if(t&&o.isBuffer(t))return JSON.stringify(":base64:"+t.toString("base64"));if(t&&t.toJSON&&(t=t.toJSON()),t&&"object"==typeof t){var r="",n=Array.isArray(t);r=n?"[":"{";var i=!0;for(var s in t){var a="function"==typeof t[s]||!n&&void 0===t[s];Object.hasOwnProperty.call(t,s)&&!a&&(i||(r+=","),i=!1,n?null==t[s]?r+="null":r+=e(t[s]):void 0!==t[s]&&(r+=e(s)+":"+e(t[s])))}return r+=n?"]":"}"}return"string"==typeof t?JSON.stringify(/^:/.test(t)?":"+t:t):void 0===t?"null":JSON.stringify(t)},n=function(e){return JSON.parse(e,(function(e,t){return"string"==typeof t?/^:base64:/.test(t)?o.from(t.substring(8),"base64"):/^:/.test(t)?t.substring(1):t:t}))}})),P.register("8Hrli",(function(e,t){"use strict";var r=g.Transform,n=g.PassThrough,o=P("avT8Y");e.exports=e=>{const t=(e.headers["content-encoding"]||"").toLowerCase();if(!["gzip","deflate","br"].includes(t))return e;const i="br"===t;if(i&&"function"!=typeof v.createBrotliDecompress)return e.destroy(new Error("Brotli is not supported on Node.js < 12")),e;let s=!0;const a=new r({transform(e,t,r){s=!1,r(null,e)},flush(e){e()}}),c=new n({autoDestroy:!1,destroy(t,r){e.destroy(),r(t)}}),u=i?v.createBrotliDecompress():v.createUnzip();return u.once("error",(t=>{!s||e.readable?c.destroy(t):c.end()})),o(e,c),e.pipe(a).pipe(u).pipe(c),c}})),P.register("avT8Y",(function(e,t){"use strict";const r=["aborted","complete","headers","httpVersion","httpVersionMinor","httpVersionMajor","method","rawHeaders","rawTrailers","setTimeout","socket","statusCode","statusMessage","trailers","url"];e.exports=(e,t)=>{if(t._readableState.autoDestroy)throw new Error("The second stream must have the `autoDestroy` option set to `false`");const n=new Set(Object.keys(e).concat(r)),o={};for(const r of n)r in t||(o[r]={get(){const t=e[r];return"function"==typeof t?t.bind(e):t},set(t){e[r]=t},enumerable:!0,configurable:!1});return Object.defineProperties(t,o),e.once("aborted",(()=>{t.destroy(),t.emit("aborted")})),e.once("close",(()=>{e.complete&&t.readable?t.once("end",(()=>{t.emit("close")})):t.emit("close")})),t}})),P.register("8Td3W",(function(e,t){"use strict";var r=P("9wili"),n=P("8QuKX"),o=P("fTp79"),i=P("1hSoz");e.exports={...w,ClientRequest:n,IncomingMessage:o,...r,request:(e,t,r)=>new n(e,t,r),get:(e,t,r)=>{const o=new n(e,t,r);return o.end(),o},auto:i}})),P.register("9wili",(function(e,t){"use strict";var r=P("c7U1i");const n=Symbol("currentStreamsCount"),o=Symbol("request"),i=Symbol("cachedOriginSet"),s=Symbol("gracefullyClosing"),a=["maxDeflateDynamicTableSize","maxSessionMemory","maxHeaderListPairs","maxOutstandingPings","maxReservedRemoteStreams","maxSendHeaderBlockLength","paddingStrategy","localAddress","path","rejectUnauthorized","minDHSize","ca","cert","clientCertEngine","ciphers","key","pfx","servername","minVersion","maxVersion","secureProtocol","crl","honorCipherOrder","ecdhCurve","dhparam","secureOptions","sessionIdContext"],c=(e,t)=>e.remoteSettings.maxConcurrentStreams>t.remoteSettings.maxConcurrentStreams,u=(e,t)=>{for(const r of e)r[i].length<t[i].length&&r[i].every((e=>t[i].includes(e)))&&r[n]+t[n]<=t.remoteSettings.maxConcurrentStreams&&p(r)},d=({agent:e,isFree:t})=>{const r={};for(const n in e.sessions){const o=e.sessions[n].filter((e=>{const r=e[f.kCurrentStreamsCount]<e.remoteSettings.maxConcurrentStreams;return t?r:!r}));0!==o.length&&(r[n]=o)}return r},p=e=>{e[s]=!0,0===e[n]&&e.close()};class f extends l{constructor({timeout:e=6e4,maxSessions:t=1/0,maxFreeSessions:n=10,maxCachedTlsSessions:o=100}={}){super(),this.sessions={},this.queue={},this.timeout=e,this.maxSessions=t,this.maxFreeSessions=n,this._freeSessionsCount=0,this._sessionsCount=0,this.settings={enablePush:!1},this.tlsSessionCache=new r({maxSize:o})}static normalizeOrigin(e,t){return"string"==typeof e&&(e=new URL(e)),t&&e.hostname!==t&&(e.hostname=t),e.origin}normalizeOptions(e){let t="";if(e)for(const r of a)e[r]&&(t+=`:${e[r]}`);return t}_tryToCreateNewSession(e,t){if(!(e in this.queue)||!(t in this.queue[e]))return;const r=this.queue[e][t];this._sessionsCount<this.maxSessions&&!r.completed&&(r.completed=!0,r())}getSession(e,t,r){return new Promise(((a,l)=>{Array.isArray(r)?(r=[...r],a()):r=[{resolve:a,reject:l}];const d=this.normalizeOptions(t),h=f.normalizeOrigin(e,t&&t.servername);if(void 0===h){for(const{reject:e}of r)e(new TypeError("The `origin` argument needs to be a string or an URL object"));return}if(d in this.sessions){const e=this.sessions[d];let t,o=-1,a=-1;for(const r of e){const e=r.remoteSettings.maxConcurrentStreams;if(e<o)break;if(r[i].includes(h)){const i=r[n];if(i>=e||r[s]||r.destroyed)continue;t||(o=e),i>a&&(t=r,a=i)}}if(t){if(1!==r.length){for(const{reject:e}of r){e(new Error(`Expected the length of listeners to be 1, got ${r.length}.\nPlease report this to https://github.com/szmarczak/http2-wrapper/`))}return}return void r[0].resolve(t)}}if(d in this.queue){if(h in this.queue[d])return this.queue[d][h].listeners.push(...r),void this._tryToCreateNewSession(d,h)}else this.queue[d]={};const m=()=>{d in this.queue&&this.queue[d][h]===g&&(delete this.queue[d][h],0===Object.keys(this.queue[d]).length&&delete this.queue[d])},g=()=>{const a=`${h}:${d}`;let l=!1;try{const f=w.connect(e,{createConnection:this.createConnection,settings:this.settings,session:this.tlsSessionCache.get(a),...t});f[n]=0,f[s]=!1;const y=()=>f[n]<f.remoteSettings.maxConcurrentStreams;let b=!0;f.socket.once("session",(e=>{this.tlsSessionCache.set(a,e)})),f.once("error",(e=>{for(const{reject:t}of r)t(e);this.tlsSessionCache.delete(a)})),f.setTimeout(this.timeout,(()=>{f.destroy()})),f.once("close",(()=>{if(l){b&&this._freeSessionsCount--,this._sessionsCount--;const e=this.sessions[d];e.splice(e.indexOf(f),1),0===e.length&&delete this.sessions[d]}else{const e=new Error("Session closed without receiving a SETTINGS frame");e.code="HTTP2WRAPPER_NOSETTINGS";for(const{reject:t}of r)t(e);m()}this._tryToCreateNewSession(d,h)}));const v=()=>{if(d in this.queue&&y())for(const e of f[i])if(e in this.queue[d]){const{listeners:t}=this.queue[d][e];for(;0!==t.length&&y();)t.shift().resolve(f);const r=this.queue[d];if(0===r[e].listeners.length&&(delete r[e],0===Object.keys(r).length)){delete this.queue[d];break}if(!y())break}};f.on("origin",(()=>{f[i]=f.originSet,y()&&(v(),u(this.sessions[d],f))})),f.once("remoteSettings",(()=>{if(f.ref(),f.unref(),this._sessionsCount++,g.destroyed){const e=new Error("Agent has been destroyed");for(const t of r)t.reject(e);f.destroy()}else{f[i]=f.originSet;{const e=this.sessions;if(d in e){const t=e[d];t.splice(((e,t,r)=>{let n=0,o=e.length;for(;n<o;){const i=n+o>>>1;r(e[i],t)?n=i+1:o=i}return n})(t,f,c),0,f)}else e[d]=[f]}this._freeSessionsCount+=1,l=!0,this.emit("session",f),v(),m(),0===f[n]&&this._freeSessionsCount>this.maxFreeSessions&&f.close(),0!==r.length&&(this.getSession(h,t,r),r.length=0),f.on("remoteSettings",(()=>{v(),u(this.sessions[d],f)}))}})),f[o]=f.request,f.request=(e,t)=>{if(f[s])throw new Error("The session is gracefully closing. No new streams are allowed.");const r=f[o](e,t);return f.ref(),++f[n],f[n]===f.remoteSettings.maxConcurrentStreams&&this._freeSessionsCount--,r.once("close",(()=>{if(b=y(),--f[n],!f.destroyed&&!f.closed&&(((e,t)=>{for(const r of e)t[i].length<r[i].length&&t[i].every((e=>r[i].includes(e)))&&t[n]+r[n]<=r.remoteSettings.maxConcurrentStreams&&p(t)})(this.sessions[d],f),y()&&!f.closed)){b||(this._freeSessionsCount++,b=!0);const e=0===f[n];e&&f.unref(),e&&(this._freeSessionsCount>this.maxFreeSessions||f[s])?f.close():(u(this.sessions[d],f),v())}})),r}}catch(e){for(const t of r)t.reject(e);m()}};g.listeners=r,g.completed=!1,g.destroyed=!1,this.queue[d][h]=g,this._tryToCreateNewSession(d,h)}))}request(e,t,r,n){return new Promise(((o,i)=>{this.getSession(e,t,[{reject:i,resolve:e=>{try{o(e.request(r,n))}catch(e){i(e)}}}])}))}createConnection(e,t){return f.connect(e,t)}static connect(e,t){t.ALPNProtocols=["h2"];const r=e.port||443,n=e.hostname||e.host;return void 0===t.servername&&(t.servername=n),_.connect(r,n,t)}closeFreeSessions(){for(const e of Object.values(this.sessions))for(const t of e)0===t[n]&&t.close()}destroy(e){for(const t of Object.values(this.sessions))for(const r of t)r.destroy(e);for(const e of Object.values(this.queue))for(const t of Object.values(e))t.destroyed=!0;this.queue={}}get freeSessions(){return d({agent:this,isFree:!0})}get busySessions(){return d({agent:this,isFree:!1})}}f.kCurrentStreamsCount=n,f.kGracefullyClosing=s,e.exports={Agent:f,globalAgent:new f}})),P.register("c7U1i",(function(e,t){"use strict";class r{constructor(e={}){if(!(e.maxSize&&e.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");this.maxSize=e.maxSize,this.onEviction=e.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0}_set(e,t){if(this.cache.set(e,t),this._size++,this._size>=this.maxSize){if(this._size=0,"function"==typeof this.onEviction)for(const[e,t]of this.oldCache.entries())this.onEviction(e,t);this.oldCache=this.cache,this.cache=new Map}}get(e){if(this.cache.has(e))return this.cache.get(e);if(this.oldCache.has(e)){const t=this.oldCache.get(e);return this.oldCache.delete(e),this._set(e,t),t}}set(e,t){return this.cache.has(e)?this.cache.set(e,t):this._set(e,t),this}has(e){return this.cache.has(e)||this.oldCache.has(e)}peek(e){return this.cache.has(e)?this.cache.get(e):this.oldCache.has(e)?this.oldCache.get(e):void 0}delete(e){const t=this.cache.delete(e);return t&&this._size--,this.oldCache.delete(e)||t}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}*keys(){for(const[e]of this)yield e}*values(){for(const[,e]of this)yield e}*[Symbol.iterator](){for(const e of this.cache)yield e;for(const e of this.oldCache){const[t]=e;this.cache.has(t)||(yield e)}}get size(){let e=0;for(const t of this.oldCache.keys())this.cache.has(t)||e++;return Math.min(this._size+e,this.maxSize)}}e.exports=r})),P.register("8QuKX",(function(e,t){var r=c.Buffer,n=g.Writable,o=P("9wili"),i=o.Agent,s=o.globalAgent,a=P("fTp79"),l=P("lYupp"),d=P("7YYKR"),p=P("lm0nW"),f=P("hfhmr"),h=f.ERR_INVALID_ARG_TYPE,m=f.ERR_INVALID_PROTOCOL,y=f.ERR_HTTP_HEADERS_SENT,b=f.ERR_INVALID_HTTP_TOKEN,v=f.ERR_HTTP_INVALID_HEADER_VALUE,_=f.ERR_INVALID_CHAR;const{HTTP2_HEADER_STATUS:S,HTTP2_HEADER_METHOD:E,HTTP2_HEADER_PATH:x,HTTP2_METHOD_CONNECT:k}=w.constants,T=Symbol("headers"),O=Symbol("origin"),A=Symbol("session"),I=Symbol("options"),j=Symbol("flushedHeaders"),R=Symbol("jobs"),C=/^[\^`\-\w!#$%&*+.|~]+$/,L=/[^\t\u0020-\u007E\u0080-\u00FF]/;e.exports=class extends n{constructor(e,t,n){super({autoDestroy:!1});const o="string"==typeof e||e instanceof URL;if(o&&(e=l(e instanceof URL?e:new URL(e))),"function"==typeof t||void 0===t?(n=t,t=o?e:{...e}):t={...e,...t},t.h2session)this[A]=t.h2session;else if(!1===t.agent)this.agent=new i({maxFreeSessions:0});else if(void 0===t.agent||null===t.agent)"function"==typeof t.createConnection?(this.agent=new i({maxFreeSessions:0}),this.agent.createConnection=t.createConnection):this.agent=s;else{if("function"!=typeof t.agent.request)throw new h("options.agent",["Agent-like Object","undefined","false"],t.agent);this.agent=t.agent}if(t.protocol&&"https:"!==t.protocol)throw new m(t.protocol,"https:");const a=t.port||t.defaultPort||this.agent&&this.agent.defaultPort||443,c=t.hostname||t.host||"localhost";delete t.hostname,delete t.host,delete t.port;const{timeout:u}=t;if(t.timeout=void 0,this[T]=Object.create(null),this[R]=[],this.socket=null,this.connection=null,this.method=t.method||"GET",this.path=t.path,this.res=null,this.aborted=!1,this.reusedSocket=!1,t.headers)for(const[e,r]of Object.entries(t.headers))this.setHeader(e,r);t.auth&&!("authorization"in this[T])&&(this[T].authorization="Basic "+r.from(t.auth).toString("base64")),t.session=t.tlsSession,t.path=t.socketPath,this[I]=t,443===a?(this[O]=`https://${c}`,":authority"in this[T]||(this[T][":authority"]=c)):(this[O]=`https://${c}:${a}`,":authority"in this[T]||(this[T][":authority"]=`${c}:${a}`)),u&&this.setTimeout(u),n&&this.once("response",n),this[j]=!1}get method(){return this[T][E]}set method(e){e&&(this[T][E]=e.toUpperCase())}get path(){return this[T][x]}set path(e){e&&(this[T][x]=e)}get _mustNotHaveABody(){return"GET"===this.method||"HEAD"===this.method||"DELETE"===this.method}_write(e,t,r){if(this._mustNotHaveABody)return void r(new Error("The GET, HEAD and DELETE methods must NOT have a body"));this.flushHeaders();const n=()=>this._request.write(e,t,r);this._request?n():this[R].push(n)}_final(e){if(this.destroyed)return;this.flushHeaders();const t=()=>{this._mustNotHaveABody?e():this._request.end(e)};this._request?t():this[R].push(t)}abort(){this.res&&this.res.complete||(this.aborted||u.nextTick((()=>this.emit("abort"))),this.aborted=!0,this.destroy())}_destroy(e,t){this.res&&this.res._dump(),this._request&&this._request.destroy(),t(e)}async flushHeaders(){if(this[j]||this.destroyed)return;this[j]=!0;const e=this.method===k,t=t=>{if(this._request=t,this.destroyed)return void t.destroy();e||d(t,this,["timeout","continue","close","error"]);const n=e=>(...t)=>{this.writable||this.destroyed?this.once("finish",(()=>{e(...t)})):e(...t)};t.once("response",n(((n,o,i)=>{const s=new a(this.socket,t.readableHighWaterMark);this.res=s,s.req=this,s.statusCode=n[S],s.headers=n,s.rawHeaders=i,s.once("end",(()=>{this.aborted?(s.aborted=!0,s.emit("aborted")):(s.complete=!0,s.socket=null,s.connection=null)})),e?(s.upgrade=!0,this.emit("connect",s,t,r.alloc(0))?this.emit("close"):t.destroy()):(t.on("data",(e=>{s._dumped||s.push(e)||t.pause()})),t.once("end",(()=>{s.push(null)})),this.emit("response",s)||s._dump())}))),t.once("headers",n((e=>this.emit("information",{statusCode:e[S]})))),t.once("trailers",n(((e,t,r)=>{const{res:n}=this;n.trailers=e,n.rawTrailers=r})));const{socket:o}=t.session;this.socket=o,this.connection=o;for(const e of this[R])e();this.emit("socket",this.socket)};if(this[A])try{t(this[A].request(this[T]))}catch(e){this.emit("error",e)}else{this.reusedSocket=!0;try{t(await this.agent.request(this[O],this[I],this[T]))}catch(e){this.emit("error",e)}}}getHeader(e){if("string"!=typeof e)throw new h("name","string",e);return this[T][e.toLowerCase()]}get headersSent(){return this[j]}removeHeader(e){if("string"!=typeof e)throw new h("name","string",e);if(this.headersSent)throw new y("remove");delete this[T][e.toLowerCase()]}setHeader(e,t){if(this.headersSent)throw new y("set");if("string"!=typeof e||!C.test(e)&&!p(e))throw new b("Header name",e);if(void 0===t)throw new v(t,e);if(L.test(t))throw new _("header content",e);this[T][e.toLowerCase()]=t}setNoDelay(){}setSocketKeepAlive(){}setTimeout(e,t){const r=()=>this._request.setTimeout(e,t);return this._request?r():this[R].push(r),this}get maxHeadersCount(){if(!this.destroyed&&this._request)return this._request.session.localSettings.maxHeaderListSize}set maxHeadersCount(e){}}})),P.register("fTp79",(function(e,t){"use strict";var r=g.Readable;e.exports=class extends r{constructor(e,t){super({highWaterMark:t,autoDestroy:!1}),this.statusCode=null,this.statusMessage="",this.httpVersion="2.0",this.httpVersionMajor=2,this.httpVersionMinor=0,this.headers={},this.trailers={},this.req=null,this.aborted=!1,this.complete=!1,this.upgrade=null,this.rawHeaders=[],this.rawTrailers=[],this.socket=e,this.connection=e,this._dumped=!1}_destroy(e){this.req._request.destroy(e)}setTimeout(e,t){return this.req.setTimeout(e,t),this}_dump(){this._dumped||(this._dumped=!0,this.removeAllListeners("data"),this.resume())}_read(){this.req&&this.req._request.resume()}}})),P.register("lYupp",(function(e,t){"use strict";e.exports=e=>{const t={protocol:e.protocol,hostname:"string"==typeof e.hostname&&e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,host:e.host,hash:e.hash,search:e.search,pathname:e.pathname,href:e.href,path:`${e.pathname||""}${e.search||""}`};return"string"==typeof e.port&&0!==e.port.length&&(t.port=Number(e.port)),(e.username||e.password)&&(t.auth=`${e.username||""}:${e.password||""}`),t}})),P.register("7YYKR",(function(e,t){"use strict";e.exports=(e,t,r)=>{for(const n of r)e.on(n,((...e)=>t.emit(n,...e)))}})),P.register("lm0nW",(function(e,t){"use strict";e.exports=e=>{switch(e){case":method":case":scheme":case":authority":case":path":return!0;default:return!1}}})),P.register("hfhmr",(function(e,t){"use strict";const r=(t,r,n)=>{e.exports[r]=class extends t{constructor(...e){super("string"==typeof n?n:n(e)),this.name=`${super.name} [${r}]`,this.code=r}}};r(TypeError,"ERR_INVALID_ARG_TYPE",(e=>{const t=e[0].includes(".")?"property":"argument";let r=e[1];const n=Array.isArray(r);return n&&(r=`${r.slice(0,-1).join(", ")} or ${r.slice(-1)}`),`The "${e[0]}" ${t} must be ${n?"one of":"of"} type ${r}. Received ${typeof e[2]}`})),r(TypeError,"ERR_INVALID_PROTOCOL",(e=>`Protocol "${e[0]}" not supported. Expected "${e[1]}"`)),r(Error,"ERR_HTTP_HEADERS_SENT",(e=>`Cannot ${e[0]} headers after they are sent to the client`)),r(TypeError,"ERR_INVALID_HTTP_TOKEN",(e=>`${e[0]} must be a valid HTTP token [${e[1]}]`)),r(TypeError,"ERR_HTTP_INVALID_HEADER_VALUE",(e=>`Invalid value "${e[0]} for header "${e[1]}"`)),r(TypeError,"ERR_INVALID_CHAR",(e=>`Invalid character in ${e[0]} [${e[1]}]`))})),P.register("1hSoz",(function(e,t){"use strict";var r=P("7dVey"),n=P("c7U1i"),o=P("8QuKX"),i=P("e1zoY"),s=P("lYupp");const a=new n({maxSize:100}),c=new Map,u=(e,t,r)=>{t._httpMessage={shouldKeepAlive:!0};const n=()=>{e.emit("free",t,r)};t.on("free",n);const o=()=>{e.removeSocket(t,r)};t.on("close",o);const i=()=>{e.removeSocket(t,r),t.off("close",o),t.off("free",n),t.off("agentRemove",i)};t.on("agentRemove",i),e.emit("free",t,r)};e.exports=async(e,t,n)=>{if(("string"==typeof e||e instanceof URL)&&(e=s(new URL(e))),"function"==typeof t&&(n=t,t=void 0),t={ALPNProtocols:["h2","http/1.1"],...e,...t,resolveSocket:!0},!Array.isArray(t.ALPNProtocols)||0===t.ALPNProtocols.length)throw new Error("The `ALPNProtocols` option must be an Array with at least one entry");t.protocol=t.protocol||"https:";const l="https:"===t.protocol;t.host=t.hostname||t.host||"localhost",t.session=t.tlsSession,t.servername=t.servername||i(t),t.port=t.port||(l?443:80),t._defaultAgent=l?h.globalAgent:f.globalAgent;const d=t.agent;if(d){if(d.addRequest)throw new Error("The `options.agent` object can contain only `http`, `https` or `http2` properties");t.agent=d[l?"https":"http"]}if(l){const e=await(async e=>{const t=`${e.host}:${e.port}:${e.ALPNProtocols.sort()}`;if(!a.has(t)){if(c.has(t))return(await c.get(t)).alpnProtocol;const{path:n,agent:o}=e;e.path=e.socketPath;const i=r(e);c.set(t,i);try{const{socket:r,alpnProtocol:s}=await i;if(a.set(t,s),e.path=n,"h2"===s)r.destroy();else{const{globalAgent:t}=h,n=h.Agent.prototype.createConnection;o?o.createConnection===n?u(o,r,e):r.destroy():t.createConnection===n?u(t,r,e):r.destroy()}return c.delete(t),s}catch(e){throw c.delete(t),e}}return a.get(t)})(t);if("h2"===e)return d&&(t.agent=d.http2),new o(t,n)}return f.request(t,n)},e.exports.protocolCache=a})),P.register("7dVey",(function(e,t){"use strict";e.exports=(e={},t=_.connect)=>new Promise(((r,n)=>{let o,i=!1;const s=async()=>{await c,o.off("timeout",a),o.off("error",n),e.resolveSocket?(r({alpnProtocol:o.alpnProtocol,socket:o,timeout:i}),i&&(await Promise.resolve(),o.emit("timeout"))):(o.destroy(),r({alpnProtocol:o.alpnProtocol,timeout:i}))},a=async()=>{i=!0,s()},c=(async()=>{try{o=await t(e,s),o.on("error",n),o.once("timeout",a)}catch(e){n(e)}})()}))})),P.register("e1zoY",(function(e,t){"use strict";e.exports=e=>{let t=e.host;const r=e.headers&&e.headers.host;if(r)if(r.startsWith("[")){t=-1===r.indexOf("]")?r:r.slice(1,-1)}else t=r.split(":",1)[0];return S.isIP(t)?"":t}})),P.register("1KYbf",(function(e,t){var r=c.Buffer;Object.defineProperty(e.exports,"__esModule",{value:!0});var n=P("gTsOG"),o=P("6rVm0");const a=s.promisify(i.stat);e.exports.default=async(e,t)=>{if(t&&"content-length"in t)return Number(t["content-length"]);if(!e)return 0;if(n.default.string(e))return r.byteLength(e);if(n.default.buffer(e))return e.length;if(o.default(e))return s.promisify(e.getLength.bind(e))();if(e instanceof i.ReadStream){const{size:t}=await a(e.path);if(0===t)return;return t}}})),P.register("6rVm0",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0});var r=P("gTsOG");e.exports.default=e=>r.default.nodeStream(e)&&r.default.function_(e.getBoundary)})),P.register("lSeCe",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.default=function(e,t,r){const n={};for(const o of r)n[o]=(...e)=>{t.emit(o,...e)},e.on(o,n[o]);return()=>{for(const t of r)e.off(t,n[t])}}})),P.register("5l83E",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.TimeoutError=void 0;var r=P("1k5VE");const n=Symbol("reentry"),o=()=>{};class i extends Error{constructor(e,t){super(`Timeout awaiting '${t}' for ${e}ms`),this.event=t,this.name="TimeoutError",this.code="ETIMEDOUT"}}e.exports.TimeoutError=i,e.exports.default=(e,t,s)=>{if(n in e)return o;e[n]=!0;const a=[],{once:c,unhandleAll:u}=r.default(),l=(e,t,r)=>{var n;const o=setTimeout(t,e,e,r);null===(n=o.unref)||void 0===n||n.call(o);const i=()=>{clearTimeout(o)};return a.push(i),i},{host:d,hostname:p}=s,f=(t,r)=>{e.destroy(new i(t,r))},h=()=>{for(const e of a)e();u()};if(e.once("error",(t=>{if(h(),0===e.listenerCount("error"))throw t})),e.once("close",h),c(e,"response",(e=>{c(e,"end",h)})),void 0!==t.request&&l(t.request,f,"request"),void 0!==t.socket){const r=()=>{f(t.socket,"socket")};e.setTimeout(t.socket,r),a.push((()=>{e.removeListener("timeout",r)}))}return c(e,"socket",(r=>{var n;const{socketPath:o}=e;if(r.connecting){const e=Boolean(null!=o?o:0!==S.isIP(null!==(n=null!=p?p:d)&&void 0!==n?n:""));if(void 0!==t.lookup&&!e&&void 0===r.address().address){const e=l(t.lookup,f,"lookup");c(r,"lookup",e)}if(void 0!==t.connect){const n=()=>l(t.connect,f,"connect");e?c(r,"connect",n()):c(r,"lookup",(e=>{null===e&&c(r,"connect",n())}))}void 0!==t.secureConnect&&"https:"===s.protocol&&c(r,"connect",(()=>{const e=l(t.secureConnect,f,"secureConnect");c(r,"secureConnect",e)}))}if(void 0!==t.send){const n=()=>l(t.send,f,"send");r.connecting?c(r,"connect",(()=>{c(e,"upload-complete",n())})):c(e,"upload-complete",n())}})),void 0!==t.response&&c(e,"upload-complete",(()=>{const r=l(t.response,f,"response");c(e,"response",r)})),h}})),P.register("1k5VE",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.default=()=>{const e=[];return{once(t,r,n){t.once(r,n),e.push({origin:t,event:r,fn:n})},unhandleAll(){for(const t of e){const{origin:e,event:r,fn:n}=t;e.removeListener(r,n)}e.length=0}}}})),P.register("kh4Im",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0});var r=P("gTsOG");e.exports.default=e=>{const t={protocol:e.protocol,hostname:r.default.string(e.hostname)&&e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,host:e.host,hash:e.hash,search:e.search,pathname:e.pathname,href:e.href,path:`${e.pathname||""}${e.search||""}`};return r.default.string(e.port)&&e.port.length>0&&(t.port=Number(e.port)),(e.username||e.password)&&(t.auth=`${e.username||""}:${e.password||""}`),t}})),P.register("gZ8Ha",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0});const r=["protocol","host","hostname","port","pathname","search"];e.exports.default=(e,t)=>{var n,o;if(t.path){if(t.pathname)throw new TypeError("Parameters `path` and `pathname` are mutually exclusive.");if(t.search)throw new TypeError("Parameters `path` and `search` are mutually exclusive.");if(t.searchParams)throw new TypeError("Parameters `path` and `searchParams` are mutually exclusive.")}if(t.search&&t.searchParams)throw new TypeError("Parameters `search` and `searchParams` are mutually exclusive.");if(!e){if(!t.protocol)throw new TypeError("No URL protocol specified");e=`${t.protocol}//${null!==(o=null!==(n=t.hostname)&&void 0!==n?n:t.host)&&void 0!==o?o:""}`}const i=new p.URL(e);if(t.path){const e=t.path.indexOf("?");-1===e?t.pathname=t.path:(t.pathname=t.path.slice(0,e),t.search=t.path.slice(e+1)),delete t.path}for(const e of r)t[e]&&(i[e]=t[e].toString());return i}})),P.register("1UF61",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0});e.exports.default=class{constructor(){this.weakMap=new WeakMap,this.map=new Map}set(e,t){"object"==typeof e?this.weakMap.set(e,t):this.map.set(e,t)}get(e){return"object"==typeof e?this.weakMap.get(e):this.map.get(e)}has(e){return"object"==typeof e?this.weakMap.has(e):this.map.has(e)}}})),P.register("420ky",(function(e,t){var r=c.Buffer;Object.defineProperty(e.exports,"__esModule",{value:!0});e.exports.default=async e=>{const t=[];let n=0;for await(const o of e)t.push(o),n+=r.byteLength(o);return r.isBuffer(t[0])?r.concat(t,n):r.from(t.join(""))}})),P.register("glizj",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.dnsLookupIpVersionToFamily=e.exports.isDnsLookupIpVersion=void 0;const r={auto:0,ipv4:4,ipv6:6};e.exports.isDnsLookupIpVersion=e=>e in r,e.exports.dnsLookupIpVersionToFamily=t=>{if(e.exports.isDnsLookupIpVersion(t))return r[t];throw new Error("Invalid DNS lookup IP version")}})),P.register("f5Wfg",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.isResponseOk=void 0,e.exports.isResponseOk=e=>{const{statusCode:t}=e,r=e.request.options.followRedirect?299:399;return t>=200&&t<=r||304===t}})),P.register("d9hSi",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0});const r=new Set;e.exports.default=e=>{r.has(e)||(r.add(e),u.emitWarning(`Got: ${e}`,{type:"DeprecationWarning"}))}})),P.register("c7cDZ",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0});var r=P("gTsOG");e.exports.default=(e,t)=>{if(r.default.null_(e.encoding))throw new TypeError("To get a Buffer, set `options.responseType` to `buffer` instead");r.assert.any([r.default.string,r.default.undefined],e.encoding),r.assert.any([r.default.boolean,r.default.undefined],e.resolveBodyOnly),r.assert.any([r.default.boolean,r.default.undefined],e.methodRewriting),r.assert.any([r.default.boolean,r.default.undefined],e.isStream),r.assert.any([r.default.string,r.default.undefined],e.responseType),void 0===e.responseType&&(e.responseType="text");const{retry:n}=e;if(e.retry=t?{...t.retry}:{calculateDelay:e=>e.computedValue,limit:0,methods:[],statusCodes:[],errorCodes:[],maxRetryAfter:void 0},r.default.object(n)?(e.retry={...e.retry,...n},e.retry.methods=[...new Set(e.retry.methods.map((e=>e.toUpperCase())))],e.retry.statusCodes=[...new Set(e.retry.statusCodes)],e.retry.errorCodes=[...new Set(e.retry.errorCodes)]):r.default.number(n)&&(e.retry.limit=n),r.default.undefined(e.retry.maxRetryAfter)&&(e.retry.maxRetryAfter=Math.min(...[e.timeout.request,e.timeout.connect].filter(r.default.number))),r.default.object(e.pagination)){t&&(e.pagination={...t.pagination,...e.pagination});const{pagination:n}=e;if(!r.default.function_(n.transform))throw new Error("`options.pagination.transform` must be implemented");if(!r.default.function_(n.shouldContinue))throw new Error("`options.pagination.shouldContinue` must be implemented");if(!r.default.function_(n.filter))throw new TypeError("`options.pagination.filter` must be implemented");if(!r.default.function_(n.paginate))throw new Error("`options.pagination.paginate` must be implemented")}return"json"===e.responseType&&void 0===e.headers.accept&&(e.headers.accept="application/json"),e}})),P.register("h2Rad",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.retryAfterStatusCodes=void 0,e.exports.retryAfterStatusCodes=new Set([413,429,503]);e.exports.default=({attemptCount:e,retryOptions:t,error:r,retryAfter:n})=>{if(e>t.limit)return 0;const o=t.methods.includes(r.options.method),i=t.errorCodes.includes(r.code),s=r.response&&t.statusCodes.includes(r.response.statusCode);if(!o||!i&&!s)return 0;if(r.response){if(n)return void 0===t.maxRetryAfter||n>t.maxRetryAfter?0:n;if(413===r.response.statusCode)return 0}return 2**(e-1)*1e3+100*Math.random()}})),P.register("e8nKR",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0});var r=P("dFbY3");e.exports.default=(e,t,n,o)=>{const{rawBody:i}=e;try{if("text"===t)return i.toString(o);if("json"===t)return 0===i.length?"":n(i.toString());if("buffer"===t)return i;throw new r.ParseError({message:`Unknown body type '${t}'`,name:"Error"},e)}catch(t){throw new r.ParseError(t,e)}}})),P.register("kwHK5",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0});var r=P("dFbY3");e.exports.default=function(e,...t){const n=(async()=>{if(e instanceof r.RequestError)try{for(const r of t)if(r)for(const t of r)e=await t(e)}catch(t){e=t}throw e})(),o=()=>n;return n.json=o,n.text=o,n.buffer=o,n.on=o,n}})),P.register("28o8F",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0});var r=P("gTsOG");e.exports.default=function e(t){for(const n of Object.values(t))(r.default.plainObject(n)||r.default.array(n))&&e(n);return Object.freeze(t)}})),P.register("l4k4H",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0})})),P.register("4z1vt",(function(e,t){var r=c.Buffer,n=e.exports&&e.exports.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.RequestLibError=void 0;const o=n(a);var i=P("e0WIF");const s=n(P("aZBcl"));var u=P("kLa2o"),d=P("6JCTy"),p=P("QZzoB");class f extends Error{}e.exports.RequestLibError=f;const h={"Content-Type":"application/json; charset=utf-8",Connection:"keep-alive",Accept:"application/json","User-Agent":"webdriver/"+p.version},m=(0,s.default)("webdriver");class g extends l.EventEmitter{constructor(e,t,r,n=!1){super(),this.defaultOptions={retry:0,followRedirect:!0,responseType:"json",throwHttpErrors:!1},this.body=r,this.method=e,this.endpoint=t,this.isHubCommand=n,this.defaultAgents=null,this.requiresSessionId=Boolean(this.endpoint.match(/:sessionId/))}makeRequest(e,t){let r=Object.assign({method:this.method},this.defaultOptions,this._createOptions(e,t));return"function"==typeof e.transformRequest&&(r=e.transformRequest(r)),this.emit("request",r),this._request(r,e.transformResponse,e.connectionRetryCount,0)}_createOptions(e,t,n=!1){const s=n?void 0:e.agent||this.defaultAgents,a=n?void 0:"object"==typeof e.queryParams?e.queryParams:{},c={https:{},agent:s,headers:{...h,..."object"==typeof e.headers?e.headers:{}},searchParams:a,timeout:e.connectionRetryTimeout};if(this.body&&(Object.keys(this.body).length||"POST"===this.method)){const e=r.byteLength(JSON.stringify(this.body),"utf8");c.json=this.body,c.headers["Content-Length"]=`${e}`}let u=this.endpoint;if(this.requiresSessionId){if(!t)throw new Error("A sessionId is required for this command");u=u.replace(":sessionId",t)}return c.url=i.URLFactory.getInstance(`${e.protocol}://${e.hostname}:${e.port}`+(this.isHubCommand?this.endpoint:o.default.join(e.path||"",u))),"/session"===this.endpoint&&e.user&&e.key&&(c.username=e.user,c.password=e.key),c.https.rejectUnauthorized=!(!1===e.strictSSL),c}async _libRequest(e,t){throw new Error("This function must be implemented")}_libPerformanceNow(){throw new Error("This function must be implemented")}async _request(e,t,r=0,n=0){m.info(`[${e.method}] ${e.url.href}`),e.json&&Object.keys(e.json).length&&m.info("DATA",(0,u.transformCommandLogResult)(e.json));const{url:o,...i}=e,s=this._libPerformanceNow();let a=await this._libRequest(o,i).catch((e=>e));const c=this._libPerformanceNow()-s,l=(o,i)=>{if(n>=r||o.message.includes("invalid session id"))throw m.error(`Request failed with status ${a.statusCode} due to ${o}`),this.emit("response",{error:o}),this.emit("performance",{request:e,durationMillisecond:c,success:!1,error:o,retryCount:n}),o;return++n,this.emit("retry",{error:o,retryCount:n}),this.emit("performance",{request:e,durationMillisecond:c,success:!1,error:o,retryCount:n}),m.warn(i),m.info(`Retrying ${n}/${r}`),this._request(e,t,r,n)};if(a instanceof Error){if("ETIMEDOUT"===a.code){return l((0,d.getTimeoutError)(a,e),'Request timed out! Consider increasing the "connectionRetryTimeout" option.')}throw this.emit("performance",{request:e,durationMillisecond:c,success:!1,error:a,retryCount:n}),a}"function"==typeof t&&(a=t(a,e));const p=(0,d.getErrorFromResponseBody)(a.body,e.json);if("java.net.ConnectException: Connection refused: connect"===p.message)return l(p,"Connection to Selenium Standalone server was refused.");if(this.isHubCommand)return"string"==typeof a.body&&a.body.startsWith("<!DOCTYPE html>")?(this.emit("performance",{request:e,durationMillisecond:c,success:!1,error:p,retryCount:n}),Promise.reject(new Error("Command can only be called to a Selenium Hub"))):{value:a.body||null};if((0,d.isSuccessfulResponse)(a.statusCode,a.body))return this.emit("response",{result:a.body}),this.emit("performance",{request:e,durationMillisecond:c,success:!0,retryCount:n}),a.body;if("stale element reference"===p.name)throw m.warn("Request encountered a stale element - terminating request"),this.emit("response",{error:p}),this.emit("performance",{request:e,durationMillisecond:c,success:!1,error:p,retryCount:n}),p;return l(p,`Request failed with status ${a.statusCode} due to ${p.message}`)}}e.exports.default=g})),P.register("6JCTy",(function(e,t){"use strict";var r=e.exports&&e.exports.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.getTimeoutError=e.exports.getSessionError=e.exports.setupDirectConnect=e.exports.getEnvironmentVars=e.exports.CustomRequestError=e.exports.getErrorFromResponseBody=e.exports.getPrototype=e.exports.isSuccessfulResponse=e.exports.startWebDriverSession=void 0;const n=r(P("lNzko")),o=r(P("aZBcl"));var i=P("iuldt");const s=r(P("e0WIF")),a=r(P("kxz8U"));var c=P("kLa2o"),u=(i=P("iuldt"),P("6oiT0"));const l=(0,o.default)("webdriver"),d=["unknown command: wd/hub/session","HTTP method not allowed","'POST /wd/hub/session' was not found.","Command not found"];e.exports.startWebDriverSession=async function(t){if(t.capabilities){const e=Object.keys(t.capabilities).filter((e=>e.includes(":"))),r=Object.keys(t.capabilities).filter((e=>!i.CAPABILITY_KEYS.includes(e)&&!e.includes(":")));if(e.length&&r.length)throw new Error(`Invalid or unsupported WebDriver capabilities found ("${r.join('", "')}"). Ensure to only use valid W3C WebDriver capabilities (see https://w3c.github.io/webdriver/#capabilities).If you run your tests on a remote vendor, like Sauce Labs or BrowserStack, make sure that you put them into vendor specific capabilities, e.g. "sauce:options" or "bstack:options". Please reach out to to your vendor support team if you have further questions.`)}const[r,n]=t.capabilities&&t.capabilities.alwaysMatch?[t.capabilities,t.capabilities.alwaysMatch]:[{alwaysMatch:t.capabilities,firstMatch:[{}]},t.capabilities],o=s.default.getInstance("POST","/session",{capabilities:r,desiredCapabilities:n});let a;try{a=await o.makeRequest(t)}catch(r){l.error(r);const n=(0,e.exports.getSessionError)(r,t);throw new Error("Failed to create session.\n"+n)}const c=a.value.sessionId||a.sessionId;return t.capabilities=a.value.capabilities||a.value,{sessionId:c,capabilities:t.capabilities}},e.exports.isSuccessfulResponse=function(e,t){if(!t||void 0===t.value)return l.debug("request failed due to missing body"),!1;if(7===t.status&&t.value&&t.value.message&&(t.value.message.toLowerCase().startsWith("no such element")||"An element could not be located on the page using the given search parameters."===t.value.message||t.value.message.toLowerCase().startsWith("unable to find element")))return!0;if(t.status&&0!==t.status)return l.debug(`request failed due to status ${t.status}`),!1;const r=t.value&&(t.value.error||t.value.stackTrace||t.value.stacktrace);return 200===e&&!r||(!(404!==e||!t.value||"no such element"!==t.value.error)||(!r||(l.debug("request failed due to response error:",t.value.error),!1)))},e.exports.getPrototype=function({isW3C:e,isChrome:t,isFirefox:r,isMobile:o,isSauce:s,isSeleniumStandalone:c}){const u={},l=(0,n.default)(o?(0,n.default)({},i.JsonWProtocol,i.WebDriverProtocol):e?i.WebDriverProtocol:i.JsonWProtocol,o?(0,n.default)({},i.MJsonWProtocol,i.AppiumProtocol):{},t?i.ChromiumProtocol:{},r?i.GeckoProtocol:{},s?i.SauceLabsProtocol:{},c?i.SeleniumProtocol:{});for(const[e,t]of Object.entries(l))for(const[r,n]of Object.entries(t))u[n.command]={value:(0,a.default)(r,e,n,c)};return u},e.exports.getErrorFromResponseBody=function(e,t){return e?"string"==typeof e&&e.length?new Error(e):"object"!=typeof e?new Error("Unknown error"):new p(e,t):new Error("Response has empty body")};class p extends Error{constructor(e,t){const r=e.value||e;let n=r.message||r.class||"unknown error";"string"==typeof r.error&&r.error.includes("invalid selector")&&(n=`The selector "${t.value}" used with strategy "${t.using}" is invalid! For more information on selectors visit the WebdriverIO docs at: https://webdriver.io/docs/selectors`),super(n),r.error?this.name=r.error:r.message&&r.message.includes("stale element reference")?this.name="stale element reference":this.name=r.name||"WebDriver Error",Error.captureStackTrace(this,p)}}e.exports.CustomRequestError=p,e.exports.getEnvironmentVars=function({isW3C:e,isMobile:t,isIOS:r,isAndroid:n,isChrome:o,isFirefox:i,isSauce:s,isSeleniumStandalone:a}){return{isW3C:{value:e},isMobile:{value:t},isIOS:{value:r},isAndroid:{value:n},isFirefox:{value:i},isChrome:{value:o},isSauce:{value:s},isSeleniumStandalone:{value:a}}},e.exports.setupDirectConnect=function(e){const t=e.capabilities,r=t.directConnectProtocol||t["appium:directConnectProtocol"],n=t.directConnectHost||t["appium:directConnectHost"];let o=t.directConnectPath;o||""===o||(o=t["appium:directConnectPath"]);const i=t.directConnectPort||t["appium:directConnectPort"];r&&n&&i&&(o||""===o)&&(l.info(`Found direct connect information in new session response. Will connect to server at ${r}://${n}:${i}${o}`),e.options.protocol=r,e.options.hostname=n,e.options.port=i,e.options.path=o)};e.exports.getSessionError=(e,t={})=>{var r;if("ECONNREFUSED"===e.code)return`Unable to connect to "${t.protocol}://${t.hostname}:${t.port}${t.path}", make sure browser driver is running on that address.\nIf you use services like chromedriver see initialiseServices logs above or in wdio.log file as the service might had problems to start the driver.`;if("unhandled request"===e.message)return'The browser driver couldn\'t start the session. Make sure you have set the "path" correctly!';if(!e.message)return"See wdio.* logs for more information.";if(e.message.includes("Whoops! The URL specified routes to this help page."))return"It seems you are running a Selenium Standalone server and point to a wrong path. Please set `path: '/wd/hub'` in your wdio.conf.js!";if(d.some((t=>e&&e.message&&e.message.includes(t))))return"Make sure to set `path: '/'` in your wdio.conf.js!";if(e.message.includes("Bad Request - Invalid Hostname")&&e.message.includes("HTTP Error 400"))return"Run edge driver on 127.0.0.1 instead of localhost, ex: --host=127.0.0.1, or set `hostname: 'localhost'` in your wdio.conf.js";const n='\nMake sure to add vendor prefix like "goog:", "appium:", "moz:", etc to non W3C capabilities.\nSee more https://www.w3.org/TR/webdriver/#capabilities';return e.message.includes("Illegal key values seen in w3c capabilities")?e.message+n:"Response has empty body"===e.message?"Make sure to connect to valid hostname:port or the port is not in use.\nIf you use a grid server "+n:e.message.includes("failed serving request POST /wd/hub/session: Unauthorized")&&(null===(r=t.hostname)||void 0===r?void 0:r.endsWith("saucelabs.com"))?"Session request was not authorized because you either did provide a wrong access key or tried to run in a region that has not been enabled for your user. If have registered a free trial account it is connected to a specific region. Ensure this region is set in your configuration (https://webdriver.io/docs/options.html#region).":e.message};e.exports.getTimeoutError=(e,t)=>{const r=function(e){const{href:t}=e.url;return(t.match(u.REG_EXPS.commandName)||[])[1]||t}(t),n=function(e){const{json:t}=e;if("object"!=typeof t)return"";const r=(0,c.transformCommandLogResult)(t);if("string"==typeof r)return r;if("string"==typeof t.script){return`"${(t.script.match(u.REG_EXPS.execFn)||[])[1]||t.script}"`}return Object.keys(t).length?`"${JSON.stringify(t)}"`:""}(t),o=`when running "${r}" with method "${t.method}"`,i=n?` and args ${n}`:"",s=new Error(`${e.message} ${o}${i}`);return Object.assign(s,e)}})),P.register("lNzko",(function(e,t){var r="__lodash_hash_undefined__",n=9007199254740991,o="[object Arguments]",i="[object AsyncFunction]",s="[object Function]",a="[object GeneratorFunction]",c="[object Null]",u="[object Object]",l="[object Proxy]",d="[object Undefined]",p=/^\[object .+?Constructor\]$/,f=/^(?:0|[1-9]\d*)$/,h={};h["[object Float32Array]"]=h["[object Float64Array]"]=h["[object Int8Array]"]=h["[object Int16Array]"]=h["[object Int32Array]"]=h["[object Uint8Array]"]=h["[object Uint8ClampedArray]"]=h["[object Uint16Array]"]=h["[object Uint32Array]"]=!0,h[o]=h["[object Array]"]=h["[object ArrayBuffer]"]=h["[object Boolean]"]=h["[object DataView]"]=h["[object Date]"]=h["[object Error]"]=h[s]=h["[object Map]"]=h["[object Number]"]=h[u]=h["[object RegExp]"]=h["[object Set]"]=h["[object String]"]=h["[object WeakMap]"]=!1;var m="object"==typeof x&&x&&x.Object===Object&&x,g="object"==typeof self&&self&&self.Object===Object&&self,y=m||g||Function("return this")(),b=t&&!t.nodeType&&t,v=b&&e&&!e.nodeType&&e,w=v&&v.exports===b,_=w&&m.process,S=function(){try{var e=v&&v.require&&v.require("util").types;return e||_&&_.binding&&_.binding("util")}catch(e){}}(),E=S&&S.isTypedArray;var k,T,O,A=Array.prototype,P=Function.prototype,I=Object.prototype,j=y["__core-js_shared__"],R=P.toString,C=I.hasOwnProperty,L=(k=/[^.]+$/.exec(j&&j.keys&&j.keys.IE_PROTO||""))?"Symbol(src)_1."+k:"",N=I.toString,q=R.call(Object),D=RegExp("^"+R.call(C).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),M=w?y.Buffer:void 0,U=y.Symbol,F=y.Uint8Array,W=M?M.allocUnsafe:void 0,B=(T=Object.getPrototypeOf,O=Object,function(e){return T(O(e))}),z=Object.create,H=I.propertyIsEnumerable,G=A.splice,$=U?U.toStringTag:void 0,J=function(){try{var e=ve(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Z=M?M.isBuffer:void 0,V=Math.max,Q=Date.now,K=ve(y,"Map"),X=ve(Object,"create"),Y=function(){function e(){}return function(t){if(!je(t))return{};if(z)return z(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function ee(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function te(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function re(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function ne(e){var t=this.__data__=new te(e);this.size=t.size}function oe(e,t){var r=Te(e),n=!r&&ke(e),o=!r&&!n&&Ae(e),i=!r&&!n&&!o&&Ce(e),s=r||n||o||i,a=s?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],c=a.length;for(var u in e)!t&&!C.call(e,u)||s&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||we(u,c))||a.push(u);return a}function ie(e,t,r){(void 0!==r&&!xe(e[t],r)||void 0===r&&!(t in e))&&ce(e,t,r)}function se(e,t,r){var n=e[t];C.call(e,t)&&xe(n,r)&&(void 0!==r||t in e)||ce(e,t,r)}function ae(e,t){for(var r=e.length;r--;)if(xe(e[r][0],t))return r;return-1}function ce(e,t,r){"__proto__"==t&&J?J(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}ee.prototype.clear=function(){this.__data__=X?X(null):{},this.size=0},ee.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ee.prototype.get=function(e){var t=this.__data__;if(X){var n=t[e];return n===r?void 0:n}return C.call(t,e)?t[e]:void 0},ee.prototype.has=function(e){var t=this.__data__;return X?void 0!==t[e]:C.call(t,e)},ee.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=X&&void 0===t?r:t,this},te.prototype.clear=function(){this.__data__=[],this.size=0},te.prototype.delete=function(e){var t=this.__data__,r=ae(t,e);return!(r<0)&&(r==t.length-1?t.pop():G.call(t,r,1),--this.size,!0)},te.prototype.get=function(e){var t=this.__data__,r=ae(t,e);return r<0?void 0:t[r][1]},te.prototype.has=function(e){return ae(this.__data__,e)>-1},te.prototype.set=function(e,t){var r=this.__data__,n=ae(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},re.prototype.clear=function(){this.size=0,this.__data__={hash:new ee,map:new(K||te),string:new ee}},re.prototype.delete=function(e){var t=be(this,e).delete(e);return this.size-=t?1:0,t},re.prototype.get=function(e){return be(this,e).get(e)},re.prototype.has=function(e){return be(this,e).has(e)},re.prototype.set=function(e,t){var r=be(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},ne.prototype.clear=function(){this.__data__=new te,this.size=0},ne.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},ne.prototype.get=function(e){return this.__data__.get(e)},ne.prototype.has=function(e){return this.__data__.has(e)},ne.prototype.set=function(e,t){var r=this.__data__;if(r instanceof te){var n=r.__data__;if(!K||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new re(n)}return r.set(e,t),this.size=r.size,this};var ue,le=function(e,t,r){for(var n=-1,o=Object(e),i=r(e),s=i.length;s--;){var a=i[ue?s:++n];if(!1===t(o[a],a,o))break}return e};function de(e){return null==e?void 0===e?d:c:$&&$ in Object(e)?function(e){var t=C.call(e,$),r=e[$];try{e[$]=void 0;var n=!0}catch(e){}var o=N.call(e);n&&(t?e[$]=r:delete e[$]);return o}(e):function(e){return N.call(e)}(e)}function pe(e){return Re(e)&&de(e)==o}function fe(e){return!(!je(e)||function(e){return!!L&&L in e}(e))&&(Pe(e)?D:p).test(function(e){if(null!=e){try{return R.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}function he(e){if(!je(e))return function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}(e);var t=_e(e),r=[];for(var n in e)("constructor"!=n||!t&&C.call(e,n))&&r.push(n);return r}function me(e,t,r,n,o){e!==t&&le(t,(function(i,s){if(o||(o=new ne),je(i))!function(e,t,r,n,o,i,s){var a=Se(e,r),c=Se(t,r),l=s.get(c);if(l)return void ie(e,r,l);var d=i?i(a,c,r+"",e,t,s):void 0,p=void 0===d;if(p){var f=Te(c),h=!f&&Ae(c),m=!f&&!h&&Ce(c);d=c,f||h||m?Te(a)?d=a:Re(w=a)&&Oe(w)?d=function(e,t){var r=-1,n=e.length;t||(t=Array(n));for(;++r<n;)t[r]=e[r];return t}(a):h?(p=!1,d=function(e,t){if(t)return e.slice();var r=e.length,n=W?W(r):new e.constructor(r);return e.copy(n),n}(c,!0)):m?(p=!1,g=c,y=!0?(b=g.buffer,v=new b.constructor(b.byteLength),new F(v).set(new F(b)),v):g.buffer,d=new g.constructor(y,g.byteOffset,g.length)):d=[]:function(e){if(!Re(e)||de(e)!=u)return!1;var t=B(e);if(null===t)return!0;var r=C.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&R.call(r)==q}(c)||ke(c)?(d=a,ke(a)?d=function(e){return function(e,t,r,n){var o=!r;r||(r={});var i=-1,s=t.length;for(;++i<s;){var a=t[i],c=n?n(r[a],e[a],a,r,e):void 0;void 0===c&&(c=e[a]),o?ce(r,a,c):se(r,a,c)}return r}(e,Le(e))}(a):je(a)&&!Pe(a)||(d=function(e){return"function"!=typeof e.constructor||_e(e)?{}:Y(B(e))}(c))):p=!1}var g,y,b,v;var w;p&&(s.set(c,d),o(d,c,n,i,s),s.delete(c));ie(e,r,d)}(e,t,s,r,me,n,o);else{var a=n?n(Se(e,s),i,s+"",e,t,o):void 0;void 0===a&&(a=i),ie(e,s,a)}}),Le)}function ge(e,t){return Ee(function(e,t,r){return t=V(void 0===t?e.length-1:t,0),function(){for(var n=arguments,o=-1,i=V(n.length-t,0),s=Array(i);++o<i;)s[o]=n[t+o];o=-1;for(var a=Array(t+1);++o<t;)a[o]=n[o];return a[t]=r(s),function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}(e,this,a)}}(e,t,De),e+"")}var ye=J?function(e,t){return J(e,"toString",{configurable:!0,enumerable:!1,value:(r=t,function(){return r}),writable:!0});var r}:De;function be(e,t){var r,n,o=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof t?"string":"hash"]:o.map}function ve(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return fe(r)?r:void 0}function we(e,t){var r=typeof e;return!!(t=null==t?n:t)&&("number"==r||"symbol"!=r&&f.test(e))&&e>-1&&e%1==0&&e<t}function _e(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||I)}function Se(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Ee=function(e){var t=0,r=0;return function(){var n=Q(),o=16-(n-r);if(r=n,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(ye);function xe(e,t){return e===t||e!=e&&t!=t}var ke=pe(function(){return arguments}())?pe:function(e){return Re(e)&&C.call(e,"callee")&&!H.call(e,"callee")},Te=Array.isArray;function Oe(e){return null!=e&&Ie(e.length)&&!Pe(e)}var Ae=Z||function(){return!1};function Pe(e){if(!je(e))return!1;var t=de(e);return t==s||t==a||t==i||t==l}function Ie(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}function je(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Re(e){return null!=e&&"object"==typeof e}var Ce=E?function(e){return function(t){return e(t)}}(E):function(e){return Re(e)&&Ie(e.length)&&!!h[de(e)]};function Le(e){return Oe(e)?oe(e,!0):he(e)}var Ne,qe=(Ne=function(e,t,r){me(e,t,r)},ge((function(e,t){var r=-1,n=t.length,o=n>1?t[n-1]:void 0,i=n>2?t[2]:void 0;for(o=Ne.length>3&&"function"==typeof o?(n--,o):void 0,i&&function(e,t,r){if(!je(r))return!1;var n=typeof t;return!!("number"==n?Oe(r)&&we(t,r.length):"string"==n&&t in r)&&xe(r[t],e)}(t[0],t[1],i)&&(o=n<3?void 0:o,n=1),e=Object(e);++r<n;){var s=t[r];s&&Ne(e,s,r,o)}return e})));function De(e){return e}e.exports=qe})),P.register("iuldt",(function(e,t){"use strict";var r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),n=e.exports&&e.exports.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.CAPABILITY_KEYS=e.exports.GeckoProtocol=e.exports.SeleniumProtocol=e.exports.SauceLabsProtocol=e.exports.ChromiumProtocol=e.exports.AppiumProtocol=e.exports.JsonWProtocol=e.exports.MJsonWProtocol=e.exports.WebDriverProtocol=void 0;var o=P("dLelG");e.exports.WebDriverProtocol=o;var i=P("iMZCy");e.exports.MJsonWProtocol=i;var s=P("bLzJe");e.exports.JsonWProtocol=s;var a=P("50wc7");e.exports.AppiumProtocol=a;var c=P("8X4KP");e.exports.ChromiumProtocol=c;var u=P("cVNgd");e.exports.GeckoProtocol=u;var l=P("2wi4h");e.exports.SauceLabsProtocol=l;var d=P("907ST");e.exports.SeleniumProtocol=d,n(P("eWssa"),e.exports),e.exports.CAPABILITY_KEYS=["browserName","browserVersion","platformName","acceptInsecureCerts","pageLoadStrategy","proxy","setWindowRect","timeouts","strictFileInteractability","unhandledPromptBehavior"]})),P.register("dLelG",(function(e,t){e.exports=JSON.parse('{"/session":{"POST":{"command":"newSession","description":"The New Session command creates a new WebDriver session with the endpoint node. If the creation fails, a session not created error is returned.","ref":"https://w3c.github.io/webdriver/#dfn-new-sessions","parameters":[{"name":"capabilities","type":"object","description":"a JSON object, the set of capabilities that was ultimately merged and matched in the capability processing algorithm","required":true}],"returns":{"type":"Object","name":"session","description":"Object containing sessionId and capabilities of created WebDriver session."}}},"/session/:sessionId":{"DELETE":{"command":"deleteSession","description":"The Delete Session command closes any top-level browsing contexts associated with the current session, terminates the connection, and finally closes the current session.","ref":"https://w3c.github.io/webdriver/#dfn-delete-session","parameters":[]}},"/status":{"GET":{"command":"status","description":"The Status command returns information about whether a remote end is in a state in which it can create new sessions and can additionally include arbitrary meta information that is specific to the implementation.","ref":"https://w3c.github.io/webdriver/#dfn-status","parameters":[],"returns":{"type":"Object","name":"status","description":"Object containing status of the driver status."}}},"/session/:sessionId/timeouts":{"GET":{"command":"getTimeouts","description":"The Get Timeouts command gets timeout durations associated with the current session.","ref":"https://w3c.github.io/webdriver/#dfn-get-timeouts","parameters":[],"returns":{"type":"Object","name":"timeouts","description":"Object containing timeout durations for `script`, `pageLoad` and `implicit` timeouts."}},"POST":{"command":"setTimeouts","description":"The Set Timeouts command sets timeout durations associated with the current session. The timeouts that can be controlled are listed in the table of session timeouts below.","ref":"https://w3c.github.io/webdriver/#dfn-set-timeouts","parameters":[{"name":"implicit","type":"number","description":"integer in ms for session implicit wait timeout","required":false},{"name":"pageLoad","type":"number","description":"integer in ms for session page load timeout","required":false},{"name":"script","type":"number","description":"integer in ms for session script timeout","required":false}]}},"/session/:sessionId/url":{"GET":{"command":"getUrl","description":"The Get Current URL command returns the URL of the current top-level browsing context.","ref":"https://w3c.github.io/webdriver/#dfn-get-current-url","parameters":[],"returns":{"type":"string","name":"url","description":"current top-level browsing context’s active document’s document URL"}},"POST":{"command":"navigateTo","description":"The navigateTo (go) command is used to cause the user agent to navigate the current top-level browsing context a new location.","ref":"https://w3c.github.io/webdriver/#dfn-navigate-to","parameters":[{"name":"url","type":"string","description":"string representing an absolute URL (beginning with http(s)), possibly including a fragment (#...), could also be a local scheme (about: etc)","required":true}],"returns":{"type":"string","name":"url","description":"current document URL of the top-level browsing context."}}},"/session/:sessionId/back":{"POST":{"command":"back","description":"The Back command causes the browser to traverse one step backward in the joint session history of the current top-level browsing context. This is equivalent to pressing the back button in the browser chrome or calling `window.history.back`.","ref":"https://w3c.github.io/webdriver/#dfn-back","parameters":[]}},"/session/:sessionId/forward":{"POST":{"command":"forward","description":"The Forward command causes the browser to traverse one step forwards in the joint session history of the current top-level browsing context.","ref":"https://w3c.github.io/webdriver/#dfn-forward","parameters":[]}},"/session/:sessionId/refresh":{"POST":{"command":"refresh","description":"The Refresh command causes the browser to reload the page in current top-level browsing context.","ref":"https://w3c.github.io/webdriver/#dfn-refresh","parameters":[]}},"/session/:sessionId/title":{"GET":{"command":"getTitle","description":"The Get Title command returns the document title of the current top-level browsing context, equivalent to calling `document.title`.","ref":"https://w3c.github.io/webdriver/#dfn-get-title","parameters":[],"returns":{"type":"string","name":"title","description":"Returns a string which is the same as `document.title` of the current top-level browsing context."}}},"/session/:sessionId/window":{"GET":{"command":"getWindowHandle","description":"The Get Window Handle command returns the window handle for the current top-level browsing context. It can be used as an argument to Switch To Window.","ref":"https://w3c.github.io/webdriver/#dfn-get-window-handle","parameters":[],"returns":{"type":"string","name":"handle","description":"Returns a string which is the window handle for the current top-level browsing context."}},"DELETE":{"command":"closeWindow","description":"The Close Window command closes the current top-level browsing context. Once done, if there are no more top-level browsing contexts open, the WebDriver session itself is closed.","ref":"https://w3c.github.io/webdriver/#dfn-close-window","parameters":[]},"POST":{"command":"switchToWindow","description":"The Switch To Window command is used to select the current top-level browsing context for the current session, i.e. the one that will be used for processing commands.","ref":"https://w3c.github.io/webdriver/#dfn-switch-to-window","parameters":[{"name":"handle","type":"string","description":"a string representing a window handle, should be one of the strings that was returned in a call to getWindowHandles","required":true}]}},"/session/:sessionId/window/new":{"POST":{"command":"createWindow","description":"Create a new top-level browsing context.","ref":"https://w3c.github.io/webdriver/#new-window","parameters":[{"name":"type","type":"string","description":"Set to \'tab\' if the newly created window shares an OS-level window with the current browsing context, or \'window\' otherwise.","required":true}],"returns":{"type":"Object","name":"window","description":"New window object containing \'handle\' with the value of the handle and \'type\' with the value of the created window type"}}},"/session/:sessionId/window/handles":{"GET":{"command":"getWindowHandles","description":"The Get Window Handles command returns a list of window handles for every open top-level browsing context. The order in which the window handles are returned is arbitrary.","ref":"https://w3c.github.io/webdriver/#dfn-get-window-handles","parameters":[],"returns":{"type":"String[]","name":"handles","description":"An array which is a list of window handles."}}},"/session/:sessionId/print":{"POST":{"command":"printPage","description":"The Print Page command renders the document to a paginated PDF document.","ref":"https://w3c.github.io/webdriver/#print-page","parameters":[{"name":"orientation","type":"string","description":"page orientation. Default: `portrait`","required":false},{"name":"scale","type":"number","description":"page scale. Default: `1`","required":false},{"name":"background","type":"boolean","description":"page background. Default: `false`","required":false},{"name":"width","type":"number","description":"page width in cm. Default: `21.59` from page","required":false},{"name":"height","type":"number","description":"page height in cm. Default: `27.94` from page","required":false},{"name":"top","type":"number","description":"page margin in cm from top margin. Default: `1`","required":false},{"name":"bottom","type":"number","description":"page margin in cm from bottom margin. Default: `1`","required":false},{"name":"left","type":"number","description":"page margin in cm from left margin. Default: `1`","required":false},{"name":"right","type":"number","description":"page margin in cm from right margin. Default: `1`","required":false},{"name":"shrinkToFit","type":"boolean","description":"shrink pdf to fit in page. Default: `true`","required":false},{"name":"pageRanges","type":"object[]","description":"page ranges. Default `[]`","required":false}],"returns":{"type":"string","name":"pdf","description":"The base64-encoded PDF representation of the paginated document."}}},"/session/:sessionId/frame":{"POST":{"command":"switchToFrame","description":"The Switch To Frame command is used to select the current top-level browsing context or a child browsing context of the current browsing context to use as the current browsing context for subsequent commands.","ref":"https://w3c.github.io/webdriver/#dfn-switch-to-frame","parameters":[{"name":"id","type":"(number|object|null)","description":"one of three possible types: null: this represents the top-level browsing context (i.e., not an iframe), a Number, representing the index of the window object corresponding to a frame, an Element object received using `findElement`.","required":true}]}},"/session/:sessionId/frame/parent":{"POST":{"command":"switchToParentFrame","description":"The Switch to Parent Frame command sets the current browsing context for future commands to the parent of the current browsing context.","ref":"https://w3c.github.io/webdriver/#dfn-switch-to-parent-frame","parameters":[]}},"/session/:sessionId/window/rect":{"GET":{"command":"getWindowRect","description":"The Get Window Rect command returns the size and position on the screen of the operating system window corresponding to the current top-level browsing context.","ref":"https://w3c.github.io/webdriver/#dfn-get-window-rect","parameters":[],"returns":{"type":"Object","name":"windowRect","description":"A JSON representation of a \\"window rect\\" object. This has 4 properties: `x`, `y`, `width` and `height`."}},"POST":{"command":"setWindowRect","description":"The Set Window Rect command alters the size and the position of the operating system window corresponding to the current top-level browsing context.","ref":"https://w3c.github.io/webdriver/#dfn-set-window-rect","parameters":[{"name":"x","type":"(number|null)","description":"the screenX attribute of the window object","required":true},{"name":"y","type":"(number|null)","description":"the screenY attribute of the window object","required":true},{"name":"width","type":"(number|null)","description":"the width of the outer dimensions of the top-level browsing context, including browser chrome etc...","required":true},{"name":"height","type":"(number|null)","description":"the height of the outer dimensions of the top-level browsing context, including browser chrome etc...","required":true}],"returns":{"type":"Object","name":"windowRect","description":"A JSON representation of a \\"window rect\\" object based on the new window state."}}},"/session/:sessionId/window/maximize":{"POST":{"command":"maximizeWindow","description":"The Maximize Window command invokes the window manager-specific \\"maximize\\" operation, if any, on the window containing the current top-level browsing context. This typically increases the window to the maximum available size without going full-screen.","ref":"https://w3c.github.io/webdriver/#dfn-maximize-window","parameters":[],"returns":{"type":"Object","name":"windowRect","description":"A JSON representation of a \\"window rect\\" object based on the new window state."}}},"/session/:sessionId/window/minimize":{"POST":{"command":"minimizeWindow","description":"The Minimize Window command invokes the window manager-specific \\"minimize\\" operation, if any, on the window containing the current top-level browsing context. This typically hides the window in the system tray.","ref":"https://w3c.github.io/webdriver/#dfn-minimize-window","parameters":[],"returns":{"type":"Object","name":"windowRect","description":"A JSON representation of a \\"window rect\\" object of the (new) current top-level browsing context."}}},"/session/:sessionId/window/fullscreen":{"POST":{"command":"fullscreenWindow","description":"The Fullscreen Window command invokes the window manager-specific “full screen” operation, if any, on the window containing the current top-level browsing context. This typically increases the window to the size of the physical display and can hide browser chrome elements such as toolbars.","ref":"https://w3c.github.io/webdriver/#dfn-fullscreen-window","parameters":[],"returns":{"type":"Object","name":"windowRect","description":"A JSON representation of a \\"window rect\\" object of the (new) current top-level browsing context."}}},"/session/:sessionId/element":{"POST":{"command":"findElement","description":"The Find Element command is used to find an element in the current browsing context that can be used for future commands. This command returns JSON representation of the element that can be passed to $ command to transform the reference to an extended WebdriverIO element.","ref":"https://w3c.github.io/webdriver/#dfn-find-element","examples":[["// get element","const elementRef = await browser.findElement(\'xpath\', \'//div\')","const element = await $(elementRef)","await element.click()"]],"parameters":[{"name":"using","type":"string","description":"a valid element location strategy","required":true},{"name":"value","type":"string","description":"the actual selector that will be used to find an element","required":true}],"returns":{"type":"object","name":"element","description":"A JSON representation of an element object, e.g. `{ \'element-6066-11e4-a52e-4f735466cecf\': \'ELEMENT_1\' }`."}}},"/session/:sessionId/shadow/:shadowId/element":{"POST":{"command":"findElementFromShadowRoot","description":"The Find Element From Shadow Root command is used to find an element within the shadow root of an element that can be used for future commands. This command returns JSON representation of the element that can be passed to $ command to transform the reference to an extended WebdriverIO element.","ref":"https://w3c.github.io/webdriver/#find-element-from-shadow-root","examples":[["// get shadow root","const element = await browser.findElement(\'xpath\', \'//div\')","const shadowRoot = await browser.getElementShadowRoot("," element[\'element-6066-11e4-a52e-4f735466cecf\']",")","// fetch element within that shadow root","const elementRef = await browser.findElementFromShadowRoot("," shadowRoot[\'shadow-6066-11e4-a52e-4f735466cecf\'],"," \'xpath\',"," \'//div\'",")"]],"variables":[{"name":"shadowId","description":"element id of a shadow root element"}],"parameters":[{"name":"using","type":"string","description":"a valid element location strategy","required":true},{"name":"value","type":"string","description":"the actual selector that will be used to find an element","required":true}],"returns":{"type":"object","name":"element","description":"A JSON representation of an element shadow object, e.g. `{ \'element-6066-11e4-a52e-4f735466cecf\': \'ELEMENT_1\' }`."}}},"/session/:sessionId/elements":{"POST":{"command":"findElements","description":"The Find Elements command is used to find elements in the current browsing context that can be used for future commands. This command returns array of JSON representation of the elements that can be passed to $ command to transform the reference to an extended WebdriverIO element (See findElement).","ref":"https://w3c.github.io/webdriver/#dfn-find-elements","parameters":[{"name":"using","type":"string","description":"a valid element location strategy","required":true},{"name":"value","type":"string","description":"the actual selector that will be used to find an element","required":true}],"returns":{"type":"object[]","name":"elements","description":"A (possibly empty) JSON list of representations of an element object, e.g. `[{ \'element-6066-11e4-a52e-4f735466cecf\': \'ELEMENT_1\' }]`."}}},"/session/:sessionId/shadow/:shadowId/elements":{"POST":{"command":"findElementsFromShadowRoot","description":"The Find Elements command is used to find elements within the shadow root of an element that can be used for future commands. This command returns array of JSON representation of the elements that can be passed to $ command to transform the reference to an extended WebdriverIO element (See findElement).","ref":"https://w3c.github.io/webdriver/#find-elements-from-shadow-root","variables":[{"name":"shadowId","description":"element id of a shadow root element"}],"parameters":[{"name":"using","type":"string","description":"a valid element location strategy","required":true},{"name":"value","type":"string","description":"the actual selector that will be used to find an element","required":true}],"examples":[["// get shadow root","const element = await browser.findElement(\'xpath\', \'//div\')","const shadowRoot = await browser.getElementShadowRoot("," element[\'element-6066-11e4-a52e-4f735466cecf\']",")","// fetch elements within that shadow root","const elementRef = await browser.findElementsFromShadowRoot("," shadowRoot[\'shadow-6066-11e4-a52e-4f735466cecf\'],"," \'xpath\',"," \'//div\'",")"]],"returns":{"type":"object[]","name":"elements","description":"A (possibly empty) JSON list of representations of an element object, e.g. `{ \'element-6066-11e4-a52e-4f735466cecf\': \'ELEMENT_1\' }`."}}},"/session/:sessionId/element/:elementId/element":{"POST":{"command":"findElementFromElement","description":"The Find Element From Element command is used to find an element from a web element in the current browsing context that can be used for future commands. This command returns JSON representation of the element that can be passed to $ command to transform the reference to an extended WebdriverIO element (See findElement).","ref":"https://w3c.github.io/webdriver/#dfn-find-element-from-element","variables":[{"name":"elementId","description":"the id of an element returned in a previous call to Find Element(s)"}],"parameters":[{"name":"using","type":"string","description":"a valid element location strategy","required":true},{"name":"value","type":"string","description":"the actual selector that will be used to find an element","required":true}],"returns":{"type":"object","name":"element","description":"A JSON representation of an element object, e.g. `{ \'element-6066-11e4-a52e-4f735466cecf\': \'ELEMENT_1\' }`."}}},"/session/:sessionId/element/:elementId/elements":{"POST":{"command":"findElementsFromElement","description":"The Find Elements From Element command is used to find elements from a web element in the current browsing context that can be used for future commands. This command returns array of JSON representation of the elements that can be passed to $ command to transform the reference to an extended WebdriverIO element (See findElement).","ref":"https://w3c.github.io/webdriver/#dfn-find-elements-from-element","variables":[{"name":"elementId","description":"the id of an element returned in a previous call to Find Element(s)"}],"parameters":[{"name":"using","type":"string","description":"a valid element location strategy","required":true},{"name":"value","type":"string","description":"the actual selector that will be used to find an element","required":true}],"returns":{"type":"object[]","name":"elements","description":"A (possibly empty) JSON list of representations of an element object, e.g. `[{ \'element-6066-11e4-a52e-4f735466cecf\': \'ELEMENT_1\' }]`."}}},"/session/:sessionId/element/:elementId/shadow":{"GET":{"command":"getElementShadowRoot","description":"Get the shadow root object of an element. The result object can be used to fetch elements within this shadow root using e.g. findElementFromShadowRoots or findElementsFromShadowRoots.","ref":"https://w3c.github.io/webdriver/#dfn-get-active-element","variables":[{"name":"elementId","description":"the id of an element returned in a previous call to Find Element(s)"}],"parameters":[],"returns":{"type":"string","name":"element","description":"A JSON representation of an element shadow root, e.g. `{ \'shadow-6066-11e4-a52e-4f735466cecf\': \'ELEMENT_1\' }`."}}},"/session/:sessionId/element/active":{"GET":{"command":"getActiveElement","description":"Get Active Element returns the active element of the current browsing context’s document element. This command returns JSON representation of the element that can be passed to $ command to transform the reference to an extended WebdriverIO element (See findElement).","ref":"https://w3c.github.io/webdriver/#dfn-get-active-element","parameters":[],"returns":{"type":"string","name":"element","description":"A JSON representation of an element object, e.g. `{ \'element-6066-11e4-a52e-4f735466cecf\': \'ELEMENT_1\' }`."}}},"/session/:sessionId/element/:elementId/selected":{"GET":{"command":"isElementSelected","description":"Is Element Selected determines if the referenced element is selected or not. This operation only makes sense on input elements of the Checkbox- and Radio Button states, or option elements.","ref":"https://w3c.github.io/webdriver/#dfn-is-element-selected","variables":[{"name":"elementId","description":"the id of an element returned in a previous call to Find Element(s)"}],"parameters":[],"returns":{"type":"Boolean","name":"isSelected","description":"`true` or `false` based on the selected state."}}},"/session/:sessionId/element/:elementId/displayed":{"GET":{"command":"isElementDisplayed","description":"Is Element Displayed determines the visibility of an element which is guided by what is perceptually visible to the human eye. In this context, an element\'s displayedness does not relate to the `visibility` or `display` style properties.","ref":"https://w3c.github.io/webdriver/#element-displayedness","variables":[{"name":"elementId","description":"the id of an element returned in a previous call to Find Element(s)"}],"parameters":[],"returns":{"type":"Boolean","name":"isDisplayed","description":"`true` or `false` based on the visible state."}}},"/session/:sessionId/element/:elementId/attribute/:name":{"GET":{"command":"getElementAttribute","description":"The Get Element Attribute command will return the attribute of a web element.","ref":"https://w3c.github.io/webdriver/#dfn-get-element-attribute","variables":[{"name":"elementId","description":"the id of an element returned in a previous call to Find Element(s)"},{"name":"name","description":"name of the attribute value to retrieve"}],"parameters":[],"returns":{"type":"string","name":"attribute","description":"The named attribute of the element."}}},"/session/:sessionId/element/:elementId/property/:name":{"GET":{"command":"getElementProperty","description":"The Get Element Property command will return the result of getting a property of an element.","ref":"https://w3c.github.io/webdriver/#dfn-get-element-property","variables":[{"name":"elementId","description":"the id of an element returned in a previous call to Find Element(s)"},{"name":"name","description":"name of the attribute property to retrieve"}],"parameters":[],"returns":{"type":"string","name":"property","description":"The named property of the element, accessed by calling GetOwnProperty on the element object."}}},"/session/:sessionId/element/:elementId/css/:propertyName":{"GET":{"command":"getElementCSSValue","description":"The Get Element CSS Value command retrieves the computed value of the given CSS property of the given web element.","ref":"https://w3c.github.io/webdriver/#dfn-get-element-css-value","variables":[{"name":"elementId","description":"the id of an element returned in a previous call to Find Element(s)"},{"name":"propertyName","description":"name of the CSS property to retrieve"}],"parameters":[],"returns":{"type":"string","name":"cssValue","description":"The computed value of the parameter corresponding to property name from the element\'s style declarations (unless the document type is xml, in which case the return value is simply the empty string)."}}},"/session/:sessionId/element/:elementId/text":{"GET":{"command":"getElementText","description":"The Get Element Text command intends to return an element’s text \\"as rendered\\". An element\'s rendered text is also used for locating a elements by their link text and partial link text.","ref":"https://w3c.github.io/webdriver/#dfn-get-element-text","variables":[{"name":"elementId","description":"the id of an element returned in a previous call to Find Element(s)"}],"parameters":[],"returns":{"type":"string","name":"text","description":"The visible text of the element (including child elements), following the algorithm defined in the Selenium Atoms for [`bot.dom.getVisibleText`](https://github.com/SeleniumHQ/selenium/blob/e09e28f016c9f53196cf68d6f71991c5af4a35d4/javascript/atoms/dom.js#L981)."}}},"/session/:sessionId/element/:elementId/name":{"GET":{"command":"getElementTagName","description":"The Get Element Tag Name command returns the qualified element name of the given web element.","ref":"https://w3c.github.io/webdriver/#dfn-get-element-tag-name","variables":[{"name":"elementId","description":"the id of an element returned in a previous call to Find Element(s)"}],"parameters":[],"returns":{"type":"string","name":"text","description":"The tagName attribute of the element."}}},"/session/:sessionId/element/:elementId/rect":{"GET":{"command":"getElementRect","description":"The Get Element Rect command returns the dimensions and coordinates of the given web element.","ref":"https://w3c.github.io/webdriver/#dfn-get-element-rect","variables":[{"name":"elementId","description":"the id of an element returned in a previous call to Find Element(s)"}],"parameters":[],"returns":{"type":"Object","name":"elementRect","description":"A JSON object representing the position and bounding rect of the element."}}},"/session/:sessionId/element/:elementId/enabled":{"GET":{"command":"isElementEnabled","description":"Is Element Enabled determines if the referenced element is enabled or not. This operation only makes sense on form controls.","ref":"https://w3c.github.io/webdriver/#dfn-is-element-enabled","variables":[{"name":"elementId","description":"the id of an element returned in a previous call to Find Element(s)"}],"parameters":[],"returns":{"type":"Boolean","name":"isEnabled","description":"If the element is in an xml document, or is a disabled form control: `false`, otherwise, `true`."}}},"/session/:sessionId/element/:elementId/click":{"POST":{"command":"elementClick","description":"The Element Click command scrolls into view the element if it is not already pointer-interactable, and clicks its in-view center point. If the element\'s center point is obscured by another element, an element click intercepted error is returned. If the element is outside the viewport, an element not interactable error is returned.","ref":"https://w3c.github.io/webdriver/#dfn-element-click","variables":[{"name":"elementId","description":"the id of an element returned in a previous call to Find Element(s)"}],"parameters":[]}},"/session/:sessionId/element/:elementId/clear":{"POST":{"command":"elementClear","description":"The Element Clear command scrolls into view an editable or resettable element and then attempts to clear its selected files or text content.","ref":"https://w3c.github.io/webdriver/#dfn-element-clear","variables":[{"name":"elementId","description":"the id of an element returned in a previous call to Find Element(s)"}],"parameters":[]}},"/session/:sessionId/element/:elementId/value":{"POST":{"command":"elementSendKeys","description":"The Element Send Keys command scrolls into view the form control element and then sends the provided keys to the element. In case the element is not keyboard-interactable, an element not interactable error is returned.<br /><br />The key input state used for input may be cleared mid-way through \\"typing\\" by sending the null key, which is U+E000 (NULL).","ref":"https://w3c.github.io/webdriver/#dfn-element-send-keys","variables":[{"name":"elementId","description":"the id of an element returned in a previous call to Find Element(s)"}],"parameters":[{"name":"text","type":"string","description":"string to send as keystrokes to the element","required":true}]}},"/session/:sessionId/source":{"GET":{"command":"getPageSource","description":"The Get Page Source command returns a string serialization of the DOM of the current browsing context active document.","ref":"https://w3c.github.io/webdriver/#dfn-get-page-source","parameters":[],"returns":{"type":"string","name":"pageSource","description":"the DOM of the current browsing context active document"}}},"/session/:sessionId/execute/sync":{"POST":{"command":"executeScript","description":"The Execute Script command executes a JavaScript function in the context of the current browsing context and returns the return value of the function.","ref":"https://w3c.github.io/webdriver/#dfn-execute-script","parameters":[{"name":"script","type":"string","description":"a string, the Javascript function body you want executed","required":true},{"name":"args","type":"(string|object|number|boolean|undefined)[]","description":"an array of JSON values which will be deserialized and passed as arguments to your function","required":true}],"returns":{"type":"*","name":"result","description":"Either the return value of your script, the fulfillment of the Promise returned by your script, or the error which was the reason for your script\'s returned Promise\'s rejection."}}},"/session/:sessionId/execute/async":{"POST":{"command":"executeAsyncScript","description":"The Execute Async Script command causes JavaScript to execute as an anonymous function. Unlike the Execute Script command, the result of the function is ignored. Instead an additional argument is provided as the final argument to the function. This is a function that, when called, returns its first argument as the response.","ref":"https://w3c.github.io/webdriver/#dfn-execute-async-script","parameters":[{"name":"script","type":"string","description":"a string, the Javascript function body you want executed","required":true},{"name":"args","type":"(string|object|number|boolean|undefined)[]","description":"an array of JSON values which will be deserialized and passed as arguments to your function","required":true}],"returns":{"type":"*","name":"result","description":"Either the return value of your script, the fulfillment of the Promise returned by your script, or the error which was the reason for your script\'s returned Promise\'s rejection."}}},"/session/:sessionId/cookie":{"GET":{"command":"getAllCookies","description":"The Get All Cookies command returns all cookies associated with the address of the current browsing context’s active document.","ref":"https://w3c.github.io/webdriver/#dfn-get-all-cookies","parameters":[],"returns":{"type":"Object[]","name":"cookies","description":"A list of serialized cookies. Each serialized cookie has a number of optional fields which may or may not be returned in addition to `name` and `value`."}},"POST":{"command":"addCookie","description":"The Add Cookie command adds a single cookie to the cookie store associated with the active document\'s address.","ref":"https://w3c.github.io/webdriver/#dfn-adding-a-cookie","parameters":[{"name":"cookie","type":"object","description":"A JSON object representing a cookie. It must have at least the name and value fields and could have more, including expiry-time and so on","required":true}]},"DELETE":{"command":"deleteAllCookies","description":"The Delete All Cookies command allows deletion of all cookies associated with the active document\'s address.","ref":"https://w3c.github.io/webdriver/#dfn-delete-all-cookies","parameters":[]}},"/session/:sessionId/cookie/:name":{"GET":{"command":"getNamedCookie","description":"The Get Named Cookie command returns the cookie with the requested name from the associated cookies in the cookie store of the current browsing context\'s active document. If no cookie is found, a no such cookie error is returned.","ref":"https://w3c.github.io/webdriver/#dfn-get-named-cookie","variables":[{"name":"name","description":"name of the cookie to retrieve"}],"parameters":[],"returns":{"type":"Object","name":"cookie","description":"A serialized cookie, with name and value fields. There are a number of optional fields like `path`, `domain`, and `expiry-time` which may also be present."}},"DELETE":{"command":"deleteCookie","description":"The Delete Cookie command allows you to delete either a single cookie by parameter name, or all the cookies associated with the active document\'s address if name is undefined.","ref":"https://w3c.github.io/webdriver/#dfn-delete-cookie","variables":[{"name":"name","description":"name of the cookie to delete"}],"parameters":[]}},"/session/:sessionId/actions":{"POST":{"command":"performActions","description":"The Perform Actions command is used to execute complex user actions. See [spec](https://github.com/jlipps/simple-wd-spec#perform-actions) for more details.","ref":"https://w3c.github.io/webdriver/#dfn-perform-actions","parameters":[{"name":"actions","type":"object[]","description":"a list of objects, each of which represents an input source and its associated actions","required":true}]},"DELETE":{"command":"releaseActions","description":"The Release Actions command is used to release all the keys and pointer buttons that are currently depressed. This causes events to be fired as if the state was released by an explicit series of actions. It also clears all the internal state of the virtual devices.","ref":"https://w3c.github.io/webdriver/#dfn-release-actions","parameters":[]}},"/session/:sessionId/alert/dismiss":{"POST":{"command":"dismissAlert","description":"The Dismiss Alert command dismisses a simple dialog if present, otherwise error. A request to dismiss an alert user prompt, which may not necessarily have a dismiss button, has the same effect as accepting it.","ref":"https://w3c.github.io/webdriver/#dfn-dismiss-alert","parameters":[]}},"/session/:sessionId/alert/accept":{"POST":{"command":"acceptAlert","description":"The Accept Alert command accepts a simple dialog if present, otherwise error.","ref":"https://w3c.github.io/webdriver/#dfn-accept-alert","parameters":[]}},"/session/:sessionId/alert/text":{"GET":{"command":"getAlertText","description":"The Get Alert Text command returns the message of the current user prompt. If there is no current user prompt, it returns an error.","ref":"https://w3c.github.io/webdriver/#dfn-get-alert-text","parameters":[],"returns":{"type":"string","name":"alertText","description":"The message of the user prompt."}},"POST":{"command":"sendAlertText","description":"The Send Alert Text command sets the text field of a window.prompt user prompt to the given value.","ref":"https://w3c.github.io/webdriver/#dfn-send-alert-text","parameters":[{"name":"text","type":"string","description":"string to set the prompt to","required":true}]}},"/session/:sessionId/screenshot":{"GET":{"command":"takeScreenshot","description":"The Take Screenshot command takes a screenshot of the top-level browsing context\'s viewport.","ref":"https://w3c.github.io/webdriver/#dfn-take-screenshot","parameters":[],"returns":{"type":"string","name":"screenshot","description":"The base64-encoded PNG image data comprising the screenshot of the initial viewport."}}},"/session/:sessionId/element/:elementId/screenshot":{"GET":{"command":"takeElementScreenshot","description":"The Take Element Screenshot command takes a screenshot of the visible region encompassed by the bounding rectangle of an element.","ref":"https://w3c.github.io/webdriver/#dfn-take-element-screenshot","variables":[{"name":"elementId","description":"the id of an element returned in a previous call to Find Element(s)"}],"parameters":[{"name":"scroll","type":"boolean","description":"scroll into view the element. Default: true","required":false}],"returns":{"type":"string","name":"screenshot","description":"The base64-encoded PNG image data comprising the screenshot of the visible region of an element’s bounding rectangle after it has been scrolled into view."}}},"/session/:sessionId/element/:elementId/computedrole":{"GET":{"command":"getElementComputedRole","description":"Get the computed WAI-ARIA role of an element.","ref":"https://w3c.github.io/webdriver/#get-computed-role","variables":[{"name":"elementId","description":"the id of an element returned in a previous call to Find Element(s)"}],"parameters":[],"returns":{"type":"string","name":"role","description":"The result of computing the WAI-ARIA role of element."}}},"/session/:sessionId/element/:elementId/computedlabel":{"GET":{"command":"getElementComputedLabel","description":"Get the accessible name of the element.","ref":"https://w3c.github.io/webdriver/#get-computed-label","variables":[{"name":"elementId","description":"the id of an element returned in a previous call to Find Element(s)"}],"parameters":[],"returns":{"type":"string","name":"label","description":"The result of a Accessible Name and Description Computation for the Accessible Name of the element."}}},"/session/:sessionId/permissions":{"POST":{"command":"setPermissions","description":"Simulates user modification of a PermissionDescriptor\'s permission state. __Note:__ this feature has not landed in all browsers yet.","ref":"https://w3c.github.io/permissions/#set-permission-command","examples":[["// set midi permissions","browser.setPermissions({"," name: \'midi\',"," sysex; true",", \'granted\'); // can be also \'denied\' or \'prompt\'"]],"parameters":[{"name":"descriptor","type":"object","description":"Each powerful feature has one or more aspects that websites can request permission to access. To describe these aspects, each feature defines a subtype of PermissionDescriptor to be its permission descriptor type. __Note:__ this feature has not landed in all browsers yet.","required":true},{"name":"state","type":"string","description":"Determines whether permission is granted, denied or prompted.","required":true},{"name":"oneRealm","type":"boolean","description":"Whether or not to apply permissions to all execution contexts.","required":false}]}},"/session/:sessionId/reporting/generate_test_report":{"POST":{"command":"generateTestReport","description":"Generates a report for testing. Extension for [Reporting API](https://developers.google.com/web/updates/2018/09/reportingapi). __Note:__ this feature has not landed in all browsers yet.","ref":"https://w3c.github.io/reporting/#automation","parameters":[{"name":"message","type":"string","description":"Message to be displayed in the report.","required":true},{"name":"group","type":"string","description":"Specifies the endpoint group to deliver the report to."}]}},"/session/:sessionId/sensor":{"POST":{"command":"createMockSensor","description":"Creates a mock sensor to emulate sensors like Ambient Light Sensor. __Note:__ this feature has not landed in all browsers yet.","ref":"https://w3c.github.io/sensors/#create-mock-sensor-command","parameters":[{"name":"mockSensorType","type":"string","description":"Type of sensor API to mock, e.g. \'ambient-light\'","required":true},{"name":"maxSamplingFrequency","type":"number","description":"A double representing frequency in Hz that is used to set maximum supported sampling frequency for the associated mock sensor."},{"name":"minSamplingFrequency","type":"number","description":"A double representing frequency in Hz that is used to set minimum supported sampling frequency for the associated mock sensor."}]}},"/session/:sessionId/sensor/:type":{"GET":{"command":"getMockSensor","description":"Retrieves information about a given type of mock sensor. __Note:__ this feature has not landed in all browsers yet.","ref":"https://w3c.github.io/sensors/#get-mock-sensor-command","variables":[{"name":"type","description":"Mock sensor type to retrieve information from."}],"parameters":[],"returns":{"type":"object","name":"sensorReading","description":"Values of the mock sensor reading."}},"POST":{"command":"updateMockSensor","description":"Updates the mock sensor type. __Note:__ this feature has not landed in all browsers yet.","ref":"https://w3c.github.io/sensors/#update-mock-sensor-reading-command","variables":[{"name":"type","description":"Mock sensor type to update information for."}],"parameters":[{"name":"mockSensorType","type":"string","description":"Type of sensor API to mock, e.g. \'ambient-light\'","required":true},{"name":"maxSamplingFrequency","type":"number","description":"A double representing frequency in Hz that is used to set maximum supported sampling frequency for the associated mock sensor."},{"name":"minSamplingFrequency","type":"number","description":"A double representing frequency in Hz that is used to set minimum supported sampling frequency for the associated mock sensor."}]},"DELETE":{"command":"deleteMockSensor","description":"The Delete Session command closes any top-level browsing contexts associated with the current session, terminates the connection, and finally closes the current session. __Note:__ this feature has not landed in all browsers yet.","ref":"https://w3c.github.io/sensors/#delete-mock-sensor-command","variables":[{"name":"type","description":"Mock sensor type to delete."}],"parameters":[]}},"/session/:sessionId/time_zone":{"POST":{"command":"setTimeZone","description":"Simulates the changing of a time zone for the purposes of testing. __Note:__ this feature has not landed in all browsers yet.","ref":"https://w3c.github.io/sensors/#create-mock-sensor-command","parameters":[{"name":"time_zone","type":"string","description":"Name of the timezone, e.g. Asia/Tokyo","required":true}]}},"/session/:sessionId/webauthn/authenticator":{"POST":{"command":"addVirtualAuthenticator","description":"Creates a software [Virtual Authenticator](https://www.w3.org/TR/webauthn-2/#virtual-authenticators).","ref":"https://www.w3.org/TR/webauthn-2/#sctn-automation-add-virtual-authenticator","parameters":[{"name":"protocol","type":"string","description":"Valid values: \'ctap1/u2f\', \'ctap2\', \'ctap2_1\'","required":false},{"name":"transport","type":"string","description":"Valid values: \'usb\', \'nfc\', \'ble\' or \'internal\'","required":false},{"name":"hasResidentKey","type":"boolean","description":"","required":false},{"name":"hasUserVerification","type":"boolean","description":"","required":false},{"name":"isUserConsenting","type":"boolean","description":"","required":false},{"name":"isUserVerified","type":"boolean","description":"","required":false},{"name":"extensions","type":"string[]","description":"","required":false},{"name":"uvm","type":"object[]","description":"","required":false}]}},"/session/:sessionId/webauthn/authenticator/:authenticatorId":{"DELETE":{"command":"removeVirtualAuthenticator","description":"Removes a previously created Virtual Authenticator.","ref":"https://www.w3.org/TR/webauthn-2/#sctn-automation-remove-virtual-authenticator","variables":[{"name":"authenticatorId","description":"id of authenticator"}],"parameters":[]}},"/session/:sessionId/webauthn/authenticator/:authenticatorId/credential":{"POST":{"command":"addCredential","description":"Injects a Public Key Credential Source into an existing Virtual Authenticator.","ref":"https://www.w3.org/TR/webauthn-2/#sctn-automation-add-credential","parameters":[{"name":"credentialId","type":"string","description":"The Credential ID encoded using Base64url Encoding.","required":true},{"name":"isResidentCredential","type":"boolean","description":"If set to true, a client-side discoverable credential is created. If set to false, a server-side credential is created instead.","required":true},{"name":"rpId","type":"string","description":"The Relying Party ID the credential is scoped to.","required":true},{"name":"privateKey","type":"string","description":"An asymmetric key package containing a single private key per [RFC5958], encoded using Base64url Encoding.","required":true},{"name":"userHandle","type":"string","description":"The userHandle associated to the credential encoded using Base64url Encoding. This property may not be defined.","required":true},{"name":"signCount","type":"number","description":"The initial value for a signature counter associated to the public key credential source.","required":true},{"name":"largeBlob","type":"string","description":"The large, per-credential blob associated to the public key credential source, encoded using Base64url Encoding. This property may not be defined.","required":true}]}},"/session/:sessionId/webauthn/authenticator/:authenticatorId/credentials":{"GET":{"command":"getCredentials","description":"Returns one Credential Parameters object for every Public Key Credential Source stored in a Virtual Authenticator, regardless of whether they were stored using Add Credential or `navigator.credentials.create()`.","ref":"https://www.w3.org/TR/webauthn-2/#sctn-automation-get-credentials","variables":[{"name":"authenticatorId","description":"id of authenticator"}],"parameters":[]},"DELETE":{"command":"removeAllCredentials","description":"Removes all Public Key Credential Sources stored on a Virtual Authenticator.","ref":"https://www.w3.org/TR/webauthn-2/#sctn-automation-remove-all-credentials","variables":[{"name":"authenticatorId","description":"id of authenticator"}],"parameters":[]}},"/session/:sessionId/webauthn/authenticator/:authenticatorId/credentials/:credentialId":{"DELETE":{"command":"removeCredential","description":"Removes a Public Key Credential Source stored on a Virtual Authenticator.","ref":"https://www.w3.org/TR/webauthn-2/#sctn-automation-remove-credential","variables":[{"name":"authenticatorId","description":"id of authenticator"},{"name":"credentialId","description":"id of credential"}],"parameters":[]}},"/session/:sessionId/webauthn/authenticator/:authenticatorId/credentials/:credentialId/uv":{"POST":{"command":"setUserVerified","description":"The Set User Verified extension command sets the isUserVerified property on the Virtual Authenticator.","ref":"https://www.w3.org/TR/webauthn-2/#sctn-automation-set-user-verified","variables":[{"name":"authenticatorId","description":"id of authenticator"},{"name":"credentialId","description":"id of credential"}],"parameters":[]}}}')})),P.register("iMZCy",(function(e,t){e.exports=JSON.parse('{"/session/:sessionId/context":{"GET":{"command":"getContext","ref":"https://github.com/SeleniumHQ/mobile-spec/blob/master/spec-draft.md#webviews-and-other-contexts","parameters":[],"returns":{"type":"Context","name":"context","description":"a string representing the current context or null representing \'no context\'"}},"POST":{"command":"switchContext","ref":"https://github.com/SeleniumHQ/mobile-spec/blob/master/spec-draft.md#webviews-and-other-contexts","parameters":[{"name":"name","type":"string","description":"a string representing an available context","required":true}]}},"/session/:sessionId/contexts":{"GET":{"command":"getContexts","ref":"https://github.com/SeleniumHQ/mobile-spec/blob/master/spec-draft.md#webviews-and-other-contexts","parameters":[],"returns":{"type":"Context[]","name":"contexts","description":"an array of strings representing available contexts, e.g. \'WEBVIEW\', or \'NATIVE\'"}}},"/session/:sessionId/element/:elementId/pageIndex":{"GET":{"command":"getPageIndex","ref":"https://github.com/appium/appium-base-driver/blob/master/docs/mjsonwp/protocol-methods.md#mobile-json-wire-protocol-endpoints","parameters":[],"returns":{"type":"string","name":"pageIndex"}}},"/session/:sessionId/network_connection":{"GET":{"command":"getNetworkConnection","ref":"https://github.com/SeleniumHQ/mobile-spec/blob/master/spec-draft.md#device-modes","parameters":[],"returns":{"type":"number","name":"connectionType","description":"see http://appium.io/docs/en/writing-running-appium/other/network-connection/"}},"POST":{"command":"setNetworkConnection","ref":"https://github.com/SeleniumHQ/mobile-spec/blob/master/spec-draft.md#device-modes","parameters":[{"name":"type","type":"number","description":"a bit mask that should be translated to an integer value when serialized","required":true}]}},"/session/:sessionId/touch/perform":{"GET":{"command":"touchPerform","ref":"https://github.com/SeleniumHQ/mobile-spec/blob/master/spec-draft.md#touch-gestures","parameters":[{"name":"actions","type":"object[]","description":"a list of objects, each of which represents an input source and its associated actions","required":true}]}},"/session/:sessionId/touch/multi/perform":{"GET":{"command":"multiTouchPerform","ref":"https://github.com/SeleniumHQ/mobile-spec/blob/master/spec-draft.md#touch-gestures","parameters":[{"name":"actions","type":"object[]","description":"a list of objects, each of which represents an input source and its associated actions","required":true},{"name":"elementId","type":"object[]","description":"the id of an element returned in a previous call to Find Element(s)"}]}},"/session/:sessionId/receive_async_response":{"POST":{"command":"receiveAsyncResponse","ref":"https://github.com/appium/appium-base-driver/blob/master/docs/mjsonwp/protocol-methods.md#mobile-json-wire-protocol-endpoints","parameters":[{"name":"status","type":"string","description":"the expected status of the response","required":true},{"name":"value","type":"string","description":"the expected value of the response","required":true}]}}}')})),P.register("bLzJe",(function(e,t){e.exports=JSON.parse('{"/status":{"GET":{"command":"status","description":"Query the server\'s current status. The server should respond with a general \\"HTTP 200 OK\\" response if it is alive and accepting commands. The response body should be a JSON object describing the state of the server. All server implementations should return two basic objects describing the server\'s current platform and when the server was built. All fields are optional; if omitted, the client should assume the value is unknown. Furthermore, server implementations may include additional fields not listed here.","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#status","parameters":[],"returns":{"type":"Object","name":"status","description":"An object describing the general status of the server."}}},"/session":{"POST":{"command":"newSession","description":"Create a new session. The server should attempt to create a session that most closely matches the desired and required capabilities. Required capabilities have higher priority than desired capabilities and must be set for the session to be created.","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#session-1","parameters":[{"name":"desiredCapabilities","type":"object","description":"An object describing the session\'s desired capabilities.","required":true},{"name":"requiredCapabilities","type":"object","description":"An object describing the session\'s required capabilities (Optional)."}],"returns":{"type":"Object","name":"capabilities","description":"An object describing the session\'s capabilities."}}},"/sessions":{"GET":{"command":"getSessions","description":"Returns a list of the currently active sessions. Each session will be returned as a list of JSON objects containing `id` and `capabilities`.","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessions","parameters":[],"returns":{"type":"Object[]","name":"capabilities","description":"A list of the currently active sessions."}}},"/session/:sessionId":{"GET":{"command":"getSession","description":"Retrieve the capabilities of the specified session.","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#get-sessionsessionid","parameters":[],"returns":{"type":"Object","name":"capabilities","description":"An object describing the session\'s capabilities."}},"DELETE":{"command":"deleteSession","description":"Delete the session.","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#delete-sessionsessionid","parameters":[]}},"/session/:sessionId/timeouts":{"POST":{"command":"setTimeouts","description":"Configure the amount of time that a particular type of operation can execute for before they are aborted and a |Timeout| error is returned to the client.","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidtimeouts","parameters":[{"name":"type","type":"string","description":"The type of operation to set the timeout for. Valid values are: \\"script\\" for script timeouts, \\"implicit\\" for modifying the implicit wait timeout and \\"page load\\" for setting a page load timeout.","required":true},{"name":"ms","type":"number","description":"The amount of time, in milliseconds, that time-limited commands are permitted to run","required":true}]}},"/session/:sessionId/timeouts/async_script":{"POST":{"command":"setAsyncTimeout","description":"Set the amount of time, in milliseconds, that asynchronous scripts executed by `/session/:sessionId/execute_async` are permitted to run before they are aborted and a `Timeout` error is returned to the client.","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidtimeoutsasync_script","parameters":[{"name":"ms","type":"number","description":"The amount of time, in milliseconds, that time-limited commands are permitted to run","required":true}]}},"/session/:sessionId/timeouts/implicit_wait":{"POST":{"command":"setImplicitTimeout","description":"Set the amount of time the driver should wait when searching for elements. When searching for a single element, the driver should poll the page until an element is found or the timeout expires, whichever occurs first. When searching for multiple elements, the driver should poll the page until at least one element is found or the timeout expires, at which point it should return an empty list. If this command is never sent, the driver should default to an implicit wait of 0ms.","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidtimeoutsimplicit_wait","parameters":[{"name":"ms","type":"number","description":"The amount of time, in milliseconds, to wait on an element.","required":true}]}},"/session/:sessionId/url":{"GET":{"command":"getUrl","description":"Retrieve the URL of the current page.","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#get-sessionsessionidurl","parameters":[],"returns":{"type":"String","name":"url","description":"The current URL."}},"POST":{"command":"navigateTo","description":"Navigate to a new URL.","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#post-sessionsessionidurl","parameters":[{"name":"url","type":"string","description":"The URL to navigate to.","required":true}]}},"/session/:sessionId/back":{"POST":{"command":"back","description":"Navigate backwards in the browser history, if possible.","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidback","parameters":[]}},"/session/:sessionId/forward":{"POST":{"command":"forward","description":"Navigate forwards in the browser history, if possible.","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidforward","parameters":[]}},"/session/:sessionId/refresh":{"POST":{"command":"refresh","description":"Refresh the current page.","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidrefresh","parameters":[]}},"/session/:sessionId/title":{"GET":{"command":"getTitle","description":"Get the current page title.","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidtitle","parameters":[],"returns":{"type":"String","name":"title","description":"The current page title."}}},"/session/:sessionId/window_handle":{"GET":{"command":"getWindowHandle","description":"Retrieve the current window handle.","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidwindow_handle","parameters":[],"returns":{"type":"String","name":"windowHandle","description":"The current window handle."}}},"/session/:sessionId/window_handles":{"GET":{"command":"getWindowHandles","description":"Retrieve the list of all window handles available to the session.","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidwindow_handles","parameters":[],"returns":{"type":"String[]","name":"windowHandles","description":"A list of window handles."}}},"/session/:sessionId/window":{"DELETE":{"command":"closeWindow","description":"Close the current window.","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#delete-sessionsessionidwindow","parameters":[]},"POST":{"command":"switchToWindow","description":"Change focus to another window. The window to change focus to may be specified by its server assigned window handle, or by the value of its `name` attribute.","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#post-sessionsessionidwindow","parameters":[{"name":"name","type":"string","description":"The window to change focus to","required":true}]}},"/session/:sessionId/frame":{"POST":{"command":"switchToFrame","description":"Change focus to another frame on the page. If the frame `id` is `null`, the server should switch to the page\'s default content.","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidframe","parameters":[{"name":"id","type":"(string|number|object|null)","description":"Identifier for the frame to change focus to","required":true}]}},"/session/:sessionId/frame/parent":{"POST":{"command":"switchToParentFrame","description":"Change focus to the parent context. If the current context is the top level browsing context, the context remains unchanged.","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidframeparent","parameters":[]}},"/session/:sessionId/window/current/position":{"GET":{"command":"getWindowPosition","description":"Get the position of the current focussed window.","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#get-sessionsessionidwindowwindowhandleposition","parameters":[],"returns":{"type":"Object","name":"positon","description":"The X and Y coordinates for the window, relative to the upper left corner of the screen."}},"POST":{"command":"setWindowPosition","description":"Change the position of the current focussed window.","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#post-sessionsessionidwindowwindowhandleposition","parameters":[{"name":"x","type":"number","description":"The X coordinate to position the window at, relative to the upper left corner of the screen.","required":true},{"name":"y","type":"number","description":"The Y coordinate to position the window at, relative to the upper left corner of the screen.","required":true}],"returns":{"type":"Object","name":"positon","description":"The X and Y coordinates for the window, relative to the upper left corner of the screen."}}},"/session/:sessionId/window/current/size":{"GET":{"command":"_getWindowSize","description":"Get the size of the current focused window.","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#get-sessionsessionidwindowwindowhandlesize","parameters":[],"returns":{"type":"Object","name":"size","description":"The size of the window."}},"POST":{"command":"_setWindowSize","description":"Change the size of the current focused window.","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#post-sessionsessionidwindowwindowhandlesize","parameters":[{"name":"width","type":"number","description":"the new window width","required":true},{"name":"height","type":"number","description":"the new window height","required":true}]}},"/session/:sessionId/window/current/maximize":{"POST":{"command":"maximizeWindow","description":"Maximize the current focused window if not already maximized.","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidwindowwindowhandlemaximize","parameters":[]}},"/session/:sessionId/element":{"POST":{"command":"findElement","description":"Search for an element on the page, starting from the document root. The located element will be returned as a WebElement JSON object. The table below lists the locator strategies that each server should support. Each locator must return the first matching element located in the DOM.","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidelement","parameters":[{"name":"using","type":"string","description":"the locator strategy to use","required":true},{"name":"value","type":"string","description":"the search target","required":true}],"returns":{"type":"object","name":"ELEMENT","description":"A WebElement JSON object for the located element."}}},"/session/:sessionId/elements":{"POST":{"command":"findElements","description":"Search for multiple elements on the page, starting from the document root. The located elements will be returned as a WebElement JSON objects. The table below lists the locator strategies that each server should support. Elements should be returned in the order located in the DOM.","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidelements","parameters":[{"name":"using","type":"string","description":"the locator strategy to use","required":true},{"name":"value","type":"string","description":"the search target","required":true}],"returns":{"type":"object[]","name":"ELEMENTS","description":"A list of WebElement JSON objects for the located elements."}}},"/session/:sessionId/element/:elementId/element":{"POST":{"command":"findElementFromElement","description":"Search for an element on the page, starting from the identified element. The located element will be returned as a WebElement JSON object. The table below lists the locator strategies that each server should support. Each locator must return the first matching element located in the DOM.","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidelementidelement","variables":[{"name":"elementId","description":"ID of the element to route the command to"}],"parameters":[{"name":"using","type":"string","description":"the locator strategy to use","required":true},{"name":"value","type":"string","description":"the search target","required":true}],"returns":{"type":"object","name":"ELEMENT","description":"A WebElement JSON object for the located element."}}},"/session/:sessionId/element/:elementId/elements":{"POST":{"command":"findElementsFromElement","description":"Search for multiple elements on the page, starting from the identified element. The located elements will be returned as a WebElement JSON objects. The table below lists the locator strategies that each server should support. Elements should be returned in the order located in the DOM.","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidelementidelements","variables":[{"name":"elementId","description":"ID of the element to route the command to"}],"parameters":[{"name":"using","type":"string","description":"the locator strategy to use","required":true},{"name":"value","type":"string","description":"the search target","required":true}],"returns":{"type":"object[]","name":"ELEMENTS","description":"A list of WebElement JSON objects for the located elements."}}},"/session/:sessionId/element/active":{"POST":{"command":"getActiveElement","description":"Get the element on the page that currently has focus. The element will be returned as a WebElement JSON object.","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidelementactive","parameters":[],"returns":{"type":"String","name":"ELEMENT","description":"A WebElement JSON object for the active element."}}},"/session/:sessionId/element/:elementId/selected":{"GET":{"command":"isElementSelected","description":"Determine if an `OPTION` element, or an `INPUT` element of type `checkbox` or `radiobutton` is currently selected.","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidelementidselected","variables":[{"name":"elementId","description":"ID of the element to route the command to"}],"parameters":[],"returns":{"type":"Boolean","name":"isSelected","description":"Whether the element is selected."}}},"/session/:sessionId/element/:elementId/displayed":{"GET":{"command":"isElementDisplayed","description":"Determine if an element is currently displayed.","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidelementiddisplayed","variables":[{"name":"elementId","description":"ID of the element to route the command to"}],"parameters":[],"returns":{"type":"Boolean","name":"isDisplayed","description":"Whether the element is displayed."}}},"/session/:sessionId/element/:elementId/attribute/:name":{"GET":{"command":"getElementAttribute","description":"Get the value of an element\'s attribute.","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidelementidattributename","variables":[{"name":"elementId","description":"ID of the element to route the command to"},{"name":"name","description":"name of the attribute value to retrieve"}],"parameters":[],"returns":{"type":"String|Null","name":"attribute","description":"The value of the attribute, or null if it is not set on the element."}}},"/session/:sessionId/element/:elementId/css/:propertyName":{"GET":{"command":"getElementCSSValue","description":"Query the value of an element\'s computed CSS property. The CSS property to query should be specified using the CSS property name, __not__ the JavaScript property name (e.g. `background-color` instead of `backgroundColor`).","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidelementidcsspropertyname","variables":[{"name":"elementId","description":"ID of the element to route the command to"},{"name":"propertyName","description":"name of the CSS property to retrieve"}],"parameters":[],"returns":{"type":"String","name":"propertyName","description":"The value of the specified CSS property."}}},"/session/:sessionId/element/:elementId/text":{"GET":{"command":"getElementText","description":"Returns the visible text for the element.","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidelementidtext","variables":[{"name":"elementId","description":"ID of the element to route the command to"}],"parameters":[],"returns":{"type":"String","name":"text","description":"The visible text of the element."}}},"/session/:sessionId/element/:elementId/name":{"GET":{"command":"getElementTagName","description":"Query for an element\'s tag name.","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidelementidname","variables":[{"name":"elementId","description":"ID of the element to route the command to"}],"parameters":[],"returns":{"type":"String","name":"tagName","description":"The element\'s tag name, as a lowercase string."}}},"/session/:sessionId/element/:elementId/location":{"GET":{"command":"getElementLocation","description":"Determine an element\'s location on the page. The point `(0, 0)` refers to the upper-left corner of the page. The element\'s coordinates are returned as a JSON object with `x` and `y` properties.","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidelementidlocation","variables":[{"name":"elementId","description":"ID of the element to route the command to"}],"parameters":[],"returns":{"type":"Object","name":"location","description":"The X and Y coordinates for the element on the page."}}},"/session/:sessionId/element/:elementId/location_in_view":{"GET":{"command":"getElementLocationInView","description":"Determine an element\'s location on the screen once it has been scrolled into view.<br /><br />__Note:__ This is considered an internal command and should only be used to determine an element\'s location for correctly generating native events.","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidelementidlocation_in_view","variables":[{"name":"elementId","description":"ID of the element to route the command to"}],"parameters":[],"returns":{"type":"Object","name":"location","description":"The X and Y coordinates for the element on the page."}}},"/session/:sessionId/element/:elementId/size":{"GET":{"command":"getElementSize","description":"Determine an element\'s size in pixels. The size will be returned as a JSON object with `width` and `height` properties.","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidelementidsize","variables":[{"name":"elementId","description":"ID of the element to route the command to"}],"parameters":[],"returns":{"type":"Object","name":"size","description":"The width and height of the element, in pixels."}}},"/session/:sessionId/element/:elementId/enabled":{"GET":{"command":"isElementEnabled","description":"Determine if an element is currently enabled.","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidelementidenabled","variables":[{"name":"elementId","description":"ID of the element to route the command to"}],"parameters":[],"returns":{"type":"Boolean","name":"isEnabled","description":"Whether the element is enabled."}}},"/session/:sessionId/element/:elementId/click":{"POST":{"command":"elementClick","description":"Click any mouse button (at the coordinates set by the last moveto command). Note that calling this command after calling buttondown and before calling button up (or any out-of-order interactions sequence) will yield undefined behaviour).","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidelementidclick","variables":[{"name":"elementId","description":"ID of the element to route the command to"}],"parameters":[]}},"/session/:sessionId/element/:elementId/equals/:otherId":{"GET":{"command":"elementEquals","description":"Compare elements with each other.","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidelementidequalsother","variables":[{"name":"elementId","description":"ID of the element to route the command to"},{"name":"otherElementId","description":"ID of the element to compare against"}],"parameters":[],"returns":{"type":"Boolean","name":"isEqual","description":"Whether the two IDs refer to the same element."}}},"/session/:sessionId/element/:elementId/submit":{"POST":{"command":"elementSubmit","description":"","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidelementidsubmit","variables":[{"name":"elementId","description":"ID of the form element to be submitted"}],"parameters":[]}},"/session/:sessionId/element/:elementId/clear":{"POST":{"command":"elementClear","description":"","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidelementidclear","variables":[{"name":"elementId","description":"ID of the element to route the command to"}],"parameters":[]}},"/session/:sessionId/element/:elementId/value":{"POST":{"command":"elementSendKeys","description":"","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidelementidvalue","variables":[{"name":"elementId","description":"ID of the element to route the command to"}],"parameters":[{"name":"value","type":"string[]","description":"The sequence of keys to type. An array must be provided.","required":true}]}},"/session/:sessionId/keys":{"POST":{"command":"sendKeys","description":"","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidkeys","parameters":[{"name":"value","type":"string[]","description":"The sequence of keys to type. An array must be provided.","required":true}]}},"/session/:sessionId/source":{"GET":{"command":"getPageSource","description":"","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidsource","parameters":[],"returns":{"type":"String","name":"source","description":"The current page source."}}},"/session/:sessionId/execute":{"POST":{"command":"executeScript","description":"","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidexecute","parameters":[{"name":"script","type":"string","description":"the script to execute","required":true},{"name":"args","type":"(string|object|number|boolean|undefined)[]","description":"the script arguments","required":false}],"returns":{"type":"*","name":"result","description":"The script result."}}},"/session/:sessionId/execute_async":{"POST":{"command":"executeAsyncScript","description":"","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidexecute_async","parameters":[{"name":"script","type":"string","description":"the script to execute","required":true},{"name":"args","type":"(string|object|number|boolean|undefined)[]","description":"the script arguments","required":true}],"returns":{"type":"*","name":"result","description":"The script result."}}},"/session/:sessionId/cookie":{"GET":{"command":"getAllCookies","description":"","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#get-sessionsessionidcookie","parameters":[],"returns":{"type":"Object[]","name":"cookies","description":"A list of cookies."}},"POST":{"command":"addCookie","description":"","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#post-sessionsessionidcookie","parameters":[{"name":"cookie","type":"object","description":"A JSON object representing a cookie. It must have at least the name and value fields and could have more, including expiry-time and so on","required":true}]},"DELETE":{"command":"deleteAllCookies","description":"","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#delete-sessionsessionidcookie","parameters":[]}},"/session/:sessionId/cookie/:name":{"DELETE":{"command":"deleteCookie","description":"","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#delete-sessionsessionidcookiename","variables":[{"name":"name","description":"name of the cookie to retrieve"}],"parameters":[]}},"/session/:sessionId/dismiss_alert":{"POST":{"command":"dismissAlert","description":"","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessioniddismiss_alert","parameters":[]}},"/session/:sessionId/accept_alert":{"POST":{"command":"acceptAlert","description":"","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidaccept_alert","parameters":[]}},"/session/:sessionId/alert_text":{"GET":{"command":"getAlertText","description":"","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#get-sessionsessionidalert_text","parameters":[],"returns":{"type":"String","name":"alertText","description":"The text of the currently displayed alert."}},"POST":{"command":"sendAlertText","description":"","ref":"https://w3c.github.io/webdriver/webdriver-spec.html#dfn-send-alert-text","parameters":[{"name":"text","type":"string","description":"keystrokes to send to the prompt() dialog","required":true}]}},"/session/:sessionId/screenshot":{"GET":{"command":"takeScreenshot","description":"","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidscreenshot","parameters":[],"returns":{"type":"String","name":"screenshot","description":"screenshot as a base64 encoded PNG"}}},"/session/:sessionId/ime/available_engines":{"GET":{"command":"getAvailableEngines","description":"","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidimeavailable_engines","parameters":[],"returns":{"type":"String[]","name":"engines","description":"A list of available engines"}}},"/session/:sessionId/ime/active_engine":{"GET":{"command":"getActiveEngine","description":"","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidimeactive_engine","parameters":[],"returns":{"type":"String","name":"engine","description":"The name of the active IME engine"}}},"/session/:sessionId/ime/activated":{"GET":{"command":"isIMEActivated","description":"","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidimeactivated","parameters":[],"returns":{"type":"Boolean","name":"isActive","description":"true if IME input is available and currently active, false otherwise"}}},"/session/:sessionId/ime/deactivate":{"POST":{"command":"deactivateIME","description":"","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidimedeactivate","parameters":[]}},"/session/:sessionId/ime/activate":{"POST":{"command":"activateIME","description":"","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidimeactivate","parameters":[{"name":"engine","type":"string","description":"name of the engine to activate","required":true}]}},"/session/:sessionId/orientation":{"GET":{"command":"getOrientation","description":"","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#get-sessionsessionidorientation","parameters":[],"returns":{"type":"String","name":"orientation","description":"The current browser orientation corresponding to a value defined in ScreenOrientation: {LANDSCAPE|PORTRAIT}."}},"POST":{"command":"setOrientation","description":"","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#post-sessionsessionidorientation","parameters":[{"name":"orientation","type":"string","description":"the new browser orientation as defined in ScreenOrientation: {LANDSCAPE|PORTRAIT}","required":true}]}},"/session/:sessionId/moveto":{"POST":{"command":"moveToElement","description":"","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidmoveto","parameters":[{"name":"element","type":"(string|null)","description":"opaque ID assigned to the element to move to, as described in the WebElement JSON Object, if not specified or is null, the offset is relative to current position of the mouse","required":false},{"name":"xoffset","type":"number","description":"x offset to move to, relative to the top-left corner of the element, if not specified, the mouse will move to the middle of the element","required":false},{"name":"yoffset","type":"number","description":"y offset to move to, relative to the top-left corner of the element, if not specified, the mouse will move to the middle of the element","required":false}]}},"/session/:sessionId/buttondown":{"POST":{"command":"buttonDown","description":"Click and hold the left mouse button (at the coordinates set by the last moveto command). Note that the next mouse-related command that should follow is buttonup . Any other mouse command (such as click or another call to buttondown) will yield undefined behaviour.","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidbuttondown","parameters":[{"name":"button","type":"number","description":"which button, enum: LEFT = 0, MIDDLE = 1 , RIGHT = 2, defaults to the left mouse button if not specified","required":false}]}},"/session/:sessionId/buttonup":{"POST":{"command":"buttonUp","description":"Releases the mouse button previously held (where the mouse is currently at). Must be called once for every buttondown command issued. See the note in click and buttondown about implications of out-of-order commands.","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidbuttonup","parameters":[{"name":"button","type":"number","description":"which button, enum: LEFT = 0, MIDDLE = 1 , RIGHT = 2, defaults to the left mouse button if not specified","required":false}]}},"/session/:sessionId/click":{"POST":{"command":"positionClick","description":"Clicks at the current mouse coordinates (set by moveto).","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidclick","parameters":[{"name":"button","type":"number","description":"which button, enum: LEFT = 0, RIGHT = 2, defaults to the left mouse button if not specified","required":false}]}},"/session/:sessionId/doubleclick":{"POST":{"command":"positionDoubleClick","description":"Double-clicks at the current mouse coordinates (set by moveto).","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessioniddoubleclick","parameters":[]}},"/session/:sessionId/touch/click":{"POST":{"command":"touchClick","description":"Single tap on the touch enabled device.","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidtouchclick","parameters":[{"name":"element","type":"string","description":"ID of the element to single tap on.","required":true}]}},"/session/:sessionId/touch/down":{"POST":{"command":"touchDown","description":"Finger down on the screen.","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidtouchdown","parameters":[{"name":"x","type":"number","description":"x coordinate on the screen","required":true},{"name":"y","type":"number","description":"y coordinate on the screen","required":true}]}},"/session/:sessionId/touch/up":{"POST":{"command":"touchUp","description":"Finger up on the screen.","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidtouchup","parameters":[{"name":"x","type":"number","description":"x coordinate on the screen","required":true},{"name":"y","type":"number","description":"y coordinate on the screen","required":true}]}},"/session/:sessionId/touch/move":{"POST":{"command":"touchMove","description":"Finger move on the screen.","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidtouchmove","parameters":[{"name":"x","type":"number","description":"x coordinate on the screen","required":true},{"name":"y","type":"number","description":"y coordinate on the screen","required":true}]}},"/session/:sessionId/touch/scroll":{"POST":{"command":"touchScroll","description":"Finger move on the screen.","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidtouchscroll","parameters":[{"name":"xoffset","type":"number","description":"the x offset in pixels to scroll by","required":true},{"name":"yoffset","type":"number","description":"the y offset in pixels to scroll by","required":true},{"name":"element","type":"string","description":"ID of the element where the scroll starts","required":false}]}},"/session/:sessionId/touch/doubleclick":{"POST":{"command":"touchDoubleClick","description":"Double tap on the touch screen using finger motion events.","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidtouchdoubleclick","parameters":[{"name":"element","type":"string","description":"ID of the element to double tap on","required":true}]}},"/session/:sessionId/touch/longclick":{"POST":{"command":"touchLongClick","description":"Long press on the touch screen using finger motion events.","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidtouchlongclick","parameters":[{"name":"element","type":"string","description":"ID of the element to long press on","required":true}]}},"/session/:sessionId/touch/flick":{"POST":{"command":"touchFlick","description":"Flick on the touch screen using finger motion events. This flickcommand starts at a particulat screen location.","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidtouchflick","parameters":[{"name":"xoffset","type":"number","description":"the x offset in pixels to flick by","required":false},{"name":"yoffset","type":"number","description":"the y offset in pixels to flick by","required":false},{"name":"element","type":"string","description":"ID of the element where the flick starts","required":false},{"name":"speed","type":"number","description":"the speed in pixels per seconds","required":false},{"name":"xspeed","type":"number","description":"the x speed in pixels per second","required":false},{"name":"yspeed","type":"number","description":"the y speed in pixels per second","required":false}]}},"/session/:sessionId/location":{"GET":{"command":"getGeoLocation","description":"Get the current geo location.","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#get-sessionsessionidlocation","parameters":[],"returns":{"type":"Object","name":"location","description":"The current geo location."}},"POST":{"command":"setGeoLocation","description":"Set the current geo location.","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#post-sessionsessionidlocation","parameters":[{"name":"location","type":"object","description":"the new location (`{latitude: number, longitude: number, altitude: number}`)","required":true}]}},"/session/:sessionId/local_storage":{"GET":{"command":"getLocalStorage","description":"Get all keys of the storage.","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#get-sessionsessionidlocal_storage","parameters":[],"returns":{"type":"String[]","name":"keys","description":"The list of keys."}},"POST":{"command":"setLocalStorage","description":"Set the storage item for the given key.","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#post-sessionsessionidlocal_storage","parameters":[{"name":"key","type":"string","description":"the key to set","required":true},{"name":"value","type":"string","description":"the value to set","required":true}]},"DELETE":{"command":"clearLocalStorage","description":"Clear the storage.","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#get-sessionsessionidlocal_storage","parameters":[]}},"/session/:sessionId/local_storage/key/:key":{"GET":{"command":"getLocalStorageItem","description":"Get the storage item for the given key.","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#get-sessionsessionidlocal_storagekeykey","variables":[{"name":"key","description":"the key to get"}],"parameters":[],"returns":{"type":"String","name":"item","description":"The storage item of given key."}},"DELETE":{"command":"deleteLocalStorageItem","description":"","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#delete-sessionsessionidlocal_storagekeykey","variables":[{"name":"key","description":"the key to remove"}],"parameters":[]}},"/session/:sessionId/local_storage/size":{"GET":{"command":"getLocalStorageSize","description":"Get the number of items in the storage.","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidlocal_storagesize","parameters":[],"returns":{"type":"Number","name":"itemCnt","description":"The number of items in the storage."}}},"/session/:sessionId/session_storage":{"GET":{"command":"getSessionStorage","description":"Get all keys of the storage.","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#get-sessionsessionidsession_storage","parameters":[],"returns":{"type":"String[]","name":"keys","description":"The list of keys."}},"POST":{"command":"setSessionStorage","description":"Set the storage item for the given key.","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#post-sessionsessionidsession_storage","parameters":[{"name":"key","type":"string","description":"the key to set","required":true},{"name":"value","type":"string","description":"the value to set","required":true}]},"DELETE":{"command":"clearSessionStorage","description":"Clear the storage.","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#delete-sessionsessionidsession_storage","parameters":[]}},"/session/:sessionId/session_storage/key/:key":{"GET":{"command":"getSessionStorageItem","description":"Get the storage item for the given key.","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#get-sessionsessionidsession_storagekeykey","variables":[{"name":"key","description":"the key to get"}],"parameters":[],"returns":{"type":"String","name":"item","description":"The storage item of given key."}},"DELETE":{"command":"deleteSessionStorageItem","description":"Remove the storage item for the given key.","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#delete-sessionsessionidsession_storagekeykey","variables":[{"name":"key","description":"the key to remove"}],"parameters":[]}},"/session/:sessionId/session_storage/size":{"GET":{"command":"getSessionStorageSize","description":"Get the number of items in the storage.","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidsession_storagesize","parameters":[],"returns":{"type":"Number","name":"itemCnt","description":"The number of items in the storage."}}},"/session/:sessionId/log":{"POST":{"command":"getLogs","description":"Get the log for a given log type. Log buffer is reset after each request.","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidlog","parameters":[{"name":"type","type":"string","description":"the log type","required":true}],"returns":{"type":"Object[]","name":"logs","description":"The list of log entries."}}},"/session/:sessionId/log/types":{"GET":{"command":"getLogTypes","description":"Get available log types.","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidlogtypes","parameters":[],"returns":{"type":"String[]","name":"logTypes","description":"The list of available log types."}}},"/session/:sessionId/application_cache/status":{"GET":{"command":"getApplicationCacheStatus","description":"Get the status of the html5 application cache.","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidapplication_cachestatus","parameters":[],"returns":{"type":"Number","name":"statusCode","description":"Status code for application cache: `{UNCACHED = 0, IDLE = 1, CHECKING = 2, DOWNLOADING = 3, UPDATE_READY = 4, OBSOLETE = 5}`"}}}}')})),P.register("50wc7",(function(e,t){e.exports=JSON.parse('{"/session/:sessionId/appium/device/shake":{"POST":{"command":"shake","description":"Perform a shake action on the device.","ref":"http://appium.io/docs/en/commands/device/interactions/shake/","parameters":[],"support":{"ios":{"XCUITest":"9.3+","UIAutomation":"8.0 to 9.3"}}}},"/session/:sessionId/appium/device/lock":{"POST":{"command":"lock","description":"Lock the device.","ref":"http://appium.io/docs/en/commands/device/interactions/lock/","parameters":[{"name":"seconds","type":"number","description":"how long to lock the screen (iOS only)","required":false}],"support":{"ios":{"UIAutomation":"8.0 to 9.3"},"android":{"UiAutomator":"4.2+"},"windows":{"Windows":"10+"}}}},"/session/:sessionId/appium/device/unlock":{"POST":{"command":"unlock","description":"Unlock the device.","ref":"http://appium.io/docs/en/commands/device/interactions/unlock/","parameters":[],"support":{"android":{"UiAutomator":"4.2+"},"windows":{"Windows":"10+"}}}},"/session/:sessionId/appium/device/is_locked":{"POST":{"command":"isLocked","description":"Check whether the device is locked or not.","ref":"http://appium.io/docs/en/commands/device/interactions/is-locked/","parameters":[],"returns":{"type":"boolean","name":"isLocked","description":"True if the device is locked, false if not"},"support":{"android":{"UiAutomator":"4.2+"},"windows":{"Windows":"10+"}}}},"/session/:sessionId/appium/start_recording_screen":{"POST":{"command":"startRecordingScreen","description":"Start recording the screen.","ref":"http://appium.io/docs/en/commands/device/recording-screen/start-recording-screen/","parameters":[{"name":"options","type":"object","description":"command parameters that can contain keys like: remotePath, username, password, method, forceRestart, timeLimit, videoType, videoQuality, videoFps, bitRate, videoSize, bugReport (see more description in Appium docs)","required":false}],"support":{"ios":{"XCUITest":"9.3+"},"android":{"UiAutomator":"4.2+"}}}},"/session/:sessionId/appium/stop_recording_screen":{"POST":{"command":"stopRecordingScreen","description":"Stop recording screen","ref":"http://appium.io/docs/en/commands/device/recording-screen/stop-recording-screen/","parameters":[{"name":"remotePath","type":"string","description":"The path to the remote location, where the resulting video should be uploaded. The following protocols are supported http/https, ftp. This option only has an effect if there is screen recording process in progreess and forceRestart parameter is not set to true. Null or empty string value (the default setting) means the content of resulting file should be encoded as Base64.","required":false},{"name":"username","type":"string","description":"The name of the user for the remote authentication.","required":false},{"name":"password","type":"string","description":"The password for the remote authentication.","required":false},{"name":"method","type":"string","description":"The http multipart upload method name. The \'PUT\' one is used by default.","required":false}],"returns":{"type":"string","name":"response","description":"Base64 encoded string. If remote_path is set, the response is empty string"},"support":{"ios":{"XCUITest":"9.3+"},"android":{"UiAutomator":"4.2+"}}}},"/session/:sessionId/appium/performanceData/types":{"POST":{"command":"getPerformanceDataTypes","description":"Returns the information types of the system state which is supported to read as like cpu, memory, network traffic, and battery.","ref":"http://appium.io/docs/en/commands/device/performance-data/performance-data-types/","parameters":[],"returns":{"type":"string[]","name":"performanceTypes","description":"The available performance data types (cpuinfo|batteryinfo|networkinfo|memoryinfo)"},"support":{"android":{"UiAutomator":"4.2+"}}}},"/session/:sessionId/appium/getPerformanceData":{"POST":{"command":"getPerformanceData","description":"Returns the information of the system state which is supported to read as like cpu, memory, network traffic, and battery.","ref":"http://appium.io/docs/en/commands/device/performance-data/get-performance-data/","parameters":[{"name":"packageName","type":"string","description":"the package name of the application","required":true},{"name":"dataType","type":"string","description":"the type of system state which wants to read. It should be one of the supported performance data types","required":true},{"name":"dataReadTimeout","type":"number","description":"the number of attempts to read","required":false}],"returns":{"type":"string[]","name":"performanceData","description":"The information type of the system state which is supported to read as like cpu, memory, network traffic, and battery"},"support":{"android":{"UiAutomator":"4.2+"}}}},"/session/:sessionId/appium/device/press_keycode":{"POST":{"command":"pressKeyCode","description":"Press a particular key on the device.","ref":"http://appium.io/docs/en/commands/device/keys/press-keycode/","parameters":[{"name":"keycode","type":"number","description":"keycode to press","required":true},{"name":"metastate","type":"number","description":"meta state to press the keycode with","required":false},{"name":"flags","type":"number","description":"flags for the keypress","required":false}],"support":{"android":{"UiAutomator":"4.2+"}}}},"/session/:sessionId/appium/device/long_press_keycode":{"POST":{"command":"longPressKeyCode","description":"Press and hold a particular key code on the device.","ref":"http://appium.io/docs/en/commands/device/keys/long-press-keycode/","parameters":[{"name":"keycode","type":"number","description":"keycode to press on the device","required":true},{"name":"metastate","type":"number","description":"metastate for the keypress","required":false},{"name":"flags","type":"number","description":"flags for the keypress","required":false}],"support":{"android":{"UiAutomator":"4.2+"}}}},"/session/:sessionId/appium/device/keyevent":{"POST":{"command":"sendKeyEvent","description":"Send a key code to the device.","ref":"https://github.com/appium/appium-base-driver/blob/master/docs/mjsonwp/protocol-methods.md#appium-extension-endpoints","parameters":[{"name":"keycode","type":"string","description":"keycode to press","required":true},{"name":"metastate","type":"string","description":"meta state to press the keycode with","required":false}],"support":{}}},"/session/:sessionId/appium/device/rotate":{"POST":{"command":"rotateDevice","description":"Rotate the device in three dimensions.","ref":"http://appium.io/docs/en/commands/device/interactions/rotate/","parameters":[{"name":"x","type":"number","description":"x offset to use for the center of the rotate gesture","required":true,"default":0},{"name":"y","type":"number","description":"y offset to use for the center of the rotate gesture","required":true,"default":0},{"name":"radius","type":"number","description":"the distance in points from the center to the edge of the circular path","required":true,"default":0},{"name":"rotation","type":"number","description":"the length of rotation in radians","required":true,"default":3.14159265359},{"name":"touchCount","type":"number","description":"the number of touches to use in the specified gesture","required":true,"default":2},{"name":"duration","type":"number","description":"the length of hold time for the specified gesture, in seconds","required":true,"default":1},{"name":"element","type":"string","description":"the id of an element returned in a previous call to execute the rotation on","required":false}],"support":{"ios":{"UIAutomation":"8.0 to 9.3"}}}},"/session/:sessionId/appium/device/current_activity":{"GET":{"command":"getCurrentActivity","description":"Get the name of the current Android activity.","ref":"http://appium.io/docs/en/commands/device/activity/current-activity/","parameters":[],"returns":{"type":"string","name":"activity","description":"Name of the current activity"},"support":{"android":{"UiAutomator":"4.2+"}}}},"/session/:sessionId/appium/device/current_package":{"GET":{"command":"getCurrentPackage","description":"Get the name of the current Android package.","ref":"http://appium.io/docs/en/commands/device/activity/current-package/","parameters":[],"returns":{"type":"string","name":"package","description":"Name of the current package"},"support":{"android":{"UiAutomator":"4.2+"}}}},"/session/:sessionId/appium/device/install_app":{"POST":{"command":"installApp","description":"Install the given app onto the device.","ref":"http://appium.io/docs/en/commands/device/app/install-app/","parameters":[{"name":"appPath","type":"string","description":"path to application .apk file","required":true}],"support":{"ios":{"XCUITest":"9.3+","UIAutomation":"8.0 to 9.3"},"android":{"UiAutomator":"4.2+"}}}},"/session/:sessionId/appium/device/activate_app":{"POST":{"command":"activateApp","description":"Activate the given app onto the device","ref":"http://appium.io/docs/en/commands/device/app/activate-app/","parameters":[{"name":"appId","type":"string","description":"App ID (package ID for Android, bundle ID for iOS)","required":true}],"support":{"ios":{"XCUITest":"9.3+"},"android":{"UiAutomator":"4.2+"}}}},"/session/:sessionId/appium/device/remove_app":{"POST":{"command":"removeApp","description":"Remove an app from the device.","ref":"http://appium.io/docs/en/commands/device/app/remove-app/","parameters":[{"name":"appId","type":"string","description":"App ID (package ID for Android, bundle ID for iOS)","required":true}],"support":{"ios":{"XCUITest":"9.3+","UIAutomation":"8.0 to 9.3"},"android":{"UiAutomator":"4.2+"}}}},"/session/:sessionId/appium/device/terminate_app":{"POST":{"command":"terminateApp","description":"Terminate the given app on the device","ref":"http://appium.io/docs/en/commands/device/app/terminate-app/","parameters":[{"name":"appId","type":"string","description":"App ID (package ID for Android, bundle ID for iOS)","required":true}],"support":{"ios":{"XCUITest":"9.3+"},"android":{"UiAutomator":"4.2+"}}}},"/session/:sessionId/appium/device/app_installed":{"POST":{"command":"isAppInstalled","description":"Check whether the specified app is installed on the device.","ref":"http://appium.io/docs/en/commands/device/app/is-app-installed/","parameters":[{"name":"appId","type":"string","description":"App ID (package ID for Android, bundle ID for iOS)","required":true}],"returns":{"type":"boolean","name":"isAppInstalled","description":"Return true if installed, false if not"},"support":{"ios":{"XCUITest":"9.3+","UIAutomation":"8.0 to 9.3"},"android":{"UiAutomator":"4.2+"}}}},"/session/:sessionId/appium/device/app_state":{"POST":{"command":"queryAppState","description":"Get the given app status on the device","ref":"http://appium.io/docs/en/commands/device/app/app-state/","parameters":[{"name":"appId","type":"string","description":"App ID (package ID for Android, bundle ID for iOS)","required":true}],"returns":{"type":"number","name":"appStatus","description":"0 is not installed. 1 is not running. 2 is running in background or suspended. 3 is running in background. 4 is running in foreground"},"support":{"ios":{"XCUITest":"9.3+"},"android":{"UiAutomator":"4.2+"}}}},"/session/:sessionId/appium/device/hide_keyboard":{"POST":{"command":"hideKeyboard","description":"Hide soft keyboard.","ref":"http://appium.io/docs/en/commands/device/keys/hide-keyboard/","parameters":[{"name":"strategy","type":"string","description":"hide keyboard strategy (UIAutomation only), available strategies - \'press\', \'pressKey\', \'swipeDown\', \'tapOut\', \'tapOutside\', \'default\'","required":false},{"name":"key","type":"string","description":"key value if strategy is \'pressKey\'","required":false},{"name":"keyCode","type":"string","description":"key code if strategy is \'pressKey\'","required":false},{"name":"keyName","type":"string","description":"key name if strategy is \'pressKey\'","required":false}],"support":{"ios":{"XCUITest":"9.3+","UIAutomation":"8.0 to 9.3"},"android":{"UiAutomator":"4.2+"},"windows":{"Windows":"10+"}}}},"/session/:sessionId/appium/device/is_keyboard_shown":{"GET":{"command":"isKeyboardShown","description":"Whether or not the soft keyboard is shown.","ref":"http://appium.io/docs/en/commands/device/keys/is-keyboard-shown/","parameters":[],"returns":{"type":"boolean","name":"isKeyboardShown","description":"True if the keyboard is shown"},"support":{"ios":{"XCUITest":"9.3+","UIAutomation":"8.0 to 9.3"},"android":{"UiAutomator":"4.2+"},"windows":{"Windows":"10+"}}}},"/session/:sessionId/appium/device/push_file":{"POST":{"command":"pushFile","description":"Place a file onto the device in a particular place.","ref":"http://appium.io/docs/en/commands/device/files/push-file/","parameters":[{"name":"path","type":"string","description":"path to install the data to","required":true},{"name":"data","type":"string","description":"contents of file in base64","required":true}],"support":{"ios":{"XCUITest":"9.3+","UIAutomation":"8.0 to 9.3"},"android":{"UiAutomator":"4.2+"}}}},"/session/:sessionId/appium/device/pull_file":{"POST":{"command":"pullFile","description":"Retrieve a file from the device\'s file system.","ref":"http://appium.io/docs/en/commands/device/files/pull-file/","parameters":[{"name":"path","type":"string","description":"path on the device to pull file from","required":true}],"support":{"ios":{"XCUITest":"9.3+","UIAutomation":"8.0 to 9.3"},"android":{"UiAutomator":"4.2+"}},"returns":{"type":"string","name":"response","description":"Contents of file in base64"}}},"/session/:sessionId/appium/device/pull_folder":{"POST":{"command":"pullFolder","description":"Retrieve a folder from the device\'s file system.","ref":"http://appium.io/docs/en/commands/device/files/pull-folder/","parameters":[{"name":"path","type":"string","description":"path to an entire folder on the device","required":true}],"support":{"ios":{"XCUITest":"9.3+","UIAutomation":"8.0 to 9.3"},"android":{"UiAutomator":"4.2+"}}}},"/session/:sessionId/appium/device/toggle_airplane_mode":{"POST":{"command":"toggleAirplaneMode","description":"Toggle airplane mode on device.","ref":"http://appium.io/docs/en/commands/device/network/toggle-airplane-mode/","parameters":[],"support":{"android":{"UiAutomator":"4.2+"}}}},"/session/:sessionId/appium/device/toggle_data":{"POST":{"command":"toggleData","description":"Switch the state of data service.","ref":"http://appium.io/docs/en/commands/device/network/toggle-data/","parameters":[],"support":{"android":{"UiAutomator":"4.2+"}}}},"/session/:sessionId/appium/device/toggle_wifi":{"POST":{"command":"toggleWiFi","description":"Switch the state of the wifi service.","ref":"http://appium.io/docs/en/commands/device/network/toggle-wifi/","parameters":[],"support":{"android":{"UiAutomator":"4.2+"}}}},"/session/:sessionId/appium/device/toggle_location_services":{"POST":{"command":"toggleLocationServices","description":"Switch the state of the location service.","ref":"http://appium.io/docs/en/commands/device/network/toggle-location-services/","parameters":[],"support":{"android":{"UiAutomator":"4.2+"}}}},"/session/:sessionId/appium/device/network_speed":{"POST":{"command":"toggleNetworkSpeed","description":"Set network speed (Emulator only)","ref":"http://appium.io/docs/en/commands/device/network/network-speed/","parameters":[{"name":"netspeed","type":"string","description":"Network type - \'full\',\'gsm\', \'edge\', \'hscsd\', \'gprs\', \'umts\', \'hsdpa\', \'lte\', \'evdo\'","required":true}],"support":{"android":{"UiAutomator":"4.2+"}}}},"/session/:sessionId/appium/device/open_notifications":{"POST":{"command":"openNotifications","description":"Open Android notifications (Emulator only).","ref":"http://appium.io/docs/en/commands/device/system/open-notifications/","parameters":[],"support":{"android":{"UiAutomator":"4.2+"}}}},"/session/:sessionId/appium/device/start_activity":{"POST":{"command":"startActivity","description":"Start an Android activity by providing package name and activity name.","ref":"http://appium.io/docs/en/commands/device/activity/start-activity/","parameters":[{"name":"appPackage","type":"string","description":"name of app","required":true},{"name":"appActivity","type":"string","description":"name of activity","required":true},{"name":"appWaitPackage","type":"string","description":"name of app to wait for","required":false},{"name":"appWaitActivity","type":"string","description":"name of activity to wait for","required":false},{"name":"intentAction","type":"string","description":"intent action which will be used to start activity","required":false,"default":"android.intent.action.MAIN"},{"name":"intentCategory","type":"string","description":"intent category which will be used to start activity","required":false,"default":"android.intent.category.LAUNCHER"},{"name":"intentFlags","type":"string","description":"flags that will be used to start activity","required":false,"default":"0x10200000"},{"name":"optionalIntentArguments","type":"string","description":"additional intent arguments that will be used to start activity","required":false},{"name":"dontStopAppOnReset","type":"string","description":"doesn’t stop the process of the app under test, before starting the app using adb","required":false}],"support":{"android":{"UiAutomator":"4.2+"}}}},"/session/:sessionId/appium/device/system_bars":{"GET":{"command":"getSystemBars","description":"Retrieve visibility and bounds information of the status and navigation bars.","ref":"http://appium.io/docs/en/commands/device/system/system-bars/","parameters":[],"returns":{"type":"object[]","name":"systemBars","description":"Information about visibility and bounds of status and navigation bar"},"support":{"android":{"UiAutomator":"4.2+"}}}},"/session/:sessionId/appium/device/system_time":{"GET":{"command":"getDeviceTime","description":"Get the time on the device.","ref":"http://appium.io/docs/en/commands/device/system/system-time/","parameters":[],"returns":{"type":"string","name":"time","description":"Time on the device"},"support":{"ios":{"XCUITest":"9.3+","UIAutomation":"8.0 to 9.3"},"android":{"UiAutomator":"4.2+"}}}},"/session/:sessionId/appium/device/display_density":{"GET":{"command":"getDisplayDensity","description":"Get display density from device.","ref":"https://github.com/appium/appium-base-driver/blob/master/docs/mjsonwp/protocol-methods.md#appium-extension-endpoints","parameters":[],"returns":{"type":"*","name":"displayDensity"},"support":{"android":{"UiAutomator":"4.2+"}}}},"/session/:sessionId/appium/simulator/touch_id":{"POST":{"command":"touchId","description":"Simulate a [touch id](https://support.apple.com/en-ca/ht201371) event (iOS Simulator only). To enable this feature, the `allowTouchIdEnroll` desired capability must be set to true and the Simulator must be [enrolled](https://support.apple.com/en-ca/ht201371). When you set allowTouchIdEnroll to true, it will set the Simulator to be enrolled by default. The enrollment state can be [toggled](http://appium.io/docs/en/commands/device/simulator/toggle-touch-id-enrollment/index.html). This call will only work if Appium process or its parent application (e.g. Terminal.app or Appium.app) has access to Mac OS accessibility in System Preferences > Security & Privacy > Privacy > Accessibility list.","ref":"http://appium.io/docs/en/commands/device/simulator/touch-id/","parameters":[{"name":"match","type":"boolean","description":"are we simulating a successful touch (true) or a failed touch (false)","required":true}],"support":{"ios":{"XCUITest":"9.3+"}}}},"/session/:sessionId/appium/simulator/toggle_touch_id_enrollment":{"POST":{"command":"toggleEnrollTouchId","description":"Toggle the simulator being [enrolled](https://support.apple.com/en-ca/ht201371) to accept touchId (iOS Simulator only). To enable this feature, the `allowTouchIdEnroll` desired capability must be set to true. When `allowTouchIdEnroll` is set to true the Simulator will be enrolled by default, and the \'Toggle Touch ID Enrollment\' changes the enrollment state. This call will only work if the Appium process or its parent application (e.g., Terminal.app or Appium.app) has access to Mac OS accessibility in System Preferences > Security & Privacy > Privacy > Accessibility list.","ref":"http://appium.io/docs/en/commands/device/simulator/toggle-touch-id-enrollment/","parameters":[{"name":"enabled","type":"boolean","description":"equals to true if TouchID enrollment should be enabled","required":false,"default":true}],"support":{"ios":{"XCUITest":"9.3+"}}}},"/session/:sessionId/appium/app/launch":{"POST":{"command":"launchApp","description":"Launch an app on device. iOS tests with XCUITest can also use the `mobile: launchApp` method. See detailed [documentation](http://appium.io/docs/en/writing-running-appium/ios/ios-xctest-mobile-apps-management/index.html#mobile-launchapp).","ref":"http://appium.io/docs/en/commands/device/app/launch-app/","parameters":[],"support":{"ios":{"XCUITest":"9.3+","UIAutomation":"8.0 to 9.3"},"android":{"UiAutomator":"4.2+"}}}},"/session/:sessionId/appium/app/close":{"POST":{"command":"closeApp","description":"Close an app on device.","ref":"http://appium.io/docs/en/commands/device/app/close-app/","parameters":[],"support":{"ios":{"XCUITest":"9.3+","UIAutomation":"8.0 to 9.3"},"android":{"UiAutomator":"4.2+"}}}},"/session/:sessionId/appium/app/reset":{"POST":{"command":"reset","description":"<b>Deprecated</b> This command will be removed with the upcoming major version release.","ref":"http://appium.io/docs/en/commands/device/app/reset-app/","parameters":[],"support":{"ios":{"XCUITest":"9.3+","UIAutomation":"8.0 to 9.3"},"android":{"UiAutomator":"4.2+"}}}},"/session/:sessionId/appium/app/background":{"POST":{"command":"background","description":"Send the currently running app for this session to the background. iOS tests with XCUITest can also use the `mobile: terminateApp` method to terminate the current app (see detailed [documentation](http://appium.io/docs/en/writing-running-appium/ios/ios-xctest-mobile-apps-management/index.html#mobile-terminateapp)), and the `mobile: activateApp` to activate an existing application on the device under test and moves it to the foreground (see detailed [documentation](http://appium.io/docs/en/writing-running-appium/ios/ios-xctest-mobile-apps-management/index.html#mobile-activateapp)).","ref":"http://appium.io/docs/en/commands/device/app/background-app/","parameters":[{"name":"seconds","type":"(number|null)","description":"timeout to restore app, if \'null\' app won\'t be restored","required":true,"default":"null"}],"support":{"ios":{"XCUITest":"9.3+","UIAutomation":"8.0 to 9.3"},"android":{"UiAutomator":"4.2+"}}}},"/session/:sessionId/appium/app/end_test_coverage":{"POST":{"command":"endCoverage","description":"Get test coverage data.","ref":"http://appium.io/docs/en/commands/device/app/end-test-coverage/","parameters":[{"name":"intent","type":"string","description":"intent to broadcast","required":true},{"name":"path","type":"string","description":"path to .ec file","required":true}],"support":{"android":{"UiAutomator":"4.2+"}}}},"/session/:sessionId/appium/app/strings":{"POST":{"command":"getStrings","description":"Get app strings.","ref":"http://appium.io/docs/en/commands/device/app/get-app-strings/","parameters":[{"name":"language","type":"string","description":"language code","required":false},{"name":"stringFile","type":"string","description":"path to the string file","required":false}],"returns":{"type":"object","name":"appStrings","description":"all defined Strings from an app for the specified language and strings filename"},"support":{"ios":{"XCUITest":"9.3+","UIAutomation":"8.0 to 9.3"},"android":{"UiAutomator":"4.2+"}}}},"/session/:sessionId/appium/element/:elementId/value":{"POST":{"command":"setValueImmediate","ref":"https://github.com/appium/appium-base-driver/blob/master/docs/mjsonwp/protocol-methods.md#appium-extension-endpoints","variables":[{"name":"elementId","description":"the id of an element returned in a previous call to Find Element(s)"}],"parameters":[{"name":"value","type":"string","description":"value to set on element","required":true}],"support":{"ios":{"XCUITest":"9.3+"}}}},"/session/:sessionId/appium/element/:elementId/replace_value":{"POST":{"command":"replaceValue","description":"Replace the value to element directly.","ref":"https://github.com/appium/appium-base-driver/blob/master/docs/mjsonwp/protocol-methods.md#appium-extension-endpoints","variables":[{"name":"elementId","description":"the id of an element returned in a previous call to Find Element(s)"}],"parameters":[{"name":"value","type":"string","description":"value to replace on element","required":true}],"support":{"ios":{"XCUITest":"9.3+","UIAutomation":"8.0 to 9.3"},"android":{"UiAutomator":"4.2+"}}}},"/session/:sessionId/appium/settings":{"GET":{"command":"getSettings","description":"Retrieve the current settings on the device.","ref":"http://appium.io/docs/en/commands/session/settings/get-settings/","parameters":[],"returns":{"type":"object","name":"settings","description":"JSON hash of all the currently specified settings, see Settings API"},"support":{"ios":{"XCUITest":"9.3+","UIAutomation":"8.0 to 9.3"},"android":{"UiAutomator":"4.2+"},"windows":{"Windows":"10+"}}},"POST":{"command":"updateSettings","description":"Update the current setting on the device.","ref":"http://appium.io/docs/en/commands/session/settings/update-settings/","parameters":[{"name":"settings","type":"object","description":"key/value object with settings to update","required":true}],"support":{"ios":{"XCUITest":"9.3+","UIAutomation":"8.0 to 9.3"},"android":{"UiAutomator":"4.2+"},"windows":{"Windows":"10+"}}}},"/session/:sessionId/appium/receive_async_response":{"POST":{"command":"receiveAsyncResponse","description":"Callback url for asynchronous execution of JavaScript.","ref":"https://github.com/appium/appium-base-driver/blob/master/docs/mjsonwp/protocol-methods.md#appium-extension-endpoints","parameters":[{"name":"response","type":"object","description":"response to receive on device","required":true}],"support":{}}},"/session/:sessionId/appium/device/gsm_call":{"POST":{"command":"gsmCall","description":"Make GSM call (Emulator only).","ref":"http://appium.io/docs/en/commands/device/network/gsm-call/","parameters":[{"name":"phoneNumber","type":"string","description":"the phone number to call to","required":true},{"name":"action","type":"string","description":"The action - \'call\', \'accept\', \'cancel\', \'hold\'","required":true}],"support":{"android":{"UiAutomator":"4.2+"}}}},"/session/:sessionId/appium/device/gsm_signal":{"POST":{"command":"gsmSignal","description":"Set GSM signal strength (Emulator only).","ref":"http://appium.io/docs/en/commands/device/network/gsm-signal/","parameters":[{"name":"signalStrength","type":"string","description":"signal strength in the range [0, 4]","required":true},{"name":"signalStrengh","type":"string","description":"signal strength in the range [0, 4]. Please also set this parameter with the same value if you use Appium v1.11.0 or lower (see https://github.com/appium/appium/issues/12234).","required":false}],"support":{"android":{"UiAutomator":"4.2+"}}}},"/session/:sessionId/appium/device/power_capacity":{"POST":{"command":"powerCapacity","description":"Set the battery percentage (Emulator only).","ref":"http://appium.io/docs/en/commands/device/emulator/power_capacity/","parameters":[{"name":"percent","type":"number","description":"percentage value in range [0, 100]","required":true}],"support":{"android":{"UiAutomator":"4.2+"}}}},"/session/:sessionId/appium/device/power_ac":{"POST":{"command":"powerAC","description":"Set the state of the battery charger to connected or not (Emulator only).","ref":"http://appium.io/docs/en/commands/device/emulator/power_ac/","parameters":[{"name":"state","type":"string","description":"set the state. on or off","required":true}],"support":{"android":{"UiAutomator":"4.2+"}}}},"/session/:sessionId/appium/device/gsm_voice":{"POST":{"command":"gsmVoice","description":"Set GSM voice state (Emulator only).","ref":"http://appium.io/docs/en/commands/device/network/gsm-voice/","parameters":[{"name":"state","type":"string","description":"state of GSM voice - \'unregistered\', \'home\', \'roaming\', \'searching\', \'denied\', \'off\', \'on\'","required":true}],"support":{"android":{"UiAutomator":"4.2+"}}}},"/session/:sessionId/appium/device/send_sms":{"POST":{"command":"sendSms","description":"Simulate an SMS message (Emulator only).","ref":"http://appium.io/docs/en/commands/device/network/send-sms/","parameters":[{"name":"phoneNumber","type":"string","description":"the phone number to send the SMS too","required":true},{"name":"message","type":"string","description":"the SMS message","required":true}],"support":{"android":{"UiAutomator":"4.2+"}}}},"/session/:sessionId/appium/device/finger_print":{"POST":{"command":"fingerPrint","description":"Authenticate users by using their finger print scans on supported emulators.","ref":"http://appium.io/docs/en/commands/device/authentication/finger-print/","parameters":[{"name":"fingerprintId","type":"number","description":"finger prints stored in Android Keystore system (from 1 to 10)","required":true}],"support":{"android":{"UiAutomator":"4.2+"}}}},"/session/:sessionId/appium/device/set_clipboard":{"POST":{"command":"setClipboard","description":"Set the content of the system clipboard","ref":"http://appium.io/docs/en/commands/device/clipboard/set-clipboard/","parameters":[{"name":"content","type":"string","description":"The actual base64 encoded clipboard content","required":true},{"name":"contentType","type":"string","description":"The type of the content to get. Plaintext, Image, URL. Android supports only plaintext","required":false},{"name":"label","type":"string","description":"Clipboard data label for Android","required":false}],"returns":{"type":"string","name":"response","description":"Response from Appium server"}}},"/session/:sessionId/appium/device/get_clipboard":{"POST":{"command":"getClipboard","description":"Get the content of the system clipboard","ref":"http://appium.io/docs/en/commands/device/clipboard/get-clipboard/","parameters":[{"name":"contentType","type":"string","description":"The type of the content to get. Plaintext, Image, URL. Android supports only plaintext","required":false}],"returns":{"type":"string","name":"response","description":"Clipboard content as base64-encoded string or an empty string if the clipboard is empty"}}},"/session/:sessionId/touch/perform":{"POST":{"command":"touchPerform","description":"This functionality is only available from within a native context. \'Touch Perform\' works similarly to the other singular touch interactions, except that this allows you to chain together more than one touch action as one command. This is useful because Appium commands are sent over the network and there\'s latency between commands. This latency can make certain touch interactions impossible because some interactions need to be performed in one sequence. Vertical, for example, requires pressing down, moving to a different y coordinate, and then releasing. For it to work, there can\'t be a delay between the interactions.","ref":"http://appium.io/docs/en/commands/interactions/touch/touch-perform/","parameters":[{"name":"actions","type":"object[]","description":"The type of action to perform (e.g. moveTo, release, press, tap, wait)","required":true}],"examples":[["// do a horizontal swipe by percentage","const startPercentage = 10;","const endPercentage = 90;","const anchorPercentage = 50;","","const { width, height } = driver.getWindowSize();","const anchor = height * anchorPercentage / 100;","const startPoint = width * startPercentage / 100;","const endPoint = width * endPercentage / 100;","driver.touchPerform(["," {"," action: \'press\',"," options: {"," x: startPoint,"," y: anchor,"," },"," },"," {"," action: \'wait\',"," options: {"," ms: 100,"," },"," },"," {"," action: \'moveTo\',"," options: {"," x: endPoint,"," y: anchor,"," },"," },"," {"," action: \'release\',"," options: {},"," },","]);"]],"support":{"android":{"UiAutomator":"4.2+"},"ios":{"XCUITest":"9.3+","UIAutomation":"8.0 to 9.3"},"windows":{"Windows":"10+"}}}},"/session/:sessionId/touch/multi/perform":{"POST":{"command":"multiTouchPerform","description":"This functionality is only available from within a native context. Perform a multi touch action sequence.","ref":"http://appium.io/docs/en/commands/interactions/touch/multi-touch-perform/","parameters":[{"name":"actions","type":"object[]","description":"The type of action to perform (e.g. moveTo, release, press, tap, wait)","required":true}],"support":{"android":{"UiAutomator":"4.2+"},"ios":{"XCUITest":"9.3+","UIAutomation":"8.0 to 9.3"},"windows":{"Windows":"10+"}}}},"/session/:sessionId/appium/execute_driver":{"POST":{"command":"driverScript","description":"This command allows you to define a webdriverio script in a string and send it to the Appium server to be executed locally to the server itself, thus reducing latency that might otherwise occur along with each command.","ref":"https://github.com/appium/appium/blob/master/docs/en/commands/session/execute-driver.md","parameters":[{"name":"script","type":"string","description":"The script to execute. It has access to a \'driver\' object which represents a webdriverio session attached to the current server.","required":true},{"name":"type","type":"string","description":"The language/framework used in the script. Currently, only \'webdriverio\' is supported and is the default.","required":false},{"name":"timeout","type":"number","description":"The number of milliseconds the script should be allowed to run before being killed by the Appium server. Defaults to the equivalent of 1 hour.","required":false}],"returns":{"type":"object","name":"result","description":"An object containing two fields: \'result\', which is the return value of the script itself, and \'logs\', which contains 3 inner fields, \'log\', \'warn\', and \'error\', which hold an array of strings logged by console.log, console.warn, and console.error in the script\'s execution."}}},"/session/:sessionId/appium/events":{"POST":{"command":"getEvents","description":"Get events stored in appium server.","ref":"https://github.com/appium/appium/blob/master/docs/en/commands/session/events/get-events.md","parameters":[{"name":"type","type":"string[]","description":"Get events which are filtered with the type if the type is provided.","required":true}],"returns":{"type":"object","name":"result","description":"A JSON hash of events like `{\'commands\' => [{\'cmd\' => 123455, ....}], \'startTime\' => 1572954894127, }`."}}},"/session/:sessionId/appium/log_event":{"POST":{"command":"logEvent","description":"Store a custom event.","ref":"https://github.com/appium/appium/blob/master/docs/en/commands/session/events/log-event.md","parameters":[{"name":"vendor","type":"string","description":"The name of vendor. It will be `vendor` in `vendor:event`.","required":true},{"name":"event","type":"string","description":"The name of event. It will be `event` in `vendor:event`.","required":true}]}},"/session/:sessionId/appium/compare_images":{"POST":{"command":"compareImages","description":"Performs images comparison using OpenCV framework features. It is expected that both OpenCV framework and opencv4nodejs module are installed on the machine where Appium server is running.","ref":"http://appium.io/docs/en/writing-running-appium/image-comparison/","parameters":[{"name":"mode","type":"string","description":"One of possible comparison modes: \'matchFeatures\', \'getSimilarity\', \'matchTemplate\'. \'matchFeatures\' is by default.","required":true,"default":"matchFeatures"},{"name":"firstImage","type":"string","description":"An image data. All image formats, that OpenCV library itself accepts, are supported.","required":true},{"name":"secondImage","type":"string","description":"An image data. All image formats, that OpenCV library itself accepts, are supported.","required":true},{"name":"options","type":"object","description":"The content of this dictionary depends on the actual `mode` value. See the documentation on `appium-support` module for more details. ","required":true,"default":{}}],"returns":{"type":"object","name":"result","description":"The content of the resulting dictionary depends on the actual `mode` and `options` values. See the documentation on `appium-support` module for more details."}}}}')})),P.register("8X4KP",(function(e,t){e.exports=JSON.parse('{"/session/:sessionId/alert":{"GET":{"command":"isAlertOpen","description":"Whether a simple dialog is currently open.","ref":"https://github.com/bayandin/chromedriver/blob/v2.45/alert_commands.cc#L42-L49","examples":[["console.log(browser.isAlertOpen()); // outputs: false","browser.execute(\'window.alert()\');","console.log(browser.isAlertOpen()); // outputs: true"]],"parameters":[],"returns":{"type":"Boolean","name":"isAlertOpen","description":"`true` or `false` based on whether simple dialog is present or not."}}},"/session/:sessionId/autoreport":{"GET":{"command":"isAutoReporting","description":"Whether it should automatically raises errors on browser logs.","ref":"https://codereview.chromium.org/101203012","parameters":[],"returns":{"type":"Boolean","name":"isAutoReporting","description":"`true` or `false` based on whether auto reporting is enabled."}},"POST":{"command":"setAutoReporting","description":"Toggle whether to return response with unknown error with first browser error (e.g. failed to load resource due to 403/404 response) for all subsequent commands (once enabled).","ref":"https://codereview.chromium.org/101203012","examples":[["// Enable auto reporting first thing after session was initiated with empty browser logs","console.log(browser.setAutoReporting(true)); // outputs: null","// Upon requesting an non-existing resource it will abort execution due to thrown unknown error","browser.url(\'https://webdriver.io/img/404-does-not-exist.png\');"],["// During the session do some operations which populate the browser logs","browser.url(\'https://webdriver.io/img/404-does-not-exist.png\');","browser.url(\'https://webdriver.io/403/no-access\');","// Enable auto reporting which throws an unknown error for first browser log (404 response)","browser.setAutoReporting(true);"]],"parameters":[{"name":"enabled","type":"boolean","description":"`true` if auto reporting should be enabled, use `false` to disable previously enabled auto reporting.","required":true}],"returns":{"type":"Object|Null","name":"firstBrowserError","description":"In case first browser error already occured prior to executing this command it will throw unknown error as response, which is an object with \'message\' key describing first browser error. Otherwise it returns `null` on success."}}},"/session/:sessionId/is_loading":{"GET":{"command":"isLoading","description":"Determines load status for active window handle.","ref":"https://github.com/bayandin/chromedriver/blob/v2.45/session_commands.cc#L783-L802","examples":[["console.log(browser.isLoading()); // outputs: false","browser.newWindow(\'https://webdriver.io\');","console.log(browser.isLoading()); // outputs: true"]],"parameters":[],"returns":{"type":"Boolean","name":"isLoading","description":"`true` or `false` based on whether active window handle is loading or not."}}},"/session/:sessionId/chromium/heap_snapshot":{"GET":{"command":"takeHeapSnapshot","description":"Takes a heap snapshot of the current execution context.","ref":"https://github.com/bayandin/chromedriver/blob/v2.45/chrome/web_view.h#L198-L202","parameters":[],"returns":{"type":"Object","name":"heapSnapshot","description":"A JSON representation of the heap snapshot. Which can be inspected by loading as file into Chrome DevTools."}}},"/session/:sessionId/network_connection":{"GET":{"command":"getNetworkConnection","description":"Get the connection type for network emulation. This command is only applicable when remote end replies with `networkConnectionEnabled` capability set to `true`.","ref":"https://github.com/SeleniumHQ/mobile-spec/blob/master/spec-draft.md#device-modes","examples":[["const browser = remote({"," capabilities: {"," browserName: \'chrome\',"," \'goog:chromeOptions\': {"," // Network emulation requires device mode, which is only enabled when mobile emulation is on"," mobileEmulation: { deviceName: \'iPad\' },"," },"," }","});","console.log(browser.getNetworkConnection()); // outputs: 6 (Both Wi-Fi and data)"]],"parameters":[],"returns":{"type":"Number","name":"connectionType","description":"A bitmask to represent the network connection type. Airplane Mode (`1`), Wi-Fi only (`2`), Wi-Fi and data (`6`), 4G (`8`), 3G (`10`), 2G (`20`). By default [Wi-Fi and data are enabled](https://github.com/bayandin/chromedriver/blob/v2.45/chrome/chrome_desktop_impl.cc#L36-L37)."}},"POST":{"command":"setNetworkConnection","description":"Change connection type for network connection. This command is only applicable when remote end replies with `networkConnectionEnabled` capability set to `true`.","ref":"https://github.com/SeleniumHQ/mobile-spec/blob/master/spec-draft.md#device-modes","examples":[["const browser = remote({"," capabilities: {"," browserName: \'chrome\',"," \'goog:chromeOptions\': {"," // Network emulation requires device mode, which is only enabled when mobile emulation is on"," mobileEmulation: { deviceName: \'iPad\' },"," },"," }","});","console.log(browser.setNetworkConnection({ type: 1 })); // outputs: 1 (Airplane Mode)"]],"parameters":[{"name":"parameters","type":"object","description":"Object containing ConnectionType, set bitmask as value for `type` key in object. Airplane Mode (`1`), Wi-Fi only (`2`), Wi-Fi and data (`6`), 4G (`8`), 3G (`10`), 2G (`20`).","required":true}],"returns":{"type":"Number","name":"connectionType","description":"A bitmask to represent the network connection type. Value should match specified `type` in object, however device might not be capable of the network connection type requested."}}},"/session/:sessionId/chromium/network_conditions":{"GET":{"command":"getNetworkConditions","description":"Get current network conditions used for emulation.","ref":"https://github.com/bayandin/chromedriver/blob/v2.45/session_commands.cc#L839-L859","parameters":[],"returns":{"type":"Object","name":"networkConditions","description":"Object containing network conditions for `offline`, `latency`, `download_throughput` and `upload_throughput`. Network conditions must be set before it can be retrieved."}},"POST":{"command":"setNetworkConditions","description":"Set network conditions used for emulation by throttling connection.","ref":"https://github.com/bayandin/chromedriver/blob/v2.45/window_commands.cc#L1663-L1722","examples":[["// Use different download (25kb/s) and upload (50kb/s) throughput values for throttling with a latency of 1000ms","browser.setNetworkConditions({ latency: 1000, download_throughput: 25600, upload_throughput: 51200 });"],["// Force disconnected from network by setting \'offline\' to true","browser.setNetworkConditions({ latency: 0, throughput: 0, offline: true });"],["// When preset name (e.g. \'DSL\') is specified it does not respect values in object (e.g. \'offline\')","browser.setNetworkConditions({ latency: 0, throughput: 0, offline: true }, \'DSL\');"],["// Best practice for specifying network throttling preset is to use an empty object","browser.setNetworkConditions({}, \'Good 3G\');"]],"parameters":[{"name":"network_conditions","type":"object","description":"Object containing network conditions which are `latency`, `throughput` (or `download_throughput`/`upload_throughput`) and `offline` (optional).","required":true},{"name":"network_name","type":"string","description":"Name of [network throttling preset](https://github.com/bayandin/chromedriver/blob/v2.45/chrome/network_list.cc#L12-L25). `GPRS`, `Regular 2G`, `Good 2G`, `Regular 3G`, `Good 3G`, `Regular 4G`, `DSL`, `WiFi` or `No throttling` to disable. When preset is specified values passed in first argument are not respected.","required":false}]},"DELETE":{"command":"deleteNetworkConditions","description":"Disable any network throttling which might have been set. Equivalent of setting the `No throttling` preset.","ref":"https://github.com/bayandin/chromedriver/blob/v2.45/window_commands.cc#L1724-L1745","parameters":[]}},"/session/:sessionId/chromium/send_command":{"POST":{"command":"sendCommand","description":"Send a command to the DevTools debugger.<br />For a list of available commands and their parameters refer to the [Chrome DevTools Protocol Viewer](https://chromedevtools.github.io/devtools-protocol/).","ref":"https://github.com/bayandin/chromedriver/blob/v2.45/window_commands.cc#L1290-L1304","parameters":[{"name":"cmd","type":"string","description":"Name of the command (e.g. [`Browser.close`](https://chromedevtools.github.io/devtools-protocol/1-3/Browser#method-close)).","required":true},{"name":"params","type":"object","description":"Parameters to the command. In case no parameters for command, specify an empty object.","required":true}]}},"/session/:sessionId/chromium/send_command_and_get_result":{"POST":{"command":"sendCommandAndGetResult","description":"Send a command to the DevTools debugger and wait for the result.<br />For a list of available commands and their parameters refer to the [Chrome DevTools Protocol Viewer](https://chromedevtools.github.io/devtools-protocol/).","ref":"https://github.com/bayandin/chromedriver/blob/v2.45/window_commands.cc#L1306-L1320","parameters":[{"name":"cmd","type":"string","description":"Name of the command which returns a result (e.g. [`Network.getAllCookies`](https://chromedevtools.github.io/devtools-protocol/1-3/Network#method-getAllCookies)).","required":true},{"name":"params","type":"object","description":"Parameters to the command. In case no parameters for command, specify an empty object.","required":true}],"returns":{"type":"*","name":"result","description":"Either the return value of your command, or the error which was the reason for your command\'s failure."}}},"/session/:sessionId/file":{"POST":{"command":"file","description":"Upload a file to remote machine on which the browser is running.","ref":"https://github.com/bayandin/chromedriver/blob/v2.45/session_commands.cc#L1037-L1065","parameters":[{"name":"file","type":"string","description":"Base64-encoded zip archive containing __single__ file which to upload. In case base64-encoded data does not represent a zip archive or archive contains more than one file it will throw an unknown error.","required":true}],"returns":{"type":"String","name":"path","description":"Absolute path of uploaded file on remote machine."}}},"/session/:sessionId/chromium/launch_app":{"POST":{"command":"launchChromeApp","description":"Launches a Chrome app by specified id.","ref":"https://github.com/bayandin/chromedriver/blob/v2.45/session_commands.cc#L521-L539","examples":[["const browser = remote({"," capabilities: {"," browserName: \'chrome\',"," \'goog:chromeOptions\': {"," // Install upon starting browser in order to launch it"," extensions: ["," // Entry should be a base64-encoded packed Chrome app (.crx)"," require(\'fs\').readFileSync(\'/absolute/path/app.crx\').toString(\'base64\')"," ]"," }"," }","});","browser.launchChromeApp(\'aohghmighlieiainnegkcijnfilokake\')); // Google Docs (https://chrome.google.com/webstore/detail/docs/aohghmighlieiainnegkcijnfilokake)"]],"parameters":[{"name":"id","type":"string","description":"Extension id of app to be launched, as defined in chrome://extensions.","required":true}]}},"/session/:sessionId/element/:elementId/value":{"GET":{"command":"getElementValue","description":"Retrieves the value of a given form control element.","ref":"https://github.com/bayandin/chromedriver/blob/v2.45/element_commands.cc#L431-L443","variables":[{"name":"elementId","description":"id of element to get value from"}],"parameters":[],"returns":{"type":"String|Null","name":"value","description":"Current value of the element. In case specified element is not a form control element, it will return `null`."}}},"/session/:sessionId/element/:elementId/hover":{"POST":{"command":"elementHover","description":"Enable hover state for an element, which is reset upon next interaction.","ref":"https://github.com/bayandin/chromedriver/blob/v2.45/element_commands.cc#L126-L146","variables":[{"name":"elementId","description":"id of element to hover over to"}],"parameters":[]}},"/session/:sessionId/touch/pinch":{"POST":{"command":"touchPinch","description":"Trigger a pinch zoom effect.","ref":"https://github.com/bayandin/chromedriver/blob/v2.45/window_commands.cc#L813-L827","parameters":[{"name":"x","type":"number","description":"x position to pinch on","required":true},{"name":"y","type":"number","description":"y position to pinch on","required":true},{"name":"scale","type":"number","description":"pinch zoom scale","required":true}]}},"/session/:sessionId/goog/page/freeze":{"POST":{"command":"freeze","description":"Freeze the current page. Extension for [Page Lifecycle API](https://developers.google.com/web/updates/2018/07/page-lifecycle-api).","ref":"https://github.com/bayandin/chromedriver/blob/v2.45/window_commands.cc#L625-L633","parameters":[]}},"/session/:sessionId/goog/page/resume":{"POST":{"command":"resume","description":"Resume the current page. Extension for [Page Lifecycle API](https://developers.google.com/web/updates/2018/07/page-lifecycle-api).","ref":"https://github.com/bayandin/chromedriver/blob/v2.45/window_commands.cc#L635-L645","parameters":[]}},"/session/:sessionId/goog/cast/get_sinks":{"GET":{"command":"getCastSinks","description":"Returns the list of cast sinks (Cast devices) available to the Chrome media router.","ref":"https://chromium.googlesource.com/chromium/src/+/refs/tags/73.0.3683.121/chrome/test/chromedriver/server/http_handler.cc#748","parameters":[],"returns":{"type":"string[]","name":"sinks","description":"List of available sinks."}}},"/session/:sessionId/goog/cast/set_sink_to_use":{"POST":{"command":"selectCastSink","description":"Selects a cast sink (Cast device) as the recipient of media router intents (connect or play).","ref":"https://chromium.googlesource.com/chromium/src/+/refs/tags/73.0.3683.121/chrome/test/chromedriver/server/http_handler.cc#737","parameters":[{"name":"sinkName","type":"string","description":"The name of the target device.","required":true}]}},"/session/:sessionId/goog/cast/start_tab_mirroring":{"POST":{"command":"startCastTabMirroring","description":"Initiates tab mirroring for the current browser tab on the specified device.","ref":"https://chromium.googlesource.com/chromium/src/+/refs/tags/73.0.3683.121/chrome/test/chromedriver/server/http_handler.cc#741","parameters":[{"name":"sinkName","type":"string","description":"The name of the target device.","required":true}]}},"/session/:sessionId/goog/cast/get_issue_message":{"GET":{"command":"getCastIssueMessage","description":"Returns error message if there is any issue in a Cast session.","ref":"https://chromium.googlesource.com/chromium/src/+/refs/tags/73.0.3683.121/chrome/test/chromedriver/server/http_handler.cc#751","parameters":[],"returns":{"type":"String","name":"message","description":"Error message, if any."}}},"/session/:sessionId/goog/cast/stop_casting":{"POST":{"command":"stopCasting","description":"Stops casting from media router to the specified device, if connected.","ref":"https://chromium.googlesource.com/chromium/src/+/refs/tags/73.0.3683.121/chrome/test/chromedriver/server/http_handler.cc#744","parameters":[{"name":"sinkName","type":"string","description":"The name of the target device.","required":true}]}},"/shutdown":{"POST":{"command":"shutdown","description":"Shutdown ChromeDriver process and consequently terminating all active sessions.","ref":"https://github.com/bayandin/chromedriver/blob/v2.45/session_commands.cc#L489-L498","parameters":[]}},"/session/:sessionId/element/:elementId/screenshot":{"GET":{"command":"takeElementScreenshot","description":"The Take Element Screenshot command takes a screenshot of the visible region encompassed by the bounding rectangle of an element.","ref":"https://w3c.github.io/webdriver/#dfn-take-element-screenshot","variables":[{"name":"elementId","description":"the id of an element returned in a previous call to Find Element(s)"}],"parameters":[{"name":"scroll","type":"boolean","description":"scroll into view the element. Default: true","required":false}],"returns":{"type":"String","name":"screenshot","description":"The base64-encoded PNG image data comprising the screenshot of the visible region of an element’s bounding rectangle after it has been scrolled into view."}}},"/session/:sessionId/se/log/types":{"GET":{"command":"getLogTypes","description":"Get available log types.","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidlogtypes","parameters":[],"returns":{"type":"String[]","name":"logTypes","description":"The list of available log types, example: browser, driver."}}},"/session/:sessionId/se/log":{"POST":{"command":"getLogs","description":"Get the log for a given log type. Log buffer is reset after each request.","ref":"https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidlog","parameters":[{"name":"type","type":"string","description":"the log type","required":true}],"returns":{"type":"Object[]","name":"logs","description":"The list of log entries."}}}}')})),P.register("cVNgd",(function(e,t){e.exports=JSON.parse('{"/session/:sessionId/moz/screenshot/full":{"GET":{"command":"fullPageScreenshot","description":"Captures a screenshot of the entire page.","ref":"https://phabricator.services.mozilla.com/source/mozilla-central/browse/default/testing/geckodriver/src/command.rs$43-46","parameters":[],"returns":{"type":"String","name":"screenshot","description":"The base64-encoded PNG image data comprising the screenshot of the full page."}}},"/session/:sessionId/moz/context":{"GET":{"command":"getMozContext","description":"Get the context that is currently in effect, e.g. `CHROME` or `CONTENT`.","ref":"https://github.com/SeleniumHQ/selenium/blob/586affe0cf675b1d5c8abc756defa4a46d95391b/javascript/node/selenium-webdriver/firefox.js#L615-L622","examples":[["console.log(await browser.getMozContext()); // outputs: \'CHROME\'"]],"parameters":[],"returns":{"type":"String","name":"Context","description":"The browser context, either `CHROME` or `CONTENT`"}},"POST":{"command":"setMozContext","description":"Changes target context for commands between chrome- and content.<br /><br />Changing the current context has a stateful impact on all subsequent commands. The `CONTENT` context has normal web platform document permissions, as if you would evaluate arbitrary JavaScript. The `CHROME` context gets elevated permissions that lets you manipulate the browser chrome itself, with full access to the XUL toolkit.","ref":"https://github.com/SeleniumHQ/selenium/blob/586affe0cf675b1d5c8abc756defa4a46d95391b/javascript/node/selenium-webdriver/firefox.js#L615-L645","examples":[["console.log(await browser.getMozContext()); // outputs: \'CHROME\'","browser.setMozContext(\'CONTENT\');","console.log(await browser.getMozContext()); // outputs: \'CONTENT\'"]],"parameters":[{"name":"context","type":"string","description":"The browser context, either `CHROME` or `CONTENT`","required":true}]}},"/session/:sessionId/moz/addon/install":{"POST":{"command":"installAddOn","description":"Installs a new addon with the current session. This function will return an ID that may later be used to uninstall the addon using `uninstallAddon`.","ref":"https://github.com/SeleniumHQ/selenium/blob/586affe0cf675b1d5c8abc756defa4a46d95391b/javascript/node/selenium-webdriver/firefox.js#L647-L668","examples":[["// Create a buffer of the add on .zip file","const extension = await fs.promises.readFile(\'/path/to/extension.zip\')","// Load extension in Firefox","const id = await browser.installAddOn(extension.toString(\'base64\'), false);"]],"parameters":[{"name":"addon","type":"string","description":"base64 string of the add on file","required":true},{"name":"temporary","type":"boolean","description":"temporary Flag indicating whether the extension should be installed temporarily - gets removed on restart","required":true}],"returns":{"type":"String","name":"id","description":"A promise that will resolve to an ID for the newly installed addon."}}},"/session/:sessionId/moz/addon/uninstall":{"GET":{"command":"uninstallAddOn","description":"Uninstalls an addon from the current browser session\'s profile.","ref":"https://github.com/SeleniumHQ/selenium/blob/586affe0cf675b1d5c8abc756defa4a46d95391b/javascript/node/selenium-webdriver/firefox.js#L670-L687","examples":[["// Create a buffer of the add on .zip file","const extension = await fs.promises.readFile(\'/path/to/extension.zip\')","// Load extension in Firefox","const id = await browser.installAddOn(extension.toString(\'base64\'), false);","// ...","await browser.uninstallAddOn(id)"]],"parameters":[{"name":"id","type":"string","description":"id ID of the addon to uninstall.","required":true}]}}}')})),P.register("2wi4h",(function(e,t){e.exports=JSON.parse('{"/session/:sessionId/sauce/ondemand/log":{"POST":{"command":"getPageLogs","description":"Get webpage specific log information based on the last page load.","ref":"https://wiki.saucelabs.com/display/DOCS/Custom+Sauce+Labs+WebDriver+Extensions+for+Network+and+Log+Commands#CustomSauceLabsWebDriverExtensionsforNetworkandLogCommands-ExtendedDebuggingTools","examples":[["// Get Network Logs","console.log(browser.getPageLogs(\'sauce:network\'));","/**"," * outputs:"," * [{"," * \\"url\\": \\"https://app.saucelabs.com/dashboard\\","," * \\"statusCode\\": 200,"," * \\"method\\": \\"GET\\","," * \\"requestHeaders\\": {"," * ..."," * },"," * \\"responseHeaders\\": {"," * ..."," * },"," * \\"timing\\": {"," * ..."," * }"," * }, {,"," * ..."," * }]"," */"],["// Get Performance Logs (needs capturePerformance capability see: https://wiki.saucelabs.com/display/DOCS/Measure+Page+Load+Performance+Using+Test+Automation#MeasurePageLoadPerformanceUsingTestAutomation-EnableYourScript)","console.log(browser.getPageLogs(\'sauce:performance\'));","/**"," * outputs:"," * {"," * \\"speedIndex\\": 1472.023,"," * \\"timeToFirstInteractive\\": 1243.214,"," * \\"firstMeaningfulPaint\\": 892.643,"," * ..."," * }"," */"]],"parameters":[{"name":"type","type":"string","description":"log type (e.g. sauce:network\', \'sauce:performance\')","required":true}],"returns":{"type":"object","name":"log","description":"log output of desired type (see example)"}}},"/session/:sessionId/sauce/ondemand/throttle/network":{"POST":{"command":"throttleNetwork","description":"With network conditioning you can test your site on a variety of network connections, including Edge, 3G, and even offline. You can throttle the data throughput, including the maximum download and upload throughput, and use latency manipulation to enforce a minimum delay in connection round-trip time (RTT).","ref":"https://wiki.saucelabs.com/display/DOCS/Custom+Sauce+Labs+WebDriver+Extensions+for+Network+and+Log+Commands#CustomSauceLabsWebDriverExtensionsforNetworkandLogCommands-ThrottleNetworkCapabilities","examples":[["// predefined network condition","browser.throttleNetwork(\'offline\')"],["// custom network condition","browser.throttleNetwork({"," download: 1000,"," upload: 500,"," latency: 40\'","})"]],"parameters":[{"name":"condition","type":"(string|object)","description":"network condition to set (e.g. \'online\', \'offline\', \'GPRS\', \'Regular 2G\', \'Good 2G\', \'Regular 3G\', \'Good 3G\', \'Regular 4G\', \'DSL\', \'Wifi\')","required":true}]}},"/session/:sessionId/sauce/ondemand/throttle/cpu":{"POST":{"command":"throttleCPU","description":"You can throttle the CPU in DevTools to understand how your page performs under that constraint.","ref":"https://wiki.saucelabs.com/display/DOCS/Custom+Sauce+Labs+WebDriver+Extensions+for+Network+and+Log+Commands#CustomSauceLabsWebDriverExtensionsforNetworkandLogCommands-ThrottleCPUCapabilities","examples":[["// throttle CPU and make it run 4x slower","browser.throttleCPU(4)"],["// reset CPU throttling","browser.throttleCPU(0)"]],"parameters":[{"name":"rate","type":"number","description":"Rate on how much the CPU should get throttled.","required":true}]}},"/session/:sessionId/sauce/ondemand/intercept":{"POST":{"command":"interceptRequest","description":"Allows modifying any request made by the browser. You can blacklist, modify, or redirect these as required for your tests.","ref":"https://wiki.saucelabs.com/display/DOCS/Custom+Sauce+Labs+WebDriver+Extensions+for+Network+and+Log+Commands#CustomSauceLabsWebDriverExtensionsforNetworkandLogCommands-InterceptNetworkRequests","examples":[["// redirect a request","browser.interceptRequest({"," url: \'https://saucelabs.com\',"," redirect: \'https://google.com\'","})"],["// Blacklist requests to 3rd party vendors","browser.interceptRequest({"," url: \'https://api.segment.io/v1/p\',"," error: \'Failed\'","})"],["// Modify requests to REST API (Mock REST API response)","browser.interceptRequest({"," url: \'http://sampleapp.appspot.com/api/todos\',"," response: {"," headers: {"," \'x-custom-headers\': \'foobar\'"," },"," body: [{"," title: \'My custom todo\',"," order: 1,"," completed: false,"," url: \'http://todo-backend-express.herokuapp.com/15727\'"," }]"," }","})"]],"parameters":[{"name":"rule","type":"object","description":"A rule describing the request interception.","required":true}]}},"/session/:sessionId/sauce/ondemand/performance":{"POST":{"command":"assertPerformance","description":"Assert against the performance baseline of your app.","ref":"https://wiki.saucelabs.com/display/DOCS/Custom+Sauce+Labs+WebDriver+Extensions+for+Network+and+Log+Commands","examples":[["// test performance for a page","browser.url(\'https://webdriver.io\')","const hasRegression = browser.assertPerformance({"," name: \'my performance test\', // make sure that the name is also set in the sauce options in your capabilities"," metrics: [\'score\', \'firstPaint\']","})"]],"parameters":[{"name":"name","type":"string","description":"Name of the job you created your baseline with.","required":true},{"name":"metrics","type":"string[]","description":"Name of metrics you want to assert agains the baseline.","required":false}],"returns":{"type":"object","name":"hasRegression","description":"An object containing the result as well as metrics about the result."}}},"/session/:sessionId/sauce/ondemand/performance/scroll":{"POST":{"command":"jankinessCheck","description":"Perform a scroll test that evaluates the jankiness of the application.","ref":"https://wiki.saucelabs.com/display/DOCS/Custom+Sauce+Labs+WebDriver+Extensions+for+Network+and+Log+Commands","examples":[["// test performance for a page","browser.url(\'https://webdriver.io\')","browser.jankinessCheck()"]],"parameters":[],"returns":{"type":"object","name":"testResults","description":"An object containing the score as well as metrics around how smooth the UX of the page was during the test."}}},"/session/:sessionId/sauce/ondemand/mock":{"POST":{"command":"mockRequest","description":"Mocks a network resource.","ref":"https://wiki.saucelabs.com/display/DOCS/Custom+Sauce+Labs+WebDriver+Extensions+for+Network+and+Log+Commands","parameters":[{"name":"url","type":"string","description":"URL glob to match url to mock.","required":true},{"name":"filterOptions","description":"Additional filter options for url to mock (e.g. headers, method).","type":"object","required":false}],"returns":{"type":"object","name":"mockId","description":"An object containing the id of a mock resource."}}},"/session/:sessionId/sauce/ondemand/mock/:mockId":{"GET":{"command":"getMockCalls","description":"Receive request information about requests that match the mocked resource.","ref":"https://wiki.saucelabs.com/display/DOCS/Custom+Sauce+Labs+WebDriver+Extensions+for+Network+and+Log+Commands","variables":[{"name":"mockId","description":"the id of a mock"}],"parameters":[],"returns":{"type":"object","name":"requests","description":"A list of request information."}},"DELETE":{"command":"clearMockCalls","description":"Clear list of mock calls.","ref":"https://wiki.saucelabs.com/display/DOCS/Custom+Sauce+Labs+WebDriver+Extensions+for+Network+and+Log+Commands","variables":[{"name":"mockId","description":"the id of a mock"}],"parameters":[{"type":"boolean","name":"restore","description":"Set to true if mock should be restored as well.","required":false}]},"POST":{"command":"respondMock","description":"Respond if mock matches a specific resource.","ref":"https://wiki.saucelabs.com/display/DOCS/Custom+Sauce+Labs+WebDriver+Extensions+for+Network+and+Log+Commands","variables":[{"name":"mockId","description":"the id of a mock"}],"parameters":[{"type":"object","name":"payload","description":"Information on mock response."}]}}}')})),P.register("907ST",(function(e,t){e.exports=JSON.parse('{"/session/:sessionId/file":{"POST":{"command":"file","description":"Upload a file to remote machine on which the browser is running.","ref":"https://www.seleniumhq.org/","parameters":[{"name":"file","type":"string","description":"Base64-encoded zip archive containing __single__ file which to upload. In case base64-encoded data does not represent a zip archive or archive contains more than one file it will throw an unknown error.","required":true}],"returns":{"type":"String","name":"path","description":"Absolute path of uploaded file on remote machine."}}},"/grid/api/hub/":{"GET":{"isHubCommand":true,"command":"getHubConfig","description":"Receive hub config remotely.","ref":"https://github.com/nicegraham/selenium-grid2-api#gridapihub","parameters":[],"returns":{"type":"Object","name":"config","description":"Returns the hub config with slotCount, timeouts and other information."}}},"/grid/api/testsession?session=:session":{"GET":{"isHubCommand":true,"command":"gridTestSession","description":"Get the details of the Selenium Grid node running a session.","ref":"https://github.com/nicegraham/selenium-grid2-api#gridapitestsession","parameters":[],"variables":[{"name":"session","description":"The id of the session to receive hub details for."}],"returns":{"type":"Object","name":"details","description":"Object containing information about session details."}}},"/grid/api/proxy":{"GET":{"isHubCommand":true,"command":"gridProxyDetails","description":"Get proxy details.","ref":"https://github.com/nicegraham/selenium-grid2-api#gridapiproxy","parameters":[{"name":"id","type":"string","description":"the id of the proxy (can be received using gridTestSession command).","required":true}],"returns":{"type":"Object","name":"details","description":"Object containing information about proxy."}}},"/lifecycle-manager?action=:action":{"GET":{"isHubCommand":true,"command":"manageSeleniumHubLifecycle","description":"Manage lifecycle of hub node.","ref":"https://github.com/nicegraham/selenium-grid2-api#lifecycle-manager","parameters":[],"variables":[{"name":"action","description":"Command to call on Selenium Hub. The only implemented action is to \'shutdown\' the hub."}]}},"/graphql":{"POST":{"isHubCommand":true,"command":"queryGrid","description":"Send GraphQL queries to the Selenium (hub or node) server to fetch data. (Only supported with Selenium v4 Server)","ref":"https://www.selenium.dev/documentation/grid/advanced_features/graphql_support/","parameters":[{"name":"query","type":"string","description":"A GraphQL query to be send to the server.","required":true}],"examples":[["const result = await browser.queryGrid(\'{ nodesInfo { nodes { status, uri } } }\');","console.log(JSON.stringify(result, null, 4))","/**"," * outputs:"," * {"," * \\"data\\": {"," * \\"nodesInfo\\": {"," * \\"nodes\\": [{"," * \\"status\\": \\"UP\\","," * \\"uri\\": \\"http://192.168.0.39:4444\\""," * }]"," * }"," * }"," * }"," */"]],"returns":{"type":"Object","name":"data","description":"Result of the GraphQL query."}}}}')})),P.register("eWssa",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0})})),P.register("6oiT0",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.REG_EXPS=e.exports.DEFAULTS=void 0,e.exports.DEFAULTS={protocol:{type:"string",default:"http",match:/(http|https)/},hostname:{type:"string",default:"localhost"},port:{type:"number",default:4444},path:{type:"string",validate:e=>{if(!e.startsWith("/"))throw new TypeError('The option "path" needs to start with a "/"');return!0},default:"/"},queryParams:{type:"object"},user:{type:"string"},key:{type:"string"},capabilities:{type:"object",required:!0},logLevel:{type:"string",default:"info",match:/(trace|debug|info|warn|error|silent)/},outputDir:{type:"string"},connectionRetryTimeout:{type:"number",default:12e4},connectionRetryCount:{type:"number",default:3},agent:{type:"object"},logLevels:{type:"object"},headers:{type:"object"},transformRequest:{type:"function",default:e=>e},transformResponse:{type:"function",default:e=>e},enableDirectConnect:{type:"boolean",default:!0},strictSSL:{type:"boolean",default:!0}},e.exports.REG_EXPS={commandName:/.*\/session\/[0-9a-f-]+\/(.*)/,execFn:/return \(([\s\S]*)\)\.apply\(null, arguments\)/}})),P.register("QZzoB",(function(e,t){e.exports=JSON.parse('{"name":"webdriver","version":"7.31.1","description":"A Node.js bindings implementation for the W3C WebDriver and Mobile JSONWire Protocol","author":"Christian Bromann <mail@bromann.dev>","homepage":"https://github.com/webdriverio/webdriverio/tree/main/packages/webdriver","license":"MIT","main":"./build","engines":{"node":">=12.0.0"},"types":"./build/index.d.ts","typeScriptVersion":"3.8.3","repository":{"type":"git","url":"git://github.com/webdriverio/webdriverio.git"},"keywords":["webdriver"],"bugs":{"url":"https://github.com/webdriverio/webdriverio/issues"},"devDependencies":{"@types/lodash.merge":"^4.6.6"},"dependencies":{"@types/node":"^18.0.0","@wdio/config":"7.31.1","@wdio/logger":"7.26.0","@wdio/protocols":"7.27.0","@wdio/types":"7.30.2","@wdio/utils":"7.30.2","got":"^11.0.2","ky":"0.30.0","lodash.merge":"^4.6.1"},"gitHead":"9fdf0b6936aadd2b1f2f715ffe024f976287cc56"}')})),P.register("9RSM6",(function(e,t){var r=c.Buffer,n=e.exports&&e.exports.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e.exports,"__esModule",{value:!0});const o=n(P("aZBcl")),i=n(P("4z1vt")),s=n(P("5L7JP")),a=(0,o.default)("webdriver"),u=["agent","responseType","searchParams"];class l extends i.default{constructor(e,t,r,n=!1){super(e,t,r,n)}_createOptions(e,t){return super._createOptions(e,t,!0)}async _libRequest(e,t){const n={};for(const e of Object.keys(t))void 0!==t[e]&&u.includes(e)&&t[e]!==this.defaultOptions[e]?a.info(`Browser-based webdriver does not support the '${String(e)}' option; behavior may be unexpected`):n[e]=t[e];if(t.username&&t.password){const e=r.from(`${t.username}:${t.password}`,"utf8").toString("base64");n.headers={...n.headers,Authorization:`Basic ${e}`}}const o=await(0,s.default)(e,n);return{statusCode:o.status,body:await o.json()}}_libPerformanceNow(){return performance.now()}}e.exports.default=l})),P.register("5L7JP",(function(e,t){k(e.exports),E(e.exports,"default",(()=>s)),E(e.exports,"HTTPError",(()=>P("i5xvO").HTTPError)),E(e.exports,"TimeoutError",(()=>P("9faA3").TimeoutError));
|
|
18
18
|
/*! MIT License © Sindre Sorhus */
|
|
19
|
-
var r=P("iPtHj"),n=P("hWIin"),o=P("ggxXU");P("i5xvO"),P("9faA3");const i=e=>{const t=(t,n)=>r.Ky.create(t,(0,o.validateAndMerge)(e,n));for(const i of n.requestMethods)t[i]=(t,n)=>r.Ky.create(t,(0,o.validateAndMerge)(e,n,{method:i}));return t.create=e=>i((0,o.validateAndMerge)(e)),t.extend=t=>i((0,o.validateAndMerge)(e,t)),t.stop=n.stop,t};var s=i()})),P.register("iPtHj",(function(e,t){E(e.exports,"Ky",(()=>c));var r=P("i5xvO"),n=P("9faA3"),o=P("ggxXU"),i=P("5xAky"),s=P("isrK8"),a=P("hWIin");class c{constructor(e,t={}){var r,n,s;if(this._retryCount=0,this._input=e,this._options={credentials:this._input.credentials||"same-origin",...t,headers:(0,o.mergeHeaders)(this._input.headers,t.headers),hooks:(0,o.deepMerge)({beforeRequest:[],beforeRetry:[],beforeError:[],afterResponse:[]},t.hooks),method:(0,i.normalizeRequestMethod)(null!==(r=t.method)&&void 0!==r?r:this._input.method),prefixUrl:String(t.prefixUrl||""),retry:(0,i.normalizeRetryOptions)(t.retry),throwHttpErrors:!1!==t.throwHttpErrors,timeout:void 0===t.timeout?1e4:t.timeout,fetch:null!==(n=t.fetch)&&void 0!==n?n:globalThis.fetch.bind(globalThis)},"string"!=typeof this._input&&!(this._input instanceof URL||this._input instanceof globalThis.Request))throw new TypeError("`input` must be a string, URL, or Request");if(this._options.prefixUrl&&"string"==typeof this._input){if(this._input.startsWith("/"))throw new Error("`input` must not begin with a slash when using `prefixUrl`");this._options.prefixUrl.endsWith("/")||(this._options.prefixUrl+="/"),this._input=this._options.prefixUrl+this._input}if(a.supportsAbortController&&(this.abortController=new globalThis.AbortController,this._options.signal&&this._options.signal.addEventListener("abort",(()=>{this.abortController.abort()})),this._options.signal=this.abortController.signal),this.request=new globalThis.Request(this._input,this._options),this._options.searchParams){const e="?"+("string"==typeof this._options.searchParams?this._options.searchParams.replace(/^\?/,""):new URLSearchParams(this._options.searchParams).toString()),t=this.request.url.replace(/(?:\?.*?)?(?=#|$)/,e);!(a.supportsFormData&&this._options.body instanceof globalThis.FormData||this._options.body instanceof URLSearchParams)||this._options.headers&&this._options.headers["content-type"]||this.request.headers.delete("content-type"),this.request=new globalThis.Request(new globalThis.Request(t,this.request),this._options)}void 0!==this._options.json&&(this._options.body=JSON.stringify(this._options.json),this.request.headers.set("content-type",null!==(s=this._options.headers.get("content-type"))&&void 0!==s?s:"application/json"),this.request=new globalThis.Request(this.request,{body:this._options.body}))}static create(e,t){const n=new c(e,t),o=async()=>{if(n._options.timeout>a.maxSafeTimeout)throw new RangeError(`The \`timeout\` option cannot be greater than ${a.maxSafeTimeout}`);await Promise.resolve();let e=await n._fetch();for(const t of n._options.hooks.afterResponse){const r=await t(n.request,n._options,n._decorateResponse(e.clone()));r instanceof globalThis.Response&&(e=r)}if(n._decorateResponse(e),!e.ok&&n._options.throwHttpErrors){let t=new(0,r.HTTPError)(e,n.request,n._options);for(const e of n._options.hooks.beforeError)t=await e(t);throw t}if(n._options.onDownloadProgress){if("function"!=typeof n._options.onDownloadProgress)throw new TypeError("The `onDownloadProgress` option must be a function");if(!a.supportsStreams)throw new Error("Streams are not supported in your environment. `ReadableStream` is missing.");return n._stream(e.clone(),n._options.onDownloadProgress)}return e},i=n._options.retry.methods.includes(n.request.method.toLowerCase())?n._retry(o):o();for(const[e,r]of Object.entries(a.responseTypes))i[e]=async()=>{n.request.headers.set("accept",n.request.headers.get("accept")||r);const o=(await i).clone();if("json"===e){if(204===o.status)return"";if(t.parseJson)return t.parseJson(await o.text())}return o[e]()};return i}_calculateRetryDelay(e){if(this._retryCount++,this._retryCount<this._options.retry.limit&&!(e instanceof n.TimeoutError)){if(e instanceof r.HTTPError){if(!this._options.retry.statusCodes.includes(e.response.status))return 0;const t=e.response.headers.get("Retry-After");if(t&&this._options.retry.afterStatusCodes.includes(e.response.status)){let e=Number(t);return Number.isNaN(e)?e=Date.parse(t)-Date.now():e*=1e3,void 0!==this._options.retry.maxRetryAfter&&e>this._options.retry.maxRetryAfter?0:e}if(413===e.response.status)return 0}return.3*2**(this._retryCount-1)*1e3}return 0}_decorateResponse(e){return this._options.parseJson&&(e.json=async()=>this._options.parseJson(await e.text())),e}async _retry(e){try{return await e()}catch(t){const r=Math.min(this._calculateRetryDelay(t),a.maxSafeTimeout);if(0!==r&&this._retryCount>0){await(0,s.delay)(r);for(const e of this._options.hooks.beforeRetry){if(await e({request:this.request,options:this._options,error:t,retryCount:this._retryCount})===a.stop)return}return this._retry(e)}throw t}}async _fetch(){for(const e of this._options.hooks.beforeRequest){const t=await e(this.request,this._options);if(t instanceof Request){this.request=t;break}if(t instanceof Response)return t}return!1===this._options.timeout?this._options.fetch(this.request.clone()):(0,s.timeout)(this.request.clone(),this.abortController,this._options)}_stream(e,t){const r=Number(e.headers.get("content-length"))||0;let n=0;return new globalThis.Response(new globalThis.ReadableStream({async start(o){const i=e.body.getReader();t&&t({percent:0,transferredBytes:0,totalBytes:r},new Uint8Array),await async function e(){const{done:s,value:a}=await i.read();if(s)o.close();else{if(t){n+=a.byteLength;t({percent:0===r?0:n/r,transferredBytes:n,totalBytes:r},a)}o.enqueue(a),await e()}}()}}))}}})),P.register("i5xvO",(function(e,t){E(e.exports,"HTTPError",(()=>r));class r extends Error{constructor(e,t,r){const n=`${e.status||0===e.status?e.status:""} ${e.statusText||""}`.trim();super(`Request failed with ${n?`status code ${n}`:"an unknown error"}`),this.name="HTTPError",this.response=e,this.request=t,this.options=r}}})),P.register("9faA3",(function(e,t){E(e.exports,"TimeoutError",(()=>r));class r extends Error{constructor(e){super("Request timed out"),this.name="TimeoutError",this.request=e}}})),P.register("ggxXU",(function(e,t){E(e.exports,"validateAndMerge",(()=>n)),E(e.exports,"deepMerge",(()=>i)),E(e.exports,"mergeHeaders",(()=>o));var r=P("9N2Yf");const n=(...e)=>{for(const t of e)if((!(0,r.isObject)(t)||Array.isArray(t))&&void 0!==t)throw new TypeError("The `options` argument must be an object");return i({},...e)},o=(e={},t={})=>{const r=new globalThis.Headers(e),n=t instanceof globalThis.Headers,o=new globalThis.Headers(t);for(const[e,t]of o.entries())n&&"undefined"===t||void 0===t?r.delete(e):r.set(e,t);return r},i=(...e)=>{let t={},n={};for(const s of e)if(Array.isArray(s))Array.isArray(t)||(t=[]),t=[...t,...s];else if((0,r.isObject)(s)){for(let[e,n]of Object.entries(s))(0,r.isObject)(n)&&e in t&&(n=i(t[e],n)),t={...t,[e]:n};(0,r.isObject)(s.headers)&&(n=o(n,s.headers),t.headers=n)}return t}})),P.register("9N2Yf",(function(e,t){E(e.exports,"isObject",(()=>r));const r=e=>null!==e&&"object"==typeof e})),P.register("5xAky",(function(e,t){E(e.exports,"normalizeRequestMethod",(()=>n)),E(e.exports,"normalizeRetryOptions",(()=>s));var r=P("hWIin");const n=e=>r.requestMethods.includes(e)?e.toUpperCase():e,o=[413,429,503],i={limit:2,methods:["get","put","head","delete","options","trace"],statusCodes:[408,413,429,500,502,503,504],afterStatusCodes:o,maxRetryAfter:Number.POSITIVE_INFINITY},s=(e={})=>{if("number"==typeof e)return{...i,limit:e};if(e.methods&&!Array.isArray(e.methods))throw new Error("retry.methods must be an array");if(e.statusCodes&&!Array.isArray(e.statusCodes))throw new Error("retry.statusCodes must be an array");return{...i,...e,afterStatusCodes:o}}})),P.register("hWIin",(function(e,t){E(e.exports,"supportsAbortController",(()=>r)),E(e.exports,"supportsStreams",(()=>n)),E(e.exports,"supportsFormData",(()=>o)),E(e.exports,"requestMethods",(()=>i)),E(e.exports,"responseTypes",(()=>s)),E(e.exports,"maxSafeTimeout",(()=>a)),E(e.exports,"stop",(()=>c));const r="function"==typeof globalThis.AbortController,n="function"==typeof globalThis.ReadableStream,o="function"==typeof globalThis.FormData,i=["get","post","put","patch","head","delete"],s={json:"application/json",text:"text/*",formData:"multipart/form-data",arrayBuffer:"*/*",blob:"*/*"},a=2147483647,c=Symbol("stop")})),P.register("isrK8",(function(e,t){E(e.exports,"timeout",(()=>n)),E(e.exports,"delay",(()=>o));var r=P("9faA3");const n=async(e,t,n)=>new Promise(((o,i)=>{const s=setTimeout((()=>{t&&t.abort(),i(new(0,r.TimeoutError)(e))}),n.timeout);n.fetch(e).then(o).catch(i).then((()=>{clearTimeout(s)}))})),o=async e=>new Promise((t=>{setTimeout(t,e)}))})),P.register("8WBmN",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0})})),P.register("g6WRe",(function(e,t){(function(){var n,i="Expected a function",s="__lodash_hash_undefined__",a="__lodash_placeholder__",c=16,u=32,l=64,d=128,p=256,f=1/0,h=9007199254740991,m=NaN,g=4294967295,y=[["ary",d],["bind",1],["bindKey",2],["curry",8],["curryRight",c],["flip",512],["partial",u],["partialRight",l],["rearg",p]],b="[object Arguments]",v="[object Array]",w="[object Boolean]",_="[object Date]",S="[object Error]",E="[object Function]",k="[object GeneratorFunction]",T="[object Map]",O="[object Number]",A="[object Object]",P="[object Promise]",I="[object RegExp]",j="[object Set]",R="[object String]",C="[object Symbol]",L="[object WeakMap]",N="[object ArrayBuffer]",q="[object DataView]",D="[object Float32Array]",M="[object Float64Array]",U="[object Int8Array]",F="[object Int16Array]",W="[object Int32Array]",B="[object Uint8Array]",z="[object Uint8ClampedArray]",H="[object Uint16Array]",G="[object Uint32Array]",$=/\b__p \+= '';/g,J=/\b(__p \+=) '' \+/g,Z=/(__e\(.*?\)|\b__t\)) \+\n'';/g,V=/&(?:amp|lt|gt|quot|#39);/g,Q=/[&<>"']/g,K=RegExp(V.source),X=RegExp(Q.source),Y=/<%-([\s\S]+?)%>/g,ee=/<%([\s\S]+?)%>/g,te=/<%=([\s\S]+?)%>/g,re=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ne=/^\w*$/,oe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ie=/[\\^$.*+?()[\]{}|]/g,se=RegExp(ie.source),ae=/^\s+/,ce=/\s/,ue=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,le=/\{\n\/\* \[wrapped with (.+)\] \*/,de=/,? & /,pe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,fe=/[()=,{}\[\]\/\s]/,he=/\\(\\)?/g,me=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ge=/\w*$/,ye=/^[-+]0x[0-9a-f]+$/i,be=/^0b[01]+$/i,ve=/^\[object .+?Constructor\]$/,we=/^0o[0-7]+$/i,_e=/^(?:0|[1-9]\d*)$/,Se=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ee=/($^)/,xe=/['\n\r\u2028\u2029\\]/g,ke="\ud800-\udfff",Te="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Oe="\\u2700-\\u27bf",Ae="a-z\\xdf-\\xf6\\xf8-\\xff",Pe="A-Z\\xc0-\\xd6\\xd8-\\xde",Ie="\\ufe0e\\ufe0f",je="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Re="['’]",Ce="[\ud800-\udfff]",Le="["+je+"]",Ne="["+Te+"]",qe="\\d+",De="["+Oe+"]",Me="["+Ae+"]",Ue="[^"+ke+je+qe+Oe+Ae+Pe+"]",Fe="\ud83c[\udffb-\udfff]",We="[^\ud800-\udfff]",Be="(?:\ud83c[\udde6-\uddff]){2}",ze="[\ud800-\udbff][\udc00-\udfff]",He="["+Pe+"]",Ge="\\u200d",$e="(?:"+Me+"|"+Ue+")",Je="(?:"+He+"|"+Ue+")",Ze="(?:['’](?:d|ll|m|re|s|t|ve))?",Ve="(?:['’](?:D|LL|M|RE|S|T|VE))?",Qe="(?:"+Ne+"|"+Fe+")"+"?",Ke="["+Ie+"]?",Xe=Ke+Qe+("(?:"+Ge+"(?:"+[We,Be,ze].join("|")+")"+Ke+Qe+")*"),Ye="(?:"+[De,Be,ze].join("|")+")"+Xe,et="(?:"+[We+Ne+"?",Ne,Be,ze,Ce].join("|")+")",tt=RegExp(Re,"g"),rt=RegExp(Ne,"g"),nt=RegExp(Fe+"(?="+Fe+")|"+et+Xe,"g"),ot=RegExp([He+"?"+Me+"+"+Ze+"(?="+[Le,He,"$"].join("|")+")",Je+"+"+Ve+"(?="+[Le,He+$e,"$"].join("|")+")",He+"?"+$e+"+"+Ze,He+"+"+Ve,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",qe,Ye].join("|"),"g"),it=RegExp("["+Ge+ke+Te+Ie+"]"),st=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,at=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ct=-1,ut={};ut[D]=ut[M]=ut[U]=ut[F]=ut[W]=ut[B]=ut[z]=ut[H]=ut[G]=!0,ut[b]=ut[v]=ut[N]=ut[w]=ut[q]=ut[_]=ut[S]=ut[E]=ut[T]=ut[O]=ut[A]=ut[I]=ut[j]=ut[R]=ut[L]=!1;var lt={};lt[b]=lt[v]=lt[N]=lt[q]=lt[w]=lt[_]=lt[D]=lt[M]=lt[U]=lt[F]=lt[W]=lt[T]=lt[O]=lt[A]=lt[I]=lt[j]=lt[R]=lt[C]=lt[B]=lt[z]=lt[H]=lt[G]=!0,lt[S]=lt[E]=lt[L]=!1;var dt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},pt=parseFloat,ft=parseInt,ht="object"==typeof x&&x&&x.Object===Object&&x,mt="object"==typeof self&&self&&self.Object===Object&&self,gt=ht||mt||Function("return this")(),yt=t&&!t.nodeType&&t,bt=yt&&e&&!e.nodeType&&e,vt=bt&&bt.exports===yt,wt=vt&&ht.process,_t=function(){try{var e=bt&&bt.require&&bt.require("util").types;return e||wt&&wt.binding&&wt.binding("util")}catch(e){}}(),St=_t&&_t.isArrayBuffer,Et=_t&&_t.isDate,xt=_t&&_t.isMap,kt=_t&&_t.isRegExp,Tt=_t&&_t.isSet,Ot=_t&&_t.isTypedArray;function At(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function Pt(e,t,r,n){for(var o=-1,i=null==e?0:e.length;++o<i;){var s=e[o];t(n,s,r(s),e)}return n}function It(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}function jt(e,t){for(var r=null==e?0:e.length;r--&&!1!==t(e[r],r,e););return e}function Rt(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0}function Ct(e,t){for(var r=-1,n=null==e?0:e.length,o=0,i=[];++r<n;){var s=e[r];t(s,r,e)&&(i[o++]=s)}return i}function Lt(e,t){return!!(null==e?0:e.length)&&Ht(e,t,0)>-1}function Nt(e,t,r){for(var n=-1,o=null==e?0:e.length;++n<o;)if(r(t,e[n]))return!0;return!1}function qt(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}function Dt(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}function Mt(e,t,r,n){var o=-1,i=null==e?0:e.length;for(n&&i&&(r=e[++o]);++o<i;)r=t(r,e[o],o,e);return r}function Ut(e,t,r,n){var o=null==e?0:e.length;for(n&&o&&(r=e[--o]);o--;)r=t(r,e[o],o,e);return r}function Ft(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var Wt=Zt("length");function Bt(e,t,r){var n;return r(e,(function(e,r,o){if(t(e,r,o))return n=r,!1})),n}function zt(e,t,r,n){for(var o=e.length,i=r+(n?1:-1);n?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function Ht(e,t,r){return t==t?function(e,t,r){var n=r-1,o=e.length;for(;++n<o;)if(e[n]===t)return n;return-1}(e,t,r):zt(e,$t,r)}function Gt(e,t,r,n){for(var o=r-1,i=e.length;++o<i;)if(n(e[o],t))return o;return-1}function $t(e){return e!=e}function Jt(e,t){var r=null==e?0:e.length;return r?Kt(e,t)/r:m}function Zt(e){return function(t){return null==t?n:t[e]}}function Vt(e){return function(t){return null==e?n:e[t]}}function Qt(e,t,r,n,o){return o(e,(function(e,o,i){r=n?(n=!1,e):t(r,e,o,i)})),r}function Kt(e,t){for(var r,o=-1,i=e.length;++o<i;){var s=t(e[o]);s!==n&&(r=r===n?s:r+s)}return r}function Xt(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function Yt(e){return e?e.slice(0,mr(e)+1).replace(ae,""):e}function er(e){return function(t){return e(t)}}function tr(e,t){return qt(t,(function(t){return e[t]}))}function rr(e,t){return e.has(t)}function nr(e,t){for(var r=-1,n=e.length;++r<n&&Ht(t,e[r],0)>-1;);return r}function or(e,t){for(var r=e.length;r--&&Ht(t,e[r],0)>-1;);return r}var ir=Vt({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),sr=Vt({"&":"&","<":"<",">":">",'"':""","'":"'"});function ar(e){return"\\"+dt[e]}function cr(e){return it.test(e)}function ur(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}function lr(e,t){return function(r){return e(t(r))}}function dr(e,t){for(var r=-1,n=e.length,o=0,i=[];++r<n;){var s=e[r];s!==t&&s!==a||(e[r]=a,i[o++]=r)}return i}function pr(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}function fr(e){return cr(e)?function(e){var t=nt.lastIndex=0;for(;nt.test(e);)++t;return t}(e):Wt(e)}function hr(e){return cr(e)?function(e){return e.match(nt)||[]}(e):function(e){return e.split("")}(e)}function mr(e){for(var t=e.length;t--&&ce.test(e.charAt(t)););return t}var gr=Vt({"&":"&","<":"<",">":">",""":'"',"'":"'"});var yr=function e(t){var r,o=(t=null==t?gt:yr.defaults(gt.Object(),t,yr.pick(gt,at))).Array,x=t.Date,ce=t.Error,ke=t.Function,Te=t.Math,Oe=t.Object,Ae=t.RegExp,Pe=t.String,Ie=t.TypeError,je=o.prototype,Re=ke.prototype,Ce=Oe.prototype,Le=t["__core-js_shared__"],Ne=Re.toString,qe=Ce.hasOwnProperty,De=0,Me=(r=/[^.]+$/.exec(Le&&Le.keys&&Le.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",Ue=Ce.toString,Fe=Ne.call(Oe),We=gt._,Be=Ae("^"+Ne.call(qe).replace(ie,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ze=vt?t.Buffer:n,He=t.Symbol,Ge=t.Uint8Array,$e=ze?ze.allocUnsafe:n,Je=lr(Oe.getPrototypeOf,Oe),Ze=Oe.create,Ve=Ce.propertyIsEnumerable,Qe=je.splice,Ke=He?He.isConcatSpreadable:n,Xe=He?He.iterator:n,Ye=He?He.toStringTag:n,et=function(){try{var e=pi(Oe,"defineProperty");return e({},"",{}),e}catch(e){}}(),nt=t.clearTimeout!==gt.clearTimeout&&t.clearTimeout,it=x&&x.now!==gt.Date.now&&x.now,dt=t.setTimeout!==gt.setTimeout&&t.setTimeout,ht=Te.ceil,mt=Te.floor,yt=Oe.getOwnPropertySymbols,bt=ze?ze.isBuffer:n,wt=t.isFinite,_t=je.join,Wt=lr(Oe.keys,Oe),Vt=Te.max,br=Te.min,vr=x.now,wr=t.parseInt,_r=Te.random,Sr=je.reverse,Er=pi(t,"DataView"),xr=pi(t,"Map"),kr=pi(t,"Promise"),Tr=pi(t,"Set"),Or=pi(t,"WeakMap"),Ar=pi(Oe,"create"),Pr=Or&&new Or,Ir={},jr=Mi(Er),Rr=Mi(xr),Cr=Mi(kr),Lr=Mi(Tr),Nr=Mi(Or),qr=He?He.prototype:n,Dr=qr?qr.valueOf:n,Mr=qr?qr.toString:n;function Ur(e){if(ta(e)&&!Hs(e)&&!(e instanceof zr)){if(e instanceof Br)return e;if(qe.call(e,"__wrapped__"))return Ui(e)}return new Br(e)}var Fr=function(){function e(){}return function(t){if(!ea(t))return{};if(Ze)return Ze(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function Wr(){}function Br(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}function zr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=g,this.__views__=[]}function Hr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Gr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function $r(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Jr(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new $r;++t<r;)this.add(e[t])}function Zr(e){var t=this.__data__=new Gr(e);this.size=t.size}function Vr(e,t){var r=Hs(e),n=!r&&zs(e),o=!r&&!n&&Zs(e),i=!r&&!n&&!o&&ua(e),s=r||n||o||i,a=s?Xt(e.length,Pe):[],c=a.length;for(var u in e)!t&&!qe.call(e,u)||s&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||vi(u,c))||a.push(u);return a}function Qr(e){var t=e.length;return t?e[Zn(0,t-1)]:n}function Kr(e,t){return Ni(Io(e),an(t,0,e.length))}function Xr(e){return Ni(Io(e))}function Yr(e,t,r){(r!==n&&!Fs(e[t],r)||r===n&&!(t in e))&&on(e,t,r)}function en(e,t,r){var o=e[t];qe.call(e,t)&&Fs(o,r)&&(r!==n||t in e)||on(e,t,r)}function tn(e,t){for(var r=e.length;r--;)if(Fs(e[r][0],t))return r;return-1}function rn(e,t,r,n){return pn(e,(function(e,o,i){t(n,e,r(e),i)})),n}function nn(e,t){return e&&jo(t,ja(t),e)}function on(e,t,r){"__proto__"==t&&et?et(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function sn(e,t){for(var r=-1,i=t.length,s=o(i),a=null==e;++r<i;)s[r]=a?n:Ta(e,t[r]);return s}function an(e,t,r){return e==e&&(r!==n&&(e=e<=r?e:r),t!==n&&(e=e>=t?e:t)),e}function cn(e,t,r,o,i,s){var a,c=1&t,u=2&t,l=4&t;if(r&&(a=i?r(e,o,i,s):r(e)),a!==n)return a;if(!ea(e))return e;var d=Hs(e);if(d){if(a=function(e){var t=e.length,r=new e.constructor(t);t&&"string"==typeof e[0]&&qe.call(e,"index")&&(r.index=e.index,r.input=e.input);return r}(e),!c)return Io(e,a)}else{var p=mi(e),f=p==E||p==k;if(Zs(e))return xo(e,c);if(p==A||p==b||f&&!i){if(a=u||f?{}:yi(e),!c)return u?function(e,t){return jo(e,hi(e),t)}(e,function(e,t){return e&&jo(t,Ra(t),e)}(a,e)):function(e,t){return jo(e,fi(e),t)}(e,nn(a,e))}else{if(!lt[p])return i?e:{};a=function(e,t,r){var n=e.constructor;switch(t){case N:return ko(e);case w:case _:return new n(+e);case q:return function(e,t){var r=t?ko(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case D:case M:case U:case F:case W:case B:case z:case H:case G:return To(e,r);case T:return new n;case O:case R:return new n(e);case I:return function(e){var t=new e.constructor(e.source,ge.exec(e));return t.lastIndex=e.lastIndex,t}(e);case j:return new n;case C:return o=e,Dr?Oe(Dr.call(o)):{}}var o}(e,p,c)}}s||(s=new Zr);var h=s.get(e);if(h)return h;s.set(e,a),sa(e)?e.forEach((function(n){a.add(cn(n,t,r,n,e,s))})):ra(e)&&e.forEach((function(n,o){a.set(o,cn(n,t,r,o,e,s))}));var m=d?n:(l?u?ii:oi:u?Ra:ja)(e);return It(m||e,(function(n,o){m&&(n=e[o=n]),en(a,o,cn(n,t,r,o,e,s))})),a}function un(e,t,r){var o=r.length;if(null==e)return!o;for(e=Oe(e);o--;){var i=r[o],s=t[i],a=e[i];if(a===n&&!(i in e)||!s(a))return!1}return!0}function ln(e,t,r){if("function"!=typeof e)throw new Ie(i);return ji((function(){e.apply(n,r)}),t)}function dn(e,t,r,n){var o=-1,i=Lt,s=!0,a=e.length,c=[],u=t.length;if(!a)return c;r&&(t=qt(t,er(r))),n?(i=Nt,s=!1):t.length>=200&&(i=rr,s=!1,t=new Jr(t));e:for(;++o<a;){var l=e[o],d=null==r?l:r(l);if(l=n||0!==l?l:0,s&&d==d){for(var p=u;p--;)if(t[p]===d)continue e;c.push(l)}else i(t,d,n)||c.push(l)}return c}Ur.templateSettings={escape:Y,evaluate:ee,interpolate:te,variable:"",imports:{_:Ur}},Ur.prototype=Wr.prototype,Ur.prototype.constructor=Ur,Br.prototype=Fr(Wr.prototype),Br.prototype.constructor=Br,zr.prototype=Fr(Wr.prototype),zr.prototype.constructor=zr,Hr.prototype.clear=function(){this.__data__=Ar?Ar(null):{},this.size=0},Hr.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Hr.prototype.get=function(e){var t=this.__data__;if(Ar){var r=t[e];return r===s?n:r}return qe.call(t,e)?t[e]:n},Hr.prototype.has=function(e){var t=this.__data__;return Ar?t[e]!==n:qe.call(t,e)},Hr.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Ar&&t===n?s:t,this},Gr.prototype.clear=function(){this.__data__=[],this.size=0},Gr.prototype.delete=function(e){var t=this.__data__,r=tn(t,e);return!(r<0)&&(r==t.length-1?t.pop():Qe.call(t,r,1),--this.size,!0)},Gr.prototype.get=function(e){var t=this.__data__,r=tn(t,e);return r<0?n:t[r][1]},Gr.prototype.has=function(e){return tn(this.__data__,e)>-1},Gr.prototype.set=function(e,t){var r=this.__data__,n=tn(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},$r.prototype.clear=function(){this.size=0,this.__data__={hash:new Hr,map:new(xr||Gr),string:new Hr}},$r.prototype.delete=function(e){var t=li(this,e).delete(e);return this.size-=t?1:0,t},$r.prototype.get=function(e){return li(this,e).get(e)},$r.prototype.has=function(e){return li(this,e).has(e)},$r.prototype.set=function(e,t){var r=li(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},Jr.prototype.add=Jr.prototype.push=function(e){return this.__data__.set(e,s),this},Jr.prototype.has=function(e){return this.__data__.has(e)},Zr.prototype.clear=function(){this.__data__=new Gr,this.size=0},Zr.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Zr.prototype.get=function(e){return this.__data__.get(e)},Zr.prototype.has=function(e){return this.__data__.has(e)},Zr.prototype.set=function(e,t){var r=this.__data__;if(r instanceof Gr){var n=r.__data__;if(!xr||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new $r(n)}return r.set(e,t),this.size=r.size,this};var pn=Lo(wn),fn=Lo(_n,!0);function hn(e,t){var r=!0;return pn(e,(function(e,n,o){return r=!!t(e,n,o)})),r}function mn(e,t,r){for(var o=-1,i=e.length;++o<i;){var s=e[o],a=t(s);if(null!=a&&(c===n?a==a&&!ca(a):r(a,c)))var c=a,u=s}return u}function gn(e,t){var r=[];return pn(e,(function(e,n,o){t(e,n,o)&&r.push(e)})),r}function yn(e,t,r,n,o){var i=-1,s=e.length;for(r||(r=bi),o||(o=[]);++i<s;){var a=e[i];t>0&&r(a)?t>1?yn(a,t-1,r,n,o):Dt(o,a):n||(o[o.length]=a)}return o}var bn=No(),vn=No(!0);function wn(e,t){return e&&bn(e,t,ja)}function _n(e,t){return e&&vn(e,t,ja)}function Sn(e,t){return Ct(t,(function(t){return Ks(e[t])}))}function En(e,t){for(var r=0,o=(t=wo(t,e)).length;null!=e&&r<o;)e=e[Di(t[r++])];return r&&r==o?e:n}function xn(e,t,r){var n=t(e);return Hs(e)?n:Dt(n,r(e))}function kn(e){return null==e?e===n?"[object Undefined]":"[object Null]":Ye&&Ye in Oe(e)?function(e){var t=qe.call(e,Ye),r=e[Ye];try{e[Ye]=n;var o=!0}catch(e){}var i=Ue.call(e);o&&(t?e[Ye]=r:delete e[Ye]);return i}(e):function(e){return Ue.call(e)}(e)}function Tn(e,t){return e>t}function On(e,t){return null!=e&&qe.call(e,t)}function An(e,t){return null!=e&&t in Oe(e)}function Pn(e,t,r){for(var i=r?Nt:Lt,s=e[0].length,a=e.length,c=a,u=o(a),l=1/0,d=[];c--;){var p=e[c];c&&t&&(p=qt(p,er(t))),l=br(p.length,l),u[c]=!r&&(t||s>=120&&p.length>=120)?new Jr(c&&p):n}p=e[0];var f=-1,h=u[0];e:for(;++f<s&&d.length<l;){var m=p[f],g=t?t(m):m;if(m=r||0!==m?m:0,!(h?rr(h,g):i(d,g,r))){for(c=a;--c;){var y=u[c];if(!(y?rr(y,g):i(e[c],g,r)))continue e}h&&h.push(g),d.push(m)}}return d}function In(e,t,r){var o=null==(e=Ai(e,t=wo(t,e)))?e:e[Di(Qi(t))];return null==o?n:At(o,e,r)}function jn(e){return ta(e)&&kn(e)==b}function Rn(e,t,r,o,i){return e===t||(null==e||null==t||!ta(e)&&!ta(t)?e!=e&&t!=t:function(e,t,r,o,i,s){var a=Hs(e),c=Hs(t),u=a?v:mi(e),l=c?v:mi(t),d=(u=u==b?A:u)==A,p=(l=l==b?A:l)==A,f=u==l;if(f&&Zs(e)){if(!Zs(t))return!1;a=!0,d=!1}if(f&&!d)return s||(s=new Zr),a||ua(e)?ri(e,t,r,o,i,s):function(e,t,r,n,o,i,s){switch(r){case q:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case N:return!(e.byteLength!=t.byteLength||!i(new Ge(e),new Ge(t)));case w:case _:case O:return Fs(+e,+t);case S:return e.name==t.name&&e.message==t.message;case I:case R:return e==t+"";case T:var a=ur;case j:var c=1&n;if(a||(a=pr),e.size!=t.size&&!c)return!1;var u=s.get(e);if(u)return u==t;n|=2,s.set(e,t);var l=ri(a(e),a(t),n,o,i,s);return s.delete(e),l;case C:if(Dr)return Dr.call(e)==Dr.call(t)}return!1}(e,t,u,r,o,i,s);if(!(1&r)){var h=d&&qe.call(e,"__wrapped__"),m=p&&qe.call(t,"__wrapped__");if(h||m){var g=h?e.value():e,y=m?t.value():t;return s||(s=new Zr),i(g,y,r,o,s)}}return!!f&&(s||(s=new Zr),function(e,t,r,o,i,s){var a=1&r,c=oi(e),u=c.length,l=oi(t),d=l.length;if(u!=d&&!a)return!1;var p=u;for(;p--;){var f=c[p];if(!(a?f in t:qe.call(t,f)))return!1}var h=s.get(e),m=s.get(t);if(h&&m)return h==t&&m==e;var g=!0;s.set(e,t),s.set(t,e);var y=a;for(;++p<u;){var b=e[f=c[p]],v=t[f];if(o)var w=a?o(v,b,f,t,e,s):o(b,v,f,e,t,s);if(!(w===n?b===v||i(b,v,r,o,s):w)){g=!1;break}y||(y="constructor"==f)}if(g&&!y){var _=e.constructor,S=t.constructor;_==S||!("constructor"in e)||!("constructor"in t)||"function"==typeof _&&_ instanceof _&&"function"==typeof S&&S instanceof S||(g=!1)}return s.delete(e),s.delete(t),g}(e,t,r,o,i,s))}(e,t,r,o,Rn,i))}function Cn(e,t,r,o){var i=r.length,s=i,a=!o;if(null==e)return!s;for(e=Oe(e);i--;){var c=r[i];if(a&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++i<s;){var u=(c=r[i])[0],l=e[u],d=c[1];if(a&&c[2]){if(l===n&&!(u in e))return!1}else{var p=new Zr;if(o)var f=o(l,d,u,e,t,p);if(!(f===n?Rn(d,l,3,o,p):f))return!1}}return!0}function Ln(e){return!(!ea(e)||(t=e,Me&&Me in t))&&(Ks(e)?Be:ve).test(Mi(e));var t}function Nn(e){return"function"==typeof e?e:null==e?nc:"object"==typeof e?Hs(e)?Wn(e[0],e[1]):Fn(e):pc(e)}function qn(e){if(!xi(e))return Wt(e);var t=[];for(var r in Oe(e))qe.call(e,r)&&"constructor"!=r&&t.push(r);return t}function Dn(e){if(!ea(e))return function(e){var t=[];if(null!=e)for(var r in Oe(e))t.push(r);return t}(e);var t=xi(e),r=[];for(var n in e)("constructor"!=n||!t&&qe.call(e,n))&&r.push(n);return r}function Mn(e,t){return e<t}function Un(e,t){var r=-1,n=$s(e)?o(e.length):[];return pn(e,(function(e,o,i){n[++r]=t(e,o,i)})),n}function Fn(e){var t=di(e);return 1==t.length&&t[0][2]?Ti(t[0][0],t[0][1]):function(r){return r===e||Cn(r,e,t)}}function Wn(e,t){return _i(e)&&ki(t)?Ti(Di(e),t):function(r){var o=Ta(r,e);return o===n&&o===t?Oa(r,e):Rn(t,o,3)}}function Bn(e,t,r,o,i){e!==t&&bn(t,(function(s,a){if(i||(i=new Zr),ea(s))!function(e,t,r,o,i,s,a){var c=Pi(e,r),u=Pi(t,r),l=a.get(u);if(l)return void Yr(e,r,l);var d=s?s(c,u,r+"",e,t,a):n,p=d===n;if(p){var f=Hs(u),h=!f&&Zs(u),m=!f&&!h&&ua(u);d=u,f||h||m?Hs(c)?d=c:Js(c)?d=Io(c):h?(p=!1,d=xo(u,!0)):m?(p=!1,d=To(u,!0)):d=[]:oa(u)||zs(u)?(d=c,zs(c)?d=ya(c):ea(c)&&!Ks(c)||(d=yi(u))):p=!1}p&&(a.set(u,d),i(d,u,o,s,a),a.delete(u));Yr(e,r,d)}(e,t,a,r,Bn,o,i);else{var c=o?o(Pi(e,a),s,a+"",e,t,i):n;c===n&&(c=s),Yr(e,a,c)}}),Ra)}function zn(e,t){var r=e.length;if(r)return vi(t+=t<0?r:0,r)?e[t]:n}function Hn(e,t,r){t=t.length?qt(t,(function(e){return Hs(e)?function(t){return En(t,1===e.length?e[0]:e)}:e})):[nc];var n=-1;t=qt(t,er(ui()));var o=Un(e,(function(e,r,o){var i=qt(t,(function(t){return t(e)}));return{criteria:i,index:++n,value:e}}));return function(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}(o,(function(e,t){return function(e,t,r){var n=-1,o=e.criteria,i=t.criteria,s=o.length,a=r.length;for(;++n<s;){var c=Oo(o[n],i[n]);if(c)return n>=a?c:c*("desc"==r[n]?-1:1)}return e.index-t.index}(e,t,r)}))}function Gn(e,t,r){for(var n=-1,o=t.length,i={};++n<o;){var s=t[n],a=En(e,s);r(a,s)&&Yn(i,wo(s,e),a)}return i}function $n(e,t,r,n){var o=n?Gt:Ht,i=-1,s=t.length,a=e;for(e===t&&(t=Io(t)),r&&(a=qt(e,er(r)));++i<s;)for(var c=0,u=t[i],l=r?r(u):u;(c=o(a,l,c,n))>-1;)a!==e&&Qe.call(a,c,1),Qe.call(e,c,1);return e}function Jn(e,t){for(var r=e?t.length:0,n=r-1;r--;){var o=t[r];if(r==n||o!==i){var i=o;vi(o)?Qe.call(e,o,1):po(e,o)}}return e}function Zn(e,t){return e+mt(_r()*(t-e+1))}function Vn(e,t){var r="";if(!e||t<1||t>h)return r;do{t%2&&(r+=e),(t=mt(t/2))&&(e+=e)}while(t);return r}function Qn(e,t){return Ri(Oi(e,t,nc),e+"")}function Kn(e){return Qr(Fa(e))}function Xn(e,t){var r=Fa(e);return Ni(r,an(t,0,r.length))}function Yn(e,t,r,o){if(!ea(e))return e;for(var i=-1,s=(t=wo(t,e)).length,a=s-1,c=e;null!=c&&++i<s;){var u=Di(t[i]),l=r;if("__proto__"===u||"constructor"===u||"prototype"===u)return e;if(i!=a){var d=c[u];(l=o?o(d,u,c):n)===n&&(l=ea(d)?d:vi(t[i+1])?[]:{})}en(c,u,l),c=c[u]}return e}var eo=Pr?function(e,t){return Pr.set(e,t),e}:nc,to=et?function(e,t){return et(e,"toString",{configurable:!0,enumerable:!1,value:ec(t),writable:!0})}:nc;function ro(e){return Ni(Fa(e))}function no(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var s=o(i);++n<i;)s[n]=e[n+t];return s}function oo(e,t){var r;return pn(e,(function(e,n,o){return!(r=t(e,n,o))})),!!r}function io(e,t,r){var n=0,o=null==e?n:e.length;if("number"==typeof t&&t==t&&o<=2147483647){for(;n<o;){var i=n+o>>>1,s=e[i];null!==s&&!ca(s)&&(r?s<=t:s<t)?n=i+1:o=i}return o}return so(e,t,nc,r)}function so(e,t,r,o){var i=0,s=null==e?0:e.length;if(0===s)return 0;for(var a=(t=r(t))!=t,c=null===t,u=ca(t),l=t===n;i<s;){var d=mt((i+s)/2),p=r(e[d]),f=p!==n,h=null===p,m=p==p,g=ca(p);if(a)var y=o||m;else y=l?m&&(o||f):c?m&&f&&(o||!h):u?m&&f&&!h&&(o||!g):!h&&!g&&(o?p<=t:p<t);y?i=d+1:s=d}return br(s,4294967294)}function ao(e,t){for(var r=-1,n=e.length,o=0,i=[];++r<n;){var s=e[r],a=t?t(s):s;if(!r||!Fs(a,c)){var c=a;i[o++]=0===s?0:s}}return i}function co(e){return"number"==typeof e?e:ca(e)?m:+e}function uo(e){if("string"==typeof e)return e;if(Hs(e))return qt(e,uo)+"";if(ca(e))return Mr?Mr.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function lo(e,t,r){var n=-1,o=Lt,i=e.length,s=!0,a=[],c=a;if(r)s=!1,o=Nt;else if(i>=200){var u=t?null:Qo(e);if(u)return pr(u);s=!1,o=rr,c=new Jr}else c=t?[]:a;e:for(;++n<i;){var l=e[n],d=t?t(l):l;if(l=r||0!==l?l:0,s&&d==d){for(var p=c.length;p--;)if(c[p]===d)continue e;t&&c.push(d),a.push(l)}else o(c,d,r)||(c!==a&&c.push(d),a.push(l))}return a}function po(e,t){return null==(e=Ai(e,t=wo(t,e)))||delete e[Di(Qi(t))]}function fo(e,t,r,n){return Yn(e,t,r(En(e,t)),n)}function ho(e,t,r,n){for(var o=e.length,i=n?o:-1;(n?i--:++i<o)&&t(e[i],i,e););return r?no(e,n?0:i,n?i+1:o):no(e,n?i+1:0,n?o:i)}function mo(e,t){var r=e;return r instanceof zr&&(r=r.value()),Mt(t,(function(e,t){return t.func.apply(t.thisArg,Dt([e],t.args))}),r)}function go(e,t,r){var n=e.length;if(n<2)return n?lo(e[0]):[];for(var i=-1,s=o(n);++i<n;)for(var a=e[i],c=-1;++c<n;)c!=i&&(s[i]=dn(s[i]||a,e[c],t,r));return lo(yn(s,1),t,r)}function yo(e,t,r){for(var o=-1,i=e.length,s=t.length,a={};++o<i;){var c=o<s?t[o]:n;r(a,e[o],c)}return a}function bo(e){return Js(e)?e:[]}function vo(e){return"function"==typeof e?e:nc}function wo(e,t){return Hs(e)?e:_i(e,t)?[e]:qi(ba(e))}var _o=Qn;function So(e,t,r){var o=e.length;return r=r===n?o:r,!t&&r>=o?e:no(e,t,r)}var Eo=nt||function(e){return gt.clearTimeout(e)};function xo(e,t){if(t)return e.slice();var r=e.length,n=$e?$e(r):new e.constructor(r);return e.copy(n),n}function ko(e){var t=new e.constructor(e.byteLength);return new Ge(t).set(new Ge(e)),t}function To(e,t){var r=t?ko(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function Oo(e,t){if(e!==t){var r=e!==n,o=null===e,i=e==e,s=ca(e),a=t!==n,c=null===t,u=t==t,l=ca(t);if(!c&&!l&&!s&&e>t||s&&a&&u&&!c&&!l||o&&a&&u||!r&&u||!i)return 1;if(!o&&!s&&!l&&e<t||l&&r&&i&&!o&&!s||c&&r&&i||!a&&i||!u)return-1}return 0}function Ao(e,t,r,n){for(var i=-1,s=e.length,a=r.length,c=-1,u=t.length,l=Vt(s-a,0),d=o(u+l),p=!n;++c<u;)d[c]=t[c];for(;++i<a;)(p||i<s)&&(d[r[i]]=e[i]);for(;l--;)d[c++]=e[i++];return d}function Po(e,t,r,n){for(var i=-1,s=e.length,a=-1,c=r.length,u=-1,l=t.length,d=Vt(s-c,0),p=o(d+l),f=!n;++i<d;)p[i]=e[i];for(var h=i;++u<l;)p[h+u]=t[u];for(;++a<c;)(f||i<s)&&(p[h+r[a]]=e[i++]);return p}function Io(e,t){var r=-1,n=e.length;for(t||(t=o(n));++r<n;)t[r]=e[r];return t}function jo(e,t,r,o){var i=!r;r||(r={});for(var s=-1,a=t.length;++s<a;){var c=t[s],u=o?o(r[c],e[c],c,r,e):n;u===n&&(u=e[c]),i?on(r,c,u):en(r,c,u)}return r}function Ro(e,t){return function(r,n){var o=Hs(r)?Pt:rn,i=t?t():{};return o(r,e,ui(n,2),i)}}function Co(e){return Qn((function(t,r){var o=-1,i=r.length,s=i>1?r[i-1]:n,a=i>2?r[2]:n;for(s=e.length>3&&"function"==typeof s?(i--,s):n,a&&wi(r[0],r[1],a)&&(s=i<3?n:s,i=1),t=Oe(t);++o<i;){var c=r[o];c&&e(t,c,o,s)}return t}))}function Lo(e,t){return function(r,n){if(null==r)return r;if(!$s(r))return e(r,n);for(var o=r.length,i=t?o:-1,s=Oe(r);(t?i--:++i<o)&&!1!==n(s[i],i,s););return r}}function No(e){return function(t,r,n){for(var o=-1,i=Oe(t),s=n(t),a=s.length;a--;){var c=s[e?a:++o];if(!1===r(i[c],c,i))break}return t}}function qo(e){return function(t){var r=cr(t=ba(t))?hr(t):n,o=r?r[0]:t.charAt(0),i=r?So(r,1).join(""):t.slice(1);return o[e]()+i}}function Do(e){return function(t){return Mt(Ka(za(t).replace(tt,"")),e,"")}}function Mo(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=Fr(e.prototype),n=e.apply(r,t);return ea(n)?n:r}}function Uo(e){return function(t,r,o){var i=Oe(t);if(!$s(t)){var s=ui(r,3);t=ja(t),r=function(e){return s(i[e],e,i)}}var a=e(t,r,o);return a>-1?i[s?t[a]:a]:n}}function Fo(e){return ni((function(t){var r=t.length,o=r,s=Br.prototype.thru;for(e&&t.reverse();o--;){var a=t[o];if("function"!=typeof a)throw new Ie(i);if(s&&!c&&"wrapper"==ai(a))var c=new Br([],!0)}for(o=c?o:r;++o<r;){var u=ai(a=t[o]),l="wrapper"==u?si(a):n;c=l&&Si(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?c[ai(l[0])].apply(c,l[3]):1==a.length&&Si(a)?c[u]():c.thru(a)}return function(){var e=arguments,n=e[0];if(c&&1==e.length&&Hs(n))return c.plant(n).value();for(var o=0,i=r?t[o].apply(this,e):n;++o<r;)i=t[o].call(this,i);return i}}))}function Wo(e,t,r,i,s,a,c,u,l,p){var f=t&d,h=1&t,m=2&t,g=24&t,y=512&t,b=m?n:Mo(e);return function d(){for(var v=arguments.length,w=o(v),_=v;_--;)w[_]=arguments[_];if(g)var S=ci(d),E=function(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&++n;return n}(w,S);if(i&&(w=Ao(w,i,s,g)),a&&(w=Po(w,a,c,g)),v-=E,g&&v<p){var x=dr(w,S);return Zo(e,t,Wo,d.placeholder,r,w,x,u,l,p-v)}var k=h?r:this,T=m?k[e]:e;return v=w.length,u?w=function(e,t){var r=e.length,o=br(t.length,r),i=Io(e);for(;o--;){var s=t[o];e[o]=vi(s,r)?i[s]:n}return e}(w,u):y&&v>1&&w.reverse(),f&&l<v&&(w.length=l),this&&this!==gt&&this instanceof d&&(T=b||Mo(T)),T.apply(k,w)}}function Bo(e,t){return function(r,n){return function(e,t,r,n){return wn(e,(function(e,o,i){t(n,r(e),o,i)})),n}(r,e,t(n),{})}}function zo(e,t){return function(r,o){var i;if(r===n&&o===n)return t;if(r!==n&&(i=r),o!==n){if(i===n)return o;"string"==typeof r||"string"==typeof o?(r=uo(r),o=uo(o)):(r=co(r),o=co(o)),i=e(r,o)}return i}}function Ho(e){return ni((function(t){return t=qt(t,er(ui())),Qn((function(r){var n=this;return e(t,(function(e){return At(e,n,r)}))}))}))}function Go(e,t){var r=(t=t===n?" ":uo(t)).length;if(r<2)return r?Vn(t,e):t;var o=Vn(t,ht(e/fr(t)));return cr(t)?So(hr(o),0,e).join(""):o.slice(0,e)}function $o(e){return function(t,r,i){return i&&"number"!=typeof i&&wi(t,r,i)&&(r=i=n),t=fa(t),r===n?(r=t,t=0):r=fa(r),function(e,t,r,n){for(var i=-1,s=Vt(ht((t-e)/(r||1)),0),a=o(s);s--;)a[n?s:++i]=e,e+=r;return a}(t,r,i=i===n?t<r?1:-1:fa(i),e)}}function Jo(e){return function(t,r){return"string"==typeof t&&"string"==typeof r||(t=ga(t),r=ga(r)),e(t,r)}}function Zo(e,t,r,o,i,s,a,c,d,p){var f=8&t;t|=f?u:l,4&(t&=~(f?l:u))||(t&=-4);var h=[e,t,i,f?s:n,f?a:n,f?n:s,f?n:a,c,d,p],m=r.apply(n,h);return Si(e)&&Ii(m,h),m.placeholder=o,Ci(m,e,t)}function Vo(e){var t=Te[e];return function(e,r){if(e=ga(e),(r=null==r?0:br(ha(r),292))&&wt(e)){var n=(ba(e)+"e").split("e");return+((n=(ba(t(n[0]+"e"+(+n[1]+r)))+"e").split("e"))[0]+"e"+(+n[1]-r))}return t(e)}}var Qo=Tr&&1/pr(new Tr([,-0]))[1]==f?function(e){return new Tr(e)}:cc;function Ko(e){return function(t){var r=mi(t);return r==T?ur(t):r==j?function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=[e,e]})),r}(t):function(e,t){return qt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Xo(e,t,r,s,f,h,m,g){var y=2&t;if(!y&&"function"!=typeof e)throw new Ie(i);var b=s?s.length:0;if(b||(t&=-97,s=f=n),m=m===n?m:Vt(ha(m),0),g=g===n?g:ha(g),b-=f?f.length:0,t&l){var v=s,w=f;s=f=n}var _=y?n:si(e),S=[e,t,r,s,f,v,w,h,m,g];if(_&&function(e,t){var r=e[1],n=t[1],o=r|n,i=o<131,s=n==d&&8==r||n==d&&r==p&&e[7].length<=t[8]||384==n&&t[7].length<=t[8]&&8==r;if(!i&&!s)return e;1&n&&(e[2]=t[2],o|=1&r?0:4);var c=t[3];if(c){var u=e[3];e[3]=u?Ao(u,c,t[4]):c,e[4]=u?dr(e[3],a):t[4]}(c=t[5])&&(u=e[5],e[5]=u?Po(u,c,t[6]):c,e[6]=u?dr(e[5],a):t[6]);(c=t[7])&&(e[7]=c);n&d&&(e[8]=null==e[8]?t[8]:br(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=o}(S,_),e=S[0],t=S[1],r=S[2],s=S[3],f=S[4],!(g=S[9]=S[9]===n?y?0:e.length:Vt(S[9]-b,0))&&24&t&&(t&=-25),t&&1!=t)E=8==t||t==c?function(e,t,r){var i=Mo(e);return function s(){for(var a=arguments.length,c=o(a),u=a,l=ci(s);u--;)c[u]=arguments[u];var d=a<3&&c[0]!==l&&c[a-1]!==l?[]:dr(c,l);return(a-=d.length)<r?Zo(e,t,Wo,s.placeholder,n,c,d,n,n,r-a):At(this&&this!==gt&&this instanceof s?i:e,this,c)}}(e,t,g):t!=u&&33!=t||f.length?Wo.apply(n,S):function(e,t,r,n){var i=1&t,s=Mo(e);return function t(){for(var a=-1,c=arguments.length,u=-1,l=n.length,d=o(l+c),p=this&&this!==gt&&this instanceof t?s:e;++u<l;)d[u]=n[u];for(;c--;)d[u++]=arguments[++a];return At(p,i?r:this,d)}}(e,t,r,s);else var E=function(e,t,r){var n=1&t,o=Mo(e);return function t(){return(this&&this!==gt&&this instanceof t?o:e).apply(n?r:this,arguments)}}(e,t,r);return Ci((_?eo:Ii)(E,S),e,t)}function Yo(e,t,r,o){return e===n||Fs(e,Ce[r])&&!qe.call(o,r)?t:e}function ei(e,t,r,o,i,s){return ea(e)&&ea(t)&&(s.set(t,e),Bn(e,t,n,ei,s),s.delete(t)),e}function ti(e){return oa(e)?n:e}function ri(e,t,r,o,i,s){var a=1&r,c=e.length,u=t.length;if(c!=u&&!(a&&u>c))return!1;var l=s.get(e),d=s.get(t);if(l&&d)return l==t&&d==e;var p=-1,f=!0,h=2&r?new Jr:n;for(s.set(e,t),s.set(t,e);++p<c;){var m=e[p],g=t[p];if(o)var y=a?o(g,m,p,t,e,s):o(m,g,p,e,t,s);if(y!==n){if(y)continue;f=!1;break}if(h){if(!Ft(t,(function(e,t){if(!rr(h,t)&&(m===e||i(m,e,r,o,s)))return h.push(t)}))){f=!1;break}}else if(m!==g&&!i(m,g,r,o,s)){f=!1;break}}return s.delete(e),s.delete(t),f}function ni(e){return Ri(Oi(e,n,Gi),e+"")}function oi(e){return xn(e,ja,fi)}function ii(e){return xn(e,Ra,hi)}var si=Pr?function(e){return Pr.get(e)}:cc;function ai(e){for(var t=e.name+"",r=Ir[t],n=qe.call(Ir,t)?r.length:0;n--;){var o=r[n],i=o.func;if(null==i||i==e)return o.name}return t}function ci(e){return(qe.call(Ur,"placeholder")?Ur:e).placeholder}function ui(){var e=Ur.iteratee||oc;return e=e===oc?Nn:e,arguments.length?e(arguments[0],arguments[1]):e}function li(e,t){var r,n,o=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof t?"string":"hash"]:o.map}function di(e){for(var t=ja(e),r=t.length;r--;){var n=t[r],o=e[n];t[r]=[n,o,ki(o)]}return t}function pi(e,t){var r=function(e,t){return null==e?n:e[t]}(e,t);return Ln(r)?r:n}var fi=yt?function(e){return null==e?[]:(e=Oe(e),Ct(yt(e),(function(t){return Ve.call(e,t)})))}:mc,hi=yt?function(e){for(var t=[];e;)Dt(t,fi(e)),e=Je(e);return t}:mc,mi=kn;function gi(e,t,r){for(var n=-1,o=(t=wo(t,e)).length,i=!1;++n<o;){var s=Di(t[n]);if(!(i=null!=e&&r(e,s)))break;e=e[s]}return i||++n!=o?i:!!(o=null==e?0:e.length)&&Ys(o)&&vi(s,o)&&(Hs(e)||zs(e))}function yi(e){return"function"!=typeof e.constructor||xi(e)?{}:Fr(Je(e))}function bi(e){return Hs(e)||zs(e)||!!(Ke&&e&&e[Ke])}function vi(e,t){var r=typeof e;return!!(t=null==t?h:t)&&("number"==r||"symbol"!=r&&_e.test(e))&&e>-1&&e%1==0&&e<t}function wi(e,t,r){if(!ea(r))return!1;var n=typeof t;return!!("number"==n?$s(r)&&vi(t,r.length):"string"==n&&t in r)&&Fs(r[t],e)}function _i(e,t){if(Hs(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!ca(e))||(ne.test(e)||!re.test(e)||null!=t&&e in Oe(t))}function Si(e){var t=ai(e),r=Ur[t];if("function"!=typeof r||!(t in zr.prototype))return!1;if(e===r)return!0;var n=si(r);return!!n&&e===n[0]}(Er&&mi(new Er(new ArrayBuffer(1)))!=q||xr&&mi(new xr)!=T||kr&&mi(kr.resolve())!=P||Tr&&mi(new Tr)!=j||Or&&mi(new Or)!=L)&&(mi=function(e){var t=kn(e),r=t==A?e.constructor:n,o=r?Mi(r):"";if(o)switch(o){case jr:return q;case Rr:return T;case Cr:return P;case Lr:return j;case Nr:return L}return t});var Ei=Le?Ks:gc;function xi(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Ce)}function ki(e){return e==e&&!ea(e)}function Ti(e,t){return function(r){return null!=r&&(r[e]===t&&(t!==n||e in Oe(r)))}}function Oi(e,t,r){return t=Vt(t===n?e.length-1:t,0),function(){for(var n=arguments,i=-1,s=Vt(n.length-t,0),a=o(s);++i<s;)a[i]=n[t+i];i=-1;for(var c=o(t+1);++i<t;)c[i]=n[i];return c[t]=r(a),At(e,this,c)}}function Ai(e,t){return t.length<2?e:En(e,no(t,0,-1))}function Pi(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Ii=Li(eo),ji=dt||function(e,t){return gt.setTimeout(e,t)},Ri=Li(to);function Ci(e,t,r){var n=t+"";return Ri(e,function(e,t){var r=t.length;if(!r)return e;var n=r-1;return t[n]=(r>1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(ue,"{\n/* [wrapped with "+t+"] */\n")}(n,function(e,t){return It(y,(function(r){var n="_."+r[0];t&r[1]&&!Lt(e,n)&&e.push(n)})),e.sort()}(function(e){var t=e.match(le);return t?t[1].split(de):[]}(n),r)))}function Li(e){var t=0,r=0;return function(){var o=vr(),i=16-(o-r);if(r=o,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(n,arguments)}}function Ni(e,t){var r=-1,o=e.length,i=o-1;for(t=t===n?o:t;++r<t;){var s=Zn(r,i),a=e[s];e[s]=e[r],e[r]=a}return e.length=t,e}var qi=function(e){var t=Ls(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(oe,(function(e,r,n,o){t.push(n?o.replace(he,"$1"):r||e)})),t}));function Di(e){if("string"==typeof e||ca(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Mi(e){if(null!=e){try{return Ne.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ui(e){if(e instanceof zr)return e.clone();var t=new Br(e.__wrapped__,e.__chain__);return t.__actions__=Io(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Fi=Qn((function(e,t){return Js(e)?dn(e,yn(t,1,Js,!0)):[]})),Wi=Qn((function(e,t){var r=Qi(t);return Js(r)&&(r=n),Js(e)?dn(e,yn(t,1,Js,!0),ui(r,2)):[]})),Bi=Qn((function(e,t){var r=Qi(t);return Js(r)&&(r=n),Js(e)?dn(e,yn(t,1,Js,!0),n,r):[]}));function zi(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var o=null==r?0:ha(r);return o<0&&(o=Vt(n+o,0)),zt(e,ui(t,3),o)}function Hi(e,t,r){var o=null==e?0:e.length;if(!o)return-1;var i=o-1;return r!==n&&(i=ha(r),i=r<0?Vt(o+i,0):br(i,o-1)),zt(e,ui(t,3),i,!0)}function Gi(e){return(null==e?0:e.length)?yn(e,1):[]}function $i(e){return e&&e.length?e[0]:n}var Ji=Qn((function(e){var t=qt(e,bo);return t.length&&t[0]===e[0]?Pn(t):[]})),Zi=Qn((function(e){var t=Qi(e),r=qt(e,bo);return t===Qi(r)?t=n:r.pop(),r.length&&r[0]===e[0]?Pn(r,ui(t,2)):[]})),Vi=Qn((function(e){var t=Qi(e),r=qt(e,bo);return(t="function"==typeof t?t:n)&&r.pop(),r.length&&r[0]===e[0]?Pn(r,n,t):[]}));function Qi(e){var t=null==e?0:e.length;return t?e[t-1]:n}var Ki=Qn(Xi);function Xi(e,t){return e&&e.length&&t&&t.length?$n(e,t):e}var Yi=ni((function(e,t){var r=null==e?0:e.length,n=sn(e,t);return Jn(e,qt(t,(function(e){return vi(e,r)?+e:e})).sort(Oo)),n}));function es(e){return null==e?e:Sr.call(e)}var ts=Qn((function(e){return lo(yn(e,1,Js,!0))})),rs=Qn((function(e){var t=Qi(e);return Js(t)&&(t=n),lo(yn(e,1,Js,!0),ui(t,2))})),ns=Qn((function(e){var t=Qi(e);return t="function"==typeof t?t:n,lo(yn(e,1,Js,!0),n,t)}));function os(e){if(!e||!e.length)return[];var t=0;return e=Ct(e,(function(e){if(Js(e))return t=Vt(e.length,t),!0})),Xt(t,(function(t){return qt(e,Zt(t))}))}function is(e,t){if(!e||!e.length)return[];var r=os(e);return null==t?r:qt(r,(function(e){return At(t,n,e)}))}var ss=Qn((function(e,t){return Js(e)?dn(e,t):[]})),as=Qn((function(e){return go(Ct(e,Js))})),cs=Qn((function(e){var t=Qi(e);return Js(t)&&(t=n),go(Ct(e,Js),ui(t,2))})),us=Qn((function(e){var t=Qi(e);return t="function"==typeof t?t:n,go(Ct(e,Js),n,t)})),ls=Qn(os);var ds=Qn((function(e){var t=e.length,r=t>1?e[t-1]:n;return r="function"==typeof r?(e.pop(),r):n,is(e,r)}));function ps(e){var t=Ur(e);return t.__chain__=!0,t}function fs(e,t){return t(e)}var hs=ni((function(e){var t=e.length,r=t?e[0]:0,o=this.__wrapped__,i=function(t){return sn(t,e)};return!(t>1||this.__actions__.length)&&o instanceof zr&&vi(r)?((o=o.slice(r,+r+(t?1:0))).__actions__.push({func:fs,args:[i],thisArg:n}),new Br(o,this.__chain__).thru((function(e){return t&&!e.length&&e.push(n),e}))):this.thru(i)}));var ms=Ro((function(e,t,r){qe.call(e,r)?++e[r]:on(e,r,1)}));var gs=Uo(zi),ys=Uo(Hi);function bs(e,t){return(Hs(e)?It:pn)(e,ui(t,3))}function vs(e,t){return(Hs(e)?jt:fn)(e,ui(t,3))}var ws=Ro((function(e,t,r){qe.call(e,r)?e[r].push(t):on(e,r,[t])}));var _s=Qn((function(e,t,r){var n=-1,i="function"==typeof t,s=$s(e)?o(e.length):[];return pn(e,(function(e){s[++n]=i?At(t,e,r):In(e,t,r)})),s})),Ss=Ro((function(e,t,r){on(e,r,t)}));function Es(e,t){return(Hs(e)?qt:Un)(e,ui(t,3))}var xs=Ro((function(e,t,r){e[r?0:1].push(t)}),(function(){return[[],[]]}));var ks=Qn((function(e,t){if(null==e)return[];var r=t.length;return r>1&&wi(e,t[0],t[1])?t=[]:r>2&&wi(t[0],t[1],t[2])&&(t=[t[0]]),Hn(e,yn(t,1),[])})),Ts=it||function(){return gt.Date.now()};function Os(e,t,r){return t=r?n:t,t=e&&null==t?e.length:t,Xo(e,d,n,n,n,n,t)}function As(e,t){var r;if("function"!=typeof t)throw new Ie(i);return e=ha(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=n),r}}var Ps=Qn((function(e,t,r){var n=1;if(r.length){var o=dr(r,ci(Ps));n|=u}return Xo(e,n,t,r,o)})),Is=Qn((function(e,t,r){var n=3;if(r.length){var o=dr(r,ci(Is));n|=u}return Xo(t,n,e,r,o)}));function js(e,t,r){var o,s,a,c,u,l,d=0,p=!1,f=!1,h=!0;if("function"!=typeof e)throw new Ie(i);function m(t){var r=o,i=s;return o=s=n,d=t,c=e.apply(i,r)}function g(e){var r=e-l;return l===n||r>=t||r<0||f&&e-d>=a}function y(){var e=Ts();if(g(e))return b(e);u=ji(y,function(e){var r=t-(e-l);return f?br(r,a-(e-d)):r}(e))}function b(e){return u=n,h&&o?m(e):(o=s=n,c)}function v(){var e=Ts(),r=g(e);if(o=arguments,s=this,l=e,r){if(u===n)return function(e){return d=e,u=ji(y,t),p?m(e):c}(l);if(f)return Eo(u),u=ji(y,t),m(l)}return u===n&&(u=ji(y,t)),c}return t=ga(t)||0,ea(r)&&(p=!!r.leading,a=(f="maxWait"in r)?Vt(ga(r.maxWait)||0,t):a,h="trailing"in r?!!r.trailing:h),v.cancel=function(){u!==n&&Eo(u),d=0,o=l=s=u=n},v.flush=function(){return u===n?c:b(Ts())},v}var Rs=Qn((function(e,t){return ln(e,1,t)})),Cs=Qn((function(e,t,r){return ln(e,ga(t)||0,r)}));function Ls(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Ie(i);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var s=e.apply(this,n);return r.cache=i.set(o,s)||i,s};return r.cache=new(Ls.Cache||$r),r}function Ns(e){if("function"!=typeof e)throw new Ie(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Ls.Cache=$r;var qs=_o((function(e,t){var r=(t=1==t.length&&Hs(t[0])?qt(t[0],er(ui())):qt(yn(t,1),er(ui()))).length;return Qn((function(n){for(var o=-1,i=br(n.length,r);++o<i;)n[o]=t[o].call(this,n[o]);return At(e,this,n)}))})),Ds=Qn((function(e,t){var r=dr(t,ci(Ds));return Xo(e,u,n,t,r)})),Ms=Qn((function(e,t){var r=dr(t,ci(Ms));return Xo(e,l,n,t,r)})),Us=ni((function(e,t){return Xo(e,p,n,n,n,t)}));function Fs(e,t){return e===t||e!=e&&t!=t}var Ws=Jo(Tn),Bs=Jo((function(e,t){return e>=t})),zs=jn(function(){return arguments}())?jn:function(e){return ta(e)&&qe.call(e,"callee")&&!Ve.call(e,"callee")},Hs=o.isArray,Gs=St?er(St):function(e){return ta(e)&&kn(e)==N};function $s(e){return null!=e&&Ys(e.length)&&!Ks(e)}function Js(e){return ta(e)&&$s(e)}var Zs=bt||gc,Vs=Et?er(Et):function(e){return ta(e)&&kn(e)==_};function Qs(e){if(!ta(e))return!1;var t=kn(e);return t==S||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!oa(e)}function Ks(e){if(!ea(e))return!1;var t=kn(e);return t==E||t==k||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Xs(e){return"number"==typeof e&&e==ha(e)}function Ys(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=h}function ea(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ta(e){return null!=e&&"object"==typeof e}var ra=xt?er(xt):function(e){return ta(e)&&mi(e)==T};function na(e){return"number"==typeof e||ta(e)&&kn(e)==O}function oa(e){if(!ta(e)||kn(e)!=A)return!1;var t=Je(e);if(null===t)return!0;var r=qe.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Ne.call(r)==Fe}var ia=kt?er(kt):function(e){return ta(e)&&kn(e)==I};var sa=Tt?er(Tt):function(e){return ta(e)&&mi(e)==j};function aa(e){return"string"==typeof e||!Hs(e)&&ta(e)&&kn(e)==R}function ca(e){return"symbol"==typeof e||ta(e)&&kn(e)==C}var ua=Ot?er(Ot):function(e){return ta(e)&&Ys(e.length)&&!!ut[kn(e)]};var la=Jo(Mn),da=Jo((function(e,t){return e<=t}));function pa(e){if(!e)return[];if($s(e))return aa(e)?hr(e):Io(e);if(Xe&&e[Xe])return function(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}(e[Xe]());var t=mi(e);return(t==T?ur:t==j?pr:Fa)(e)}function fa(e){return e?(e=ga(e))===f||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ha(e){var t=fa(e),r=t%1;return t==t?r?t-r:t:0}function ma(e){return e?an(ha(e),0,g):0}function ga(e){if("number"==typeof e)return e;if(ca(e))return m;if(ea(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ea(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Yt(e);var r=be.test(e);return r||we.test(e)?ft(e.slice(2),r?2:8):ye.test(e)?m:+e}function ya(e){return jo(e,Ra(e))}function ba(e){return null==e?"":uo(e)}var va=Co((function(e,t){if(xi(t)||$s(t))jo(t,ja(t),e);else for(var r in t)qe.call(t,r)&&en(e,r,t[r])})),wa=Co((function(e,t){jo(t,Ra(t),e)})),_a=Co((function(e,t,r,n){jo(t,Ra(t),e,n)})),Sa=Co((function(e,t,r,n){jo(t,ja(t),e,n)})),Ea=ni(sn);var xa=Qn((function(e,t){e=Oe(e);var r=-1,o=t.length,i=o>2?t[2]:n;for(i&&wi(t[0],t[1],i)&&(o=1);++r<o;)for(var s=t[r],a=Ra(s),c=-1,u=a.length;++c<u;){var l=a[c],d=e[l];(d===n||Fs(d,Ce[l])&&!qe.call(e,l))&&(e[l]=s[l])}return e})),ka=Qn((function(e){return e.push(n,ei),At(La,n,e)}));function Ta(e,t,r){var o=null==e?n:En(e,t);return o===n?r:o}function Oa(e,t){return null!=e&&gi(e,t,An)}var Aa=Bo((function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=Ue.call(t)),e[t]=r}),ec(nc)),Pa=Bo((function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=Ue.call(t)),qe.call(e,t)?e[t].push(r):e[t]=[r]}),ui),Ia=Qn(In);function ja(e){return $s(e)?Vr(e):qn(e)}function Ra(e){return $s(e)?Vr(e,!0):Dn(e)}var Ca=Co((function(e,t,r){Bn(e,t,r)})),La=Co((function(e,t,r,n){Bn(e,t,r,n)})),Na=ni((function(e,t){var r={};if(null==e)return r;var n=!1;t=qt(t,(function(t){return t=wo(t,e),n||(n=t.length>1),t})),jo(e,ii(e),r),n&&(r=cn(r,7,ti));for(var o=t.length;o--;)po(r,t[o]);return r}));var qa=ni((function(e,t){return null==e?{}:function(e,t){return Gn(e,t,(function(t,r){return Oa(e,r)}))}(e,t)}));function Da(e,t){if(null==e)return{};var r=qt(ii(e),(function(e){return[e]}));return t=ui(t),Gn(e,r,(function(e,r){return t(e,r[0])}))}var Ma=Ko(ja),Ua=Ko(Ra);function Fa(e){return null==e?[]:tr(e,ja(e))}var Wa=Do((function(e,t,r){return t=t.toLowerCase(),e+(r?Ba(t):t)}));function Ba(e){return Qa(ba(e).toLowerCase())}function za(e){return(e=ba(e))&&e.replace(Se,ir).replace(rt,"")}var Ha=Do((function(e,t,r){return e+(r?"-":"")+t.toLowerCase()})),Ga=Do((function(e,t,r){return e+(r?" ":"")+t.toLowerCase()})),$a=qo("toLowerCase");var Ja=Do((function(e,t,r){return e+(r?"_":"")+t.toLowerCase()}));var Za=Do((function(e,t,r){return e+(r?" ":"")+Qa(t)}));var Va=Do((function(e,t,r){return e+(r?" ":"")+t.toUpperCase()})),Qa=qo("toUpperCase");function Ka(e,t,r){return e=ba(e),(t=r?n:t)===n?function(e){return st.test(e)}(e)?function(e){return e.match(ot)||[]}(e):function(e){return e.match(pe)||[]}(e):e.match(t)||[]}var Xa=Qn((function(e,t){try{return At(e,n,t)}catch(e){return Qs(e)?e:new ce(e)}})),Ya=ni((function(e,t){return It(t,(function(t){t=Di(t),on(e,t,Ps(e[t],e))})),e}));function ec(e){return function(){return e}}var tc=Fo(),rc=Fo(!0);function nc(e){return e}function oc(e){return Nn("function"==typeof e?e:cn(e,1))}var ic=Qn((function(e,t){return function(r){return In(r,e,t)}})),sc=Qn((function(e,t){return function(r){return In(e,r,t)}}));function ac(e,t,r){var n=ja(t),o=Sn(t,n);null!=r||ea(t)&&(o.length||!n.length)||(r=t,t=e,e=this,o=Sn(t,ja(t)));var i=!(ea(r)&&"chain"in r&&!r.chain),s=Ks(e);return It(o,(function(r){var n=t[r];e[r]=n,s&&(e.prototype[r]=function(){var t=this.__chain__;if(i||t){var r=e(this.__wrapped__);return(r.__actions__=Io(this.__actions__)).push({func:n,args:arguments,thisArg:e}),r.__chain__=t,r}return n.apply(e,Dt([this.value()],arguments))})})),e}function cc(){}var uc=Ho(qt),lc=Ho(Rt),dc=Ho(Ft);function pc(e){return _i(e)?Zt(Di(e)):function(e){return function(t){return En(t,e)}}(e)}var fc=$o(),hc=$o(!0);function mc(){return[]}function gc(){return!1}var yc=zo((function(e,t){return e+t}),0),bc=Vo("ceil"),vc=zo((function(e,t){return e/t}),1),wc=Vo("floor");var _c,Sc=zo((function(e,t){return e*t}),1),Ec=Vo("round"),xc=zo((function(e,t){return e-t}),0);return Ur.after=function(e,t){if("function"!=typeof t)throw new Ie(i);return e=ha(e),function(){if(--e<1)return t.apply(this,arguments)}},Ur.ary=Os,Ur.assign=va,Ur.assignIn=wa,Ur.assignInWith=_a,Ur.assignWith=Sa,Ur.at=Ea,Ur.before=As,Ur.bind=Ps,Ur.bindAll=Ya,Ur.bindKey=Is,Ur.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Hs(e)?e:[e]},Ur.chain=ps,Ur.chunk=function(e,t,r){t=(r?wi(e,t,r):t===n)?1:Vt(ha(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var s=0,a=0,c=o(ht(i/t));s<i;)c[a++]=no(e,s,s+=t);return c},Ur.compact=function(e){for(var t=-1,r=null==e?0:e.length,n=0,o=[];++t<r;){var i=e[t];i&&(o[n++]=i)}return o},Ur.concat=function(){var e=arguments.length;if(!e)return[];for(var t=o(e-1),r=arguments[0],n=e;n--;)t[n-1]=arguments[n];return Dt(Hs(r)?Io(r):[r],yn(t,1))},Ur.cond=function(e){var t=null==e?0:e.length,r=ui();return e=t?qt(e,(function(e){if("function"!=typeof e[1])throw new Ie(i);return[r(e[0]),e[1]]})):[],Qn((function(r){for(var n=-1;++n<t;){var o=e[n];if(At(o[0],this,r))return At(o[1],this,r)}}))},Ur.conforms=function(e){return function(e){var t=ja(e);return function(r){return un(r,e,t)}}(cn(e,1))},Ur.constant=ec,Ur.countBy=ms,Ur.create=function(e,t){var r=Fr(e);return null==t?r:nn(r,t)},Ur.curry=function e(t,r,o){var i=Xo(t,8,n,n,n,n,n,r=o?n:r);return i.placeholder=e.placeholder,i},Ur.curryRight=function e(t,r,o){var i=Xo(t,c,n,n,n,n,n,r=o?n:r);return i.placeholder=e.placeholder,i},Ur.debounce=js,Ur.defaults=xa,Ur.defaultsDeep=ka,Ur.defer=Rs,Ur.delay=Cs,Ur.difference=Fi,Ur.differenceBy=Wi,Ur.differenceWith=Bi,Ur.drop=function(e,t,r){var o=null==e?0:e.length;return o?no(e,(t=r||t===n?1:ha(t))<0?0:t,o):[]},Ur.dropRight=function(e,t,r){var o=null==e?0:e.length;return o?no(e,0,(t=o-(t=r||t===n?1:ha(t)))<0?0:t):[]},Ur.dropRightWhile=function(e,t){return e&&e.length?ho(e,ui(t,3),!0,!0):[]},Ur.dropWhile=function(e,t){return e&&e.length?ho(e,ui(t,3),!0):[]},Ur.fill=function(e,t,r,o){var i=null==e?0:e.length;return i?(r&&"number"!=typeof r&&wi(e,t,r)&&(r=0,o=i),function(e,t,r,o){var i=e.length;for((r=ha(r))<0&&(r=-r>i?0:i+r),(o=o===n||o>i?i:ha(o))<0&&(o+=i),o=r>o?0:ma(o);r<o;)e[r++]=t;return e}(e,t,r,o)):[]},Ur.filter=function(e,t){return(Hs(e)?Ct:gn)(e,ui(t,3))},Ur.flatMap=function(e,t){return yn(Es(e,t),1)},Ur.flatMapDeep=function(e,t){return yn(Es(e,t),f)},Ur.flatMapDepth=function(e,t,r){return r=r===n?1:ha(r),yn(Es(e,t),r)},Ur.flatten=Gi,Ur.flattenDeep=function(e){return(null==e?0:e.length)?yn(e,f):[]},Ur.flattenDepth=function(e,t){return(null==e?0:e.length)?yn(e,t=t===n?1:ha(t)):[]},Ur.flip=function(e){return Xo(e,512)},Ur.flow=tc,Ur.flowRight=rc,Ur.fromPairs=function(e){for(var t=-1,r=null==e?0:e.length,n={};++t<r;){var o=e[t];n[o[0]]=o[1]}return n},Ur.functions=function(e){return null==e?[]:Sn(e,ja(e))},Ur.functionsIn=function(e){return null==e?[]:Sn(e,Ra(e))},Ur.groupBy=ws,Ur.initial=function(e){return(null==e?0:e.length)?no(e,0,-1):[]},Ur.intersection=Ji,Ur.intersectionBy=Zi,Ur.intersectionWith=Vi,Ur.invert=Aa,Ur.invertBy=Pa,Ur.invokeMap=_s,Ur.iteratee=oc,Ur.keyBy=Ss,Ur.keys=ja,Ur.keysIn=Ra,Ur.map=Es,Ur.mapKeys=function(e,t){var r={};return t=ui(t,3),wn(e,(function(e,n,o){on(r,t(e,n,o),e)})),r},Ur.mapValues=function(e,t){var r={};return t=ui(t,3),wn(e,(function(e,n,o){on(r,n,t(e,n,o))})),r},Ur.matches=function(e){return Fn(cn(e,1))},Ur.matchesProperty=function(e,t){return Wn(e,cn(t,1))},Ur.memoize=Ls,Ur.merge=Ca,Ur.mergeWith=La,Ur.method=ic,Ur.methodOf=sc,Ur.mixin=ac,Ur.negate=Ns,Ur.nthArg=function(e){return e=ha(e),Qn((function(t){return zn(t,e)}))},Ur.omit=Na,Ur.omitBy=function(e,t){return Da(e,Ns(ui(t)))},Ur.once=function(e){return As(2,e)},Ur.orderBy=function(e,t,r,o){return null==e?[]:(Hs(t)||(t=null==t?[]:[t]),Hs(r=o?n:r)||(r=null==r?[]:[r]),Hn(e,t,r))},Ur.over=uc,Ur.overArgs=qs,Ur.overEvery=lc,Ur.overSome=dc,Ur.partial=Ds,Ur.partialRight=Ms,Ur.partition=xs,Ur.pick=qa,Ur.pickBy=Da,Ur.property=pc,Ur.propertyOf=function(e){return function(t){return null==e?n:En(e,t)}},Ur.pull=Ki,Ur.pullAll=Xi,Ur.pullAllBy=function(e,t,r){return e&&e.length&&t&&t.length?$n(e,t,ui(r,2)):e},Ur.pullAllWith=function(e,t,r){return e&&e.length&&t&&t.length?$n(e,t,n,r):e},Ur.pullAt=Yi,Ur.range=fc,Ur.rangeRight=hc,Ur.rearg=Us,Ur.reject=function(e,t){return(Hs(e)?Ct:gn)(e,Ns(ui(t,3)))},Ur.remove=function(e,t){var r=[];if(!e||!e.length)return r;var n=-1,o=[],i=e.length;for(t=ui(t,3);++n<i;){var s=e[n];t(s,n,e)&&(r.push(s),o.push(n))}return Jn(e,o),r},Ur.rest=function(e,t){if("function"!=typeof e)throw new Ie(i);return Qn(e,t=t===n?t:ha(t))},Ur.reverse=es,Ur.sampleSize=function(e,t,r){return t=(r?wi(e,t,r):t===n)?1:ha(t),(Hs(e)?Kr:Xn)(e,t)},Ur.set=function(e,t,r){return null==e?e:Yn(e,t,r)},Ur.setWith=function(e,t,r,o){return o="function"==typeof o?o:n,null==e?e:Yn(e,t,r,o)},Ur.shuffle=function(e){return(Hs(e)?Xr:ro)(e)},Ur.slice=function(e,t,r){var o=null==e?0:e.length;return o?(r&&"number"!=typeof r&&wi(e,t,r)?(t=0,r=o):(t=null==t?0:ha(t),r=r===n?o:ha(r)),no(e,t,r)):[]},Ur.sortBy=ks,Ur.sortedUniq=function(e){return e&&e.length?ao(e):[]},Ur.sortedUniqBy=function(e,t){return e&&e.length?ao(e,ui(t,2)):[]},Ur.split=function(e,t,r){return r&&"number"!=typeof r&&wi(e,t,r)&&(t=r=n),(r=r===n?g:r>>>0)?(e=ba(e))&&("string"==typeof t||null!=t&&!ia(t))&&!(t=uo(t))&&cr(e)?So(hr(e),0,r):e.split(t,r):[]},Ur.spread=function(e,t){if("function"!=typeof e)throw new Ie(i);return t=null==t?0:Vt(ha(t),0),Qn((function(r){var n=r[t],o=So(r,0,t);return n&&Dt(o,n),At(e,this,o)}))},Ur.tail=function(e){var t=null==e?0:e.length;return t?no(e,1,t):[]},Ur.take=function(e,t,r){return e&&e.length?no(e,0,(t=r||t===n?1:ha(t))<0?0:t):[]},Ur.takeRight=function(e,t,r){var o=null==e?0:e.length;return o?no(e,(t=o-(t=r||t===n?1:ha(t)))<0?0:t,o):[]},Ur.takeRightWhile=function(e,t){return e&&e.length?ho(e,ui(t,3),!1,!0):[]},Ur.takeWhile=function(e,t){return e&&e.length?ho(e,ui(t,3)):[]},Ur.tap=function(e,t){return t(e),e},Ur.throttle=function(e,t,r){var n=!0,o=!0;if("function"!=typeof e)throw new Ie(i);return ea(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),js(e,t,{leading:n,maxWait:t,trailing:o})},Ur.thru=fs,Ur.toArray=pa,Ur.toPairs=Ma,Ur.toPairsIn=Ua,Ur.toPath=function(e){return Hs(e)?qt(e,Di):ca(e)?[e]:Io(qi(ba(e)))},Ur.toPlainObject=ya,Ur.transform=function(e,t,r){var n=Hs(e),o=n||Zs(e)||ua(e);if(t=ui(t,4),null==r){var i=e&&e.constructor;r=o?n?new i:[]:ea(e)&&Ks(i)?Fr(Je(e)):{}}return(o?It:wn)(e,(function(e,n,o){return t(r,e,n,o)})),r},Ur.unary=function(e){return Os(e,1)},Ur.union=ts,Ur.unionBy=rs,Ur.unionWith=ns,Ur.uniq=function(e){return e&&e.length?lo(e):[]},Ur.uniqBy=function(e,t){return e&&e.length?lo(e,ui(t,2)):[]},Ur.uniqWith=function(e,t){return t="function"==typeof t?t:n,e&&e.length?lo(e,n,t):[]},Ur.unset=function(e,t){return null==e||po(e,t)},Ur.unzip=os,Ur.unzipWith=is,Ur.update=function(e,t,r){return null==e?e:fo(e,t,vo(r))},Ur.updateWith=function(e,t,r,o){return o="function"==typeof o?o:n,null==e?e:fo(e,t,vo(r),o)},Ur.values=Fa,Ur.valuesIn=function(e){return null==e?[]:tr(e,Ra(e))},Ur.without=ss,Ur.words=Ka,Ur.wrap=function(e,t){return Ds(vo(t),e)},Ur.xor=as,Ur.xorBy=cs,Ur.xorWith=us,Ur.zip=ls,Ur.zipObject=function(e,t){return yo(e||[],t||[],en)},Ur.zipObjectDeep=function(e,t){return yo(e||[],t||[],Yn)},Ur.zipWith=ds,Ur.entries=Ma,Ur.entriesIn=Ua,Ur.extend=wa,Ur.extendWith=_a,ac(Ur,Ur),Ur.add=yc,Ur.attempt=Xa,Ur.camelCase=Wa,Ur.capitalize=Ba,Ur.ceil=bc,Ur.clamp=function(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=(r=ga(r))==r?r:0),t!==n&&(t=(t=ga(t))==t?t:0),an(ga(e),t,r)},Ur.clone=function(e){return cn(e,4)},Ur.cloneDeep=function(e){return cn(e,5)},Ur.cloneDeepWith=function(e,t){return cn(e,5,t="function"==typeof t?t:n)},Ur.cloneWith=function(e,t){return cn(e,4,t="function"==typeof t?t:n)},Ur.conformsTo=function(e,t){return null==t||un(e,t,ja(t))},Ur.deburr=za,Ur.defaultTo=function(e,t){return null==e||e!=e?t:e},Ur.divide=vc,Ur.endsWith=function(e,t,r){e=ba(e),t=uo(t);var o=e.length,i=r=r===n?o:an(ha(r),0,o);return(r-=t.length)>=0&&e.slice(r,i)==t},Ur.eq=Fs,Ur.escape=function(e){return(e=ba(e))&&X.test(e)?e.replace(Q,sr):e},Ur.escapeRegExp=function(e){return(e=ba(e))&&se.test(e)?e.replace(ie,"\\$&"):e},Ur.every=function(e,t,r){var o=Hs(e)?Rt:hn;return r&&wi(e,t,r)&&(t=n),o(e,ui(t,3))},Ur.find=gs,Ur.findIndex=zi,Ur.findKey=function(e,t){return Bt(e,ui(t,3),wn)},Ur.findLast=ys,Ur.findLastIndex=Hi,Ur.findLastKey=function(e,t){return Bt(e,ui(t,3),_n)},Ur.floor=wc,Ur.forEach=bs,Ur.forEachRight=vs,Ur.forIn=function(e,t){return null==e?e:bn(e,ui(t,3),Ra)},Ur.forInRight=function(e,t){return null==e?e:vn(e,ui(t,3),Ra)},Ur.forOwn=function(e,t){return e&&wn(e,ui(t,3))},Ur.forOwnRight=function(e,t){return e&&_n(e,ui(t,3))},Ur.get=Ta,Ur.gt=Ws,Ur.gte=Bs,Ur.has=function(e,t){return null!=e&&gi(e,t,On)},Ur.hasIn=Oa,Ur.head=$i,Ur.identity=nc,Ur.includes=function(e,t,r,n){e=$s(e)?e:Fa(e),r=r&&!n?ha(r):0;var o=e.length;return r<0&&(r=Vt(o+r,0)),aa(e)?r<=o&&e.indexOf(t,r)>-1:!!o&&Ht(e,t,r)>-1},Ur.indexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var o=null==r?0:ha(r);return o<0&&(o=Vt(n+o,0)),Ht(e,t,o)},Ur.inRange=function(e,t,r){return t=fa(t),r===n?(r=t,t=0):r=fa(r),function(e,t,r){return e>=br(t,r)&&e<Vt(t,r)}(e=ga(e),t,r)},Ur.invoke=Ia,Ur.isArguments=zs,Ur.isArray=Hs,Ur.isArrayBuffer=Gs,Ur.isArrayLike=$s,Ur.isArrayLikeObject=Js,Ur.isBoolean=function(e){return!0===e||!1===e||ta(e)&&kn(e)==w},Ur.isBuffer=Zs,Ur.isDate=Vs,Ur.isElement=function(e){return ta(e)&&1===e.nodeType&&!oa(e)},Ur.isEmpty=function(e){if(null==e)return!0;if($s(e)&&(Hs(e)||"string"==typeof e||"function"==typeof e.splice||Zs(e)||ua(e)||zs(e)))return!e.length;var t=mi(e);if(t==T||t==j)return!e.size;if(xi(e))return!qn(e).length;for(var r in e)if(qe.call(e,r))return!1;return!0},Ur.isEqual=function(e,t){return Rn(e,t)},Ur.isEqualWith=function(e,t,r){var o=(r="function"==typeof r?r:n)?r(e,t):n;return o===n?Rn(e,t,n,r):!!o},Ur.isError=Qs,Ur.isFinite=function(e){return"number"==typeof e&&wt(e)},Ur.isFunction=Ks,Ur.isInteger=Xs,Ur.isLength=Ys,Ur.isMap=ra,Ur.isMatch=function(e,t){return e===t||Cn(e,t,di(t))},Ur.isMatchWith=function(e,t,r){return r="function"==typeof r?r:n,Cn(e,t,di(t),r)},Ur.isNaN=function(e){return na(e)&&e!=+e},Ur.isNative=function(e){if(Ei(e))throw new ce("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Ln(e)},Ur.isNil=function(e){return null==e},Ur.isNull=function(e){return null===e},Ur.isNumber=na,Ur.isObject=ea,Ur.isObjectLike=ta,Ur.isPlainObject=oa,Ur.isRegExp=ia,Ur.isSafeInteger=function(e){return Xs(e)&&e>=-9007199254740991&&e<=h},Ur.isSet=sa,Ur.isString=aa,Ur.isSymbol=ca,Ur.isTypedArray=ua,Ur.isUndefined=function(e){return e===n},Ur.isWeakMap=function(e){return ta(e)&&mi(e)==L},Ur.isWeakSet=function(e){return ta(e)&&"[object WeakSet]"==kn(e)},Ur.join=function(e,t){return null==e?"":_t.call(e,t)},Ur.kebabCase=Ha,Ur.last=Qi,Ur.lastIndexOf=function(e,t,r){var o=null==e?0:e.length;if(!o)return-1;var i=o;return r!==n&&(i=(i=ha(r))<0?Vt(o+i,0):br(i,o-1)),t==t?function(e,t,r){for(var n=r+1;n--;)if(e[n]===t)return n;return n}(e,t,i):zt(e,$t,i,!0)},Ur.lowerCase=Ga,Ur.lowerFirst=$a,Ur.lt=la,Ur.lte=da,Ur.max=function(e){return e&&e.length?mn(e,nc,Tn):n},Ur.maxBy=function(e,t){return e&&e.length?mn(e,ui(t,2),Tn):n},Ur.mean=function(e){return Jt(e,nc)},Ur.meanBy=function(e,t){return Jt(e,ui(t,2))},Ur.min=function(e){return e&&e.length?mn(e,nc,Mn):n},Ur.minBy=function(e,t){return e&&e.length?mn(e,ui(t,2),Mn):n},Ur.stubArray=mc,Ur.stubFalse=gc,Ur.stubObject=function(){return{}},Ur.stubString=function(){return""},Ur.stubTrue=function(){return!0},Ur.multiply=Sc,Ur.nth=function(e,t){return e&&e.length?zn(e,ha(t)):n},Ur.noConflict=function(){return gt._===this&&(gt._=We),this},Ur.noop=cc,Ur.now=Ts,Ur.pad=function(e,t,r){e=ba(e);var n=(t=ha(t))?fr(e):0;if(!t||n>=t)return e;var o=(t-n)/2;return Go(mt(o),r)+e+Go(ht(o),r)},Ur.padEnd=function(e,t,r){e=ba(e);var n=(t=ha(t))?fr(e):0;return t&&n<t?e+Go(t-n,r):e},Ur.padStart=function(e,t,r){e=ba(e);var n=(t=ha(t))?fr(e):0;return t&&n<t?Go(t-n,r)+e:e},Ur.parseInt=function(e,t,r){return r||null==t?t=0:t&&(t=+t),wr(ba(e).replace(ae,""),t||0)},Ur.random=function(e,t,r){if(r&&"boolean"!=typeof r&&wi(e,t,r)&&(t=r=n),r===n&&("boolean"==typeof t?(r=t,t=n):"boolean"==typeof e&&(r=e,e=n)),e===n&&t===n?(e=0,t=1):(e=fa(e),t===n?(t=e,e=0):t=fa(t)),e>t){var o=e;e=t,t=o}if(r||e%1||t%1){var i=_r();return br(e+i*(t-e+pt("1e-"+((i+"").length-1))),t)}return Zn(e,t)},Ur.reduce=function(e,t,r){var n=Hs(e)?Mt:Qt,o=arguments.length<3;return n(e,ui(t,4),r,o,pn)},Ur.reduceRight=function(e,t,r){var n=Hs(e)?Ut:Qt,o=arguments.length<3;return n(e,ui(t,4),r,o,fn)},Ur.repeat=function(e,t,r){return t=(r?wi(e,t,r):t===n)?1:ha(t),Vn(ba(e),t)},Ur.replace=function(){var e=arguments,t=ba(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Ur.result=function(e,t,r){var o=-1,i=(t=wo(t,e)).length;for(i||(i=1,e=n);++o<i;){var s=null==e?n:e[Di(t[o])];s===n&&(o=i,s=r),e=Ks(s)?s.call(e):s}return e},Ur.round=Ec,Ur.runInContext=e,Ur.sample=function(e){return(Hs(e)?Qr:Kn)(e)},Ur.size=function(e){if(null==e)return 0;if($s(e))return aa(e)?fr(e):e.length;var t=mi(e);return t==T||t==j?e.size:qn(e).length},Ur.snakeCase=Ja,Ur.some=function(e,t,r){var o=Hs(e)?Ft:oo;return r&&wi(e,t,r)&&(t=n),o(e,ui(t,3))},Ur.sortedIndex=function(e,t){return io(e,t)},Ur.sortedIndexBy=function(e,t,r){return so(e,t,ui(r,2))},Ur.sortedIndexOf=function(e,t){var r=null==e?0:e.length;if(r){var n=io(e,t);if(n<r&&Fs(e[n],t))return n}return-1},Ur.sortedLastIndex=function(e,t){return io(e,t,!0)},Ur.sortedLastIndexBy=function(e,t,r){return so(e,t,ui(r,2),!0)},Ur.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var r=io(e,t,!0)-1;if(Fs(e[r],t))return r}return-1},Ur.startCase=Za,Ur.startsWith=function(e,t,r){return e=ba(e),r=null==r?0:an(ha(r),0,e.length),t=uo(t),e.slice(r,r+t.length)==t},Ur.subtract=xc,Ur.sum=function(e){return e&&e.length?Kt(e,nc):0},Ur.sumBy=function(e,t){return e&&e.length?Kt(e,ui(t,2)):0},Ur.template=function(e,t,r){var o=Ur.templateSettings;r&&wi(e,t,r)&&(t=n),e=ba(e),t=_a({},t,o,Yo);var i,s,a=_a({},t.imports,o.imports,Yo),c=ja(a),u=tr(a,c),l=0,d=t.interpolate||Ee,p="__p += '",f=Ae((t.escape||Ee).source+"|"+d.source+"|"+(d===te?me:Ee).source+"|"+(t.evaluate||Ee).source+"|$","g"),h="//# sourceURL="+(qe.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ct+"]")+"\n";e.replace(f,(function(t,r,n,o,a,c){return n||(n=o),p+=e.slice(l,c).replace(xe,ar),r&&(i=!0,p+="' +\n__e("+r+") +\n'"),a&&(s=!0,p+="';\n"+a+";\n__p += '"),n&&(p+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),l=c+t.length,t})),p+="';\n";var m=qe.call(t,"variable")&&t.variable;if(m){if(fe.test(m))throw new ce("Invalid `variable` option passed into `_.template`")}else p="with (obj) {\n"+p+"\n}\n";p=(s?p.replace($,""):p).replace(J,"$1").replace(Z,"$1;"),p="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var g=Xa((function(){return ke(c,h+"return "+p).apply(n,u)}));if(g.source=p,Qs(g))throw g;return g},Ur.times=function(e,t){if((e=ha(e))<1||e>h)return[];var r=g,n=br(e,g);t=ui(t),e-=g;for(var o=Xt(n,t);++r<e;)t(r);return o},Ur.toFinite=fa,Ur.toInteger=ha,Ur.toLength=ma,Ur.toLower=function(e){return ba(e).toLowerCase()},Ur.toNumber=ga,Ur.toSafeInteger=function(e){return e?an(ha(e),-9007199254740991,h):0===e?e:0},Ur.toString=ba,Ur.toUpper=function(e){return ba(e).toUpperCase()},Ur.trim=function(e,t,r){if((e=ba(e))&&(r||t===n))return Yt(e);if(!e||!(t=uo(t)))return e;var o=hr(e),i=hr(t);return So(o,nr(o,i),or(o,i)+1).join("")},Ur.trimEnd=function(e,t,r){if((e=ba(e))&&(r||t===n))return e.slice(0,mr(e)+1);if(!e||!(t=uo(t)))return e;var o=hr(e);return So(o,0,or(o,hr(t))+1).join("")},Ur.trimStart=function(e,t,r){if((e=ba(e))&&(r||t===n))return e.replace(ae,"");if(!e||!(t=uo(t)))return e;var o=hr(e);return So(o,nr(o,hr(t))).join("")},Ur.truncate=function(e,t){var r=30,o="...";if(ea(t)){var i="separator"in t?t.separator:i;r="length"in t?ha(t.length):r,o="omission"in t?uo(t.omission):o}var s=(e=ba(e)).length;if(cr(e)){var a=hr(e);s=a.length}if(r>=s)return e;var c=r-fr(o);if(c<1)return o;var u=a?So(a,0,c).join(""):e.slice(0,c);if(i===n)return u+o;if(a&&(c+=u.length-c),ia(i)){if(e.slice(c).search(i)){var l,d=u;for(i.global||(i=Ae(i.source,ba(ge.exec(i))+"g")),i.lastIndex=0;l=i.exec(d);)var p=l.index;u=u.slice(0,p===n?c:p)}}else if(e.indexOf(uo(i),c)!=c){var f=u.lastIndexOf(i);f>-1&&(u=u.slice(0,f))}return u+o},Ur.unescape=function(e){return(e=ba(e))&&K.test(e)?e.replace(V,gr):e},Ur.uniqueId=function(e){var t=++De;return ba(e)+t},Ur.upperCase=Va,Ur.upperFirst=Qa,Ur.each=bs,Ur.eachRight=vs,Ur.first=$i,ac(Ur,(_c={},wn(Ur,(function(e,t){qe.call(Ur.prototype,t)||(_c[t]=e)})),_c),{chain:!1}),Ur.VERSION="4.17.21",It(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Ur[e].placeholder=Ur})),It(["drop","take"],(function(e,t){zr.prototype[e]=function(r){r=r===n?1:Vt(ha(r),0);var o=this.__filtered__&&!t?new zr(this):this.clone();return o.__filtered__?o.__takeCount__=br(r,o.__takeCount__):o.__views__.push({size:br(r,g),type:e+(o.__dir__<0?"Right":"")}),o},zr.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),It(["filter","map","takeWhile"],(function(e,t){var r=t+1,n=1==r||3==r;zr.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ui(e,3),type:r}),t.__filtered__=t.__filtered__||n,t}})),It(["head","last"],(function(e,t){var r="take"+(t?"Right":"");zr.prototype[e]=function(){return this[r](1).value()[0]}})),It(["initial","tail"],(function(e,t){var r="drop"+(t?"":"Right");zr.prototype[e]=function(){return this.__filtered__?new zr(this):this[r](1)}})),zr.prototype.compact=function(){return this.filter(nc)},zr.prototype.find=function(e){return this.filter(e).head()},zr.prototype.findLast=function(e){return this.reverse().find(e)},zr.prototype.invokeMap=Qn((function(e,t){return"function"==typeof e?new zr(this):this.map((function(r){return In(r,e,t)}))})),zr.prototype.reject=function(e){return this.filter(Ns(ui(e)))},zr.prototype.slice=function(e,t){e=ha(e);var r=this;return r.__filtered__&&(e>0||t<0)?new zr(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(r=(t=ha(t))<0?r.dropRight(-t):r.take(t-e)),r)},zr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},zr.prototype.toArray=function(){return this.take(g)},wn(zr.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),i=Ur[o?"take"+("last"==t?"Right":""):t],s=o||/^find/.test(t);i&&(Ur.prototype[t]=function(){var t=this.__wrapped__,a=o?[1]:arguments,c=t instanceof zr,u=a[0],l=c||Hs(t),d=function(e){var t=i.apply(Ur,Dt([e],a));return o&&p?t[0]:t};l&&r&&"function"==typeof u&&1!=u.length&&(c=l=!1);var p=this.__chain__,f=!!this.__actions__.length,h=s&&!p,m=c&&!f;if(!s&&l){t=m?t:new zr(this);var g=e.apply(t,a);return g.__actions__.push({func:fs,args:[d],thisArg:n}),new Br(g,p)}return h&&m?e.apply(this,a):(g=this.thru(d),h?o?g.value()[0]:g.value():g)})})),It(["pop","push","shift","sort","splice","unshift"],(function(e){var t=je[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);Ur.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var o=this.value();return t.apply(Hs(o)?o:[],e)}return this[r]((function(r){return t.apply(Hs(r)?r:[],e)}))}})),wn(zr.prototype,(function(e,t){var r=Ur[t];if(r){var n=r.name+"";qe.call(Ir,n)||(Ir[n]=[]),Ir[n].push({name:t,func:r})}})),Ir[Wo(n,2).name]=[{name:"wrapper",func:n}],zr.prototype.clone=function(){var e=new zr(this.__wrapped__);return e.__actions__=Io(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Io(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Io(this.__views__),e},zr.prototype.reverse=function(){if(this.__filtered__){var e=new zr(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},zr.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,r=Hs(e),n=t<0,o=r?e.length:0,i=function(e,t,r){var n=-1,o=r.length;for(;++n<o;){var i=r[n],s=i.size;switch(i.type){case"drop":e+=s;break;case"dropRight":t-=s;break;case"take":t=br(t,e+s);break;case"takeRight":e=Vt(e,t-s)}}return{start:e,end:t}}(0,o,this.__views__),s=i.start,a=i.end,c=a-s,u=n?a:s-1,l=this.__iteratees__,d=l.length,p=0,f=br(c,this.__takeCount__);if(!r||!n&&o==c&&f==c)return mo(e,this.__actions__);var h=[];e:for(;c--&&p<f;){for(var m=-1,g=e[u+=t];++m<d;){var y=l[m],b=y.iteratee,v=y.type,w=b(g);if(2==v)g=w;else if(!w){if(1==v)continue e;break e}}h[p++]=g}return h},Ur.prototype.at=hs,Ur.prototype.chain=function(){return ps(this)},Ur.prototype.commit=function(){return new Br(this.value(),this.__chain__)},Ur.prototype.next=function(){this.__values__===n&&(this.__values__=pa(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}},Ur.prototype.plant=function(e){for(var t,r=this;r instanceof Wr;){var o=Ui(r);o.__index__=0,o.__values__=n,t?i.__wrapped__=o:t=o;var i=o;r=r.__wrapped__}return i.__wrapped__=e,t},Ur.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof zr){var t=e;return this.__actions__.length&&(t=new zr(this)),(t=t.reverse()).__actions__.push({func:fs,args:[es],thisArg:n}),new Br(t,this.__chain__)}return this.thru(es)},Ur.prototype.toJSON=Ur.prototype.valueOf=Ur.prototype.value=function(){return mo(this.__wrapped__,this.__actions__)},Ur.prototype.first=Ur.prototype.head,Xe&&(Ur.prototype[Xe]=function(){return this}),Ur}();gt._=yr,(o=function(){return yr}.call(t,r,t,e))===n||(e.exports=o)}).call(this)})),k(e.exports),E(e.exports,"default",(()=>de)),E(e.exports,"Web2Driver",(()=>le)),E(e.exports,"Session",(()=>se)),E(e.exports,"UIElement",(()=>K));var I={},j=I&&I.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),R=I&&I.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||j(t,e,r)},C=I&&I.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(I,"__esModule",{value:!0}),I.command=I.DEFAULTS=I.getPrototype=void 0;C(a);const L=C(P("aZBcl"));var N=P("kLa2o"),q={},D=q&&q.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),M=q&&q.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||D(t,e,r)},U=q&&q.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(q,"__esModule",{value:!0}),q.DEFAULT_CONFIGS=q.ConfigParser=q.isCloudCapability=q.validateConfig=void 0;var F=P("hByiW");Object.defineProperty(q,"DEFAULT_CONFIGS",{enumerable:!0,get:function(){return F.DEFAULT_CONFIGS}});var W=P("gSLCk");Object.defineProperty(q,"validateConfig",{enumerable:!0,get:function(){return W.validateConfig}}),Object.defineProperty(q,"isCloudCapability",{enumerable:!0,get:function(){return W.isCloudCapability}});const B=U(P("3mjWR"));q.ConfigParser=B.default,M(P("8BEJT"),q);const z=C(P("kxz8U"));I.command=z.default;var H=P("6oiT0");Object.defineProperty(I,"DEFAULTS",{enumerable:!0,get:function(){return H.DEFAULTS}});var G=P("6JCTy");Object.defineProperty(I,"getPrototype",{enumerable:!0,get:function(){return G.getPrototype}});const $=(0,L.default)("webdriver");class J{static async newSession(e,t,r={},n){const o=(0,q.validateConfig)(H.DEFAULTS,e);e.logLevels&&e.logLevels.webdriver||L.default.setLevel("webdriver",o.logLevel),o.outputDir,$.info("Initiate new session using the WebDriver protocol");const i={...o.capabilities},{sessionId:s,capabilities:a}=await(0,G.startWebDriverSession)(o),c=(0,N.sessionEnvironmentDetector)({capabilities:a,requestedCapabilities:i}),u=(0,G.getEnvironmentVars)(c),l={...(0,G.getPrototype)(c),...u,...r},d=(0,N.webdriverMonad)({...o,requestedCapabilities:i},t,l)(s,n);return o.enableDirectConnect&&(0,G.setupDirectConnect)(d),d}static attachToSession(e,t,r={},n){if(!e||"string"!=typeof e.sessionId)throw new Error("sessionId is required to attach to existing session");e.logLevel&&L.default.setLevel("webdriver",e.logLevel),e.capabilities=e.capabilities||{},e.isW3C=!1!==e.isW3C,e.protocol=e.protocol||H.DEFAULTS.protocol.default,e.hostname=e.hostname||H.DEFAULTS.hostname.default,e.port=e.port||H.DEFAULTS.port.default,e.path=e.path||H.DEFAULTS.path.default;const o=(0,G.getEnvironmentVars)(e),i={...(0,G.getPrototype)(e),...o,...r};return(0,N.webdriverMonad)(e,t,i)(e.sessionId,n)}static async reloadSession(e){const t={...e.options,capabilities:e.requestedCapabilities},{sessionId:r,capabilities:n}=await(0,G.startWebDriverSession)(t);return e.sessionId=r,e.capabilities=n,r}static get WebDriver(){return J}}I.default=J,R(P("8WBmN"),I);var Z=P("g6WRe"),V=P("aZBcl");Z=P("g6WRe");const Q="element-6066-11e4-a52e-4f735466cecf";class K{constructor(e,t,r){this.elementKey=e,this.elementId=this[e]=t[e],this.__is_w2d_element=!0,this.parent=r,this.session=r.session||r}get executeObj(){return{[this.elementKey]:this.elementId}}async findElement(e,t){return X(await this.session.cmd("findElementFromElement",this.elementId,e,t),this)}async findElements(e,t){return(await this.session.cmd("findElementsFromElement",this.elementId,e,t)).map((e=>X(e,this)))}}function X(e,t){let r;if(r=e[Q]?Q:"ELEMENT",!e[r])throw new Error(`Bad findElement response; did not have element key. Response was: ${JSON.stringify(e)}`);return new K(r,e,t)}const Y={isElementSelected:"isSelected",isElementDisplayed:"isDisplayed",getElementAttribute:"getAttribute",getElementCSSValue:"getCSSValue",getElementText:"getText",getElementTagName:"getTagName",getElementLocation:"getLocation",getElementLocationInView:"getLocationInView",getElementProperty:"getProperty",getElementRect:"getRect",getElementSize:"getSize",getElementEnabled:"getEnabled",elementClick:"click",elementSubmit:"submit",elementClear:"clear",elementSendKeys:"sendKeys",takeElementScreenshot:"takeScreenshot"};for(const[e,t]of(0,Z.toPairs)(Y))K.prototype[t]=async function(...t){return await this.session.cmd(e,this.elementId,...t)};var ee=P("dLelG"),te=P("bLzJe"),re=P("iMZCy"),ne=P("50wc7");const oe=T(V)("web2driver");let ie=["Protocol","Host","Port","Path"];ie=ie.map((e=>`directConnect${e}`));ie.map((e=>`appium:${e}`));class se{constructor(e,t=ue.logLevel){this.client=e,oe.setLevel&&oe.setLevel(t)}async cmd(e,...t){const r=await this.client[e](...t);if(r&&r.error)throw new Error(r.message?r.message:r.error);return r}get connectedUrl(){const{protocol:e,hostname:t,port:r,path:n}=this.client.options;return`${e}://${t}:${r}${n}`}get sessionId(){return this.client.sessionId}get capabilities(){return this.client.options.capabilities}async findElement(e,t){return X(await this.cmd("findElement",e,t),this)}async findElements(e,t){return(await this.cmd("findElements",e,t)).map((e=>X(e,this)))}async waitForElement(e,t,r){let n=null;const o=Date.now()+e;for(;null===n&&Date.now()<o;)try{n=await this.findElement(t,r)}catch(e){}if(n)return n;throw new Error(`Could not find element using strategy ${t} and value '${r}' after ${e}ms`)}async waitForElements(e,t,r){let n=[];const o=Date.now()+e;for(;0===n.length&&Date.now()<o;)n=await this.findElements(t,r);if(n.length)return n;throw new Error(`Could not find any elements using strategy ${t} and value '${r}' after ${e}ms`)}async executeBase(e,t,r){return r=r.map((e=>e.__is_w2d_element?e.executeObj:e)),await this.cmd(e,t,r)}async executeScript(e,t){return await this.executeBase("executeScript",e,t)}async executeAsyncScript(e,t){return await this.executeBase("executeAsyncScript",e,t)}}const ae=["newSession","findElement","findElements","findElementFromElement","findElementsFromElement","executeScript","executeAsyncScript"],ce={deleteSession:"quit"};for(const e of[T(ee),T(te),T(re),T(ne)])for(const[t,r]of(0,Z.toPairs)(e))for(const[e,t]of(0,Z.toPairs)(r)){if(ae.includes(t.command))continue;if((0,Z.keys)(Y).includes(t.command))continue;const e=(0,Z.keys)(ce).includes(t.command)?ce[t.command]:t.command;se.prototype[e]=async function(...e){return await this.cmd(t.command,...e)}}const ue={protocol:"http",hostname:"0.0.0.0",port:4444,path:"/wd/hub",logLevel:"undefined"==typeof window?"silent":"info"};class le{static async remote({protocol:e=ue.protocol,hostname:t=ue.hostname,port:r=ue.port,path:n=ue.path,logLevel:o=ue.logLevel,...i},s={}){const a={protocol:e,hostname:t,port:r,path:n,capabilities:s,logLevel:o,...i},c=await T(I).newSession(a);return new se(c,o)}static async attachToSession(e,{protocol:t=ue.protocol,hostname:r=ue.hostname,port:n=ue.port,path:o=ue.path,logLevel:i=ue.logLevel,...s},a={},c=!0){if(!e)throw new Error("Can't attach to a session without a session id");const u={sessionId:e,isW3C:c,protocol:t,hostname:r,port:n,path:o,capabilities:a,...s},l=await T(I).attachToSession(u);return new se(l,i)}}var de=le},7603:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=7603,e.exports=t},1826:(e,t,r)=>{"use strict";var n=r(6862),o=r(4897),i=r(4571),s=r(3390),a=r(9662),c=s("Object.prototype.toString"),u=r(3825)(),l="undefined"==typeof globalThis?r.g:globalThis,d=o(),p=s("String.prototype.slice"),f=Object.getPrototypeOf,h=s("Array.prototype.indexOf",!0)||function(e,t){for(var r=0;r<e.length;r+=1)if(e[r]===t)return r;return-1},m={__proto__:null};n(d,u&&a&&f?function(e){var t=new l[e];if(Symbol.toStringTag in t){var r=f(t),n=a(r,Symbol.toStringTag);if(!n){var o=f(r);n=a(o,Symbol.toStringTag)}m["$"+e]=i(n.get)}}:function(e){var t=new l[e];m["$"+e]=i(t.slice)});e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!u){var t=p(c(e),8,-1);return h(d,t)>-1?t:"Object"===t&&function(e){var t=!1;return n(m,(function(r,n){if(!t)try{r(e),t=p(n,1)}catch(e){}})),t}(e)}return a?function(e){var t=!1;return n(m,(function(r,n){if(!t)try{"$"+r(e)===n&&(t=p(n,1))}catch(e){}})),t}(e):null}},8479:e=>{e.exports=function(){for(var e={},r=0;r<arguments.length;r++){var n=arguments[r];for(var o in n)t.call(n,o)&&(e[o]=n[o])}return e};var t=Object.prototype.hasOwnProperty},6030:()=>{},4316:()=>{},1706:()=>{},6482:()=>{},2894:()=>{},69:()=>{},3907:()=>{},3541:()=>{},3535:()=>{},4435:()=>{},7376:()=>{},4897:(e,t,r)=>{"use strict";var n=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],o="undefined"==typeof globalThis?r.g:globalThis;e.exports=function(){for(var e=[],t=0;t<n.length;t++)"function"==typeof o[n[t]]&&(e[e.length]=n[t]);return e}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{"use strict";r.r(n),r.d(n,{getDriver:()=>c,getSessionInfo:()=>a,initializeDriverInPage:()=>i,setSessionInfo:()=>s});var e=r(5206);let t,o;async function i(t){var r,n,o,i,s;return await e.Web2Driver.attachToSession(t.sessionId,{protocol:null!==(r=t.protocol)&&void 0!==r?r:"http",hostname:null!==(n=t.hostname)&&void 0!==n?n:"localhost",port:null!==(o=t.port)&&void 0!==o?o:4723,path:null!==(i=t.path)&&void 0!==i?i:"/"},t.capabilities,null===(s=t.isW3C)||void 0===s||s)}function s(e){t=e}function a(){return t}async function c(){return o||(o=await i(t)),o}window.mabl={mobile:{initializeDriverInPage:i,setSessionInfo:s,getSessionInfo:a,getDriver:c},...window._mabl}})(),window.mablDriver=n})();
|
|
19
|
+
var r=P("iPtHj"),n=P("hWIin"),o=P("ggxXU");P("i5xvO"),P("9faA3");const i=e=>{const t=(t,n)=>r.Ky.create(t,(0,o.validateAndMerge)(e,n));for(const i of n.requestMethods)t[i]=(t,n)=>r.Ky.create(t,(0,o.validateAndMerge)(e,n,{method:i}));return t.create=e=>i((0,o.validateAndMerge)(e)),t.extend=t=>i((0,o.validateAndMerge)(e,t)),t.stop=n.stop,t};var s=i()})),P.register("iPtHj",(function(e,t){E(e.exports,"Ky",(()=>c));var r=P("i5xvO"),n=P("9faA3"),o=P("ggxXU"),i=P("5xAky"),s=P("isrK8"),a=P("hWIin");class c{constructor(e,t={}){var r,n,s;if(this._retryCount=0,this._input=e,this._options={credentials:this._input.credentials||"same-origin",...t,headers:(0,o.mergeHeaders)(this._input.headers,t.headers),hooks:(0,o.deepMerge)({beforeRequest:[],beforeRetry:[],beforeError:[],afterResponse:[]},t.hooks),method:(0,i.normalizeRequestMethod)(null!==(r=t.method)&&void 0!==r?r:this._input.method),prefixUrl:String(t.prefixUrl||""),retry:(0,i.normalizeRetryOptions)(t.retry),throwHttpErrors:!1!==t.throwHttpErrors,timeout:void 0===t.timeout?1e4:t.timeout,fetch:null!==(n=t.fetch)&&void 0!==n?n:globalThis.fetch.bind(globalThis)},"string"!=typeof this._input&&!(this._input instanceof URL||this._input instanceof globalThis.Request))throw new TypeError("`input` must be a string, URL, or Request");if(this._options.prefixUrl&&"string"==typeof this._input){if(this._input.startsWith("/"))throw new Error("`input` must not begin with a slash when using `prefixUrl`");this._options.prefixUrl.endsWith("/")||(this._options.prefixUrl+="/"),this._input=this._options.prefixUrl+this._input}if(a.supportsAbortController&&(this.abortController=new globalThis.AbortController,this._options.signal&&this._options.signal.addEventListener("abort",(()=>{this.abortController.abort()})),this._options.signal=this.abortController.signal),this.request=new globalThis.Request(this._input,this._options),this._options.searchParams){const e="?"+("string"==typeof this._options.searchParams?this._options.searchParams.replace(/^\?/,""):new URLSearchParams(this._options.searchParams).toString()),t=this.request.url.replace(/(?:\?.*?)?(?=#|$)/,e);!(a.supportsFormData&&this._options.body instanceof globalThis.FormData||this._options.body instanceof URLSearchParams)||this._options.headers&&this._options.headers["content-type"]||this.request.headers.delete("content-type"),this.request=new globalThis.Request(new globalThis.Request(t,this.request),this._options)}void 0!==this._options.json&&(this._options.body=JSON.stringify(this._options.json),this.request.headers.set("content-type",null!==(s=this._options.headers.get("content-type"))&&void 0!==s?s:"application/json"),this.request=new globalThis.Request(this.request,{body:this._options.body}))}static create(e,t){const n=new c(e,t),o=async()=>{if(n._options.timeout>a.maxSafeTimeout)throw new RangeError(`The \`timeout\` option cannot be greater than ${a.maxSafeTimeout}`);await Promise.resolve();let e=await n._fetch();for(const t of n._options.hooks.afterResponse){const r=await t(n.request,n._options,n._decorateResponse(e.clone()));r instanceof globalThis.Response&&(e=r)}if(n._decorateResponse(e),!e.ok&&n._options.throwHttpErrors){let t=new(0,r.HTTPError)(e,n.request,n._options);for(const e of n._options.hooks.beforeError)t=await e(t);throw t}if(n._options.onDownloadProgress){if("function"!=typeof n._options.onDownloadProgress)throw new TypeError("The `onDownloadProgress` option must be a function");if(!a.supportsStreams)throw new Error("Streams are not supported in your environment. `ReadableStream` is missing.");return n._stream(e.clone(),n._options.onDownloadProgress)}return e},i=n._options.retry.methods.includes(n.request.method.toLowerCase())?n._retry(o):o();for(const[e,r]of Object.entries(a.responseTypes))i[e]=async()=>{n.request.headers.set("accept",n.request.headers.get("accept")||r);const o=(await i).clone();if("json"===e){if(204===o.status)return"";if(t.parseJson)return t.parseJson(await o.text())}return o[e]()};return i}_calculateRetryDelay(e){if(this._retryCount++,this._retryCount<this._options.retry.limit&&!(e instanceof n.TimeoutError)){if(e instanceof r.HTTPError){if(!this._options.retry.statusCodes.includes(e.response.status))return 0;const t=e.response.headers.get("Retry-After");if(t&&this._options.retry.afterStatusCodes.includes(e.response.status)){let e=Number(t);return Number.isNaN(e)?e=Date.parse(t)-Date.now():e*=1e3,void 0!==this._options.retry.maxRetryAfter&&e>this._options.retry.maxRetryAfter?0:e}if(413===e.response.status)return 0}return.3*2**(this._retryCount-1)*1e3}return 0}_decorateResponse(e){return this._options.parseJson&&(e.json=async()=>this._options.parseJson(await e.text())),e}async _retry(e){try{return await e()}catch(t){const r=Math.min(this._calculateRetryDelay(t),a.maxSafeTimeout);if(0!==r&&this._retryCount>0){await(0,s.delay)(r);for(const e of this._options.hooks.beforeRetry){if(await e({request:this.request,options:this._options,error:t,retryCount:this._retryCount})===a.stop)return}return this._retry(e)}throw t}}async _fetch(){for(const e of this._options.hooks.beforeRequest){const t=await e(this.request,this._options);if(t instanceof Request){this.request=t;break}if(t instanceof Response)return t}return!1===this._options.timeout?this._options.fetch(this.request.clone()):(0,s.timeout)(this.request.clone(),this.abortController,this._options)}_stream(e,t){const r=Number(e.headers.get("content-length"))||0;let n=0;return new globalThis.Response(new globalThis.ReadableStream({async start(o){const i=e.body.getReader();t&&t({percent:0,transferredBytes:0,totalBytes:r},new Uint8Array),await async function e(){const{done:s,value:a}=await i.read();if(s)o.close();else{if(t){n+=a.byteLength;t({percent:0===r?0:n/r,transferredBytes:n,totalBytes:r},a)}o.enqueue(a),await e()}}()}}))}}})),P.register("i5xvO",(function(e,t){E(e.exports,"HTTPError",(()=>r));class r extends Error{constructor(e,t,r){const n=`${e.status||0===e.status?e.status:""} ${e.statusText||""}`.trim();super(`Request failed with ${n?`status code ${n}`:"an unknown error"}`),this.name="HTTPError",this.response=e,this.request=t,this.options=r}}})),P.register("9faA3",(function(e,t){E(e.exports,"TimeoutError",(()=>r));class r extends Error{constructor(e){super("Request timed out"),this.name="TimeoutError",this.request=e}}})),P.register("ggxXU",(function(e,t){E(e.exports,"validateAndMerge",(()=>n)),E(e.exports,"deepMerge",(()=>i)),E(e.exports,"mergeHeaders",(()=>o));var r=P("9N2Yf");const n=(...e)=>{for(const t of e)if((!(0,r.isObject)(t)||Array.isArray(t))&&void 0!==t)throw new TypeError("The `options` argument must be an object");return i({},...e)},o=(e={},t={})=>{const r=new globalThis.Headers(e),n=t instanceof globalThis.Headers,o=new globalThis.Headers(t);for(const[e,t]of o.entries())n&&"undefined"===t||void 0===t?r.delete(e):r.set(e,t);return r},i=(...e)=>{let t={},n={};for(const s of e)if(Array.isArray(s))Array.isArray(t)||(t=[]),t=[...t,...s];else if((0,r.isObject)(s)){for(let[e,n]of Object.entries(s))(0,r.isObject)(n)&&e in t&&(n=i(t[e],n)),t={...t,[e]:n};(0,r.isObject)(s.headers)&&(n=o(n,s.headers),t.headers=n)}return t}})),P.register("9N2Yf",(function(e,t){E(e.exports,"isObject",(()=>r));const r=e=>null!==e&&"object"==typeof e})),P.register("5xAky",(function(e,t){E(e.exports,"normalizeRequestMethod",(()=>n)),E(e.exports,"normalizeRetryOptions",(()=>s));var r=P("hWIin");const n=e=>r.requestMethods.includes(e)?e.toUpperCase():e,o=[413,429,503],i={limit:2,methods:["get","put","head","delete","options","trace"],statusCodes:[408,413,429,500,502,503,504],afterStatusCodes:o,maxRetryAfter:Number.POSITIVE_INFINITY},s=(e={})=>{if("number"==typeof e)return{...i,limit:e};if(e.methods&&!Array.isArray(e.methods))throw new Error("retry.methods must be an array");if(e.statusCodes&&!Array.isArray(e.statusCodes))throw new Error("retry.statusCodes must be an array");return{...i,...e,afterStatusCodes:o}}})),P.register("hWIin",(function(e,t){E(e.exports,"supportsAbortController",(()=>r)),E(e.exports,"supportsStreams",(()=>n)),E(e.exports,"supportsFormData",(()=>o)),E(e.exports,"requestMethods",(()=>i)),E(e.exports,"responseTypes",(()=>s)),E(e.exports,"maxSafeTimeout",(()=>a)),E(e.exports,"stop",(()=>c));const r="function"==typeof globalThis.AbortController,n="function"==typeof globalThis.ReadableStream,o="function"==typeof globalThis.FormData,i=["get","post","put","patch","head","delete"],s={json:"application/json",text:"text/*",formData:"multipart/form-data",arrayBuffer:"*/*",blob:"*/*"},a=2147483647,c=Symbol("stop")})),P.register("isrK8",(function(e,t){E(e.exports,"timeout",(()=>n)),E(e.exports,"delay",(()=>o));var r=P("9faA3");const n=async(e,t,n)=>new Promise(((o,i)=>{const s=setTimeout((()=>{t&&t.abort(),i(new(0,r.TimeoutError)(e))}),n.timeout);n.fetch(e).then(o).catch(i).then((()=>{clearTimeout(s)}))})),o=async e=>new Promise((t=>{setTimeout(t,e)}))})),P.register("8WBmN",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0})})),P.register("g6WRe",(function(e,t){(function(){var n,i="Expected a function",s="__lodash_hash_undefined__",a="__lodash_placeholder__",c=16,u=32,l=64,d=128,p=256,f=1/0,h=9007199254740991,m=NaN,g=4294967295,y=[["ary",d],["bind",1],["bindKey",2],["curry",8],["curryRight",c],["flip",512],["partial",u],["partialRight",l],["rearg",p]],b="[object Arguments]",v="[object Array]",w="[object Boolean]",_="[object Date]",S="[object Error]",E="[object Function]",k="[object GeneratorFunction]",T="[object Map]",O="[object Number]",A="[object Object]",P="[object Promise]",I="[object RegExp]",j="[object Set]",R="[object String]",C="[object Symbol]",L="[object WeakMap]",N="[object ArrayBuffer]",q="[object DataView]",D="[object Float32Array]",M="[object Float64Array]",U="[object Int8Array]",F="[object Int16Array]",W="[object Int32Array]",B="[object Uint8Array]",z="[object Uint8ClampedArray]",H="[object Uint16Array]",G="[object Uint32Array]",$=/\b__p \+= '';/g,J=/\b(__p \+=) '' \+/g,Z=/(__e\(.*?\)|\b__t\)) \+\n'';/g,V=/&(?:amp|lt|gt|quot|#39);/g,Q=/[&<>"']/g,K=RegExp(V.source),X=RegExp(Q.source),Y=/<%-([\s\S]+?)%>/g,ee=/<%([\s\S]+?)%>/g,te=/<%=([\s\S]+?)%>/g,re=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ne=/^\w*$/,oe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ie=/[\\^$.*+?()[\]{}|]/g,se=RegExp(ie.source),ae=/^\s+/,ce=/\s/,ue=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,le=/\{\n\/\* \[wrapped with (.+)\] \*/,de=/,? & /,pe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,fe=/[()=,{}\[\]\/\s]/,he=/\\(\\)?/g,me=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ge=/\w*$/,ye=/^[-+]0x[0-9a-f]+$/i,be=/^0b[01]+$/i,ve=/^\[object .+?Constructor\]$/,we=/^0o[0-7]+$/i,_e=/^(?:0|[1-9]\d*)$/,Se=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ee=/($^)/,xe=/['\n\r\u2028\u2029\\]/g,ke="\ud800-\udfff",Te="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Oe="\\u2700-\\u27bf",Ae="a-z\\xdf-\\xf6\\xf8-\\xff",Pe="A-Z\\xc0-\\xd6\\xd8-\\xde",Ie="\\ufe0e\\ufe0f",je="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Re="['’]",Ce="[\ud800-\udfff]",Le="["+je+"]",Ne="["+Te+"]",qe="\\d+",De="["+Oe+"]",Me="["+Ae+"]",Ue="[^"+ke+je+qe+Oe+Ae+Pe+"]",Fe="\ud83c[\udffb-\udfff]",We="[^\ud800-\udfff]",Be="(?:\ud83c[\udde6-\uddff]){2}",ze="[\ud800-\udbff][\udc00-\udfff]",He="["+Pe+"]",Ge="\\u200d",$e="(?:"+Me+"|"+Ue+")",Je="(?:"+He+"|"+Ue+")",Ze="(?:['’](?:d|ll|m|re|s|t|ve))?",Ve="(?:['’](?:D|LL|M|RE|S|T|VE))?",Qe="(?:"+Ne+"|"+Fe+")"+"?",Ke="["+Ie+"]?",Xe=Ke+Qe+("(?:"+Ge+"(?:"+[We,Be,ze].join("|")+")"+Ke+Qe+")*"),Ye="(?:"+[De,Be,ze].join("|")+")"+Xe,et="(?:"+[We+Ne+"?",Ne,Be,ze,Ce].join("|")+")",tt=RegExp(Re,"g"),rt=RegExp(Ne,"g"),nt=RegExp(Fe+"(?="+Fe+")|"+et+Xe,"g"),ot=RegExp([He+"?"+Me+"+"+Ze+"(?="+[Le,He,"$"].join("|")+")",Je+"+"+Ve+"(?="+[Le,He+$e,"$"].join("|")+")",He+"?"+$e+"+"+Ze,He+"+"+Ve,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",qe,Ye].join("|"),"g"),it=RegExp("["+Ge+ke+Te+Ie+"]"),st=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,at=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ct=-1,ut={};ut[D]=ut[M]=ut[U]=ut[F]=ut[W]=ut[B]=ut[z]=ut[H]=ut[G]=!0,ut[b]=ut[v]=ut[N]=ut[w]=ut[q]=ut[_]=ut[S]=ut[E]=ut[T]=ut[O]=ut[A]=ut[I]=ut[j]=ut[R]=ut[L]=!1;var lt={};lt[b]=lt[v]=lt[N]=lt[q]=lt[w]=lt[_]=lt[D]=lt[M]=lt[U]=lt[F]=lt[W]=lt[T]=lt[O]=lt[A]=lt[I]=lt[j]=lt[R]=lt[C]=lt[B]=lt[z]=lt[H]=lt[G]=!0,lt[S]=lt[E]=lt[L]=!1;var dt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},pt=parseFloat,ft=parseInt,ht="object"==typeof x&&x&&x.Object===Object&&x,mt="object"==typeof self&&self&&self.Object===Object&&self,gt=ht||mt||Function("return this")(),yt=t&&!t.nodeType&&t,bt=yt&&e&&!e.nodeType&&e,vt=bt&&bt.exports===yt,wt=vt&&ht.process,_t=function(){try{var e=bt&&bt.require&&bt.require("util").types;return e||wt&&wt.binding&&wt.binding("util")}catch(e){}}(),St=_t&&_t.isArrayBuffer,Et=_t&&_t.isDate,xt=_t&&_t.isMap,kt=_t&&_t.isRegExp,Tt=_t&&_t.isSet,Ot=_t&&_t.isTypedArray;function At(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function Pt(e,t,r,n){for(var o=-1,i=null==e?0:e.length;++o<i;){var s=e[o];t(n,s,r(s),e)}return n}function It(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}function jt(e,t){for(var r=null==e?0:e.length;r--&&!1!==t(e[r],r,e););return e}function Rt(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0}function Ct(e,t){for(var r=-1,n=null==e?0:e.length,o=0,i=[];++r<n;){var s=e[r];t(s,r,e)&&(i[o++]=s)}return i}function Lt(e,t){return!!(null==e?0:e.length)&&Ht(e,t,0)>-1}function Nt(e,t,r){for(var n=-1,o=null==e?0:e.length;++n<o;)if(r(t,e[n]))return!0;return!1}function qt(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}function Dt(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}function Mt(e,t,r,n){var o=-1,i=null==e?0:e.length;for(n&&i&&(r=e[++o]);++o<i;)r=t(r,e[o],o,e);return r}function Ut(e,t,r,n){var o=null==e?0:e.length;for(n&&o&&(r=e[--o]);o--;)r=t(r,e[o],o,e);return r}function Ft(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var Wt=Zt("length");function Bt(e,t,r){var n;return r(e,(function(e,r,o){if(t(e,r,o))return n=r,!1})),n}function zt(e,t,r,n){for(var o=e.length,i=r+(n?1:-1);n?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function Ht(e,t,r){return t==t?function(e,t,r){var n=r-1,o=e.length;for(;++n<o;)if(e[n]===t)return n;return-1}(e,t,r):zt(e,$t,r)}function Gt(e,t,r,n){for(var o=r-1,i=e.length;++o<i;)if(n(e[o],t))return o;return-1}function $t(e){return e!=e}function Jt(e,t){var r=null==e?0:e.length;return r?Kt(e,t)/r:m}function Zt(e){return function(t){return null==t?n:t[e]}}function Vt(e){return function(t){return null==e?n:e[t]}}function Qt(e,t,r,n,o){return o(e,(function(e,o,i){r=n?(n=!1,e):t(r,e,o,i)})),r}function Kt(e,t){for(var r,o=-1,i=e.length;++o<i;){var s=t(e[o]);s!==n&&(r=r===n?s:r+s)}return r}function Xt(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function Yt(e){return e?e.slice(0,mr(e)+1).replace(ae,""):e}function er(e){return function(t){return e(t)}}function tr(e,t){return qt(t,(function(t){return e[t]}))}function rr(e,t){return e.has(t)}function nr(e,t){for(var r=-1,n=e.length;++r<n&&Ht(t,e[r],0)>-1;);return r}function or(e,t){for(var r=e.length;r--&&Ht(t,e[r],0)>-1;);return r}var ir=Vt({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),sr=Vt({"&":"&","<":"<",">":">",'"':""","'":"'"});function ar(e){return"\\"+dt[e]}function cr(e){return it.test(e)}function ur(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}function lr(e,t){return function(r){return e(t(r))}}function dr(e,t){for(var r=-1,n=e.length,o=0,i=[];++r<n;){var s=e[r];s!==t&&s!==a||(e[r]=a,i[o++]=r)}return i}function pr(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}function fr(e){return cr(e)?function(e){var t=nt.lastIndex=0;for(;nt.test(e);)++t;return t}(e):Wt(e)}function hr(e){return cr(e)?function(e){return e.match(nt)||[]}(e):function(e){return e.split("")}(e)}function mr(e){for(var t=e.length;t--&&ce.test(e.charAt(t)););return t}var gr=Vt({"&":"&","<":"<",">":">",""":'"',"'":"'"});var yr=function e(t){var r,o=(t=null==t?gt:yr.defaults(gt.Object(),t,yr.pick(gt,at))).Array,x=t.Date,ce=t.Error,ke=t.Function,Te=t.Math,Oe=t.Object,Ae=t.RegExp,Pe=t.String,Ie=t.TypeError,je=o.prototype,Re=ke.prototype,Ce=Oe.prototype,Le=t["__core-js_shared__"],Ne=Re.toString,qe=Ce.hasOwnProperty,De=0,Me=(r=/[^.]+$/.exec(Le&&Le.keys&&Le.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",Ue=Ce.toString,Fe=Ne.call(Oe),We=gt._,Be=Ae("^"+Ne.call(qe).replace(ie,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ze=vt?t.Buffer:n,He=t.Symbol,Ge=t.Uint8Array,$e=ze?ze.allocUnsafe:n,Je=lr(Oe.getPrototypeOf,Oe),Ze=Oe.create,Ve=Ce.propertyIsEnumerable,Qe=je.splice,Ke=He?He.isConcatSpreadable:n,Xe=He?He.iterator:n,Ye=He?He.toStringTag:n,et=function(){try{var e=pi(Oe,"defineProperty");return e({},"",{}),e}catch(e){}}(),nt=t.clearTimeout!==gt.clearTimeout&&t.clearTimeout,it=x&&x.now!==gt.Date.now&&x.now,dt=t.setTimeout!==gt.setTimeout&&t.setTimeout,ht=Te.ceil,mt=Te.floor,yt=Oe.getOwnPropertySymbols,bt=ze?ze.isBuffer:n,wt=t.isFinite,_t=je.join,Wt=lr(Oe.keys,Oe),Vt=Te.max,br=Te.min,vr=x.now,wr=t.parseInt,_r=Te.random,Sr=je.reverse,Er=pi(t,"DataView"),xr=pi(t,"Map"),kr=pi(t,"Promise"),Tr=pi(t,"Set"),Or=pi(t,"WeakMap"),Ar=pi(Oe,"create"),Pr=Or&&new Or,Ir={},jr=Mi(Er),Rr=Mi(xr),Cr=Mi(kr),Lr=Mi(Tr),Nr=Mi(Or),qr=He?He.prototype:n,Dr=qr?qr.valueOf:n,Mr=qr?qr.toString:n;function Ur(e){if(ta(e)&&!Hs(e)&&!(e instanceof zr)){if(e instanceof Br)return e;if(qe.call(e,"__wrapped__"))return Ui(e)}return new Br(e)}var Fr=function(){function e(){}return function(t){if(!ea(t))return{};if(Ze)return Ze(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function Wr(){}function Br(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}function zr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=g,this.__views__=[]}function Hr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Gr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function $r(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Jr(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new $r;++t<r;)this.add(e[t])}function Zr(e){var t=this.__data__=new Gr(e);this.size=t.size}function Vr(e,t){var r=Hs(e),n=!r&&zs(e),o=!r&&!n&&Zs(e),i=!r&&!n&&!o&&ua(e),s=r||n||o||i,a=s?Xt(e.length,Pe):[],c=a.length;for(var u in e)!t&&!qe.call(e,u)||s&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||vi(u,c))||a.push(u);return a}function Qr(e){var t=e.length;return t?e[Zn(0,t-1)]:n}function Kr(e,t){return Ni(Io(e),an(t,0,e.length))}function Xr(e){return Ni(Io(e))}function Yr(e,t,r){(r!==n&&!Fs(e[t],r)||r===n&&!(t in e))&&on(e,t,r)}function en(e,t,r){var o=e[t];qe.call(e,t)&&Fs(o,r)&&(r!==n||t in e)||on(e,t,r)}function tn(e,t){for(var r=e.length;r--;)if(Fs(e[r][0],t))return r;return-1}function rn(e,t,r,n){return pn(e,(function(e,o,i){t(n,e,r(e),i)})),n}function nn(e,t){return e&&jo(t,ja(t),e)}function on(e,t,r){"__proto__"==t&&et?et(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function sn(e,t){for(var r=-1,i=t.length,s=o(i),a=null==e;++r<i;)s[r]=a?n:Ta(e,t[r]);return s}function an(e,t,r){return e==e&&(r!==n&&(e=e<=r?e:r),t!==n&&(e=e>=t?e:t)),e}function cn(e,t,r,o,i,s){var a,c=1&t,u=2&t,l=4&t;if(r&&(a=i?r(e,o,i,s):r(e)),a!==n)return a;if(!ea(e))return e;var d=Hs(e);if(d){if(a=function(e){var t=e.length,r=new e.constructor(t);t&&"string"==typeof e[0]&&qe.call(e,"index")&&(r.index=e.index,r.input=e.input);return r}(e),!c)return Io(e,a)}else{var p=mi(e),f=p==E||p==k;if(Zs(e))return xo(e,c);if(p==A||p==b||f&&!i){if(a=u||f?{}:yi(e),!c)return u?function(e,t){return jo(e,hi(e),t)}(e,function(e,t){return e&&jo(t,Ra(t),e)}(a,e)):function(e,t){return jo(e,fi(e),t)}(e,nn(a,e))}else{if(!lt[p])return i?e:{};a=function(e,t,r){var n=e.constructor;switch(t){case N:return ko(e);case w:case _:return new n(+e);case q:return function(e,t){var r=t?ko(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case D:case M:case U:case F:case W:case B:case z:case H:case G:return To(e,r);case T:return new n;case O:case R:return new n(e);case I:return function(e){var t=new e.constructor(e.source,ge.exec(e));return t.lastIndex=e.lastIndex,t}(e);case j:return new n;case C:return o=e,Dr?Oe(Dr.call(o)):{}}var o}(e,p,c)}}s||(s=new Zr);var h=s.get(e);if(h)return h;s.set(e,a),sa(e)?e.forEach((function(n){a.add(cn(n,t,r,n,e,s))})):ra(e)&&e.forEach((function(n,o){a.set(o,cn(n,t,r,o,e,s))}));var m=d?n:(l?u?ii:oi:u?Ra:ja)(e);return It(m||e,(function(n,o){m&&(n=e[o=n]),en(a,o,cn(n,t,r,o,e,s))})),a}function un(e,t,r){var o=r.length;if(null==e)return!o;for(e=Oe(e);o--;){var i=r[o],s=t[i],a=e[i];if(a===n&&!(i in e)||!s(a))return!1}return!0}function ln(e,t,r){if("function"!=typeof e)throw new Ie(i);return ji((function(){e.apply(n,r)}),t)}function dn(e,t,r,n){var o=-1,i=Lt,s=!0,a=e.length,c=[],u=t.length;if(!a)return c;r&&(t=qt(t,er(r))),n?(i=Nt,s=!1):t.length>=200&&(i=rr,s=!1,t=new Jr(t));e:for(;++o<a;){var l=e[o],d=null==r?l:r(l);if(l=n||0!==l?l:0,s&&d==d){for(var p=u;p--;)if(t[p]===d)continue e;c.push(l)}else i(t,d,n)||c.push(l)}return c}Ur.templateSettings={escape:Y,evaluate:ee,interpolate:te,variable:"",imports:{_:Ur}},Ur.prototype=Wr.prototype,Ur.prototype.constructor=Ur,Br.prototype=Fr(Wr.prototype),Br.prototype.constructor=Br,zr.prototype=Fr(Wr.prototype),zr.prototype.constructor=zr,Hr.prototype.clear=function(){this.__data__=Ar?Ar(null):{},this.size=0},Hr.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Hr.prototype.get=function(e){var t=this.__data__;if(Ar){var r=t[e];return r===s?n:r}return qe.call(t,e)?t[e]:n},Hr.prototype.has=function(e){var t=this.__data__;return Ar?t[e]!==n:qe.call(t,e)},Hr.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Ar&&t===n?s:t,this},Gr.prototype.clear=function(){this.__data__=[],this.size=0},Gr.prototype.delete=function(e){var t=this.__data__,r=tn(t,e);return!(r<0)&&(r==t.length-1?t.pop():Qe.call(t,r,1),--this.size,!0)},Gr.prototype.get=function(e){var t=this.__data__,r=tn(t,e);return r<0?n:t[r][1]},Gr.prototype.has=function(e){return tn(this.__data__,e)>-1},Gr.prototype.set=function(e,t){var r=this.__data__,n=tn(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},$r.prototype.clear=function(){this.size=0,this.__data__={hash:new Hr,map:new(xr||Gr),string:new Hr}},$r.prototype.delete=function(e){var t=li(this,e).delete(e);return this.size-=t?1:0,t},$r.prototype.get=function(e){return li(this,e).get(e)},$r.prototype.has=function(e){return li(this,e).has(e)},$r.prototype.set=function(e,t){var r=li(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},Jr.prototype.add=Jr.prototype.push=function(e){return this.__data__.set(e,s),this},Jr.prototype.has=function(e){return this.__data__.has(e)},Zr.prototype.clear=function(){this.__data__=new Gr,this.size=0},Zr.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Zr.prototype.get=function(e){return this.__data__.get(e)},Zr.prototype.has=function(e){return this.__data__.has(e)},Zr.prototype.set=function(e,t){var r=this.__data__;if(r instanceof Gr){var n=r.__data__;if(!xr||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new $r(n)}return r.set(e,t),this.size=r.size,this};var pn=Lo(wn),fn=Lo(_n,!0);function hn(e,t){var r=!0;return pn(e,(function(e,n,o){return r=!!t(e,n,o)})),r}function mn(e,t,r){for(var o=-1,i=e.length;++o<i;){var s=e[o],a=t(s);if(null!=a&&(c===n?a==a&&!ca(a):r(a,c)))var c=a,u=s}return u}function gn(e,t){var r=[];return pn(e,(function(e,n,o){t(e,n,o)&&r.push(e)})),r}function yn(e,t,r,n,o){var i=-1,s=e.length;for(r||(r=bi),o||(o=[]);++i<s;){var a=e[i];t>0&&r(a)?t>1?yn(a,t-1,r,n,o):Dt(o,a):n||(o[o.length]=a)}return o}var bn=No(),vn=No(!0);function wn(e,t){return e&&bn(e,t,ja)}function _n(e,t){return e&&vn(e,t,ja)}function Sn(e,t){return Ct(t,(function(t){return Ks(e[t])}))}function En(e,t){for(var r=0,o=(t=wo(t,e)).length;null!=e&&r<o;)e=e[Di(t[r++])];return r&&r==o?e:n}function xn(e,t,r){var n=t(e);return Hs(e)?n:Dt(n,r(e))}function kn(e){return null==e?e===n?"[object Undefined]":"[object Null]":Ye&&Ye in Oe(e)?function(e){var t=qe.call(e,Ye),r=e[Ye];try{e[Ye]=n;var o=!0}catch(e){}var i=Ue.call(e);o&&(t?e[Ye]=r:delete e[Ye]);return i}(e):function(e){return Ue.call(e)}(e)}function Tn(e,t){return e>t}function On(e,t){return null!=e&&qe.call(e,t)}function An(e,t){return null!=e&&t in Oe(e)}function Pn(e,t,r){for(var i=r?Nt:Lt,s=e[0].length,a=e.length,c=a,u=o(a),l=1/0,d=[];c--;){var p=e[c];c&&t&&(p=qt(p,er(t))),l=br(p.length,l),u[c]=!r&&(t||s>=120&&p.length>=120)?new Jr(c&&p):n}p=e[0];var f=-1,h=u[0];e:for(;++f<s&&d.length<l;){var m=p[f],g=t?t(m):m;if(m=r||0!==m?m:0,!(h?rr(h,g):i(d,g,r))){for(c=a;--c;){var y=u[c];if(!(y?rr(y,g):i(e[c],g,r)))continue e}h&&h.push(g),d.push(m)}}return d}function In(e,t,r){var o=null==(e=Ai(e,t=wo(t,e)))?e:e[Di(Qi(t))];return null==o?n:At(o,e,r)}function jn(e){return ta(e)&&kn(e)==b}function Rn(e,t,r,o,i){return e===t||(null==e||null==t||!ta(e)&&!ta(t)?e!=e&&t!=t:function(e,t,r,o,i,s){var a=Hs(e),c=Hs(t),u=a?v:mi(e),l=c?v:mi(t),d=(u=u==b?A:u)==A,p=(l=l==b?A:l)==A,f=u==l;if(f&&Zs(e)){if(!Zs(t))return!1;a=!0,d=!1}if(f&&!d)return s||(s=new Zr),a||ua(e)?ri(e,t,r,o,i,s):function(e,t,r,n,o,i,s){switch(r){case q:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case N:return!(e.byteLength!=t.byteLength||!i(new Ge(e),new Ge(t)));case w:case _:case O:return Fs(+e,+t);case S:return e.name==t.name&&e.message==t.message;case I:case R:return e==t+"";case T:var a=ur;case j:var c=1&n;if(a||(a=pr),e.size!=t.size&&!c)return!1;var u=s.get(e);if(u)return u==t;n|=2,s.set(e,t);var l=ri(a(e),a(t),n,o,i,s);return s.delete(e),l;case C:if(Dr)return Dr.call(e)==Dr.call(t)}return!1}(e,t,u,r,o,i,s);if(!(1&r)){var h=d&&qe.call(e,"__wrapped__"),m=p&&qe.call(t,"__wrapped__");if(h||m){var g=h?e.value():e,y=m?t.value():t;return s||(s=new Zr),i(g,y,r,o,s)}}return!!f&&(s||(s=new Zr),function(e,t,r,o,i,s){var a=1&r,c=oi(e),u=c.length,l=oi(t),d=l.length;if(u!=d&&!a)return!1;var p=u;for(;p--;){var f=c[p];if(!(a?f in t:qe.call(t,f)))return!1}var h=s.get(e),m=s.get(t);if(h&&m)return h==t&&m==e;var g=!0;s.set(e,t),s.set(t,e);var y=a;for(;++p<u;){var b=e[f=c[p]],v=t[f];if(o)var w=a?o(v,b,f,t,e,s):o(b,v,f,e,t,s);if(!(w===n?b===v||i(b,v,r,o,s):w)){g=!1;break}y||(y="constructor"==f)}if(g&&!y){var _=e.constructor,S=t.constructor;_==S||!("constructor"in e)||!("constructor"in t)||"function"==typeof _&&_ instanceof _&&"function"==typeof S&&S instanceof S||(g=!1)}return s.delete(e),s.delete(t),g}(e,t,r,o,i,s))}(e,t,r,o,Rn,i))}function Cn(e,t,r,o){var i=r.length,s=i,a=!o;if(null==e)return!s;for(e=Oe(e);i--;){var c=r[i];if(a&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++i<s;){var u=(c=r[i])[0],l=e[u],d=c[1];if(a&&c[2]){if(l===n&&!(u in e))return!1}else{var p=new Zr;if(o)var f=o(l,d,u,e,t,p);if(!(f===n?Rn(d,l,3,o,p):f))return!1}}return!0}function Ln(e){return!(!ea(e)||(t=e,Me&&Me in t))&&(Ks(e)?Be:ve).test(Mi(e));var t}function Nn(e){return"function"==typeof e?e:null==e?nc:"object"==typeof e?Hs(e)?Wn(e[0],e[1]):Fn(e):pc(e)}function qn(e){if(!xi(e))return Wt(e);var t=[];for(var r in Oe(e))qe.call(e,r)&&"constructor"!=r&&t.push(r);return t}function Dn(e){if(!ea(e))return function(e){var t=[];if(null!=e)for(var r in Oe(e))t.push(r);return t}(e);var t=xi(e),r=[];for(var n in e)("constructor"!=n||!t&&qe.call(e,n))&&r.push(n);return r}function Mn(e,t){return e<t}function Un(e,t){var r=-1,n=$s(e)?o(e.length):[];return pn(e,(function(e,o,i){n[++r]=t(e,o,i)})),n}function Fn(e){var t=di(e);return 1==t.length&&t[0][2]?Ti(t[0][0],t[0][1]):function(r){return r===e||Cn(r,e,t)}}function Wn(e,t){return _i(e)&&ki(t)?Ti(Di(e),t):function(r){var o=Ta(r,e);return o===n&&o===t?Oa(r,e):Rn(t,o,3)}}function Bn(e,t,r,o,i){e!==t&&bn(t,(function(s,a){if(i||(i=new Zr),ea(s))!function(e,t,r,o,i,s,a){var c=Pi(e,r),u=Pi(t,r),l=a.get(u);if(l)return void Yr(e,r,l);var d=s?s(c,u,r+"",e,t,a):n,p=d===n;if(p){var f=Hs(u),h=!f&&Zs(u),m=!f&&!h&&ua(u);d=u,f||h||m?Hs(c)?d=c:Js(c)?d=Io(c):h?(p=!1,d=xo(u,!0)):m?(p=!1,d=To(u,!0)):d=[]:oa(u)||zs(u)?(d=c,zs(c)?d=ya(c):ea(c)&&!Ks(c)||(d=yi(u))):p=!1}p&&(a.set(u,d),i(d,u,o,s,a),a.delete(u));Yr(e,r,d)}(e,t,a,r,Bn,o,i);else{var c=o?o(Pi(e,a),s,a+"",e,t,i):n;c===n&&(c=s),Yr(e,a,c)}}),Ra)}function zn(e,t){var r=e.length;if(r)return vi(t+=t<0?r:0,r)?e[t]:n}function Hn(e,t,r){t=t.length?qt(t,(function(e){return Hs(e)?function(t){return En(t,1===e.length?e[0]:e)}:e})):[nc];var n=-1;t=qt(t,er(ui()));var o=Un(e,(function(e,r,o){var i=qt(t,(function(t){return t(e)}));return{criteria:i,index:++n,value:e}}));return function(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}(o,(function(e,t){return function(e,t,r){var n=-1,o=e.criteria,i=t.criteria,s=o.length,a=r.length;for(;++n<s;){var c=Oo(o[n],i[n]);if(c)return n>=a?c:c*("desc"==r[n]?-1:1)}return e.index-t.index}(e,t,r)}))}function Gn(e,t,r){for(var n=-1,o=t.length,i={};++n<o;){var s=t[n],a=En(e,s);r(a,s)&&Yn(i,wo(s,e),a)}return i}function $n(e,t,r,n){var o=n?Gt:Ht,i=-1,s=t.length,a=e;for(e===t&&(t=Io(t)),r&&(a=qt(e,er(r)));++i<s;)for(var c=0,u=t[i],l=r?r(u):u;(c=o(a,l,c,n))>-1;)a!==e&&Qe.call(a,c,1),Qe.call(e,c,1);return e}function Jn(e,t){for(var r=e?t.length:0,n=r-1;r--;){var o=t[r];if(r==n||o!==i){var i=o;vi(o)?Qe.call(e,o,1):po(e,o)}}return e}function Zn(e,t){return e+mt(_r()*(t-e+1))}function Vn(e,t){var r="";if(!e||t<1||t>h)return r;do{t%2&&(r+=e),(t=mt(t/2))&&(e+=e)}while(t);return r}function Qn(e,t){return Ri(Oi(e,t,nc),e+"")}function Kn(e){return Qr(Fa(e))}function Xn(e,t){var r=Fa(e);return Ni(r,an(t,0,r.length))}function Yn(e,t,r,o){if(!ea(e))return e;for(var i=-1,s=(t=wo(t,e)).length,a=s-1,c=e;null!=c&&++i<s;){var u=Di(t[i]),l=r;if("__proto__"===u||"constructor"===u||"prototype"===u)return e;if(i!=a){var d=c[u];(l=o?o(d,u,c):n)===n&&(l=ea(d)?d:vi(t[i+1])?[]:{})}en(c,u,l),c=c[u]}return e}var eo=Pr?function(e,t){return Pr.set(e,t),e}:nc,to=et?function(e,t){return et(e,"toString",{configurable:!0,enumerable:!1,value:ec(t),writable:!0})}:nc;function ro(e){return Ni(Fa(e))}function no(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var s=o(i);++n<i;)s[n]=e[n+t];return s}function oo(e,t){var r;return pn(e,(function(e,n,o){return!(r=t(e,n,o))})),!!r}function io(e,t,r){var n=0,o=null==e?n:e.length;if("number"==typeof t&&t==t&&o<=2147483647){for(;n<o;){var i=n+o>>>1,s=e[i];null!==s&&!ca(s)&&(r?s<=t:s<t)?n=i+1:o=i}return o}return so(e,t,nc,r)}function so(e,t,r,o){var i=0,s=null==e?0:e.length;if(0===s)return 0;for(var a=(t=r(t))!=t,c=null===t,u=ca(t),l=t===n;i<s;){var d=mt((i+s)/2),p=r(e[d]),f=p!==n,h=null===p,m=p==p,g=ca(p);if(a)var y=o||m;else y=l?m&&(o||f):c?m&&f&&(o||!h):u?m&&f&&!h&&(o||!g):!h&&!g&&(o?p<=t:p<t);y?i=d+1:s=d}return br(s,4294967294)}function ao(e,t){for(var r=-1,n=e.length,o=0,i=[];++r<n;){var s=e[r],a=t?t(s):s;if(!r||!Fs(a,c)){var c=a;i[o++]=0===s?0:s}}return i}function co(e){return"number"==typeof e?e:ca(e)?m:+e}function uo(e){if("string"==typeof e)return e;if(Hs(e))return qt(e,uo)+"";if(ca(e))return Mr?Mr.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function lo(e,t,r){var n=-1,o=Lt,i=e.length,s=!0,a=[],c=a;if(r)s=!1,o=Nt;else if(i>=200){var u=t?null:Qo(e);if(u)return pr(u);s=!1,o=rr,c=new Jr}else c=t?[]:a;e:for(;++n<i;){var l=e[n],d=t?t(l):l;if(l=r||0!==l?l:0,s&&d==d){for(var p=c.length;p--;)if(c[p]===d)continue e;t&&c.push(d),a.push(l)}else o(c,d,r)||(c!==a&&c.push(d),a.push(l))}return a}function po(e,t){return null==(e=Ai(e,t=wo(t,e)))||delete e[Di(Qi(t))]}function fo(e,t,r,n){return Yn(e,t,r(En(e,t)),n)}function ho(e,t,r,n){for(var o=e.length,i=n?o:-1;(n?i--:++i<o)&&t(e[i],i,e););return r?no(e,n?0:i,n?i+1:o):no(e,n?i+1:0,n?o:i)}function mo(e,t){var r=e;return r instanceof zr&&(r=r.value()),Mt(t,(function(e,t){return t.func.apply(t.thisArg,Dt([e],t.args))}),r)}function go(e,t,r){var n=e.length;if(n<2)return n?lo(e[0]):[];for(var i=-1,s=o(n);++i<n;)for(var a=e[i],c=-1;++c<n;)c!=i&&(s[i]=dn(s[i]||a,e[c],t,r));return lo(yn(s,1),t,r)}function yo(e,t,r){for(var o=-1,i=e.length,s=t.length,a={};++o<i;){var c=o<s?t[o]:n;r(a,e[o],c)}return a}function bo(e){return Js(e)?e:[]}function vo(e){return"function"==typeof e?e:nc}function wo(e,t){return Hs(e)?e:_i(e,t)?[e]:qi(ba(e))}var _o=Qn;function So(e,t,r){var o=e.length;return r=r===n?o:r,!t&&r>=o?e:no(e,t,r)}var Eo=nt||function(e){return gt.clearTimeout(e)};function xo(e,t){if(t)return e.slice();var r=e.length,n=$e?$e(r):new e.constructor(r);return e.copy(n),n}function ko(e){var t=new e.constructor(e.byteLength);return new Ge(t).set(new Ge(e)),t}function To(e,t){var r=t?ko(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function Oo(e,t){if(e!==t){var r=e!==n,o=null===e,i=e==e,s=ca(e),a=t!==n,c=null===t,u=t==t,l=ca(t);if(!c&&!l&&!s&&e>t||s&&a&&u&&!c&&!l||o&&a&&u||!r&&u||!i)return 1;if(!o&&!s&&!l&&e<t||l&&r&&i&&!o&&!s||c&&r&&i||!a&&i||!u)return-1}return 0}function Ao(e,t,r,n){for(var i=-1,s=e.length,a=r.length,c=-1,u=t.length,l=Vt(s-a,0),d=o(u+l),p=!n;++c<u;)d[c]=t[c];for(;++i<a;)(p||i<s)&&(d[r[i]]=e[i]);for(;l--;)d[c++]=e[i++];return d}function Po(e,t,r,n){for(var i=-1,s=e.length,a=-1,c=r.length,u=-1,l=t.length,d=Vt(s-c,0),p=o(d+l),f=!n;++i<d;)p[i]=e[i];for(var h=i;++u<l;)p[h+u]=t[u];for(;++a<c;)(f||i<s)&&(p[h+r[a]]=e[i++]);return p}function Io(e,t){var r=-1,n=e.length;for(t||(t=o(n));++r<n;)t[r]=e[r];return t}function jo(e,t,r,o){var i=!r;r||(r={});for(var s=-1,a=t.length;++s<a;){var c=t[s],u=o?o(r[c],e[c],c,r,e):n;u===n&&(u=e[c]),i?on(r,c,u):en(r,c,u)}return r}function Ro(e,t){return function(r,n){var o=Hs(r)?Pt:rn,i=t?t():{};return o(r,e,ui(n,2),i)}}function Co(e){return Qn((function(t,r){var o=-1,i=r.length,s=i>1?r[i-1]:n,a=i>2?r[2]:n;for(s=e.length>3&&"function"==typeof s?(i--,s):n,a&&wi(r[0],r[1],a)&&(s=i<3?n:s,i=1),t=Oe(t);++o<i;){var c=r[o];c&&e(t,c,o,s)}return t}))}function Lo(e,t){return function(r,n){if(null==r)return r;if(!$s(r))return e(r,n);for(var o=r.length,i=t?o:-1,s=Oe(r);(t?i--:++i<o)&&!1!==n(s[i],i,s););return r}}function No(e){return function(t,r,n){for(var o=-1,i=Oe(t),s=n(t),a=s.length;a--;){var c=s[e?a:++o];if(!1===r(i[c],c,i))break}return t}}function qo(e){return function(t){var r=cr(t=ba(t))?hr(t):n,o=r?r[0]:t.charAt(0),i=r?So(r,1).join(""):t.slice(1);return o[e]()+i}}function Do(e){return function(t){return Mt(Ka(za(t).replace(tt,"")),e,"")}}function Mo(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=Fr(e.prototype),n=e.apply(r,t);return ea(n)?n:r}}function Uo(e){return function(t,r,o){var i=Oe(t);if(!$s(t)){var s=ui(r,3);t=ja(t),r=function(e){return s(i[e],e,i)}}var a=e(t,r,o);return a>-1?i[s?t[a]:a]:n}}function Fo(e){return ni((function(t){var r=t.length,o=r,s=Br.prototype.thru;for(e&&t.reverse();o--;){var a=t[o];if("function"!=typeof a)throw new Ie(i);if(s&&!c&&"wrapper"==ai(a))var c=new Br([],!0)}for(o=c?o:r;++o<r;){var u=ai(a=t[o]),l="wrapper"==u?si(a):n;c=l&&Si(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?c[ai(l[0])].apply(c,l[3]):1==a.length&&Si(a)?c[u]():c.thru(a)}return function(){var e=arguments,n=e[0];if(c&&1==e.length&&Hs(n))return c.plant(n).value();for(var o=0,i=r?t[o].apply(this,e):n;++o<r;)i=t[o].call(this,i);return i}}))}function Wo(e,t,r,i,s,a,c,u,l,p){var f=t&d,h=1&t,m=2&t,g=24&t,y=512&t,b=m?n:Mo(e);return function d(){for(var v=arguments.length,w=o(v),_=v;_--;)w[_]=arguments[_];if(g)var S=ci(d),E=function(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&++n;return n}(w,S);if(i&&(w=Ao(w,i,s,g)),a&&(w=Po(w,a,c,g)),v-=E,g&&v<p){var x=dr(w,S);return Zo(e,t,Wo,d.placeholder,r,w,x,u,l,p-v)}var k=h?r:this,T=m?k[e]:e;return v=w.length,u?w=function(e,t){var r=e.length,o=br(t.length,r),i=Io(e);for(;o--;){var s=t[o];e[o]=vi(s,r)?i[s]:n}return e}(w,u):y&&v>1&&w.reverse(),f&&l<v&&(w.length=l),this&&this!==gt&&this instanceof d&&(T=b||Mo(T)),T.apply(k,w)}}function Bo(e,t){return function(r,n){return function(e,t,r,n){return wn(e,(function(e,o,i){t(n,r(e),o,i)})),n}(r,e,t(n),{})}}function zo(e,t){return function(r,o){var i;if(r===n&&o===n)return t;if(r!==n&&(i=r),o!==n){if(i===n)return o;"string"==typeof r||"string"==typeof o?(r=uo(r),o=uo(o)):(r=co(r),o=co(o)),i=e(r,o)}return i}}function Ho(e){return ni((function(t){return t=qt(t,er(ui())),Qn((function(r){var n=this;return e(t,(function(e){return At(e,n,r)}))}))}))}function Go(e,t){var r=(t=t===n?" ":uo(t)).length;if(r<2)return r?Vn(t,e):t;var o=Vn(t,ht(e/fr(t)));return cr(t)?So(hr(o),0,e).join(""):o.slice(0,e)}function $o(e){return function(t,r,i){return i&&"number"!=typeof i&&wi(t,r,i)&&(r=i=n),t=fa(t),r===n?(r=t,t=0):r=fa(r),function(e,t,r,n){for(var i=-1,s=Vt(ht((t-e)/(r||1)),0),a=o(s);s--;)a[n?s:++i]=e,e+=r;return a}(t,r,i=i===n?t<r?1:-1:fa(i),e)}}function Jo(e){return function(t,r){return"string"==typeof t&&"string"==typeof r||(t=ga(t),r=ga(r)),e(t,r)}}function Zo(e,t,r,o,i,s,a,c,d,p){var f=8&t;t|=f?u:l,4&(t&=~(f?l:u))||(t&=-4);var h=[e,t,i,f?s:n,f?a:n,f?n:s,f?n:a,c,d,p],m=r.apply(n,h);return Si(e)&&Ii(m,h),m.placeholder=o,Ci(m,e,t)}function Vo(e){var t=Te[e];return function(e,r){if(e=ga(e),(r=null==r?0:br(ha(r),292))&&wt(e)){var n=(ba(e)+"e").split("e");return+((n=(ba(t(n[0]+"e"+(+n[1]+r)))+"e").split("e"))[0]+"e"+(+n[1]-r))}return t(e)}}var Qo=Tr&&1/pr(new Tr([,-0]))[1]==f?function(e){return new Tr(e)}:cc;function Ko(e){return function(t){var r=mi(t);return r==T?ur(t):r==j?function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=[e,e]})),r}(t):function(e,t){return qt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Xo(e,t,r,s,f,h,m,g){var y=2&t;if(!y&&"function"!=typeof e)throw new Ie(i);var b=s?s.length:0;if(b||(t&=-97,s=f=n),m=m===n?m:Vt(ha(m),0),g=g===n?g:ha(g),b-=f?f.length:0,t&l){var v=s,w=f;s=f=n}var _=y?n:si(e),S=[e,t,r,s,f,v,w,h,m,g];if(_&&function(e,t){var r=e[1],n=t[1],o=r|n,i=o<131,s=n==d&&8==r||n==d&&r==p&&e[7].length<=t[8]||384==n&&t[7].length<=t[8]&&8==r;if(!i&&!s)return e;1&n&&(e[2]=t[2],o|=1&r?0:4);var c=t[3];if(c){var u=e[3];e[3]=u?Ao(u,c,t[4]):c,e[4]=u?dr(e[3],a):t[4]}(c=t[5])&&(u=e[5],e[5]=u?Po(u,c,t[6]):c,e[6]=u?dr(e[5],a):t[6]);(c=t[7])&&(e[7]=c);n&d&&(e[8]=null==e[8]?t[8]:br(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=o}(S,_),e=S[0],t=S[1],r=S[2],s=S[3],f=S[4],!(g=S[9]=S[9]===n?y?0:e.length:Vt(S[9]-b,0))&&24&t&&(t&=-25),t&&1!=t)E=8==t||t==c?function(e,t,r){var i=Mo(e);return function s(){for(var a=arguments.length,c=o(a),u=a,l=ci(s);u--;)c[u]=arguments[u];var d=a<3&&c[0]!==l&&c[a-1]!==l?[]:dr(c,l);return(a-=d.length)<r?Zo(e,t,Wo,s.placeholder,n,c,d,n,n,r-a):At(this&&this!==gt&&this instanceof s?i:e,this,c)}}(e,t,g):t!=u&&33!=t||f.length?Wo.apply(n,S):function(e,t,r,n){var i=1&t,s=Mo(e);return function t(){for(var a=-1,c=arguments.length,u=-1,l=n.length,d=o(l+c),p=this&&this!==gt&&this instanceof t?s:e;++u<l;)d[u]=n[u];for(;c--;)d[u++]=arguments[++a];return At(p,i?r:this,d)}}(e,t,r,s);else var E=function(e,t,r){var n=1&t,o=Mo(e);return function t(){return(this&&this!==gt&&this instanceof t?o:e).apply(n?r:this,arguments)}}(e,t,r);return Ci((_?eo:Ii)(E,S),e,t)}function Yo(e,t,r,o){return e===n||Fs(e,Ce[r])&&!qe.call(o,r)?t:e}function ei(e,t,r,o,i,s){return ea(e)&&ea(t)&&(s.set(t,e),Bn(e,t,n,ei,s),s.delete(t)),e}function ti(e){return oa(e)?n:e}function ri(e,t,r,o,i,s){var a=1&r,c=e.length,u=t.length;if(c!=u&&!(a&&u>c))return!1;var l=s.get(e),d=s.get(t);if(l&&d)return l==t&&d==e;var p=-1,f=!0,h=2&r?new Jr:n;for(s.set(e,t),s.set(t,e);++p<c;){var m=e[p],g=t[p];if(o)var y=a?o(g,m,p,t,e,s):o(m,g,p,e,t,s);if(y!==n){if(y)continue;f=!1;break}if(h){if(!Ft(t,(function(e,t){if(!rr(h,t)&&(m===e||i(m,e,r,o,s)))return h.push(t)}))){f=!1;break}}else if(m!==g&&!i(m,g,r,o,s)){f=!1;break}}return s.delete(e),s.delete(t),f}function ni(e){return Ri(Oi(e,n,Gi),e+"")}function oi(e){return xn(e,ja,fi)}function ii(e){return xn(e,Ra,hi)}var si=Pr?function(e){return Pr.get(e)}:cc;function ai(e){for(var t=e.name+"",r=Ir[t],n=qe.call(Ir,t)?r.length:0;n--;){var o=r[n],i=o.func;if(null==i||i==e)return o.name}return t}function ci(e){return(qe.call(Ur,"placeholder")?Ur:e).placeholder}function ui(){var e=Ur.iteratee||oc;return e=e===oc?Nn:e,arguments.length?e(arguments[0],arguments[1]):e}function li(e,t){var r,n,o=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof t?"string":"hash"]:o.map}function di(e){for(var t=ja(e),r=t.length;r--;){var n=t[r],o=e[n];t[r]=[n,o,ki(o)]}return t}function pi(e,t){var r=function(e,t){return null==e?n:e[t]}(e,t);return Ln(r)?r:n}var fi=yt?function(e){return null==e?[]:(e=Oe(e),Ct(yt(e),(function(t){return Ve.call(e,t)})))}:mc,hi=yt?function(e){for(var t=[];e;)Dt(t,fi(e)),e=Je(e);return t}:mc,mi=kn;function gi(e,t,r){for(var n=-1,o=(t=wo(t,e)).length,i=!1;++n<o;){var s=Di(t[n]);if(!(i=null!=e&&r(e,s)))break;e=e[s]}return i||++n!=o?i:!!(o=null==e?0:e.length)&&Ys(o)&&vi(s,o)&&(Hs(e)||zs(e))}function yi(e){return"function"!=typeof e.constructor||xi(e)?{}:Fr(Je(e))}function bi(e){return Hs(e)||zs(e)||!!(Ke&&e&&e[Ke])}function vi(e,t){var r=typeof e;return!!(t=null==t?h:t)&&("number"==r||"symbol"!=r&&_e.test(e))&&e>-1&&e%1==0&&e<t}function wi(e,t,r){if(!ea(r))return!1;var n=typeof t;return!!("number"==n?$s(r)&&vi(t,r.length):"string"==n&&t in r)&&Fs(r[t],e)}function _i(e,t){if(Hs(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!ca(e))||(ne.test(e)||!re.test(e)||null!=t&&e in Oe(t))}function Si(e){var t=ai(e),r=Ur[t];if("function"!=typeof r||!(t in zr.prototype))return!1;if(e===r)return!0;var n=si(r);return!!n&&e===n[0]}(Er&&mi(new Er(new ArrayBuffer(1)))!=q||xr&&mi(new xr)!=T||kr&&mi(kr.resolve())!=P||Tr&&mi(new Tr)!=j||Or&&mi(new Or)!=L)&&(mi=function(e){var t=kn(e),r=t==A?e.constructor:n,o=r?Mi(r):"";if(o)switch(o){case jr:return q;case Rr:return T;case Cr:return P;case Lr:return j;case Nr:return L}return t});var Ei=Le?Ks:gc;function xi(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Ce)}function ki(e){return e==e&&!ea(e)}function Ti(e,t){return function(r){return null!=r&&(r[e]===t&&(t!==n||e in Oe(r)))}}function Oi(e,t,r){return t=Vt(t===n?e.length-1:t,0),function(){for(var n=arguments,i=-1,s=Vt(n.length-t,0),a=o(s);++i<s;)a[i]=n[t+i];i=-1;for(var c=o(t+1);++i<t;)c[i]=n[i];return c[t]=r(a),At(e,this,c)}}function Ai(e,t){return t.length<2?e:En(e,no(t,0,-1))}function Pi(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Ii=Li(eo),ji=dt||function(e,t){return gt.setTimeout(e,t)},Ri=Li(to);function Ci(e,t,r){var n=t+"";return Ri(e,function(e,t){var r=t.length;if(!r)return e;var n=r-1;return t[n]=(r>1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(ue,"{\n/* [wrapped with "+t+"] */\n")}(n,function(e,t){return It(y,(function(r){var n="_."+r[0];t&r[1]&&!Lt(e,n)&&e.push(n)})),e.sort()}(function(e){var t=e.match(le);return t?t[1].split(de):[]}(n),r)))}function Li(e){var t=0,r=0;return function(){var o=vr(),i=16-(o-r);if(r=o,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(n,arguments)}}function Ni(e,t){var r=-1,o=e.length,i=o-1;for(t=t===n?o:t;++r<t;){var s=Zn(r,i),a=e[s];e[s]=e[r],e[r]=a}return e.length=t,e}var qi=function(e){var t=Ls(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(oe,(function(e,r,n,o){t.push(n?o.replace(he,"$1"):r||e)})),t}));function Di(e){if("string"==typeof e||ca(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Mi(e){if(null!=e){try{return Ne.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ui(e){if(e instanceof zr)return e.clone();var t=new Br(e.__wrapped__,e.__chain__);return t.__actions__=Io(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Fi=Qn((function(e,t){return Js(e)?dn(e,yn(t,1,Js,!0)):[]})),Wi=Qn((function(e,t){var r=Qi(t);return Js(r)&&(r=n),Js(e)?dn(e,yn(t,1,Js,!0),ui(r,2)):[]})),Bi=Qn((function(e,t){var r=Qi(t);return Js(r)&&(r=n),Js(e)?dn(e,yn(t,1,Js,!0),n,r):[]}));function zi(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var o=null==r?0:ha(r);return o<0&&(o=Vt(n+o,0)),zt(e,ui(t,3),o)}function Hi(e,t,r){var o=null==e?0:e.length;if(!o)return-1;var i=o-1;return r!==n&&(i=ha(r),i=r<0?Vt(o+i,0):br(i,o-1)),zt(e,ui(t,3),i,!0)}function Gi(e){return(null==e?0:e.length)?yn(e,1):[]}function $i(e){return e&&e.length?e[0]:n}var Ji=Qn((function(e){var t=qt(e,bo);return t.length&&t[0]===e[0]?Pn(t):[]})),Zi=Qn((function(e){var t=Qi(e),r=qt(e,bo);return t===Qi(r)?t=n:r.pop(),r.length&&r[0]===e[0]?Pn(r,ui(t,2)):[]})),Vi=Qn((function(e){var t=Qi(e),r=qt(e,bo);return(t="function"==typeof t?t:n)&&r.pop(),r.length&&r[0]===e[0]?Pn(r,n,t):[]}));function Qi(e){var t=null==e?0:e.length;return t?e[t-1]:n}var Ki=Qn(Xi);function Xi(e,t){return e&&e.length&&t&&t.length?$n(e,t):e}var Yi=ni((function(e,t){var r=null==e?0:e.length,n=sn(e,t);return Jn(e,qt(t,(function(e){return vi(e,r)?+e:e})).sort(Oo)),n}));function es(e){return null==e?e:Sr.call(e)}var ts=Qn((function(e){return lo(yn(e,1,Js,!0))})),rs=Qn((function(e){var t=Qi(e);return Js(t)&&(t=n),lo(yn(e,1,Js,!0),ui(t,2))})),ns=Qn((function(e){var t=Qi(e);return t="function"==typeof t?t:n,lo(yn(e,1,Js,!0),n,t)}));function os(e){if(!e||!e.length)return[];var t=0;return e=Ct(e,(function(e){if(Js(e))return t=Vt(e.length,t),!0})),Xt(t,(function(t){return qt(e,Zt(t))}))}function is(e,t){if(!e||!e.length)return[];var r=os(e);return null==t?r:qt(r,(function(e){return At(t,n,e)}))}var ss=Qn((function(e,t){return Js(e)?dn(e,t):[]})),as=Qn((function(e){return go(Ct(e,Js))})),cs=Qn((function(e){var t=Qi(e);return Js(t)&&(t=n),go(Ct(e,Js),ui(t,2))})),us=Qn((function(e){var t=Qi(e);return t="function"==typeof t?t:n,go(Ct(e,Js),n,t)})),ls=Qn(os);var ds=Qn((function(e){var t=e.length,r=t>1?e[t-1]:n;return r="function"==typeof r?(e.pop(),r):n,is(e,r)}));function ps(e){var t=Ur(e);return t.__chain__=!0,t}function fs(e,t){return t(e)}var hs=ni((function(e){var t=e.length,r=t?e[0]:0,o=this.__wrapped__,i=function(t){return sn(t,e)};return!(t>1||this.__actions__.length)&&o instanceof zr&&vi(r)?((o=o.slice(r,+r+(t?1:0))).__actions__.push({func:fs,args:[i],thisArg:n}),new Br(o,this.__chain__).thru((function(e){return t&&!e.length&&e.push(n),e}))):this.thru(i)}));var ms=Ro((function(e,t,r){qe.call(e,r)?++e[r]:on(e,r,1)}));var gs=Uo(zi),ys=Uo(Hi);function bs(e,t){return(Hs(e)?It:pn)(e,ui(t,3))}function vs(e,t){return(Hs(e)?jt:fn)(e,ui(t,3))}var ws=Ro((function(e,t,r){qe.call(e,r)?e[r].push(t):on(e,r,[t])}));var _s=Qn((function(e,t,r){var n=-1,i="function"==typeof t,s=$s(e)?o(e.length):[];return pn(e,(function(e){s[++n]=i?At(t,e,r):In(e,t,r)})),s})),Ss=Ro((function(e,t,r){on(e,r,t)}));function Es(e,t){return(Hs(e)?qt:Un)(e,ui(t,3))}var xs=Ro((function(e,t,r){e[r?0:1].push(t)}),(function(){return[[],[]]}));var ks=Qn((function(e,t){if(null==e)return[];var r=t.length;return r>1&&wi(e,t[0],t[1])?t=[]:r>2&&wi(t[0],t[1],t[2])&&(t=[t[0]]),Hn(e,yn(t,1),[])})),Ts=it||function(){return gt.Date.now()};function Os(e,t,r){return t=r?n:t,t=e&&null==t?e.length:t,Xo(e,d,n,n,n,n,t)}function As(e,t){var r;if("function"!=typeof t)throw new Ie(i);return e=ha(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=n),r}}var Ps=Qn((function(e,t,r){var n=1;if(r.length){var o=dr(r,ci(Ps));n|=u}return Xo(e,n,t,r,o)})),Is=Qn((function(e,t,r){var n=3;if(r.length){var o=dr(r,ci(Is));n|=u}return Xo(t,n,e,r,o)}));function js(e,t,r){var o,s,a,c,u,l,d=0,p=!1,f=!1,h=!0;if("function"!=typeof e)throw new Ie(i);function m(t){var r=o,i=s;return o=s=n,d=t,c=e.apply(i,r)}function g(e){var r=e-l;return l===n||r>=t||r<0||f&&e-d>=a}function y(){var e=Ts();if(g(e))return b(e);u=ji(y,function(e){var r=t-(e-l);return f?br(r,a-(e-d)):r}(e))}function b(e){return u=n,h&&o?m(e):(o=s=n,c)}function v(){var e=Ts(),r=g(e);if(o=arguments,s=this,l=e,r){if(u===n)return function(e){return d=e,u=ji(y,t),p?m(e):c}(l);if(f)return Eo(u),u=ji(y,t),m(l)}return u===n&&(u=ji(y,t)),c}return t=ga(t)||0,ea(r)&&(p=!!r.leading,a=(f="maxWait"in r)?Vt(ga(r.maxWait)||0,t):a,h="trailing"in r?!!r.trailing:h),v.cancel=function(){u!==n&&Eo(u),d=0,o=l=s=u=n},v.flush=function(){return u===n?c:b(Ts())},v}var Rs=Qn((function(e,t){return ln(e,1,t)})),Cs=Qn((function(e,t,r){return ln(e,ga(t)||0,r)}));function Ls(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Ie(i);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var s=e.apply(this,n);return r.cache=i.set(o,s)||i,s};return r.cache=new(Ls.Cache||$r),r}function Ns(e){if("function"!=typeof e)throw new Ie(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Ls.Cache=$r;var qs=_o((function(e,t){var r=(t=1==t.length&&Hs(t[0])?qt(t[0],er(ui())):qt(yn(t,1),er(ui()))).length;return Qn((function(n){for(var o=-1,i=br(n.length,r);++o<i;)n[o]=t[o].call(this,n[o]);return At(e,this,n)}))})),Ds=Qn((function(e,t){var r=dr(t,ci(Ds));return Xo(e,u,n,t,r)})),Ms=Qn((function(e,t){var r=dr(t,ci(Ms));return Xo(e,l,n,t,r)})),Us=ni((function(e,t){return Xo(e,p,n,n,n,t)}));function Fs(e,t){return e===t||e!=e&&t!=t}var Ws=Jo(Tn),Bs=Jo((function(e,t){return e>=t})),zs=jn(function(){return arguments}())?jn:function(e){return ta(e)&&qe.call(e,"callee")&&!Ve.call(e,"callee")},Hs=o.isArray,Gs=St?er(St):function(e){return ta(e)&&kn(e)==N};function $s(e){return null!=e&&Ys(e.length)&&!Ks(e)}function Js(e){return ta(e)&&$s(e)}var Zs=bt||gc,Vs=Et?er(Et):function(e){return ta(e)&&kn(e)==_};function Qs(e){if(!ta(e))return!1;var t=kn(e);return t==S||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!oa(e)}function Ks(e){if(!ea(e))return!1;var t=kn(e);return t==E||t==k||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Xs(e){return"number"==typeof e&&e==ha(e)}function Ys(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=h}function ea(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ta(e){return null!=e&&"object"==typeof e}var ra=xt?er(xt):function(e){return ta(e)&&mi(e)==T};function na(e){return"number"==typeof e||ta(e)&&kn(e)==O}function oa(e){if(!ta(e)||kn(e)!=A)return!1;var t=Je(e);if(null===t)return!0;var r=qe.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Ne.call(r)==Fe}var ia=kt?er(kt):function(e){return ta(e)&&kn(e)==I};var sa=Tt?er(Tt):function(e){return ta(e)&&mi(e)==j};function aa(e){return"string"==typeof e||!Hs(e)&&ta(e)&&kn(e)==R}function ca(e){return"symbol"==typeof e||ta(e)&&kn(e)==C}var ua=Ot?er(Ot):function(e){return ta(e)&&Ys(e.length)&&!!ut[kn(e)]};var la=Jo(Mn),da=Jo((function(e,t){return e<=t}));function pa(e){if(!e)return[];if($s(e))return aa(e)?hr(e):Io(e);if(Xe&&e[Xe])return function(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}(e[Xe]());var t=mi(e);return(t==T?ur:t==j?pr:Fa)(e)}function fa(e){return e?(e=ga(e))===f||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ha(e){var t=fa(e),r=t%1;return t==t?r?t-r:t:0}function ma(e){return e?an(ha(e),0,g):0}function ga(e){if("number"==typeof e)return e;if(ca(e))return m;if(ea(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ea(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Yt(e);var r=be.test(e);return r||we.test(e)?ft(e.slice(2),r?2:8):ye.test(e)?m:+e}function ya(e){return jo(e,Ra(e))}function ba(e){return null==e?"":uo(e)}var va=Co((function(e,t){if(xi(t)||$s(t))jo(t,ja(t),e);else for(var r in t)qe.call(t,r)&&en(e,r,t[r])})),wa=Co((function(e,t){jo(t,Ra(t),e)})),_a=Co((function(e,t,r,n){jo(t,Ra(t),e,n)})),Sa=Co((function(e,t,r,n){jo(t,ja(t),e,n)})),Ea=ni(sn);var xa=Qn((function(e,t){e=Oe(e);var r=-1,o=t.length,i=o>2?t[2]:n;for(i&&wi(t[0],t[1],i)&&(o=1);++r<o;)for(var s=t[r],a=Ra(s),c=-1,u=a.length;++c<u;){var l=a[c],d=e[l];(d===n||Fs(d,Ce[l])&&!qe.call(e,l))&&(e[l]=s[l])}return e})),ka=Qn((function(e){return e.push(n,ei),At(La,n,e)}));function Ta(e,t,r){var o=null==e?n:En(e,t);return o===n?r:o}function Oa(e,t){return null!=e&&gi(e,t,An)}var Aa=Bo((function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=Ue.call(t)),e[t]=r}),ec(nc)),Pa=Bo((function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=Ue.call(t)),qe.call(e,t)?e[t].push(r):e[t]=[r]}),ui),Ia=Qn(In);function ja(e){return $s(e)?Vr(e):qn(e)}function Ra(e){return $s(e)?Vr(e,!0):Dn(e)}var Ca=Co((function(e,t,r){Bn(e,t,r)})),La=Co((function(e,t,r,n){Bn(e,t,r,n)})),Na=ni((function(e,t){var r={};if(null==e)return r;var n=!1;t=qt(t,(function(t){return t=wo(t,e),n||(n=t.length>1),t})),jo(e,ii(e),r),n&&(r=cn(r,7,ti));for(var o=t.length;o--;)po(r,t[o]);return r}));var qa=ni((function(e,t){return null==e?{}:function(e,t){return Gn(e,t,(function(t,r){return Oa(e,r)}))}(e,t)}));function Da(e,t){if(null==e)return{};var r=qt(ii(e),(function(e){return[e]}));return t=ui(t),Gn(e,r,(function(e,r){return t(e,r[0])}))}var Ma=Ko(ja),Ua=Ko(Ra);function Fa(e){return null==e?[]:tr(e,ja(e))}var Wa=Do((function(e,t,r){return t=t.toLowerCase(),e+(r?Ba(t):t)}));function Ba(e){return Qa(ba(e).toLowerCase())}function za(e){return(e=ba(e))&&e.replace(Se,ir).replace(rt,"")}var Ha=Do((function(e,t,r){return e+(r?"-":"")+t.toLowerCase()})),Ga=Do((function(e,t,r){return e+(r?" ":"")+t.toLowerCase()})),$a=qo("toLowerCase");var Ja=Do((function(e,t,r){return e+(r?"_":"")+t.toLowerCase()}));var Za=Do((function(e,t,r){return e+(r?" ":"")+Qa(t)}));var Va=Do((function(e,t,r){return e+(r?" ":"")+t.toUpperCase()})),Qa=qo("toUpperCase");function Ka(e,t,r){return e=ba(e),(t=r?n:t)===n?function(e){return st.test(e)}(e)?function(e){return e.match(ot)||[]}(e):function(e){return e.match(pe)||[]}(e):e.match(t)||[]}var Xa=Qn((function(e,t){try{return At(e,n,t)}catch(e){return Qs(e)?e:new ce(e)}})),Ya=ni((function(e,t){return It(t,(function(t){t=Di(t),on(e,t,Ps(e[t],e))})),e}));function ec(e){return function(){return e}}var tc=Fo(),rc=Fo(!0);function nc(e){return e}function oc(e){return Nn("function"==typeof e?e:cn(e,1))}var ic=Qn((function(e,t){return function(r){return In(r,e,t)}})),sc=Qn((function(e,t){return function(r){return In(e,r,t)}}));function ac(e,t,r){var n=ja(t),o=Sn(t,n);null!=r||ea(t)&&(o.length||!n.length)||(r=t,t=e,e=this,o=Sn(t,ja(t)));var i=!(ea(r)&&"chain"in r&&!r.chain),s=Ks(e);return It(o,(function(r){var n=t[r];e[r]=n,s&&(e.prototype[r]=function(){var t=this.__chain__;if(i||t){var r=e(this.__wrapped__);return(r.__actions__=Io(this.__actions__)).push({func:n,args:arguments,thisArg:e}),r.__chain__=t,r}return n.apply(e,Dt([this.value()],arguments))})})),e}function cc(){}var uc=Ho(qt),lc=Ho(Rt),dc=Ho(Ft);function pc(e){return _i(e)?Zt(Di(e)):function(e){return function(t){return En(t,e)}}(e)}var fc=$o(),hc=$o(!0);function mc(){return[]}function gc(){return!1}var yc=zo((function(e,t){return e+t}),0),bc=Vo("ceil"),vc=zo((function(e,t){return e/t}),1),wc=Vo("floor");var _c,Sc=zo((function(e,t){return e*t}),1),Ec=Vo("round"),xc=zo((function(e,t){return e-t}),0);return Ur.after=function(e,t){if("function"!=typeof t)throw new Ie(i);return e=ha(e),function(){if(--e<1)return t.apply(this,arguments)}},Ur.ary=Os,Ur.assign=va,Ur.assignIn=wa,Ur.assignInWith=_a,Ur.assignWith=Sa,Ur.at=Ea,Ur.before=As,Ur.bind=Ps,Ur.bindAll=Ya,Ur.bindKey=Is,Ur.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Hs(e)?e:[e]},Ur.chain=ps,Ur.chunk=function(e,t,r){t=(r?wi(e,t,r):t===n)?1:Vt(ha(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var s=0,a=0,c=o(ht(i/t));s<i;)c[a++]=no(e,s,s+=t);return c},Ur.compact=function(e){for(var t=-1,r=null==e?0:e.length,n=0,o=[];++t<r;){var i=e[t];i&&(o[n++]=i)}return o},Ur.concat=function(){var e=arguments.length;if(!e)return[];for(var t=o(e-1),r=arguments[0],n=e;n--;)t[n-1]=arguments[n];return Dt(Hs(r)?Io(r):[r],yn(t,1))},Ur.cond=function(e){var t=null==e?0:e.length,r=ui();return e=t?qt(e,(function(e){if("function"!=typeof e[1])throw new Ie(i);return[r(e[0]),e[1]]})):[],Qn((function(r){for(var n=-1;++n<t;){var o=e[n];if(At(o[0],this,r))return At(o[1],this,r)}}))},Ur.conforms=function(e){return function(e){var t=ja(e);return function(r){return un(r,e,t)}}(cn(e,1))},Ur.constant=ec,Ur.countBy=ms,Ur.create=function(e,t){var r=Fr(e);return null==t?r:nn(r,t)},Ur.curry=function e(t,r,o){var i=Xo(t,8,n,n,n,n,n,r=o?n:r);return i.placeholder=e.placeholder,i},Ur.curryRight=function e(t,r,o){var i=Xo(t,c,n,n,n,n,n,r=o?n:r);return i.placeholder=e.placeholder,i},Ur.debounce=js,Ur.defaults=xa,Ur.defaultsDeep=ka,Ur.defer=Rs,Ur.delay=Cs,Ur.difference=Fi,Ur.differenceBy=Wi,Ur.differenceWith=Bi,Ur.drop=function(e,t,r){var o=null==e?0:e.length;return o?no(e,(t=r||t===n?1:ha(t))<0?0:t,o):[]},Ur.dropRight=function(e,t,r){var o=null==e?0:e.length;return o?no(e,0,(t=o-(t=r||t===n?1:ha(t)))<0?0:t):[]},Ur.dropRightWhile=function(e,t){return e&&e.length?ho(e,ui(t,3),!0,!0):[]},Ur.dropWhile=function(e,t){return e&&e.length?ho(e,ui(t,3),!0):[]},Ur.fill=function(e,t,r,o){var i=null==e?0:e.length;return i?(r&&"number"!=typeof r&&wi(e,t,r)&&(r=0,o=i),function(e,t,r,o){var i=e.length;for((r=ha(r))<0&&(r=-r>i?0:i+r),(o=o===n||o>i?i:ha(o))<0&&(o+=i),o=r>o?0:ma(o);r<o;)e[r++]=t;return e}(e,t,r,o)):[]},Ur.filter=function(e,t){return(Hs(e)?Ct:gn)(e,ui(t,3))},Ur.flatMap=function(e,t){return yn(Es(e,t),1)},Ur.flatMapDeep=function(e,t){return yn(Es(e,t),f)},Ur.flatMapDepth=function(e,t,r){return r=r===n?1:ha(r),yn(Es(e,t),r)},Ur.flatten=Gi,Ur.flattenDeep=function(e){return(null==e?0:e.length)?yn(e,f):[]},Ur.flattenDepth=function(e,t){return(null==e?0:e.length)?yn(e,t=t===n?1:ha(t)):[]},Ur.flip=function(e){return Xo(e,512)},Ur.flow=tc,Ur.flowRight=rc,Ur.fromPairs=function(e){for(var t=-1,r=null==e?0:e.length,n={};++t<r;){var o=e[t];n[o[0]]=o[1]}return n},Ur.functions=function(e){return null==e?[]:Sn(e,ja(e))},Ur.functionsIn=function(e){return null==e?[]:Sn(e,Ra(e))},Ur.groupBy=ws,Ur.initial=function(e){return(null==e?0:e.length)?no(e,0,-1):[]},Ur.intersection=Ji,Ur.intersectionBy=Zi,Ur.intersectionWith=Vi,Ur.invert=Aa,Ur.invertBy=Pa,Ur.invokeMap=_s,Ur.iteratee=oc,Ur.keyBy=Ss,Ur.keys=ja,Ur.keysIn=Ra,Ur.map=Es,Ur.mapKeys=function(e,t){var r={};return t=ui(t,3),wn(e,(function(e,n,o){on(r,t(e,n,o),e)})),r},Ur.mapValues=function(e,t){var r={};return t=ui(t,3),wn(e,(function(e,n,o){on(r,n,t(e,n,o))})),r},Ur.matches=function(e){return Fn(cn(e,1))},Ur.matchesProperty=function(e,t){return Wn(e,cn(t,1))},Ur.memoize=Ls,Ur.merge=Ca,Ur.mergeWith=La,Ur.method=ic,Ur.methodOf=sc,Ur.mixin=ac,Ur.negate=Ns,Ur.nthArg=function(e){return e=ha(e),Qn((function(t){return zn(t,e)}))},Ur.omit=Na,Ur.omitBy=function(e,t){return Da(e,Ns(ui(t)))},Ur.once=function(e){return As(2,e)},Ur.orderBy=function(e,t,r,o){return null==e?[]:(Hs(t)||(t=null==t?[]:[t]),Hs(r=o?n:r)||(r=null==r?[]:[r]),Hn(e,t,r))},Ur.over=uc,Ur.overArgs=qs,Ur.overEvery=lc,Ur.overSome=dc,Ur.partial=Ds,Ur.partialRight=Ms,Ur.partition=xs,Ur.pick=qa,Ur.pickBy=Da,Ur.property=pc,Ur.propertyOf=function(e){return function(t){return null==e?n:En(e,t)}},Ur.pull=Ki,Ur.pullAll=Xi,Ur.pullAllBy=function(e,t,r){return e&&e.length&&t&&t.length?$n(e,t,ui(r,2)):e},Ur.pullAllWith=function(e,t,r){return e&&e.length&&t&&t.length?$n(e,t,n,r):e},Ur.pullAt=Yi,Ur.range=fc,Ur.rangeRight=hc,Ur.rearg=Us,Ur.reject=function(e,t){return(Hs(e)?Ct:gn)(e,Ns(ui(t,3)))},Ur.remove=function(e,t){var r=[];if(!e||!e.length)return r;var n=-1,o=[],i=e.length;for(t=ui(t,3);++n<i;){var s=e[n];t(s,n,e)&&(r.push(s),o.push(n))}return Jn(e,o),r},Ur.rest=function(e,t){if("function"!=typeof e)throw new Ie(i);return Qn(e,t=t===n?t:ha(t))},Ur.reverse=es,Ur.sampleSize=function(e,t,r){return t=(r?wi(e,t,r):t===n)?1:ha(t),(Hs(e)?Kr:Xn)(e,t)},Ur.set=function(e,t,r){return null==e?e:Yn(e,t,r)},Ur.setWith=function(e,t,r,o){return o="function"==typeof o?o:n,null==e?e:Yn(e,t,r,o)},Ur.shuffle=function(e){return(Hs(e)?Xr:ro)(e)},Ur.slice=function(e,t,r){var o=null==e?0:e.length;return o?(r&&"number"!=typeof r&&wi(e,t,r)?(t=0,r=o):(t=null==t?0:ha(t),r=r===n?o:ha(r)),no(e,t,r)):[]},Ur.sortBy=ks,Ur.sortedUniq=function(e){return e&&e.length?ao(e):[]},Ur.sortedUniqBy=function(e,t){return e&&e.length?ao(e,ui(t,2)):[]},Ur.split=function(e,t,r){return r&&"number"!=typeof r&&wi(e,t,r)&&(t=r=n),(r=r===n?g:r>>>0)?(e=ba(e))&&("string"==typeof t||null!=t&&!ia(t))&&!(t=uo(t))&&cr(e)?So(hr(e),0,r):e.split(t,r):[]},Ur.spread=function(e,t){if("function"!=typeof e)throw new Ie(i);return t=null==t?0:Vt(ha(t),0),Qn((function(r){var n=r[t],o=So(r,0,t);return n&&Dt(o,n),At(e,this,o)}))},Ur.tail=function(e){var t=null==e?0:e.length;return t?no(e,1,t):[]},Ur.take=function(e,t,r){return e&&e.length?no(e,0,(t=r||t===n?1:ha(t))<0?0:t):[]},Ur.takeRight=function(e,t,r){var o=null==e?0:e.length;return o?no(e,(t=o-(t=r||t===n?1:ha(t)))<0?0:t,o):[]},Ur.takeRightWhile=function(e,t){return e&&e.length?ho(e,ui(t,3),!1,!0):[]},Ur.takeWhile=function(e,t){return e&&e.length?ho(e,ui(t,3)):[]},Ur.tap=function(e,t){return t(e),e},Ur.throttle=function(e,t,r){var n=!0,o=!0;if("function"!=typeof e)throw new Ie(i);return ea(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),js(e,t,{leading:n,maxWait:t,trailing:o})},Ur.thru=fs,Ur.toArray=pa,Ur.toPairs=Ma,Ur.toPairsIn=Ua,Ur.toPath=function(e){return Hs(e)?qt(e,Di):ca(e)?[e]:Io(qi(ba(e)))},Ur.toPlainObject=ya,Ur.transform=function(e,t,r){var n=Hs(e),o=n||Zs(e)||ua(e);if(t=ui(t,4),null==r){var i=e&&e.constructor;r=o?n?new i:[]:ea(e)&&Ks(i)?Fr(Je(e)):{}}return(o?It:wn)(e,(function(e,n,o){return t(r,e,n,o)})),r},Ur.unary=function(e){return Os(e,1)},Ur.union=ts,Ur.unionBy=rs,Ur.unionWith=ns,Ur.uniq=function(e){return e&&e.length?lo(e):[]},Ur.uniqBy=function(e,t){return e&&e.length?lo(e,ui(t,2)):[]},Ur.uniqWith=function(e,t){return t="function"==typeof t?t:n,e&&e.length?lo(e,n,t):[]},Ur.unset=function(e,t){return null==e||po(e,t)},Ur.unzip=os,Ur.unzipWith=is,Ur.update=function(e,t,r){return null==e?e:fo(e,t,vo(r))},Ur.updateWith=function(e,t,r,o){return o="function"==typeof o?o:n,null==e?e:fo(e,t,vo(r),o)},Ur.values=Fa,Ur.valuesIn=function(e){return null==e?[]:tr(e,Ra(e))},Ur.without=ss,Ur.words=Ka,Ur.wrap=function(e,t){return Ds(vo(t),e)},Ur.xor=as,Ur.xorBy=cs,Ur.xorWith=us,Ur.zip=ls,Ur.zipObject=function(e,t){return yo(e||[],t||[],en)},Ur.zipObjectDeep=function(e,t){return yo(e||[],t||[],Yn)},Ur.zipWith=ds,Ur.entries=Ma,Ur.entriesIn=Ua,Ur.extend=wa,Ur.extendWith=_a,ac(Ur,Ur),Ur.add=yc,Ur.attempt=Xa,Ur.camelCase=Wa,Ur.capitalize=Ba,Ur.ceil=bc,Ur.clamp=function(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=(r=ga(r))==r?r:0),t!==n&&(t=(t=ga(t))==t?t:0),an(ga(e),t,r)},Ur.clone=function(e){return cn(e,4)},Ur.cloneDeep=function(e){return cn(e,5)},Ur.cloneDeepWith=function(e,t){return cn(e,5,t="function"==typeof t?t:n)},Ur.cloneWith=function(e,t){return cn(e,4,t="function"==typeof t?t:n)},Ur.conformsTo=function(e,t){return null==t||un(e,t,ja(t))},Ur.deburr=za,Ur.defaultTo=function(e,t){return null==e||e!=e?t:e},Ur.divide=vc,Ur.endsWith=function(e,t,r){e=ba(e),t=uo(t);var o=e.length,i=r=r===n?o:an(ha(r),0,o);return(r-=t.length)>=0&&e.slice(r,i)==t},Ur.eq=Fs,Ur.escape=function(e){return(e=ba(e))&&X.test(e)?e.replace(Q,sr):e},Ur.escapeRegExp=function(e){return(e=ba(e))&&se.test(e)?e.replace(ie,"\\$&"):e},Ur.every=function(e,t,r){var o=Hs(e)?Rt:hn;return r&&wi(e,t,r)&&(t=n),o(e,ui(t,3))},Ur.find=gs,Ur.findIndex=zi,Ur.findKey=function(e,t){return Bt(e,ui(t,3),wn)},Ur.findLast=ys,Ur.findLastIndex=Hi,Ur.findLastKey=function(e,t){return Bt(e,ui(t,3),_n)},Ur.floor=wc,Ur.forEach=bs,Ur.forEachRight=vs,Ur.forIn=function(e,t){return null==e?e:bn(e,ui(t,3),Ra)},Ur.forInRight=function(e,t){return null==e?e:vn(e,ui(t,3),Ra)},Ur.forOwn=function(e,t){return e&&wn(e,ui(t,3))},Ur.forOwnRight=function(e,t){return e&&_n(e,ui(t,3))},Ur.get=Ta,Ur.gt=Ws,Ur.gte=Bs,Ur.has=function(e,t){return null!=e&&gi(e,t,On)},Ur.hasIn=Oa,Ur.head=$i,Ur.identity=nc,Ur.includes=function(e,t,r,n){e=$s(e)?e:Fa(e),r=r&&!n?ha(r):0;var o=e.length;return r<0&&(r=Vt(o+r,0)),aa(e)?r<=o&&e.indexOf(t,r)>-1:!!o&&Ht(e,t,r)>-1},Ur.indexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var o=null==r?0:ha(r);return o<0&&(o=Vt(n+o,0)),Ht(e,t,o)},Ur.inRange=function(e,t,r){return t=fa(t),r===n?(r=t,t=0):r=fa(r),function(e,t,r){return e>=br(t,r)&&e<Vt(t,r)}(e=ga(e),t,r)},Ur.invoke=Ia,Ur.isArguments=zs,Ur.isArray=Hs,Ur.isArrayBuffer=Gs,Ur.isArrayLike=$s,Ur.isArrayLikeObject=Js,Ur.isBoolean=function(e){return!0===e||!1===e||ta(e)&&kn(e)==w},Ur.isBuffer=Zs,Ur.isDate=Vs,Ur.isElement=function(e){return ta(e)&&1===e.nodeType&&!oa(e)},Ur.isEmpty=function(e){if(null==e)return!0;if($s(e)&&(Hs(e)||"string"==typeof e||"function"==typeof e.splice||Zs(e)||ua(e)||zs(e)))return!e.length;var t=mi(e);if(t==T||t==j)return!e.size;if(xi(e))return!qn(e).length;for(var r in e)if(qe.call(e,r))return!1;return!0},Ur.isEqual=function(e,t){return Rn(e,t)},Ur.isEqualWith=function(e,t,r){var o=(r="function"==typeof r?r:n)?r(e,t):n;return o===n?Rn(e,t,n,r):!!o},Ur.isError=Qs,Ur.isFinite=function(e){return"number"==typeof e&&wt(e)},Ur.isFunction=Ks,Ur.isInteger=Xs,Ur.isLength=Ys,Ur.isMap=ra,Ur.isMatch=function(e,t){return e===t||Cn(e,t,di(t))},Ur.isMatchWith=function(e,t,r){return r="function"==typeof r?r:n,Cn(e,t,di(t),r)},Ur.isNaN=function(e){return na(e)&&e!=+e},Ur.isNative=function(e){if(Ei(e))throw new ce("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Ln(e)},Ur.isNil=function(e){return null==e},Ur.isNull=function(e){return null===e},Ur.isNumber=na,Ur.isObject=ea,Ur.isObjectLike=ta,Ur.isPlainObject=oa,Ur.isRegExp=ia,Ur.isSafeInteger=function(e){return Xs(e)&&e>=-9007199254740991&&e<=h},Ur.isSet=sa,Ur.isString=aa,Ur.isSymbol=ca,Ur.isTypedArray=ua,Ur.isUndefined=function(e){return e===n},Ur.isWeakMap=function(e){return ta(e)&&mi(e)==L},Ur.isWeakSet=function(e){return ta(e)&&"[object WeakSet]"==kn(e)},Ur.join=function(e,t){return null==e?"":_t.call(e,t)},Ur.kebabCase=Ha,Ur.last=Qi,Ur.lastIndexOf=function(e,t,r){var o=null==e?0:e.length;if(!o)return-1;var i=o;return r!==n&&(i=(i=ha(r))<0?Vt(o+i,0):br(i,o-1)),t==t?function(e,t,r){for(var n=r+1;n--;)if(e[n]===t)return n;return n}(e,t,i):zt(e,$t,i,!0)},Ur.lowerCase=Ga,Ur.lowerFirst=$a,Ur.lt=la,Ur.lte=da,Ur.max=function(e){return e&&e.length?mn(e,nc,Tn):n},Ur.maxBy=function(e,t){return e&&e.length?mn(e,ui(t,2),Tn):n},Ur.mean=function(e){return Jt(e,nc)},Ur.meanBy=function(e,t){return Jt(e,ui(t,2))},Ur.min=function(e){return e&&e.length?mn(e,nc,Mn):n},Ur.minBy=function(e,t){return e&&e.length?mn(e,ui(t,2),Mn):n},Ur.stubArray=mc,Ur.stubFalse=gc,Ur.stubObject=function(){return{}},Ur.stubString=function(){return""},Ur.stubTrue=function(){return!0},Ur.multiply=Sc,Ur.nth=function(e,t){return e&&e.length?zn(e,ha(t)):n},Ur.noConflict=function(){return gt._===this&&(gt._=We),this},Ur.noop=cc,Ur.now=Ts,Ur.pad=function(e,t,r){e=ba(e);var n=(t=ha(t))?fr(e):0;if(!t||n>=t)return e;var o=(t-n)/2;return Go(mt(o),r)+e+Go(ht(o),r)},Ur.padEnd=function(e,t,r){e=ba(e);var n=(t=ha(t))?fr(e):0;return t&&n<t?e+Go(t-n,r):e},Ur.padStart=function(e,t,r){e=ba(e);var n=(t=ha(t))?fr(e):0;return t&&n<t?Go(t-n,r)+e:e},Ur.parseInt=function(e,t,r){return r||null==t?t=0:t&&(t=+t),wr(ba(e).replace(ae,""),t||0)},Ur.random=function(e,t,r){if(r&&"boolean"!=typeof r&&wi(e,t,r)&&(t=r=n),r===n&&("boolean"==typeof t?(r=t,t=n):"boolean"==typeof e&&(r=e,e=n)),e===n&&t===n?(e=0,t=1):(e=fa(e),t===n?(t=e,e=0):t=fa(t)),e>t){var o=e;e=t,t=o}if(r||e%1||t%1){var i=_r();return br(e+i*(t-e+pt("1e-"+((i+"").length-1))),t)}return Zn(e,t)},Ur.reduce=function(e,t,r){var n=Hs(e)?Mt:Qt,o=arguments.length<3;return n(e,ui(t,4),r,o,pn)},Ur.reduceRight=function(e,t,r){var n=Hs(e)?Ut:Qt,o=arguments.length<3;return n(e,ui(t,4),r,o,fn)},Ur.repeat=function(e,t,r){return t=(r?wi(e,t,r):t===n)?1:ha(t),Vn(ba(e),t)},Ur.replace=function(){var e=arguments,t=ba(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Ur.result=function(e,t,r){var o=-1,i=(t=wo(t,e)).length;for(i||(i=1,e=n);++o<i;){var s=null==e?n:e[Di(t[o])];s===n&&(o=i,s=r),e=Ks(s)?s.call(e):s}return e},Ur.round=Ec,Ur.runInContext=e,Ur.sample=function(e){return(Hs(e)?Qr:Kn)(e)},Ur.size=function(e){if(null==e)return 0;if($s(e))return aa(e)?fr(e):e.length;var t=mi(e);return t==T||t==j?e.size:qn(e).length},Ur.snakeCase=Ja,Ur.some=function(e,t,r){var o=Hs(e)?Ft:oo;return r&&wi(e,t,r)&&(t=n),o(e,ui(t,3))},Ur.sortedIndex=function(e,t){return io(e,t)},Ur.sortedIndexBy=function(e,t,r){return so(e,t,ui(r,2))},Ur.sortedIndexOf=function(e,t){var r=null==e?0:e.length;if(r){var n=io(e,t);if(n<r&&Fs(e[n],t))return n}return-1},Ur.sortedLastIndex=function(e,t){return io(e,t,!0)},Ur.sortedLastIndexBy=function(e,t,r){return so(e,t,ui(r,2),!0)},Ur.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var r=io(e,t,!0)-1;if(Fs(e[r],t))return r}return-1},Ur.startCase=Za,Ur.startsWith=function(e,t,r){return e=ba(e),r=null==r?0:an(ha(r),0,e.length),t=uo(t),e.slice(r,r+t.length)==t},Ur.subtract=xc,Ur.sum=function(e){return e&&e.length?Kt(e,nc):0},Ur.sumBy=function(e,t){return e&&e.length?Kt(e,ui(t,2)):0},Ur.template=function(e,t,r){var o=Ur.templateSettings;r&&wi(e,t,r)&&(t=n),e=ba(e),t=_a({},t,o,Yo);var i,s,a=_a({},t.imports,o.imports,Yo),c=ja(a),u=tr(a,c),l=0,d=t.interpolate||Ee,p="__p += '",f=Ae((t.escape||Ee).source+"|"+d.source+"|"+(d===te?me:Ee).source+"|"+(t.evaluate||Ee).source+"|$","g"),h="//# sourceURL="+(qe.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ct+"]")+"\n";e.replace(f,(function(t,r,n,o,a,c){return n||(n=o),p+=e.slice(l,c).replace(xe,ar),r&&(i=!0,p+="' +\n__e("+r+") +\n'"),a&&(s=!0,p+="';\n"+a+";\n__p += '"),n&&(p+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),l=c+t.length,t})),p+="';\n";var m=qe.call(t,"variable")&&t.variable;if(m){if(fe.test(m))throw new ce("Invalid `variable` option passed into `_.template`")}else p="with (obj) {\n"+p+"\n}\n";p=(s?p.replace($,""):p).replace(J,"$1").replace(Z,"$1;"),p="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var g=Xa((function(){return ke(c,h+"return "+p).apply(n,u)}));if(g.source=p,Qs(g))throw g;return g},Ur.times=function(e,t){if((e=ha(e))<1||e>h)return[];var r=g,n=br(e,g);t=ui(t),e-=g;for(var o=Xt(n,t);++r<e;)t(r);return o},Ur.toFinite=fa,Ur.toInteger=ha,Ur.toLength=ma,Ur.toLower=function(e){return ba(e).toLowerCase()},Ur.toNumber=ga,Ur.toSafeInteger=function(e){return e?an(ha(e),-9007199254740991,h):0===e?e:0},Ur.toString=ba,Ur.toUpper=function(e){return ba(e).toUpperCase()},Ur.trim=function(e,t,r){if((e=ba(e))&&(r||t===n))return Yt(e);if(!e||!(t=uo(t)))return e;var o=hr(e),i=hr(t);return So(o,nr(o,i),or(o,i)+1).join("")},Ur.trimEnd=function(e,t,r){if((e=ba(e))&&(r||t===n))return e.slice(0,mr(e)+1);if(!e||!(t=uo(t)))return e;var o=hr(e);return So(o,0,or(o,hr(t))+1).join("")},Ur.trimStart=function(e,t,r){if((e=ba(e))&&(r||t===n))return e.replace(ae,"");if(!e||!(t=uo(t)))return e;var o=hr(e);return So(o,nr(o,hr(t))).join("")},Ur.truncate=function(e,t){var r=30,o="...";if(ea(t)){var i="separator"in t?t.separator:i;r="length"in t?ha(t.length):r,o="omission"in t?uo(t.omission):o}var s=(e=ba(e)).length;if(cr(e)){var a=hr(e);s=a.length}if(r>=s)return e;var c=r-fr(o);if(c<1)return o;var u=a?So(a,0,c).join(""):e.slice(0,c);if(i===n)return u+o;if(a&&(c+=u.length-c),ia(i)){if(e.slice(c).search(i)){var l,d=u;for(i.global||(i=Ae(i.source,ba(ge.exec(i))+"g")),i.lastIndex=0;l=i.exec(d);)var p=l.index;u=u.slice(0,p===n?c:p)}}else if(e.indexOf(uo(i),c)!=c){var f=u.lastIndexOf(i);f>-1&&(u=u.slice(0,f))}return u+o},Ur.unescape=function(e){return(e=ba(e))&&K.test(e)?e.replace(V,gr):e},Ur.uniqueId=function(e){var t=++De;return ba(e)+t},Ur.upperCase=Va,Ur.upperFirst=Qa,Ur.each=bs,Ur.eachRight=vs,Ur.first=$i,ac(Ur,(_c={},wn(Ur,(function(e,t){qe.call(Ur.prototype,t)||(_c[t]=e)})),_c),{chain:!1}),Ur.VERSION="4.17.21",It(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Ur[e].placeholder=Ur})),It(["drop","take"],(function(e,t){zr.prototype[e]=function(r){r=r===n?1:Vt(ha(r),0);var o=this.__filtered__&&!t?new zr(this):this.clone();return o.__filtered__?o.__takeCount__=br(r,o.__takeCount__):o.__views__.push({size:br(r,g),type:e+(o.__dir__<0?"Right":"")}),o},zr.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),It(["filter","map","takeWhile"],(function(e,t){var r=t+1,n=1==r||3==r;zr.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ui(e,3),type:r}),t.__filtered__=t.__filtered__||n,t}})),It(["head","last"],(function(e,t){var r="take"+(t?"Right":"");zr.prototype[e]=function(){return this[r](1).value()[0]}})),It(["initial","tail"],(function(e,t){var r="drop"+(t?"":"Right");zr.prototype[e]=function(){return this.__filtered__?new zr(this):this[r](1)}})),zr.prototype.compact=function(){return this.filter(nc)},zr.prototype.find=function(e){return this.filter(e).head()},zr.prototype.findLast=function(e){return this.reverse().find(e)},zr.prototype.invokeMap=Qn((function(e,t){return"function"==typeof e?new zr(this):this.map((function(r){return In(r,e,t)}))})),zr.prototype.reject=function(e){return this.filter(Ns(ui(e)))},zr.prototype.slice=function(e,t){e=ha(e);var r=this;return r.__filtered__&&(e>0||t<0)?new zr(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(r=(t=ha(t))<0?r.dropRight(-t):r.take(t-e)),r)},zr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},zr.prototype.toArray=function(){return this.take(g)},wn(zr.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),i=Ur[o?"take"+("last"==t?"Right":""):t],s=o||/^find/.test(t);i&&(Ur.prototype[t]=function(){var t=this.__wrapped__,a=o?[1]:arguments,c=t instanceof zr,u=a[0],l=c||Hs(t),d=function(e){var t=i.apply(Ur,Dt([e],a));return o&&p?t[0]:t};l&&r&&"function"==typeof u&&1!=u.length&&(c=l=!1);var p=this.__chain__,f=!!this.__actions__.length,h=s&&!p,m=c&&!f;if(!s&&l){t=m?t:new zr(this);var g=e.apply(t,a);return g.__actions__.push({func:fs,args:[d],thisArg:n}),new Br(g,p)}return h&&m?e.apply(this,a):(g=this.thru(d),h?o?g.value()[0]:g.value():g)})})),It(["pop","push","shift","sort","splice","unshift"],(function(e){var t=je[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);Ur.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var o=this.value();return t.apply(Hs(o)?o:[],e)}return this[r]((function(r){return t.apply(Hs(r)?r:[],e)}))}})),wn(zr.prototype,(function(e,t){var r=Ur[t];if(r){var n=r.name+"";qe.call(Ir,n)||(Ir[n]=[]),Ir[n].push({name:t,func:r})}})),Ir[Wo(n,2).name]=[{name:"wrapper",func:n}],zr.prototype.clone=function(){var e=new zr(this.__wrapped__);return e.__actions__=Io(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Io(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Io(this.__views__),e},zr.prototype.reverse=function(){if(this.__filtered__){var e=new zr(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},zr.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,r=Hs(e),n=t<0,o=r?e.length:0,i=function(e,t,r){var n=-1,o=r.length;for(;++n<o;){var i=r[n],s=i.size;switch(i.type){case"drop":e+=s;break;case"dropRight":t-=s;break;case"take":t=br(t,e+s);break;case"takeRight":e=Vt(e,t-s)}}return{start:e,end:t}}(0,o,this.__views__),s=i.start,a=i.end,c=a-s,u=n?a:s-1,l=this.__iteratees__,d=l.length,p=0,f=br(c,this.__takeCount__);if(!r||!n&&o==c&&f==c)return mo(e,this.__actions__);var h=[];e:for(;c--&&p<f;){for(var m=-1,g=e[u+=t];++m<d;){var y=l[m],b=y.iteratee,v=y.type,w=b(g);if(2==v)g=w;else if(!w){if(1==v)continue e;break e}}h[p++]=g}return h},Ur.prototype.at=hs,Ur.prototype.chain=function(){return ps(this)},Ur.prototype.commit=function(){return new Br(this.value(),this.__chain__)},Ur.prototype.next=function(){this.__values__===n&&(this.__values__=pa(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}},Ur.prototype.plant=function(e){for(var t,r=this;r instanceof Wr;){var o=Ui(r);o.__index__=0,o.__values__=n,t?i.__wrapped__=o:t=o;var i=o;r=r.__wrapped__}return i.__wrapped__=e,t},Ur.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof zr){var t=e;return this.__actions__.length&&(t=new zr(this)),(t=t.reverse()).__actions__.push({func:fs,args:[es],thisArg:n}),new Br(t,this.__chain__)}return this.thru(es)},Ur.prototype.toJSON=Ur.prototype.valueOf=Ur.prototype.value=function(){return mo(this.__wrapped__,this.__actions__)},Ur.prototype.first=Ur.prototype.head,Xe&&(Ur.prototype[Xe]=function(){return this}),Ur}();gt._=yr,(o=function(){return yr}.call(t,r,t,e))===n||(e.exports=o)}).call(this)})),k(e.exports),E(e.exports,"default",(()=>de)),E(e.exports,"Web2Driver",(()=>le)),E(e.exports,"Session",(()=>se)),E(e.exports,"UIElement",(()=>K));var I={},j=I&&I.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),R=I&&I.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||j(t,e,r)},C=I&&I.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(I,"__esModule",{value:!0}),I.command=I.DEFAULTS=I.getPrototype=void 0;C(a);const L=C(P("aZBcl"));var N=P("kLa2o"),q={},D=q&&q.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),M=q&&q.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||D(t,e,r)},U=q&&q.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(q,"__esModule",{value:!0}),q.DEFAULT_CONFIGS=q.ConfigParser=q.isCloudCapability=q.validateConfig=void 0;var F=P("hByiW");Object.defineProperty(q,"DEFAULT_CONFIGS",{enumerable:!0,get:function(){return F.DEFAULT_CONFIGS}});var W=P("gSLCk");Object.defineProperty(q,"validateConfig",{enumerable:!0,get:function(){return W.validateConfig}}),Object.defineProperty(q,"isCloudCapability",{enumerable:!0,get:function(){return W.isCloudCapability}});const B=U(P("3mjWR"));q.ConfigParser=B.default,M(P("8BEJT"),q);const z=C(P("kxz8U"));I.command=z.default;var H=P("6oiT0");Object.defineProperty(I,"DEFAULTS",{enumerable:!0,get:function(){return H.DEFAULTS}});var G=P("6JCTy");Object.defineProperty(I,"getPrototype",{enumerable:!0,get:function(){return G.getPrototype}});const $=(0,L.default)("webdriver");class J{static async newSession(e,t,r={},n){const o=(0,q.validateConfig)(H.DEFAULTS,e);e.logLevels&&e.logLevels.webdriver||L.default.setLevel("webdriver",o.logLevel),o.outputDir,$.info("Initiate new session using the WebDriver protocol");const i={...o.capabilities},{sessionId:s,capabilities:a}=await(0,G.startWebDriverSession)(o),c=(0,N.sessionEnvironmentDetector)({capabilities:a,requestedCapabilities:i}),u=(0,G.getEnvironmentVars)(c),l={...(0,G.getPrototype)(c),...u,...r},d=(0,N.webdriverMonad)({...o,requestedCapabilities:i},t,l)(s,n);return o.enableDirectConnect&&(0,G.setupDirectConnect)(d),d}static attachToSession(e,t,r={},n){if(!e||"string"!=typeof e.sessionId)throw new Error("sessionId is required to attach to existing session");e.logLevel&&L.default.setLevel("webdriver",e.logLevel),e.capabilities=e.capabilities||{},e.isW3C=!1!==e.isW3C,e.protocol=e.protocol||H.DEFAULTS.protocol.default,e.hostname=e.hostname||H.DEFAULTS.hostname.default,e.port=e.port||H.DEFAULTS.port.default,e.path=e.path||H.DEFAULTS.path.default;const o=(0,G.getEnvironmentVars)(e),i={...(0,G.getPrototype)(e),...o,...r};return(0,N.webdriverMonad)(e,t,i)(e.sessionId,n)}static async reloadSession(e){const t={...e.options,capabilities:e.requestedCapabilities},{sessionId:r,capabilities:n}=await(0,G.startWebDriverSession)(t);return e.sessionId=r,e.capabilities=n,r}static get WebDriver(){return J}}I.default=J,R(P("8WBmN"),I);var Z=P("g6WRe"),V=P("aZBcl");Z=P("g6WRe");const Q="element-6066-11e4-a52e-4f735466cecf";class K{constructor(e,t,r){this.elementKey=e,this.elementId=this[e]=t[e],this.__is_w2d_element=!0,this.parent=r,this.session=r.session||r}get executeObj(){return{[this.elementKey]:this.elementId}}async findElement(e,t){return X(await this.session.cmd("findElementFromElement",this.elementId,e,t),this)}async findElements(e,t){return(await this.session.cmd("findElementsFromElement",this.elementId,e,t)).map((e=>X(e,this)))}}function X(e,t){let r;if(r=e[Q]?Q:"ELEMENT",!e[r])throw new Error(`Bad findElement response; did not have element key. Response was: ${JSON.stringify(e)}`);return new K(r,e,t)}const Y={isElementSelected:"isSelected",isElementDisplayed:"isDisplayed",getElementAttribute:"getAttribute",getElementCSSValue:"getCSSValue",getElementText:"getText",getElementTagName:"getTagName",getElementLocation:"getLocation",getElementLocationInView:"getLocationInView",getElementProperty:"getProperty",getElementRect:"getRect",getElementSize:"getSize",getElementEnabled:"getEnabled",elementClick:"click",elementSubmit:"submit",elementClear:"clear",elementSendKeys:"sendKeys",takeElementScreenshot:"takeScreenshot"};for(const[e,t]of(0,Z.toPairs)(Y))K.prototype[t]=async function(...t){return await this.session.cmd(e,this.elementId,...t)};var ee=P("dLelG"),te=P("bLzJe"),re=P("iMZCy"),ne=P("50wc7");const oe=T(V)("web2driver");let ie=["Protocol","Host","Port","Path"];ie=ie.map((e=>`directConnect${e}`));ie.map((e=>`appium:${e}`));class se{constructor(e,t=ue.logLevel){this.client=e,oe.setLevel&&oe.setLevel(t)}async cmd(e,...t){const r=await this.client[e](...t);if(r&&r.error)throw new Error(r.message?r.message:r.error);return r}get connectedUrl(){const{protocol:e,hostname:t,port:r,path:n}=this.client.options;return`${e}://${t}:${r}${n}`}get sessionId(){return this.client.sessionId}get capabilities(){return this.client.options.capabilities}async findElement(e,t){return X(await this.cmd("findElement",e,t),this)}async findElements(e,t){return(await this.cmd("findElements",e,t)).map((e=>X(e,this)))}async waitForElement(e,t,r){let n=null;const o=Date.now()+e;for(;null===n&&Date.now()<o;)try{n=await this.findElement(t,r)}catch(e){}if(n)return n;throw new Error(`Could not find element using strategy ${t} and value '${r}' after ${e}ms`)}async waitForElements(e,t,r){let n=[];const o=Date.now()+e;for(;0===n.length&&Date.now()<o;)n=await this.findElements(t,r);if(n.length)return n;throw new Error(`Could not find any elements using strategy ${t} and value '${r}' after ${e}ms`)}async executeBase(e,t,r){return r=r.map((e=>e.__is_w2d_element?e.executeObj:e)),await this.cmd(e,t,r)}async executeScript(e,t){return await this.executeBase("executeScript",e,t)}async executeAsyncScript(e,t){return await this.executeBase("executeAsyncScript",e,t)}}const ae=["newSession","findElement","findElements","findElementFromElement","findElementsFromElement","executeScript","executeAsyncScript"],ce={deleteSession:"quit"};for(const e of[T(ee),T(te),T(re),T(ne)])for(const[t,r]of(0,Z.toPairs)(e))for(const[e,t]of(0,Z.toPairs)(r)){if(ae.includes(t.command))continue;if((0,Z.keys)(Y).includes(t.command))continue;const e=(0,Z.keys)(ce).includes(t.command)?ce[t.command]:t.command;se.prototype[e]=async function(...e){return await this.cmd(t.command,...e)}}const ue={protocol:"http",hostname:"0.0.0.0",port:4444,path:"/wd/hub",logLevel:"undefined"==typeof window?"silent":"info"};class le{static async remote({protocol:e=ue.protocol,hostname:t=ue.hostname,port:r=ue.port,path:n=ue.path,logLevel:o=ue.logLevel,...i},s={}){const a={protocol:e,hostname:t,port:r,path:n,capabilities:s,logLevel:o,...i},c=await T(I).newSession(a);return new se(c,o)}static async attachToSession(e,{protocol:t=ue.protocol,hostname:r=ue.hostname,port:n=ue.port,path:o=ue.path,logLevel:i=ue.logLevel,...s},a={},c=!0){if(!e)throw new Error("Can't attach to a session without a session id");const u={sessionId:e,isW3C:c,protocol:t,hostname:r,port:n,path:o,capabilities:a,...s},l=await T(I).attachToSession(u);return new se(l,i)}}var de=le},7603:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=7603,e.exports=t},1826:(e,t,r)=>{"use strict";var n=r(6862),o=r(4897),i=r(4571),s=r(3390),a=r(9662),c=s("Object.prototype.toString"),u=r(3825)(),l="undefined"==typeof globalThis?r.g:globalThis,d=o(),p=s("String.prototype.slice"),f=Object.getPrototypeOf,h=s("Array.prototype.indexOf",!0)||function(e,t){for(var r=0;r<e.length;r+=1)if(e[r]===t)return r;return-1},m={__proto__:null};n(d,u&&a&&f?function(e){var t=new l[e];if(Symbol.toStringTag in t){var r=f(t),n=a(r,Symbol.toStringTag);if(!n){var o=f(r);n=a(o,Symbol.toStringTag)}m["$"+e]=i(n.get)}}:function(e){var t=new l[e];m["$"+e]=i(t.slice)});e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!u){var t=p(c(e),8,-1);return h(d,t)>-1?t:"Object"===t&&function(e){var t=!1;return n(m,(function(r,n){if(!t)try{r(e),t=p(n,1)}catch(e){}})),t}(e)}return a?function(e){var t=!1;return n(m,(function(r,n){if(!t)try{"$"+r(e)===n&&(t=p(n,1))}catch(e){}})),t}(e):null}},8479:e=>{e.exports=function(){for(var e={},r=0;r<arguments.length;r++){var n=arguments[r];for(var o in n)t.call(n,o)&&(e[o]=n[o])}return e};var t=Object.prototype.hasOwnProperty},6030:()=>{},4316:()=>{},1706:()=>{},6482:()=>{},2894:()=>{},69:()=>{},3907:()=>{},3541:()=>{},3535:()=>{},4435:()=>{},7376:()=>{},4897:(e,t,r)=>{"use strict";var n=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],o="undefined"==typeof globalThis?r.g:globalThis;e.exports=function(){for(var e=[],t=0;t<n.length;t++)"function"==typeof o[n[t]]&&(e[e.length]=n[t]);return e}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{"use strict";r.r(n),r.d(n,{getDriver:()=>c,getSessionInfo:()=>a,initializeDriverInPage:()=>i,setSessionInfo:()=>s});var e=r(5206);let t,o;async function i(t){var r,n,o,i,s,a,c,u;return await e.Web2Driver.attachToSession(t.sessionId,{protocol:null!==(r=t.protocol)&&void 0!==r?r:"http",hostname:null!==(n=t.hostname)&&void 0!==n?n:"localhost",port:null!==(o=t.port)&&void 0!==o?o:4723,path:null!==(i=t.path)&&void 0!==i?i:"/",isMobile:null!==(s=t.isMobile)&&void 0!==s&&s,isAndroid:null!==(a=t.isAndroid)&&void 0!==a&&a,isIOS:null!==(c=t.isIOS)&&void 0!==c&&c},t.capabilities,null===(u=t.isW3C)||void 0===u||u)}function s(e){t=e}function a(){return t}async function c(){return o||(o=await i(t)),o}window.mabl={mobile:{initializeDriverInPage:i,setSessionInfo:s,getSessionInfo:a,getDriver:c},...window._mabl}})(),window.mablDriver=n})();
|