@blackglory/geyser-js 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es2015/index.min.mjs +1 -29
- package/dist/es2015/index.min.mjs.map +1 -1
- package/dist/es2015/index.mjs +1872 -14111
- package/dist/es2015/index.mjs.map +1 -1
- package/dist/es2015/index.umd.js +1872 -14111
- package/dist/es2015/index.umd.js.map +1 -1
- package/dist/es2015/index.umd.min.js +3 -31
- package/dist/es2015/index.umd.min.js.map +1 -1
- package/dist/es2018/index.min.mjs +1 -29
- package/dist/es2018/index.min.mjs.map +1 -1
- package/dist/es2018/index.mjs +1853 -14092
- package/dist/es2018/index.mjs.map +1 -1
- package/dist/es2018/index.umd.js +1853 -14092
- package/dist/es2018/index.umd.js.map +1 -1
- package/dist/es2018/index.umd.min.js +2 -30
- package/dist/es2018/index.umd.min.js.map +1 -1
- package/lib/es2015/geyser-client.js +3 -3
- package/lib/es2015/geyser-client.js.map +1 -1
- package/lib/es2015/utils.js +3 -3
- package/lib/es2015/utils.js.map +1 -1
- package/lib/es2018/geyser-client.js +3 -3
- package/lib/es2018/geyser-client.js.map +1 -1
- package/lib/es2018/utils.js +3 -3
- package/lib/es2018/utils.js.map +1 -1
- package/package.json +4 -7
|
@@ -12,33 +12,5 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
12
12
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
13
13
|
PERFORMANCE OF THIS SOFTWARE.
|
|
14
14
|
***************************************************************************** */
|
|
15
|
-
function t(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{u(r.next(t))}catch(t){o(t)}}function a(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}u((r=r.apply(t,e||[])).next())}))}var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(t){if(t.__esModule)return t;var e=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(t).forEach((function(n){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})})),e}var r={},i={fetch:void 0};i.fetch=globalThis.fetch.bind(globalThis);var o={Headers:void 0};o.Headers=globalThis.Headers;var s={Request:void 0};s.Request=globalThis.Request;var a={Response:void 0};a.Response=globalThis.Response;var u={FormData:void 0};u.FormData=globalThis.FormData;var c={AbortController:void 0};c.AbortController=globalThis.AbortController;var l={AbortError:void 0};l.AbortError=globalThis.DOMException;var f={Blob:void 0};f.Blob=globalThis.Blob;var d,h,p,v={};v.EventSource=void 0,v.EventSource=globalThis.EventSource,d=r,h=e&&e.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),(p=e&&e.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||h(e,t,n)})(i,d),p(o,d),p(s,d),p(a,d),p(u,d),p(c,d),p(l,d),p(f,d),p(v,d);var y={},m=n(Object.freeze({__proto__:null})),b={},w={},g={};function E(t){return Array.isArray(t)}g.isntEmptyArray=g.isEmptyArray=g.isntArray=g.isArray=void 0,g.isArray=E,g.isntArray=function(t){return!E(t)},g.isEmptyArray=function(t){return 0===t.length},g.isntEmptyArray=function(t){return 0!==t.length};var S={},_={};function x(t){return null===t}_.isntNull=_.isNull=void 0,_.isNull=x,_.isntNull=function(t){return!x(t)};var T={};function A(t){return void 0===t}T.isntUndefined=T.isUndefined=void 0,T.isUndefined=A,T.isntUndefined=function(t){return!A(t)},S.isntAsyncIterable=S.isAsyncIterable=void 0;const P=_,O=T;function R(t){return(0,P.isntNull)(t)&&(0,O.isntUndefined)(t)&&"function"==typeof t[Symbol.asyncIterator]}S.isAsyncIterable=R,S.isntAsyncIterable=function(t){return!R(t)};var C={};function k(t){return"bigint"==typeof t}C.isntBigInt=C.isBigInt=void 0,C.isBigInt=k,C.isntBigInt=function(t){return!k(t)};var j={};function I(t){return"boolean"==typeof t}j.isntBoolean=j.isBoolean=void 0,j.isBoolean=I,j.isntBoolean=function(t){return!I(t)};var N={},F={};function M(t){return"string"==typeof t}F.isntString=F.isString=void 0,F.isString=M,F.isntString=function(t){return!M(t)},N.isntChar=N.isChar=void 0;const q=F;function U(t){return(0,q.isString)(t)&&1===t.length}N.isChar=U,N.isntChar=function(t){return!U(t)};var B={};function L(t){return t instanceof Date}B.isntDate=B.isDate=void 0,B.isDate=L,B.isntDate=function(t){return!L(t)};var D={};D.inEnum=void 0,D.inEnum=function(t,e){return Object.values(e).includes(t)};var J={};function z(t){return t instanceof Error}J.isntError=J.isError=void 0,J.isError=z,J.isntError=function(t){return!z(t)};var G={};function W(t){return!t}G.isntFalsy=G.isFalsy=void 0,G.isFalsy=W,G.isntFalsy=function(t){return!W(t)};var H={};function $(t){return"function"==typeof t}H.isntFunction=H.isFunction=void 0,H.isFunction=$,H.isntFunction=function(t){return!$(t)};var V={};V.isntIterable=V.isIterable=void 0;const K=_,Q=T;function Y(t){return(0,K.isntNull)(t)&&(0,Q.isntUndefined)(t)&&"function"==typeof t[Symbol.iterator]}V.isIterable=Y,V.isntIterable=function(t){return!Y(t)};var Z={},X={};function tt(t){return null!==t&&"object"==typeof t}X.isntEmptyObject=X.isEmptyObject=X.isRecord=X.isntObject=X.isObject=void 0,X.isObject=tt,X.isntObject=function(t){return!tt(t)},X.isRecord=function(t){return tt(t)},X.isEmptyObject=function(t){return 0===Object.keys(t).length},X.isntEmptyObject=function(t){return 0!==Object.keys(t).length};var et={};function nt(t){return"number"==typeof t}et.isntNumber=et.isNumber=void 0,et.isNumber=nt,et.isntNumber=function(t){return!nt(t)},Z.isntJsonRpcError=Z.isJsonRpcError=Z.isntJsonRpcSuccess=Z.isJsonRpcSuccess=Z.isntJsonRpcRequest=Z.isJsonRpcRequest=Z.isntJsonRpcNotification=Z.isJsonRpcNotification=void 0;const rt=g,it=X,ot=F,st=et,at=T;function ut(t){return(0,ot.isString)(t)||(0,st.isNumber)(t)}function ct(t){return(0,rt.isArray)(t)||(0,it.isObject)(t)}function lt(t){return(0,it.isRecord)(t)&&(0,ot.isString)(t.jsonrpc)&&(0,ot.isString)(t.method)&&(0,at.isUndefined)(t.id)&&ct(t.params)}function ft(t){return(0,it.isRecord)(t)&&(0,ot.isString)(t.jsonrpc)&&(0,ot.isString)(t.method)&&ut(t.id)&&ct(t.params)}function dt(t){return(0,it.isRecord)(t)&&(0,ot.isString)(t.jsonrpc)&&(0,ot.isString)(t.id)&&"result"in t}function ht(t){return(0,it.isRecord)(t)&&(0,ot.isString)(t.jsonrpc)&&ut(t.id)&&function(t){return(0,it.isRecord)(t)&&(0,st.isNumber)(t.code)&&(0,ot.isString)(t.message)&&((0,at.isUndefined)(t.data)||(0,it.isObject)(t.data))}(t.error)}Z.isJsonRpcNotification=lt,Z.isntJsonRpcNotification=function(t){return!lt(t)},Z.isJsonRpcRequest=ft,Z.isntJsonRpcRequest=function(t){return!ft(t)},Z.isJsonRpcSuccess=dt,Z.isntJsonRpcSuccess=function(t){return!dt(t)},Z.isJsonRpcError=ht,Z.isntJsonRpcError=function(t){return!ht(t)};var pt={};pt.isntJson=pt.isJson=void 0,pt.isJson=function(t){try{return JSON.stringify(t),!0}catch(t){return!1}},pt.isntJson=function t(e){return!t()};var vt={};vt.isAbsoluteURL=void 0,vt.isAbsoluteURL=function(t){try{return new URL(t),!0}catch(t){return!1}},function(t){var n=e&&e.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=e&&e.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};r(g,t),r(S,t),r(C,t),r(j,t),r(N,t),r(B,t),r(D,t),r(J,t),r(G,t),r(H,t),r(V,t),r(Z,t),r(pt,t),r(_,t),r(et,t),r(X,t),r(F,t),r(T,t),r(vt,t)}(w),b.del=b.patch=b.put=b.post=b.head=b.get=void 0;const yt=r,mt=w;function bt(t,...e){const n=e.reduce(((t,e)=>(0,mt.isFunction)(e)?e(t):t),{url:new URL("http://localhost"),headers:new yt.Headers}),r=new yt.Headers(n.headers);return new yt.Request(n.url.href,{method:t,headers:r,signal:n.signal,body:n.payload,keepalive:n.keepalive})}b.get=function(...t){return bt("GET",...t)},b.head=function(...t){return bt("HEAD",...t)},b.post=function(...t){return bt("POST",...t)},b.put=function(...t){return bt("PUT",...t)},b.patch=function(...t){return bt("PATCH",...t)},b.del=function(...t){return bt("DELETE",...t)},function(t){var n=e&&e.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=e&&e.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};r(m,t),r(b,t)}(y);var wt={},gt={};gt.url=void 0,gt.url=function(...t){return e=>({...e,url:new URL(t.reduce(((t,e)=>new URL(e,t).href)))})};var Et={text:void 0};const St=r;Et.text=function(t){return e=>{const n=new St.Headers(e.headers);return n.set("Content-Type","application/x-www-form-urlencoded"),{...e,headers:n,payload:t}}};var _t={json:void 0};const xt=r;_t.json=function(t){return e=>{const n=new xt.Headers(e.headers);return n.set("Content-Type","application/json"),{...e,headers:n,payload:JSON.stringify(t)}}};var Tt={},At={exports:{}};At.exports=function t(){var e="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:{},n=!e.document&&!!e.postMessage,r=n&&/blob:/i.test((e.location||{}).protocol),i={},o=0,s={parse:function(n,r){var a=(r=r||{}).dynamicTyping||!1;if(E(a)&&(r.dynamicTypingFunction=a,a={}),r.dynamicTyping=a,r.transform=!!E(r.transform)&&r.transform,r.worker&&s.WORKERS_SUPPORTED){var u=function(){if(!s.WORKERS_SUPPORTED)return!1;var n,r,a=(n=e.URL||e.webkitURL||null,r=t.toString(),s.BLOB_URL||(s.BLOB_URL=n.createObjectURL(new Blob(["(",r,")();"],{type:"text/javascript"})))),u=new e.Worker(a);return u.onmessage=y,u.id=o++,i[u.id]=u}();return u.userStep=r.step,u.userChunk=r.chunk,u.userComplete=r.complete,u.userError=r.error,r.step=E(r.step),r.chunk=E(r.chunk),r.complete=E(r.complete),r.error=E(r.error),delete r.worker,void u.postMessage({input:n,config:r,workerId:u.id})}var h=null;return s.NODE_STREAM_INPUT,"string"==typeof n?h=r.download?new c(r):new f(r):!0===n.readable&&E(n.read)&&E(n.on)?h=new d(r):(e.File&&n instanceof File||n instanceof Object)&&(h=new l(r)),h.stream(n)},unparse:function(t,e){var n=!1,r=!0,i=",",o="\r\n",a='"',u=a+a,c=!1,l=null,f=!1;!function(){if("object"==typeof e){if("string"!=typeof e.delimiter||s.BAD_DELIMITERS.filter((function(t){return-1!==e.delimiter.indexOf(t)})).length||(i=e.delimiter),("boolean"==typeof e.quotes||"function"==typeof e.quotes||Array.isArray(e.quotes))&&(n=e.quotes),"boolean"!=typeof e.skipEmptyLines&&"string"!=typeof e.skipEmptyLines||(c=e.skipEmptyLines),"string"==typeof e.newline&&(o=e.newline),"string"==typeof e.quoteChar&&(a=e.quoteChar),"boolean"==typeof e.header&&(r=e.header),Array.isArray(e.columns)){if(0===e.columns.length)throw new Error("Option columns is empty");l=e.columns}void 0!==e.escapeChar&&(u=e.escapeChar+a),"boolean"==typeof e.escapeFormulae&&(f=e.escapeFormulae)}}();var d=new RegExp(p(a),"g");if("string"==typeof t&&(t=JSON.parse(t)),Array.isArray(t)){if(!t.length||Array.isArray(t[0]))return h(null,t,c);if("object"==typeof t[0])return h(l||Object.keys(t[0]),t,c)}else if("object"==typeof t)return"string"==typeof t.data&&(t.data=JSON.parse(t.data)),Array.isArray(t.data)&&(t.fields||(t.fields=t.meta&&t.meta.fields),t.fields||(t.fields=Array.isArray(t.data[0])?t.fields:"object"==typeof t.data[0]?Object.keys(t.data[0]):[]),Array.isArray(t.data[0])||"object"==typeof t.data[0]||(t.data=[t.data])),h(t.fields||[],t.data||[],c);throw new Error("Unable to serialize unrecognized input");function h(t,e,n){var s="";"string"==typeof t&&(t=JSON.parse(t)),"string"==typeof e&&(e=JSON.parse(e));var a=Array.isArray(t)&&0<t.length,u=!Array.isArray(e[0]);if(a&&r){for(var c=0;c<t.length;c++)0<c&&(s+=i),s+=v(t[c],c);0<e.length&&(s+=o)}for(var l=0;l<e.length;l++){var f=a?t.length:e[l].length,d=!1,h=a?0===Object.keys(e[l]).length:0===e[l].length;if(n&&!a&&(d="greedy"===n?""===e[l].join("").trim():1===e[l].length&&0===e[l][0].length),"greedy"===n&&a){for(var p=[],y=0;y<f;y++){var m=u?t[y]:y;p.push(e[l][m])}d=""===p.join("").trim()}if(!d){for(var b=0;b<f;b++){0<b&&!h&&(s+=i);var w=a&&u?t[b]:b;s+=v(e[l][w],b)}l<e.length-1&&(!n||0<f&&!h)&&(s+=o)}}return s}function v(t,e){if(null==t)return"";if(t.constructor===Date)return JSON.stringify(t).slice(1,25);!0===f&&"string"==typeof t&&null!==t.match(/^[=+\-@].*$/)&&(t="'"+t);var r=t.toString().replace(d,u);return"boolean"==typeof n&&n||"function"==typeof n&&n(t,e)||Array.isArray(n)&&n[e]||function(t,e){for(var n=0;n<e.length;n++)if(-1<t.indexOf(e[n]))return!0;return!1}(r,s.BAD_DELIMITERS)||-1<r.indexOf(i)||" "===r.charAt(0)||" "===r.charAt(r.length-1)?a+r+a:r}}};if(s.RECORD_SEP=String.fromCharCode(30),s.UNIT_SEP=String.fromCharCode(31),s.BYTE_ORDER_MARK="\ufeff",s.BAD_DELIMITERS=["\r","\n",'"',s.BYTE_ORDER_MARK],s.WORKERS_SUPPORTED=!n&&!!e.Worker,s.NODE_STREAM_INPUT=1,s.LocalChunkSize=10485760,s.RemoteChunkSize=5242880,s.DefaultDelimiter=",",s.Parser=v,s.ParserHandle=h,s.NetworkStreamer=c,s.FileStreamer=l,s.StringStreamer=f,s.ReadableStreamStreamer=d,e.jQuery){var a=e.jQuery;a.fn.parse=function(t){var n=t.config||{},r=[];return this.each((function(t){if("INPUT"!==a(this).prop("tagName").toUpperCase()||"file"!==a(this).attr("type").toLowerCase()||!e.FileReader||!this.files||0===this.files.length)return!0;for(var i=0;i<this.files.length;i++)r.push({file:this.files[i],inputElem:this,instanceConfig:a.extend({},n)})})),i(),this;function i(){if(0!==r.length){var e,n,i,u,c=r[0];if(E(t.before)){var l=t.before(c.file,c.inputElem);if("object"==typeof l){if("abort"===l.action)return e="AbortError",n=c.file,i=c.inputElem,u=l.reason,void(E(t.error)&&t.error({name:e},n,i,u));if("skip"===l.action)return void o();"object"==typeof l.config&&(c.instanceConfig=a.extend(c.instanceConfig,l.config))}else if("skip"===l)return void o()}var f=c.instanceConfig.complete;c.instanceConfig.complete=function(t){E(f)&&f(t,c.file,c.inputElem),o()},s.parse(c.file,c.instanceConfig)}else E(t.complete)&&t.complete()}function o(){r.splice(0,1),i()}}}function u(t){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},function(t){var e=w(t);e.chunkSize=parseInt(e.chunkSize),t.step||t.chunk||(e.chunkSize=null),this._handle=new h(e),(this._handle.streamer=this)._config=e}.call(this,t),this.parseChunk=function(t,n){if(this.isFirstChunk&&E(this._config.beforeFirstChunk)){var i=this._config.beforeFirstChunk(t);void 0!==i&&(t=i)}this.isFirstChunk=!1,this._halted=!1;var o=this._partialLine+t;this._partialLine="";var a=this._handle.parse(o,this._baseIndex,!this._finished);if(!this._handle.paused()&&!this._handle.aborted()){var u=a.meta.cursor;this._finished||(this._partialLine=o.substring(u-this._baseIndex),this._baseIndex=u),a&&a.data&&(this._rowCount+=a.data.length);var c=this._finished||this._config.preview&&this._rowCount>=this._config.preview;if(r)e.postMessage({results:a,workerId:s.WORKER_ID,finished:c});else if(E(this._config.chunk)&&!n){if(this._config.chunk(a,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);a=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(a.data),this._completeResults.errors=this._completeResults.errors.concat(a.errors),this._completeResults.meta=a.meta),this._completed||!c||!E(this._config.complete)||a&&a.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),c||a&&a.meta.paused||this._nextChunk(),a}this._halted=!0},this._sendError=function(t){E(this._config.error)?this._config.error(t):r&&this._config.error&&e.postMessage({workerId:s.WORKER_ID,error:t,finished:!1})}}function c(t){var e;(t=t||{}).chunkSize||(t.chunkSize=s.RemoteChunkSize),u.call(this,t),this._nextChunk=n?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(t){this._input=t,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(e=new XMLHttpRequest,this._config.withCredentials&&(e.withCredentials=this._config.withCredentials),n||(e.onload=g(this._chunkLoaded,this),e.onerror=g(this._chunkError,this)),e.open(this._config.downloadRequestBody?"POST":"GET",this._input,!n),this._config.downloadRequestHeaders){var t=this._config.downloadRequestHeaders;for(var r in t)e.setRequestHeader(r,t[r])}if(this._config.chunkSize){var i=this._start+this._config.chunkSize-1;e.setRequestHeader("Range","bytes="+this._start+"-"+i)}try{e.send(this._config.downloadRequestBody)}catch(t){this._chunkError(t.message)}n&&0===e.status&&this._chunkError()}},this._chunkLoaded=function(){4===e.readyState&&(e.status<200||400<=e.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:e.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(t){var e=t.getResponseHeader("Content-Range");return null===e?-1:parseInt(e.substring(e.lastIndexOf("/")+1))}(e),this.parseChunk(e.responseText)))},this._chunkError=function(t){var n=e.statusText||t;this._sendError(new Error(n))}}function l(t){var e,n;(t=t||{}).chunkSize||(t.chunkSize=s.LocalChunkSize),u.call(this,t);var r="undefined"!=typeof FileReader;this.stream=function(t){this._input=t,n=t.slice||t.webkitSlice||t.mozSlice,r?((e=new FileReader).onload=g(this._chunkLoaded,this),e.onerror=g(this._chunkError,this)):e=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var t=this._input;if(this._config.chunkSize){var i=Math.min(this._start+this._config.chunkSize,this._input.size);t=n.call(t,this._start,i)}var o=e.readAsText(t,this._config.encoding);r||this._chunkLoaded({target:{result:o}})},this._chunkLoaded=function(t){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(t.target.result)},this._chunkError=function(){this._sendError(e.error)}}function f(t){var e;u.call(this,t=t||{}),this.stream=function(t){return e=t,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var t,n=this._config.chunkSize;return n?(t=e.substring(0,n),e=e.substring(n)):(t=e,e=""),this._finished=!e,this.parseChunk(t)}}}function d(t){u.call(this,t=t||{});var e=[],n=!0,r=!1;this.pause=function(){u.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){u.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(t){this._input=t,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){r&&1===e.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),e.length?this.parseChunk(e.shift()):n=!0},this._streamData=g((function(t){try{e.push("string"==typeof t?t:t.toString(this._config.encoding)),n&&(n=!1,this._checkIsFinished(),this.parseChunk(e.shift()))}catch(t){this._streamError(t)}}),this),this._streamError=g((function(t){this._streamCleanUp(),this._sendError(t)}),this),this._streamEnd=g((function(){this._streamCleanUp(),r=!0,this._streamData("")}),this),this._streamCleanUp=g((function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)}),this)}function h(t){var e,n,r,i=Math.pow(2,53),o=-i,a=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,u=/^(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))$/,c=this,l=0,f=0,d=!1,h=!1,y=[],m={data:[],errors:[],meta:{}};if(E(t.step)){var b=t.step;t.step=function(e){if(m=e,_())S();else{if(S(),0===m.data.length)return;l+=e.data.length,t.preview&&l>t.preview?n.abort():(m.data=m.data[0],b(m,c))}}}function g(e){return"greedy"===t.skipEmptyLines?""===e.join("").trim():1===e.length&&0===e[0].length}function S(){if(m&&r&&(T("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+s.DefaultDelimiter+"'"),r=!1),t.skipEmptyLines)for(var e=0;e<m.data.length;e++)g(m.data[e])&&m.data.splice(e--,1);return _()&&function(){if(m)if(Array.isArray(m.data[0])){for(var e=0;_()&&e<m.data.length;e++)m.data[e].forEach(n);m.data.splice(0,1)}else m.data.forEach(n);function n(e,n){E(t.transformHeader)&&(e=t.transformHeader(e,n)),y.push(e)}}(),function(){if(!m||!t.header&&!t.dynamicTyping&&!t.transform)return m;function e(e,n){var r,i=t.header?{}:[];for(r=0;r<e.length;r++){var o=r,s=e[r];t.header&&(o=r>=y.length?"__parsed_extra":y[r]),t.transform&&(s=t.transform(s,o)),s=x(o,s),"__parsed_extra"===o?(i[o]=i[o]||[],i[o].push(s)):i[o]=s}return t.header&&(r>y.length?T("FieldMismatch","TooManyFields","Too many fields: expected "+y.length+" fields but parsed "+r,f+n):r<y.length&&T("FieldMismatch","TooFewFields","Too few fields: expected "+y.length+" fields but parsed "+r,f+n)),i}var n=1;return!m.data.length||Array.isArray(m.data[0])?(m.data=m.data.map(e),n=m.data.length):m.data=e(m.data,0),t.header&&m.meta&&(m.meta.fields=y),f+=n,m}()}function _(){return t.header&&0===y.length}function x(e,n){return r=e,t.dynamicTypingFunction&&void 0===t.dynamicTyping[r]&&(t.dynamicTyping[r]=t.dynamicTypingFunction(r)),!0===(t.dynamicTyping[r]||t.dynamicTyping)?"true"===n||"TRUE"===n||"false"!==n&&"FALSE"!==n&&(function(t){if(a.test(t)){var e=parseFloat(t);if(o<e&&e<i)return!0}return!1}(n)?parseFloat(n):u.test(n)?new Date(n):""===n?null:n):n;var r}function T(t,e,n,r){var i={type:t,code:e,message:n};void 0!==r&&(i.row=r),m.errors.push(i)}this.parse=function(i,o,a){var u=t.quoteChar||'"';if(t.newline||(t.newline=function(t,e){t=t.substring(0,1048576);var n=new RegExp(p(e)+"([^]*?)"+p(e),"gm"),r=(t=t.replace(n,"")).split("\r"),i=t.split("\n"),o=1<i.length&&i[0].length<r[0].length;if(1===r.length||o)return"\n";for(var s=0,a=0;a<r.length;a++)"\n"===r[a][0]&&s++;return s>=r.length/2?"\r\n":"\r"}(i,u)),r=!1,t.delimiter)E(t.delimiter)&&(t.delimiter=t.delimiter(i),m.meta.delimiter=t.delimiter);else{var c=function(e,n,r,i,o){var a,u,c,l;o=o||[",","\t","|",";",s.RECORD_SEP,s.UNIT_SEP];for(var f=0;f<o.length;f++){var d=o[f],h=0,p=0,y=0;c=void 0;for(var m=new v({comments:i,delimiter:d,newline:n,preview:10}).parse(e),b=0;b<m.data.length;b++)if(r&&g(m.data[b]))y++;else{var w=m.data[b].length;p+=w,void 0!==c?0<w&&(h+=Math.abs(w-c),c=w):c=w}0<m.data.length&&(p/=m.data.length-y),(void 0===u||h<=u)&&(void 0===l||l<p)&&1.99<p&&(u=h,a=d,l=p)}return{successful:!!(t.delimiter=a),bestDelimiter:a}}(i,t.newline,t.skipEmptyLines,t.comments,t.delimitersToGuess);c.successful?t.delimiter=c.bestDelimiter:(r=!0,t.delimiter=s.DefaultDelimiter),m.meta.delimiter=t.delimiter}var l=w(t);return t.preview&&t.header&&l.preview++,e=i,n=new v(l),m=n.parse(e,o,a),S(),d?{meta:{paused:!0}}:m||{meta:{paused:!1}}},this.paused=function(){return d},this.pause=function(){d=!0,n.abort(),e=E(t.chunk)?"":e.substring(n.getCharIndex())},this.resume=function(){c.streamer._halted?(d=!1,c.streamer.parseChunk(e,!0)):setTimeout(c.resume,3)},this.aborted=function(){return h},this.abort=function(){h=!0,n.abort(),m.meta.aborted=!0,E(t.complete)&&t.complete(m),e=""}}function p(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function v(t){var e,n=(t=t||{}).delimiter,r=t.newline,i=t.comments,o=t.step,a=t.preview,u=t.fastMode,c=e=void 0===t.quoteChar?'"':t.quoteChar;if(void 0!==t.escapeChar&&(c=t.escapeChar),("string"!=typeof n||-1<s.BAD_DELIMITERS.indexOf(n))&&(n=","),i===n)throw new Error("Comment character same as delimiter");!0===i?i="#":("string"!=typeof i||-1<s.BAD_DELIMITERS.indexOf(i))&&(i=!1),"\n"!==r&&"\r"!==r&&"\r\n"!==r&&(r="\n");var l=0,f=!1;this.parse=function(t,s,d){if("string"!=typeof t)throw new Error("Input must be a string");var h=t.length,v=n.length,y=r.length,m=i.length,b=E(o),w=[],g=[],S=[],_=l=0;if(!t)return M();if(u||!1!==u&&-1===t.indexOf(e)){for(var x=t.split(r),T=0;T<x.length;T++){if(S=x[T],l+=S.length,T!==x.length-1)l+=r.length;else if(d)return M();if(!i||S.substring(0,m)!==i){if(b){if(w=[],j(S.split(n)),q(),f)return M()}else j(S.split(n));if(a&&a<=T)return w=w.slice(0,a),M(!0)}}return M()}for(var A=t.indexOf(n,l),P=t.indexOf(r,l),O=new RegExp(p(c)+p(e),"g"),R=t.indexOf(e,l);;)if(t[l]!==e)if(i&&0===S.length&&t.substring(l,l+m)===i){if(-1===P)return M();l=P+y,P=t.indexOf(r,l),A=t.indexOf(n,l)}else if(-1!==A&&(A<P||-1===P))S.push(t.substring(l,A)),l=A+v,A=t.indexOf(n,l);else{if(-1===P)break;if(S.push(t.substring(l,P)),F(P+y),b&&(q(),f))return M();if(a&&w.length>=a)return M(!0)}else for(R=l,l++;;){if(-1===(R=t.indexOf(e,R+1)))return d||g.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:w.length,index:l}),N();if(R===h-1)return N(t.substring(l,R).replace(O,e));if(e!==c||t[R+1]!==c){if(e===c||0===R||t[R-1]!==c){-1!==A&&A<R+1&&(A=t.indexOf(n,R+1)),-1!==P&&P<R+1&&(P=t.indexOf(r,R+1));var C=I(-1===P?A:Math.min(A,P));if(t[R+1+C]===n){S.push(t.substring(l,R).replace(O,e)),t[l=R+1+C+v]!==e&&(R=t.indexOf(e,l)),A=t.indexOf(n,l),P=t.indexOf(r,l);break}var k=I(P);if(t.substring(R+1+k,R+1+k+y)===r){if(S.push(t.substring(l,R).replace(O,e)),F(R+1+k+y),A=t.indexOf(n,l),R=t.indexOf(e,l),b&&(q(),f))return M();if(a&&w.length>=a)return M(!0);break}g.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:w.length,index:l}),R++}}else R++}return N();function j(t){w.push(t),_=l}function I(e){var n=0;if(-1!==e){var r=t.substring(R+1,e);r&&""===r.trim()&&(n=r.length)}return n}function N(e){return d||(void 0===e&&(e=t.substring(l)),S.push(e),l=h,j(S),b&&q()),M()}function F(e){l=e,j(S),S=[],P=t.indexOf(r,l)}function M(t){return{data:w,errors:g,meta:{delimiter:n,linebreak:r,aborted:f,truncated:!!t,cursor:_+(s||0)}}}function q(){o(M()),w=[],g=[]}},this.abort=function(){f=!0},this.getCharIndex=function(){return l}}function y(t){var e=t.data,n=i[e.workerId],r=!1;if(e.error)n.userError(e.error,e.file);else if(e.results&&e.results.data){var o={abort:function(){r=!0,m(e.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:b,resume:b};if(E(n.userStep)){for(var s=0;s<e.results.data.length&&(n.userStep({data:e.results.data[s],errors:e.results.errors,meta:e.results.meta},o),!r);s++);delete e.results}else E(n.userChunk)&&(n.userChunk(e.results,o,e.file),delete e.results)}e.finished&&!r&&m(e.workerId,e.results)}function m(t,e){var n=i[t];E(n.userComplete)&&n.userComplete(e),n.terminate(),delete i[t]}function b(){throw new Error("Not implemented.")}function w(t){if("object"!=typeof t||null===t)return t;var e=Array.isArray(t)?[]:{};for(var n in t)e[n]=w(t[n]);return e}function g(t,e){return function(){t.apply(e,arguments)}}function E(t){return"function"==typeof t}return r&&(e.onmessage=function(t){var n=t.data;if(void 0===s.WORKER_ID&&n&&(s.WORKER_ID=n.workerId),"string"==typeof n.input)e.postMessage({workerId:s.WORKER_ID,results:s.parse(n.input,n.config),finished:!0});else if(e.File&&n.input instanceof File||n.input instanceof Object){var r=s.parse(n.input,n.config);r&&e.postMessage({workerId:s.WORKER_ID,results:r,finished:!0})}}),(c.prototype=Object.create(u.prototype)).constructor=c,(l.prototype=Object.create(u.prototype)).constructor=l,(f.prototype=Object.create(f.prototype)).constructor=f,(d.prototype=Object.create(u.prototype)).constructor=d,s}();var Pt={},Ot={CustomError:void 0};class Rt extends Error{get name(){return this.constructor.name}}Ot.CustomError=Rt;var Ct={ExpectedError:void 0};const kt=Ot;class jt extends kt.CustomError{}Ct.ExpectedError=jt;var It={AssertionError:void 0};const Nt=Ot;class Ft extends Nt.CustomError{}It.AssertionError=Ft;var Mt={};Mt.normalize=void 0,Mt.normalize=function(t){var e;return{name:t.name,message:t.message,stack:null!==(e=t.stack)&&void 0!==e?e:null}};var qt={refute:void 0};const Ut=Ct;qt.refute=function(t,e){if(t)throw new Ut.ExpectedError(e)};var Bt={assert:void 0};const Lt=It;Bt.assert=function(t,e){if(!t)throw new Lt.AssertionError(e)},function(t){var n=e&&e.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=e&&e.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};r(Ot,t),r(Ct,t),r(It,t),r(Mt,t),r(qt,t),r(Bt,t)}(Pt),Tt.csv=void 0;const Dt=r,Jt=At.exports,zt=Pt;function Gt(t){const e=Object.keys(t[0]);return(0,Jt.unparse)({data:t,fields:e})}Tt.csv=function(t){return(0,zt.assert)(t.length>0,"payload must be a non-empty array"),e=>{const n=new Dt.Headers(e.headers);return n.set("Content-Type","text/csv"),{...e,headers:n,payload:Gt(t)}}};var Wt={};Wt.signal=void 0,Wt.signal=function(t){return e=>({...e,signal:t})};var Ht={header:void 0};const $t=r;Ht.header=function(t,e){return n=>{const r=new $t.Headers(n.headers);return r.set(t,e),{...n,headers:r}}};var Vt={appendHeader:void 0};const Kt=r;Vt.appendHeader=function(t,e){return n=>{const r=new Kt.Headers(n.headers);return r.append(t,e),{...n,headers:r}}};var Qt={headers:void 0};const Yt=r;Qt.headers=function(t){return e=>{const n=new Yt.Headers(e.headers);for(const[e,r]of Object.entries(t))n.set(e,r);return{...e,headers:n}}};var Zt={accept:void 0};const Xt=Vt;Zt.accept=function(t){return(0,Xt.appendHeader)("Accept",t)};var te={};te.host=void 0,te.host=function(t){return e=>{const n=new URL(e.url.href);return n.host=t,{...e,url:n}}};var ee={};ee.port=void 0,ee.port=function(t){return e=>{const n=new URL(e.url.href);return n.port=t.toString(),{...e,url:n}}};var ne={};ne.pathname=void 0,ne.pathname=function(t){return e=>{const n=new URL(e.url.href);return n.pathname=t,{...e,url:n}}};var re={};re.search=void 0,re.search=function(t){return e=>{const n=new URL(e.url.href);return n.search=t,{...e,url:n}}};var ie={};ie.searchParam=void 0,ie.searchParam=function(t,e){return n=>{const r=new URL(n.url.href),i=new URLSearchParams(r.searchParams);return i.set(t,e.toString()),r.search=i.toString(),{...n,url:r}}};var oe={};oe.searchParams=void 0,oe.searchParams=function(t){return e=>{const n=new URL(e.url.href),r=new URLSearchParams(n.searchParams);for(const[e,n]of Object.entries(t))r.set(e,n.toString());return n.search=r.toString(),{...e,url:n}}};var se={};se.appendSearchParam=void 0,se.appendSearchParam=function(t,e){return n=>{const r=new URL(n.url.href),i=new URLSearchParams(r.searchParams);return i.append(t,e.toString()),r.search=i.toString(),{...n,url:r}}};var ae={formDataField:void 0};const ue=r,ce=w;ae.formDataField=function(t,e){return n=>{const r=n.payload instanceof ue.FormData?function(t){const e=new ue.FormData;for(const[n,r]of t.entries())e.append(n,r);return e}(n.payload):new ue.FormData;return(0,ce.isArray)(e)?e.forEach((e=>r.append(t,e))):r.append(t,e),{...n,payload:r}}};var le={},fe={exports:{}};"undefined"!=typeof self?self:"undefined"!=typeof window&&window,fe.exports=function(){var t,e="3.7.2",n=e,r="function"==typeof atob,i="function"==typeof btoa,o="function"==typeof Buffer,s="function"==typeof TextDecoder?new TextDecoder:void 0,a="function"==typeof TextEncoder?new TextEncoder:void 0,u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c=Array.prototype.slice.call(u),l=(t={},c.forEach((function(e,n){return t[e]=n})),t),f=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,d=String.fromCharCode.bind(String),h="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):function(t,e){return void 0===e&&(e=function(t){return t}),new Uint8Array(Array.prototype.slice.call(t,0).map(e))},p=function(t){return t.replace(/=/g,"").replace(/[+\/]/g,(function(t){return"+"==t?"-":"_"}))},v=function(t){return t.replace(/[^A-Za-z0-9\+\/]/g,"")},y=function(t){for(var e,n,r,i,o="",s=t.length%3,a=0;a<t.length;){if((n=t.charCodeAt(a++))>255||(r=t.charCodeAt(a++))>255||(i=t.charCodeAt(a++))>255)throw new TypeError("invalid character found");o+=c[(e=n<<16|r<<8|i)>>18&63]+c[e>>12&63]+c[e>>6&63]+c[63&e]}return s?o.slice(0,s-3)+"===".substring(s):o},m=i?function(t){return btoa(t)}:o?function(t){return Buffer.from(t,"binary").toString("base64")}:y,b=o?function(t){return Buffer.from(t).toString("base64")}:function(t){for(var e=4096,n=[],r=0,i=t.length;r<i;r+=e)n.push(d.apply(null,t.subarray(r,r+e)));return m(n.join(""))},w=function(t,e){return void 0===e&&(e=!1),e?p(b(t)):b(t)},g=function(t){if(t.length<2)return(e=t.charCodeAt(0))<128?t:e<2048?d(192|e>>>6)+d(128|63&e):d(224|e>>>12&15)+d(128|e>>>6&63)+d(128|63&e);var e=65536+1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320);return d(240|e>>>18&7)+d(128|e>>>12&63)+d(128|e>>>6&63)+d(128|63&e)},E=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,S=function(t){return t.replace(E,g)},_=o?function(t){return Buffer.from(t,"utf8").toString("base64")}:a?function(t){return b(a.encode(t))}:function(t){return m(S(t))},x=function(t,e){return void 0===e&&(e=!1),e?p(_(t)):_(t)},T=function(t){return x(t,!0)},A=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,P=function(t){switch(t.length){case 4:var e=((7&t.charCodeAt(0))<<18|(63&t.charCodeAt(1))<<12|(63&t.charCodeAt(2))<<6|63&t.charCodeAt(3))-65536;return d(55296+(e>>>10))+d(56320+(1023&e));case 3:return d((15&t.charCodeAt(0))<<12|(63&t.charCodeAt(1))<<6|63&t.charCodeAt(2));default:return d((31&t.charCodeAt(0))<<6|63&t.charCodeAt(1))}},O=function(t){return t.replace(A,P)},R=function(t){if(t=t.replace(/\s+/g,""),!f.test(t))throw new TypeError("malformed base64.");t+="==".slice(2-(3&t.length));for(var e,n,r,i="",o=0;o<t.length;)e=l[t.charAt(o++)]<<18|l[t.charAt(o++)]<<12|(n=l[t.charAt(o++)])<<6|(r=l[t.charAt(o++)]),i+=64===n?d(e>>16&255):64===r?d(e>>16&255,e>>8&255):d(e>>16&255,e>>8&255,255&e);return i},C=r?function(t){return atob(v(t))}:o?function(t){return Buffer.from(t,"base64").toString("binary")}:R,k=o?function(t){return h(Buffer.from(t,"base64"))}:function(t){return h(C(t),(function(t){return t.charCodeAt(0)}))},j=function(t){return k(N(t))},I=o?function(t){return Buffer.from(t,"base64").toString("utf8")}:s?function(t){return s.decode(k(t))}:function(t){return O(C(t))},N=function(t){return v(t.replace(/[-_]/g,(function(t){return"-"==t?"+":"/"})))},F=function(t){return I(N(t))},M=function(t){return{value:t,enumerable:!1,writable:!0,configurable:!0}},q=function(){var t=function(t,e){return Object.defineProperty(String.prototype,t,M(e))};t("fromBase64",(function(){return F(this)})),t("toBase64",(function(t){return x(this,t)})),t("toBase64URI",(function(){return x(this,!0)})),t("toBase64URL",(function(){return x(this,!0)})),t("toUint8Array",(function(){return j(this)}))},U=function(){var t=function(t,e){return Object.defineProperty(Uint8Array.prototype,t,M(e))};t("toBase64",(function(t){return w(this,t)})),t("toBase64URI",(function(){return w(this,!0)})),t("toBase64URL",(function(){return w(this,!0)}))},B=function(){q(),U()},L={version:e,VERSION:n,atob:C,atobPolyfill:R,btoa:m,btoaPolyfill:y,fromBase64:F,toBase64:x,encode:x,encodeURI:T,encodeURL:T,utob:S,btou:O,decode:F,isValid:function(t){if("string"!=typeof t)return!1;var e=t.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(e)||!/[^\s0-9a-zA-Z\-_]/.test(e)},fromUint8Array:w,toUint8Array:j,extendString:q,extendUint8Array:U,extendBuiltins:B,Base64:{}};return Object.keys(L).forEach((function(t){return L.Base64[t]=L[t]})),L}(),le.basicAuth=void 0;const de=Ht,he=fe.exports;le.basicAuth=function(t,e){return(0,de.header)("Authorization","Basic "+(0,he.btoa)(`${t}:${e}`))};var pe={bearerAuth:void 0};const ve=Ht;pe.bearerAuth=function(t){return(0,ve.header)("Authorization",`Bearer ${t}`)};var ye={};ye.keepalive=void 0,ye.keepalive=function(t=!0){return e=>({...e,keepalive:t})},function(t){var n=e&&e.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=e&&e.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};r(gt,t),r(Et,t),r(_t,t),r(Tt,t),r(Wt,t),r(Ht,t),r(Vt,t),r(Qt,t),r(Zt,t),r(te,t),r(ee,t),r(ne,t),r(re,t),r(ie,t),r(oe,t),r(se,t),r(ae,t),r(le,t),r(pe,t),r(ye,t)}(wt);var me={},be={},we={},ge=n(Object.freeze({__proto__:null})),Ee={HTTPError:void 0};const Se=Pt;Ee.HTTPError=class extends Se.CustomError{constructor(t,e){super(e),this.code=t}};var _e={},xe={};!function(t){t.ServerError=t.ClientError=t.Redirection=t.Successful=t.Informational=void 0,function(t){t[t.Continue=100]="Continue",t[t.SwitchingProtocol=101]="SwitchingProtocol",t[t.Processing=102]="Processing",t[t.EarlyHints=103]="EarlyHints"}(t.Informational||(t.Informational={})),function(t){t[t.OK=200]="OK",t[t.Created=201]="Created",t[t.Accepted=202]="Accepted",t[t.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",t[t.NoContent=204]="NoContent",t[t.ResetContent=205]="ResetContent",t[t.PartialContent=206]="PartialContent",t[t.MultiStatus=207]="MultiStatus",t[t.AlreadyReported=208]="AlreadyReported",t[t.IMUsed=226]="IMUsed"}(t.Successful||(t.Successful={})),function(t){t[t.MultipleChoice=300]="MultipleChoice",t[t.MovedPermanently=3011]="MovedPermanently",t[t.Found=302]="Found",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect"}(t.Redirection||(t.Redirection={})),function(t){t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.LengthRequired=411]="LengthRequired",t[t.PreconditionFailed=412]="PreconditionFailed",t[t.PayloadTooLarge=413]="PayloadTooLarge",t[t.URITooLong=414]="URITooLong",t[t.UnsupportedMediaType=415]="UnsupportedMediaType",t[t.RangeNotSatisfiable=416]="RangeNotSatisfiable",t[t.ExpectationFailed=417]="ExpectationFailed",t[t.MisdirectedRequest=421]="MisdirectedRequest",t[t.UnprocessableEntity=422]="UnprocessableEntity",t[t.Locked=423]="Locked",t[t.FailedDependency=424]="FailedDependency",t[t.UpgradeRequired=426]="UpgradeRequired",t[t.PreconditionRequired=428]="PreconditionRequired",t[t.TooManyRequests=429]="TooManyRequests",t[t.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",t[t.UnavailableForLegalReasons=451]="UnavailableForLegalReasons"}(t.ClientError||(t.ClientError={})),function(t){t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout",t[t.HTTPVersionNotSupported=505]="HTTPVersionNotSupported",t[t.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",t[t.InsufficientStorage=507]="InsufficientStorage",t[t.LoopDetected=508]="LoopDetected",t[t.NotExtended=510]="NotExtended",t[t.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired"}(t.ServerError||(t.ServerError={}))}(xe),_e.EarlyHints=_e.Processing=_e.SwitchingProtocol=_e.Continue=_e.HTTPInformational=void 0;const Te=xe;class Ae{constructor(t,e){this.code=t,this.message=e}}_e.HTTPInformational=Ae;_e.Continue=class extends Ae{constructor(){super(Te.Informational.Continue,"Continue")}};_e.SwitchingProtocol=class extends Ae{constructor(){super(Te.Informational.SwitchingProtocol,"Switching Protocol")}};_e.Processing=class extends Ae{constructor(){super(Te.Informational.Processing,"Processing")}};_e.EarlyHints=class extends Ae{constructor(){super(Te.Informational.EarlyHints,"Early Hints")}};var Pe={};Pe.IMUsed=Pe.AlreadyReported=Pe.MultiStatus=Pe.PartialContent=Pe.ResetContent=Pe.NoContent=Pe.NonAuthoritativeInformation=Pe.Accepted=Pe.Created=Pe.OK=Pe.HTTPSuccessful=void 0;const Oe=xe;class Re{constructor(t,e){this.code=t,this.message=e}}Pe.HTTPSuccessful=Re;Pe.OK=class extends Re{constructor(){super(Oe.Successful.OK,"OK")}};Pe.Created=class extends Re{constructor(){super(Oe.Successful.Created,"Created")}};Pe.Accepted=class extends Re{constructor(){super(Oe.Successful.Accepted,"Accepted")}};Pe.NonAuthoritativeInformation=class extends Re{constructor(){super(Oe.Successful.NonAuthoritativeInformation,"Non-Authoritative Information")}};Pe.NoContent=class extends Re{constructor(){super(Oe.Successful.NoContent,"No Content")}};Pe.ResetContent=class extends Re{constructor(){super(Oe.Successful.ResetContent,"Reset Content")}};Pe.PartialContent=class extends Re{constructor(){super(Oe.Successful.PartialContent,"Partial Content")}};Pe.MultiStatus=class extends Re{constructor(){super(Oe.Successful.MultiStatus,"Multi-Status")}};Pe.AlreadyReported=class extends Re{constructor(){super(Oe.Successful.AlreadyReported,"Already Reported")}};Pe.IMUsed=class extends Re{constructor(){super(Oe.Successful.IMUsed,"IM Used")}};var Ce={};Ce.PermanentRedirect=Ce.TemporaryRedirect=Ce.NotModified=Ce.SeeOther=Ce.Found=Ce.MovedPermanently=Ce.MultipleChoice=Ce.HTTPRedirection=void 0;const ke=xe;class je{constructor(t,e){this.code=t,this.message=e}}Ce.HTTPRedirection=je;Ce.MultipleChoice=class extends je{constructor(){super(ke.Redirection.MultipleChoice,"Multiple Choice")}};Ce.MovedPermanently=class extends je{constructor(){super(ke.Redirection.MovedPermanently,"Moved Permanently")}};Ce.Found=class extends je{constructor(){super(ke.Redirection.Found,"Found")}};Ce.SeeOther=class extends je{constructor(){super(ke.Redirection.SeeOther,"See Other")}};Ce.NotModified=class extends je{constructor(){super(ke.Redirection.NotModified,"Not Modified")}};Ce.TemporaryRedirect=class extends je{constructor(){super(ke.Redirection.TemporaryRedirect,"Temporary Redirect")}};Ce.PermanentRedirect=class extends je{constructor(){super(ke.Redirection.PermanentRedirect,"Permanent Redirect")}};var Ie={};Ie.UnavailableForLegalReasons=Ie.RequestHeaderFieldsTooLarge=Ie.TooManyRequests=Ie.PreconditionRequired=Ie.UpgradeRequired=Ie.FailedDependency=Ie.Locked=Ie.UnprocessableEntity=Ie.MisdirectedRequest=Ie.ExpectationFailed=Ie.RangeNotSatisfiable=Ie.UnsupportedMediaType=Ie.URITooLong=Ie.PayloadTooLarge=Ie.PreconditionFailed=Ie.LengthRequired=Ie.Gone=Ie.Conflict=Ie.RequestTimeout=Ie.ProxyAuthenticationRequired=Ie.NotAcceptable=Ie.MethodNotAllowed=Ie.NotFound=Ie.Forbidden=Ie.Unauthorized=Ie.BadRequest=Ie.HTTPClientError=void 0;const Ne=Ee,Fe=xe;class Me extends Ne.HTTPError{}Ie.HTTPClientError=Me;Ie.BadRequest=class extends Me{constructor(t){super(Fe.ClientError.BadRequest,null!=t?t:"Bad Request")}};Ie.Unauthorized=class extends Me{constructor(t){super(Fe.ClientError.Unauthorized,null!=t?t:"Unauthorized")}};Ie.Forbidden=class extends Me{constructor(t){super(Fe.ClientError.Forbidden,null!=t?t:"Forbidden")}};Ie.NotFound=class extends Me{constructor(t){super(Fe.ClientError.NotFound,null!=t?t:"Not Found")}};Ie.MethodNotAllowed=class extends Me{constructor(t){super(Fe.ClientError.MethodNotAllowed,null!=t?t:"Method Not Allowed")}};Ie.NotAcceptable=class extends Me{constructor(t){super(Fe.ClientError.NotAcceptable,null!=t?t:"Not Acceptable")}};Ie.ProxyAuthenticationRequired=class extends Me{constructor(t){super(Fe.ClientError.ProxyAuthenticationRequired,null!=t?t:"Proxy Authentication Required")}};Ie.RequestTimeout=class extends Me{constructor(t){super(Fe.ClientError.RequestTimeout,null!=t?t:"Request Timeout")}};Ie.Conflict=class extends Me{constructor(t){super(Fe.ClientError.Conflict,null!=t?t:"Conflict")}};Ie.Gone=class extends Me{constructor(t){super(Fe.ClientError.Gone,null!=t?t:"Gone")}};Ie.LengthRequired=class extends Me{constructor(t){super(Fe.ClientError.LengthRequired,null!=t?t:"Length Required")}};Ie.PreconditionFailed=class extends Me{constructor(t){super(Fe.ClientError.PreconditionFailed,null!=t?t:"Precondition Failed")}};Ie.PayloadTooLarge=class extends Me{constructor(t){super(Fe.ClientError.PayloadTooLarge,null!=t?t:"Payload Too Large")}};Ie.URITooLong=class extends Me{constructor(t){super(Fe.ClientError.URITooLong,null!=t?t:"URI Too Long")}};Ie.UnsupportedMediaType=class extends Me{constructor(t){super(Fe.ClientError.UnsupportedMediaType,null!=t?t:"Unsupported Media Type")}};Ie.RangeNotSatisfiable=class extends Me{constructor(t){super(Fe.ClientError.RangeNotSatisfiable,null!=t?t:"Range Not Satisfiable")}};Ie.ExpectationFailed=class extends Me{constructor(t){super(Fe.ClientError.ExpectationFailed,null!=t?t:"Expectation Failed")}};Ie.MisdirectedRequest=class extends Me{constructor(t){super(Fe.ClientError.MisdirectedRequest,null!=t?t:"Misdirected Request")}};Ie.UnprocessableEntity=class extends Me{constructor(t){super(Fe.ClientError.UnprocessableEntity,null!=t?t:"Unprocessable Entity")}};Ie.Locked=class extends Me{constructor(t){super(Fe.ClientError.Locked,null!=t?t:"Locked")}};Ie.FailedDependency=class extends Me{constructor(t){super(Fe.ClientError.FailedDependency,null!=t?t:"Failed Dependency")}};Ie.UpgradeRequired=class extends Me{constructor(t){super(Fe.ClientError.UpgradeRequired,null!=t?t:"Upgrade Required")}};Ie.PreconditionRequired=class extends Me{constructor(t){super(Fe.ClientError.PreconditionRequired,null!=t?t:"Precondition Required")}};Ie.TooManyRequests=class extends Me{constructor(t){super(Fe.ClientError.TooManyRequests,null!=t?t:"Too Many Requests")}};Ie.RequestHeaderFieldsTooLarge=class extends Me{constructor(t){super(Fe.ClientError.RequestHeaderFieldsTooLarge,null!=t?t:"Request Header Fields Too Large")}};Ie.UnavailableForLegalReasons=class extends Me{constructor(t){super(Fe.ClientError.UnavailableForLegalReasons,null!=t?t:"Unavailable For Legal Reasons")}};var qe={};qe.NetworkAuthenticationRequired=qe.NotExtended=qe.LoopDetected=qe.InsufficientStorage=qe.VariantAlsoNegotiates=qe.HTTPVersionNotSupported=qe.GatewayTimeout=qe.ServiceUnavailable=qe.BadGateway=qe.NotImplemented=qe.InternalServerError=qe.HTTPServerError=void 0;const Ue=Ee,Be=xe;class Le extends Ue.HTTPError{}qe.HTTPServerError=Le;qe.InternalServerError=class extends Le{constructor(t){super(Be.ServerError.InternalServerError,null!=t?t:"Internal Server Error")}};qe.NotImplemented=class extends Le{constructor(t){super(Be.ServerError.NotImplemented,null!=t?t:"Not Implemented")}};qe.BadGateway=class extends Le{constructor(t){super(Be.ServerError.BadGateway,null!=t?t:"Bad Gateway")}};qe.ServiceUnavailable=class extends Le{constructor(t){super(Be.ServerError.ServiceUnavailable,null!=t?t:"Service Unavailable")}};qe.GatewayTimeout=class extends Le{constructor(t){super(Be.ServerError.GatewayTimeout,null!=t?t:"Gateway Timeout")}};qe.HTTPVersionNotSupported=class extends Le{constructor(t){super(Be.ServerError.HTTPVersionNotSupported,null!=t?t:"HTTP Version Not Supported")}};qe.VariantAlsoNegotiates=class extends Le{constructor(t){super(Be.ServerError.VariantAlsoNegotiates,null!=t?t:"Variant Also Negotiates")}};qe.InsufficientStorage=class extends Le{constructor(t){super(Be.ServerError.InsufficientStorage,null!=t?t:"Insufficient Storage")}};qe.LoopDetected=class extends Le{constructor(t){super(Be.ServerError.LoopDetected,null!=t?t:"Loop Detected")}};qe.NotExtended=class extends Le{constructor(t){super(Be.ServerError.NotExtended,null!=t?t:"Not Extended")}};qe.NetworkAuthenticationRequired=class extends Le{constructor(t){super(Be.ServerError.NetworkAuthenticationRequired,null!=t?t:"Network Authentication Required")}};var De={};De.fromCode=De.UnknownHTTPStatusError=void 0;const Je=_e,ze=Pe,Ge=Ce,We=Ie,He=qe;class $e extends Error{constructor(t){super(`The HTTP status code ${t} is unknown`),this.name=this.constructor.name}}De.UnknownHTTPStatusError=$e,De.fromCode=function(t,e){switch(t){case 100:return new Je.Continue;case 101:return new Je.SwitchingProtocol;case 102:return new Je.Processing;case 103:return new Je.EarlyHints;case 200:return new ze.OK;case 201:return new ze.Created;case 202:return new ze.Accepted;case 203:return new ze.NonAuthoritativeInformation;case 204:return new ze.NoContent;case 205:return new ze.ResetContent;case 206:return new ze.PartialContent;case 207:return new ze.MultiStatus;case 208:return new ze.AlreadyReported;case 226:return new ze.IMUsed;case 300:return new Ge.MultipleChoice;case 301:return new Ge.MovedPermanently;case 302:return new Ge.Found;case 303:return new Ge.SeeOther;case 304:return new Ge.NotModified;case 307:return new Ge.TemporaryRedirect;case 308:return new Ge.PermanentRedirect;case 400:return new We.BadRequest(e);case 401:return new We.Unauthorized(e);case 403:return new We.Forbidden(e);case 404:return new We.NotFound(e);case 405:return new We.MethodNotAllowed(e);case 406:return new We.NotAcceptable(e);case 407:return new We.ProxyAuthenticationRequired(e);case 408:return new We.RequestTimeout(e);case 409:return new We.Conflict(e);case 410:return new We.Gone(e);case 411:return new We.LengthRequired(e);case 412:return new We.PreconditionFailed(e);case 413:return new We.PayloadTooLarge(e);case 414:return new We.URITooLong(e);case 415:return new We.UnsupportedMediaType(e);case 416:return new We.RangeNotSatisfiable(e);case 417:return new We.ExpectationFailed(e);case 421:return new We.MisdirectedRequest(e);case 422:return new We.UnprocessableEntity(e);case 423:return new We.Locked(e);case 424:return new We.FailedDependency(e);case 426:return new We.UpgradeRequired(e);case 428:return new We.PreconditionRequired(e);case 429:return new We.TooManyRequests(e);case 431:return new We.RequestHeaderFieldsTooLarge(e);case 451:return new We.UnavailableForLegalReasons(e);case 500:return new He.InternalServerError(e);case 501:return new He.NotImplemented(e);case 502:return new He.BadGateway(e);case 503:return new He.ServiceUnavailable(e);case 504:return new He.GatewayTimeout(e);case 505:return new He.HTTPVersionNotSupported(e);case 506:return new He.VariantAlsoNegotiates(e);case 507:return new He.InsufficientStorage(e);case 508:return new He.LoopDetected(e);case 510:return new He.NotExtended(e);case 511:return new He.NetworkAuthenticationRequired(e);default:throw new $e(t)}},function(t){var n=e&&e.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=e&&e.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};r(ge,t),r(Ee,t),r(_e,t),r(Pe,t),r(Ce,t),r(Ie,t),r(qe,t),r(De,t)}(we),function(t){t.ok=t.HTTPError=void 0;const e=we;var n=we;Object.defineProperty(t,"HTTPError",{enumerable:!0,get:function(){return n.HTTPError}}),t.ok=async function(t){if(!t.ok){const n=await t.text();throw(0,e.fromCode)(t.status,n)}return t}}(be);var Ve={};Ve.toJSON=void 0,Ve.toJSON=function(t){return t.json()};var Ke={};Ke.toText=void 0,Ke.toText=async function(t,e){if(e){const n=await t.arrayBuffer();return new TextDecoder(e).decode(n)}return await t.text()};var Qe={};Qe.toLines=void 0,Qe.toLines=async function*(t){const e=t.body.pipeThrough(new TextDecoderStream).getReader();let n="";for(;;){const{value:t,done:r}=await e.read();if(r)break;let i=t;for(;i.includes("\n");){const t=i.indexOf("\n");yield i.slice(0,t),i=i.slice(t+1)}n+=i}n&&(yield n)};var Ye={},Ze={},Xe={},tn={},en={},nn={};nn.go=void 0,nn.go=function(t){return t()},function(t){var n=e&&e.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]});(e&&e.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)})(nn,t)}(en),tn.chunkAsync=void 0;const rn=en,on=Pt;tn.chunkAsync=function(t,e){return(0,on.assert)(Number.isInteger(e),"The parameter size must be an integer"),(0,on.assert)(e>0,"The parameter size must be greater than 0"),(0,rn.go)((async function*(){let n=[];for await(const r of t)n.push(r),n.length>=e&&(yield n,n=[]);n.length&&(yield n)}))};var sn={},an={},un={};function cn(t){return Array.isArray(t)}un.isntEmptyArray=un.isEmptyArray=un.isntArray=un.isArray=void 0,un.isArray=cn,un.isntArray=function(t){return!cn(t)},un.isEmptyArray=function(t){return 0===t.length},un.isntEmptyArray=function(t){return 0!==t.length};var ln={},fn={};function dn(t){return null===t}fn.isntNull=fn.isNull=void 0,fn.isNull=dn,fn.isntNull=function(t){return!dn(t)};var hn={};function pn(t){return void 0===t}hn.isntUndefined=hn.isUndefined=void 0,hn.isUndefined=pn,hn.isntUndefined=function(t){return!pn(t)},ln.isntAsyncIterable=ln.isAsyncIterable=void 0;const vn=fn,yn=hn;function mn(t){return(0,vn.isntNull)(t)&&(0,yn.isntUndefined)(t)&&"function"==typeof t[Symbol.asyncIterator]}ln.isAsyncIterable=mn,ln.isntAsyncIterable=function(t){return!mn(t)};var bn={};function wn(t){return"bigint"==typeof t}bn.isntBigInt=bn.isBigInt=void 0,bn.isBigInt=wn,bn.isntBigInt=function(t){return!wn(t)};var gn={};function En(t){return"boolean"==typeof t}gn.isntBoolean=gn.isBoolean=void 0,gn.isBoolean=En,gn.isntBoolean=function(t){return!En(t)};var Sn={},_n={};function xn(t){return"string"==typeof t}_n.isntString=_n.isString=void 0,_n.isString=xn,_n.isntString=function(t){return!xn(t)},Sn.isntChar=Sn.isChar=void 0;const Tn=_n;function An(t){return(0,Tn.isString)(t)&&1===t.length}Sn.isChar=An,Sn.isntChar=function(t){return!An(t)};var Pn={};function On(t){return t instanceof Date}Pn.isntDate=Pn.isDate=void 0,Pn.isDate=On,Pn.isntDate=function(t){return!On(t)};var Rn={};Rn.inEnum=void 0,Rn.inEnum=function(t,e){return Object.values(e).includes(t)};var Cn={};function kn(t){return t instanceof Error}Cn.isntError=Cn.isError=void 0,Cn.isError=kn,Cn.isntError=function(t){return!kn(t)};var jn={};function In(t){return!t}jn.isntFalsy=jn.isFalsy=void 0,jn.isFalsy=In,jn.isntFalsy=function(t){return!In(t)};var Nn={};function Fn(t){return"function"==typeof t}Nn.isntFunction=Nn.isFunction=void 0,Nn.isFunction=Fn,Nn.isntFunction=function(t){return!Fn(t)};var Mn={};Mn.isntIterable=Mn.isIterable=void 0;const qn=fn,Un=hn;function Bn(t){return(0,qn.isntNull)(t)&&(0,Un.isntUndefined)(t)&&"function"==typeof t[Symbol.iterator]}Mn.isIterable=Bn,Mn.isntIterable=function(t){return!Bn(t)};var Ln={},Dn={};function Jn(t){return null!==t&&"object"==typeof t}Dn.isntEmptyObject=Dn.isEmptyObject=Dn.isRecord=Dn.isntObject=Dn.isObject=void 0,Dn.isObject=Jn,Dn.isntObject=function(t){return!Jn(t)},Dn.isRecord=function(t){return Jn(t)},Dn.isEmptyObject=function(t){return 0===Object.keys(t).length},Dn.isntEmptyObject=function(t){return 0!==Object.keys(t).length};var zn={};function Gn(t){return"number"==typeof t}zn.isntNumber=zn.isNumber=void 0,zn.isNumber=Gn,zn.isntNumber=function(t){return!Gn(t)},Ln.isntJsonRpcError=Ln.isJsonRpcError=Ln.isntJsonRpcSuccess=Ln.isJsonRpcSuccess=Ln.isntJsonRpcRequest=Ln.isJsonRpcRequest=Ln.isntJsonRpcNotification=Ln.isJsonRpcNotification=void 0;const Wn=un,Hn=Dn,$n=_n,Vn=zn,Kn=hn;function Qn(t){return(0,$n.isString)(t)||(0,Vn.isNumber)(t)}function Yn(t){return(0,Wn.isArray)(t)||(0,Hn.isObject)(t)}function Zn(t){return(0,Hn.isRecord)(t)&&(0,$n.isString)(t.jsonrpc)&&(0,$n.isString)(t.method)&&(0,Kn.isUndefined)(t.id)&&Yn(t.params)}function Xn(t){return(0,Hn.isRecord)(t)&&(0,$n.isString)(t.jsonrpc)&&(0,$n.isString)(t.method)&&Qn(t.id)&&Yn(t.params)}function tr(t){return(0,Hn.isRecord)(t)&&(0,$n.isString)(t.jsonrpc)&&(0,$n.isString)(t.id)&&(0,Kn.isntUndefined)(t.result)}function er(t){return(0,Hn.isRecord)(t)&&(0,$n.isString)(t.jsonrpc)&&Qn(t.id)&&function(t){return(0,Hn.isRecord)(t)&&(0,Vn.isNumber)(t.code)&&(0,$n.isString)(t.message)&&((0,Kn.isUndefined)(t.data)||(0,Hn.isObject)(t.data))}(t.error)}Ln.isJsonRpcNotification=Zn,Ln.isntJsonRpcNotification=function(t){return!Zn(t)},Ln.isJsonRpcRequest=Xn,Ln.isntJsonRpcRequest=function(t){return!Xn(t)},Ln.isJsonRpcSuccess=tr,Ln.isntJsonRpcSuccess=function(t){return!tr(t)},Ln.isJsonRpcError=er,Ln.isntJsonRpcError=function(t){return!er(t)};var nr={};nr.isntJson=nr.isJson=void 0,nr.isJson=function(t){try{return JSON.stringify(t),!0}catch(t){return!1}},nr.isntJson=function t(e){return!t()};var rr={};rr.isAbsoluteURL=void 0,rr.isAbsoluteURL=function(t){try{return new URL(t),!0}catch(t){return!1}},function(t){var n=e&&e.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=e&&e.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};r(un,t),r(ln,t),r(bn,t),r(gn,t),r(Sn,t),r(Pn,t),r(Rn,t),r(Cn,t),r(jn,t),r(Nn,t),r(Mn,t),r(Ln,t),r(nr,t),r(fn,t),r(zn,t),r(Dn,t),r(_n,t),r(hn,t),r(rr,t)}(an),sn.chunkByAsync=void 0;const ir=an;sn.chunkByAsync=function(t,e){return(0,ir.isAsyncIterable)(t)?async function*(t){let n=[],r=0;for await(const i of t)n.push(i),await e(i,r)&&(yield n,n=[]),r++;n.length&&(yield n)}(t):async function*(t){let n=[],r=0;for(const i of t)n.push(i),await e(i,r)&&(yield n,n=[]),r++;n.length&&(yield n)}(t)};var or={};or.chunkBy=void 0,or.chunkBy=function*(t,e){let n=[],r=0;for(const i of t)n.push(i),e(i,r)&&(yield n,n=[]),r++;n.length&&(yield n)};var sr={chunk:void 0};const ar=en,ur=Pt;sr.chunk=function(t,e){return(0,ur.assert)(Number.isInteger(e),"The parameter size must be an integer"),(0,ur.assert)(e>0,"The parameter size must be greater than 0"),(0,ar.go)((function*(){let n=[];for(const r of t)n.push(r),n.length>=e&&(yield n,n=[]);n.length&&(yield n)}))};var cr={concatAsync:void 0};const lr=an,fr=en;cr.concatAsync=function(t,...e){return(0,fr.go)((async function*(){for(const n of[t,...e])if((0,lr.isAsyncIterable)(n))for await(const t of n)yield t;else for(const t of n)yield t}))};var dr={concat:void 0};const hr=en;dr.concat=function(t,...e){return(0,hr.go)((function*(){for(const n of[t,...e])yield*n}))};var pr={},vr={};vr.copyIterable=vr.copyAsyncIterable=void 0,vr.copyAsyncIterable=async function*(t){for await(const e of t)yield e},vr.copyIterable=function*(t){for(const e of t)yield e},pr.dropAsync=void 0;const yr=en,mr=vr,br=Pt;pr.dropAsync=function(t,e){return(0,br.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,br.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,mr.copyAsyncIterable)(t):(0,yr.go)((async function*(){var n;const r=t[Symbol.asyncIterator]();let i;try{let t;for(;!(({value:t,done:i}=await r.next()),i||e<=0);)e--;for(;!i;)yield t,({value:t,done:i}=await r.next())}finally{i||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}}))};var wr={dropRightAsync:void 0};const gr=en,Er=vr,Sr=Pt;wr.dropRightAsync=function(t,e){return(0,Sr.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Sr.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,Er.copyAsyncIterable)(t):(0,gr.go)((async function*(){const n=(await async function(t){const e=[];for await(const n of t)e.push(n);return e}(t)).slice(0,-e);for(const t of n)yield t}))};var _r={dropRight:void 0};const xr=en,Tr=vr,Ar=Pt;_r.dropRight=function(t,e){return(0,Ar.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Ar.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,Tr.copyIterable)(t):(0,xr.go)((function*(){const n=Array.from(t);yield*n.slice(0,-e)}))};var Pr={dropUntilAsync:void 0};const Or=an;Pr.dropUntilAsync=function(t,e){return(0,Or.isAsyncIterable)(t)?async function*(t){var n;const r=t[Symbol.asyncIterator]();let i;try{let t,o=0;for(;!(({value:t,done:i}=await r.next()),i||await e(t,o++)););for(;!i;)yield t,({value:t,done:i}=await r.next())}finally{i||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}}(t):async function*(t){var n;const r=t[Symbol.iterator]();let i;try{let t,o=0;for(;!(({value:t,done:i}=r.next()),i||await e(t,o++)););for(;!i;)yield t,({value:t,done:i}=r.next())}finally{i||null===(n=r.return)||void 0===n||n.call(r)}}(t)};var Rr={};Rr.dropUntil=void 0,Rr.dropUntil=function*(t,e){var n;const r=t[Symbol.iterator]();let i;try{let t,o=0;for(;!(({value:t,done:i}=r.next()),i||e(t,o++)););for(;!i;)yield t,({value:t,done:i}=r.next())}finally{i||null===(n=r.return)||void 0===n||n.call(r)}};var Cr={drop:void 0};const kr=en,jr=vr,Ir=Pt;Cr.drop=function(t,e){return(0,Ir.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Ir.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,jr.copyIterable)(t):(0,kr.go)((function*(){var n;const r=t[Symbol.iterator]();let i;try{let t;for(;!(({value:t,done:i}=r.next()),i||e<=0);)e--;for(;!i;)yield t,({value:t,done:i}=r.next())}finally{i||null===(n=r.return)||void 0===n||n.call(r)}}))};var Nr={filterAsync:void 0};const Fr=an;Nr.filterAsync=function(t,e){return(0,Fr.isAsyncIterable)(t)?async function*(t){let n=0;for await(const r of t)await e(r,n)&&(yield r),n++}(t):async function*(t){let n=0;for(const r of t)await e(r,n)&&(yield r),n++}(t)};var Mr={};Mr.filter=void 0,Mr.filter=function*(t,e){let n=0;for(const r of t)e(r,n)&&(yield r),n++};var qr={},Ur={},Br={flattenByAsync:void 0};const Lr=an;function Dr(t){return(0,Lr.isIterable)(t)&&(0,Lr.isntChar)(t)}Br.flattenByAsync=function(t,e){return(0,Lr.isAsyncIterable)(t)?async function*(t){const r=1;for await(const i of t)Dr(i)&&await e(i,r)?yield*n(i,r+1):yield i}(t):function(t){return n(t,1)}(t);async function*n(t,r){for(const i of t)Dr(i)&&await e(i,r)?yield*n(i,r+1):yield i}},Ur.flattenDeepAsync=void 0;const Jr=Br,zr=Pt;Ur.flattenDeepAsync=function(t,e=1/0){return(0,zr.assert)(e===1/0||Number.isInteger(e),"The parameter depth must be an integer"),(0,zr.assert)(e>=0,"The parameter depth must be greater than or equal to 0"),(0,Jr.flattenByAsync)(t,((t,n)=>n<=e))},qr.flattenAsync=void 0;const Gr=Ur;qr.flattenAsync=function(t){return(0,Gr.flattenDeepAsync)(t,1)};var Wr={flattenBy:void 0};const Hr=an;Wr.flattenBy=function(t,e){return function*t(n,r){for(const o of n)(0,Hr.isIterable)(i=o)&&(0,Hr.isntChar)(i)&&e(o,r)?yield*t(o,r+1):yield o;var i}(t,1)};var $r={flattenDeep:void 0};const Vr=Wr,Kr=Pt;$r.flattenDeep=function(t,e=1/0){return(0,Kr.assert)(e===1/0||Number.isInteger(e),"The parameter depth must be an integer"),(0,Kr.assert)(e>=0,"The parameter depth must be greater than or equal to 0"),(0,Vr.flattenBy)(t,((t,n)=>n<=e))};var Qr={flatten:void 0};const Yr=$r;Qr.flatten=function(t){return(0,Yr.flattenDeep)(t,1)};var Zr={mapAsync:void 0};const Xr=an;Zr.mapAsync=function(t,e){return(0,Xr.isAsyncIterable)(t)?async function*(t){let n=0;for await(const r of t)yield await e(r,n),n++}(t):async function*(t){let n=0;for(const r of t)yield await e(r,n),n++}(t)};var ti={};ti.map=void 0,ti.map=function*(t,e){let n=0;for(const r of t)yield e(r,n),n++};var ei={repeatAsync:void 0};const ni=en,ri=Pt;ei.repeatAsync=function(t,e){return(0,ri.assert)(e===1/0||Number.isInteger(e),"The parameter times must be an integer"),(0,ri.assert)(e>=0,"The parameter times must be greater than or equal to 0"),e===1/0&&function(){if("production"===process.env.NODE_ENV)return;console.warn("When iterable has no elements and times is Infinity, repeat() will be in dead loop")}(),(0,ni.go)((async function*(){const n=[];if(e>0){for await(const e of t)yield e,n.push(e);e--}for(;e>0;)yield*n,e--}))};var ii={repeat:void 0};const oi=en,si=Pt;ii.repeat=function(t,e){return(0,si.assert)(e===1/0||Number.isInteger(e),"The parameter times must be an integer"),(0,si.assert)(e>=0,"The parameter times must be greater than or equal to 0"),e===1/0&&function(){if("production"===process.env.NODE_ENV)return;console.warn("When iterable has no elements and times is Infinity, repeat() will be in dead loop")}(),(0,oi.go)((function*(){const n=[];if(e>0){for(const e of t)yield e,n.push(e);e--}for(;e>0;)yield*n,e--}))};var ai={sliceAsync:void 0};const ui=en,ci=Pt;ai.sliceAsync=function(t,e,n=1/0){return(0,ci.assert)(Number.isInteger(e),"The parameter start must be an integer"),(0,ci.assert)(e>=0,"The parameter start must be greater than or equal to 0"),(0,ci.assert)(Number.isInteger(n),"The parameter end must be an integer"),(0,ci.assert)(n>=e,"The parameter end must be greater than or equal to start"),(0,ui.go)((async function*(){let r=0;for await(const i of t){if(r>=n)break;r>=e&&(yield i),r++}}))};var li={slice:void 0};const fi=en,di=Pt;li.slice=function(t,e,n=1/0){return(0,di.assert)(Number.isInteger(e),"The parameter start must be an integer"),(0,di.assert)(e>=0,"The parameter start must be greater than or equal to 0"),(0,di.assert)(Number.isInteger(n),"The parameter end must be an integer"),(0,di.assert)(n>=e,"The parameter end must be greater than or equal to start"),(0,fi.go)((function*(){let r=0;for(const i of t){if(r>=n)break;r>=e&&(yield i),r++}}))};var hi={};hi.splitAsync=void 0,hi.splitAsync=async function*(t,e){let n=[];for await(const r of t)r===e?(yield n,n=[]):n.push(r);yield n};var pi={splitByAsync:void 0};const vi=an;pi.splitByAsync=function(t,e){return(0,vi.isAsyncIterable)(t)?async function*(t){let n=[],r=0;for await(const i of t)await e(i,r)?(yield n,n=[]):n.push(i),r++;yield n}(t):async function*(t){let n=[],r=0;for(const i of t)await e(i,r)?(yield n,n=[]):n.push(i),r++;yield n}(t)};var yi={};yi.splitBy=void 0,yi.splitBy=function*(t,e){let n=[],r=0;for(const i of t)e(i,r)?(yield n,n=[]):n.push(i),r++;yield n};var mi={};mi.split=void 0,mi.split=function*(t,e){let n=[];for(const r of t)r===e?(yield n,n=[]):n.push(r);yield n};var bi={takeAsync:void 0};const wi=en,gi=Pt;bi.takeAsync=function(t,e){return(0,gi.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,gi.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,wi.go)((async function*(){if(0!==e)for await(const n of t)if(yield n,0===--e)break}))};var Ei={takeRightAsync:void 0};const Si=en,_i=Pt;Ei.takeRightAsync=function(t,e){return(0,_i.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,_i.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,Si.go)((async function*(){var n;const r=t[Symbol.asyncIterator]();let i;try{const t=[];let o;for(;({value:o,done:i}=await r.next()),!i;)t.push(o),t.length>e&&t.shift();yield*t}finally{i||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}}))};var xi={takeRight:void 0};const Ti=en,Ai=Pt;xi.takeRight=function(t,e){return(0,Ai.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Ai.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,Ti.go)((function*(){var n;const r=t[Symbol.iterator]();let i;try{const t=[];let o;for(;({value:o,done:i}=r.next()),!i;)t.push(o),t.length>e&&t.shift();yield*t}finally{i||null===(n=r.return)||void 0===n||n.call(r)}}))};var Pi={takeUntilAsync:void 0};const Oi=an;Pi.takeUntilAsync=function(t,e){return(0,Oi.isAsyncIterable)(t)?async function*(t){let n=0;for await(const r of t){if(await e(r,n))break;yield r,n++}}(t):async function*(t){let n=0;for(const r of t){if(await e(r,n))break;yield r,n++}}(t)};var Ri={};Ri.takeUntil=void 0,Ri.takeUntil=function*(t,e){let n=0;for(const r of t){if(e(r,n))break;yield r,n++}};var Ci={take:void 0};const ki=en,ji=Pt;Ci.take=function(t,e){return(0,ji.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,ji.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,ki.go)((function*(){if(0!==e)for(const n of t)if(yield n,0===--e)break}))};var Ii={tapAsync:void 0};const Ni=an;Ii.tapAsync=function(t,e){return(0,Ni.isAsyncIterable)(t)?async function*(t){let n=0;for await(const r of t)await e(r,n),yield r,n++}(t):async function*(t){let n=0;for(const r of t)await e(r,n),yield r,n++}(t)};var Fi={};Fi.tap=void 0,Fi.tap=function*(t,e){let n=0;for(const r of t)e(r,n),yield r,n++};var Mi={};Mi.toAsyncIterable=void 0,Mi.toAsyncIterable=async function*(t){for(const e of t)yield e};var qi={};qi.transformAsync=void 0,qi.transformAsync=async function*(t,e){yield*e(t)};var Ui={};Ui.transform=void 0,Ui.transform=function*(t,e){yield*e(t)};var Bi={};Bi.uniqAsync=void 0,Bi.uniqAsync=async function*(t){const e=new Set;for await(const n of t)e.has(n)||(yield n,e.add(n))};var Li={uniqByAsync:void 0};const Di=an;Li.uniqByAsync=function(t,e){return(0,Di.isAsyncIterable)(t)?async function*(t){const n=new Set;let r=0;for await(const i of t){const t=await e(i,r);n.has(t)||(yield i,n.add(t)),r++}}(t):async function*(t){const n=new Set;let r=0;for(const i of t){const t=await e(i,r);n.has(t)||(yield i,n.add(t)),r++}}(t)};var Ji={};Ji.uniqBy=void 0,Ji.uniqBy=function*(t,e){const n=new Set;let r=0;for(const i of t){const t=e(i,r);n.has(t)||(yield i,n.add(t)),r++}};var zi={};zi.uniq=void 0,zi.uniq=function*(t){const e=new Set;for(const n of t)e.has(n)||(yield n,e.add(n))};var Gi={zipAsync:void 0};const Wi=an;var Hi;!function(t){t[t.Sync=0]="Sync",t[t.Async=1]="Async"}(Hi||(Hi={})),Gi.zipAsync=function(t,...e){return async function*(...t){var e,n,r,i;const o=t.length,s=t.map((t=>(0,Wi.isAsyncIterable)(t)?[Hi.Async,t[Symbol.asyncIterator]()]:[Hi.Sync,t[Symbol.iterator]()])),a=s.map((()=>!1));try{for(;;){const t=new Array(o);for(let e=0;e<o;e++){const[n,r]=s[e];let i;if(i=n===Hi.Async?await r.next():r.next(),i.done)return void(a[e]=!0);t[e]=i.value}yield t}}finally{const t=s.filter(((t,e)=>!a[e]));for(const[o,s]of t)o===Hi.Async?await(null===(n=(e=s).return)||void 0===n?void 0:n.call(e)):null===(i=(r=s).return)||void 0===i||i.call(r)}}(t,...e)};var $i={};$i.zip=void 0,$i.zip=function(t,...e){return function*(...t){const e=t.length,n=t.map((t=>t[Symbol.iterator]())),r=n.map((()=>!1));try{for(;;){const t=new Array(e);for(let i=0;i<e;i++){const{value:e,done:o}=n[i].next();if(o)return void(r[i]=!0);t[i]=e}yield t}}finally{n.filter(((t,e)=>!r[e])).forEach((t=>{var e;return null===(e=t.return)||void 0===e?void 0:e.call(t)}))}}(t,...e)},function(t){var n=e&&e.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=e&&e.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};r(tn,t),r(sn,t),r(or,t),r(sr,t),r(cr,t),r(dr,t),r(pr,t),r(wr,t),r(_r,t),r(Pr,t),r(Rr,t),r(Cr,t),r(Nr,t),r(Mr,t),r(qr,t),r(Br,t),r(Wr,t),r(Ur,t),r($r,t),r(Qr,t),r(Zr,t),r(ti,t),r(ei,t),r(ii,t),r(ai,t),r(li,t),r(hi,t),r(pi,t),r(yi,t),r(mi,t),r(bi,t),r(Ei,t),r(xi,t),r(Pi,t),r(Ri,t),r(Ci,t),r(Ii,t),r(Fi,t),r(Mi,t),r(qi,t),r(Ui,t),r(Bi,t),r(Li,t),r(Ji,t),r(zi,t),r(Gi,t),r($i,t)}(Xe);var Vi={},Ki={};Ki.consume=void 0,Ki.consume=function(t,e){return e(t)};var Qi={eachAsync:void 0};const Yi=an;Qi.eachAsync=function(t,e){return(0,Yi.isAsyncIterable)(t)?async function(t){let n=0;for await(const r of t)await e(r,n),n++}(t):async function(t){let n=0;for(const r of t)await e(r,n),n++}(t)};var Zi={};Zi.each=void 0,Zi.each=function(t,e){let n=0;for(const r of t)e(r,n),n++};var Xi={everyAsync:void 0};const to=an;Xi.everyAsync=function(t,e){return(0,to.isAsyncIterable)(t)?async function(t){let n=0;for await(const r of t){if(!await e(r,n))return!1;n++}return!0}(t):async function(t){let n=0;for(const r of t){if(!await e(r,n))return!1;n++}return!0}(t)};var eo={};eo.every=void 0,eo.every=function(t,e){let n=0;for(const r of t){if(!e(r,n))return!1;n++}return!0};var no={findAsync:void 0};const ro=an;no.findAsync=function(t,e){return(0,ro.isAsyncIterable)(t)?async function(t){let n=0;for await(const r of t){if(await e(r,n))return r;n++}return}(t):async function(t){let n=0;for(const r of t){if(await e(r,n))return r;n++}return}(t)};var io={};io.find=void 0,io.find=function(t,e){let n=0;for(const r of t){if(e(r,n))return r;n++}};var oo={};oo.firstAsync=void 0,oo.firstAsync=async function(t){for await(const e of t)return e};var so={};so.first=void 0,so.first=function(t){for(const e of t)return e};var ao={};ao.includesAsync=void 0,ao.includesAsync=async function(t,e){for await(const n of t)if(n===e)return!0;return!1};var uo={};uo.includes=void 0,uo.includes=function(t,e){for(const n of t)if(n===e)return!0;return!1};var co={};co.matchAsync=void 0,co.matchAsync=async function(t,e){const n=e.length;let r=0;for await(const i of t)if(i===e[r]&&r++,r===n)return!0;return!1};var lo={};lo.match=void 0,lo.match=function(t,e){const n=e.length;let r=0;for(const i of t)if(i===e[r]&&r++,r===n)return!0;return!1};var fo={reduceAsync:void 0};const ho=an;fo.reduceAsync=function(t,e,n){return(0,ho.isUndefined)(n)?function(t,e){return(0,ho.isAsyncIterable)(t)?n(t):r(t);async function n(t){var n;const r=t[Symbol.asyncIterator]();let i;try{let t,s=await o(r),a=1;for(;({value:t,done:i}=await r.next()),!i;)s=await e(s,t,a++);return s}finally{i||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}async function o(t){const e=await t.next();if(e.done)throw i=!0,new Error("Reduce of empty iterable with no initial value");return e.value}}async function r(t){var n;const r=t[Symbol.iterator]();let i;try{let t,s=o(r),a=1;for(;({value:t,done:i}=r.next()),!i;)s=await e(s,t,a++);return s}finally{i||null===(n=r.return)||void 0===n||n.call(r)}function o(t){const e=t.next();if(e.done)throw i=!0,new Error("Reduce of empty iterable with no initial value");return e.value}}}(t,e):function(t,e,n){return(0,ho.isAsyncIterable)(t)?i(t):r(t);async function r(t){let r=n,i=0;for(const n of t)r=await e(r,n,i++);return r}async function i(t){let r=n,i=0;for await(const n of t)r=await e(r,n,i++);return r}}(t,e,n)};var po={reduce:void 0};const vo=an;po.reduce=function(t,e,n){return(0,vo.isUndefined)(n)?function(t,e){var n;const r=t[Symbol.iterator]();let i;try{let t,s=o(r),a=1;for(;({value:t,done:i}=r.next()),!i;)s=e(s,t,a++);return s}finally{i||null===(n=r.return)||void 0===n||n.call(r)}function o(t){const e=t.next();if(e.done)throw i=!0,new Error("Reduce of empty iterable with no initial value");return e.value}}(t,e):function(t,e,n){let r=n,i=0;for(const n of t)r=e(r,n,i++);return r}(t,e,n)};var yo={someAsync:void 0};const mo=an;yo.someAsync=function(t,e){return(0,mo.isAsyncIterable)(t)?async function(t){let n=0;for await(const r of t){if(await e(r,n))return!0;n++}return!1}(t):async function(t){let n=0;for(const r of t){if(await e(r,n))return!0;n++}return!1}(t)};var bo={};bo.some=void 0,bo.some=function(t,e){let n=0;for(const r of t){if(e(r,n))return!0;n++}return!1};var wo={};wo.lastAsync=void 0,wo.lastAsync=async function(t){var e;const n=t[Symbol.asyncIterator]();let r;try{let t,i;for(;({value:t,done:r}=await n.next()),!r;)i=t;return i}finally{r||await(null===(e=n.return)||void 0===e?void 0:e.call(n))}};var go={};go.last=void 0,go.last=function(t){var e;const n=t[Symbol.iterator]();let r;try{let t,i;for(;({value:t,done:r}=n.next()),!r;)i=t;return i}finally{r||null===(e=n.return)||void 0===e||e.call(n)}};var Eo={toArrayAsync:void 0};const So=Ki;Eo.toArrayAsync=function(t){return(0,So.consume)(t,(async t=>{const e=[];for await(const n of t)e.push(n);return e}))};var _o={toArray:void 0};const xo=Ki;_o.toArray=function(t){return(0,xo.consume)(t,(t=>Array.from(t)))};var To={toSetAsync:void 0};const Ao=Ki;To.toSetAsync=function(t){return(0,Ao.consume)(t,(async t=>{const e=new Set;for await(const n of t)e.add(n);return e}))};var Po={toSet:void 0};const Oo=Ki;Po.toSet=function(t){return(0,Oo.consume)(t,(t=>new Set(t)))},function(t){var n=e&&e.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=e&&e.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};r(Ki,t),r(Qi,t),r(Zi,t),r(Xi,t),r(eo,t),r(no,t),r(io,t),r(oo,t),r(so,t),r(ao,t),r(uo,t),r(co,t),r(lo,t),r(fo,t),r(po,t),r(yo,t),r(bo,t),r(wo,t),r(go,t),r(Eo,t),r(_o,t),r(To,t),r(Po,t)}(Vi),function(t){var n=e&&e.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=e&&e.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};r(Xe,t),r(Vi,t)}(Ze),Ye.toNDJSON=void 0;const Ro=Ze,Co=Qe;Ye.toNDJSON=function(t){return(0,Ro.mapAsync)((0,Co.toLines)(t),(t=>JSON.parse(t)))};var ko={toCSV:void 0};const jo=At.exports;ko.toCSV=async function(t){const e=await t.text();return(0,jo.parse)(e,{header:!0,skipEmptyLines:"greedy"}).data},function(t){var n=e&&e.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=e&&e.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};r(be,t),r(Ve,t),r(Ke,t),r(Qe,t),r(Ye,t),r(ko,t)}(me);var Io,No={},Fo={},Mo={},qo={},Uo=e&&e.__classPrivateFieldSet||function(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n},Bo=e&&e.__classPrivateFieldGet||function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};qo.Box=void 0;qo.Box=class{constructor(t){Io.set(this,void 0),Uo(this,Io,t,"f")}set(t){Uo(this,Io,t,"f")}get(){return Bo(this,Io,"f")}},Io=new WeakMap;var Lo={};Lo.convertArrayToCons=Lo.convertConsToArray=void 0,Lo.convertConsToArray=function t([e,n]){return null===n?[e]:[e,...t(n)]},Lo.convertArrayToCons=function t([e,...n]){return[e,n.length?t(n):null]};var Do,Jo={},zo=e&&e.__classPrivateFieldGet||function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};Jo.Emitter=void 0;class Go{constructor(){Do.set(this,new Map)}get[(Do=new WeakMap,Symbol.toStringTag)](){return this.constructor.name}on(t,e){zo(this,Do,"f").has(t)||zo(this,Do,"f").set(t,new Set);zo(this,Do,"f").get(t).add(e)}off(t,e){if(!zo(this,Do,"f").has(t))return;const n=zo(this,Do,"f").get(t);n.delete(e),0===n.size&&zo(this,Do,"f").delete(t)}emit(t,e){if(!zo(this,Do,"f").has(t))return;zo(this,Do,"f").get(t).forEach((t=>t(e)))}}Jo.Emitter=Go;var Wo,Ho={},$o=e&&e.__classPrivateFieldGet||function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};Ho.HashMap=void 0;class Vo{constructor(t){this.hash=t,Wo.set(this,new Map)}get[(Wo=new WeakMap,Symbol.toStringTag)](){return this.constructor.name}get size(){return $o(this,Wo,"f").size}set(t,e){return $o(this,Wo,"f").set(this.hash(t),e),this}has(t){return $o(this,Wo,"f").has(this.hash(t))}get(t){return $o(this,Wo,"f").get(this.hash(t))}delete(t){return $o(this,Wo,"f").delete(this.hash(t))}clear(){$o(this,Wo,"f").clear()}}Ho.HashMap=Vo;var Ko,Qo={},Yo=e&&e.__classPrivateFieldGet||function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};Qo.HashSet=void 0;class Zo{constructor(t){this.hash=t,Ko.set(this,new Map)}get[(Ko=new WeakMap,Symbol.toStringTag)](){return this.constructor.name}get size(){return Yo(this,Ko,"f").size}[Symbol.iterator](){return Yo(this,Ko,"f").values()}add(t){return Yo(this,Ko,"f").set(this.hash(t),t),this}delete(t){return Yo(this,Ko,"f").delete(this.hash(t))}has(t){return Yo(this,Ko,"f").has(this.hash(t))}clear(){Yo(this,Ko,"f").clear()}values(){return Yo(this,Ko,"f").values()}}Qo.HashSet=Zo;var Xo,ts={},es=e&&e.__classPrivateFieldGet||function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};ts.Queue=void 0;class ns{constructor(){Xo.set(this,[])}get[(Xo=new WeakMap,Symbol.toStringTag)](){return this.constructor.name}get size(){return es(this,Xo,"f").length}empty(){es(this,Xo,"f").length=0}enqueue(...t){es(this,Xo,"f").push(...t)}dequeue(){return es(this,Xo,"f").shift()}remove(t){let e;for(;(e=es(this,Xo,"f").indexOf(t))>=0;)es(this,Xo,"f").splice(e,1)}}ts.Queue=ns;var rs,is,os={},ss=e&&e.__classPrivateFieldSet||function(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n},as=e&&e.__classPrivateFieldGet||function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};os.LRUMap=void 0;const us=Pt,cs=Ze;class ls{constructor(t){rs.set(this,void 0),is.set(this,new Map),(0,us.assert)(Number.isInteger(t),"The parameter limit must be an integer"),(0,us.assert)(t>0,"The parameter limit must be a positive value"),ss(this,rs,t,"f")}get[(rs=new WeakMap,is=new WeakMap,Symbol.toStringTag)](){return this.constructor.name}get size(){return as(this,is,"f").size}set(t,e){return as(this,is,"f").has(t)?this.updateItem(t,e):(as(this,is,"f").size===as(this,rs,"f")&&as(this,is,"f").delete(this.getColdestKey()),as(this,is,"f").set(t,e)),this}has(t){return as(this,is,"f").has(t)}get(t){if(!this.has(t))return;const e=as(this,is,"f").get(t);return this.updateItem(t,e),e}delete(t){return as(this,is,"f").delete(t)}clear(){as(this,is,"f").clear()}updateItem(t,e){as(this,is,"f").delete(t),as(this,is,"f").set(t,e)}getColdestKey(){return(0,cs.first)(as(this,is,"f").keys())}}os.LRUMap=ls;var fs={},ds={},hs={},ps={},vs={};vs.random=void 0,vs.random=function(t,e){return Math.random()*(e-t)+t};var ys={};ys.randomInt=void 0,ys.randomInt=function(t,e){return t=Math.ceil(t),e=Math.floor(e),Math.floor(Math.random()*(e-t))+t};var ms={};ms.randomIntInclusive=void 0,ms.randomIntInclusive=function(t,e){return t=Math.ceil(t),e=Math.floor(e),Math.floor(Math.random()*(e-t+1))+t},function(t){var n=e&&e.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=e&&e.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};r(vs,t),r(ys,t),r(ms,t)}(ps),hs.calculateExponentialBackoffTimeout=void 0;const bs=ps;hs.calculateExponentialBackoffTimeout=function({baseTimeout:t,retries:e,maxTimeout:n=1/0,factor:r=2,jitter:i=!0}){const o=Math.min(r**e*t,n);return i?(0,bs.randomIntInclusive)(0,o):o};var ws={};ws.setTimeout=void 0,ws.setTimeout=function(t,e){const n=globalThis.setTimeout(e,t);return()=>clearTimeout(n)};var gs={setSchedule:void 0};const Es=ws;gs.setSchedule=function(t,e){const n=t-Date.now();return(0,Es.setTimeout)(n,e)};var Ss={};Ss.setInterval=void 0,Ss.setInterval=function(t,e){const n=globalThis.setInterval(e,t);return()=>clearInterval(n)};var _s={setImmediate:void 0};const xs=ws;_s.setImmediate=function(t){if(globalThis.setImmediate){const e=globalThis.setImmediate(t);return()=>clearImmediate(e)}return(0,xs.setTimeout)(0,t)};var Ts={setTimeoutLoop:void 0};const As=ws;Ts.setTimeoutLoop=function(t,e){let n=!1,r=(0,As.setTimeout)(t,(async function i(){await e(),n||(r=(0,As.setTimeout)(t,i))}));return()=>{n=!0,r()}};var Ps={setDynamicTimeoutLoop:void 0};const Os=ws;Ps.setDynamicTimeoutLoop=function(t,e){let n=!1,r=(0,Os.setTimeout)(t,(async function i(){const o=Date.now();await e();const s=Date.now()-o;n||(r=(0,Os.setTimeout)(Math.max(t-s,0),i))}));return()=>{n=!0,r()}},function(t){var n=e&&e.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=e&&e.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};r(hs,t),r(ws,t),r(gs,t),r(Ss,t),r(_s,t),r(Ts,t),r(Ps,t)}(ds);var Rs,Cs,ks=e&&e.__classPrivateFieldGet||function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)},js=e&&e.__classPrivateFieldSet||function(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n};fs.ExpirableMap=void 0;const Is=ds;class Ns{constructor(){Rs.set(this,new Map),Cs.set(this,void 0),this.itemMetadataSortedByExpirationTime=[]}get[(Rs=new WeakMap,Cs=new WeakMap,Symbol.toStringTag)](){return this.constructor.name}get size(){return ks(this,Rs,"f").size}set(t,e,n){return ks(this,Rs,"f").set(t,e),this.removeItemMetadata(t),this.addItemMetadata(t,Date.now()+n),this}has(t){return ks(this,Rs,"f").has(t)}get(t){return ks(this,Rs,"f").get(t)}delete(t){const e=ks(this,Rs,"f").delete(t);if(e){const e=this.itemMetadataSortedByExpirationTime.findIndex((e=>e.key===t));this.itemMetadataSortedByExpirationTime.splice(e,1),0===e&&this.rescheduleClearTimeout()}return e}clear(){var t;ks(this,Rs,"f").clear(),null===(t=ks(this,Cs,"f"))||void 0===t||t.call(this),this.itemMetadataSortedByExpirationTime=[]}addItemMetadata(t,e){for(let n=0;n<this.itemMetadataSortedByExpirationTime.length;n++){if(e<this.itemMetadataSortedByExpirationTime[n].expirationTime)return this.itemMetadataSortedByExpirationTime.splice(n,0,{key:t,expirationTime:e}),void(0===n&&this.rescheduleClearTimeout())}this.itemMetadataSortedByExpirationTime.push({key:t,expirationTime:e}),1===this.itemMetadataSortedByExpirationTime.length&&this.rescheduleClearTimeout()}removeItemMetadata(t){const e=this.itemMetadataSortedByExpirationTime.findIndex((e=>e.key===t));e>=0&&(this.itemMetadataSortedByExpirationTime.splice(e,1),0===e&&this.rescheduleClearTimeout())}clearExpiredItems(t){const e=this.itemMetadataSortedByExpirationTime.findIndex((e=>e.expirationTime>t));(e>=0?this.itemMetadataSortedByExpirationTime.splice(0,e):this.itemMetadataSortedByExpirationTime.splice(0,this.itemMetadataSortedByExpirationTime.length)).forEach((t=>ks(this,Rs,"f").delete(t.key)))}rescheduleClearTimeout(){var t;if(null===(t=ks(this,Cs,"f"))||void 0===t||t.call(this),this.itemMetadataSortedByExpirationTime.length>0){const t=this.itemMetadataSortedByExpirationTime[0];if(Number.isFinite(t.expirationTime)){const e=(0,Is.setSchedule)(t.expirationTime,(()=>{this.clearExpiredItems(Date.now()),this.rescheduleClearTimeout()}));js(this,Cs,(()=>{e(),js(this,Cs,void 0,"f")}),"f")}}}}fs.ExpirableMap=Ns;var Fs,Ms,qs,Us={},Bs=e&&e.__classPrivateFieldSet||function(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n},Ls=e&&e.__classPrivateFieldGet||function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};Us.TLRUMap=void 0;const Ds=Pt,Js=Ze,zs=ds;class Gs{constructor(t){Fs.set(this,void 0),Ms.set(this,new Map),qs.set(this,void 0),this.itemMetadataSortedByExpirationTime=[],(0,Ds.assert)(Number.isInteger(t),"The parameter limit must be an integer"),(0,Ds.assert)(t>0,"The parameter limit must be a positive value"),Bs(this,Fs,t,"f")}get[(Fs=new WeakMap,Ms=new WeakMap,qs=new WeakMap,Symbol.toStringTag)](){return this.constructor.name}get size(){return Ls(this,Ms,"f").size}set(t,e,n){return Ls(this,Ms,"f").has(t)?(this.updateItem(t,e),this.removeItemMetadata(t),this.addItemMetadata(t,Date.now()+n)):(Ls(this,Ms,"f").size===Ls(this,Fs,"f")&&Ls(this,Ms,"f").delete(this.getColdestKey()),Ls(this,Ms,"f").set(t,e),this.addItemMetadata(t,Date.now()+n)),this}has(t){return Ls(this,Ms,"f").has(t)}get(t){if(this.has(t)){const e=Ls(this,Ms,"f").get(t);return this.updateItem(t,e),e}}delete(t){const e=Ls(this,Ms,"f").delete(t);if(e){const e=this.itemMetadataSortedByExpirationTime.findIndex((e=>e.key===t));this.itemMetadataSortedByExpirationTime.splice(e,1),0===e&&this.rescheduleClearTimeout()}return e}clear(){var t;Ls(this,Ms,"f").clear(),null===(t=Ls(this,qs,"f"))||void 0===t||t.call(this),this.itemMetadataSortedByExpirationTime=[]}updateItem(t,e){Ls(this,Ms,"f").delete(t),Ls(this,Ms,"f").set(t,e)}addItemMetadata(t,e){for(let n=0;n<this.itemMetadataSortedByExpirationTime.length;n++){if(e<this.itemMetadataSortedByExpirationTime[n].expirationTime)return this.itemMetadataSortedByExpirationTime.splice(n,0,{key:t,expirationTime:e}),void(0===n&&this.rescheduleClearTimeout())}this.itemMetadataSortedByExpirationTime.push({key:t,expirationTime:e}),1===this.itemMetadataSortedByExpirationTime.length&&this.rescheduleClearTimeout()}removeItemMetadata(t){const e=this.itemMetadataSortedByExpirationTime.findIndex((e=>e.key===t));e>=0&&(this.itemMetadataSortedByExpirationTime.splice(e,1),0===e&&this.rescheduleClearTimeout())}clearExpiredItems(t){const e=this.itemMetadataSortedByExpirationTime.findIndex((e=>e.expirationTime>t));(e>=0?this.itemMetadataSortedByExpirationTime.splice(0,e):this.itemMetadataSortedByExpirationTime.splice(0,this.itemMetadataSortedByExpirationTime.length)).forEach((t=>Ls(this,Ms,"f").delete(t.key)))}rescheduleClearTimeout(){var t;if(null===(t=Ls(this,qs,"f"))||void 0===t||t.call(this),this.itemMetadataSortedByExpirationTime.length>0){const t=this.itemMetadataSortedByExpirationTime[0];if(Number.isFinite(t.expirationTime)){const e=(0,zs.setSchedule)(t.expirationTime,(()=>{this.clearExpiredItems(Date.now()),this.rescheduleClearTimeout()}));Bs(this,qs,(()=>{e(),Bs(this,qs,void 0,"f")}),"f")}}}getColdestKey(){return(0,Js.first)(Ls(this,Ms,"f").keys())}}Us.TLRUMap=Gs;var Ws,Hs={},$s=e&&e.__classPrivateFieldGet||function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};Hs.TrieMap=void 0;const Vs=Ze;class Ks{constructor(t){this.value=t,this.children=new Map}}class Qs{constructor(){Ws.set(this,new Ks)}get[(Ws=new WeakMap,Symbol.toStringTag)](){return this.constructor.name}set(t,e){let n=$s(this,Ws,"f");for(const e of t)n.children.has(e)||n.children.set(e,new Ks),n=n.children.get(e);return n.value=e,this}has(t){let e=$s(this,Ws,"f");for(const n of t){if(!e.children.has(n))return!1;e=e.children.get(n)}return void 0!==e.value}get(t){let e=$s(this,Ws,"f");for(const n of t){if(!e.children.has(n))return;e=e.children.get(n)}return e.value}delete(t){const e=[];let n=$s(this,Ws,"f");for(const r of t){if(!n.children.has(r))return!1;e.push(n),n=n.children.get(r)}if(delete n.value,0===n.children.size)for(const[n,r]of(0,Vs.toArray)((0,Vs.zip)(t,e)).reverse())if(r.children.delete(n),0!==r.children.size)break;return!0}}Hs.TrieMap=Qs;var Ys,Zs={},Xs=e&&e.__classPrivateFieldSet||function(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n},ta=e&&e.__classPrivateFieldGet||function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};Zs.BadEventError=Zs.FiniteStateMachine=void 0;const ea=Pt;Zs.FiniteStateMachine=class{constructor(t,e){this.schema=t,Ys.set(this,void 0),Xs(this,Ys,e,"f")}get state(){return ta(this,Ys,"f")}matches(t){return ta(this,Ys,"f")===t}send(t){if(!(t in this.schema[this.state]))throw new na(this.state,t);Xs(this,Ys,this.schema[this.state][t],"f")}},Ys=new WeakMap;class na extends ea.CustomError{constructor(t,e){super(`State ${t} cannot react to event ${e}`)}}Zs.BadEventError=na;var ra={},ia=function(t,e){return(ia=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};
|
|
16
|
-
/*! *****************************************************************************
|
|
17
|
-
Copyright (c) Microsoft Corporation.
|
|
18
|
-
|
|
19
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
20
|
-
purpose with or without fee is hereby granted.
|
|
21
|
-
|
|
22
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
23
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
24
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
25
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
26
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
27
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
28
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
29
|
-
***************************************************************************** */function oa(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}ia(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function sa(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{u(r.next(t))}catch(t){o(t)}}function a(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}u((r=r.apply(t,e||[])).next())}))}function aa(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=s.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}function ua(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function ca(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function la(t,e){for(var n=0,r=e.length,i=t.length;n<r;n++,i++)t[i]=e[n];return t}function fa(t){return this instanceof fa?(this.v=t,this):new fa(t)}function da(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(t,e||[]),o=[];return r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r;function s(t){i[t]&&(r[t]=function(e){return new Promise((function(n,r){o.push([t,e,n,r])>1||a(t,e)}))})}function a(t,e){try{(n=i[t](e)).value instanceof fa?Promise.resolve(n.value.v).then(u,c):l(o[0][2],n)}catch(t){l(o[0][3],t)}var n}function u(t){a("next",t)}function c(t){a("throw",t)}function l(t,e){t(e),o.shift(),o.length&&a(o[0][0],o[0][1])}}function ha(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=ua(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,i){(function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)})(r,i,(e=t[n](e)).done,e.value)}))}}}function pa(t){return"function"==typeof t}function va(t){var e=t((function(t){Error.call(t),t.stack=(new Error).stack}));return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var ya=va((function(t){return function(e){t(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map((function(t,e){return e+1+") "+t.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=e}}));function ma(t,e){if(t){var n=t.indexOf(e);0<=n&&t.splice(n,1)}}var ba=function(){function t(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._teardowns=null}return t.prototype.unsubscribe=function(){var t,e,n,r,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var s=ua(o),a=s.next();!a.done;a=s.next()){a.value.remove(this)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=s.return)&&e.call(s)}finally{if(t)throw t.error}}else o.remove(this);var u=this.initialTeardown;if(pa(u))try{u()}catch(t){i=t instanceof ya?t.errors:[t]}var c=this._teardowns;if(c){this._teardowns=null;try{for(var l=ua(c),f=l.next();!f.done;f=l.next()){var d=f.value;try{Ea(d)}catch(t){i=null!=i?i:[],t instanceof ya?i=la(la([],ca(i)),ca(t.errors)):i.push(t)}}}catch(t){n={error:t}}finally{try{f&&!f.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}}if(i)throw new ya(i)}},t.prototype.add=function(e){var n;if(e&&e!==this)if(this.closed)Ea(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._teardowns=null!==(n=this._teardowns)&&void 0!==n?n:[]).push(e)}},t.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},t.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},t.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&ma(e,t)},t.prototype.remove=function(e){var n=this._teardowns;n&&ma(n,e),e instanceof t&&e._removeParent(this)},t.EMPTY=function(){var e=new t;return e.closed=!0,e}(),t}(),wa=ba.EMPTY;function ga(t){return t instanceof ba||t&&"closed"in t&&pa(t.remove)&&pa(t.add)&&pa(t.unsubscribe)}function Ea(t){pa(t)?t():t.unsubscribe()}var Sa={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},_a={setTimeout:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=_a.delegate;return((null==n?void 0:n.setTimeout)||setTimeout).apply(void 0,la([],ca(t)))},clearTimeout:function(t){var e=_a.delegate;return((null==e?void 0:e.clearTimeout)||clearTimeout)(t)},delegate:void 0};function xa(t){_a.setTimeout((function(){var e=Sa.onUnhandledError;if(!e)throw t;e(t)}))}function Ta(){}var Aa=Pa("C",void 0,void 0);function Pa(t,e,n){return{kind:t,value:e,error:n}}var Oa=null;function Ra(t){if(Sa.useDeprecatedSynchronousErrorHandling){var e=!Oa;if(e&&(Oa={errorThrown:!1,error:null}),t(),e){var n=Oa,r=n.errorThrown,i=n.error;if(Oa=null,r)throw i}}else t()}function Ca(t){Sa.useDeprecatedSynchronousErrorHandling&&Oa&&(Oa.errorThrown=!0,Oa.error=t)}var ka=function(t){function e(e){var n=t.call(this)||this;return n.isStopped=!1,e?(n.destination=e,ga(e)&&e.add(n)):n.destination=Ma,n}return oa(e,t),e.create=function(t,e,n){return new ja(t,e,n)},e.prototype.next=function(t){this.isStopped?Fa(function(t){return Pa("N",t,void 0)}(t),this):this._next(t)},e.prototype.error=function(t){this.isStopped?Fa(function(t){return Pa("E",void 0,t)}(t),this):(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped?Fa(Aa,this):(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(ba),ja=function(t){function e(e,n,r){var i,o=t.call(this)||this;if(pa(e))i=e;else if(e){var s;i=e.next,n=e.error,r=e.complete,o&&Sa.useDeprecatedNextContext?(s=Object.create(e)).unsubscribe=function(){return o.unsubscribe()}:s=e,i=null==i?void 0:i.bind(s),n=null==n?void 0:n.bind(s),r=null==r?void 0:r.bind(s)}return o.destination={next:i?Ia(i):Ta,error:Ia(null!=n?n:Na),complete:r?Ia(r):Ta},o}return oa(e,t),e}(ka);function Ia(t,e){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];try{t.apply(void 0,la([],ca(e)))}catch(t){Sa.useDeprecatedSynchronousErrorHandling?Ca(t):xa(t)}}}function Na(t){throw t}function Fa(t,e){var n=Sa.onStoppedNotification;n&&_a.setTimeout((function(){return n(t,e)}))}var Ma={closed:!0,next:Ta,error:Na,complete:Ta},qa="function"==typeof Symbol&&Symbol.observable||"@@observable";function Ua(t){return t}function Ba(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return La(t)}function La(t){return 0===t.length?Ua:1===t.length?t[0]:function(e){return t.reduce((function(t,e){return e(t)}),e)}}var Da=function(){function t(t){t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var r,i=this,o=(r=t)&&r instanceof ka||function(t){return t&&pa(t.next)&&pa(t.error)&&pa(t.complete)}(r)&&ga(r)?t:new ja(t,e,n);return Ra((function(){var t=i,e=t.operator,n=t.source;o.add(e?e.call(o,n):n?i._subscribe(o):i._trySubscribe(o))})),o},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},t.prototype.forEach=function(t,e){var n=this;return new(e=Ja(e))((function(e,r){var i;i=n.subscribe((function(e){try{t(e)}catch(t){r(t),null==i||i.unsubscribe()}}),r,e)}))},t.prototype._subscribe=function(t){var e;return null===(e=this.source)||void 0===e?void 0:e.subscribe(t)},t.prototype[qa]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return La(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=Ja(t))((function(t,n){var r;e.subscribe((function(t){return r=t}),(function(t){return n(t)}),(function(){return t(r)}))}))},t.create=function(e){return new t(e)},t}();function Ja(t){var e;return null!==(e=null!=t?t:Sa.Promise)&&void 0!==e?e:Promise}function za(t){return pa(null==t?void 0:t.lift)}function Ga(t){return function(e){if(za(e))return e.lift((function(e){try{return t(e,this)}catch(t){this.error(t)}}));throw new TypeError("Unable to lift unknown Observable type")}}var Wa=function(t){function e(e,n,r,i,o){var s=t.call(this,e)||this;return s.onFinalize=o,s._next=n?function(t){try{n(t)}catch(t){e.error(t)}}:t.prototype._next,s._error=i?function(t){try{i(t)}catch(t){e.error(t)}finally{this.unsubscribe()}}:t.prototype._error,s._complete=r?function(){try{r()}catch(t){e.error(t)}finally{this.unsubscribe()}}:t.prototype._complete,s}return oa(e,t),e.prototype.unsubscribe=function(){var e,n=this.closed;t.prototype.unsubscribe.call(this),!n&&(null===(e=this.onFinalize)||void 0===e||e.call(this))},e}(ka);function Ha(){return Ga((function(t,e){var n=null;t._refCount++;var r=new Wa(e,void 0,void 0,void 0,(function(){if(!t||t._refCount<=0||0<--t._refCount)n=null;else{var r=t._connection,i=n;n=null,!r||i&&r!==i||r.unsubscribe(),e.unsubscribe()}}));t.subscribe(r),r.closed||(n=t.connect())}))}var $a=function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subjectFactory=n,r._subject=null,r._refCount=0,r._connection=null,za(e)&&(r.lift=e.lift),r}return oa(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype._teardown=function(){this._refCount=0;var t=this._connection;this._subject=this._connection=null,null==t||t.unsubscribe()},e.prototype.connect=function(){var t=this,e=this._connection;if(!e){e=this._connection=new ba;var n=this.getSubject();e.add(this.source.subscribe(new Wa(n,void 0,(function(){t._teardown(),n.complete()}),(function(e){t._teardown(),n.error(e)}),(function(){return t._teardown()})))),e.closed&&(this._connection=null,e=ba.EMPTY)}return e},e.prototype.refCount=function(){return Ha()(this)},e}(Da),Va={now:function(){return(Va.delegate||performance).now()},delegate:void 0},Ka={schedule:function(t){var e=requestAnimationFrame,n=cancelAnimationFrame,r=Ka.delegate;r&&(e=r.requestAnimationFrame,n=r.cancelAnimationFrame);var i=e((function(e){n=void 0,t(e)}));return new ba((function(){return null==n?void 0:n(i)}))},requestAnimationFrame:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Ka.delegate;return((null==n?void 0:n.requestAnimationFrame)||requestAnimationFrame).apply(void 0,la([],ca(t)))},cancelAnimationFrame:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Ka.delegate;return((null==n?void 0:n.cancelAnimationFrame)||cancelAnimationFrame).apply(void 0,la([],ca(t)))},delegate:void 0};function Qa(t){var e=Ka.schedule;return new Da((function(n){var r=new ba,i=t||Va,o=i.now(),s=function(a){var u=i.now();n.next({timestamp:t?u:a,elapsed:u-o}),n.closed||r.add(e(s))};return r.add(e(s)),r}))}var Ya,Za=Qa(),Xa=va((function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),tu=function(t){function e(){var e=t.call(this)||this;return e.closed=!1,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return oa(e,t),e.prototype.lift=function(t){var e=new eu(this,this);return e.operator=t,e},e.prototype._throwIfClosed=function(){if(this.closed)throw new Xa},e.prototype.next=function(t){var e=this;Ra((function(){var n,r;if(e._throwIfClosed(),!e.isStopped){var i=e.observers.slice();try{for(var o=ua(i),s=o.next();!s.done;s=o.next()){s.value.next(t)}}catch(t){n={error:t}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}}))},e.prototype.error=function(t){var e=this;Ra((function(){if(e._throwIfClosed(),!e.isStopped){e.hasError=e.isStopped=!0,e.thrownError=t;for(var n=e.observers;n.length;)n.shift().error(t)}}))},e.prototype.complete=function(){var t=this;Ra((function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}}))},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(e){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},e.prototype._innerSubscribe=function(t){var e=this,n=e.hasError,r=e.isStopped,i=e.observers;return n||r?wa:(i.push(t),new ba((function(){return ma(i,t)})))},e.prototype._checkFinalizedStatuses=function(t){var e=this,n=e.hasError,r=e.thrownError,i=e.isStopped;n?t.error(r):i&&t.complete()},e.prototype.asObservable=function(){var t=new Da;return t.source=this,t},e.create=function(t,e){return new eu(t,e)},e}(Da),eu=function(t){function e(e,n){var r=t.call(this)||this;return r.destination=e,r.source=n,r}return oa(e,t),e.prototype.next=function(t){var e,n;null===(n=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===n||n.call(e,t)},e.prototype.error=function(t){var e,n;null===(n=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===n||n.call(e,t)},e.prototype.complete=function(){var t,e;null===(e=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===e||e.call(t)},e.prototype._subscribe=function(t){var e,n;return null!==(n=null===(e=this.source)||void 0===e?void 0:e.subscribe(t))&&void 0!==n?n:wa},e}(tu),nu=function(t){function e(e){var n=t.call(this)||this;return n._value=e,n}return oa(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),e.prototype._subscribe=function(e){var n=t.prototype._subscribe.call(this,e);return!n.closed&&e.next(this._value),n},e.prototype.getValue=function(){var t=this,e=t.hasError,n=t.thrownError,r=t._value;if(e)throw n;return this._throwIfClosed(),r},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(tu),ru={now:function(){return(ru.delegate||Date).now()},delegate:void 0},iu=function(t){function e(e,n,r){void 0===e&&(e=1/0),void 0===n&&(n=1/0),void 0===r&&(r=ru);var i=t.call(this)||this;return i._bufferSize=e,i._windowTime=n,i._timestampProvider=r,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=n===1/0,i._bufferSize=Math.max(1,e),i._windowTime=Math.max(1,n),i}return oa(e,t),e.prototype.next=function(e){var n=this,r=n.isStopped,i=n._buffer,o=n._infiniteTimeWindow,s=n._timestampProvider,a=n._windowTime;r||(i.push(e),!o&&i.push(s.now()+a)),this._trimBuffer(),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var e=this._innerSubscribe(t),n=this._infiniteTimeWindow,r=this._buffer.slice(),i=0;i<r.length&&!t.closed;i+=n?1:2)t.next(r[i]);return this._checkFinalizedStatuses(t),e},e.prototype._trimBuffer=function(){var t=this,e=t._bufferSize,n=t._timestampProvider,r=t._buffer,i=t._infiniteTimeWindow,o=(i?1:2)*e;if(e<1/0&&o<r.length&&r.splice(0,r.length-o),!i){for(var s=n.now(),a=0,u=1;u<r.length&&r[u]<=s;u+=2)a=u;a&&r.splice(0,a+1)}},e}(tu),ou=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._value=null,e._hasValue=!1,e._isComplete=!1,e}return oa(e,t),e.prototype._checkFinalizedStatuses=function(t){var e=this,n=e.hasError,r=e._hasValue,i=e._value,o=e.thrownError,s=e.isStopped,a=e._isComplete;n?t.error(o):(s||a)&&(r&&t.next(i),t.complete())},e.prototype.next=function(t){this.isStopped||(this._value=t,this._hasValue=!0)},e.prototype.complete=function(){var e=this,n=e._hasValue,r=e._value;e._isComplete||(this._isComplete=!0,n&&t.prototype.next.call(this,r),t.prototype.complete.call(this))},e}(tu),su=function(t){function e(e,n){return t.call(this)||this}return oa(e,t),e.prototype.schedule=function(t,e){return this},e}(ba),au={setInterval:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=au.delegate;return((null==n?void 0:n.setInterval)||setInterval).apply(void 0,la([],ca(t)))},clearInterval:function(t){var e=au.delegate;return((null==e?void 0:e.clearInterval)||clearInterval)(t)},delegate:void 0},uu=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r.pending=!1,r}return oa(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this},e.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),au.setInterval(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,e,n){if(void 0===n&&(n=0),null!=n&&this.delay===n&&!1===this.pending)return e;au.clearInterval(e)},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var n,r=!1;try{this.work(t)}catch(t){r=!0,n=t||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),n},e.prototype.unsubscribe=function(){if(!this.closed){var e=this.id,n=this.scheduler,r=n.actions;this.work=this.state=this.scheduler=null,this.pending=!1,ma(r,this),null!=e&&(this.id=this.recycleAsyncId(n,e,null)),this.delay=null,t.prototype.unsubscribe.call(this)}},e}(su),cu=1,lu={};function fu(t){return t in lu&&(delete lu[t],!0)}var du=function(t){var e=cu++;return lu[e]=!0,Ya||(Ya=Promise.resolve()),Ya.then((function(){return fu(e)&&t()})),e},hu=function(t){fu(t)},pu={setImmediate:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=pu.delegate;return((null==n?void 0:n.setImmediate)||du).apply(void 0,la([],ca(t)))},clearImmediate:function(t){var e=pu.delegate;return((null==e?void 0:e.clearImmediate)||hu)(t)},delegate:void 0},vu=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return oa(e,t),e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0?t.prototype.requestAsyncId.call(this,e,n,r):(e.actions.push(this),e._scheduled||(e._scheduled=pu.setImmediate(e.flush.bind(e,void 0))))},e.prototype.recycleAsyncId=function(e,n,r){if(void 0===r&&(r=0),null!=r&&r>0||null==r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,r);0===e.actions.length&&(pu.clearImmediate(n),e._scheduled=void 0)},e}(uu),yu=function(){function t(e,n){void 0===n&&(n=t.now),this.schedulerActionCtor=e,this.now=n}return t.prototype.schedule=function(t,e,n){return void 0===e&&(e=0),new this.schedulerActionCtor(this,t).schedule(n,e)},t.now=ru.now,t}(),mu=function(t){function e(e,n){void 0===n&&(n=yu.now);var r=t.call(this,e,n)||this;return r.actions=[],r._active=!1,r._scheduled=void 0,r}return oa(e,t),e.prototype.flush=function(t){var e=this.actions;if(this._active)e.push(t);else{var n;this._active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this._active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}},e}(yu),bu=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return oa(e,t),e.prototype.flush=function(t){this._active=!0,this._scheduled=void 0;var e,n=this.actions,r=-1;t=t||n.shift();var i=n.length;do{if(e=t.execute(t.state,t.delay))break}while(++r<i&&(t=n.shift()));if(this._active=!1,e){for(;++r<i&&(t=n.shift());)t.unsubscribe();throw e}},e}(mu))(vu),wu=bu,gu=new mu(uu),Eu=gu,Su=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return oa(e,t),e.prototype.schedule=function(e,n){return void 0===n&&(n=0),n>0?t.prototype.schedule.call(this,e,n):(this.delay=n,this.state=e,this.scheduler.flush(this),this)},e.prototype.execute=function(e,n){return n>0||this.closed?t.prototype.execute.call(this,e,n):this._execute(e,n)},e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!=r&&r>0||null==r&&this.delay>0?t.prototype.requestAsyncId.call(this,e,n,r):e.flush(this)},e}(uu),_u=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return oa(e,t),e}(mu))(Su),xu=_u,Tu=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return oa(e,t),e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0?t.prototype.requestAsyncId.call(this,e,n,r):(e.actions.push(this),e._scheduled||(e._scheduled=Ka.requestAnimationFrame((function(){return e.flush(void 0)}))))},e.prototype.recycleAsyncId=function(e,n,r){if(void 0===r&&(r=0),null!=r&&r>0||null==r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,r);0===e.actions.length&&(Ka.cancelAnimationFrame(n),e._scheduled=void 0)},e}(uu),Au=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return oa(e,t),e.prototype.flush=function(t){this._active=!0,this._scheduled=void 0;var e,n=this.actions,r=-1;t=t||n.shift();var i=n.length;do{if(e=t.execute(t.state,t.delay))break}while(++r<i&&(t=n.shift()));if(this._active=!1,e){for(;++r<i&&(t=n.shift());)t.unsubscribe();throw e}},e}(mu))(Tu),Pu=Au,Ou=function(t){function e(e,n){void 0===e&&(e=Ru),void 0===n&&(n=1/0);var r=t.call(this,e,(function(){return r.frame}))||this;return r.maxFrames=n,r.frame=0,r.index=-1,r}return oa(e,t),e.prototype.flush=function(){for(var t,e,n=this.actions,r=this.maxFrames;(e=n[0])&&e.delay<=r&&(n.shift(),this.frame=e.delay,!(t=e.execute(e.state,e.delay))););if(t){for(;e=n.shift();)e.unsubscribe();throw t}},e.frameTimeFactor=10,e}(mu),Ru=function(t){function e(e,n,r){void 0===r&&(r=e.index+=1);var i=t.call(this,e,n)||this;return i.scheduler=e,i.work=n,i.index=r,i.active=!0,i.index=e.index=r,i}return oa(e,t),e.prototype.schedule=function(n,r){if(void 0===r&&(r=0),Number.isFinite(r)){if(!this.id)return t.prototype.schedule.call(this,n,r);this.active=!1;var i=new e(this.scheduler,this.work);return this.add(i),i.schedule(n,r)}return ba.EMPTY},e.prototype.requestAsyncId=function(t,n,r){void 0===r&&(r=0),this.delay=t.frame+r;var i=t.actions;return i.push(this),i.sort(e.sortActions),!0},e.prototype.recycleAsyncId=function(t,e,n){},e.prototype._execute=function(e,n){if(!0===this.active)return t.prototype._execute.call(this,e,n)},e.sortActions=function(t,e){return t.delay===e.delay?t.index===e.index?0:t.index>e.index?1:-1:t.delay>e.delay?1:-1},e}(uu),Cu=new Da((function(t){return t.complete()}));function ku(t){return t&&pa(t.schedule)}function ju(t){return t[t.length-1]}function Iu(t){return pa(ju(t))?t.pop():void 0}function Nu(t){return ku(ju(t))?t.pop():void 0}function Fu(t,e){return"number"==typeof ju(t)?t.pop():e}var Mu=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t};function qu(t){return pa(null==t?void 0:t.then)}function Uu(t){return pa(t[qa])}function Bu(t){return Symbol.asyncIterator&&pa(null==t?void 0:t[Symbol.asyncIterator])}function Lu(t){return new TypeError("You provided "+(null!==t&&"object"==typeof t?"an invalid object":"'"+t+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}var Du,Ju="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function zu(t){return pa(null==t?void 0:t[Ju])}function Gu(t){return da(this,arguments,(function(){var e,n,r;return aa(this,(function(i){switch(i.label){case 0:e=t.getReader(),i.label=1;case 1:i.trys.push([1,,9,10]),i.label=2;case 2:return[4,fa(e.read())];case 3:return n=i.sent(),r=n.value,n.done?[4,fa(void 0)]:[3,5];case 4:return[2,i.sent()];case 5:return[4,fa(r)];case 6:return[4,i.sent()];case 7:return i.sent(),[3,2];case 8:return[3,10];case 9:return e.releaseLock(),[7];case 10:return[2]}}))}))}function Wu(t){return pa(null==t?void 0:t.getReader)}function Hu(t){if(t instanceof Da)return t;if(null!=t){if(Uu(t))return n=t,new Da((function(t){var e=n[qa]();if(pa(e.subscribe))return e.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")}));if(Mu(t))return function(t){return new Da((function(e){for(var n=0;n<t.length&&!e.closed;n++)e.next(t[n]);e.complete()}))}(t);if(qu(t))return e=t,new Da((function(t){e.then((function(e){t.closed||(t.next(e),t.complete())}),(function(e){return t.error(e)})).then(null,xa)}));if(Bu(t))return $u(t);if(zu(t))return function(t){return new Da((function(e){var n,r;try{for(var i=ua(t),o=i.next();!o.done;o=i.next()){var s=o.value;if(e.next(s),e.closed)return}}catch(t){n={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}e.complete()}))}(t);if(Wu(t))return $u(Gu(t))}var e,n;throw Lu(t)}function $u(t){return new Da((function(e){(function(t,e){var n,r,i,o;return sa(this,void 0,void 0,(function(){var s,a;return aa(this,(function(u){switch(u.label){case 0:u.trys.push([0,5,6,11]),n=ha(t),u.label=1;case 1:return[4,n.next()];case 2:if((r=u.sent()).done)return[3,4];if(s=r.value,e.next(s),e.closed)return[2];u.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return a=u.sent(),i={error:a},[3,11];case 6:return u.trys.push([6,,9,10]),r&&!r.done&&(o=n.return)?[4,o.call(n)]:[3,8];case 7:u.sent(),u.label=8;case 8:return[3,10];case 9:if(i)throw i.error;return[7];case 10:return[7];case 11:return e.complete(),[2]}}))}))})(t,e).catch((function(t){return e.error(t)}))}))}function Vu(t,e,n,r,i){void 0===r&&(r=0),void 0===i&&(i=!1);var o=e.schedule((function(){n(),i?t.add(this.schedule(null,r)):this.unsubscribe()}),r);if(t.add(o),!i)return o}function Ku(t,e){return void 0===e&&(e=0),Ga((function(n,r){n.subscribe(new Wa(r,(function(n){return Vu(r,t,(function(){return r.next(n)}),e)}),(function(){return Vu(r,t,(function(){return r.complete()}),e)}),(function(n){return Vu(r,t,(function(){return r.error(n)}),e)})))}))}function Qu(t,e){return void 0===e&&(e=0),Ga((function(n,r){r.add(t.schedule((function(){return n.subscribe(r)}),e))}))}function Yu(t,e){return new Da((function(n){var r;return Vu(n,e,(function(){r=t[Ju](),Vu(n,e,(function(){var t,e,i;try{e=(t=r.next()).value,i=t.done}catch(t){return void n.error(t)}i?n.complete():n.next(e)}),0,!0)})),function(){return pa(null==r?void 0:r.return)&&r.return()}}))}function Zu(t,e){if(!t)throw new Error("Iterable cannot be null");return new Da((function(n){Vu(n,e,(function(){var r=t[Symbol.asyncIterator]();Vu(n,e,(function(){r.next().then((function(t){t.done?n.complete():n.next(t.value)}))}),0,!0)}))}))}function Xu(t,e){if(null!=t){if(Uu(t))return function(t,e){return Hu(t).pipe(Qu(e),Ku(e))}(t,e);if(Mu(t))return function(t,e){return new Da((function(n){var r=0;return e.schedule((function(){r===t.length?n.complete():(n.next(t[r++]),n.closed||this.schedule())}))}))}(t,e);if(qu(t))return function(t,e){return Hu(t).pipe(Qu(e),Ku(e))}(t,e);if(Bu(t))return Zu(t,e);if(zu(t))return Yu(t,e);if(Wu(t))return function(t,e){return Zu(Gu(t),e)}(t,e)}throw Lu(t)}function tc(t,e){return e?Xu(t,e):Hu(t)}function ec(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Nu(t);return tc(t,n)}function nc(t,e){var n=pa(t)?t:function(){return t},r=function(t){return t.error(n())};return new Da(e?function(t){return e.schedule(r,0,t)}:r)}!function(t){t.NEXT="N",t.ERROR="E",t.COMPLETE="C"}(Du||(Du={}));var rc=function(){function t(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}return t.prototype.observe=function(t){return ic(this,t)},t.prototype.do=function(t,e,n){var r=this,i=r.kind,o=r.value,s=r.error;return"N"===i?null==t?void 0:t(o):"E"===i?null==e?void 0:e(s):null==n?void 0:n()},t.prototype.accept=function(t,e,n){var r;return pa(null===(r=t)||void 0===r?void 0:r.next)?this.observe(t):this.do(t,e,n)},t.prototype.toObservable=function(){var t=this,e=t.kind,n=t.value,r=t.error,i="N"===e?ec(n):"E"===e?nc((function(){return r})):"C"===e?Cu:0;if(!i)throw new TypeError("Unexpected notification kind "+e);return i},t.createNext=function(e){return new t("N",e)},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t("C"),t}();function ic(t,e){var n,r,i,o=t,s=o.kind,a=o.value,u=o.error;if("string"!=typeof s)throw new TypeError('Invalid notification, missing "kind"');"N"===s?null===(n=e.next)||void 0===n||n.call(e,a):"E"===s?null===(r=e.error)||void 0===r||r.call(e,u):null===(i=e.complete)||void 0===i||i.call(e)}var oc=va((function(t){return function(){t(this),this.name="EmptyError",this.message="no elements in sequence"}}));var sc=va((function(t){return function(){t(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}})),ac=va((function(t){return function(e){t(this),this.name="NotFoundError",this.message=e}})),uc=va((function(t){return function(e){t(this),this.name="SequenceError",this.message=e}}));function cc(t){return t instanceof Date&&!isNaN(t)}var lc=va((function(t){return function(e){void 0===e&&(e=null),t(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=e}}));function fc(t,e){var n=cc(t)?{first:t}:"number"==typeof t?{each:t}:t,r=n.first,i=n.each,o=n.with,s=void 0===o?dc:o,a=n.scheduler,u=void 0===a?null!=e?e:gu:a,c=n.meta,l=void 0===c?null:c;if(null==r&&null==i)throw new TypeError("No timeout provided.");return Ga((function(t,e){var n,o,a=null,c=0,f=function(t){o=Vu(e,u,(function(){try{n.unsubscribe(),Hu(s({meta:l,lastValue:a,seen:c})).subscribe(e)}catch(t){e.error(t)}}),t)};n=t.subscribe(new Wa(e,(function(t){null==o||o.unsubscribe(),c++,e.next(a=t),i>0&&f(i)}),void 0,void 0,(function(){(null==o?void 0:o.closed)||null==o||o.unsubscribe(),a=null}))),f(null!=r?"number"==typeof r?r:+r-u.now():i)}))}function dc(t){throw new lc(t)}function hc(t,e){return Ga((function(n,r){var i=0;n.subscribe(new Wa(r,(function(n){r.next(t.call(e,n,i++))})))}))}var pc=Array.isArray;function vc(t){return hc((function(e){return function(t,e){return pc(e)?t.apply(void 0,la([],ca(e))):t(e)}(t,e)}))}function yc(t,e,n,r){if(n){if(!ku(n))return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return yc(t,e,r).apply(this,i).pipe(vc(n))};r=n}return r?function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return yc(t,e).apply(this,n).pipe(Qu(r),Ku(r))}:function(){for(var n=this,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var o=new ou,s=!0;return new Da((function(i){var a=o.subscribe(i);if(s){s=!1;var u=!1,c=!1;e.apply(n,la(la([],ca(r)),[function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(t){var r=e.shift();if(null!=r)return void o.error(r)}o.next(1<e.length?e:e[0]),c=!0,u&&o.complete()}])),c&&o.complete(),u=!0}return a}))}}var mc=Array.isArray,bc=Object.getPrototypeOf,wc=Object.prototype,gc=Object.keys;function Ec(t){if(1===t.length){var e=t[0];if(mc(e))return{args:e,keys:null};if((r=e)&&"object"==typeof r&&bc(r)===wc){var n=gc(e);return{args:n.map((function(t){return e[t]})),keys:n}}}var r;return{args:t,keys:null}}function Sc(t,e){return t.reduce((function(t,n,r){return t[n]=e[r],t}),{})}function _c(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Nu(t),r=Iu(t),i=Ec(t),o=i.args,s=i.keys;if(0===o.length)return tc([],n);var a=new Da(xc(o,n,s?function(t){return Sc(s,t)}:Ua));return r?a.pipe(vc(r)):a}function xc(t,e,n){return void 0===n&&(n=Ua),function(r){Tc(e,(function(){for(var i=t.length,o=new Array(i),s=i,a=i,u=function(i){Tc(e,(function(){var u=tc(t[i],e),c=!1;u.subscribe(new Wa(r,(function(t){o[i]=t,c||(c=!0,a--),a||r.next(n(o.slice()))}),(function(){--s||r.complete()})))}),r)},c=0;c<i;c++)u(c)}),r)}}function Tc(t,e,n){t?Vu(n,t,e):e()}function Ac(t,e,n,r,i,o,s,a){var u=[],c=0,l=0,f=!1,d=function(){!f||u.length||c||e.complete()},h=function(t){return c<r?p(t):u.push(t)},p=function(t){o&&e.next(t),c++;var a=!1;Hu(n(t,l++)).subscribe(new Wa(e,(function(t){null==i||i(t),o?h(t):e.next(t)}),(function(){a=!0}),void 0,(function(){if(a)try{c--;for(var t=function(){var t=u.shift();s?Vu(e,s,(function(){return p(t)})):p(t)};u.length&&c<r;)t();d()}catch(t){e.error(t)}})))};return t.subscribe(new Wa(e,h,(function(){f=!0,d()}))),function(){null==a||a()}}function Pc(t,e,n){return void 0===n&&(n=1/0),pa(e)?Pc((function(n,r){return hc((function(t,i){return e(n,t,r,i)}))(Hu(t(n,r)))}),n):("number"==typeof e&&(n=e),Ga((function(e,r){return Ac(e,r,t,n)})))}function Oc(t){return void 0===t&&(t=1/0),Pc(Ua,t)}function Rc(){return Oc(1)}function Cc(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Rc()(tc(t,Nu(t)))}function kc(t){return new Da((function(e){Hu(t()).subscribe(e)}))}var jc={connector:function(){return new tu},resetOnDisconnect:!0};var Ic=["addListener","removeListener"],Nc=["addEventListener","removeEventListener"],Fc=["on","off"];function Mc(t,e){return function(n){return function(r){return t[n](e,r)}}}function qc(t,e,n){void 0===t&&(t=0),void 0===n&&(n=Eu);var r=-1;return null!=e&&(ku(e)?n=e:r=e),new Da((function(e){var i=cc(t)?+t-n.now():t;i<0&&(i=0);var o=0;return n.schedule((function(){e.closed||(e.next(o++),0<=r?this.schedule(void 0,r):e.complete())}),i)}))}function Uc(t,e){return void 0===t&&(t=0),void 0===e&&(e=gu),t<0&&(t=0),qc(t,t,e)}var Bc=new Da(Ta);var Lc=Array.isArray;function Dc(t){return 1===t.length&&Lc(t[0])?t[0]:t}function Jc(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Dc(t);return Ga((function(t,e){var r=la([t],ca(n)),i=function(){if(!e.closed)if(r.length>0){var t=void 0;try{t=Hu(r.shift())}catch(t){return void i()}var n=new Wa(e,void 0,Ta,Ta);e.add(t.subscribe(n)),n.add(i)}else e.complete()};i()}))}function zc(t,e){return function(n,r){return!t.call(e,n,r)}}function Gc(t,e){return Ga((function(n,r){var i=0;n.subscribe(new Wa(r,(function(n){return t.call(e,n,i++)&&r.next(n)})))}))}function Wc(t){return function(e){for(var n=[],r=function(r){n.push(Hu(t[r]).subscribe(new Wa(e,(function(t){if(n){for(var i=0;i<n.length;i++)i!==r&&n[i].unsubscribe();n=null}e.next(t)}))))},i=0;n&&!e.closed&&i<t.length;i++)r(i)}}function Hc(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Iu(t),r=Dc(t);return r.length?new Da((function(t){var e=r.map((function(){return[]})),i=r.map((function(){return!1}));t.add((function(){e=i=null}));for(var o=function(o){Hu(r[o]).subscribe(new Wa(t,(function(r){if(e[o].push(r),e.every((function(t){return t.length}))){var s=e.map((function(t){return t.shift()}));t.next(n?n.apply(void 0,la([],ca(s))):s),e.some((function(t,e){return!t.length&&i[e]}))&&t.complete()}}),(function(){i[o]=!0,!e[o].length&&t.complete()})))},s=0;!t.closed&&s<r.length;s++)o(s);return function(){e=i=null}})):Cu}function $c(t){return Ga((function(e,n){var r=!1,i=null,o=null,s=!1,a=function(){if(null==o||o.unsubscribe(),o=null,r){r=!1;var t=i;i=null,n.next(t)}s&&n.complete()},u=function(){o=null,s&&n.complete()};e.subscribe(new Wa(n,(function(e){r=!0,i=e,o||Hu(t(e)).subscribe(o=new Wa(n,a,u))}),(function(){s=!0,(!r||!o||o.closed)&&n.complete()})))}))}function Vc(t,e,n,r,i){return function(o,s){var a=n,u=e,c=0;o.subscribe(new Wa(s,(function(e){var n=c++;u=a?t(u,e,n):(a=!0,e),r&&s.next(u)}),i&&function(){a&&s.next(u),s.complete()}))}}function Kc(t,e){return Ga(Vc(t,e,arguments.length>=2,!1,!0))}var Qc=function(t,e){return t.push(e),t};function Yc(){return Ga((function(t,e){Kc(Qc,[])(t).subscribe(e)}))}function Zc(t,e){return Ba(Yc(),Pc((function(e){return t(e)})),e?vc(e):Ua)}function Xc(t){return Zc(_c,t)}var tl=Xc;function el(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Iu(t);return n?Ba(el.apply(void 0,la([],ca(t))),vc(n)):Ga((function(e,n){xc(la([e],ca(Dc(t))))(n)}))}function nl(t,e){return pa(e)?Pc(t,e,1):Pc(t,1)}function rl(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Nu(t);return Ga((function(e,r){Rc()(tc(la([e],ca(t)),n)).subscribe(r)}))}var il={connector:function(){return new tu}};function ol(t,e){void 0===e&&(e=il);var n=e.connector;return Ga((function(e,r){var i,o=n();tc(t((i=o,new Da((function(t){return i.subscribe(t)}))))).subscribe(r),r.add(e.subscribe(o))}))}function sl(t){return Ga((function(e,n){var r=!1;e.subscribe(new Wa(n,(function(t){r=!0,n.next(t)}),(function(){r||n.next(t),n.complete()})))}))}function al(t){return t<=0?function(){return Cu}:Ga((function(e,n){var r=0;e.subscribe(new Wa(n,(function(e){++r<=t&&(n.next(e),t<=r&&n.complete())})))}))}function ul(){return Ga((function(t,e){t.subscribe(new Wa(e,Ta))}))}function cl(t){return hc((function(){return t}))}function ll(t,e){return e?function(n){return Cc(e.pipe(al(1),ul()),n.pipe(ll(t)))}:Pc((function(e,n){return t(e,n).pipe(al(1),cl(e))}))}function fl(t,e){return void 0===e&&(e=Ua),t=null!=t?t:dl,Ga((function(n,r){var i,o=!0;n.subscribe(new Wa(r,(function(n){var s=e(n);!o&&t(i,s)||(o=!1,i=s,r.next(n))})))}))}function dl(t,e){return t===e}function hl(t){return void 0===t&&(t=pl),Ga((function(e,n){var r=!1;e.subscribe(new Wa(n,(function(t){r=!0,n.next(t)}),(function(){return r?n.complete():n.error(t())})))}))}function pl(){return new oc}function vl(){return Ga((function(t,e){var n=!1,r=null;t.subscribe(new Wa(e,(function(t){r||(r=Hu(t).subscribe(new Wa(e,void 0,(function(){r=null,n&&e.complete()}))))}),(function(){n=!0,!r&&e.complete()})))}))}var yl=vl;function ml(t,e,n){var r="index"===n;return function(n,i){var o=0;n.subscribe(new Wa(i,(function(s){var a=o++;t.call(e,s,a,n)&&(i.next(r?a:s),i.complete())}),(function(){i.next(r?-1:void 0),i.complete()})))}}var bl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.activeGroups=0,e.teardownAttempted=!1,e}return oa(e,t),e.prototype.unsubscribe=function(){this.teardownAttempted=!0,0===this.activeGroups&&t.prototype.unsubscribe.call(this)},e}(Wa);function wl(t){return t<=0?function(){return Cu}:Ga((function(e,n){var r=[];e.subscribe(new Wa(n,(function(e){r.push(e),t<r.length&&r.shift()}),(function(){var t,e;try{for(var i=ua(r),o=i.next();!o.done;o=i.next()){var s=o.value;n.next(s)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}n.complete()}),void 0,(function(){r=null})))}))}var gl=Pc;function El(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Nu(t),r=Fu(t,1/0);return t=Dc(t),Ga((function(e,i){Oc(r)(tc(la([e],ca(t)),n)).subscribe(i)}))}function Sl(t,e){var n=pa(t)?t:function(){return t};return pa(e)?ol(e,{connector:n}):function(t){return new $a(t,n)}}function _l(t){return Ga((function(e,n){var r=!1,i=null;e.subscribe(new Wa(n,(function(t){r=!0,i=t})));t.subscribe(new Wa(n,(function(){if(r){r=!1;var t=i;i=null,n.next(t)}}),Ta))}))}function xl(t,e){return Ga(Vc(t,e,arguments.length>=2,!0))}function Tl(t){void 0===t&&(t={});var e=t.connector,n=void 0===e?function(){return new tu}:e,r=t.resetOnError,i=void 0===r||r,o=t.resetOnComplete,s=void 0===o||o,a=t.resetOnRefCountZero,u=void 0===a||a;return function(t){var e=null,r=null,o=null,a=0,c=!1,l=!1,f=function(){null==r||r.unsubscribe(),r=null},d=function(){f(),e=o=null,c=l=!1},h=function(){var t=e;d(),null==t||t.unsubscribe()};return Ga((function(t,p){a++,l||c||f();var v=o=null!=o?o:n();p.add((function(){0!==--a||l||c||(r=Al(h,u))})),v.subscribe(p),e||(e=new ja({next:function(t){return v.next(t)},error:function(t){l=!0,f(),r=Al(d,i,t),v.error(t)},complete:function(){c=!0,f(),r=Al(d,s),v.complete()}}),tc(t).subscribe(e))}))(t)}}function Al(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return!0===e?(t(),null):!1===e?null:e.apply(void 0,la([],ca(n))).pipe(al(1)).subscribe((function(){return t()}))}function Pl(t,e){return Ga((function(n,r){var i=null,o=0,s=!1,a=function(){return s&&!i&&r.complete()};n.subscribe(new Wa(r,(function(n){null==i||i.unsubscribe();var s=0,u=o++;Hu(t(n,u)).subscribe(i=new Wa(r,(function(t){return r.next(e?e(n,t,u,s++):t)}),(function(){i=null,a()})))}),(function(){s=!0,a()})))}))}var Ol={leading:!0,trailing:!1};function Rl(t,e){var n=void 0===e?Ol:e,r=n.leading,i=n.trailing;return Ga((function(e,n){var o=!1,s=null,a=null,u=!1,c=function(){null==a||a.unsubscribe(),a=null,i&&(d(),u&&n.complete())},l=function(){a=null,u&&n.complete()},f=function(e){return a=Hu(t(e)).subscribe(new Wa(n,c,l))},d=function(){if(o){o=!1;var t=s;s=null,n.next(t),!u&&f(t)}};e.subscribe(new Wa(n,(function(t){o=!0,s=t,(!a||a.closed)&&(r?d():f(t))}),(function(){u=!0,(!(i&&o&&a)||a.closed)&&n.complete()})))}))}var Cl=function(t,e){this.value=t,this.interval=e};function kl(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Ga((function(e,n){Hc.apply(void 0,la([e],ca(t))).subscribe(n)}))}var jl=n(Object.freeze({__proto__:null,Observable:Da,ConnectableObservable:$a,observable:qa,animationFrames:function(t){return t?Qa(t):Za},Subject:tu,BehaviorSubject:nu,ReplaySubject:iu,AsyncSubject:ou,asap:wu,asapScheduler:bu,async:Eu,asyncScheduler:gu,queue:xu,queueScheduler:_u,animationFrame:Pu,animationFrameScheduler:Au,VirtualTimeScheduler:Ou,VirtualAction:Ru,Scheduler:yu,Subscription:ba,Subscriber:ka,Notification:rc,get NotificationKind(){return Du},pipe:Ba,noop:Ta,identity:Ua,isObservable:function(t){return!!t&&(t instanceof Da||pa(t.lift)&&pa(t.subscribe))},lastValueFrom:function(t,e){var n="object"==typeof e;return new Promise((function(r,i){var o,s=!1;t.subscribe({next:function(t){o=t,s=!0},error:i,complete:function(){s?r(o):n?r(e.defaultValue):i(new oc)}})}))},firstValueFrom:function(t,e){var n="object"==typeof e;return new Promise((function(r,i){var o=new ja({next:function(t){r(t),o.unsubscribe()},error:i,complete:function(){n?r(e.defaultValue):i(new oc)}});t.subscribe(o)}))},ArgumentOutOfRangeError:sc,EmptyError:oc,NotFoundError:ac,ObjectUnsubscribedError:Xa,SequenceError:uc,TimeoutError:lc,UnsubscriptionError:ya,bindCallback:function(t,e,n){return yc(!1,t,e,n)},bindNodeCallback:function(t,e,n){return yc(!0,t,e,n)},combineLatest:_c,concat:Cc,connectable:function(t,e){void 0===e&&(e=jc);var n=null,r=e.connector,i=e.resetOnDisconnect,o=void 0===i||i,s=r(),a=new Da((function(t){return s.subscribe(t)}));return a.connect=function(){return n&&!n.closed||(n=kc((function(){return t})).subscribe(s),o&&n.add((function(){return s=r()}))),n},a},defer:kc,empty:function(t){return t?function(t){return new Da((function(e){return t.schedule((function(){return e.complete()}))}))}(t):Cu},forkJoin:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Iu(t),r=Ec(t),i=r.args,o=r.keys,s=new Da((function(t){var e=i.length;if(e)for(var n=new Array(e),r=e,s=e,a=function(e){var a=!1;Hu(i[e]).subscribe(new Wa(t,(function(t){a||(a=!0,s--),n[e]=t}),(function(){return r--}),void 0,(function(){r&&a||(s||t.next(o?Sc(o,n):n),t.complete())})))},u=0;u<e;u++)a(u);else t.complete()}));return n?s.pipe(vc(n)):s},from:tc,fromEvent:function t(e,n,r,i){if(pa(r)&&(i=r,r=void 0),i)return t(e,n,r).pipe(vc(i));var o=ca(function(t){return pa(t.addEventListener)&&pa(t.removeEventListener)}(e)?Nc.map((function(t){return function(i){return e[t](n,i,r)}})):function(t){return pa(t.addListener)&&pa(t.removeListener)}(e)?Ic.map(Mc(e,n)):function(t){return pa(t.on)&&pa(t.off)}(e)?Fc.map(Mc(e,n)):[],2),s=o[0],a=o[1];if(!s&&Mu(e))return Pc((function(e){return t(e,n,r)}))(Hu(e));if(!s)throw new TypeError("Invalid event target");return new Da((function(t){var e=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.next(1<e.length?e:e[0])};return s(e),function(){return a(e)}}))},fromEventPattern:function t(e,n,r){return r?t(e,n).pipe(vc(r)):new Da((function(t){var r=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.next(1===e.length?e[0]:e)},i=e(r);return pa(n)?function(){return n(r,i)}:void 0}))},generate:function(t,e,n,r,i){var o,s,a,u;function c(){var t;return aa(this,(function(r){switch(r.label){case 0:t=u,r.label=1;case 1:return e&&!e(t)?[3,4]:[4,a(t)];case 2:r.sent(),r.label=3;case 3:return t=n(t),[3,1];case 4:return[2]}}))}return 1===arguments.length?(u=(o=t).initialState,e=o.condition,n=o.iterate,s=o.resultSelector,a=void 0===s?Ua:s,i=o.scheduler):(u=t,!r||ku(r)?(a=Ua,i=r):a=r),kc(i?function(){return Yu(c(),i)}:c)},iif:function(t,e,n){return kc((function(){return t()?e:n}))},interval:Uc,merge:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Nu(t),r=Fu(t,1/0),i=t;return i.length?1===i.length?Hu(i[0]):Oc(r)(tc(i,n)):Cu},never:function(){return Bc},of:ec,onErrorResumeNext:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Jc(Dc(t))(Cu)},pairs:function(t,e){return tc(Object.entries(t),e)},partition:function(t,e,n){return[Gc(e,n)(Hu(t)),Gc(zc(e,n))(Hu(t))]},race:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 1===(t=Dc(t)).length?Hu(t[0]):new Da(Wc(t))},range:function(t,e,n){if(null==e&&(e=t,t=0),e<=0)return Cu;var r=e+t;return new Da(n?function(e){var i=t;return n.schedule((function(){i<r?(e.next(i++),this.schedule()):e.complete()}))}:function(e){for(var n=t;n<r&&!e.closed;)e.next(n++);e.complete()})},throwError:nc,timer:qc,using:function(t,e){return new Da((function(n){var r=t(),i=e(r);return(i?Hu(i):Cu).subscribe(n),function(){r&&r.unsubscribe()}}))},zip:Hc,scheduled:Xu,EMPTY:Cu,NEVER:Bc,config:Sa,audit:$c,auditTime:function(t,e){return void 0===e&&(e=Eu),$c((function(){return qc(t,e)}))},buffer:function(t){return Ga((function(e,n){var r=[];return e.subscribe(new Wa(n,(function(t){return r.push(t)}),(function(){n.next(r),n.complete()}))),t.subscribe(new Wa(n,(function(){var t=r;r=[],n.next(t)}),Ta)),function(){r=null}}))},bufferCount:function(t,e){return void 0===e&&(e=null),e=null!=e?e:t,Ga((function(n,r){var i=[],o=0;n.subscribe(new Wa(r,(function(n){var s,a,u,c,l=null;o++%e==0&&i.push([]);try{for(var f=ua(i),d=f.next();!d.done;d=f.next()){(v=d.value).push(n),t<=v.length&&(l=null!=l?l:[]).push(v)}}catch(t){s={error:t}}finally{try{d&&!d.done&&(a=f.return)&&a.call(f)}finally{if(s)throw s.error}}if(l)try{for(var h=ua(l),p=h.next();!p.done;p=h.next()){var v=p.value;ma(i,v),r.next(v)}}catch(t){u={error:t}}finally{try{p&&!p.done&&(c=h.return)&&c.call(h)}finally{if(u)throw u.error}}}),(function(){var t,e;try{for(var n=ua(i),o=n.next();!o.done;o=n.next()){var s=o.value;r.next(s)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}r.complete()}),void 0,(function(){i=null})))}))},bufferTime:function(t){for(var e,n,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];var o=null!==(e=Nu(r))&&void 0!==e?e:gu,s=null!==(n=r[0])&&void 0!==n?n:null,a=r[1]||1/0;return Ga((function(e,n){var r=[],i=!1,u=function(t){var e=t.buffer;t.subs.unsubscribe(),ma(r,t),n.next(e),i&&c()},c=function(){if(r){var e=new ba;n.add(e);var i={buffer:[],subs:e};r.push(i),Vu(e,o,(function(){return u(i)}),t)}};null!==s&&s>=0?Vu(n,o,c,s,!0):i=!0,c();var l=new Wa(n,(function(t){var e,n,i=r.slice();try{for(var o=ua(i),s=o.next();!s.done;s=o.next()){var c=s.value,l=c.buffer;l.push(t),a<=l.length&&u(c)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}}),(function(){for(;null==r?void 0:r.length;)n.next(r.shift().buffer);null==l||l.unsubscribe(),n.complete(),n.unsubscribe()}),void 0,(function(){return r=null}));e.subscribe(l)}))},bufferToggle:function(t,e){return Ga((function(n,r){var i=[];Hu(t).subscribe(new Wa(r,(function(t){var n=[];i.push(n);var o=new ba;o.add(Hu(e(t)).subscribe(new Wa(r,(function(){ma(i,n),r.next(n),o.unsubscribe()}),Ta)))}),Ta)),n.subscribe(new Wa(r,(function(t){var e,n;try{for(var r=ua(i),o=r.next();!o.done;o=r.next()){o.value.push(t)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}}),(function(){for(;i.length>0;)r.next(i.shift());r.complete()})))}))},bufferWhen:function(t){return Ga((function(e,n){var r=null,i=null,o=function(){null==i||i.unsubscribe();var e=r;r=[],e&&n.next(e),Hu(t()).subscribe(i=new Wa(n,o,Ta))};o(),e.subscribe(new Wa(n,(function(t){return null==r?void 0:r.push(t)}),(function(){r&&n.next(r),n.complete()}),void 0,(function(){return r=i=null})))}))},catchError:function t(e){return Ga((function(n,r){var i,o=null,s=!1;o=n.subscribe(new Wa(r,void 0,void 0,(function(a){i=Hu(e(a,t(e)(n))),o?(o.unsubscribe(),o=null,i.subscribe(r)):s=!0}))),s&&(o.unsubscribe(),o=null,i.subscribe(r))}))},combineAll:tl,combineLatestAll:Xc,combineLatestWith:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return el.apply(void 0,la([],ca(t)))},concatAll:Rc,concatMap:nl,concatMapTo:function(t,e){return pa(e)?nl((function(){return t}),e):nl((function(){return t}))},concatWith:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return rl.apply(void 0,la([],ca(t)))},connect:ol,count:function(t){return Kc((function(e,n,r){return!t||t(n,r)?e+1:e}),0)},debounce:function(t){return Ga((function(e,n){var r=!1,i=null,o=null,s=function(){if(null==o||o.unsubscribe(),o=null,r){r=!1;var t=i;i=null,n.next(t)}};e.subscribe(new Wa(n,(function(e){null==o||o.unsubscribe(),r=!0,i=e,o=new Wa(n,s,Ta),Hu(t(e)).subscribe(o)}),(function(){s(),n.complete()}),void 0,(function(){i=o=null})))}))},debounceTime:function(t,e){return void 0===e&&(e=gu),Ga((function(n,r){var i=null,o=null,s=null,a=function(){if(i){i.unsubscribe(),i=null;var t=o;o=null,r.next(t)}};function u(){var n=s+t,o=e.now();if(o<n)return i=this.schedule(void 0,n-o),void r.add(i);a()}n.subscribe(new Wa(r,(function(n){o=n,s=e.now(),i||(i=e.schedule(u,t),r.add(i))}),(function(){a(),r.complete()}),void 0,(function(){o=i=null})))}))},defaultIfEmpty:sl,delay:function(t,e){void 0===e&&(e=gu);var n=qc(t,e);return ll((function(){return n}))},delayWhen:ll,dematerialize:function(){return Ga((function(t,e){t.subscribe(new Wa(e,(function(t){return ic(t,e)})))}))},distinct:function(t,e){return Ga((function(n,r){var i=new Set;n.subscribe(new Wa(r,(function(e){var n=t?t(e):e;i.has(n)||(i.add(n),r.next(e))}))),null==e||e.subscribe(new Wa(r,(function(){return i.clear()}),Ta))}))},distinctUntilChanged:fl,distinctUntilKeyChanged:function(t,e){return fl((function(n,r){return e?e(n[t],r[t]):n[t]===r[t]}))},elementAt:function(t,e){if(t<0)throw new sc;var n=arguments.length>=2;return function(r){return r.pipe(Gc((function(e,n){return n===t})),al(1),n?sl(e):hl((function(){return new sc})))}},endWith:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return Cc(e,ec.apply(void 0,la([],ca(t))))}},every:function(t,e){return Ga((function(n,r){var i=0;n.subscribe(new Wa(r,(function(o){t.call(e,o,i++,n)||(r.next(!1),r.complete())}),(function(){r.next(!0),r.complete()})))}))},exhaust:yl,exhaustAll:vl,exhaustMap:function t(e,n){return n?function(r){return r.pipe(t((function(t,r){return Hu(e(t,r)).pipe(hc((function(e,i){return n(t,e,r,i)})))})))}:Ga((function(t,n){var r=0,i=null,o=!1;t.subscribe(new Wa(n,(function(t){i||(i=new Wa(n,void 0,(function(){i=null,o&&n.complete()})),Hu(e(t,r++)).subscribe(i))}),(function(){o=!0,!i&&n.complete()})))}))},expand:function(t,e,n){return void 0===e&&(e=1/0),e=(e||0)<1?1/0:e,Ga((function(r,i){return Ac(r,i,t,e,void 0,!0,n)}))},filter:Gc,finalize:function(t){return Ga((function(e,n){try{e.subscribe(n)}finally{n.add(t)}}))},find:function(t,e){return Ga(ml(t,e,"value"))},findIndex:function(t,e){return Ga(ml(t,e,"index"))},first:function(t,e){var n=arguments.length>=2;return function(r){return r.pipe(t?Gc((function(e,n){return t(e,n,r)})):Ua,al(1),n?sl(e):hl((function(){return new oc})))}},groupBy:function(t,e,n,r){return Ga((function(i,o){var s;e&&"function"!=typeof e?(n=e.duration,s=e.element,r=e.connector):s=e;var a=new Map,u=function(t){a.forEach(t),t(o)},c=function(t){return u((function(e){return e.error(t)}))},l=new bl(o,(function(e){try{var i=t(e),u=a.get(i);if(!u){a.set(i,u=r?r():new tu);var f=function(t,e){var n=new Da((function(t){l.activeGroups++;var n=e.subscribe(t);return function(){n.unsubscribe(),0==--l.activeGroups&&l.teardownAttempted&&l.unsubscribe()}}));return n.key=t,n}(i,u);if(o.next(f),n){var d=new Wa(u,(function(){u.complete(),null==d||d.unsubscribe()}),void 0,void 0,(function(){return a.delete(i)}));l.add(Hu(n(f)).subscribe(d))}}u.next(s?s(e):e)}catch(t){c(t)}}),(function(){return u((function(t){return t.complete()}))}),c,(function(){return a.clear()}));i.subscribe(l)}))},ignoreElements:ul,isEmpty:function(){return Ga((function(t,e){t.subscribe(new Wa(e,(function(){e.next(!1),e.complete()}),(function(){e.next(!0),e.complete()})))}))},last:function(t,e){var n=arguments.length>=2;return function(r){return r.pipe(t?Gc((function(e,n){return t(e,n,r)})):Ua,wl(1),n?sl(e):hl((function(){return new oc})))}},map:hc,mapTo:cl,materialize:function(){return Ga((function(t,e){t.subscribe(new Wa(e,(function(t){e.next(rc.createNext(t))}),(function(){e.next(rc.createComplete()),e.complete()}),(function(t){e.next(rc.createError(t)),e.complete()})))}))},max:function(t){return Kc(pa(t)?function(e,n){return t(e,n)>0?e:n}:function(t,e){return t>e?t:e})},mergeAll:Oc,flatMap:gl,mergeMap:Pc,mergeMapTo:function(t,e,n){return void 0===n&&(n=1/0),pa(e)?Pc((function(){return t}),e,n):("number"==typeof e&&(n=e),Pc((function(){return t}),n))},mergeScan:function(t,e,n){return void 0===n&&(n=1/0),Ga((function(r,i){var o=e;return Ac(r,i,(function(e,n){return t(o,e,n)}),n,(function(t){o=t}),!1,void 0,(function(){return o=null}))}))},mergeWith:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return El.apply(void 0,la([],ca(t)))},min:function(t){return Kc(pa(t)?function(e,n){return t(e,n)<0?e:n}:function(t,e){return t<e?t:e})},multicast:Sl,observeOn:Ku,pairwise:function(){return Ga((function(t,e){var n,r=!1;t.subscribe(new Wa(e,(function(t){var i=n;n=t,r&&e.next([i,t]),r=!0})))}))},pluck:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t.length;if(0===n)throw new Error("list of properties cannot be empty.");return hc((function(e){for(var r=e,i=0;i<n;i++){var o=null==r?void 0:r[t[i]];if(void 0===o)return;r=o}return r}))},publish:function(t){return t?function(e){return ol(t)(e)}:function(t){return Sl(new tu)(t)}},publishBehavior:function(t){return function(e){var n=new nu(t);return new $a(e,(function(){return n}))}},publishLast:function(){return function(t){var e=new ou;return new $a(t,(function(){return e}))}},publishReplay:function(t,e,n,r){n&&!pa(n)&&(r=n);var i=pa(n)?n:void 0;return function(n){return Sl(new iu(t,e,r),i)(n)}},raceWith:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.length?Ga((function(e,n){Wc(la([e],ca(t)))(n)})):Ua},reduce:Kc,repeat:function(t){return void 0===t&&(t=1/0),t<=0?function(){return Cu}:Ga((function(e,n){var r,i=0,o=function(){var s=!1;r=e.subscribe(new Wa(n,void 0,(function(){++i<t?r?(r.unsubscribe(),r=null,o()):s=!0:n.complete()}))),s&&(r.unsubscribe(),r=null,o())};o()}))},repeatWhen:function(t){return Ga((function(e,n){var r,i,o=!1,s=!1,a=!1,u=function(){return a&&s&&(n.complete(),!0)},c=function(){a=!1,r=e.subscribe(new Wa(n,void 0,(function(){a=!0,!u()&&(i||(i=new tu,t(i).subscribe(new Wa(n,(function(){r?c():o=!0}),(function(){s=!0,u()})))),i).next()}))),o&&(r.unsubscribe(),r=null,o=!1,c())};c()}))},retry:function(t){var e;void 0===t&&(t=1/0);var n=(e=t&&"object"==typeof t?t:{count:t}).count,r=void 0===n?1/0:n,i=e.delay,o=e.resetOnSuccess,s=void 0!==o&&o;return r<=0?Ua:Ga((function(t,e){var n,o=0,a=function(){var u=!1;n=t.subscribe(new Wa(e,(function(t){s&&(o=0),e.next(t)}),void 0,(function(t){if(o++<r){var s=function(){n?(n.unsubscribe(),n=null,a()):u=!0};if(null!=i){var c="number"==typeof i?qc(i):Hu(i(t,o)),l=new Wa(e,(function(){l.unsubscribe(),s()}),(function(){e.complete()}));c.subscribe(l)}else s()}else e.error(t)}))),u&&(n.unsubscribe(),n=null,a())};a()}))},retryWhen:function(t){return Ga((function(e,n){var r,i,o=!1,s=function(){r=e.subscribe(new Wa(n,void 0,void 0,(function(e){i||(i=new tu,t(i).subscribe(new Wa(n,(function(){return r?s():o=!0})))),i&&i.next(e)}))),o&&(r.unsubscribe(),r=null,o=!1,s())};s()}))},refCount:Ha,sample:_l,sampleTime:function(t,e){return void 0===e&&(e=gu),_l(Uc(t,e))},scan:xl,sequenceEqual:function(t,e){return void 0===e&&(e=function(t,e){return t===e}),Ga((function(n,r){var i={buffer:[],complete:!1},o={buffer:[],complete:!1},s=function(t){r.next(t),r.complete()},a=function(t,n){var i=new Wa(r,(function(r){var i=n.buffer,o=n.complete;0===i.length?o?s(!1):t.buffer.push(r):!e(r,i.shift())&&s(!1)}),(function(){t.complete=!0;var e=n.complete,r=n.buffer;e&&s(0===r.length),null==i||i.unsubscribe()}));return i};n.subscribe(a(i,o)),t.subscribe(a(o,i))}))},share:Tl,shareReplay:function(t,e,n){var r,i,o,s=!1;return t&&"object"==typeof t?(o=null!==(r=t.bufferSize)&&void 0!==r?r:1/0,e=null!==(i=t.windowTime)&&void 0!==i?i:1/0,s=!!t.refCount,n=t.scheduler):o=null!=t?t:1/0,Tl({connector:function(){return new iu(o,e,n)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:s})},single:function(t){return Ga((function(e,n){var r,i=!1,o=!1,s=0;e.subscribe(new Wa(n,(function(a){o=!0,t&&!t(a,s++,e)||(i&&n.error(new uc("Too many matching values")),i=!0,r=a)}),(function(){i?(n.next(r),n.complete()):n.error(o?new ac("No matching values"):new oc)})))}))},skip:function(t){return Gc((function(e,n){return t<=n}))},skipLast:function(t){return t<=0?Ua:Ga((function(e,n){var r=new Array(t),i=0;return e.subscribe(new Wa(n,(function(e){var o=i++;if(o<t)r[o]=e;else{var s=o%t,a=r[s];r[s]=e,n.next(a)}}))),function(){r=null}}))},skipUntil:function(t){return Ga((function(e,n){var r=!1,i=new Wa(n,(function(){null==i||i.unsubscribe(),r=!0}),Ta);Hu(t).subscribe(i),e.subscribe(new Wa(n,(function(t){return r&&n.next(t)})))}))},skipWhile:function(t){return Ga((function(e,n){var r=!1,i=0;e.subscribe(new Wa(n,(function(e){return(r||(r=!t(e,i++)))&&n.next(e)})))}))},startWith:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Nu(t);return Ga((function(e,r){(n?Cc(t,e,n):Cc(t,e)).subscribe(r)}))},subscribeOn:Qu,switchAll:function(){return Pl(Ua)},switchMap:Pl,switchMapTo:function(t,e){return pa(e)?Pl((function(){return t}),e):Pl((function(){return t}))},switchScan:function(t,e){return Ga((function(n,r){var i=e;return Pl((function(e,n){return t(i,e,n)}),(function(t,e){return i=e,e}))(n).subscribe(r),function(){i=null}}))},take:al,takeLast:wl,takeUntil:function(t){return Ga((function(e,n){Hu(t).subscribe(new Wa(n,(function(){return n.complete()}),Ta)),!n.closed&&e.subscribe(n)}))},takeWhile:function(t,e){return void 0===e&&(e=!1),Ga((function(n,r){var i=0;n.subscribe(new Wa(r,(function(n){var o=t(n,i++);(o||e)&&r.next(n),!o&&r.complete()})))}))},tap:function(t,e,n){var r=pa(t)||e||n?{next:t,error:e,complete:n}:t;return r?Ga((function(t,e){var n;null===(n=r.subscribe)||void 0===n||n.call(r);var i=!0;t.subscribe(new Wa(e,(function(t){var n;null===(n=r.next)||void 0===n||n.call(r,t),e.next(t)}),(function(){var t;i=!1,null===(t=r.complete)||void 0===t||t.call(r),e.complete()}),(function(t){var n;i=!1,null===(n=r.error)||void 0===n||n.call(r,t),e.error(t)}),(function(){var t,e;i&&(null===(t=r.unsubscribe)||void 0===t||t.call(r)),null===(e=r.finalize)||void 0===e||e.call(r)})))})):Ua},throttle:Rl,throttleTime:function(t,e,n){void 0===e&&(e=gu),void 0===n&&(n=Ol);var r=qc(t,e);return Rl((function(){return r}),n)},throwIfEmpty:hl,timeInterval:function(t){return void 0===t&&(t=Eu),function(e){return kc((function(){return e.pipe(xl((function(e,n){var r=e.current;return{value:n,current:t.now(),last:r}}),{current:t.now(),value:void 0,last:void 0}),hc((function(t){var e=t.current,n=t.last,r=t.value;return new Cl(r,e-n)})))}))}},timeout:fc,timeoutWith:function(t,e,n){var r,i,o;if(n=null!=n?n:Eu,cc(t)?r=t:"number"==typeof t&&(i=t),!e)throw new TypeError("No observable provided to switch to");if(o=function(){return e},null==r&&null==i)throw new TypeError("No timeout provided.");return fc({first:r,each:i,scheduler:n,with:o})},timestamp:function(t){return void 0===t&&(t=ru),hc((function(e){return{value:e,timestamp:t.now()}}))},toArray:Yc,window:function(t){return Ga((function(e,n){var r=new tu;n.next(r.asObservable());var i=function(t){r.error(t),n.error(t)};return e.subscribe(new Wa(n,(function(t){return null==r?void 0:r.next(t)}),(function(){r.complete(),n.complete()}),i)),t.subscribe(new Wa(n,(function(){r.complete(),n.next(r=new tu)}),Ta,i)),function(){null==r||r.unsubscribe(),r=null}}))},windowCount:function(t,e){void 0===e&&(e=0);var n=e>0?e:t;return Ga((function(e,r){var i=[new tu],o=0;r.next(i[0].asObservable()),e.subscribe(new Wa(r,(function(e){var s,a;try{for(var u=ua(i),c=u.next();!c.done;c=u.next()){c.value.next(e)}}catch(t){s={error:t}}finally{try{c&&!c.done&&(a=u.return)&&a.call(u)}finally{if(s)throw s.error}}var l=o-t+1;if(l>=0&&l%n==0&&i.shift().complete(),++o%n==0){var f=new tu;i.push(f),r.next(f.asObservable())}}),(function(){for(;i.length>0;)i.shift().complete();r.complete()}),(function(t){for(;i.length>0;)i.shift().error(t);r.error(t)}),(function(){null,i=null})))}))},windowTime:function(t){for(var e,n,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];var o=null!==(e=Nu(r))&&void 0!==e?e:gu,s=null!==(n=r[0])&&void 0!==n?n:null,a=r[1]||1/0;return Ga((function(e,n){var r=[],i=!1,u=function(t){var e=t.window,n=t.subs;e.complete(),n.unsubscribe(),ma(r,t),i&&c()},c=function(){if(r){var e=new ba;n.add(e);var i=new tu,s={window:i,subs:e,seen:0};r.push(s),n.next(i.asObservable()),Vu(e,o,(function(){return u(s)}),t)}};null!==s&&s>=0?Vu(n,o,c,s,!0):i=!0,c();var l=function(t){return r.slice().forEach(t)},f=function(t){l((function(e){var n=e.window;return t(n)})),t(n),n.unsubscribe()};return e.subscribe(new Wa(n,(function(t){l((function(e){e.window.next(t),a<=++e.seen&&u(e)}))}),(function(){return f((function(t){return t.complete()}))}),(function(t){return f((function(e){return e.error(t)}))}))),function(){r=null}}))},windowToggle:function(t,e){return Ga((function(n,r){var i=[],o=function(t){for(;0<i.length;)i.shift().error(t);r.error(t)};Hu(t).subscribe(new Wa(r,(function(t){var n=new tu;i.push(n);var s,a=new ba;try{s=Hu(e(t))}catch(t){return void o(t)}r.next(n.asObservable()),a.add(s.subscribe(new Wa(r,(function(){ma(i,n),n.complete(),a.unsubscribe()}),Ta,o)))}),Ta)),n.subscribe(new Wa(r,(function(t){var e,n,r=i.slice();try{for(var o=ua(r),s=o.next();!s.done;s=o.next()){s.value.next(t)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}}),(function(){for(;0<i.length;)i.shift().complete();r.complete()}),o,(function(){for(;0<i.length;)i.shift().unsubscribe()})))}))},windowWhen:function(t){return Ga((function(e,n){var r,i,o=function(t){r.error(t),n.error(t)},s=function(){var e;null==i||i.unsubscribe(),null==r||r.complete(),r=new tu,n.next(r.asObservable());try{e=Hu(t())}catch(t){return void o(t)}e.subscribe(i=new Wa(n,s,s,o))};s(),e.subscribe(new Wa(n,(function(t){return r.next(t)}),(function(){r.complete(),n.complete()}),o,(function(){null==i||i.unsubscribe(),r=null})))}))},withLatestFrom:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Iu(t);return Ga((function(e,r){for(var i=t.length,o=new Array(i),s=t.map((function(){return!1})),a=!1,u=function(e){Hu(t[e]).subscribe(new Wa(r,(function(t){o[e]=t,a||s[e]||(s[e]=!0,(a=s.every(Ua))&&(s=null))}),Ta))},c=0;c<i;c++)u(c);e.subscribe(new Wa(r,(function(t){if(a){var e=la([t],ca(o));r.next(n?n.apply(void 0,la([],ca(e))):e)}})))}))},zipAll:function(t){return Zc(Hc,t)},zipWith:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return kl.apply(void 0,la([],ca(t)))}})),Il={},Nl={};function Fl(t){return Array.isArray(t)}Nl.isntEmptyArray=Nl.isEmptyArray=Nl.isntArray=Nl.isArray=void 0,Nl.isArray=Fl,Nl.isntArray=function(t){return!Fl(t)},Nl.isEmptyArray=function(t){return 0===t.length},Nl.isntEmptyArray=function(t){return 0!==t.length};var Ml={},ql={};function Ul(t){return null===t}ql.isntNull=ql.isNull=void 0,ql.isNull=Ul,ql.isntNull=function(t){return!Ul(t)};var Bl={};function Ll(t){return void 0===t}Bl.isntUndefined=Bl.isUndefined=void 0,Bl.isUndefined=Ll,Bl.isntUndefined=function(t){return!Ll(t)},Ml.isntAsyncIterable=Ml.isAsyncIterable=void 0;const Dl=ql,Jl=Bl;function zl(t){return(0,Dl.isntNull)(t)&&(0,Jl.isntUndefined)(t)&&"function"==typeof t[Symbol.asyncIterator]}Ml.isAsyncIterable=zl,Ml.isntAsyncIterable=function(t){return!zl(t)};var Gl={};function Wl(t){return"bigint"==typeof t}Gl.isntBigInt=Gl.isBigInt=void 0,Gl.isBigInt=Wl,Gl.isntBigInt=function(t){return!Wl(t)};var Hl={};function $l(t){return"boolean"==typeof t}Hl.isntBoolean=Hl.isBoolean=void 0,Hl.isBoolean=$l,Hl.isntBoolean=function(t){return!$l(t)};var Vl={},Kl={};function Ql(t){return"string"==typeof t}Kl.isntString=Kl.isString=void 0,Kl.isString=Ql,Kl.isntString=function(t){return!Ql(t)},Vl.isntChar=Vl.isChar=void 0;const Yl=Kl;function Zl(t){return(0,Yl.isString)(t)&&1===t.length}Vl.isChar=Zl,Vl.isntChar=function(t){return!Zl(t)};var Xl={};function tf(t){return t instanceof Date}Xl.isntDate=Xl.isDate=void 0,Xl.isDate=tf,Xl.isntDate=function(t){return!tf(t)};var ef={};ef.inEnum=void 0,ef.inEnum=function(t,e){return Object.values(e).includes(t)};var nf={};function rf(t){return t instanceof Error}nf.isntError=nf.isError=void 0,nf.isError=rf,nf.isntError=function(t){return!rf(t)};var of={};function sf(t){return!t}of.isntFalsy=of.isFalsy=void 0,of.isFalsy=sf,of.isntFalsy=function(t){return!sf(t)};var af={};function uf(t){return"function"==typeof t}af.isntFunction=af.isFunction=void 0,af.isFunction=uf,af.isntFunction=function(t){return!uf(t)};var cf={};cf.isntIterable=cf.isIterable=void 0;const lf=ql,ff=Bl;function df(t){return(0,lf.isntNull)(t)&&(0,ff.isntUndefined)(t)&&"function"==typeof t[Symbol.iterator]}cf.isIterable=df,cf.isntIterable=function(t){return!df(t)};var hf={},pf={};function vf(t){return null!==t&&"object"==typeof t}pf.isntEmptyObject=pf.isEmptyObject=pf.isRecord=pf.isntObject=pf.isObject=void 0,pf.isObject=vf,pf.isntObject=function(t){return!vf(t)},pf.isRecord=function(t){return vf(t)},pf.isEmptyObject=function(t){return 0===Object.keys(t).length},pf.isntEmptyObject=function(t){return 0!==Object.keys(t).length};var yf={};function mf(t){return"number"==typeof t}yf.isntNumber=yf.isNumber=void 0,yf.isNumber=mf,yf.isntNumber=function(t){return!mf(t)},hf.isntJsonRpcError=hf.isJsonRpcError=hf.isntJsonRpcSuccess=hf.isJsonRpcSuccess=hf.isntJsonRpcRequest=hf.isJsonRpcRequest=hf.isntJsonRpcNotification=hf.isJsonRpcNotification=void 0;const bf=Nl,wf=pf,gf=Kl,Ef=yf,Sf=Bl;function _f(t){return(0,gf.isString)(t)||(0,Ef.isNumber)(t)}function xf(t){return(0,bf.isArray)(t)||(0,wf.isObject)(t)}function Tf(t){return(0,wf.isRecord)(t)&&(0,gf.isString)(t.jsonrpc)&&(0,gf.isString)(t.method)&&(0,Sf.isUndefined)(t.id)&&xf(t.params)}function Af(t){return(0,wf.isRecord)(t)&&(0,gf.isString)(t.jsonrpc)&&(0,gf.isString)(t.method)&&_f(t.id)&&xf(t.params)}function Pf(t){return(0,wf.isRecord)(t)&&(0,gf.isString)(t.jsonrpc)&&(0,gf.isString)(t.id)&&"result"in t}function Of(t){return(0,wf.isRecord)(t)&&(0,gf.isString)(t.jsonrpc)&&_f(t.id)&&function(t){return(0,wf.isRecord)(t)&&(0,Ef.isNumber)(t.code)&&(0,gf.isString)(t.message)&&((0,Sf.isUndefined)(t.data)||(0,wf.isObject)(t.data))}(t.error)}hf.isJsonRpcNotification=Tf,hf.isntJsonRpcNotification=function(t){return!Tf(t)},hf.isJsonRpcRequest=Af,hf.isntJsonRpcRequest=function(t){return!Af(t)},hf.isJsonRpcSuccess=Pf,hf.isntJsonRpcSuccess=function(t){return!Pf(t)},hf.isJsonRpcError=Of,hf.isntJsonRpcError=function(t){return!Of(t)};var Rf={};Rf.isntJson=Rf.isJson=void 0,Rf.isJson=function(t){try{return JSON.stringify(t),!0}catch(t){return!1}},Rf.isntJson=function t(e){return!t()};var Cf={};Cf.isAbsoluteURL=void 0,Cf.isAbsoluteURL=function(t){try{return new URL(t),!0}catch(t){return!1}},function(t){var n=e&&e.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=e&&e.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};r(Nl,t),r(Ml,t),r(Gl,t),r(Hl,t),r(Vl,t),r(Xl,t),r(ef,t),r(nf,t),r(of,t),r(af,t),r(cf,t),r(hf,t),r(Rf,t),r(ql,t),r(yf,t),r(pf,t),r(Kl,t),r(Bl,t),r(Cf,t)}(Il),function(t){t.BadEventError=t.ObservableFiniteStateMachine=void 0;const e=Zs,n=jl,r=Il;class i extends e.FiniteStateMachine{constructor(){super(...arguments),this.stateChanges=new n.Subject}observeStateChanges(){return this.stateChanges}send(t){const e=this.state;super.send(t);const n=this.state;this.stateChanges.next({event:t,oldState:e,newState:n}),(0,r.isEmptyObject)(this.schema[n])&&this.stateChanges.complete()}}t.ObservableFiniteStateMachine=i;var o=Zs;Object.defineProperty(t,"BadEventError",{enumerable:!0,get:function(){return o.BadEventError}})}(ra),function(t){var n=e&&e.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=e&&e.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};r(qo,t),r(Lo,t),r(Jo,t),r(Ho,t),r(Qo,t),r(ts,t),r(os,t),r(fs,t),r(Us,t),r(Hs,t),r(Zs,t),r(ra,t)}(Mo),Fo.ExtraPromise=void 0;const kf=Mo;var jf;!function(t){t.Pending="pending",t.Fulfilled="fulfilled",t.Rejected="rejected"}(jf||(jf={}));Fo.ExtraPromise=class extends Promise{constructor(t){const e=new kf.FiniteStateMachine({[jf.Pending]:{resolve:jf.Fulfilled,reject:jf.Rejected},[jf.Fulfilled]:{},[jf.Rejected]:{}},jf.Pending);super(((n,r)=>{t((t=>{e.send("resolve"),n(t)}),(t=>{e.send("reject"),r(t)}))})),this.fsm=e}get pending(){return this.fsm.matches(jf.Pending)}get fulfilled(){return this.fsm.matches(jf.Fulfilled)}get rejected(){return this.fsm.matches(jf.Rejected)}};var If,Nf,Ff,Mf={},qf=e&&e.__classPrivateFieldSet||function(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n},Uf=e&&e.__classPrivateFieldGet||function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};Mf.Deferred=void 0;Mf.Deferred=class{constructor(){If.set(this,void 0),Nf.set(this,void 0),Ff.set(this,void 0),qf(this,Ff,new Promise(((t,e)=>{qf(this,If,t,"f"),qf(this,Nf,e,"f")})),"f")}get then(){return Uf(this,Ff,"f").then.bind(Uf(this,Ff,"f"))}resolve(t){Uf(this,If,"f").call(this,t)}reject(t){Uf(this,Nf,"f").call(this,t)}},If=new WeakMap,Nf=new WeakMap,Ff=new WeakMap;var Bf,Lf,Df={},Jf=e&&e.__classPrivateFieldGet||function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)},zf=e&&e.__classPrivateFieldSet||function(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n};Df.ReusableDeferred=void 0;const Gf=Mf;Df.ReusableDeferred=class{constructor(){Bf.set(this,new Gf.Deferred),Lf.set(this,!1)}get then(){return Jf(this,Bf,"f").then.bind(Jf(this,Bf,"f"))}resolve(t){Jf(this,Lf,"f")&&zf(this,Bf,new Gf.Deferred,"f"),Jf(this,Bf,"f").resolve(t),zf(this,Lf,!0,"f")}reject(t){Jf(this,Lf,"f")&&zf(this,Bf,new Gf.Deferred,"f"),Jf(this,Bf,"f").reject(t),zf(this,Lf,!0,"f")}},Bf=new WeakMap,Lf=new WeakMap;var Wf,Hf,$f={},Vf=e&&e.__classPrivateFieldSet||function(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n},Kf=e&&e.__classPrivateFieldGet||function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};$f.LazyPromise=void 0;$f.LazyPromise=class{constructor(t){Wf.set(this,void 0),Hf.set(this,void 0),Vf(this,Hf,t,"f")}get then(){return Kf(this,Wf,"f")||Vf(this,Wf,new Promise(Kf(this,Hf,"f")),"f"),Kf(this,Wf,"f").then.bind(Kf(this,Wf,"f"))}},Wf=new WeakMap,Hf=new WeakMap;var Qf={},Yf={},Zf={};Zf.pass=void 0,Zf.pass=function(){},function(t){var n=e&&e.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]});(e&&e.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)})(Zf,t)}(Yf);var Xf,td=e&&e.__classPrivateFieldGet||function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};Qf.SignalDiscarded=Qf.Signal=void 0;const ed=Pt,nd=Mf,rd=Yf;Qf.Signal=class{constructor(){Xf.set(this,new nd.Deferred)}get then(){return td(this,Xf,"f").then.bind(td(this,Xf,"f"))}emit(){td(this,Xf,"f").resolve()}discard(){Promise.resolve(td(this,Xf,"f")).catch(rd.pass),td(this,Xf,"f").reject(new id)}},Xf=new WeakMap;class id extends ed.CustomError{}Qf.SignalDiscarded=id;var od,sd={},ad=e&&e.__classPrivateFieldGet||function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};sd.SignalGroup=void 0;sd.SignalGroup=class{constructor(){od.set(this,new Set)}add(t){ad(this,od,"f").add(t)}remove(t){ad(this,od,"f").delete(t)}emitAll(){for(const t of ad(this,od,"f"))t.emit()}discardAll(){for(const t of ad(this,od,"f"))t.discard()}},od=new WeakMap;var ud={},cd={},ld={};ld.go=void 0,ld.go=function(t){return t()},function(t){var n=e&&e.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]});(e&&e.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)})(ld,t)}(cd);var fd=17976931348623157e292,dd=/^\s+|\s+$/g,hd=/^[-+]0x[0-9a-f]+$/i,pd=/^0b[01]+$/i,vd=/^0o[0-7]+$/i,yd=parseInt,md=Object.prototype.toString;function bd(t,e){var n;if("function"!=typeof e)throw new TypeError("Expected a function");return t=function(t){var e=function(t){if(!t)return 0===t?t:0;if(Infinity===(t=function(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&"[object Symbol]"==md.call(t)}(t))return NaN;if(wd(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=wd(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(dd,"");var n=pd.test(t);return n||vd.test(t)?yd(t.slice(2),n?2:8):hd.test(t)?NaN:+t}(t))||-Infinity===t){return(t<0?-1:1)*fd}return t==t?t:0}(t),n=e%1;return e==e?n?e-n:e:0}(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=void 0),n}}function wd(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}var gd,Ed,Sd,_d=function(t){return bd(2,t)},xd=e&&e.__classPrivateFieldSet||function(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n},Td=e&&e.__classPrivateFieldGet||function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)},Ad=e&&e.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};ud.Semaphore=void 0;const Pd=Qf,Od=sd,Rd=cd,Cd=Ad(_d);ud.Semaphore=class{constructor(t){gd.set(this,0),Ed.set(this,void 0),Sd.set(this,new Od.SignalGroup),xd(this,Ed,t,"f")}acquire(...t){if(0===t.length)return new Promise((async t=>{await this.lock(),t((0,Cd.default)((()=>this.unlock())))}));{const[e]=t;return(0,Rd.go)((async()=>{await this.lock();try{return await e()}finally{this.unlock()}}))}}async lock(){for(var t;this.isLocked();){const t=new Pd.Signal;Td(this,Sd,"f").add(t),await t,Td(this,Sd,"f").remove(t)}xd(this,gd,(t=Td(this,gd,"f"),++t),"f")}unlock(){var t;xd(this,gd,(t=Td(this,gd,"f"),--t),"f"),Td(this,Sd,"f").emitAll()}isLocked(){return Td(this,Ed,"f")-Td(this,gd,"f")==0}},gd=new WeakMap,Ed=new WeakMap,Sd=new WeakMap;var kd={Mutex:void 0};const jd=ud;class Id extends jd.Semaphore{constructor(){super(1)}}kd.Mutex=Id;var Nd,Fd={},Md=e&&e.__classPrivateFieldGet||function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};Fd.DebounceMicrotask=void 0;Fd.DebounceMicrotask=class{constructor(){Nd.set(this,new WeakSet)}queue(t){Md(this,Nd,"f").has(t)||(Md(this,Nd,"f").add(t),queueMicrotask((()=>{if(Md(this,Nd,"f").has(t))try{t()}finally{Md(this,Nd,"f").delete(t)}})))}cancel(t){Md(this,Nd,"f").delete(t)}},Nd=new WeakMap;var qd={},Ud={},Bd={};Bd.getErrorResult=void 0,Bd.getErrorResult=function(t){try{return[void 0,t()]}catch(t){return[t,void 0]}};var Ld={};Ld.getErrorResultAsync=void 0,Ld.getErrorResultAsync=async function(t){try{return[void 0,await t()]}catch(t){return[t,void 0]}};var Dd={};Dd.getErrorResultPromise=void 0,Dd.getErrorResultPromise=async function(t){try{return[void 0,await t]}catch(t){return[t,void 0]}};var Jd={};Jd.getResultError=void 0,Jd.getResultError=function(t){try{return[t(),void 0]}catch(t){return[void 0,t]}};var zd={};zd.getResultErrorAsync=void 0,zd.getResultErrorAsync=async function(t){try{return[await t(),void 0]}catch(t){return[void 0,t]}};var Gd={};Gd.getResultErrorPromise=void 0,Gd.getResultErrorPromise=async function(t){try{return[await t,void 0]}catch(t){return[void 0,t]}};var Wd={};Wd.getSuccess=void 0,Wd.getSuccess=function(t){try{return[!0,t()]}catch(t){return[!1,void 0]}};var Hd={};Hd.getSuccessAsync=void 0,Hd.getSuccessAsync=async function(t){try{return[!0,await t()]}catch(t){return[!1,void 0]}};var $d={};$d.getSuccessPromise=void 0,$d.getSuccessPromise=async function(t){try{return[!0,await t]}catch(t){return[!1,void 0]}};var Vd={};Vd.getFailure=void 0,Vd.getFailure=function(t){try{return t(),[!1,void 0]}catch(t){return[!0,t]}};var Kd={};Kd.getFailureAsync=void 0,Kd.getFailureAsync=async function(t){try{return await t(),[!1,void 0]}catch(t){return[!0,t]}};var Qd={};Qd.getFailurePromise=void 0,Qd.getFailurePromise=async function(t){try{return await t,[!1,void 0]}catch(t){return[!0,t]}};var Yd={};Yd.isSuccess=void 0,Yd.isSuccess=function(t){try{return t(),!0}catch(t){return!1}};var Zd={};Zd.isSuccessAsync=void 0,Zd.isSuccessAsync=async function(t){try{return await t(),!0}catch(t){return!1}};var Xd={};Xd.isSuccessPromise=void 0,Xd.isSuccessPromise=async function(t){try{return await t,!0}catch(t){return!1}};var th={};th.isFailure=void 0,th.isFailure=function(t){try{return t(),!1}catch(t){return!0}};var eh={};eh.isFailureAsync=void 0,eh.isFailureAsync=async function(t){try{return await t(),!1}catch(t){return!0}};var nh={};nh.isFailurePromise=void 0,nh.isFailurePromise=async function(t){try{return await t,!1}catch(t){return!0}};var rh={};rh.getResult=void 0,rh.getResult=function(t){try{return t()}catch(t){return}};var ih={};ih.getResultAsync=void 0,ih.getResultAsync=async function(t){try{return await t()}catch(t){return}};var oh={};oh.getResultPromise=void 0,oh.getResultPromise=async function(t){try{return await t}catch(t){return}};var sh={};sh.getError=void 0,sh.getError=function(t){try{t()}catch(t){return t}};var ah={};ah.getErrorAsync=void 0,ah.getErrorAsync=async function(t){try{await t()}catch(t){return t}};var uh={};uh.getErrorPromise=void 0,uh.getErrorPromise=async function(t){try{await t}catch(t){return t}};var ch={getErrorAsyncIterable:void 0};const lh=Yf;ch.getErrorAsyncIterable=async function(t){try{for await(const e of t)(0,lh.pass)()}catch(t){return t}};var fh,dh,hh={},ph={},vh=e&&e.__classPrivateFieldSet||function(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n},yh=e&&e.__classPrivateFieldGet||function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};ph.Result=void 0;class mh{static Ok(t){return bh.of(t)}static Err(t){return wh.of(t)}}ph.Result=mh;class bh extends mh{constructor(t){super(),fh.set(this,void 0),vh(this,fh,t,"f")}static of(t){return new bh(t)}isOk(){return!0}isErr(){return!1}onOk(t){return t(yh(this,fh,"f")),bh.of(yh(this,fh,"f"))}onErr(){return bh.of(yh(this,fh,"f"))}orElse(){return bh.of(yh(this,fh,"f"))}map(t){return bh.of(t(yh(this,fh,"f")))}get(){return yh(this,fh,"f")}}fh=new WeakMap;class wh extends mh{constructor(t){super(),dh.set(this,void 0),vh(this,dh,t,"f")}static of(t){return new wh(t)}isOk(){return!1}isErr(){return!0}onOk(){return wh.of(yh(this,dh,"f"))}onErr(t){return t(yh(this,dh,"f")),wh.of(yh(this,dh,"f"))}orElse(t){return bh.of(t)}map(){return wh.of(yh(this,dh,"f"))}get(){throw yh(this,dh,"f")}}dh=new WeakMap,hh.toResult=void 0;const gh=ph;hh.toResult=function(t){try{const e=t();return gh.Result.Ok(e)}catch(t){return gh.Result.Err(t)}};var Eh,Sh={},_h={},xh=e&&e.__classPrivateFieldSet||function(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n},Th=e&&e.__classPrivateFieldGet||function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};_h.AsyncResult=void 0;const Ah=cd,Ph=ph,Oh=$d,Rh=Qd,Ch=Xd,kh=nh;class jh{constructor(t){Eh.set(this,void 0),xh(this,Eh,Promise.resolve(t),"f")}static Ok(t){return Ih.of(t)}static Err(t){return Nh.of(t)}get then(){const t=Th(this,Eh,"f").then((t=>Ph.Result.Ok(t)),(t=>Ph.Result.Err(t)));return t.then.bind(t)}onOk(t){return(0,Ah.go)((async()=>{const[e,n]=await(0,Oh.getSuccessPromise)(Th(this,Eh,"f"));e&&t(n)})),new jh(Th(this,Eh,"f"))}onErr(t){return(0,Ah.go)((async()=>{const[e,n]=await(0,Rh.getFailurePromise)(Th(this,Eh,"f"));e&&t(n)})),new jh(Th(this,Eh,"f"))}async isOk(){return await(0,Ch.isSuccessPromise)(Th(this,Eh,"f"))}async isErr(){return await(0,kh.isFailurePromise)(Th(this,Eh,"f"))}orElse(t){const e=(0,Ah.go)((async()=>{try{return await Th(this,Eh,"f")}catch(e){return t}}));return new jh(e)}map(t){const e=(0,Ah.go)((async()=>{const e=await Th(this,Eh,"f");return t(e)}));return new jh(e)}async get(){return await Th(this,Eh,"f")}}_h.AsyncResult=jh,Eh=new WeakMap;class Ih extends jh{static of(t){return new Ih(t)}constructor(t){super(Promise.resolve(t))}}class Nh extends jh{static of(t){return new Nh(t)}constructor(t){super(Promise.reject(t))}}Sh.toResultAsync=void 0;const Fh=_h;Sh.toResultAsync=function(t){try{const e=t();return new Fh.AsyncResult(e)}catch(t){return Fh.AsyncResult.Err(t)}};var Mh={toResultPromise:void 0};const qh=_h;Mh.toResultPromise=function(t){return new qh.AsyncResult(t)};var Uh,Bh={},Lh={},Dh=e&&e.__classPrivateFieldSet||function(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n},Jh=e&&e.__classPrivateFieldGet||function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};Lh.Optional=void 0;class zh{static Some(t){return Gh.of(t)}static None(){return Wh.of()}}Lh.Optional=zh;class Gh extends zh{constructor(t){super(),Uh.set(this,void 0),Dh(this,Uh,t,"f")}static of(t){return new Gh(t)}isSome(){return!0}isNone(){return!1}onSome(t){return t(Jh(this,Uh,"f")),Gh.of(Jh(this,Uh,"f"))}onNone(){return Gh.of(Jh(this,Uh,"f"))}orElse(){return Gh.of(Jh(this,Uh,"f"))}map(t){return Gh.of(t(Jh(this,Uh,"f")))}filter(t){return t(Jh(this,Uh,"f"))?Gh.of(Jh(this,Uh,"f")):Wh.of()}get(){return Jh(this,Uh,"f")}}Uh=new WeakMap;class Wh extends zh{static of(){return new Wh}constructor(){super()}isSome(){return!1}isNone(){return!0}onSome(){return Wh.of()}onNone(t){return t(),Wh.of()}orElse(t){return Gh.of(t)}map(){return Wh.of()}filter(){return Wh.of()}get(){throw new Error("Cannot get value from None")}}Bh.toOptional=Bh.toOptionalPartial=void 0;const Hh=Lh;function $h(t,e){const n=t();return e(n)?Hh.Optional.None():Hh.Optional.Some(n)}Bh.toOptionalPartial=function(t){return e=>$h(e,t)},Bh.toOptional=$h;var Vh={},Kh={};!function(t){var n,r=e&&e.__classPrivateFieldSet||function(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n},i=e&&e.__classPrivateFieldGet||function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};t.AsyncOptional=t.Nil=void 0;const o=cd,s=Lh;t.Nil=Symbol();class a{constructor(t){n.set(this,void 0),r(this,n,Promise.resolve(t),"f")}static Some(t){return c.of(t)}static None(){return u.of()}get then(){const e=i(this,n,"f").then((e=>e===t.Nil?s.Optional.None():s.Optional.Some(e)));return e.then.bind(e)}onSome(e){return(0,o.go)((async()=>{const r=await i(this,n,"f");r!==t.Nil&&e(r)})),new a(i(this,n,"f"))}onNone(e){return(0,o.go)((async()=>{await i(this,n,"f")===t.Nil&&e()})),new a(i(this,n,"f"))}async isSome(){return await i(this,n,"f")!==t.Nil}async isNone(){return await i(this,n,"f")===t.Nil}orElse(e){const r=(0,o.go)((async()=>{const r=await i(this,n,"f");return r===t.Nil?e:r}));return new a(r)}map(e){const r=(0,o.go)((async()=>{const r=await i(this,n,"f");return r===t.Nil?t.Nil:e(r)}));return new a(r)}filter(e){const r=(0,o.go)((async()=>{const r=await i(this,n,"f");return r===t.Nil?t.Nil:e(r)?r:t.Nil}));return new a(r)}async get(){const e=await i(this,n,"f");if(e===t.Nil)throw new Error("Cannot get value from None");return e}}t.AsyncOptional=a,n=new WeakMap;class u extends a{static of(){return new u}constructor(){super(Promise.resolve(t.Nil))}}class c extends a{static of(t){return new c(t)}constructor(t){super(Promise.resolve(t))}}}(Kh),Vh.toOptionalAsync=Vh.toOptionalAsyncPartial=void 0;const Qh=cd,Yh=Kh;function Zh(t,e){const n=(0,Qh.go)((async()=>{const n=await t();return e(n)?Yh.Nil:n}));return new Yh.AsyncOptional(n)}Vh.toOptionalAsyncPartial=function(t){return e=>Zh(e,t)},Vh.toOptionalAsync=Zh;var Xh={};Xh.toOptionalPromise=Xh.toOptionalPromisePartial=void 0;const tp=cd,ep=Kh;function np(t,e){return new ep.AsyncOptional((0,tp.go)((async()=>{const n=await t;return e(n)?ep.Nil:n})))}Xh.toOptionalPromisePartial=function(t){return e=>np(e,t)},Xh.toOptionalPromise=np,function(t){t.toOptionalPromisePartial=t.toOptionalPromise=t.toOptionalAsyncPartial=t.toOptionalAsync=t.toOptionalPartial=t.toOptional=t.toResultPromise=t.toResultAsync=t.toResult=t.getErrorAsyncIterable=t.getErrorPromise=t.getErrorAsync=t.getError=t.getResultPromise=t.getResultAsync=t.getResult=t.isFailurePromise=t.isFailureAsync=t.isFailure=t.isSuccessPromise=t.isSuccessAsync=t.isSuccess=t.getFailurePromise=t.getFailureAsync=t.getFailure=t.getSuccessPromise=t.getSuccessAsync=t.getSuccess=t.getResultErrorPromise=t.getResultErrorAsync=t.getResultError=t.getErrorResultPromise=t.getErrorResultAsync=t.getErrorResult=void 0;var e=Bd;Object.defineProperty(t,"getErrorResult",{enumerable:!0,get:function(){return e.getErrorResult}});var n=Ld;Object.defineProperty(t,"getErrorResultAsync",{enumerable:!0,get:function(){return n.getErrorResultAsync}});var r=Dd;Object.defineProperty(t,"getErrorResultPromise",{enumerable:!0,get:function(){return r.getErrorResultPromise}});var i=Jd;Object.defineProperty(t,"getResultError",{enumerable:!0,get:function(){return i.getResultError}});var o=zd;Object.defineProperty(t,"getResultErrorAsync",{enumerable:!0,get:function(){return o.getResultErrorAsync}});var s=Gd;Object.defineProperty(t,"getResultErrorPromise",{enumerable:!0,get:function(){return s.getResultErrorPromise}});var a=Wd;Object.defineProperty(t,"getSuccess",{enumerable:!0,get:function(){return a.getSuccess}});var u=Hd;Object.defineProperty(t,"getSuccessAsync",{enumerable:!0,get:function(){return u.getSuccessAsync}});var c=$d;Object.defineProperty(t,"getSuccessPromise",{enumerable:!0,get:function(){return c.getSuccessPromise}});var l=Vd;Object.defineProperty(t,"getFailure",{enumerable:!0,get:function(){return l.getFailure}});var f=Kd;Object.defineProperty(t,"getFailureAsync",{enumerable:!0,get:function(){return f.getFailureAsync}});var d=Qd;Object.defineProperty(t,"getFailurePromise",{enumerable:!0,get:function(){return d.getFailurePromise}});var h=Yd;Object.defineProperty(t,"isSuccess",{enumerable:!0,get:function(){return h.isSuccess}});var p=Zd;Object.defineProperty(t,"isSuccessAsync",{enumerable:!0,get:function(){return p.isSuccessAsync}});var v=Xd;Object.defineProperty(t,"isSuccessPromise",{enumerable:!0,get:function(){return v.isSuccessPromise}});var y=th;Object.defineProperty(t,"isFailure",{enumerable:!0,get:function(){return y.isFailure}});var m=eh;Object.defineProperty(t,"isFailureAsync",{enumerable:!0,get:function(){return m.isFailureAsync}});var b=nh;Object.defineProperty(t,"isFailurePromise",{enumerable:!0,get:function(){return b.isFailurePromise}});var w=rh;Object.defineProperty(t,"getResult",{enumerable:!0,get:function(){return w.getResult}});var g=ih;Object.defineProperty(t,"getResultAsync",{enumerable:!0,get:function(){return g.getResultAsync}});var E=oh;Object.defineProperty(t,"getResultPromise",{enumerable:!0,get:function(){return E.getResultPromise}});var S=sh;Object.defineProperty(t,"getError",{enumerable:!0,get:function(){return S.getError}});var _=ah;Object.defineProperty(t,"getErrorAsync",{enumerable:!0,get:function(){return _.getErrorAsync}});var x=uh;Object.defineProperty(t,"getErrorPromise",{enumerable:!0,get:function(){return x.getErrorPromise}});var T=ch;Object.defineProperty(t,"getErrorAsyncIterable",{enumerable:!0,get:function(){return T.getErrorAsyncIterable}});var A=hh;Object.defineProperty(t,"toResult",{enumerable:!0,get:function(){return A.toResult}});var P=Sh;Object.defineProperty(t,"toResultAsync",{enumerable:!0,get:function(){return P.toResultAsync}});var O=Mh;Object.defineProperty(t,"toResultPromise",{enumerable:!0,get:function(){return O.toResultPromise}});var R=Bh;Object.defineProperty(t,"toOptional",{enumerable:!0,get:function(){return R.toOptional}}),Object.defineProperty(t,"toOptionalPartial",{enumerable:!0,get:function(){return R.toOptionalPartial}});var C=Vh;Object.defineProperty(t,"toOptionalAsync",{enumerable:!0,get:function(){return C.toOptionalAsync}}),Object.defineProperty(t,"toOptionalAsyncPartial",{enumerable:!0,get:function(){return C.toOptionalAsyncPartial}});var k=Xh;Object.defineProperty(t,"toOptionalPromise",{enumerable:!0,get:function(){return k.toOptionalPromise}}),Object.defineProperty(t,"toOptionalPromisePartial",{enumerable:!0,get:function(){return k.toOptionalPromisePartial}})}(Ud);var rp={ChannelClosedError:void 0};const ip=Pt;rp.ChannelClosedError=class extends ip.CustomError{},function(t){t.ChannelClosedError=t.Channel=void 0;const e=Ud,n=Qf,r=sd,i=rp,o=kd,s=Mo;t.Channel=class{constructor(){this.isClosed=!1,this.writeLock=new o.Mutex,this.writeSignalGroup=new r.SignalGroup,this.readSignalGroup=new r.SignalGroup,this.queue=new s.Queue}async send(t){if(this.isClosed)throw new i.ChannelClosedError;const r=await this.writeLock.acquire(),o=new n.Signal;this.readSignalGroup.add(o);try{if(this.isClosed)throw new i.ChannelClosedError;if(this.queue.enqueue(t),this.writeSignalGroup.emitAll(),await(0,e.isFailurePromise)(o))throw this.queue.empty(),new i.ChannelClosedError}finally{this.readSignalGroup.remove(o),r()}}receive(){return{[Symbol.asyncIterator]:()=>({next:async()=>{for(;0===this.queue.size;){if(this.isClosed)return{done:!0,value:void 0};const t=new n.Signal;this.writeSignalGroup.add(t);try{if(await(0,e.isFailurePromise)(t))return{done:!0,value:void 0}}finally{this.writeSignalGroup.remove(t)}}const t=this.queue.dequeue();return this.readSignalGroup.emitAll(),{done:!1,value:t}},return:async()=>(this.close(),{done:!0,value:void 0})})}}close(){this.isClosed||(this.isClosed=!0,this.writeSignalGroup.discardAll(),this.readSignalGroup.discardAll())}};var a=rp;Object.defineProperty(t,"ChannelClosedError",{enumerable:!0,get:function(){return a.ChannelClosedError}})}(qd);var op={};!function(t){t.ChannelClosedError=t.BufferedChannel=void 0;const e=Ud,n=Qf,r=sd,i=Mo,o=rp;Object.defineProperty(t,"ChannelClosedError",{enumerable:!0,get:function(){return o.ChannelClosedError}});t.BufferedChannel=class{constructor(t){this.bufferSize=t,this.isClosed=!1,this.enqueueSingalGroup=new r.SignalGroup,this.dequeueSignalGroup=new r.SignalGroup,this.buffer=new i.Queue}async send(t){if(this.isClosed)throw new o.ChannelClosedError;for(;this.buffer.size===this.bufferSize;){const t=new n.Signal;this.dequeueSignalGroup.add(t);try{if(await(0,e.isFailurePromise)(t))throw new o.ChannelClosedError}finally{this.dequeueSignalGroup.remove(t)}if(this.isClosed)throw new o.ChannelClosedError}this.buffer.enqueue(t),this.enqueueSingalGroup.emitAll()}receive(){return{[Symbol.asyncIterator]:()=>({next:async()=>{for(;0===this.buffer.size;){if(this.isClosed)return{done:!0,value:void 0};const t=new n.Signal;this.enqueueSingalGroup.add(t);try{if(await(0,e.isFailurePromise)(t))return{done:!0,value:void 0}}finally{this.enqueueSingalGroup.remove(t)}}const t=this.buffer.dequeue();return this.dequeueSignalGroup.emitAll(),{done:!1,value:t}},return:async()=>(this.close(),{done:!0,value:void 0})})}}close(){this.isClosed||(this.isClosed=!0,this.enqueueSingalGroup.discardAll(),this.dequeueSignalGroup.discardAll())}}}(op);var sp={};!function(t){t.ChannelClosedError=t.UnlimitedChannel=void 0;const e=Ud,n=Qf,r=sd,i=Mo,o=rp;t.UnlimitedChannel=class{constructor(){this.isClosed=!1,this.enqueueSignalGroup=new r.SignalGroup,this.buffer=new i.Queue}send(t){if(this.isClosed)throw new o.ChannelClosedError;this.buffer.enqueue(t),this.enqueueSignalGroup.emitAll()}receive(){return{[Symbol.asyncIterator]:()=>({next:async()=>{for(;0===this.buffer.size;){if(this.isClosed)return{done:!0,value:void 0};const t=new n.Signal;this.enqueueSignalGroup.add(t);try{if(await(0,e.isFailurePromise)(t))return{done:!0,value:void 0}}finally{this.enqueueSignalGroup.remove(t)}}return{done:!1,value:this.buffer.dequeue()}},return:async()=>(this.close(),{done:!0,value:void 0})})}}close(){this.isClosed||(this.isClosed=!0,this.enqueueSignalGroup.discardAll())}};var s=rp;Object.defineProperty(t,"ChannelClosedError",{enumerable:!0,get:function(){return s.ChannelClosedError}})}(sp);var ap={},up={validateConcurrency:void 0};const cp=Pt;up.validateConcurrency=function(t,e){(0,cp.assert)(e===1/0||Number.isInteger(e),`The parameter ${t} must be an integer`),(0,cp.assert)(e>=1,`The parameter ${t} must be greater than or equal to 1`)};var lp={exports:{}};!function(t){var e=Object.prototype.hasOwnProperty,n="~";function r(){}function i(t,e,n){this.fn=t,this.context=e,this.once=n||!1}function o(t,e,r,o,s){if("function"!=typeof r)throw new TypeError("The listener must be a function");var a=new i(r,o||t,s),u=n?n+e:e;return t._events[u]?t._events[u].fn?t._events[u]=[t._events[u],a]:t._events[u].push(a):(t._events[u]=a,t._eventsCount++),t}function s(t,e){0==--t._eventsCount?t._events=new r:delete t._events[e]}function a(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),a.prototype.eventNames=function(){var t,r,i=[];if(0===this._eventsCount)return i;for(r in t=this._events)e.call(t,r)&&i.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(t)):i},a.prototype.listeners=function(t){var e=n?n+t:t,r=this._events[e];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,o=r.length,s=new Array(o);i<o;i++)s[i]=r[i].fn;return s},a.prototype.listenerCount=function(t){var e=n?n+t:t,r=this._events[e];return r?r.fn?1:r.length:0},a.prototype.emit=function(t,e,r,i,o,s){var a=n?n+t:t;if(!this._events[a])return!1;var u,c,l=this._events[a],f=arguments.length;if(l.fn){switch(l.once&&this.removeListener(t,l.fn,void 0,!0),f){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,e),!0;case 3:return l.fn.call(l.context,e,r),!0;case 4:return l.fn.call(l.context,e,r,i),!0;case 5:return l.fn.call(l.context,e,r,i,o),!0;case 6:return l.fn.call(l.context,e,r,i,o,s),!0}for(c=1,u=new Array(f-1);c<f;c++)u[c-1]=arguments[c];l.fn.apply(l.context,u)}else{var d,h=l.length;for(c=0;c<h;c++)switch(l[c].once&&this.removeListener(t,l[c].fn,void 0,!0),f){case 1:l[c].fn.call(l[c].context);break;case 2:l[c].fn.call(l[c].context,e);break;case 3:l[c].fn.call(l[c].context,e,r);break;case 4:l[c].fn.call(l[c].context,e,r,i);break;default:if(!u)for(d=1,u=new Array(f-1);d<f;d++)u[d-1]=arguments[d];l[c].fn.apply(l[c].context,u)}}return!0},a.prototype.on=function(t,e,n){return o(this,t,e,n,!1)},a.prototype.once=function(t,e,n){return o(this,t,e,n,!0)},a.prototype.removeListener=function(t,e,r,i){var o=n?n+t:t;if(!this._events[o])return this;if(!e)return s(this,o),this;var a=this._events[o];if(a.fn)a.fn!==e||i&&!a.once||r&&a.context!==r||s(this,o);else{for(var u=0,c=[],l=a.length;u<l;u++)(a[u].fn!==e||i&&!a[u].once||r&&a[u].context!==r)&&c.push(a[u]);c.length?this._events[o]=1===c.length?c[0]:c:s(this,o)}return this},a.prototype.removeAllListeners=function(t){var e;return t?(e=n?n+t:t,this._events[e]&&s(this,e)):(this._events=new r,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=n,a.EventEmitter=a,t.exports=a}(lp);var fp,dp,hp,pp,vp,yp,mp=e&&e.__classPrivateFieldGet||function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)},bp=e&&e.__classPrivateFieldSet||function(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n};ap.TaskRunner=void 0;const wp=Fd,gp=Mo,Ep=up,Sp=lp.exports,_p=Ud;class xp extends Sp.EventEmitter{constructor(t=1/0){super(),fp.set(this,new Sp.EventEmitter),dp.set(this,new gp.Queue),hp.set(this,0),pp.set(this,void 0),vp.set(this,!0),yp.set(this,new wp.DebounceMicrotask),this.setConcurrency(t);const e=()=>{if(mp(this,vp,"f"))for(;mp(this,hp,"f")<mp(this,pp,"f")&&mp(this,dp,"f").size>0;){const t=mp(this,dp,"f").dequeue();this.run(t)}};mp(this,fp,"f").on("update",(()=>{mp(this,vp,"f")&&mp(this,yp,"f").queue(e)})),mp(this,fp,"f").on("start",(t=>{this.emit("started",t)})),mp(this,fp,"f").on("resolve",((t,n)=>{this.emit("resolved",t,n),mp(this,vp,"f")&&mp(this,yp,"f").queue(e)})),mp(this,fp,"f").on("reject",((t,e)=>{mp(this,fp,"f").emit("pause"),this.emit("rejected",t,e)})),mp(this,fp,"f").on("pause",(()=>{bp(this,vp,!1,"f"),mp(this,yp,"f").cancel(e)})),mp(this,fp,"f").on("resume",(()=>{mp(this,vp,"f")||(bp(this,vp,!0,"f"),mp(this,yp,"f").queue(e))}))}setConcurrency(t){(0,Ep.validateConcurrency)("concurrency",t),bp(this,pp,t,"f"),mp(this,fp,"f").emit("update")}push(...t){mp(this,dp,"f").enqueue(...t),mp(this,fp,"f").emit("update")}pause(){mp(this,fp,"f").emit("pause")}resume(){mp(this,fp,"f").emit("resume")}clear(){mp(this,dp,"f").empty()}async run(t){var e,n;bp(this,hp,(e=mp(this,hp,"f"),++e),"f"),mp(this,fp,"f").emit("start",t);const r=await(0,_p.toResultAsync)(t);bp(this,hp,(n=mp(this,hp,"f"),--n),"f"),r.isOk()?mp(this,fp,"f").emit("resolve",t,r.get()):mp(this,fp,"f").emit("reject",t,(0,_p.getError)((()=>r.get())))}}ap.TaskRunner=xp,fp=new WeakMap,dp=new WeakMap,hp=new WeakMap,pp=new WeakMap,vp=new WeakMap,yp=new WeakMap;var Tp={},Ap={},Pp={},Op={parallel:void 0};const Rp=up;Op.parallel=function(t,e=1/0){return(0,Rp.validateConcurrency)("concurrency",e),new Promise(((n,r)=>{let i=0,o=0,s=!0;const a=t[Symbol.iterator]();let u;for(let t=0;!u&&t<e;t++)c();if(0===i)return n();async function c(){if(!s)return;if(u&&0===o)return l();let t;if(({value:t,done:u}=a.next()),u)return void(0===o&&l());const e=t;i++,o++;try{await e()}catch(t){return function(t){var e;s=!1,u||null===(e=a.return)||void 0===e||e.call(a);r(t)}(t)}o--,c()}function l(){var t;s=!1,u||null===(t=a.return)||void 0===t||t.call(a),n()}}))},Pp.each=void 0;const Cp=Op,kp=up,jp=Ze,Ip=cd;Pp.each=function(t,e,n=1/0){return(0,kp.validateConcurrency)("concurrency",n),(0,Ip.go)((async()=>{const r=(0,jp.map)(t,((t,n)=>()=>e(t,n)));return await(0,Cp.parallel)(r,n)}))},Ap.map=void 0;const Np=Pp,Fp=up,Mp=cd;Ap.map=function(t,e,n=1/0){return(0,Fp.validateConcurrency)("concurrency",n),(0,Mp.go)((async()=>{const r=[];return await(0,Np.each)(t,(async(t,n)=>{r[n]=await e(t,n)}),n),r}))};var qp=function(t){return t&&t.Math==Math&&t},Up=qp("object"==typeof globalThis&&globalThis)||qp("object"==typeof window&&window)||qp("object"==typeof self&&self)||qp("object"==typeof e&&e)||function(){return this}()||Function("return this")(),Bp=Function.prototype,Lp=Bp.bind,Dp=Bp.call,Jp=Lp&&Lp.bind(Dp),zp=Lp?function(t){return t&&Jp(Dp,t)}:function(t){return t&&function(){return Dp.apply(t,arguments)}},Gp=function(t){try{return!!t()}catch(t){return!0}},Wp=zp,Hp=Wp({}.toString),$p=Wp("".slice),Vp=function(t){return $p(Hp(t),8,-1)},Kp=zp,Qp=Gp,Yp=Vp,Zp=Up.Object,Xp=Kp("".split),tv=Qp((function(){return!Zp("z").propertyIsEnumerable(0)}))?function(t){return"String"==Yp(t)?Xp(t,""):Zp(t)}:Zp,ev=Up.TypeError,nv=function(t){if(null==t)throw ev("Can't call method on "+t);return t},rv=tv,iv=nv,ov=function(t){return rv(iv(t))},sv={exports:{}},av=Up,uv=Object.defineProperty,cv=function(t,e){try{uv(av,t,{value:e,configurable:!0,writable:!0})}catch(n){av[t]=e}return e},lv=cv,fv=Up["__core-js_shared__"]||lv("__core-js_shared__",{}),dv=fv;(sv.exports=function(t,e){return dv[t]||(dv[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.20.0",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"});var hv,pv,vv=nv,yv=Up.Object,mv=function(t){return yv(vv(t))},bv=mv,wv=zp({}.hasOwnProperty),gv=Object.hasOwn||function(t,e){return wv(bv(t),e)},Ev=zp,Sv=0,_v=Math.random(),xv=Ev(1..toString),Tv=function(t){return"Symbol("+(void 0===t?"":t)+")_"+xv(++Sv+_v,36)},Av=function(t){return"function"==typeof t},Pv=Up,Ov=Av,Rv=function(t){return Ov(t)?t:void 0},Cv=function(t,e){return arguments.length<2?Rv(Pv[t]):Pv[t]&&Pv[t][e]},kv=Up,jv=Cv("navigator","userAgent")||"",Iv=kv.process,Nv=kv.Deno,Fv=Iv&&Iv.versions||Nv&&Nv.version,Mv=Fv&&Fv.v8;Mv&&(pv=(hv=Mv.split("."))[0]>0&&hv[0]<4?1:+(hv[0]+hv[1])),!pv&&jv&&(!(hv=jv.match(/Edge\/(\d+)/))||hv[1]>=74)&&(hv=jv.match(/Chrome\/(\d+)/))&&(pv=+hv[1]);var qv=pv,Uv=Gp,Bv=!!Object.getOwnPropertySymbols&&!Uv((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&qv&&qv<41})),Lv=Bv&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Dv=Up,Jv=sv.exports,zv=gv,Gv=Tv,Wv=Bv,Hv=Lv,$v=Jv("wks"),Vv=Dv.Symbol,Kv=Vv&&Vv.for,Qv=Hv?Vv:Vv&&Vv.withoutSetter||Gv,Yv=function(t){if(!zv($v,t)||!Wv&&"string"!=typeof $v[t]){var e="Symbol."+t;Wv&&zv(Vv,t)?$v[t]=Vv[t]:$v[t]=Hv&&Kv?Kv(e):Qv(e)}return $v[t]},Zv=Av,Xv=function(t){return"object"==typeof t?null!==t:Zv(t)},ty=Up,ey=Xv,ny=ty.String,ry=ty.TypeError,iy=function(t){if(ey(t))return t;throw ry(ny(t)+" is not an object")},oy=!Gp((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),sy={},ay=Xv,uy=Up.document,cy=ay(uy)&&ay(uy.createElement),ly=function(t){return cy?uy.createElement(t):{}},fy=ly,dy=!oy&&!Gp((function(){return 7!=Object.defineProperty(fy("div"),"a",{get:function(){return 7}}).a})),hy=Function.prototype.call,py=hy.bind?hy.bind(hy):function(){return hy.apply(hy,arguments)},vy=zp({}.isPrototypeOf),yy=Cv,my=Av,by=vy,wy=Lv,gy=Up.Object,Ey=wy?function(t){return"symbol"==typeof t}:function(t){var e=yy("Symbol");return my(e)&&by(e.prototype,gy(t))},Sy=Up.String,_y=function(t){try{return Sy(t)}catch(t){return"Object"}},xy=Av,Ty=_y,Ay=Up.TypeError,Py=function(t){if(xy(t))return t;throw Ay(Ty(t)+" is not a function")},Oy=Py,Ry=function(t,e){var n=t[e];return null==n?void 0:Oy(n)},Cy=py,ky=Av,jy=Xv,Iy=Up.TypeError,Ny=py,Fy=Xv,My=Ey,qy=Ry,Uy=function(t,e){var n,r;if("string"===e&&ky(n=t.toString)&&!jy(r=Cy(n,t)))return r;if(ky(n=t.valueOf)&&!jy(r=Cy(n,t)))return r;if("string"!==e&&ky(n=t.toString)&&!jy(r=Cy(n,t)))return r;throw Iy("Can't convert object to primitive value")},By=Yv,Ly=Up.TypeError,Dy=By("toPrimitive"),Jy=function(t,e){if(!Fy(t)||My(t))return t;var n,r=qy(t,Dy);if(r){if(void 0===e&&(e="default"),n=Ny(r,t,e),!Fy(n)||My(n))return n;throw Ly("Can't convert object to primitive value")}return void 0===e&&(e="number"),Uy(t,e)},zy=Ey,Gy=function(t){var e=Jy(t,"string");return zy(e)?e:e+""},Wy=oy,Hy=dy,$y=iy,Vy=Gy,Ky=Up.TypeError,Qy=Object.defineProperty;sy.f=Wy?Qy:function(t,e,n){if($y(t),e=Vy(e),$y(n),Hy)try{return Qy(t,e,n)}catch(t){}if("get"in n||"set"in n)throw Ky("Accessors not supported");return"value"in n&&(t[e]=n.value),t};var Yy,Zy=Math.ceil,Xy=Math.floor,tm=function(t){var e=+t;return e!=e||0===e?0:(e>0?Xy:Zy)(e)},em=tm,nm=Math.max,rm=Math.min,im=tm,om=Math.min,sm=function(t){return t>0?om(im(t),9007199254740991):0},am=function(t){return sm(t.length)},um=ov,cm=function(t,e){var n=em(t);return n<0?nm(n+e,0):rm(n,e)},lm=am,fm=function(t){return function(e,n,r){var i,o=um(e),s=lm(o),a=cm(r,s);if(t&&n!=n){for(;s>a;)if((i=o[a++])!=i)return!0}else for(;s>a;a++)if((t||a in o)&&o[a]===n)return t||a||0;return!t&&-1}},dm={includes:fm(!0),indexOf:fm(!1)},hm={},pm=gv,vm=ov,ym=dm.indexOf,mm=hm,bm=zp([].push),wm=function(t,e){var n,r=vm(t),i=0,o=[];for(n in r)!pm(mm,n)&&pm(r,n)&&bm(o,n);for(;e.length>i;)pm(r,n=e[i++])&&(~ym(o,n)||bm(o,n));return o},gm=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Em=wm,Sm=gm,_m=Object.keys||function(t){return Em(t,Sm)},xm=sy,Tm=iy,Am=ov,Pm=_m,Om=oy?Object.defineProperties:function(t,e){Tm(t);for(var n,r=Am(e),i=Pm(e),o=i.length,s=0;o>s;)xm.f(t,n=i[s++],r[n]);return t},Rm=Cv("document","documentElement"),Cm=sv.exports,km=Tv,jm=Cm("keys"),Im=function(t){return jm[t]||(jm[t]=km(t))},Nm=iy,Fm=Om,Mm=gm,qm=hm,Um=Rm,Bm=ly,Lm=Im("IE_PROTO"),Dm=function(){},Jm=function(t){return"<script>"+t+"<\/script>"},zm=function(t){t.write(Jm("")),t.close();var e=t.parentWindow.Object;return t=null,e},Gm=function(){try{Yy=new ActiveXObject("htmlfile")}catch(t){}var t,e;Gm="undefined"!=typeof document?document.domain&&Yy?zm(Yy):((e=Bm("iframe")).style.display="none",Um.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(Jm("document.F=Object")),t.close(),t.F):zm(Yy);for(var n=Mm.length;n--;)delete Gm.prototype[Mm[n]];return Gm()};qm[Lm]=!0;var Wm=Object.create||function(t,e){var n;return null!==t?(Dm.prototype=Nm(t),n=new Dm,Dm.prototype=null,n[Lm]=t):n=Gm(),void 0===e?n:Fm(n,e)},Hm=Wm,$m=sy,Vm=Yv("unscopables"),Km=Array.prototype;null==Km[Vm]&&$m.f(Km,Vm,{configurable:!0,value:Hm(null)});var Qm={},Ym=Av,Zm=fv,Xm=zp(Function.toString);Ym(Zm.inspectSource)||(Zm.inspectSource=function(t){return Xm(t)});var tb,eb,nb,rb=Zm.inspectSource,ib=Av,ob=rb,sb=Up.WeakMap,ab=ib(sb)&&/native code/.test(ob(sb)),ub=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},cb=sy,lb=ub,fb=oy?function(t,e,n){return cb.f(t,e,lb(1,n))}:function(t,e,n){return t[e]=n,t},db=ab,hb=Up,pb=zp,vb=Xv,yb=fb,mb=gv,bb=fv,wb=Im,gb=hm,Eb=hb.TypeError,Sb=hb.WeakMap;if(db||bb.state){var _b=bb.state||(bb.state=new Sb),xb=pb(_b.get),Tb=pb(_b.has),Ab=pb(_b.set);tb=function(t,e){if(Tb(_b,t))throw new Eb("Object already initialized");return e.facade=t,Ab(_b,t,e),e},eb=function(t){return xb(_b,t)||{}},nb=function(t){return Tb(_b,t)}}else{var Pb=wb("state");gb[Pb]=!0,tb=function(t,e){if(mb(t,Pb))throw new Eb("Object already initialized");return e.facade=t,yb(t,Pb,e),e},eb=function(t){return mb(t,Pb)?t[Pb]:{}},nb=function(t){return mb(t,Pb)}}var Ob={set:tb,get:eb,has:nb,enforce:function(t){return nb(t)?eb(t):tb(t,{})},getterFor:function(t){return function(e){var n;if(!vb(e)||(n=eb(e)).type!==t)throw Eb("Incompatible receiver, "+t+" required");return n}}},Rb={},Cb={},kb={}.propertyIsEnumerable,jb=Object.getOwnPropertyDescriptor,Ib=jb&&!kb.call({1:2},1);Cb.f=Ib?function(t){var e=jb(this,t);return!!e&&e.enumerable}:kb;var Nb=oy,Fb=py,Mb=Cb,qb=ub,Ub=ov,Bb=Gy,Lb=gv,Db=dy,Jb=Object.getOwnPropertyDescriptor;Rb.f=Nb?Jb:function(t,e){if(t=Ub(t),e=Bb(e),Db)try{return Jb(t,e)}catch(t){}if(Lb(t,e))return qb(!Fb(Mb.f,t,e),t[e])};var zb={exports:{}},Gb=oy,Wb=gv,Hb=Function.prototype,$b=Gb&&Object.getOwnPropertyDescriptor,Vb=Wb(Hb,"name"),Kb={EXISTS:Vb,PROPER:Vb&&"something"===function(){}.name,CONFIGURABLE:Vb&&(!Gb||Gb&&$b(Hb,"name").configurable)},Qb=Up,Yb=Av,Zb=gv,Xb=fb,tw=cv,ew=rb,nw=Kb.CONFIGURABLE,rw=Ob.get,iw=Ob.enforce,ow=String(String).split("String");(zb.exports=function(t,e,n,r){var i,o=!!r&&!!r.unsafe,s=!!r&&!!r.enumerable,a=!!r&&!!r.noTargetGet,u=r&&void 0!==r.name?r.name:e;Yb(n)&&("Symbol("===String(u).slice(0,7)&&(u="["+String(u).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Zb(n,"name")||nw&&n.name!==u)&&Xb(n,"name",u),(i=iw(n)).source||(i.source=ow.join("string"==typeof u?u:""))),t!==Qb?(o?!a&&t[e]&&(s=!0):delete t[e],s?t[e]=n:Xb(t,e,n)):s?t[e]=n:tw(e,n)})(Function.prototype,"toString",(function(){return Yb(this)&&rw(this).source||ew(this)}));var sw={},aw=wm,uw=gm.concat("length","prototype");sw.f=Object.getOwnPropertyNames||function(t){return aw(t,uw)};var cw={};cw.f=Object.getOwnPropertySymbols;var lw,fw,dw,hw=Cv,pw=sw,vw=cw,yw=iy,mw=zp([].concat),bw=hw("Reflect","ownKeys")||function(t){var e=pw.f(yw(t)),n=vw.f;return n?mw(e,n(t)):e},ww=gv,gw=bw,Ew=Rb,Sw=sy,_w=Gp,xw=Av,Tw=/#|\.prototype\./,Aw=function(t,e){var n=Ow[Pw(t)];return n==Cw||n!=Rw&&(xw(e)?_w(e):!!e)},Pw=Aw.normalize=function(t){return String(t).replace(Tw,".").toLowerCase()},Ow=Aw.data={},Rw=Aw.NATIVE="N",Cw=Aw.POLYFILL="P",kw=Aw,jw=Up,Iw=Rb.f,Nw=fb,Fw=zb.exports,Mw=cv,qw=function(t,e,n){for(var r=gw(e),i=Sw.f,o=Ew.f,s=0;s<r.length;s++){var a=r[s];ww(t,a)||n&&ww(n,a)||i(t,a,o(e,a))}},Uw=kw,Bw=function(t,e){var n,r,i,o,s,a=t.target,u=t.global,c=t.stat;if(n=u?jw:c?jw[a]||Mw(a,{}):(jw[a]||{}).prototype)for(r in e){if(o=e[r],i=t.noTargetGet?(s=Iw(n,r))&&s.value:n[r],!Uw(u?r:a+(c?".":"#")+r,t.forced)&&void 0!==i){if(typeof o==typeof i)continue;qw(o,i)}(t.sham||i&&i.sham)&&Nw(o,"sham",!0),Fw(n,r,o,t)}},Lw=!Gp((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Dw=Up,Jw=gv,zw=Av,Gw=mv,Ww=Lw,Hw=Im("IE_PROTO"),$w=Dw.Object,Vw=$w.prototype,Kw=Ww?$w.getPrototypeOf:function(t){var e=Gw(t);if(Jw(e,Hw))return e[Hw];var n=e.constructor;return zw(n)&&e instanceof n?n.prototype:e instanceof $w?Vw:null},Qw=Gp,Yw=Av,Zw=Kw,Xw=zb.exports,tg=Yv("iterator"),eg=!1;[].keys&&("next"in(dw=[].keys())?(fw=Zw(Zw(dw)))!==Object.prototype&&(lw=fw):eg=!0),(null==lw||Qw((function(){var t={};return lw[tg].call(t)!==t})))&&(lw={}),Yw(lw[tg])||Xw(lw,tg,(function(){return this}));var ng={IteratorPrototype:lw,BUGGY_SAFARI_ITERATORS:eg},rg=sy.f,ig=gv,og=Yv("toStringTag"),sg=function(t,e,n){t&&!n&&(t=t.prototype),t&&!ig(t,og)&&rg(t,og,{configurable:!0,value:e})},ag=ng.IteratorPrototype,ug=Wm,cg=ub,lg=sg,fg=Qm,dg=function(){return this},hg=Up,pg=Av,vg=hg.String,yg=hg.TypeError,mg=zp,bg=iy,wg=function(t){if("object"==typeof t||pg(t))return t;throw yg("Can't set "+vg(t)+" as a prototype")},gg=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=mg(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return bg(n),wg(r),e?t(n,r):n.__proto__=r,n}}():void 0),Eg=Bw,Sg=py,_g=Kb,xg=Av,Tg=function(t,e,n,r){var i=e+" Iterator";return t.prototype=ug(ag,{next:cg(+!r,n)}),lg(t,i,!1),fg[i]=dg,t},Ag=Kw,Pg=gg,Og=sg,Rg=fb,Cg=zb.exports,kg=Qm,jg=_g.PROPER,Ig=_g.CONFIGURABLE,Ng=ng.IteratorPrototype,Fg=ng.BUGGY_SAFARI_ITERATORS,Mg=Yv("iterator"),qg=function(){return this},Ug=ov,Bg=function(t){Km[Vm][t]=!0},Lg=Qm,Dg=Ob,Jg=sy.f,zg=function(t,e,n,r,i,o,s){Tg(n,e,r);var a,u,c,l=function(t){if(t===i&&v)return v;if(!Fg&&t in h)return h[t];switch(t){case"keys":case"values":case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},f=e+" Iterator",d=!1,h=t.prototype,p=h[Mg]||h["@@iterator"]||i&&h[i],v=!Fg&&p||l(i),y="Array"==e&&h.entries||p;if(y&&(a=Ag(y.call(new t)))!==Object.prototype&&a.next&&(Ag(a)!==Ng&&(Pg?Pg(a,Ng):xg(a[Mg])||Cg(a,Mg,qg)),Og(a,f,!0)),jg&&"values"==i&&p&&"values"!==p.name&&(Ig?Rg(h,"name","values"):(d=!0,v=function(){return Sg(p,this)})),i)if(u={values:l("values"),keys:o?v:l("keys"),entries:l("entries")},s)for(c in u)(Fg||d||!(c in h))&&Cg(h,c,u[c]);else Eg({target:e,proto:!0,forced:Fg||d},u);return h[Mg]!==v&&Cg(h,Mg,v,{name:i}),kg[e]=v,u},Gg=oy,Wg=Dg.set,Hg=Dg.getterFor("Array Iterator");zg(Array,"Array",(function(t,e){Wg(this,{type:"Array Iterator",target:Ug(t),index:0,kind:e})}),(function(){var t=Hg(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values");var $g=Lg.Arguments=Lg.Array;if(Bg("keys"),Bg("values"),Bg("entries"),Gg&&"values"!==$g.name)try{Jg($g,"name",{value:"values"})}catch(pS){}var Vg=Py,Kg=zp(zp.bind),Qg=Qm,Yg=Yv("iterator"),Zg=Array.prototype,Xg={};Xg[Yv("toStringTag")]="z";var tE=Up,eE="[object z]"===String(Xg),nE=Av,rE=Vp,iE=Yv("toStringTag"),oE=tE.Object,sE="Arguments"==rE(function(){return arguments}()),aE=eE?rE:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=oE(t),iE))?n:sE?rE(e):"Object"==(r=rE(e))&&nE(e.callee)?"Arguments":r},uE=Ry,cE=Qm,lE=Yv("iterator"),fE=function(t){if(null!=t)return uE(t,lE)||uE(t,"@@iterator")||cE[aE(t)]},dE=py,hE=Py,pE=iy,vE=_y,yE=fE,mE=Up.TypeError,bE=py,wE=iy,gE=Ry,EE=function(t,e){return Vg(t),void 0===e?t:Kg?Kg(t,e):function(){return t.apply(e,arguments)}},SE=py,_E=iy,xE=_y,TE=function(t){return void 0!==t&&(Qg.Array===t||Zg[Yg]===t)},AE=am,PE=vy,OE=function(t,e){var n=arguments.length<2?yE(t):e;if(hE(n))return pE(dE(n,t));throw mE(vE(t)+" is not iterable")},RE=fE,CE=function(t,e,n){var r,i;wE(t);try{if(!(r=gE(t,"return"))){if("throw"===e)throw n;return n}r=bE(r,t)}catch(t){i=!0,r=t}if("throw"===e)throw n;if(i)throw r;return wE(r),n},kE=Up.TypeError,jE=function(t,e){this.stopped=t,this.result=e},IE=jE.prototype,NE=Gy,FE=sy,ME=ub,qE=function(t,e,n){var r,i,o,s,a,u,c,l=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),p=EE(e,l),v=function(t){return r&&CE(r,"normal",t),new jE(!0,t)},y=function(t){return f?(_E(t),h?p(t[0],t[1],v):p(t[0],t[1])):h?p(t,v):p(t)};if(d)r=t;else{if(!(i=RE(t)))throw kE(xE(t)+" is not iterable");if(TE(i)){for(o=0,s=AE(t);s>o;o++)if((a=y(t[o]))&&PE(IE,a))return a;return new jE(!1)}r=OE(t,i)}for(u=r.next;!(c=SE(u,r)).done;){try{a=y(c.value)}catch(t){CE(r,"throw",t)}if("object"==typeof a&&a&&PE(IE,a))return a}return new jE(!1)},UE=function(t,e,n){var r=NE(e);r in t?FE.f(t,r,ME(0,n)):t[r]=n};Bw({target:"Object",stat:!0},{fromEntries:function(t){var e={};return qE(t,(function(t,n){UE(e,t,n)}),{AS_ENTRIES:!0}),e}}),Up.Object.fromEntries,Tp.all=void 0;const BE=Ap,LE=cd;Tp.all=function(t){return(0,LE.go)((async()=>{const e=Object.entries(t),n=await(0,BE.map)(e,(async([t,e])=>[t,await e]));return Object.fromEntries(n)}))};var DE={};DE.asyncify=void 0,DE.asyncify=function(t){return async function(...e){return Reflect.apply(t,this,await Promise.all(e))}};var JE={};JE.callbackify=function(t){return function(...e){const n=e.slice(0,-1),r=e[e.length-1];t(...n).then((t=>r(null,t)),(t=>r(t)))}};var zE,GE={};
|
|
30
|
-
/*! *****************************************************************************
|
|
31
|
-
Copyright (C) Microsoft. All rights reserved.
|
|
32
|
-
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
33
|
-
this file except in compliance with the License. You may obtain a copy of the
|
|
34
|
-
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
35
|
-
|
|
36
|
-
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
37
|
-
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
38
|
-
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
39
|
-
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
40
|
-
|
|
41
|
-
See the Apache Version 2.0 License for specific language governing permissions
|
|
42
|
-
and limitations under the License.
|
|
43
|
-
***************************************************************************** */!function(t){!function(n){var r="object"==typeof e?e:"object"==typeof self?self:"object"==typeof this?this:Function("return this;")(),i=o(t);function o(t,e){return function(n,r){"function"!=typeof t[n]&&Object.defineProperty(t,n,{configurable:!0,writable:!0,value:r}),e&&e(n,r)}}void 0===r.Reflect?r.Reflect=t:i=o(r.Reflect,i),function(t){var e=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,r=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",i=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",o="function"==typeof Object.create,s={__proto__:[]}instanceof Array,a=!o&&!s,u={create:o?function(){return rt(Object.create(null))}:s?function(){return rt({__proto__:null})}:function(){return rt({})},has:a?function(t,n){return e.call(t,n)}:function(t,e){return e in t},get:a?function(t,n){return e.call(t,n)?t[n]:void 0}:function(t,e){return t[e]}},c=Object.getPrototypeOf(Function),l="object"==typeof process&&process.env&&"true"===process.env.REFLECT_METADATA_USE_MAP_POLYFILL,f=l||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?tt():Map,d=l||"function"!=typeof Set||"function"!=typeof Set.prototype.entries?et():Set,h=new(l||"function"!=typeof WeakMap?nt():WeakMap);function p(t,e,n,r){if(F(n)){if(!G(t))throw new TypeError;if(!H(e))throw new TypeError;return x(t,e)}if(!G(t))throw new TypeError;if(!U(e))throw new TypeError;if(!U(r)&&!F(r)&&!M(r))throw new TypeError;return M(r)&&(r=void 0),T(t,e,n=z(n),r)}function v(t,e){function n(n,r){if(!U(n))throw new TypeError;if(!F(r)&&!$(r))throw new TypeError;k(t,e,n,r)}return n}function y(t,e,n,r){if(!U(n))throw new TypeError;return F(r)||(r=z(r)),k(t,e,n,r)}function m(t,e,n){if(!U(e))throw new TypeError;return F(n)||(n=z(n)),P(t,e,n)}function b(t,e,n){if(!U(e))throw new TypeError;return F(n)||(n=z(n)),O(t,e,n)}function w(t,e,n){if(!U(e))throw new TypeError;return F(n)||(n=z(n)),R(t,e,n)}function g(t,e,n){if(!U(e))throw new TypeError;return F(n)||(n=z(n)),C(t,e,n)}function E(t,e){if(!U(t))throw new TypeError;return F(e)||(e=z(e)),j(t,e)}function S(t,e){if(!U(t))throw new TypeError;return F(e)||(e=z(e)),I(t,e)}function _(t,e,n){if(!U(e))throw new TypeError;F(n)||(n=z(n));var r=A(e,n,!1);if(F(r))return!1;if(!r.delete(t))return!1;if(r.size>0)return!0;var i=h.get(e);return i.delete(n),i.size>0||h.delete(e),!0}function x(t,e){for(var n=t.length-1;n>=0;--n){var r=(0,t[n])(e);if(!F(r)&&!M(r)){if(!H(r))throw new TypeError;e=r}}return e}function T(t,e,n,r){for(var i=t.length-1;i>=0;--i){var o=(0,t[i])(e,n,r);if(!F(o)&&!M(o)){if(!U(o))throw new TypeError;r=o}}return r}function A(t,e,n){var r=h.get(t);if(F(r)){if(!n)return;r=new f,h.set(t,r)}var i=r.get(e);if(F(i)){if(!n)return;i=new f,r.set(e,i)}return i}function P(t,e,n){if(O(t,e,n))return!0;var r=X(e);return!M(r)&&P(t,r,n)}function O(t,e,n){var r=A(e,n,!1);return!F(r)&&D(r.has(t))}function R(t,e,n){if(O(t,e,n))return C(t,e,n);var r=X(e);return M(r)?void 0:R(t,r,n)}function C(t,e,n){var r=A(e,n,!1);if(!F(r))return r.get(t)}function k(t,e,n,r){A(n,r,!0).set(t,e)}function j(t,e){var n=I(t,e),r=X(t);if(null===r)return n;var i=j(r,e);if(i.length<=0)return n;if(n.length<=0)return i;for(var o=new d,s=[],a=0,u=n;a<u.length;a++){var c=u[a];o.has(c)||(o.add(c),s.push(c))}for(var l=0,f=i;l<f.length;l++){c=f[l];o.has(c)||(o.add(c),s.push(c))}return s}function I(t,e){var n=[],r=A(t,e,!1);if(F(r))return n;for(var i=K(r.keys()),o=0;;){var s=Y(i);if(!s)return n.length=o,n;var a=Q(s);try{n[o]=a}catch(t){try{Z(i)}finally{throw t}}o++}}function N(t){if(null===t)return 1;switch(typeof t){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===t?1:6;default:return 6}}function F(t){return void 0===t}function M(t){return null===t}function q(t){return"symbol"==typeof t}function U(t){return"object"==typeof t?null!==t:"function"==typeof t}function B(t,e){switch(N(t)){case 0:case 1:case 2:case 3:case 4:case 5:return t}var n=3===e?"string":5===e?"number":"default",i=V(t,r);if(void 0!==i){var o=i.call(t,n);if(U(o))throw new TypeError;return o}return L(t,"default"===n?"number":n)}function L(t,e){if("string"===e){var n=t.toString;if(W(n))if(!U(i=n.call(t)))return i;if(W(r=t.valueOf))if(!U(i=r.call(t)))return i}else{var r;if(W(r=t.valueOf))if(!U(i=r.call(t)))return i;var i,o=t.toString;if(W(o))if(!U(i=o.call(t)))return i}throw new TypeError}function D(t){return!!t}function J(t){return""+t}function z(t){var e=B(t,3);return q(e)?e:J(e)}function G(t){return Array.isArray?Array.isArray(t):t instanceof Object?t instanceof Array:"[object Array]"===Object.prototype.toString.call(t)}function W(t){return"function"==typeof t}function H(t){return"function"==typeof t}function $(t){switch(N(t)){case 3:case 4:return!0;default:return!1}}function V(t,e){var n=t[e];if(null!=n){if(!W(n))throw new TypeError;return n}}function K(t){var e=V(t,i);if(!W(e))throw new TypeError;var n=e.call(t);if(!U(n))throw new TypeError;return n}function Q(t){return t.value}function Y(t){var e=t.next();return!e.done&&e}function Z(t){var e=t.return;e&&e.call(t)}function X(t){var e=Object.getPrototypeOf(t);if("function"!=typeof t||t===c)return e;if(e!==c)return e;var n=t.prototype,r=n&&Object.getPrototypeOf(n);if(null==r||r===Object.prototype)return e;var i=r.constructor;return"function"!=typeof i||i===t?e:i}function tt(){var t={},e=[],n=function(){function t(t,e,n){this._index=0,this._keys=t,this._values=e,this._selector=n}return t.prototype["@@iterator"]=function(){return this},t.prototype[i]=function(){return this},t.prototype.next=function(){var t=this._index;if(t>=0&&t<this._keys.length){var n=this._selector(this._keys[t],this._values[t]);return t+1>=this._keys.length?(this._index=-1,this._keys=e,this._values=e):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},t.prototype.throw=function(t){throw this._index>=0&&(this._index=-1,this._keys=e,this._values=e),t},t.prototype.return=function(t){return this._index>=0&&(this._index=-1,this._keys=e,this._values=e),{value:t,done:!0}},t}();return function(){function e(){this._keys=[],this._values=[],this._cacheKey=t,this._cacheIndex=-2}return Object.defineProperty(e.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),e.prototype.has=function(t){return this._find(t,!1)>=0},e.prototype.get=function(t){var e=this._find(t,!1);return e>=0?this._values[e]:void 0},e.prototype.set=function(t,e){var n=this._find(t,!0);return this._values[n]=e,this},e.prototype.delete=function(e){var n=this._find(e,!1);if(n>=0){for(var r=this._keys.length,i=n+1;i<r;i++)this._keys[i-1]=this._keys[i],this._values[i-1]=this._values[i];return this._keys.length--,this._values.length--,e===this._cacheKey&&(this._cacheKey=t,this._cacheIndex=-2),!0}return!1},e.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=t,this._cacheIndex=-2},e.prototype.keys=function(){return new n(this._keys,this._values,r)},e.prototype.values=function(){return new n(this._keys,this._values,o)},e.prototype.entries=function(){return new n(this._keys,this._values,s)},e.prototype["@@iterator"]=function(){return this.entries()},e.prototype[i]=function(){return this.entries()},e.prototype._find=function(t,e){return this._cacheKey!==t&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=t)),this._cacheIndex<0&&e&&(this._cacheIndex=this._keys.length,this._keys.push(t),this._values.push(void 0)),this._cacheIndex},e}();function r(t,e){return t}function o(t,e){return e}function s(t,e){return[t,e]}}function et(){return function(){function t(){this._map=new f}return Object.defineProperty(t.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),t.prototype.has=function(t){return this._map.has(t)},t.prototype.add=function(t){return this._map.set(t,t),this},t.prototype.delete=function(t){return this._map.delete(t)},t.prototype.clear=function(){this._map.clear()},t.prototype.keys=function(){return this._map.keys()},t.prototype.values=function(){return this._map.values()},t.prototype.entries=function(){return this._map.entries()},t.prototype["@@iterator"]=function(){return this.keys()},t.prototype[i]=function(){return this.keys()},t}()}function nt(){var t=16,n=u.create(),r=i();return function(){function t(){this._key=i()}return t.prototype.has=function(t){var e=o(t,!1);return void 0!==e&&u.has(e,this._key)},t.prototype.get=function(t){var e=o(t,!1);return void 0!==e?u.get(e,this._key):void 0},t.prototype.set=function(t,e){return o(t,!0)[this._key]=e,this},t.prototype.delete=function(t){var e=o(t,!1);return void 0!==e&&delete e[this._key]},t.prototype.clear=function(){this._key=i()},t}();function i(){var t;do{t="@@WeakMap@@"+c()}while(u.has(n,t));return n[t]=!0,t}function o(t,n){if(!e.call(t,r)){if(!n)return;Object.defineProperty(t,r,{value:u.create()})}return t[r]}function s(t,e){for(var n=0;n<e;++n)t[n]=255*Math.random()|0;return t}function a(t){return"function"==typeof Uint8Array?"undefined"!=typeof crypto?crypto.getRandomValues(new Uint8Array(t)):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(new Uint8Array(t)):s(new Uint8Array(t),t):s(new Array(t),t)}function c(){var e=a(t);e[6]=79&e[6]|64,e[8]=191&e[8]|128;for(var n="",r=0;r<t;++r){var i=e[r];4!==r&&6!==r&&8!==r||(n+="-"),i<16&&(n+="0"),n+=i.toString(16).toLowerCase()}return n}}function rt(t){return t.__=void 0,delete t.__,t}t("decorate",p),t("metadata",v),t("defineMetadata",y),t("hasMetadata",m),t("hasOwnMetadata",b),t("getMetadata",w),t("getOwnMetadata",g),t("getMetadataKeys",E),t("getOwnMetadataKeys",S),t("deleteMetadata",_)}(i)}()}(zE||(zE={}));var WE={},HE={};function $E(t){return Array.isArray(t)}HE.isntEmptyArray=HE.isEmptyArray=HE.isntArray=HE.isArray=void 0,HE.isArray=$E,HE.isntArray=function(t){return!$E(t)},HE.isEmptyArray=function(t){return 0===t.length},HE.isntEmptyArray=function(t){return 0!==t.length};var VE={},KE={};function QE(t){return null===t}KE.isntNull=KE.isNull=void 0,KE.isNull=QE,KE.isntNull=function(t){return!QE(t)};var YE={};function ZE(t){return void 0===t}YE.isntUndefined=YE.isUndefined=void 0,YE.isUndefined=ZE,YE.isntUndefined=function(t){return!ZE(t)},VE.isntAsyncIterable=VE.isAsyncIterable=void 0;const XE=KE,tS=YE;function eS(t){return(0,XE.isntNull)(t)&&(0,tS.isntUndefined)(t)&&"function"==typeof t[Symbol.asyncIterator]}VE.isAsyncIterable=eS,VE.isntAsyncIterable=function(t){return!eS(t)};var nS={};function rS(t){return"bigint"==typeof t}nS.isntBigInt=nS.isBigInt=void 0,nS.isBigInt=rS,nS.isntBigInt=function(t){return!rS(t)};var iS={};function oS(t){return"boolean"==typeof t}iS.isntBoolean=iS.isBoolean=void 0,iS.isBoolean=oS,iS.isntBoolean=function(t){return!oS(t)};var sS={},aS={};function uS(t){return"string"==typeof t}aS.isntString=aS.isString=void 0,aS.isString=uS,aS.isntString=function(t){return!uS(t)},sS.isntChar=sS.isChar=void 0;const cS=aS;function lS(t){return(0,cS.isString)(t)&&1===t.length}sS.isChar=lS,sS.isntChar=function(t){return!lS(t)};var fS={};function dS(t){return t instanceof Date}fS.isntDate=fS.isDate=void 0,fS.isDate=dS,fS.isntDate=function(t){return!dS(t)};var hS={};hS.inEnum=void 0,hS.inEnum=function(t,e){return Object.values(e).includes(t)};var pS={};function vS(t){return t instanceof Error}pS.isntError=pS.isError=void 0,pS.isError=vS,pS.isntError=function(t){return!vS(t)};var yS={};function mS(t){return!t}yS.isntFalsy=yS.isFalsy=void 0,yS.isFalsy=mS,yS.isntFalsy=function(t){return!mS(t)};var bS={};function wS(t){return"function"==typeof t}bS.isntFunction=bS.isFunction=void 0,bS.isFunction=wS,bS.isntFunction=function(t){return!wS(t)};var gS={};gS.isntIterable=gS.isIterable=void 0;const ES=KE,SS=YE;function _S(t){return(0,ES.isntNull)(t)&&(0,SS.isntUndefined)(t)&&"function"==typeof t[Symbol.iterator]}gS.isIterable=_S,gS.isntIterable=function(t){return!_S(t)};var xS={},TS={};var AS=Function.prototype,PS=Object.prototype,OS=AS.toString,RS=PS.hasOwnProperty,CS=OS.call(Object),kS=PS.toString,jS=function(t,e){return function(n){return t(e(n))}}(Object.getPrototypeOf,Object);var IS=function(t){if(!function(t){return!!t&&"object"==typeof t}(t)||"[object Object]"!=kS.call(t)||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}(t))return!1;var e=jS(t);if(null===e)return!0;var n=RS.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&OS.call(n)==CS},NS=e&&e.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};TS.isntEmptyObject=TS.isEmptyObject=TS.isntPlainObject=TS.isPlainObject=TS.isntObject=TS.isObject=void 0;const FS=NS(IS);function MS(t){return null!==t&&"object"==typeof t}function qS(t){return(0,FS.default)(t)}TS.isObject=MS,TS.isntObject=function(t){return!MS(t)},TS.isPlainObject=qS,TS.isntPlainObject=function(t){return!qS(t)},TS.isEmptyObject=function(t){return 0===Object.keys(t).length},TS.isntEmptyObject=function(t){return 0!==Object.keys(t).length};var US={};function BS(t){return"number"==typeof t}US.isntNumber=US.isNumber=void 0,US.isNumber=BS,US.isntNumber=function(t){return!BS(t)},xS.isntJsonRpcError=xS.isJsonRpcError=xS.isntJsonRpcSuccess=xS.isJsonRpcSuccess=xS.isntJsonRpcRequest=xS.isJsonRpcRequest=xS.isntJsonRpcNotification=xS.isJsonRpcNotification=void 0;const LS=HE,DS=TS,JS=aS,zS=US,GS=YE;function WS(t){return(0,JS.isString)(t)||(0,zS.isNumber)(t)}function HS(t){return(0,LS.isArray)(t)||(0,DS.isObject)(t)}function $S(t){return(0,DS.isPlainObject)(t)&&(0,JS.isString)(t.jsonrpc)&&(0,JS.isString)(t.method)&&(0,GS.isUndefined)(t.id)&&HS(t.params)}function VS(t){return(0,DS.isPlainObject)(t)&&(0,JS.isString)(t.jsonrpc)&&(0,JS.isString)(t.method)&&WS(t.id)&&HS(t.params)}function KS(t){return(0,DS.isPlainObject)(t)&&(0,JS.isString)(t.jsonrpc)&&(0,JS.isString)(t.id)&&"result"in t}function QS(t){return(0,DS.isPlainObject)(t)&&(0,JS.isString)(t.jsonrpc)&&WS(t.id)&&function(t){return(0,DS.isPlainObject)(t)&&(0,zS.isNumber)(t.code)&&(0,JS.isString)(t.message)&&((0,GS.isUndefined)(t.data)||(0,DS.isObject)(t.data))}(t.error)}xS.isJsonRpcNotification=$S,xS.isntJsonRpcNotification=function(t){return!$S(t)},xS.isJsonRpcRequest=VS,xS.isntJsonRpcRequest=function(t){return!VS(t)},xS.isJsonRpcSuccess=KS,xS.isntJsonRpcSuccess=function(t){return!KS(t)},xS.isJsonRpcError=QS,xS.isntJsonRpcError=function(t){return!QS(t)};var YS={};YS.isntJson=YS.isJson=void 0,YS.isJson=function(t){try{return JSON.stringify(t),!0}catch(t){return!1}},YS.isntJson=function t(e){return!t()};var ZS={};ZS.isAbsoluteURL=void 0,ZS.isAbsoluteURL=function(t){try{return new URL(t),!0}catch(t){return!1}},function(t){var n=e&&e.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=e&&e.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};r(HE,t),r(VE,t),r(nS,t),r(iS,t),r(sS,t),r(fS,t),r(hS,t),r(pS,t),r(yS,t),r(bS,t),r(gS,t),r(xS,t),r(YS,t),r(KE,t),r(US,t),r(TS,t),r(aS,t),r(YE,t),r(ZS,t)}(WE),GE.Cascadable=GE.cascadify=void 0;const XS=WE,t_="extra-promise:cascadable";GE.cascadify=function(t){let e=Promise.resolve(t);const{proxy:n,revoke:r}=Proxy.revocable(t,{get(t,i){return(0,XS.isFunction)(o())?(...s)=>{const a=Reflect.apply(o(),t,s);return e=e.then((()=>a)),function(t,e){return Reflect.getMetadata(t_,t,e)}(t,i)?n:(r(),e)}:(r(),e.then((()=>o())));function o(){return Reflect.get(t,i)}}});return n},GE.Cascadable=function(t,e){Reflect.defineMetadata(t_,!0,t,e)};var e_={};e_.delay=void 0,e_.delay=function(t){return new Promise((e=>setTimeout(e,t)))};var n_={filter:void 0};const r_=Pp,i_=up,o_=cd;n_.filter=function(t,e,n=1/0){return(0,i_.validateConcurrency)("concurrency",n),(0,o_.go)((async()=>{const r=[];return await(0,r_.each)(t,(async(t,n)=>{await e(t,n)&&(r[n]=t)}),n),Object.values(r)}))};var s_={};s_.isPromise=void 0,s_.isPromise=function(t){return t instanceof Promise};var a_={isPromiseLike:void 0};const u_=WE;a_.isPromiseLike=function(t){return(0,u_.isObject)(t)&&(0,u_.isFunction)(t.then)};var c_={isntPromise:void 0};const l_=s_;c_.isntPromise=function(t){return!(0,l_.isPromise)(t)};var f_={isntPromiseLike:void 0};const d_=a_;f_.isntPromiseLike=function(t){return!(0,d_.isPromiseLike)(t)};var h_={};h_.promisify=function(t){return function(...e){return new Promise(((n,r)=>{t(...e,((t,e)=>{if(t)return r(t);n(e)}))}))}};var p_={};p_.raceAbortSignals=void 0,p_.raceAbortSignals=function(t){const e=new AbortController,n=[];for(const i of t)if(i){if(i.aborted){e.abort();break}i.addEventListener("abort",r),n.push(i)}return e.signal;function r(){e.abort(),n.forEach((t=>t.removeEventListener("abort",r)))}};var v_={};v_.series=void 0,v_.series=async function(t){for(const e of t)await e()};var y_={};y_.TimeoutError=y_.timeout=void 0;const m_=Pt;y_.timeout=function(t){return new Promise(((e,n)=>{setTimeout((()=>n(new b_)),t)}))};class b_ extends m_.CustomError{}y_.TimeoutError=b_;var w_={};w_.timeoutSignal=void 0,w_.timeoutSignal=function(t){const e=new AbortController;return setTimeout((()=>e.abort()),t),e.signal};var g_={};g_.waterfall=void 0,g_.waterfall=async function(t){let e;for(const n of t)e=await n(e);return e};var E_={pad:void 0};const S_=e_,__=Ud;E_.pad=async function(t,e){const n=Date.now(),[r,i]=await(0,__.getErrorResultAsync)((async()=>e()));if(r)throw r;return Date.now()-n<t&&await(0,S_.delay)(t),i};var x_={};x_.AbortError=x_.withAbortSignal=void 0;const T_=Pt;x_.withAbortSignal=async function(t,e){return new Promise((async(n,r)=>{if(t.aborted)return i();t.addEventListener("abort",i);try{n(await e())}catch(t){r(t)}finally{t.removeEventListener("abort",i)}function i(){r(new A_)}}))};class A_ extends T_.CustomError{}x_.AbortError=A_;var P_={toExtraPromise:void 0};const O_=Fo;P_.toExtraPromise=function(t){return new O_.ExtraPromise((async(e,n)=>{try{e(await t)}catch(t){n(t)}}))};var R_={},C_={},k_={};k_.of=void 0,k_.of=function*(t){yield t};var j_={repeat:void 0};const I_=Pt,N_=cd;j_.repeat=function(t,e=1/0){return(0,I_.assert)(e===1/0||Number.isInteger(e),"The parameter times must be an integer"),(0,N_.go)((function*(){for(;e-- >0;)yield t}))};var F_={};F_.countdown=void 0,F_.countdown=function*(t,e){if(!(t<e))for(let n=t;n>=e;n--)yield n};var M_={};M_.countup=void 0,M_.countup=function*(t,e){if(!(t>e))for(let n=t;n<=e;n++)yield n};var q_={range:void 0};const U_=Pt;q_.range=function(t,e,n=1){return(0,U_.assert)(n>0,"step parameter must be greater than 0"),function*(t,e,n){if(t<e)for(let r=t;r<e;r+=n)yield r;else for(let r=t;r>e;r-=n)yield r}(t,e,n)};var B_={};B_.stringifyJSONStream=void 0,B_.stringifyJSONStream=function*(t){var e;const n=t[Symbol.iterator]();let r;try{let t;for(({value:t,done:r}=n.next()),yield"[",r||(yield JSON.stringify(t));({value:t,done:r}=n.next()),!r;)yield","+JSON.stringify(t);yield"]"}finally{r||null===(e=n.return)||void 0===e||e.call(n)}};var L_={};L_.stringifyJSONStreamAsync=void 0,L_.stringifyJSONStreamAsync=async function*(t){var e;const n=t[Symbol.asyncIterator]();let r;try{let t;for(({value:t,done:r}=await n.next()),yield"[",r||(yield JSON.stringify(t));({value:t,done:r}=await n.next()),!r;)yield","+JSON.stringify(t);yield"]"}finally{r||await(null===(e=n.return)||void 0===e?void 0:e.call(n))}};var D_={};D_.stringifyNDJSONStream=void 0,D_.stringifyNDJSONStream=function*(t){var e;const n=t[Symbol.iterator]();let r;try{let t;for(({value:t,done:r}=n.next()),r||(yield JSON.stringify(t));({value:t,done:r}=n.next()),!r;)yield"\n"+JSON.stringify(t)}finally{r||null===(e=n.return)||void 0===e||e.call(n)}};var J_={};J_.stringifyNDJSONStreamAsync=void 0,J_.stringifyNDJSONStreamAsync=async function*(t){var e;const n=t[Symbol.asyncIterator]();let r;try{let t;for(({value:t,done:r}=await n.next()),r||(yield JSON.stringify(t));({value:t,done:r}=await n.next()),!r;)yield"\n"+JSON.stringify(t)}finally{r||await(null===(e=n.return)||void 0===e?void 0:e.call(n))}};var z_={};z_.sse=void 0,z_.sse=function*(t){t.event&&(yield`event: ${t.event}\n`);for(const e of t.data.split("\n"))yield`data: ${e}\n`;t.id&&(yield`id: ${t.id}\n`),t.retry&&(yield`retry: ${t.retry}\n`),yield"\n"};var G_={},W_={},H_={},$_=e&&e.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};H_.lazy=void 0;const V_=$_(_d);H_.lazy=function(t){return(0,V_.default)(t)};var K_={lazyFunction:void 0};const Q_=H_;K_.lazyFunction=function(t){const e=(0,Q_.lazy)(t);return(...t)=>e()(...t)},function(t){var n=e&&e.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=e&&e.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};r(H_,t),r(K_,t)}(W_);var Y_,Z_=e&&e.__classPrivateFieldGet||function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)},X_=e&&e.__classPrivateFieldSet||function(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n};G_.ReusableIterable=void 0;const tx=W_;class ex{constructor(t){Y_.set(this,void 0),this.getIterator=(0,tx.lazy)((()=>t[Symbol.iterator]()))}get done(){return Z_(this,Y_,"f")}close(){var t,e;this.done||(X_(this,Y_,!0,"f"),null===(e=(t=this.getIterator()).return)||void 0===e||e.call(t))}[(Y_=new WeakMap,Symbol.iterator)](){return{next:()=>{if(Z_(this,Y_,"f"))return{done:!0,value:void 0};const{value:t,done:e}=this.getIterator().next();return e&&X_(this,Y_,!0,"f"),{value:t,done:e}}}}}G_.ReusableIterable=ex;var nx,rx={},ix=e&&e.__classPrivateFieldGet||function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)},ox=e&&e.__classPrivateFieldSet||function(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n};rx.ReusableAsyncIterable=void 0;const sx=W_;class ax{constructor(t){nx.set(this,void 0),this.getIterator=(0,sx.lazy)((()=>t[Symbol.asyncIterator]()))}get done(){return ix(this,nx,"f")}async close(){var t,e;this.done||(ox(this,nx,!0,"f"),await(null===(e=(t=this.getIterator()).return)||void 0===e?void 0:e.call(t)))}[(nx=new WeakMap,Symbol.asyncIterator)](){return{next:async()=>{if(ix(this,nx,"f"))return{done:!0,value:void 0};const{value:t,done:e}=await this.getIterator().next();return e&&ox(this,nx,!0,"f"),{value:t,done:e}}}}}rx.ReusableAsyncIterable=ax;var ux={};ux.timestampBasedId=void 0,ux.timestampBasedId=function*(){const t=Date.now();yield[t,0];let e=t,n=0;for(;;){const t=Date.now();t===e?yield[e,++n]:(n=0,e=t,yield[e,n])}},function(t){var n=e&&e.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=e&&e.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};r(k_,t),r(j_,t),r(F_,t),r(M_,t),r(q_,t),r(B_,t),r(L_,t),r(D_,t),r(J_,t),r(z_,t),r(G_,t),r(rx,t),r(ux,t)}(C_),R_.spawn=void 0;const cx=Pp,lx=C_;R_.spawn=async function(t,e){await(0,cx.each)((0,lx.countup)(1,t),(t=>e(t)))};var fx={queueConcurrency:void 0};const dx=ap,hx=Mf;fx.queueConcurrency=function(t,e){const n=new dx.TaskRunner(t);return async function(...t){const r=new hx.Deferred;return n.push((async()=>{try{r.resolve(await e.apply(this,t))}catch(t){r.reject(t)}})),await r}};var px={throttleConcurrency:void 0};const vx=up;px.throttleConcurrency=function(t,e){(0,vx.validateConcurrency)("concurrency",t);let n=0;return function(...r){if(n<t)return n++,Promise.resolve(e.apply(this,r)).finally((()=>n--))}};var yx={};yx.throttleUntilDone=void 0,yx.throttleUntilDone=function(t){let e;return function(){return e||(e=Promise.resolve(t.apply(this)).finally((()=>e=void 0))),e}},function(t){var n=e&&e.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=e&&e.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};r(Fo,t),r(Mf,t),r(Df,t),r($f,t),r(Qf,t),r(sd,t),r(ud,t),r(kd,t),r(Fd,t),r(qd,t),r(op,t),r(sp,t),r(ap,t),r(Tp,t),r(DE,t),r(JE,t),r(GE,t),r(e_,t),r(Pp,t),r(n_,t),r(s_,t),r(a_,t),r(c_,t),r(f_,t),r(Ap,t),r(Op,t),r(h_,t),r(p_,t),r(v_,t),r(y_,t),r(w_,t),r(g_,t),r(E_,t),r(x_,t),r(P_,t),r(R_,t),r(fx,t),r(px,t),r(yx,t)}(No);class mx{constructor(t){this.options=t}acquire(e,n={}){var i,o,s;return t(this,void 0,void 0,(function*(){const t=null!==(i=n.token)&&void 0!==i?i:this.options.token,a=y.get(wt.url(this.options.server),wt.pathname(`geyser/${e}`),t&&wt.searchParams({token:t}),wt.signal(No.raceAbortSignals([n.signal,!1!==n.timeout&&(null!==(o=n.timeout&&No.timeoutSignal(n.timeout))&&void 0!==o?o:this.options.timeout&&No.timeoutSignal(this.options.timeout))])),wt.keepalive(null!==(s=n.keepalive)&&void 0!==s?s:this.options.keepalive));yield r.fetch(a).then(me.ok)}))}}class bx{constructor(t){this.options=t}getCommonTransformers(t){var e,n;return[wt.url(this.options.server),wt.bearerAuth(this.options.adminPassword),wt.signal(No.raceAbortSignals([t.signal,!1!==t.timeout&&(null!==(e=t.timeout&&No.timeoutSignal(t.timeout))&&void 0!==e?e:this.options.timeout&&No.timeoutSignal(this.options.timeout))])),wt.keepalive(null!==(n=t.keepalive)&&void 0!==n?n:this.options.keepalive)]}}class wx extends bx{getNamespaces(e={}){return t(this,void 0,void 0,(function*(){const t=y.get(...this.getCommonTransformers(e),wt.pathname("/admin/geyser-with-config"));return yield r.fetch(t).then(me.ok).then(me.toJSON)}))}get(e,n={}){return t(this,void 0,void 0,(function*(){const t=y.get(...this.getCommonTransformers(n),wt.pathname(`/admin/geyser/${e}/config`));return yield r.fetch(t).then(me.ok).then(me.toJSON)}))}setDuration(e,n,i={}){return t(this,void 0,void 0,(function*(){const t=y.put(...this.getCommonTransformers(i),wt.pathname(`/admin/geyser/${e}/config/duration`),wt.json(n));yield r.fetch(t).then(me.ok)}))}removeDuration(e,n={}){return t(this,void 0,void 0,(function*(){const t=y.del(...this.getCommonTransformers(n),wt.pathname(`/admin/geyser/${e}/config/duration`));yield r.fetch(t).then(me.ok)}))}setLimit(e,n,i={}){return t(this,void 0,void 0,(function*(){const t=y.put(...this.getCommonTransformers(i),wt.pathname(`/admin/geyser/${e}/config/limit`),wt.json(n));yield r.fetch(t).then(me.ok)}))}removeLimit(e,n={}){return t(this,void 0,void 0,(function*(){const t=y.del(...this.getCommonTransformers(n),wt.pathname(`/admin/geyser/${e}/config/limit`));yield r.fetch(t).then(me.ok)}))}}class gx extends bx{getNamespaces(e={}){return t(this,void 0,void 0,(function*(){const t=y.get(...this.getCommonTransformers(e),wt.pathname("/admin/blacklist"));return yield r.fetch(t).then(me.ok).then(me.toJSON)}))}add(e,n={}){return t(this,void 0,void 0,(function*(){const t=y.put(...this.getCommonTransformers(n),wt.pathname(`/admin/blacklist/${e}`));yield r.fetch(t).then(me.ok)}))}remove(e,n={}){return t(this,void 0,void 0,(function*(){const t=y.del(...this.getCommonTransformers(n),wt.pathname(`/admin/blacklist/${e}`));yield r.fetch(t).then(me.ok)}))}}class Ex extends bx{getNamespaces(e={}){return t(this,void 0,void 0,(function*(){const t=y.get(...this.getCommonTransformers(e),wt.pathname("/admin/whitelist"));return yield r.fetch(t).then(me.ok).then(me.toJSON)}))}add(e,n={}){return t(this,void 0,void 0,(function*(){const t=y.put(...this.getCommonTransformers(n),wt.pathname(`/admin/whitelist/${e}`));yield r.fetch(t).then(me.ok)}))}remove(e,n={}){return t(this,void 0,void 0,(function*(){const t=y.del(...this.getCommonTransformers(n),wt.pathname(`/admin/whitelist/${e}`));yield r.fetch(t).then(me.ok)}))}}class Sx extends bx{getNamespaces(e={}){return t(this,void 0,void 0,(function*(){const t=y.get(...this.getCommonTransformers(e),wt.pathname("/admin/geyser-with-token-policies"));return yield r.fetch(t).then(me.ok).then(me.toJSON)}))}get(e,n={}){return t(this,void 0,void 0,(function*(){const t=y.get(...this.getCommonTransformers(n),wt.pathname(`/admin/geyser/${e}/token-policies`));return yield r.fetch(t).then(me.ok).then(me.toJSON)}))}setAcquireTokenRequired(e,n,i={}){return t(this,void 0,void 0,(function*(){const t=y.put(...this.getCommonTransformers(i),wt.pathname(`/admin/geyser/${e}/token-policies/acquire-token-required`),wt.json(n));yield r.fetch(t).then(me.ok)}))}removeAcquireTokenRequired(e,n={}){return t(this,void 0,void 0,(function*(){const t=y.del(...this.getCommonTransformers(n),wt.pathname(`/admin/geyser/${e}/token-policies/acquire-token-required`));yield r.fetch(t).then(me.ok)}))}}class _x extends bx{getNamespaces(e={}){return t(this,void 0,void 0,(function*(){const t=y.get(...this.getCommonTransformers(e),wt.pathname("/admin/geyser-with-tokens"));return yield r.fetch(t).then(me.ok).then(me.toJSON)}))}getTokens(e,n={}){return t(this,void 0,void 0,(function*(){const t=y.get(...this.getCommonTransformers(n),wt.pathname(`/admin/geyser/${e}/tokens`));return yield r.fetch(t).then(me.ok).then(me.toJSON)}))}addAcquireToken(e,n,i={}){return t(this,void 0,void 0,(function*(){const t=y.put(...this.getCommonTransformers(i),wt.pathname(`/admin/geyser/${e}/tokens/${n}/acquire`));yield r.fetch(t).then(me.ok)}))}removeAcquireToken(e,n,i={}){return t(this,void 0,void 0,(function*(){const t=y.del(...this.getCommonTransformers(i),wt.pathname(`/admin/geyser/${e}/tokens/${n}/acquire`));yield r.fetch(t).then(me.ok)}))}}class xx{constructor(t){this.options=t,this.Configuration=new wx(this.options),this.Blacklist=new gx(this.options),this.Whitelist=new Ex(this.options),this.TokenPolicy=new Sx(this.options),this.Token=new _x(this.options)}}var Tx=r.AbortError,Ax=we.HTTPClientError,Px=me.HTTPError;export{Tx as AbortError,mx as GeyserClient,xx as GeyserManager,Ax as HTTPClientError,Px as HTTPError};
|
|
15
|
+
function e(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach((function(n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})})),t}var r={},o={fetch:void 0};o.fetch=globalThis.fetch.bind(globalThis);var i={Headers:void 0};i.Headers=globalThis.Headers;var s={Request:void 0};s.Request=globalThis.Request;var a={Response:void 0};a.Response=globalThis.Response;var c={FormData:void 0};c.FormData=globalThis.FormData;var u={AbortController:void 0};u.AbortController=globalThis.AbortController;var l={AbortError:void 0};l.AbortError=globalThis.DOMException;var d={Blob:void 0};d.Blob=globalThis.Blob;var f,h,p,y={};y.EventSource=void 0,y.EventSource=globalThis.EventSource,f=r,h=t&&t.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),(p=t&&t.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||h(t,e,n)})(o,f),p(i,f),p(s,f),p(a,f),p(c,f),p(u,f),p(l,f),p(d,f),p(y,f);var v={},m=n(Object.freeze({__proto__:null})),g={},b={},w={};function A(e){return Array.isArray(e)}w.isntEmptyArray=w.isEmptyArray=w.isntArray=w.isArray=void 0,w.isArray=A,w.isntArray=function(e){return!A(e)},w.isEmptyArray=function(e){return 0===e.length},w.isntEmptyArray=function(e){return 0!==e.length};var S={},R={};function E(e){return null===e}R.isntNull=R.isNull=void 0,R.isNull=E,R.isntNull=function(e){return!E(e)};var _={};function T(e){return void 0===e}_.isntUndefined=_.isUndefined=void 0,_.isUndefined=T,_.isntUndefined=function(e){return!T(e)},S.isntAsyncIterable=S.isAsyncIterable=void 0;const x=R,C=_;function k(e){return(0,x.isntNull)(e)&&(0,C.isntUndefined)(e)&&"function"==typeof e[Symbol.asyncIterator]}S.isAsyncIterable=k,S.isntAsyncIterable=function(e){return!k(e)};var O={};function I(e){return"bigint"==typeof e}O.isntBigInt=O.isBigInt=void 0,O.isBigInt=I,O.isntBigInt=function(e){return!I(e)};var N={};function P(e){return"boolean"==typeof e}N.isntBoolean=N.isBoolean=void 0,N.isBoolean=P,N.isntBoolean=function(e){return!P(e)};var U={},q={};function j(e){return"string"==typeof e}q.isntString=q.isString=void 0,q.isString=j,q.isntString=function(e){return!j(e)},U.isntChar=U.isChar=void 0;const F=q;function L(e){return(0,F.isString)(e)&&1===e.length}U.isChar=L,U.isntChar=function(e){return!L(e)};var B={};function D(e){return e instanceof Date}B.isntDate=B.isDate=void 0,B.isDate=D,B.isntDate=function(e){return!D(e)};var M={};M.inEnum=void 0,M.inEnum=function(e,t){return Object.values(t).includes(e)};var H={};function J(e){return e instanceof Error}H.isntError=H.isError=void 0,H.isError=J,H.isntError=function(e){return!J(e)};var z={};function $(e){return!e}z.isntFalsy=z.isFalsy=void 0,z.isFalsy=$,z.isntFalsy=function(e){return!$(e)};var G={};function V(e){return"function"==typeof e}G.isntFunction=G.isFunction=void 0,G.isFunction=V,G.isntFunction=function(e){return!V(e)};var K={};K.isntIterable=K.isIterable=void 0;const W=R,Z=_;function Q(e){return(0,W.isntNull)(e)&&(0,Z.isntUndefined)(e)&&"function"==typeof e[Symbol.iterator]}K.isIterable=Q,K.isntIterable=function(e){return!Q(e)};var Y={},X={};var ee=Function.prototype,te=Object.prototype,ne=ee.toString,re=te.hasOwnProperty,oe=ne.call(Object),ie=te.toString,se=function(e,t){return function(n){return e(t(n))}}(Object.getPrototypeOf,Object);var ae=function(e){if(!function(e){return!!e&&"object"==typeof e}(e)||"[object Object]"!=ie.call(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e))return!1;var t=se(e);if(null===t)return!0;var n=re.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ne.call(n)==oe},ce=t&&t.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};X.isntEmptyObject=X.isEmptyObject=X.isntPlainObject=X.isPlainObject=X.isntObject=X.isObject=void 0;const ue=ce(ae);function le(e){return null!==e&&"object"==typeof e}function de(e){return(0,ue.default)(e)}X.isObject=le,X.isntObject=function(e){return!le(e)},X.isPlainObject=de,X.isntPlainObject=function(e){return!de(e)},X.isEmptyObject=function(e){return 0===Object.keys(e).length},X.isntEmptyObject=function(e){return 0!==Object.keys(e).length};var fe={};function he(e){return"number"==typeof e}fe.isntNumber=fe.isNumber=void 0,fe.isNumber=he,fe.isntNumber=function(e){return!he(e)},Y.isntJsonRpcError=Y.isJsonRpcError=Y.isntJsonRpcSuccess=Y.isJsonRpcSuccess=Y.isntJsonRpcRequest=Y.isJsonRpcRequest=Y.isntJsonRpcNotification=Y.isJsonRpcNotification=void 0;const pe=w,ye=X,ve=q,me=fe,ge=_;function be(e){return(0,ve.isString)(e)||(0,me.isNumber)(e)}function we(e){return(0,pe.isArray)(e)||(0,ye.isObject)(e)}function Ae(e){return(0,ye.isPlainObject)(e)&&(0,ve.isString)(e.jsonrpc)&&(0,ve.isString)(e.method)&&(0,ge.isUndefined)(e.id)&&we(e.params)}function Se(e){return(0,ye.isPlainObject)(e)&&(0,ve.isString)(e.jsonrpc)&&(0,ve.isString)(e.method)&&be(e.id)&&we(e.params)}function Re(e){return(0,ye.isPlainObject)(e)&&(0,ve.isString)(e.jsonrpc)&&(0,ve.isString)(e.id)&&"result"in e}function Ee(e){return(0,ye.isPlainObject)(e)&&(0,ve.isString)(e.jsonrpc)&&be(e.id)&&function(e){return(0,ye.isPlainObject)(e)&&(0,me.isNumber)(e.code)&&(0,ve.isString)(e.message)&&((0,ge.isUndefined)(e.data)||(0,ye.isObject)(e.data))}(e.error)}Y.isJsonRpcNotification=Ae,Y.isntJsonRpcNotification=function(e){return!Ae(e)},Y.isJsonRpcRequest=Se,Y.isntJsonRpcRequest=function(e){return!Se(e)},Y.isJsonRpcSuccess=Re,Y.isntJsonRpcSuccess=function(e){return!Re(e)},Y.isJsonRpcError=Ee,Y.isntJsonRpcError=function(e){return!Ee(e)};var _e={};_e.isntJson=_e.isJson=void 0,_e.isJson=function(e){try{return JSON.stringify(e),!0}catch(e){return!1}},_e.isntJson=function e(t){return!e()};var Te={};Te.isAbsoluteURL=void 0,Te.isAbsoluteURL=function(e){try{return new URL(e),!0}catch(e){return!1}},function(e){var n=t&&t.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=t&&t.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};r(w,e),r(S,e),r(O,e),r(N,e),r(U,e),r(B,e),r(M,e),r(H,e),r(z,e),r(G,e),r(K,e),r(Y,e),r(_e,e),r(R,e),r(fe,e),r(X,e),r(q,e),r(_,e),r(Te,e)}(b),g.del=g.patch=g.put=g.post=g.head=g.get=void 0;const xe=r,Ce=b;function ke(e,...t){const n=t.reduce(((e,t)=>(0,Ce.isFunction)(t)?t(e):e),{url:new URL("http://localhost"),headers:new xe.Headers}),r=new xe.Headers(n.headers);return new xe.Request(n.url.href,{method:e,headers:r,signal:n.signal,body:n.payload,keepalive:n.keepalive})}g.get=function(...e){return ke("GET",...e)},g.head=function(...e){return ke("HEAD",...e)},g.post=function(...e){return ke("POST",...e)},g.put=function(...e){return ke("PUT",...e)},g.patch=function(...e){return ke("PATCH",...e)},g.del=function(...e){return ke("DELETE",...e)},function(e){var n=t&&t.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=t&&t.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};r(m,e),r(g,e)}(v);var Oe={},Ie={};Ie.url=void 0,Ie.url=function(...e){return t=>({...t,url:new URL(e.reduce(((e,t)=>new URL(t,e).href)))})};var Ne={text:void 0};const Pe=r;Ne.text=function(e){return t=>{const n=new Pe.Headers(t.headers);return n.set("Content-Type","application/x-www-form-urlencoded"),{...t,headers:n,payload:e}}};var Ue={json:void 0};const qe=r;Ue.json=function(e){return t=>{const n=new qe.Headers(t.headers);return n.set("Content-Type","application/json"),{...t,headers:n,payload:JSON.stringify(e)}}};var je={},Fe={exports:{}};Fe.exports=function e(){var t="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==t?t:{},n=!t.document&&!!t.postMessage,r=n&&/blob:/i.test((t.location||{}).protocol),o={},i=0,s={parse:function(n,r){var a=(r=r||{}).dynamicTyping||!1;if(A(a)&&(r.dynamicTypingFunction=a,a={}),r.dynamicTyping=a,r.transform=!!A(r.transform)&&r.transform,r.worker&&s.WORKERS_SUPPORTED){var c=function(){if(!s.WORKERS_SUPPORTED)return!1;var n,r,a=(n=t.URL||t.webkitURL||null,r=e.toString(),s.BLOB_URL||(s.BLOB_URL=n.createObjectURL(new Blob(["(",r,")();"],{type:"text/javascript"})))),c=new t.Worker(a);return c.onmessage=v,c.id=i++,o[c.id]=c}();return c.userStep=r.step,c.userChunk=r.chunk,c.userComplete=r.complete,c.userError=r.error,r.step=A(r.step),r.chunk=A(r.chunk),r.complete=A(r.complete),r.error=A(r.error),delete r.worker,void c.postMessage({input:n,config:r,workerId:c.id})}var h=null;return s.NODE_STREAM_INPUT,"string"==typeof n?h=r.download?new u(r):new d(r):!0===n.readable&&A(n.read)&&A(n.on)?h=new f(r):(t.File&&n instanceof File||n instanceof Object)&&(h=new l(r)),h.stream(n)},unparse:function(e,t){var n=!1,r=!0,o=",",i="\r\n",a='"',c=a+a,u=!1,l=null,d=!1;!function(){if("object"==typeof t){if("string"!=typeof t.delimiter||s.BAD_DELIMITERS.filter((function(e){return-1!==t.delimiter.indexOf(e)})).length||(o=t.delimiter),("boolean"==typeof t.quotes||"function"==typeof t.quotes||Array.isArray(t.quotes))&&(n=t.quotes),"boolean"!=typeof t.skipEmptyLines&&"string"!=typeof t.skipEmptyLines||(u=t.skipEmptyLines),"string"==typeof t.newline&&(i=t.newline),"string"==typeof t.quoteChar&&(a=t.quoteChar),"boolean"==typeof t.header&&(r=t.header),Array.isArray(t.columns)){if(0===t.columns.length)throw new Error("Option columns is empty");l=t.columns}void 0!==t.escapeChar&&(c=t.escapeChar+a),"boolean"==typeof t.escapeFormulae&&(d=t.escapeFormulae)}}();var f=new RegExp(p(a),"g");if("string"==typeof e&&(e=JSON.parse(e)),Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return h(null,e,u);if("object"==typeof e[0])return h(l||Object.keys(e[0]),e,u)}else if("object"==typeof e)return"string"==typeof e.data&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||(e.fields=e.meta&&e.meta.fields),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:"object"==typeof e.data[0]?Object.keys(e.data[0]):[]),Array.isArray(e.data[0])||"object"==typeof e.data[0]||(e.data=[e.data])),h(e.fields||[],e.data||[],u);throw new Error("Unable to serialize unrecognized input");function h(e,t,n){var s="";"string"==typeof e&&(e=JSON.parse(e)),"string"==typeof t&&(t=JSON.parse(t));var a=Array.isArray(e)&&0<e.length,c=!Array.isArray(t[0]);if(a&&r){for(var u=0;u<e.length;u++)0<u&&(s+=o),s+=y(e[u],u);0<t.length&&(s+=i)}for(var l=0;l<t.length;l++){var d=a?e.length:t[l].length,f=!1,h=a?0===Object.keys(t[l]).length:0===t[l].length;if(n&&!a&&(f="greedy"===n?""===t[l].join("").trim():1===t[l].length&&0===t[l][0].length),"greedy"===n&&a){for(var p=[],v=0;v<d;v++){var m=c?e[v]:v;p.push(t[l][m])}f=""===p.join("").trim()}if(!f){for(var g=0;g<d;g++){0<g&&!h&&(s+=o);var b=a&&c?e[g]:g;s+=y(t[l][b],g)}l<t.length-1&&(!n||0<d&&!h)&&(s+=i)}}return s}function y(e,t){if(null==e)return"";if(e.constructor===Date)return JSON.stringify(e).slice(1,25);!0===d&&"string"==typeof e&&null!==e.match(/^[=+\-@].*$/)&&(e="'"+e);var r=e.toString().replace(f,c);return"boolean"==typeof n&&n||"function"==typeof n&&n(e,t)||Array.isArray(n)&&n[t]||function(e,t){for(var n=0;n<t.length;n++)if(-1<e.indexOf(t[n]))return!0;return!1}(r,s.BAD_DELIMITERS)||-1<r.indexOf(o)||" "===r.charAt(0)||" "===r.charAt(r.length-1)?a+r+a:r}}};if(s.RECORD_SEP=String.fromCharCode(30),s.UNIT_SEP=String.fromCharCode(31),s.BYTE_ORDER_MARK="\ufeff",s.BAD_DELIMITERS=["\r","\n",'"',s.BYTE_ORDER_MARK],s.WORKERS_SUPPORTED=!n&&!!t.Worker,s.NODE_STREAM_INPUT=1,s.LocalChunkSize=10485760,s.RemoteChunkSize=5242880,s.DefaultDelimiter=",",s.Parser=y,s.ParserHandle=h,s.NetworkStreamer=u,s.FileStreamer=l,s.StringStreamer=d,s.ReadableStreamStreamer=f,t.jQuery){var a=t.jQuery;a.fn.parse=function(e){var n=e.config||{},r=[];return this.each((function(e){if("INPUT"!==a(this).prop("tagName").toUpperCase()||"file"!==a(this).attr("type").toLowerCase()||!t.FileReader||!this.files||0===this.files.length)return!0;for(var o=0;o<this.files.length;o++)r.push({file:this.files[o],inputElem:this,instanceConfig:a.extend({},n)})})),o(),this;function o(){if(0!==r.length){var t,n,o,c,u=r[0];if(A(e.before)){var l=e.before(u.file,u.inputElem);if("object"==typeof l){if("abort"===l.action)return t="AbortError",n=u.file,o=u.inputElem,c=l.reason,void(A(e.error)&&e.error({name:t},n,o,c));if("skip"===l.action)return void i();"object"==typeof l.config&&(u.instanceConfig=a.extend(u.instanceConfig,l.config))}else if("skip"===l)return void i()}var d=u.instanceConfig.complete;u.instanceConfig.complete=function(e){A(d)&&d(e,u.file,u.inputElem),i()},s.parse(u.file,u.instanceConfig)}else A(e.complete)&&e.complete()}function i(){r.splice(0,1),o()}}}function c(e){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},function(e){var t=b(e);t.chunkSize=parseInt(t.chunkSize),e.step||e.chunk||(t.chunkSize=null),this._handle=new h(t),(this._handle.streamer=this)._config=t}.call(this,e),this.parseChunk=function(e,n){if(this.isFirstChunk&&A(this._config.beforeFirstChunk)){var o=this._config.beforeFirstChunk(e);void 0!==o&&(e=o)}this.isFirstChunk=!1,this._halted=!1;var i=this._partialLine+e;this._partialLine="";var a=this._handle.parse(i,this._baseIndex,!this._finished);if(!this._handle.paused()&&!this._handle.aborted()){var c=a.meta.cursor;this._finished||(this._partialLine=i.substring(c-this._baseIndex),this._baseIndex=c),a&&a.data&&(this._rowCount+=a.data.length);var u=this._finished||this._config.preview&&this._rowCount>=this._config.preview;if(r)t.postMessage({results:a,workerId:s.WORKER_ID,finished:u});else if(A(this._config.chunk)&&!n){if(this._config.chunk(a,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);a=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(a.data),this._completeResults.errors=this._completeResults.errors.concat(a.errors),this._completeResults.meta=a.meta),this._completed||!u||!A(this._config.complete)||a&&a.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),u||a&&a.meta.paused||this._nextChunk(),a}this._halted=!0},this._sendError=function(e){A(this._config.error)?this._config.error(e):r&&this._config.error&&t.postMessage({workerId:s.WORKER_ID,error:e,finished:!1})}}function u(e){var t;(e=e||{}).chunkSize||(e.chunkSize=s.RemoteChunkSize),c.call(this,e),this._nextChunk=n?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(e){this._input=e,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(t=new XMLHttpRequest,this._config.withCredentials&&(t.withCredentials=this._config.withCredentials),n||(t.onload=w(this._chunkLoaded,this),t.onerror=w(this._chunkError,this)),t.open(this._config.downloadRequestBody?"POST":"GET",this._input,!n),this._config.downloadRequestHeaders){var e=this._config.downloadRequestHeaders;for(var r in e)t.setRequestHeader(r,e[r])}if(this._config.chunkSize){var o=this._start+this._config.chunkSize-1;t.setRequestHeader("Range","bytes="+this._start+"-"+o)}try{t.send(this._config.downloadRequestBody)}catch(e){this._chunkError(e.message)}n&&0===t.status&&this._chunkError()}},this._chunkLoaded=function(){4===t.readyState&&(t.status<200||400<=t.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:t.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(e){var t=e.getResponseHeader("Content-Range");return null===t?-1:parseInt(t.substring(t.lastIndexOf("/")+1))}(t),this.parseChunk(t.responseText)))},this._chunkError=function(e){var n=t.statusText||e;this._sendError(new Error(n))}}function l(e){var t,n;(e=e||{}).chunkSize||(e.chunkSize=s.LocalChunkSize),c.call(this,e);var r="undefined"!=typeof FileReader;this.stream=function(e){this._input=e,n=e.slice||e.webkitSlice||e.mozSlice,r?((t=new FileReader).onload=w(this._chunkLoaded,this),t.onerror=w(this._chunkError,this)):t=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var e=this._input;if(this._config.chunkSize){var o=Math.min(this._start+this._config.chunkSize,this._input.size);e=n.call(e,this._start,o)}var i=t.readAsText(e,this._config.encoding);r||this._chunkLoaded({target:{result:i}})},this._chunkLoaded=function(e){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(e.target.result)},this._chunkError=function(){this._sendError(t.error)}}function d(e){var t;c.call(this,e=e||{}),this.stream=function(e){return t=e,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var e,n=this._config.chunkSize;return n?(e=t.substring(0,n),t=t.substring(n)):(e=t,t=""),this._finished=!t,this.parseChunk(e)}}}function f(e){c.call(this,e=e||{});var t=[],n=!0,r=!1;this.pause=function(){c.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){c.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(e){this._input=e,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){r&&1===t.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),t.length?this.parseChunk(t.shift()):n=!0},this._streamData=w((function(e){try{t.push("string"==typeof e?e:e.toString(this._config.encoding)),n&&(n=!1,this._checkIsFinished(),this.parseChunk(t.shift()))}catch(e){this._streamError(e)}}),this),this._streamError=w((function(e){this._streamCleanUp(),this._sendError(e)}),this),this._streamEnd=w((function(){this._streamCleanUp(),r=!0,this._streamData("")}),this),this._streamCleanUp=w((function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)}),this)}function h(e){var t,n,r,o=Math.pow(2,53),i=-o,a=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,c=/^(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))$/,u=this,l=0,d=0,f=!1,h=!1,v=[],m={data:[],errors:[],meta:{}};if(A(e.step)){var g=e.step;e.step=function(t){if(m=t,R())S();else{if(S(),0===m.data.length)return;l+=t.data.length,e.preview&&l>e.preview?n.abort():(m.data=m.data[0],g(m,u))}}}function w(t){return"greedy"===e.skipEmptyLines?""===t.join("").trim():1===t.length&&0===t[0].length}function S(){if(m&&r&&(_("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+s.DefaultDelimiter+"'"),r=!1),e.skipEmptyLines)for(var t=0;t<m.data.length;t++)w(m.data[t])&&m.data.splice(t--,1);return R()&&function(){if(m)if(Array.isArray(m.data[0])){for(var t=0;R()&&t<m.data.length;t++)m.data[t].forEach(n);m.data.splice(0,1)}else m.data.forEach(n);function n(t,n){A(e.transformHeader)&&(t=e.transformHeader(t,n)),v.push(t)}}(),function(){if(!m||!e.header&&!e.dynamicTyping&&!e.transform)return m;function t(t,n){var r,o=e.header?{}:[];for(r=0;r<t.length;r++){var i=r,s=t[r];e.header&&(i=r>=v.length?"__parsed_extra":v[r]),e.transform&&(s=e.transform(s,i)),s=E(i,s),"__parsed_extra"===i?(o[i]=o[i]||[],o[i].push(s)):o[i]=s}return e.header&&(r>v.length?_("FieldMismatch","TooManyFields","Too many fields: expected "+v.length+" fields but parsed "+r,d+n):r<v.length&&_("FieldMismatch","TooFewFields","Too few fields: expected "+v.length+" fields but parsed "+r,d+n)),o}var n=1;return!m.data.length||Array.isArray(m.data[0])?(m.data=m.data.map(t),n=m.data.length):m.data=t(m.data,0),e.header&&m.meta&&(m.meta.fields=v),d+=n,m}()}function R(){return e.header&&0===v.length}function E(t,n){return r=t,e.dynamicTypingFunction&&void 0===e.dynamicTyping[r]&&(e.dynamicTyping[r]=e.dynamicTypingFunction(r)),!0===(e.dynamicTyping[r]||e.dynamicTyping)?"true"===n||"TRUE"===n||"false"!==n&&"FALSE"!==n&&(function(e){if(a.test(e)){var t=parseFloat(e);if(i<t&&t<o)return!0}return!1}(n)?parseFloat(n):c.test(n)?new Date(n):""===n?null:n):n;var r}function _(e,t,n,r){var o={type:e,code:t,message:n};void 0!==r&&(o.row=r),m.errors.push(o)}this.parse=function(o,i,a){var c=e.quoteChar||'"';if(e.newline||(e.newline=function(e,t){e=e.substring(0,1048576);var n=new RegExp(p(t)+"([^]*?)"+p(t),"gm"),r=(e=e.replace(n,"")).split("\r"),o=e.split("\n"),i=1<o.length&&o[0].length<r[0].length;if(1===r.length||i)return"\n";for(var s=0,a=0;a<r.length;a++)"\n"===r[a][0]&&s++;return s>=r.length/2?"\r\n":"\r"}(o,c)),r=!1,e.delimiter)A(e.delimiter)&&(e.delimiter=e.delimiter(o),m.meta.delimiter=e.delimiter);else{var u=function(t,n,r,o,i){var a,c,u,l;i=i||[",","\t","|",";",s.RECORD_SEP,s.UNIT_SEP];for(var d=0;d<i.length;d++){var f=i[d],h=0,p=0,v=0;u=void 0;for(var m=new y({comments:o,delimiter:f,newline:n,preview:10}).parse(t),g=0;g<m.data.length;g++)if(r&&w(m.data[g]))v++;else{var b=m.data[g].length;p+=b,void 0!==u?0<b&&(h+=Math.abs(b-u),u=b):u=b}0<m.data.length&&(p/=m.data.length-v),(void 0===c||h<=c)&&(void 0===l||l<p)&&1.99<p&&(c=h,a=f,l=p)}return{successful:!!(e.delimiter=a),bestDelimiter:a}}(o,e.newline,e.skipEmptyLines,e.comments,e.delimitersToGuess);u.successful?e.delimiter=u.bestDelimiter:(r=!0,e.delimiter=s.DefaultDelimiter),m.meta.delimiter=e.delimiter}var l=b(e);return e.preview&&e.header&&l.preview++,t=o,n=new y(l),m=n.parse(t,i,a),S(),f?{meta:{paused:!0}}:m||{meta:{paused:!1}}},this.paused=function(){return f},this.pause=function(){f=!0,n.abort(),t=A(e.chunk)?"":t.substring(n.getCharIndex())},this.resume=function(){u.streamer._halted?(f=!1,u.streamer.parseChunk(t,!0)):setTimeout(u.resume,3)},this.aborted=function(){return h},this.abort=function(){h=!0,n.abort(),m.meta.aborted=!0,A(e.complete)&&e.complete(m),t=""}}function p(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function y(e){var t,n=(e=e||{}).delimiter,r=e.newline,o=e.comments,i=e.step,a=e.preview,c=e.fastMode,u=t=void 0===e.quoteChar?'"':e.quoteChar;if(void 0!==e.escapeChar&&(u=e.escapeChar),("string"!=typeof n||-1<s.BAD_DELIMITERS.indexOf(n))&&(n=","),o===n)throw new Error("Comment character same as delimiter");!0===o?o="#":("string"!=typeof o||-1<s.BAD_DELIMITERS.indexOf(o))&&(o=!1),"\n"!==r&&"\r"!==r&&"\r\n"!==r&&(r="\n");var l=0,d=!1;this.parse=function(e,s,f){if("string"!=typeof e)throw new Error("Input must be a string");var h=e.length,y=n.length,v=r.length,m=o.length,g=A(i),b=[],w=[],S=[],R=l=0;if(!e)return j();if(c||!1!==c&&-1===e.indexOf(t)){for(var E=e.split(r),_=0;_<E.length;_++){if(S=E[_],l+=S.length,_!==E.length-1)l+=r.length;else if(f)return j();if(!o||S.substring(0,m)!==o){if(g){if(b=[],N(S.split(n)),F(),d)return j()}else N(S.split(n));if(a&&a<=_)return b=b.slice(0,a),j(!0)}}return j()}for(var T=e.indexOf(n,l),x=e.indexOf(r,l),C=new RegExp(p(u)+p(t),"g"),k=e.indexOf(t,l);;)if(e[l]!==t)if(o&&0===S.length&&e.substring(l,l+m)===o){if(-1===x)return j();l=x+v,x=e.indexOf(r,l),T=e.indexOf(n,l)}else if(-1!==T&&(T<x||-1===x))S.push(e.substring(l,T)),l=T+y,T=e.indexOf(n,l);else{if(-1===x)break;if(S.push(e.substring(l,x)),q(x+v),g&&(F(),d))return j();if(a&&b.length>=a)return j(!0)}else for(k=l,l++;;){if(-1===(k=e.indexOf(t,k+1)))return f||w.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:b.length,index:l}),U();if(k===h-1)return U(e.substring(l,k).replace(C,t));if(t!==u||e[k+1]!==u){if(t===u||0===k||e[k-1]!==u){-1!==T&&T<k+1&&(T=e.indexOf(n,k+1)),-1!==x&&x<k+1&&(x=e.indexOf(r,k+1));var O=P(-1===x?T:Math.min(T,x));if(e[k+1+O]===n){S.push(e.substring(l,k).replace(C,t)),e[l=k+1+O+y]!==t&&(k=e.indexOf(t,l)),T=e.indexOf(n,l),x=e.indexOf(r,l);break}var I=P(x);if(e.substring(k+1+I,k+1+I+v)===r){if(S.push(e.substring(l,k).replace(C,t)),q(k+1+I+v),T=e.indexOf(n,l),k=e.indexOf(t,l),g&&(F(),d))return j();if(a&&b.length>=a)return j(!0);break}w.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:b.length,index:l}),k++}}else k++}return U();function N(e){b.push(e),R=l}function P(t){var n=0;if(-1!==t){var r=e.substring(k+1,t);r&&""===r.trim()&&(n=r.length)}return n}function U(t){return f||(void 0===t&&(t=e.substring(l)),S.push(t),l=h,N(S),g&&F()),j()}function q(t){l=t,N(S),S=[],x=e.indexOf(r,l)}function j(e){return{data:b,errors:w,meta:{delimiter:n,linebreak:r,aborted:d,truncated:!!e,cursor:R+(s||0)}}}function F(){i(j()),b=[],w=[]}},this.abort=function(){d=!0},this.getCharIndex=function(){return l}}function v(e){var t=e.data,n=o[t.workerId],r=!1;if(t.error)n.userError(t.error,t.file);else if(t.results&&t.results.data){var i={abort:function(){r=!0,m(t.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:g,resume:g};if(A(n.userStep)){for(var s=0;s<t.results.data.length&&(n.userStep({data:t.results.data[s],errors:t.results.errors,meta:t.results.meta},i),!r);s++);delete t.results}else A(n.userChunk)&&(n.userChunk(t.results,i,t.file),delete t.results)}t.finished&&!r&&m(t.workerId,t.results)}function m(e,t){var n=o[e];A(n.userComplete)&&n.userComplete(t),n.terminate(),delete o[e]}function g(){throw new Error("Not implemented.")}function b(e){if("object"!=typeof e||null===e)return e;var t=Array.isArray(e)?[]:{};for(var n in e)t[n]=b(e[n]);return t}function w(e,t){return function(){e.apply(t,arguments)}}function A(e){return"function"==typeof e}return r&&(t.onmessage=function(e){var n=e.data;if(void 0===s.WORKER_ID&&n&&(s.WORKER_ID=n.workerId),"string"==typeof n.input)t.postMessage({workerId:s.WORKER_ID,results:s.parse(n.input,n.config),finished:!0});else if(t.File&&n.input instanceof File||n.input instanceof Object){var r=s.parse(n.input,n.config);r&&t.postMessage({workerId:s.WORKER_ID,results:r,finished:!0})}}),(u.prototype=Object.create(c.prototype)).constructor=u,(l.prototype=Object.create(c.prototype)).constructor=l,(d.prototype=Object.create(d.prototype)).constructor=d,(f.prototype=Object.create(c.prototype)).constructor=f,s}();var Le={},Be={CustomError:void 0};class De extends Error{get name(){return this.constructor.name}}Be.CustomError=De;var Me={ExpectedError:void 0};const He=Be;class Je extends He.CustomError{}Me.ExpectedError=Je;var ze={AssertionError:void 0};const $e=Be;class Ge extends $e.CustomError{}ze.AssertionError=Ge;var Ve={};Ve.normalize=void 0,Ve.normalize=function(e){var t;return{name:e.name,message:e.message,stack:null!==(t=e.stack)&&void 0!==t?t:null}};var Ke={refute:void 0};const We=Me;Ke.refute=function(e,t){if(e)throw new We.ExpectedError(t)};var Ze={assert:void 0};const Qe=ze;Ze.assert=function(e,t){if(!e)throw new Qe.AssertionError(t)},function(e){var n=t&&t.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=t&&t.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};r(Be,e),r(Me,e),r(ze,e),r(Ve,e),r(Ke,e),r(Ze,e)}(Le),je.csv=void 0;const Ye=r,Xe=Fe.exports,et=Le;function tt(e){const t=Object.keys(e[0]);return(0,Xe.unparse)({data:e,fields:t})}je.csv=function(e){return(0,et.assert)(e.length>0,"payload must be a non-empty array"),t=>{const n=new Ye.Headers(t.headers);return n.set("Content-Type","text/csv"),{...t,headers:n,payload:tt(e)}}};var nt={};nt.signal=void 0,nt.signal=function(e){return t=>({...t,signal:e})};var rt={header:void 0};const ot=r;rt.header=function(e,t){return n=>{const r=new ot.Headers(n.headers);return r.set(e,t),{...n,headers:r}}};var it={appendHeader:void 0};const st=r;it.appendHeader=function(e,t){return n=>{const r=new st.Headers(n.headers);return r.append(e,t),{...n,headers:r}}};var at={headers:void 0};const ct=r;at.headers=function(e){return t=>{const n=new ct.Headers(t.headers);for(const[t,r]of Object.entries(e))n.set(t,r);return{...t,headers:n}}};var ut={accept:void 0};const lt=it;ut.accept=function(e){return(0,lt.appendHeader)("Accept",e)};var dt={};dt.host=void 0,dt.host=function(e){return t=>{const n=new URL(t.url.href);return n.host=e,{...t,url:n}}};var ft={};ft.port=void 0,ft.port=function(e){return t=>{const n=new URL(t.url.href);return n.port=e.toString(),{...t,url:n}}};var ht={};ht.pathname=void 0,ht.pathname=function(e){return t=>{const n=new URL(t.url.href);return n.pathname=e,{...t,url:n}}};var pt={};pt.search=void 0,pt.search=function(e){return t=>{const n=new URL(t.url.href);return n.search=e,{...t,url:n}}};var yt={};yt.searchParam=void 0,yt.searchParam=function(e,t){return n=>{const r=new URL(n.url.href),o=new URLSearchParams(r.searchParams);return o.set(e,t.toString()),r.search=o.toString(),{...n,url:r}}};var vt={};vt.searchParams=void 0,vt.searchParams=function(e){return t=>{const n=new URL(t.url.href),r=new URLSearchParams(n.searchParams);for(const[t,n]of Object.entries(e))r.set(t,n.toString());return n.search=r.toString(),{...t,url:n}}};var mt={};mt.appendSearchParam=void 0,mt.appendSearchParam=function(e,t){return n=>{const r=new URL(n.url.href),o=new URLSearchParams(r.searchParams);return o.append(e,t.toString()),r.search=o.toString(),{...n,url:r}}};var gt={formDataField:void 0};const bt=r,wt=b;gt.formDataField=function(e,t){return n=>{const r=n.payload instanceof bt.FormData?function(e){const t=new bt.FormData;for(const[n,r]of e.entries())t.append(n,r);return t}(n.payload):new bt.FormData;return(0,wt.isArray)(t)?t.forEach((t=>r.append(e,t))):r.append(e,t),{...n,payload:r}}};var At,St,Rt,Et,_t,Tt,xt,Ct,kt,Ot,It,Nt,Pt,Ut,qt,jt,Ft,Lt,Bt,Dt,Mt,Ht,Jt,zt,$t,Gt,Vt,Kt,Wt,Zt,Qt,Yt,Xt,en,tn,nn,rn,on,sn,an,cn,un={},ln={exports:{}};"undefined"!=typeof self?self:"undefined"!=typeof window&&window,ln.exports=(St=At="3.7.2",Rt="function"==typeof atob,Et="function"==typeof btoa,_t="function"==typeof Buffer,Tt="function"==typeof TextDecoder?new TextDecoder:void 0,xt="function"==typeof TextEncoder?new TextEncoder:void 0,Ct="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",kt=Array.prototype.slice.call(Ct),cn={},kt.forEach((function(e,t){return cn[e]=t})),Ot=cn,It=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,Nt=String.fromCharCode.bind(String),Pt="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):function(e,t){return void 0===t&&(t=function(e){return e}),new Uint8Array(Array.prototype.slice.call(e,0).map(t))},Ut=function(e){return e.replace(/=/g,"").replace(/[+\/]/g,(function(e){return"+"==e?"-":"_"}))},qt=function(e){return e.replace(/[^A-Za-z0-9\+\/]/g,"")},jt=function(e){for(var t,n,r,o,i="",s=e.length%3,a=0;a<e.length;){if((n=e.charCodeAt(a++))>255||(r=e.charCodeAt(a++))>255||(o=e.charCodeAt(a++))>255)throw new TypeError("invalid character found");i+=kt[(t=n<<16|r<<8|o)>>18&63]+kt[t>>12&63]+kt[t>>6&63]+kt[63&t]}return s?i.slice(0,s-3)+"===".substring(s):i},Lt=_t?function(e){return Buffer.from(e).toString("base64")}:function(e){for(var t=4096,n=[],r=0,o=e.length;r<o;r+=t)n.push(Nt.apply(null,e.subarray(r,r+t)));return Ft(n.join(""))},Dt=function(e){if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?Nt(192|t>>>6)+Nt(128|63&t):Nt(224|t>>>12&15)+Nt(128|t>>>6&63)+Nt(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return Nt(240|t>>>18&7)+Nt(128|t>>>12&63)+Nt(128|t>>>6&63)+Nt(128|63&t)},Mt=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,Jt=_t?function(e){return Buffer.from(e,"utf8").toString("base64")}:xt?function(e){return Lt(xt.encode(e))}:function(e){return Ft(Ht(e))},$t=function(e){return zt(e,!0)},Gt=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,Vt=function(e){switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return Nt(55296+(t>>>10))+Nt(56320+(1023&t));case 3:return Nt((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return Nt((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},Wt=function(e){if(e=e.replace(/\s+/g,""),!It.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(3&e.length));for(var t,n,r,o="",i=0;i<e.length;)t=Ot[e.charAt(i++)]<<18|Ot[e.charAt(i++)]<<12|(n=Ot[e.charAt(i++)])<<6|(r=Ot[e.charAt(i++)]),o+=64===n?Nt(t>>16&255):64===r?Nt(t>>16&255,t>>8&255):Nt(t>>16&255,t>>8&255,255&t);return o},Qt=_t?function(e){return Pt(Buffer.from(e,"base64"))}:function(e){return Pt(Zt(e),(function(e){return e.charCodeAt(0)}))},Yt=function(e){return Qt(en(e))},Xt=_t?function(e){return Buffer.from(e,"base64").toString("utf8")}:Tt?function(e){return Tt.decode(Qt(e))}:function(e){return Kt(Zt(e))},en=function(e){return qt(e.replace(/[-_]/g,(function(e){return"-"==e?"+":"/"})))},nn=function(e){return{value:e,enumerable:!1,writable:!0,configurable:!0}},rn=function(){var e=function(e,t){return Object.defineProperty(String.prototype,e,nn(t))};e("fromBase64",(function(){return tn(this)})),e("toBase64",(function(e){return zt(this,e)})),e("toBase64URI",(function(){return zt(this,!0)})),e("toBase64URL",(function(){return zt(this,!0)})),e("toUint8Array",(function(){return Yt(this)}))},on=function(){var e=function(e,t){return Object.defineProperty(Uint8Array.prototype,e,nn(t))};e("toBase64",(function(e){return Bt(this,e)})),e("toBase64URI",(function(){return Bt(this,!0)})),e("toBase64URL",(function(){return Bt(this,!0)}))},sn=function(){rn(),on()},an={version:At,VERSION:St,atob:Zt=Rt?function(e){return atob(qt(e))}:_t?function(e){return Buffer.from(e,"base64").toString("binary")}:Wt,atobPolyfill:Wt,btoa:Ft=Et?function(e){return btoa(e)}:_t?function(e){return Buffer.from(e,"binary").toString("base64")}:jt,btoaPolyfill:jt,fromBase64:tn=function(e){return Xt(en(e))},toBase64:zt=function(e,t){return void 0===t&&(t=!1),t?Ut(Jt(e)):Jt(e)},encode:zt,encodeURI:$t,encodeURL:$t,utob:Ht=function(e){return e.replace(Mt,Dt)},btou:Kt=function(e){return e.replace(Gt,Vt)},decode:tn,isValid:function(e){if("string"!=typeof e)return!1;var t=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},fromUint8Array:Bt=function(e,t){return void 0===t&&(t=!1),t?Ut(Lt(e)):Lt(e)},toUint8Array:Yt,extendString:rn,extendUint8Array:on,extendBuiltins:sn,Base64:{}},Object.keys(an).forEach((function(e){return an.Base64[e]=an[e]})),an),un.basicAuth=void 0;const dn=rt,fn=ln.exports;un.basicAuth=function(e,t){return(0,dn.header)("Authorization","Basic "+(0,fn.btoa)(`${e}:${t}`))};var hn={bearerAuth:void 0};const pn=rt;hn.bearerAuth=function(e){return(0,pn.header)("Authorization",`Bearer ${e}`)};var yn={};yn.keepalive=void 0,yn.keepalive=function(e=!0){return t=>({...t,keepalive:e})},function(e){var n=t&&t.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=t&&t.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};r(Ie,e),r(Ne,e),r(Ue,e),r(je,e),r(nt,e),r(rt,e),r(it,e),r(at,e),r(ut,e),r(dt,e),r(ft,e),r(ht,e),r(pt,e),r(yt,e),r(vt,e),r(mt,e),r(gt,e),r(un,e),r(hn,e),r(yn,e)}(Oe);var vn={},mn={},gn={},bn=n(Object.freeze({__proto__:null})),wn={HTTPError:void 0};const An=Le;wn.HTTPError=class extends An.CustomError{constructor(e,t){super(t),this.code=e}};var Sn={},Rn={};!function(e){e.ServerError=e.ClientError=e.Redirection=e.Successful=e.Informational=void 0,function(e){e[e.Continue=100]="Continue",e[e.SwitchingProtocol=101]="SwitchingProtocol",e[e.Processing=102]="Processing",e[e.EarlyHints=103]="EarlyHints"}(e.Informational||(e.Informational={})),function(e){e[e.OK=200]="OK",e[e.Created=201]="Created",e[e.Accepted=202]="Accepted",e[e.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",e[e.NoContent=204]="NoContent",e[e.ResetContent=205]="ResetContent",e[e.PartialContent=206]="PartialContent",e[e.MultiStatus=207]="MultiStatus",e[e.AlreadyReported=208]="AlreadyReported",e[e.IMUsed=226]="IMUsed"}(e.Successful||(e.Successful={})),function(e){e[e.MultipleChoice=300]="MultipleChoice",e[e.MovedPermanently=3011]="MovedPermanently",e[e.Found=302]="Found",e[e.SeeOther=303]="SeeOther",e[e.NotModified=304]="NotModified",e[e.TemporaryRedirect=307]="TemporaryRedirect",e[e.PermanentRedirect=308]="PermanentRedirect"}(e.Redirection||(e.Redirection={})),function(e){e[e.BadRequest=400]="BadRequest",e[e.Unauthorized=401]="Unauthorized",e[e.Forbidden=403]="Forbidden",e[e.NotFound=404]="NotFound",e[e.MethodNotAllowed=405]="MethodNotAllowed",e[e.NotAcceptable=406]="NotAcceptable",e[e.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",e[e.RequestTimeout=408]="RequestTimeout",e[e.Conflict=409]="Conflict",e[e.Gone=410]="Gone",e[e.LengthRequired=411]="LengthRequired",e[e.PreconditionFailed=412]="PreconditionFailed",e[e.PayloadTooLarge=413]="PayloadTooLarge",e[e.URITooLong=414]="URITooLong",e[e.UnsupportedMediaType=415]="UnsupportedMediaType",e[e.RangeNotSatisfiable=416]="RangeNotSatisfiable",e[e.ExpectationFailed=417]="ExpectationFailed",e[e.MisdirectedRequest=421]="MisdirectedRequest",e[e.UnprocessableEntity=422]="UnprocessableEntity",e[e.Locked=423]="Locked",e[e.FailedDependency=424]="FailedDependency",e[e.UpgradeRequired=426]="UpgradeRequired",e[e.PreconditionRequired=428]="PreconditionRequired",e[e.TooManyRequests=429]="TooManyRequests",e[e.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",e[e.UnavailableForLegalReasons=451]="UnavailableForLegalReasons"}(e.ClientError||(e.ClientError={})),function(e){e[e.InternalServerError=500]="InternalServerError",e[e.NotImplemented=501]="NotImplemented",e[e.BadGateway=502]="BadGateway",e[e.ServiceUnavailable=503]="ServiceUnavailable",e[e.GatewayTimeout=504]="GatewayTimeout",e[e.HTTPVersionNotSupported=505]="HTTPVersionNotSupported",e[e.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",e[e.InsufficientStorage=507]="InsufficientStorage",e[e.LoopDetected=508]="LoopDetected",e[e.NotExtended=510]="NotExtended",e[e.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired"}(e.ServerError||(e.ServerError={}))}(Rn),Sn.EarlyHints=Sn.Processing=Sn.SwitchingProtocol=Sn.Continue=Sn.HTTPInformational=void 0;const En=Rn;class _n{constructor(e,t){this.code=e,this.message=t}}Sn.HTTPInformational=_n;Sn.Continue=class extends _n{constructor(){super(En.Informational.Continue,"Continue")}};Sn.SwitchingProtocol=class extends _n{constructor(){super(En.Informational.SwitchingProtocol,"Switching Protocol")}};Sn.Processing=class extends _n{constructor(){super(En.Informational.Processing,"Processing")}};Sn.EarlyHints=class extends _n{constructor(){super(En.Informational.EarlyHints,"Early Hints")}};var Tn={};Tn.IMUsed=Tn.AlreadyReported=Tn.MultiStatus=Tn.PartialContent=Tn.ResetContent=Tn.NoContent=Tn.NonAuthoritativeInformation=Tn.Accepted=Tn.Created=Tn.OK=Tn.HTTPSuccessful=void 0;const xn=Rn;class Cn{constructor(e,t){this.code=e,this.message=t}}Tn.HTTPSuccessful=Cn;Tn.OK=class extends Cn{constructor(){super(xn.Successful.OK,"OK")}};Tn.Created=class extends Cn{constructor(){super(xn.Successful.Created,"Created")}};Tn.Accepted=class extends Cn{constructor(){super(xn.Successful.Accepted,"Accepted")}};Tn.NonAuthoritativeInformation=class extends Cn{constructor(){super(xn.Successful.NonAuthoritativeInformation,"Non-Authoritative Information")}};Tn.NoContent=class extends Cn{constructor(){super(xn.Successful.NoContent,"No Content")}};Tn.ResetContent=class extends Cn{constructor(){super(xn.Successful.ResetContent,"Reset Content")}};Tn.PartialContent=class extends Cn{constructor(){super(xn.Successful.PartialContent,"Partial Content")}};Tn.MultiStatus=class extends Cn{constructor(){super(xn.Successful.MultiStatus,"Multi-Status")}};Tn.AlreadyReported=class extends Cn{constructor(){super(xn.Successful.AlreadyReported,"Already Reported")}};Tn.IMUsed=class extends Cn{constructor(){super(xn.Successful.IMUsed,"IM Used")}};var kn={};kn.PermanentRedirect=kn.TemporaryRedirect=kn.NotModified=kn.SeeOther=kn.Found=kn.MovedPermanently=kn.MultipleChoice=kn.HTTPRedirection=void 0;const On=Rn;class In{constructor(e,t){this.code=e,this.message=t}}kn.HTTPRedirection=In;kn.MultipleChoice=class extends In{constructor(){super(On.Redirection.MultipleChoice,"Multiple Choice")}};kn.MovedPermanently=class extends In{constructor(){super(On.Redirection.MovedPermanently,"Moved Permanently")}};kn.Found=class extends In{constructor(){super(On.Redirection.Found,"Found")}};kn.SeeOther=class extends In{constructor(){super(On.Redirection.SeeOther,"See Other")}};kn.NotModified=class extends In{constructor(){super(On.Redirection.NotModified,"Not Modified")}};kn.TemporaryRedirect=class extends In{constructor(){super(On.Redirection.TemporaryRedirect,"Temporary Redirect")}};kn.PermanentRedirect=class extends In{constructor(){super(On.Redirection.PermanentRedirect,"Permanent Redirect")}};var Nn={};Nn.UnavailableForLegalReasons=Nn.RequestHeaderFieldsTooLarge=Nn.TooManyRequests=Nn.PreconditionRequired=Nn.UpgradeRequired=Nn.FailedDependency=Nn.Locked=Nn.UnprocessableEntity=Nn.MisdirectedRequest=Nn.ExpectationFailed=Nn.RangeNotSatisfiable=Nn.UnsupportedMediaType=Nn.URITooLong=Nn.PayloadTooLarge=Nn.PreconditionFailed=Nn.LengthRequired=Nn.Gone=Nn.Conflict=Nn.RequestTimeout=Nn.ProxyAuthenticationRequired=Nn.NotAcceptable=Nn.MethodNotAllowed=Nn.NotFound=Nn.Forbidden=Nn.Unauthorized=Nn.BadRequest=Nn.HTTPClientError=void 0;const Pn=wn,Un=Rn;class qn extends Pn.HTTPError{}Nn.HTTPClientError=qn;Nn.BadRequest=class extends qn{constructor(e){super(Un.ClientError.BadRequest,null!=e?e:"Bad Request")}};Nn.Unauthorized=class extends qn{constructor(e){super(Un.ClientError.Unauthorized,null!=e?e:"Unauthorized")}};Nn.Forbidden=class extends qn{constructor(e){super(Un.ClientError.Forbidden,null!=e?e:"Forbidden")}};Nn.NotFound=class extends qn{constructor(e){super(Un.ClientError.NotFound,null!=e?e:"Not Found")}};Nn.MethodNotAllowed=class extends qn{constructor(e){super(Un.ClientError.MethodNotAllowed,null!=e?e:"Method Not Allowed")}};Nn.NotAcceptable=class extends qn{constructor(e){super(Un.ClientError.NotAcceptable,null!=e?e:"Not Acceptable")}};Nn.ProxyAuthenticationRequired=class extends qn{constructor(e){super(Un.ClientError.ProxyAuthenticationRequired,null!=e?e:"Proxy Authentication Required")}};Nn.RequestTimeout=class extends qn{constructor(e){super(Un.ClientError.RequestTimeout,null!=e?e:"Request Timeout")}};Nn.Conflict=class extends qn{constructor(e){super(Un.ClientError.Conflict,null!=e?e:"Conflict")}};Nn.Gone=class extends qn{constructor(e){super(Un.ClientError.Gone,null!=e?e:"Gone")}};Nn.LengthRequired=class extends qn{constructor(e){super(Un.ClientError.LengthRequired,null!=e?e:"Length Required")}};Nn.PreconditionFailed=class extends qn{constructor(e){super(Un.ClientError.PreconditionFailed,null!=e?e:"Precondition Failed")}};Nn.PayloadTooLarge=class extends qn{constructor(e){super(Un.ClientError.PayloadTooLarge,null!=e?e:"Payload Too Large")}};Nn.URITooLong=class extends qn{constructor(e){super(Un.ClientError.URITooLong,null!=e?e:"URI Too Long")}};Nn.UnsupportedMediaType=class extends qn{constructor(e){super(Un.ClientError.UnsupportedMediaType,null!=e?e:"Unsupported Media Type")}};Nn.RangeNotSatisfiable=class extends qn{constructor(e){super(Un.ClientError.RangeNotSatisfiable,null!=e?e:"Range Not Satisfiable")}};Nn.ExpectationFailed=class extends qn{constructor(e){super(Un.ClientError.ExpectationFailed,null!=e?e:"Expectation Failed")}};Nn.MisdirectedRequest=class extends qn{constructor(e){super(Un.ClientError.MisdirectedRequest,null!=e?e:"Misdirected Request")}};Nn.UnprocessableEntity=class extends qn{constructor(e){super(Un.ClientError.UnprocessableEntity,null!=e?e:"Unprocessable Entity")}};Nn.Locked=class extends qn{constructor(e){super(Un.ClientError.Locked,null!=e?e:"Locked")}};Nn.FailedDependency=class extends qn{constructor(e){super(Un.ClientError.FailedDependency,null!=e?e:"Failed Dependency")}};Nn.UpgradeRequired=class extends qn{constructor(e){super(Un.ClientError.UpgradeRequired,null!=e?e:"Upgrade Required")}};Nn.PreconditionRequired=class extends qn{constructor(e){super(Un.ClientError.PreconditionRequired,null!=e?e:"Precondition Required")}};Nn.TooManyRequests=class extends qn{constructor(e){super(Un.ClientError.TooManyRequests,null!=e?e:"Too Many Requests")}};Nn.RequestHeaderFieldsTooLarge=class extends qn{constructor(e){super(Un.ClientError.RequestHeaderFieldsTooLarge,null!=e?e:"Request Header Fields Too Large")}};Nn.UnavailableForLegalReasons=class extends qn{constructor(e){super(Un.ClientError.UnavailableForLegalReasons,null!=e?e:"Unavailable For Legal Reasons")}};var jn={};jn.NetworkAuthenticationRequired=jn.NotExtended=jn.LoopDetected=jn.InsufficientStorage=jn.VariantAlsoNegotiates=jn.HTTPVersionNotSupported=jn.GatewayTimeout=jn.ServiceUnavailable=jn.BadGateway=jn.NotImplemented=jn.InternalServerError=jn.HTTPServerError=void 0;const Fn=wn,Ln=Rn;class Bn extends Fn.HTTPError{}jn.HTTPServerError=Bn;jn.InternalServerError=class extends Bn{constructor(e){super(Ln.ServerError.InternalServerError,null!=e?e:"Internal Server Error")}};jn.NotImplemented=class extends Bn{constructor(e){super(Ln.ServerError.NotImplemented,null!=e?e:"Not Implemented")}};jn.BadGateway=class extends Bn{constructor(e){super(Ln.ServerError.BadGateway,null!=e?e:"Bad Gateway")}};jn.ServiceUnavailable=class extends Bn{constructor(e){super(Ln.ServerError.ServiceUnavailable,null!=e?e:"Service Unavailable")}};jn.GatewayTimeout=class extends Bn{constructor(e){super(Ln.ServerError.GatewayTimeout,null!=e?e:"Gateway Timeout")}};jn.HTTPVersionNotSupported=class extends Bn{constructor(e){super(Ln.ServerError.HTTPVersionNotSupported,null!=e?e:"HTTP Version Not Supported")}};jn.VariantAlsoNegotiates=class extends Bn{constructor(e){super(Ln.ServerError.VariantAlsoNegotiates,null!=e?e:"Variant Also Negotiates")}};jn.InsufficientStorage=class extends Bn{constructor(e){super(Ln.ServerError.InsufficientStorage,null!=e?e:"Insufficient Storage")}};jn.LoopDetected=class extends Bn{constructor(e){super(Ln.ServerError.LoopDetected,null!=e?e:"Loop Detected")}};jn.NotExtended=class extends Bn{constructor(e){super(Ln.ServerError.NotExtended,null!=e?e:"Not Extended")}};jn.NetworkAuthenticationRequired=class extends Bn{constructor(e){super(Ln.ServerError.NetworkAuthenticationRequired,null!=e?e:"Network Authentication Required")}};var Dn={};Dn.fromCode=Dn.UnknownHTTPStatusError=void 0;const Mn=Sn,Hn=Tn,Jn=kn,zn=Nn,$n=jn;class Gn extends Error{constructor(e){super(`The HTTP status code ${e} is unknown`),this.name=this.constructor.name}}Dn.UnknownHTTPStatusError=Gn,Dn.fromCode=function(e,t){switch(e){case 100:return new Mn.Continue;case 101:return new Mn.SwitchingProtocol;case 102:return new Mn.Processing;case 103:return new Mn.EarlyHints;case 200:return new Hn.OK;case 201:return new Hn.Created;case 202:return new Hn.Accepted;case 203:return new Hn.NonAuthoritativeInformation;case 204:return new Hn.NoContent;case 205:return new Hn.ResetContent;case 206:return new Hn.PartialContent;case 207:return new Hn.MultiStatus;case 208:return new Hn.AlreadyReported;case 226:return new Hn.IMUsed;case 300:return new Jn.MultipleChoice;case 301:return new Jn.MovedPermanently;case 302:return new Jn.Found;case 303:return new Jn.SeeOther;case 304:return new Jn.NotModified;case 307:return new Jn.TemporaryRedirect;case 308:return new Jn.PermanentRedirect;case 400:return new zn.BadRequest(t);case 401:return new zn.Unauthorized(t);case 403:return new zn.Forbidden(t);case 404:return new zn.NotFound(t);case 405:return new zn.MethodNotAllowed(t);case 406:return new zn.NotAcceptable(t);case 407:return new zn.ProxyAuthenticationRequired(t);case 408:return new zn.RequestTimeout(t);case 409:return new zn.Conflict(t);case 410:return new zn.Gone(t);case 411:return new zn.LengthRequired(t);case 412:return new zn.PreconditionFailed(t);case 413:return new zn.PayloadTooLarge(t);case 414:return new zn.URITooLong(t);case 415:return new zn.UnsupportedMediaType(t);case 416:return new zn.RangeNotSatisfiable(t);case 417:return new zn.ExpectationFailed(t);case 421:return new zn.MisdirectedRequest(t);case 422:return new zn.UnprocessableEntity(t);case 423:return new zn.Locked(t);case 424:return new zn.FailedDependency(t);case 426:return new zn.UpgradeRequired(t);case 428:return new zn.PreconditionRequired(t);case 429:return new zn.TooManyRequests(t);case 431:return new zn.RequestHeaderFieldsTooLarge(t);case 451:return new zn.UnavailableForLegalReasons(t);case 500:return new $n.InternalServerError(t);case 501:return new $n.NotImplemented(t);case 502:return new $n.BadGateway(t);case 503:return new $n.ServiceUnavailable(t);case 504:return new $n.GatewayTimeout(t);case 505:return new $n.HTTPVersionNotSupported(t);case 506:return new $n.VariantAlsoNegotiates(t);case 507:return new $n.InsufficientStorage(t);case 508:return new $n.LoopDetected(t);case 510:return new $n.NotExtended(t);case 511:return new $n.NetworkAuthenticationRequired(t);default:throw new Gn(e)}},function(e){var n=t&&t.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=t&&t.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};r(bn,e),r(wn,e),r(Sn,e),r(Tn,e),r(kn,e),r(Nn,e),r(jn,e),r(Dn,e)}(gn),function(e){e.ok=e.HTTPError=void 0;const t=gn;var n=gn;Object.defineProperty(e,"HTTPError",{enumerable:!0,get:function(){return n.HTTPError}}),e.ok=async function(e){if(!e.ok){const n=await e.text();throw(0,t.fromCode)(e.status,n)}return e}}(mn);var Vn={};Vn.toJSON=void 0,Vn.toJSON=function(e){return e.json()};var Kn={};Kn.toText=void 0,Kn.toText=async function(e,t){if(t){const n=await e.arrayBuffer();return new TextDecoder(t).decode(n)}return await e.text()};var Wn={};Wn.toLines=void 0,Wn.toLines=async function*(e){const t=e.body.pipeThrough(new TextDecoderStream).getReader();let n="";for(;;){const{value:e,done:r}=await t.read();if(r)break;let o=e;for(;o.includes("\n");){const e=o.indexOf("\n");yield o.slice(0,e),o=o.slice(e+1)}n+=o}n&&(yield n)};var Zn={},Qn={},Yn={},Xn={},er={},tr={};tr.go=void 0,tr.go=function(e){return e()},function(e){var n=t&&t.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]});(t&&t.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)})(tr,e)}(er),Xn.chunkAsync=void 0;const nr=er,rr=Le;Xn.chunkAsync=function(e,t){return(0,rr.assert)(Number.isInteger(t),"The parameter size must be an integer"),(0,rr.assert)(t>0,"The parameter size must be greater than 0"),(0,nr.go)((async function*(){let n=[];for await(const r of e)n.push(r),n.length>=t&&(yield n,n=[]);n.length&&(yield n)}))};var or={},ir={},sr={};function ar(e){return Array.isArray(e)}sr.isntEmptyArray=sr.isEmptyArray=sr.isntArray=sr.isArray=void 0,sr.isArray=ar,sr.isntArray=function(e){return!ar(e)},sr.isEmptyArray=function(e){return 0===e.length},sr.isntEmptyArray=function(e){return 0!==e.length};var cr={},ur={};function lr(e){return null===e}ur.isntNull=ur.isNull=void 0,ur.isNull=lr,ur.isntNull=function(e){return!lr(e)};var dr={};function fr(e){return void 0===e}dr.isntUndefined=dr.isUndefined=void 0,dr.isUndefined=fr,dr.isntUndefined=function(e){return!fr(e)},cr.isntAsyncIterable=cr.isAsyncIterable=void 0;const hr=ur,pr=dr;function yr(e){return(0,hr.isntNull)(e)&&(0,pr.isntUndefined)(e)&&"function"==typeof e[Symbol.asyncIterator]}cr.isAsyncIterable=yr,cr.isntAsyncIterable=function(e){return!yr(e)};var vr={};function mr(e){return"bigint"==typeof e}vr.isntBigInt=vr.isBigInt=void 0,vr.isBigInt=mr,vr.isntBigInt=function(e){return!mr(e)};var gr={};function br(e){return"boolean"==typeof e}gr.isntBoolean=gr.isBoolean=void 0,gr.isBoolean=br,gr.isntBoolean=function(e){return!br(e)};var wr={},Ar={};function Sr(e){return"string"==typeof e}Ar.isntString=Ar.isString=void 0,Ar.isString=Sr,Ar.isntString=function(e){return!Sr(e)},wr.isntChar=wr.isChar=void 0;const Rr=Ar;function Er(e){return(0,Rr.isString)(e)&&1===e.length}wr.isChar=Er,wr.isntChar=function(e){return!Er(e)};var _r={};function Tr(e){return e instanceof Date}_r.isntDate=_r.isDate=void 0,_r.isDate=Tr,_r.isntDate=function(e){return!Tr(e)};var xr={};xr.inEnum=void 0,xr.inEnum=function(e,t){return Object.values(t).includes(e)};var Cr={};function kr(e){return e instanceof Error}Cr.isntError=Cr.isError=void 0,Cr.isError=kr,Cr.isntError=function(e){return!kr(e)};var Or={};function Ir(e){return!e}Or.isntFalsy=Or.isFalsy=void 0,Or.isFalsy=Ir,Or.isntFalsy=function(e){return!Ir(e)};var Nr={};function Pr(e){return"function"==typeof e}Nr.isntFunction=Nr.isFunction=void 0,Nr.isFunction=Pr,Nr.isntFunction=function(e){return!Pr(e)};var Ur={};Ur.isntIterable=Ur.isIterable=void 0;const qr=ur,jr=dr;function Fr(e){return(0,qr.isntNull)(e)&&(0,jr.isntUndefined)(e)&&"function"==typeof e[Symbol.iterator]}Ur.isIterable=Fr,Ur.isntIterable=function(e){return!Fr(e)};var Lr={},Br={};function Dr(e){return null!==e&&"object"==typeof e}Br.isntEmptyObject=Br.isEmptyObject=Br.isRecord=Br.isntObject=Br.isObject=void 0,Br.isObject=Dr,Br.isntObject=function(e){return!Dr(e)},Br.isRecord=function(e){return Dr(e)},Br.isEmptyObject=function(e){return 0===Object.keys(e).length},Br.isntEmptyObject=function(e){return 0!==Object.keys(e).length};var Mr={};function Hr(e){return"number"==typeof e}Mr.isntNumber=Mr.isNumber=void 0,Mr.isNumber=Hr,Mr.isntNumber=function(e){return!Hr(e)},Lr.isntJsonRpcError=Lr.isJsonRpcError=Lr.isntJsonRpcSuccess=Lr.isJsonRpcSuccess=Lr.isntJsonRpcRequest=Lr.isJsonRpcRequest=Lr.isntJsonRpcNotification=Lr.isJsonRpcNotification=void 0;const Jr=sr,zr=Br,$r=Ar,Gr=Mr,Vr=dr;function Kr(e){return(0,$r.isString)(e)||(0,Gr.isNumber)(e)}function Wr(e){return(0,Jr.isArray)(e)||(0,zr.isObject)(e)}function Zr(e){return(0,zr.isRecord)(e)&&(0,$r.isString)(e.jsonrpc)&&(0,$r.isString)(e.method)&&(0,Vr.isUndefined)(e.id)&&Wr(e.params)}function Qr(e){return(0,zr.isRecord)(e)&&(0,$r.isString)(e.jsonrpc)&&(0,$r.isString)(e.method)&&Kr(e.id)&&Wr(e.params)}function Yr(e){return(0,zr.isRecord)(e)&&(0,$r.isString)(e.jsonrpc)&&(0,$r.isString)(e.id)&&(0,Vr.isntUndefined)(e.result)}function Xr(e){return(0,zr.isRecord)(e)&&(0,$r.isString)(e.jsonrpc)&&Kr(e.id)&&function(e){return(0,zr.isRecord)(e)&&(0,Gr.isNumber)(e.code)&&(0,$r.isString)(e.message)&&((0,Vr.isUndefined)(e.data)||(0,zr.isObject)(e.data))}(e.error)}Lr.isJsonRpcNotification=Zr,Lr.isntJsonRpcNotification=function(e){return!Zr(e)},Lr.isJsonRpcRequest=Qr,Lr.isntJsonRpcRequest=function(e){return!Qr(e)},Lr.isJsonRpcSuccess=Yr,Lr.isntJsonRpcSuccess=function(e){return!Yr(e)},Lr.isJsonRpcError=Xr,Lr.isntJsonRpcError=function(e){return!Xr(e)};var eo={};eo.isntJson=eo.isJson=void 0,eo.isJson=function(e){try{return JSON.stringify(e),!0}catch(e){return!1}},eo.isntJson=function e(t){return!e()};var to={};to.isAbsoluteURL=void 0,to.isAbsoluteURL=function(e){try{return new URL(e),!0}catch(e){return!1}},function(e){var n=t&&t.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=t&&t.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};r(sr,e),r(cr,e),r(vr,e),r(gr,e),r(wr,e),r(_r,e),r(xr,e),r(Cr,e),r(Or,e),r(Nr,e),r(Ur,e),r(Lr,e),r(eo,e),r(ur,e),r(Mr,e),r(Br,e),r(Ar,e),r(dr,e),r(to,e)}(ir),or.chunkByAsync=void 0;const no=ir;or.chunkByAsync=function(e,t){return(0,no.isAsyncIterable)(e)?async function*(e){let n=[],r=0;for await(const o of e)n.push(o),await t(o,r)&&(yield n,n=[]),r++;n.length&&(yield n)}(e):async function*(e){let n=[],r=0;for(const o of e)n.push(o),await t(o,r)&&(yield n,n=[]),r++;n.length&&(yield n)}(e)};var ro={};ro.chunkBy=void 0,ro.chunkBy=function*(e,t){let n=[],r=0;for(const o of e)n.push(o),t(o,r)&&(yield n,n=[]),r++;n.length&&(yield n)};var oo={chunk:void 0};const io=er,so=Le;oo.chunk=function(e,t){return(0,so.assert)(Number.isInteger(t),"The parameter size must be an integer"),(0,so.assert)(t>0,"The parameter size must be greater than 0"),(0,io.go)((function*(){let n=[];for(const r of e)n.push(r),n.length>=t&&(yield n,n=[]);n.length&&(yield n)}))};var ao={concatAsync:void 0};const co=ir,uo=er;ao.concatAsync=function(e,...t){return(0,uo.go)((async function*(){for(const n of[e,...t])if((0,co.isAsyncIterable)(n))for await(const e of n)yield e;else for(const e of n)yield e}))};var lo={concat:void 0};const fo=er;lo.concat=function(e,...t){return(0,fo.go)((function*(){for(const n of[e,...t])yield*n}))};var ho={},po={};po.copyIterable=po.copyAsyncIterable=void 0,po.copyAsyncIterable=async function*(e){for await(const t of e)yield t},po.copyIterable=function*(e){for(const t of e)yield t},ho.dropAsync=void 0;const yo=er,vo=po,mo=Le;ho.dropAsync=function(e,t){return(0,mo.assert)(Number.isInteger(t),"The parameter count must be an integer"),(0,mo.assert)(t>=0,"The parameter count must be greater than or equal to 0"),0===t?(0,vo.copyAsyncIterable)(e):(0,yo.go)((async function*(){var n;const r=e[Symbol.asyncIterator]();let o;try{let e;for(;!(({value:e,done:o}=await r.next()),o||t<=0);)t--;for(;!o;)yield e,({value:e,done:o}=await r.next())}finally{o||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}}))};var go={dropRightAsync:void 0};const bo=er,wo=po,Ao=Le;go.dropRightAsync=function(e,t){return(0,Ao.assert)(Number.isInteger(t),"The parameter count must be an integer"),(0,Ao.assert)(t>=0,"The parameter count must be greater than or equal to 0"),0===t?(0,wo.copyAsyncIterable)(e):(0,bo.go)((async function*(){const n=(await async function(e){const t=[];for await(const n of e)t.push(n);return t}(e)).slice(0,-t);for(const e of n)yield e}))};var So={dropRight:void 0};const Ro=er,Eo=po,_o=Le;So.dropRight=function(e,t){return(0,_o.assert)(Number.isInteger(t),"The parameter count must be an integer"),(0,_o.assert)(t>=0,"The parameter count must be greater than or equal to 0"),0===t?(0,Eo.copyIterable)(e):(0,Ro.go)((function*(){const n=Array.from(e);yield*n.slice(0,-t)}))};var To={dropUntilAsync:void 0};const xo=ir;To.dropUntilAsync=function(e,t){return(0,xo.isAsyncIterable)(e)?async function*(e){var n;const r=e[Symbol.asyncIterator]();let o;try{let e,i=0;for(;!(({value:e,done:o}=await r.next()),o||await t(e,i++)););for(;!o;)yield e,({value:e,done:o}=await r.next())}finally{o||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}}(e):async function*(e){var n;const r=e[Symbol.iterator]();let o;try{let e,i=0;for(;!(({value:e,done:o}=r.next()),o||await t(e,i++)););for(;!o;)yield e,({value:e,done:o}=r.next())}finally{o||null===(n=r.return)||void 0===n||n.call(r)}}(e)};var Co={};Co.dropUntil=void 0,Co.dropUntil=function*(e,t){var n;const r=e[Symbol.iterator]();let o;try{let e,i=0;for(;!(({value:e,done:o}=r.next()),o||t(e,i++)););for(;!o;)yield e,({value:e,done:o}=r.next())}finally{o||null===(n=r.return)||void 0===n||n.call(r)}};var ko={drop:void 0};const Oo=er,Io=po,No=Le;ko.drop=function(e,t){return(0,No.assert)(Number.isInteger(t),"The parameter count must be an integer"),(0,No.assert)(t>=0,"The parameter count must be greater than or equal to 0"),0===t?(0,Io.copyIterable)(e):(0,Oo.go)((function*(){var n;const r=e[Symbol.iterator]();let o;try{let e;for(;!(({value:e,done:o}=r.next()),o||t<=0);)t--;for(;!o;)yield e,({value:e,done:o}=r.next())}finally{o||null===(n=r.return)||void 0===n||n.call(r)}}))};var Po={filterAsync:void 0};const Uo=ir;Po.filterAsync=function(e,t){return(0,Uo.isAsyncIterable)(e)?async function*(e){let n=0;for await(const r of e)await t(r,n)&&(yield r),n++}(e):async function*(e){let n=0;for(const r of e)await t(r,n)&&(yield r),n++}(e)};var qo={};qo.filter=void 0,qo.filter=function*(e,t){let n=0;for(const r of e)t(r,n)&&(yield r),n++};var jo={},Fo={},Lo={flattenByAsync:void 0};const Bo=ir;function Do(e){return(0,Bo.isIterable)(e)&&(0,Bo.isntChar)(e)}Lo.flattenByAsync=function(e,t){return(0,Bo.isAsyncIterable)(e)?async function*(e){const r=1;for await(const o of e)Do(o)&&await t(o,r)?yield*n(o,r+1):yield o}(e):function(e){return n(e,1)}(e);async function*n(e,r){for(const o of e)Do(o)&&await t(o,r)?yield*n(o,r+1):yield o}},Fo.flattenDeepAsync=void 0;const Mo=Lo,Ho=Le;Fo.flattenDeepAsync=function(e,t=1/0){return(0,Ho.assert)(t===1/0||Number.isInteger(t),"The parameter depth must be an integer"),(0,Ho.assert)(t>=0,"The parameter depth must be greater than or equal to 0"),(0,Mo.flattenByAsync)(e,((e,n)=>n<=t))},jo.flattenAsync=void 0;const Jo=Fo;jo.flattenAsync=function(e){return(0,Jo.flattenDeepAsync)(e,1)};var zo={flattenBy:void 0};const $o=ir;zo.flattenBy=function(e,t){return function*e(n,r){for(const i of n)(0,$o.isIterable)(o=i)&&(0,$o.isntChar)(o)&&t(i,r)?yield*e(i,r+1):yield i;var o}(e,1)};var Go={flattenDeep:void 0};const Vo=zo,Ko=Le;Go.flattenDeep=function(e,t=1/0){return(0,Ko.assert)(t===1/0||Number.isInteger(t),"The parameter depth must be an integer"),(0,Ko.assert)(t>=0,"The parameter depth must be greater than or equal to 0"),(0,Vo.flattenBy)(e,((e,n)=>n<=t))};var Wo={flatten:void 0};const Zo=Go;Wo.flatten=function(e){return(0,Zo.flattenDeep)(e,1)};var Qo={mapAsync:void 0};const Yo=ir;Qo.mapAsync=function(e,t){return(0,Yo.isAsyncIterable)(e)?async function*(e){let n=0;for await(const r of e)yield await t(r,n),n++}(e):async function*(e){let n=0;for(const r of e)yield await t(r,n),n++}(e)};var Xo={};Xo.map=void 0,Xo.map=function*(e,t){let n=0;for(const r of e)yield t(r,n),n++};var ei={repeatAsync:void 0};const ti=er,ni=Le;ei.repeatAsync=function(e,t){return(0,ni.assert)(t===1/0||Number.isInteger(t),"The parameter times must be an integer"),(0,ni.assert)(t>=0,"The parameter times must be greater than or equal to 0"),t===1/0&&function(){if("production"===process.env.NODE_ENV)return;console.warn("When iterable has no elements and times is Infinity, repeat() will be in dead loop")}(),(0,ti.go)((async function*(){const n=[];if(t>0){for await(const t of e)yield t,n.push(t);t--}for(;t>0;)yield*n,t--}))};var ri={repeat:void 0};const oi=er,ii=Le;ri.repeat=function(e,t){return(0,ii.assert)(t===1/0||Number.isInteger(t),"The parameter times must be an integer"),(0,ii.assert)(t>=0,"The parameter times must be greater than or equal to 0"),t===1/0&&function(){if("production"===process.env.NODE_ENV)return;console.warn("When iterable has no elements and times is Infinity, repeat() will be in dead loop")}(),(0,oi.go)((function*(){const n=[];if(t>0){for(const t of e)yield t,n.push(t);t--}for(;t>0;)yield*n,t--}))};var si={sliceAsync:void 0};const ai=er,ci=Le;si.sliceAsync=function(e,t,n=1/0){return(0,ci.assert)(Number.isInteger(t),"The parameter start must be an integer"),(0,ci.assert)(t>=0,"The parameter start must be greater than or equal to 0"),(0,ci.assert)(Number.isInteger(n),"The parameter end must be an integer"),(0,ci.assert)(n>=t,"The parameter end must be greater than or equal to start"),(0,ai.go)((async function*(){let r=0;for await(const o of e){if(r>=n)break;r>=t&&(yield o),r++}}))};var ui={slice:void 0};const li=er,di=Le;ui.slice=function(e,t,n=1/0){return(0,di.assert)(Number.isInteger(t),"The parameter start must be an integer"),(0,di.assert)(t>=0,"The parameter start must be greater than or equal to 0"),(0,di.assert)(Number.isInteger(n),"The parameter end must be an integer"),(0,di.assert)(n>=t,"The parameter end must be greater than or equal to start"),(0,li.go)((function*(){let r=0;for(const o of e){if(r>=n)break;r>=t&&(yield o),r++}}))};var fi={};fi.splitAsync=void 0,fi.splitAsync=async function*(e,t){let n=[];for await(const r of e)r===t?(yield n,n=[]):n.push(r);yield n};var hi={splitByAsync:void 0};const pi=ir;hi.splitByAsync=function(e,t){return(0,pi.isAsyncIterable)(e)?async function*(e){let n=[],r=0;for await(const o of e)await t(o,r)?(yield n,n=[]):n.push(o),r++;yield n}(e):async function*(e){let n=[],r=0;for(const o of e)await t(o,r)?(yield n,n=[]):n.push(o),r++;yield n}(e)};var yi={};yi.splitBy=void 0,yi.splitBy=function*(e,t){let n=[],r=0;for(const o of e)t(o,r)?(yield n,n=[]):n.push(o),r++;yield n};var vi={};vi.split=void 0,vi.split=function*(e,t){let n=[];for(const r of e)r===t?(yield n,n=[]):n.push(r);yield n};var mi={takeAsync:void 0};const gi=er,bi=Le;mi.takeAsync=function(e,t){return(0,bi.assert)(Number.isInteger(t),"The parameter count must be an integer"),(0,bi.assert)(t>=0,"The parameter count must be greater than or equal to 0"),(0,gi.go)((async function*(){if(0!==t)for await(const n of e)if(yield n,0===--t)break}))};var wi={takeRightAsync:void 0};const Ai=er,Si=Le;wi.takeRightAsync=function(e,t){return(0,Si.assert)(Number.isInteger(t),"The parameter count must be an integer"),(0,Si.assert)(t>=0,"The parameter count must be greater than or equal to 0"),(0,Ai.go)((async function*(){var n;const r=e[Symbol.asyncIterator]();let o;try{const e=[];let i;for(;({value:i,done:o}=await r.next()),!o;)e.push(i),e.length>t&&e.shift();yield*e}finally{o||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}}))};var Ri={takeRight:void 0};const Ei=er,_i=Le;Ri.takeRight=function(e,t){return(0,_i.assert)(Number.isInteger(t),"The parameter count must be an integer"),(0,_i.assert)(t>=0,"The parameter count must be greater than or equal to 0"),(0,Ei.go)((function*(){var n;const r=e[Symbol.iterator]();let o;try{const e=[];let i;for(;({value:i,done:o}=r.next()),!o;)e.push(i),e.length>t&&e.shift();yield*e}finally{o||null===(n=r.return)||void 0===n||n.call(r)}}))};var Ti={takeUntilAsync:void 0};const xi=ir;Ti.takeUntilAsync=function(e,t){return(0,xi.isAsyncIterable)(e)?async function*(e){let n=0;for await(const r of e){if(await t(r,n))break;yield r,n++}}(e):async function*(e){let n=0;for(const r of e){if(await t(r,n))break;yield r,n++}}(e)};var Ci={};Ci.takeUntil=void 0,Ci.takeUntil=function*(e,t){let n=0;for(const r of e){if(t(r,n))break;yield r,n++}};var ki={take:void 0};const Oi=er,Ii=Le;ki.take=function(e,t){return(0,Ii.assert)(Number.isInteger(t),"The parameter count must be an integer"),(0,Ii.assert)(t>=0,"The parameter count must be greater than or equal to 0"),(0,Oi.go)((function*(){if(0!==t)for(const n of e)if(yield n,0===--t)break}))};var Ni={tapAsync:void 0};const Pi=ir;Ni.tapAsync=function(e,t){return(0,Pi.isAsyncIterable)(e)?async function*(e){let n=0;for await(const r of e)await t(r,n),yield r,n++}(e):async function*(e){let n=0;for(const r of e)await t(r,n),yield r,n++}(e)};var Ui={};Ui.tap=void 0,Ui.tap=function*(e,t){let n=0;for(const r of e)t(r,n),yield r,n++};var qi={};qi.toAsyncIterable=void 0,qi.toAsyncIterable=async function*(e){for(const t of e)yield t};var ji={};ji.transformAsync=void 0,ji.transformAsync=async function*(e,t){yield*t(e)};var Fi={};Fi.transform=void 0,Fi.transform=function*(e,t){yield*t(e)};var Li={};Li.uniqAsync=void 0,Li.uniqAsync=async function*(e){const t=new Set;for await(const n of e)t.has(n)||(yield n,t.add(n))};var Bi={uniqByAsync:void 0};const Di=ir;Bi.uniqByAsync=function(e,t){return(0,Di.isAsyncIterable)(e)?async function*(e){const n=new Set;let r=0;for await(const o of e){const e=await t(o,r);n.has(e)||(yield o,n.add(e)),r++}}(e):async function*(e){const n=new Set;let r=0;for(const o of e){const e=await t(o,r);n.has(e)||(yield o,n.add(e)),r++}}(e)};var Mi={};Mi.uniqBy=void 0,Mi.uniqBy=function*(e,t){const n=new Set;let r=0;for(const o of e){const e=t(o,r);n.has(e)||(yield o,n.add(e)),r++}};var Hi={};Hi.uniq=void 0,Hi.uniq=function*(e){const t=new Set;for(const n of e)t.has(n)||(yield n,t.add(n))};var Ji={zipAsync:void 0};const zi=ir;var $i;!function(e){e[e.Sync=0]="Sync",e[e.Async=1]="Async"}($i||($i={})),Ji.zipAsync=function(e,...t){return async function*(...e){var t,n,r,o;const i=e.length,s=e.map((e=>(0,zi.isAsyncIterable)(e)?[$i.Async,e[Symbol.asyncIterator]()]:[$i.Sync,e[Symbol.iterator]()])),a=s.map((()=>!1));try{for(;;){const e=new Array(i);for(let t=0;t<i;t++){const[n,r]=s[t];let o;if(o=n===$i.Async?await r.next():r.next(),o.done)return void(a[t]=!0);e[t]=o.value}yield e}}finally{const e=s.filter(((e,t)=>!a[t]));for(const[i,s]of e)i===$i.Async?await(null===(n=(t=s).return)||void 0===n?void 0:n.call(t)):null===(o=(r=s).return)||void 0===o||o.call(r)}}(e,...t)};var Gi={};Gi.zip=void 0,Gi.zip=function(e,...t){return function*(...e){const t=e.length,n=e.map((e=>e[Symbol.iterator]())),r=n.map((()=>!1));try{for(;;){const e=new Array(t);for(let o=0;o<t;o++){const{value:t,done:i}=n[o].next();if(i)return void(r[o]=!0);e[o]=t}yield e}}finally{n.filter(((e,t)=>!r[t])).forEach((e=>{var t;return null===(t=e.return)||void 0===t?void 0:t.call(e)}))}}(e,...t)},function(e){var n=t&&t.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=t&&t.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};r(Xn,e),r(or,e),r(ro,e),r(oo,e),r(ao,e),r(lo,e),r(ho,e),r(go,e),r(So,e),r(To,e),r(Co,e),r(ko,e),r(Po,e),r(qo,e),r(jo,e),r(Lo,e),r(zo,e),r(Fo,e),r(Go,e),r(Wo,e),r(Qo,e),r(Xo,e),r(ei,e),r(ri,e),r(si,e),r(ui,e),r(fi,e),r(hi,e),r(yi,e),r(vi,e),r(mi,e),r(wi,e),r(Ri,e),r(Ti,e),r(Ci,e),r(ki,e),r(Ni,e),r(Ui,e),r(qi,e),r(ji,e),r(Fi,e),r(Li,e),r(Bi,e),r(Mi,e),r(Hi,e),r(Ji,e),r(Gi,e)}(Yn);var Vi={},Ki={};Ki.consume=void 0,Ki.consume=function(e,t){return t(e)};var Wi={eachAsync:void 0};const Zi=ir;Wi.eachAsync=function(e,t){return(0,Zi.isAsyncIterable)(e)?async function(e){let n=0;for await(const r of e)await t(r,n),n++}(e):async function(e){let n=0;for(const r of e)await t(r,n),n++}(e)};var Qi={};Qi.each=void 0,Qi.each=function(e,t){let n=0;for(const r of e)t(r,n),n++};var Yi={everyAsync:void 0};const Xi=ir;Yi.everyAsync=function(e,t){return(0,Xi.isAsyncIterable)(e)?async function(e){let n=0;for await(const r of e){if(!await t(r,n))return!1;n++}return!0}(e):async function(e){let n=0;for(const r of e){if(!await t(r,n))return!1;n++}return!0}(e)};var es={};es.every=void 0,es.every=function(e,t){let n=0;for(const r of e){if(!t(r,n))return!1;n++}return!0};var ts={findAsync:void 0};const ns=ir;ts.findAsync=function(e,t){return(0,ns.isAsyncIterable)(e)?async function(e){let n=0;for await(const r of e){if(await t(r,n))return r;n++}return}(e):async function(e){let n=0;for(const r of e){if(await t(r,n))return r;n++}return}(e)};var rs={};rs.find=void 0,rs.find=function(e,t){let n=0;for(const r of e){if(t(r,n))return r;n++}};var os={};os.firstAsync=void 0,os.firstAsync=async function(e){for await(const t of e)return t};var is={};is.first=void 0,is.first=function(e){for(const t of e)return t};var ss={};ss.includesAsync=void 0,ss.includesAsync=async function(e,t){for await(const n of e)if(n===t)return!0;return!1};var as={};as.includes=void 0,as.includes=function(e,t){for(const n of e)if(n===t)return!0;return!1};var cs={};cs.matchAsync=void 0,cs.matchAsync=async function(e,t){const n=t.length;let r=0;for await(const o of e)if(o===t[r]&&r++,r===n)return!0;return!1};var us={};us.match=void 0,us.match=function(e,t){const n=t.length;let r=0;for(const o of e)if(o===t[r]&&r++,r===n)return!0;return!1};var ls={reduceAsync:void 0};const ds=ir;ls.reduceAsync=function(e,t,n){return(0,ds.isUndefined)(n)?function(e,t){return(0,ds.isAsyncIterable)(e)?n(e):r(e);async function n(e){var n;const r=e[Symbol.asyncIterator]();let o;try{let e,s=await i(r),a=1;for(;({value:e,done:o}=await r.next()),!o;)s=await t(s,e,a++);return s}finally{o||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}async function i(e){const t=await e.next();if(t.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return t.value}}async function r(e){var n;const r=e[Symbol.iterator]();let o;try{let e,s=i(r),a=1;for(;({value:e,done:o}=r.next()),!o;)s=await t(s,e,a++);return s}finally{o||null===(n=r.return)||void 0===n||n.call(r)}function i(e){const t=e.next();if(t.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return t.value}}}(e,t):function(e,t,n){return(0,ds.isAsyncIterable)(e)?o(e):r(e);async function r(e){let r=n,o=0;for(const n of e)r=await t(r,n,o++);return r}async function o(e){let r=n,o=0;for await(const n of e)r=await t(r,n,o++);return r}}(e,t,n)};var fs={reduce:void 0};const hs=ir;fs.reduce=function(e,t,n){return(0,hs.isUndefined)(n)?function(e,t){var n;const r=e[Symbol.iterator]();let o;try{let e,s=i(r),a=1;for(;({value:e,done:o}=r.next()),!o;)s=t(s,e,a++);return s}finally{o||null===(n=r.return)||void 0===n||n.call(r)}function i(e){const t=e.next();if(t.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return t.value}}(e,t):function(e,t,n){let r=n,o=0;for(const n of e)r=t(r,n,o++);return r}(e,t,n)};var ps={someAsync:void 0};const ys=ir;ps.someAsync=function(e,t){return(0,ys.isAsyncIterable)(e)?async function(e){let n=0;for await(const r of e){if(await t(r,n))return!0;n++}return!1}(e):async function(e){let n=0;for(const r of e){if(await t(r,n))return!0;n++}return!1}(e)};var vs={};vs.some=void 0,vs.some=function(e,t){let n=0;for(const r of e){if(t(r,n))return!0;n++}return!1};var ms={};ms.lastAsync=void 0,ms.lastAsync=async function(e){var t;const n=e[Symbol.asyncIterator]();let r;try{let e,o;for(;({value:e,done:r}=await n.next()),!r;)o=e;return o}finally{r||await(null===(t=n.return)||void 0===t?void 0:t.call(n))}};var gs={};gs.last=void 0,gs.last=function(e){var t;const n=e[Symbol.iterator]();let r;try{let e,o;for(;({value:e,done:r}=n.next()),!r;)o=e;return o}finally{r||null===(t=n.return)||void 0===t||t.call(n)}};var bs={toArrayAsync:void 0};const ws=Ki;bs.toArrayAsync=function(e){return(0,ws.consume)(e,(async e=>{const t=[];for await(const n of e)t.push(n);return t}))};var As={toArray:void 0};const Ss=Ki;As.toArray=function(e){return(0,Ss.consume)(e,(e=>Array.from(e)))};var Rs={toSetAsync:void 0};const Es=Ki;Rs.toSetAsync=function(e){return(0,Es.consume)(e,(async e=>{const t=new Set;for await(const n of e)t.add(n);return t}))};var _s={toSet:void 0};const Ts=Ki;_s.toSet=function(e){return(0,Ts.consume)(e,(e=>new Set(e)))},function(e){var n=t&&t.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=t&&t.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};r(Ki,e),r(Wi,e),r(Qi,e),r(Yi,e),r(es,e),r(ts,e),r(rs,e),r(os,e),r(is,e),r(ss,e),r(as,e),r(cs,e),r(us,e),r(ls,e),r(fs,e),r(ps,e),r(vs,e),r(ms,e),r(gs,e),r(bs,e),r(As,e),r(Rs,e),r(_s,e)}(Vi),function(e){var n=t&&t.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=t&&t.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};r(Yn,e),r(Vi,e)}(Qn),Zn.toNDJSON=void 0;const xs=Qn,Cs=Wn;Zn.toNDJSON=function(e){return(0,xs.mapAsync)((0,Cs.toLines)(e),(e=>JSON.parse(e)))};var ks={toCSV:void 0};const Os=Fe.exports;ks.toCSV=async function(e){const t=await e.text();return(0,Os.parse)(t,{header:!0,skipEmptyLines:"greedy"}).data},function(e){var n=t&&t.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=t&&t.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};r(mn,e),r(Vn,e),r(Kn,e),r(Wn,e),r(Zn,e),r(ks,e)}(vn);var Is={},Ns={},Ps={exports:{}};const{AbortController:Us,AbortSignal:qs}="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0;Ps.exports=Us,Ps.exports.AbortSignal=qs,Ps.exports.default=Us;var js,Fs=t&&t.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Ns.AbortController=void 0;const Ls=Fs(Ps.exports);Ns.AbortController=null!==(js=globalThis.AbortController)&&void 0!==js?js:Ls.default;var Bs,Ds={};Ds.AbortSignal=void 0;const Ms=Ps.exports;Ds.AbortSignal=null!==(Bs=globalThis.AbortSignal)&&void 0!==Bs?Bs:Ms.AbortSignal;var Hs={raceAbortSignals:void 0};const Js=Ns;Hs.raceAbortSignals=function(e){const t=new Js.AbortController,n=[];for(const o of e)if(o){if(o.aborted){t.abort();break}o.addEventListener("abort",r),n.push(o)}return t.signal;function r(){t.abort(),n.forEach((e=>e.removeEventListener("abort",r)))}};var zs={timeoutSignal:void 0};const $s=Ns;zs.timeoutSignal=function(e){const t=new $s.AbortController;return setTimeout((()=>t.abort()),e),t.signal};var Gs={};Gs.AbortError=Gs.withAbortSignal=void 0;const Vs=Le;Gs.withAbortSignal=async function(e,t){return new Promise((async(n,r)=>{if(e.aborted)return o();e.addEventListener("abort",o);try{n(await t())}catch(e){r(e)}finally{e.removeEventListener("abort",o)}function o(){r(new Ks)}}))};class Ks extends Vs.CustomError{}Gs.AbortError=Ks,function(e){var n=t&&t.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=t&&t.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};r(Ns,e),r(Ds,e),r(Hs,e),r(zs,e),r(Gs,e)}(Is);class Ws{constructor(e){this.options=e}acquire(t,n={}){var o,i,s;return e(this,void 0,void 0,(function*(){const e=null!==(o=n.token)&&void 0!==o?o:this.options.token,a=v.get(Oe.url(this.options.server),Oe.pathname(`geyser/${t}`),e&&Oe.searchParams({token:e}),Oe.signal(Is.raceAbortSignals([n.signal,!1!==n.timeout&&(null!==(i=n.timeout&&Is.timeoutSignal(n.timeout))&&void 0!==i?i:this.options.timeout&&Is.timeoutSignal(this.options.timeout))])),Oe.keepalive(null!==(s=n.keepalive)&&void 0!==s?s:this.options.keepalive));yield r.fetch(a).then(vn.ok)}))}}class Zs{constructor(e){this.options=e}getCommonTransformers(e){var t,n;return[Oe.url(this.options.server),Oe.bearerAuth(this.options.adminPassword),Oe.signal(Is.raceAbortSignals([e.signal,!1!==e.timeout&&(null!==(t=e.timeout&&Is.timeoutSignal(e.timeout))&&void 0!==t?t:this.options.timeout&&Is.timeoutSignal(this.options.timeout))])),Oe.keepalive(null!==(n=e.keepalive)&&void 0!==n?n:this.options.keepalive)]}}class Qs extends Zs{getNamespaces(t={}){return e(this,void 0,void 0,(function*(){const e=v.get(...this.getCommonTransformers(t),Oe.pathname("/admin/geyser-with-config"));return yield r.fetch(e).then(vn.ok).then(vn.toJSON)}))}get(t,n={}){return e(this,void 0,void 0,(function*(){const e=v.get(...this.getCommonTransformers(n),Oe.pathname(`/admin/geyser/${t}/config`));return yield r.fetch(e).then(vn.ok).then(vn.toJSON)}))}setDuration(t,n,o={}){return e(this,void 0,void 0,(function*(){const e=v.put(...this.getCommonTransformers(o),Oe.pathname(`/admin/geyser/${t}/config/duration`),Oe.json(n));yield r.fetch(e).then(vn.ok)}))}removeDuration(t,n={}){return e(this,void 0,void 0,(function*(){const e=v.del(...this.getCommonTransformers(n),Oe.pathname(`/admin/geyser/${t}/config/duration`));yield r.fetch(e).then(vn.ok)}))}setLimit(t,n,o={}){return e(this,void 0,void 0,(function*(){const e=v.put(...this.getCommonTransformers(o),Oe.pathname(`/admin/geyser/${t}/config/limit`),Oe.json(n));yield r.fetch(e).then(vn.ok)}))}removeLimit(t,n={}){return e(this,void 0,void 0,(function*(){const e=v.del(...this.getCommonTransformers(n),Oe.pathname(`/admin/geyser/${t}/config/limit`));yield r.fetch(e).then(vn.ok)}))}}class Ys extends Zs{getNamespaces(t={}){return e(this,void 0,void 0,(function*(){const e=v.get(...this.getCommonTransformers(t),Oe.pathname("/admin/blacklist"));return yield r.fetch(e).then(vn.ok).then(vn.toJSON)}))}add(t,n={}){return e(this,void 0,void 0,(function*(){const e=v.put(...this.getCommonTransformers(n),Oe.pathname(`/admin/blacklist/${t}`));yield r.fetch(e).then(vn.ok)}))}remove(t,n={}){return e(this,void 0,void 0,(function*(){const e=v.del(...this.getCommonTransformers(n),Oe.pathname(`/admin/blacklist/${t}`));yield r.fetch(e).then(vn.ok)}))}}class Xs extends Zs{getNamespaces(t={}){return e(this,void 0,void 0,(function*(){const e=v.get(...this.getCommonTransformers(t),Oe.pathname("/admin/whitelist"));return yield r.fetch(e).then(vn.ok).then(vn.toJSON)}))}add(t,n={}){return e(this,void 0,void 0,(function*(){const e=v.put(...this.getCommonTransformers(n),Oe.pathname(`/admin/whitelist/${t}`));yield r.fetch(e).then(vn.ok)}))}remove(t,n={}){return e(this,void 0,void 0,(function*(){const e=v.del(...this.getCommonTransformers(n),Oe.pathname(`/admin/whitelist/${t}`));yield r.fetch(e).then(vn.ok)}))}}class ea extends Zs{getNamespaces(t={}){return e(this,void 0,void 0,(function*(){const e=v.get(...this.getCommonTransformers(t),Oe.pathname("/admin/geyser-with-token-policies"));return yield r.fetch(e).then(vn.ok).then(vn.toJSON)}))}get(t,n={}){return e(this,void 0,void 0,(function*(){const e=v.get(...this.getCommonTransformers(n),Oe.pathname(`/admin/geyser/${t}/token-policies`));return yield r.fetch(e).then(vn.ok).then(vn.toJSON)}))}setAcquireTokenRequired(t,n,o={}){return e(this,void 0,void 0,(function*(){const e=v.put(...this.getCommonTransformers(o),Oe.pathname(`/admin/geyser/${t}/token-policies/acquire-token-required`),Oe.json(n));yield r.fetch(e).then(vn.ok)}))}removeAcquireTokenRequired(t,n={}){return e(this,void 0,void 0,(function*(){const e=v.del(...this.getCommonTransformers(n),Oe.pathname(`/admin/geyser/${t}/token-policies/acquire-token-required`));yield r.fetch(e).then(vn.ok)}))}}class ta extends Zs{getNamespaces(t={}){return e(this,void 0,void 0,(function*(){const e=v.get(...this.getCommonTransformers(t),Oe.pathname("/admin/geyser-with-tokens"));return yield r.fetch(e).then(vn.ok).then(vn.toJSON)}))}getTokens(t,n={}){return e(this,void 0,void 0,(function*(){const e=v.get(...this.getCommonTransformers(n),Oe.pathname(`/admin/geyser/${t}/tokens`));return yield r.fetch(e).then(vn.ok).then(vn.toJSON)}))}addAcquireToken(t,n,o={}){return e(this,void 0,void 0,(function*(){const e=v.put(...this.getCommonTransformers(o),Oe.pathname(`/admin/geyser/${t}/tokens/${n}/acquire`));yield r.fetch(e).then(vn.ok)}))}removeAcquireToken(t,n,o={}){return e(this,void 0,void 0,(function*(){const e=v.del(...this.getCommonTransformers(o),Oe.pathname(`/admin/geyser/${t}/tokens/${n}/acquire`));yield r.fetch(e).then(vn.ok)}))}}class na{constructor(e){this.options=e,this.Configuration=new Qs(this.options),this.Blacklist=new Ys(this.options),this.Whitelist=new Xs(this.options),this.TokenPolicy=new ea(this.options),this.Token=new ta(this.options)}}var ra=r.AbortError,oa=gn.HTTPClientError,ia=vn.HTTPError;export{ra as AbortError,Ws as GeyserClient,na as GeyserManager,oa as HTTPClientError,ia as HTTPError};
|
|
44
16
|
//# sourceMappingURL=index.min.mjs.map
|