@blackglory/structures 0.3.4 → 0.3.5
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 -1
- package/dist/es2015/index.min.mjs.map +1 -1
- package/dist/es2015/index.mjs +4367 -1868
- package/dist/es2015/index.mjs.map +1 -1
- package/dist/es2015/index.umd.js +4367 -1868
- package/dist/es2015/index.umd.js.map +1 -1
- package/dist/es2015/index.umd.min.js +1 -1
- package/dist/es2015/index.umd.min.js.map +1 -1
- package/dist/es2018/index.min.mjs +1 -1
- package/dist/es2018/index.min.mjs.map +1 -1
- package/dist/es2018/index.mjs +4367 -1868
- package/dist/es2018/index.mjs.map +1 -1
- package/dist/es2018/index.umd.js +4367 -1868
- package/dist/es2018/index.umd.js.map +1 -1
- package/dist/es2018/index.umd.min.js +1 -1
- package/dist/es2018/index.umd.min.js.map +1 -1
- package/lib/es2015/index.js +5 -1
- package/lib/es2015/index.js.map +1 -1
- package/lib/es2018/index.js +5 -1
- package/lib/es2018/index.js.map +1 -1
- package/package.json +17 -17
|
@@ -12,5 +12,5 @@
|
|
|
12
12
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
13
13
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
14
14
|
PERFORMANCE OF THIS SOFTWARE.
|
|
15
|
-
***************************************************************************** */var e,n,r,i,o,a=function(t,e){return(a=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)};function s(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}a(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function c(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 u(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.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 a}function l(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}function f(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)}function d(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}e=new WeakMap;class h{constructor(){n.set(this,new Map)}get[(n=new WeakMap,Symbol.toStringTag)](){return this.constructor.name}on(t,e){f(this,n,"f").has(t)||f(this,n,"f").set(t,new Set);f(this,n,"f").get(t).add(e)}off(t,e){if(!f(this,n,"f").has(t))return;const r=f(this,n,"f").get(t);r.delete(e),0===r.size&&f(this,n,"f").delete(t)}emit(t,e){if(!f(this,n,"f").has(t))return;f(this,n,"f").get(t).forEach((t=>t(e)))}}class y{constructor(t){this.hash=t,r.set(this,new Map)}get[(r=new WeakMap,Symbol.toStringTag)](){return this.constructor.name}get size(){return f(this,r,"f").size}set(t,e){return f(this,r,"f").set(this.hash(t),e),this}has(t){return f(this,r,"f").has(this.hash(t))}get(t){return f(this,r,"f").get(this.hash(t))}delete(t){return f(this,r,"f").delete(this.hash(t))}clear(){f(this,r,"f").clear()}}class p{constructor(t){this.hash=t,i.set(this,new Map)}get[(i=new WeakMap,Symbol.toStringTag)](){return this.constructor.name}get size(){return f(this,i,"f").size}[Symbol.iterator](){return f(this,i,"f").values()}add(t){return f(this,i,"f").set(this.hash(t),t),this}delete(t){return f(this,i,"f").delete(this.hash(t))}has(t){return f(this,i,"f").has(this.hash(t))}clear(){f(this,i,"f").clear()}values(){return f(this,i,"f").values()}}class v{constructor(){o.set(this,[])}get[(o=new WeakMap,Symbol.toStringTag)](){return this.constructor.name}get size(){return f(this,o,"f").length}empty(){f(this,o,"f").length=0}enqueue(...t){f(this,o,"f").push(...t)}dequeue(){return f(this,o,"f").shift()}remove(t){let e;for(;(e=f(this,o,"f").indexOf(t))>=0;)f(this,o,"f").splice(e,1)}}var m="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},b={},g={},w={},S={},T={},A={},x={};x.go=void 0,x.go=function(t){return t()},function(t){var e=m&&m.__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]});(m&&m.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)})(x,t)}(A);var E={},I={CustomError:void 0};class _ extends Error{get name(){return this.constructor.name}}I.CustomError=_;var O={ExpectedError:void 0};const M=I;class j extends M.CustomError{}O.ExpectedError=j;var B={AssertionError:void 0};const k=I;class P extends k.CustomError{}B.AssertionError=P;var N={};N.normalize=void 0,N.normalize=function(t){var e;return{name:t.name,message:t.message,stack:null!==(e=t.stack)&&void 0!==e?e:null}};var C={refute:void 0};const R=O;C.refute=function(t,e){if(t)throw new R.ExpectedError(e)};var z={assert:void 0};const q=B;z.assert=function(t,e){if(!t)throw new q.AssertionError(e)},function(t){var e=m&&m.__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]}),n=m&&m.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};n(I,t),n(O,t),n(B,t),n(N,t),n(C,t),n(z,t)}(E),T.chunkAsync=void 0;const D=A,U=E;T.chunkAsync=function(t,e){return(0,U.assert)(Number.isInteger(e),"The parameter size must be an integer"),(0,U.assert)(e>0,"The parameter size must be greater than 0"),(0,D.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 J={},F={},W={};function L(t){return Array.isArray(t)}W.isntEmptyArray=W.isEmptyArray=W.isntArray=W.isArray=void 0,W.isArray=L,W.isntArray=function(t){return!L(t)},W.isEmptyArray=function(t){return 0===t.length},W.isntEmptyArray=function(t){return 0!==t.length};var H={},K={};function V(t){return null===t}K.isntNull=K.isNull=void 0,K.isNull=V,K.isntNull=function(t){return!V(t)};var Y={};function $(t){return void 0===t}Y.isntUndefined=Y.isUndefined=void 0,Y.isUndefined=$,Y.isntUndefined=function(t){return!$(t)},H.isntAsyncIterable=H.isAsyncIterable=void 0;const Q=K,G=Y;function X(t){return(0,Q.isntNull)(t)&&(0,G.isntUndefined)(t)&&"function"==typeof t[Symbol.asyncIterator]}H.isAsyncIterable=X,H.isntAsyncIterable=function(t){return!X(t)};var Z={};function tt(t){return"bigint"==typeof t}Z.isntBigInt=Z.isBigInt=void 0,Z.isBigInt=tt,Z.isntBigInt=function(t){return!tt(t)};var et={};function nt(t){return"boolean"==typeof t}et.isntBoolean=et.isBoolean=void 0,et.isBoolean=nt,et.isntBoolean=function(t){return!nt(t)};var rt={},it={};function ot(t){return"string"==typeof t}it.isntString=it.isString=void 0,it.isString=ot,it.isntString=function(t){return!ot(t)},rt.isntChar=rt.isChar=void 0;const at=it;function st(t){return(0,at.isString)(t)&&1===t.length}rt.isChar=st,rt.isntChar=function(t){return!st(t)};var ct={};function ut(t){return t instanceof Date}ct.isntDate=ct.isDate=void 0,ct.isDate=ut,ct.isntDate=function(t){return!ut(t)};var lt={};lt.inEnum=void 0,lt.inEnum=function(t,e){return Object.values(e).includes(t)};var ft={};function dt(t){return t instanceof Error}ft.isntError=ft.isError=void 0,ft.isError=dt,ft.isntError=function(t){return!dt(t)};var ht={};function yt(t){return!t}ht.isntFalsy=ht.isFalsy=void 0,ht.isFalsy=yt,ht.isntFalsy=function(t){return!yt(t)};var pt={};function vt(t){return"function"==typeof t}pt.isntFunction=pt.isFunction=void 0,pt.isFunction=vt,pt.isntFunction=function(t){return!vt(t)};var mt={};mt.isntIterable=mt.isIterable=void 0;const bt=K,gt=Y;function wt(t){return(0,bt.isntNull)(t)&&(0,gt.isntUndefined)(t)&&"function"==typeof t[Symbol.iterator]}mt.isIterable=wt,mt.isntIterable=function(t){return!wt(t)};var St={},Tt={};var At=Function.prototype,xt=Object.prototype,Et=At.toString,It=xt.hasOwnProperty,_t=Et.call(Object),Ot=xt.toString,Mt=function(t,e){return function(n){return t(e(n))}}(Object.getPrototypeOf,Object);var jt=function(t){if(!function(t){return!!t&&"object"==typeof t}(t)||"[object Object]"!=Ot.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=Mt(t);if(null===e)return!0;var n=It.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Et.call(n)==_t},Bt=m&&m.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Tt.isntEmptyObject=Tt.isEmptyObject=Tt.isntPlainObject=Tt.isPlainObject=Tt.isntObject=Tt.isObject=void 0;const kt=Bt(jt);function Pt(t){return null!==t&&"object"==typeof t}function Nt(t){return(0,kt.default)(t)}Tt.isObject=Pt,Tt.isntObject=function(t){return!Pt(t)},Tt.isPlainObject=Nt,Tt.isntPlainObject=function(t){return!Nt(t)},Tt.isEmptyObject=function(t){return 0===Object.keys(t).length},Tt.isntEmptyObject=function(t){return 0!==Object.keys(t).length};var Ct={};function Rt(t){return"number"==typeof t}Ct.isntNumber=Ct.isNumber=void 0,Ct.isNumber=Rt,Ct.isntNumber=function(t){return!Rt(t)},St.isntJsonRpcError=St.isJsonRpcError=St.isntJsonRpcSuccess=St.isJsonRpcSuccess=St.isntJsonRpcRequest=St.isJsonRpcRequest=St.isntJsonRpcNotification=St.isJsonRpcNotification=void 0;const zt=W,qt=Tt,Dt=it,Ut=Ct,Jt=Y;function Ft(t){return(0,Dt.isString)(t)||(0,Ut.isNumber)(t)}function Wt(t){return(0,zt.isArray)(t)||(0,qt.isObject)(t)}function Lt(t){return(0,qt.isPlainObject)(t)&&(0,Dt.isString)(t.jsonrpc)&&(0,Dt.isString)(t.method)&&(0,Jt.isUndefined)(t.id)&&Wt(t.params)}function Ht(t){return(0,qt.isPlainObject)(t)&&(0,Dt.isString)(t.jsonrpc)&&(0,Dt.isString)(t.method)&&Ft(t.id)&&Wt(t.params)}function Kt(t){return(0,qt.isPlainObject)(t)&&(0,Dt.isString)(t.jsonrpc)&&(0,Dt.isString)(t.id)&&"result"in t}function Vt(t){return(0,qt.isPlainObject)(t)&&(0,Dt.isString)(t.jsonrpc)&&Ft(t.id)&&function(t){return(0,qt.isPlainObject)(t)&&(0,Ut.isNumber)(t.code)&&(0,Dt.isString)(t.message)&&((0,Jt.isUndefined)(t.data)||(0,qt.isObject)(t.data))}(t.error)}St.isJsonRpcNotification=Lt,St.isntJsonRpcNotification=function(t){return!Lt(t)},St.isJsonRpcRequest=Ht,St.isntJsonRpcRequest=function(t){return!Ht(t)},St.isJsonRpcSuccess=Kt,St.isntJsonRpcSuccess=function(t){return!Kt(t)},St.isJsonRpcError=Vt,St.isntJsonRpcError=function(t){return!Vt(t)};var Yt={};Yt.isntJson=Yt.isJson=void 0,Yt.isJson=function(t){try{return JSON.stringify(t),!0}catch(t){return!1}},Yt.isntJson=function t(e){return!t()};var $t={};$t.isAbsoluteURL=void 0,$t.isAbsoluteURL=function(t){try{return new URL(t),!0}catch(t){return!1}},function(t){var e=m&&m.__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]}),n=m&&m.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};n(W,t),n(H,t),n(Z,t),n(et,t),n(rt,t),n(ct,t),n(lt,t),n(ft,t),n(ht,t),n(pt,t),n(mt,t),n(St,t),n(Yt,t),n(K,t),n(Ct,t),n(Tt,t),n(it,t),n(Y,t),n($t,t)}(F),J.chunkByAsync=void 0;const Qt=F;J.chunkByAsync=function(t,e){return(0,Qt.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 Gt={};Gt.chunkBy=void 0,Gt.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 Xt={chunk:void 0};const Zt=A,te=E;Xt.chunk=function(t,e){return(0,te.assert)(Number.isInteger(e),"The parameter size must be an integer"),(0,te.assert)(e>0,"The parameter size must be greater than 0"),(0,Zt.go)((function*(){let n=[];for(const r of t)n.push(r),n.length>=e&&(yield n,n=[]);n.length&&(yield n)}))};var ee={concatAsync:void 0};const ne=F,re=A;ee.concatAsync=function(t,...e){return(0,re.go)((async function*(){for(const n of[t,...e])if((0,ne.isAsyncIterable)(n))for await(const t of n)yield t;else for(const t of n)yield t}))};var ie={concat:void 0};const oe=A;ie.concat=function(t,...e){return(0,oe.go)((function*(){for(const n of[t,...e])yield*n}))};var ae={},se={};se.copyIterable=se.copyAsyncIterable=void 0,se.copyAsyncIterable=async function*(t){for await(const e of t)yield e},se.copyIterable=function*(t){for(const e of t)yield e},ae.dropAsync=void 0;const ce=A,ue=se,le=E;ae.dropAsync=function(t,e){return(0,le.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,le.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,ue.copyAsyncIterable)(t):(0,ce.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 fe={dropRightAsync:void 0};const de=A,he=se,ye=E;fe.dropRightAsync=function(t,e){return(0,ye.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,ye.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,he.copyAsyncIterable)(t):(0,de.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 pe={dropRight:void 0};const ve=A,me=se,be=E;pe.dropRight=function(t,e){return(0,be.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,be.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,me.copyIterable)(t):(0,ve.go)((function*(){const n=Array.from(t);yield*n.slice(0,-e)}))};var ge={dropUntilAsync:void 0};const we=F;ge.dropUntilAsync=function(t,e){return(0,we.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 Se={};Se.dropUntil=void 0,Se.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 Te={drop:void 0};const Ae=A,xe=se,Ee=E;Te.drop=function(t,e){return(0,Ee.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Ee.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,xe.copyIterable)(t):(0,Ae.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 Ie={filterAsync:void 0};const _e=F;Ie.filterAsync=function(t,e){return(0,_e.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 Oe={};Oe.filter=void 0,Oe.filter=function*(t,e){let n=0;for(const r of t)e(r,n)&&(yield r),n++};var Me={},je={},Be={flattenByAsync:void 0};const ke=F;function Pe(t){return(0,ke.isIterable)(t)&&(0,ke.isntChar)(t)}Be.flattenByAsync=function(t,e){return(0,ke.isAsyncIterable)(t)?async function*(t){const r=1;for await(const i of t)Pe(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)Pe(i)&&await e(i,r)?yield*n(i,r+1):yield i}},je.flattenDeepAsync=void 0;const Ne=Be,Ce=E;je.flattenDeepAsync=function(t,e=1/0){return(0,Ce.assert)(e===1/0||Number.isInteger(e),"The parameter depth must be an integer"),(0,Ce.assert)(e>=0,"The parameter depth must be greater than or equal to 0"),(0,Ne.flattenByAsync)(t,((t,n)=>n<=e))},Me.flattenAsync=void 0;const Re=je;Me.flattenAsync=function(t){return(0,Re.flattenDeepAsync)(t,1)};var ze={flattenBy:void 0};const qe=F;ze.flattenBy=function(t,e){return function*t(n,r){for(const o of n)i=o,(0,qe.isIterable)(i)&&(0,qe.isntChar)(i)&&e(o,r)?yield*t(o,r+1):yield o;var i}(t,1)};var De={flattenDeep:void 0};const Ue=ze,Je=E;De.flattenDeep=function(t,e=1/0){return(0,Je.assert)(e===1/0||Number.isInteger(e),"The parameter depth must be an integer"),(0,Je.assert)(e>=0,"The parameter depth must be greater than or equal to 0"),(0,Ue.flattenBy)(t,((t,n)=>n<=e))};var Fe={flatten:void 0};const We=De;Fe.flatten=function(t){return(0,We.flattenDeep)(t,1)};var Le={mapAsync:void 0};const He=F;Le.mapAsync=function(t,e){return(0,He.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 Ke={};Ke.map=void 0,Ke.map=function*(t,e){let n=0;for(const r of t)yield e(r,n),n++};var Ve={repeatAsync:void 0};const Ye=A,$e=E;Ve.repeatAsync=function(t,e){return(0,$e.assert)(e===1/0||Number.isInteger(e),"The parameter times must be an integer"),(0,$e.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,Ye.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 Qe={repeat:void 0};const Ge=A,Xe=E;Qe.repeat=function(t,e){return(0,Xe.assert)(e===1/0||Number.isInteger(e),"The parameter times must be an integer"),(0,Xe.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,Ge.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 Ze={sliceAsync:void 0};const tn=A,en=E;Ze.sliceAsync=function(t,e,n=1/0){return(0,en.assert)(Number.isInteger(e),"The parameter start must be an integer"),(0,en.assert)(e>=0,"The parameter start must be greater than or equal to 0"),(0,en.assert)(Number.isInteger(n),"The parameter end must be an integer"),(0,en.assert)(n>=e,"The parameter end must be greater than or equal to start"),(0,tn.go)((async function*(){let r=0;for await(const i of t){if(r>=n)break;r>=e&&(yield i),r++}}))};var nn={slice:void 0};const rn=A,on=E;nn.slice=function(t,e,n=1/0){return(0,on.assert)(Number.isInteger(e),"The parameter start must be an integer"),(0,on.assert)(e>=0,"The parameter start must be greater than or equal to 0"),(0,on.assert)(Number.isInteger(n),"The parameter end must be an integer"),(0,on.assert)(n>=e,"The parameter end must be greater than or equal to start"),(0,rn.go)((function*(){let r=0;for(const i of t){if(r>=n)break;r>=e&&(yield i),r++}}))};var an={};an.splitAsync=void 0,an.splitAsync=async function*(t,e){let n=[];for await(const r of t)r===e?(yield n,n=[]):n.push(r);yield n};var sn={splitByAsync:void 0};const cn=F;sn.splitByAsync=function(t,e){return(0,cn.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 un={};un.splitBy=void 0,un.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 ln={};ln.split=void 0,ln.split=function*(t,e){let n=[];for(const r of t)r===e?(yield n,n=[]):n.push(r);yield n};var fn={takeAsync:void 0};const dn=A,hn=E;fn.takeAsync=function(t,e){return(0,hn.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,hn.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,dn.go)((async function*(){if(0!==e)for await(const n of t)if(yield n,0===--e)break}))};var yn={takeRightAsync:void 0};const pn=A,vn=E;yn.takeRightAsync=function(t,e){return(0,vn.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,vn.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,pn.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 mn={takeRight:void 0};const bn=A,gn=E;mn.takeRight=function(t,e){return(0,gn.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,gn.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,bn.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 wn={takeUntilAsync:void 0};const Sn=F;wn.takeUntilAsync=function(t,e){return(0,Sn.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 Tn={};Tn.takeUntil=void 0,Tn.takeUntil=function*(t,e){let n=0;for(const r of t){if(e(r,n))break;yield r,n++}};var An={take:void 0};const xn=A,En=E;An.take=function(t,e){return(0,En.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,En.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,xn.go)((function*(){if(0!==e)for(const n of t)if(yield n,0===--e)break}))};var In={tapAsync:void 0};const _n=F;In.tapAsync=function(t,e){return(0,_n.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 On={};On.tap=void 0,On.tap=function*(t,e){let n=0;for(const r of t)e(r,n),yield r,n++};var Mn={};Mn.toAsyncIterable=void 0,Mn.toAsyncIterable=async function*(t){for(const e of t)yield e};var jn={};jn.transformAsync=void 0,jn.transformAsync=async function*(t,e){yield*e(t)};var Bn={};Bn.transform=void 0,Bn.transform=function*(t,e){yield*e(t)};var kn={};kn.uniqAsync=void 0,kn.uniqAsync=async function*(t){const e=new Set;for await(const n of t)e.has(n)||(yield n,e.add(n))};var Pn={uniqByAsync:void 0};const Nn=F;Pn.uniqByAsync=function(t,e){return(0,Nn.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 Cn={};Cn.uniqBy=void 0,Cn.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 Rn={};Rn.uniq=void 0,Rn.uniq=function*(t){const e=new Set;for(const n of t)e.has(n)||(yield n,e.add(n))};var zn={zipAsync:void 0};const qn=F;var Dn;!function(t){t[t.Sync=0]="Sync",t[t.Async=1]="Async"}(Dn||(Dn={})),zn.zipAsync=function(t,...e){return async function*(...t){var e,n,r,i;const o=t.length,a=t.map((t=>(0,qn.isAsyncIterable)(t)?[Dn.Async,t[Symbol.asyncIterator]()]:[Dn.Sync,t[Symbol.iterator]()])),s=a.map((()=>!1));try{for(;;){const t=new Array(o);for(let e=0;e<o;e++){const[n,r]=a[e];let i;if(i=n===Dn.Async?await r.next():r.next(),i.done)return void(s[e]=!0);t[e]=i.value}yield t}}finally{const t=a.filter(((t,e)=>!s[e]));for(const[o,a]of t)o===Dn.Async?await(null===(n=(e=a).return)||void 0===n?void 0:n.call(e)):null===(i=(r=a).return)||void 0===i||i.call(r)}}(t,...e)};var Un={};Un.zip=void 0,Un.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 e=m&&m.__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]}),n=m&&m.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};n(T,t),n(J,t),n(Gt,t),n(Xt,t),n(ee,t),n(ie,t),n(ae,t),n(fe,t),n(pe,t),n(ge,t),n(Se,t),n(Te,t),n(Ie,t),n(Oe,t),n(Me,t),n(Be,t),n(ze,t),n(je,t),n(De,t),n(Fe,t),n(Le,t),n(Ke,t),n(Ve,t),n(Qe,t),n(Ze,t),n(nn,t),n(an,t),n(sn,t),n(un,t),n(ln,t),n(fn,t),n(yn,t),n(mn,t),n(wn,t),n(Tn,t),n(An,t),n(In,t),n(On,t),n(Mn,t),n(jn,t),n(Bn,t),n(kn,t),n(Pn,t),n(Cn,t),n(Rn,t),n(zn,t),n(Un,t)}(S);var Jn={},Fn={};Fn.consume=void 0,Fn.consume=function(t,e){return e(t)};var Wn={eachAsync:void 0};const Ln=F;Wn.eachAsync=function(t,e){return(0,Ln.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 Hn={};Hn.each=void 0,Hn.each=function(t,e){let n=0;for(const r of t)e(r,n),n++};var Kn={everyAsync:void 0};const Vn=F;Kn.everyAsync=function(t,e){return(0,Vn.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 Yn={};Yn.every=void 0,Yn.every=function(t,e){let n=0;for(const r of t){if(!e(r,n))return!1;n++}return!0};var $n={findAsync:void 0};const Qn=F;$n.findAsync=function(t,e){return(0,Qn.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 Gn={};Gn.find=void 0,Gn.find=function(t,e){let n=0;for(const r of t){if(e(r,n))return r;n++}};var Xn={};Xn.firstAsync=void 0,Xn.firstAsync=async function(t){for await(const e of t)return e};var Zn={};Zn.first=void 0,Zn.first=function(t){for(const e of t)return e};var tr={};tr.includesAsync=void 0,tr.includesAsync=async function(t,e){for await(const n of t)if(n===e)return!0;return!1};var er={};er.includes=void 0,er.includes=function(t,e){for(const n of t)if(n===e)return!0;return!1};var nr={};nr.matchAsync=void 0,nr.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 rr={};rr.match=void 0,rr.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 ir={reduceAsync:void 0};const or=F;ir.reduceAsync=function(t,e,n){return(0,or.isUndefined)(n)?function(t,e){return(0,or.isAsyncIterable)(t)?n(t):r(t);async function n(t){var n;const r=t[Symbol.asyncIterator]();let i;try{let t,a=await o(r),s=1;for(;({value:t,done:i}=await r.next()),!i;)a=await e(a,t,s++);return a}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,a=o(r),s=1;for(;({value:t,done:i}=r.next()),!i;)a=await e(a,t,s++);return a}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,or.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 ar={reduce:void 0};const sr=F;ar.reduce=function(t,e,n){return(0,sr.isUndefined)(n)?function(t,e){var n;const r=t[Symbol.iterator]();let i;try{let t,a=o(r),s=1;for(;({value:t,done:i}=r.next()),!i;)a=e(a,t,s++);return a}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 cr={someAsync:void 0};const ur=F;cr.someAsync=function(t,e){return(0,ur.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 lr={};lr.some=void 0,lr.some=function(t,e){let n=0;for(const r of t){if(e(r,n))return!0;n++}return!1};var fr={};fr.lastAsync=void 0,fr.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 dr={};dr.last=void 0,dr.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 hr={toArrayAsync:void 0};const yr=Fn;hr.toArrayAsync=function(t){return(0,yr.consume)(t,(async t=>{const e=[];for await(const n of t)e.push(n);return e}))};var pr={toArray:void 0};const vr=Fn;pr.toArray=function(t){return(0,vr.consume)(t,(t=>Array.from(t)))};var mr={toSetAsync:void 0};const br=Fn;mr.toSetAsync=function(t){return(0,br.consume)(t,(async t=>{const e=new Set;for await(const n of t)e.add(n);return e}))};var gr={toSet:void 0};const wr=Fn;gr.toSet=function(t){return(0,wr.consume)(t,(t=>new Set(t)))},function(t){var e=m&&m.__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]}),n=m&&m.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};n(Fn,t),n(Wn,t),n(Hn,t),n(Kn,t),n(Yn,t),n($n,t),n(Gn,t),n(Xn,t),n(Zn,t),n(tr,t),n(er,t),n(nr,t),n(rr,t),n(ir,t),n(ar,t),n(cr,t),n(lr,t),n(fr,t),n(dr,t),n(hr,t),n(pr,t),n(mr,t),n(gr,t)}(Jn),function(t){var e=m&&m.__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]}),n=m&&m.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};n(S,t),n(Jn,t)}(w);var Sr={},Tr={};Tr.traverseErrorPrototypeChain=void 0,Tr.traverseErrorPrototypeChain=function*(t){let e=t;for(;(e=Object.getPrototypeOf(e))&&(yield e,e!==Error.prototype););},Sr.getErrorNames=void 0;const Ar=F,xr=Tr;Sr.getErrorNames=function*(t){var e;if((0,Ar.isError)(t))for(const n of(0,xr.traverseErrorPrototypeChain)(t))(null===(e=n.constructor)||void 0===e?void 0:e.name)&&(yield n.constructor.name);else yield t.name,yield*t.ancestors};var Er={isSerializableError:void 0};const Ir=F;Er.isSerializableError=function(t){return(0,Ir.isObject)(t)&&(0,Ir.isString)(t.name)&&(0,Ir.isString)(t.message)&&((0,Ir.isString)(t.stack)||(0,Ir.isNull)(t.stack))&&(0,Ir.isArray)(t.ancestors)&&t.ancestors.every(Ir.isString)},g.CustomError=void 0;const _r=w,Or=Sr,Mr=F,jr=Er;class Br extends Error{get name(){var t,e;return null!==(e=null!==(t=(0,_r.first)((0,Or.getErrorNames)(this)))&&void 0!==t?t:Br.name)&&void 0!==e?e:"CustomError"}static[Symbol.hasInstance](t){var e;if((0,Mr.isError)(t)||(0,jr.isSerializableError)(t)){const n=[null!==(e=this.prototype.constructor.name)&&void 0!==e?e:this.name,...(0,Or.getErrorNames)(this.prototype)].reverse(),r=(0,_r.toArray)((0,Or.getErrorNames)(t)).reverse();return n.every(((t,e)=>t===r[e]))}return!1}}g.CustomError=Br;var kr={AssertionError:void 0};const Pr=g;class Nr extends Pr.CustomError{}kr.AssertionError=Nr;var Cr={normalize:void 0};const Rr=Sr,zr=w;Cr.normalize=function(t){var e;const[n,...r]=(0,zr.toArray)((0,Rr.getErrorNames)(t));return{name:n,ancestors:r,message:t.message,stack:null!==(e=t.stack)&&void 0!==e?e:null}};var qr={},Dr={},Ur={};Ur.pass=void 0,Ur.pass=function(){},function(t){var e=m&&m.__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]});(m&&m.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)})(Ur,t)}(Dr),qr.hydrate=void 0;const Jr=Dr;function Fr(t,e){const n=function(){(0,Jr.pass)()};return(n.prototype=Object.create(t.prototype)).constructor=n,Object.defineProperty(n,"name",{value:e}),n}qr.hydrate=function(t){var e;const n=[t.name,...t.ancestors].slice(0,-1).reverse();let r=Error;for(const t of n)r=Fr(r,t);const i=new r;return i.name=t.name,i.message=t.message,i.stack=null!==(e=t.stack)&&void 0!==e?e:void 0,i};var Wr={assert:void 0};const Lr=kr;var Hr,Kr;Wr.assert=function(t,e){if(!t)throw new Lr.AssertionError(e)},function(t){var e=m&&m.__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]}),n=m&&m.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};n(g,t),n(kr,t),n(Er,t),n(Cr,t),n(qr,t),n(Wr,t),n(Sr,t),n(Tr,t)}(b);class Vr{constructor(t){Hr.set(this,void 0),Kr.set(this,new Map),b.assert(Number.isInteger(t),"The parameter limit must be an integer"),b.assert(t>0,"The parameter limit must be a positive value"),d(this,Hr,t,"f")}get[(Hr=new WeakMap,Kr=new WeakMap,Symbol.toStringTag)](){return this.constructor.name}get size(){return f(this,Kr,"f").size}set(t,e){return f(this,Kr,"f").has(t)?this.updateItem(t,e):(f(this,Kr,"f").size===f(this,Hr,"f")&&f(this,Kr,"f").delete(this.getColdestKey()),f(this,Kr,"f").set(t,e)),this}has(t){return f(this,Kr,"f").has(t)}get(t){if(!this.has(t))return;const e=f(this,Kr,"f").get(t);return this.updateItem(t,e),e}delete(t){return f(this,Kr,"f").delete(t)}clear(){f(this,Kr,"f").clear()}updateItem(t,e){f(this,Kr,"f").delete(t),f(this,Kr,"f").set(t,e)}getColdestKey(){return w.first(f(this,Kr,"f").keys())}}var Yr={},$r={},Qr={},Gr={};Gr.random=void 0,Gr.random=function(t,e){return Math.random()*(e-t)+t};var Xr={};Xr.randomInt=void 0,Xr.randomInt=function(t,e){return t=Math.ceil(t),e=Math.floor(e),Math.floor(Math.random()*(e-t))+t};var Zr={};Zr.randomIntInclusive=void 0,Zr.randomIntInclusive=function(t,e){return t=Math.ceil(t),e=Math.floor(e),Math.floor(Math.random()*(e-t+1))+t},function(t){var e=m&&m.__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]}),n=m&&m.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};n(Gr,t),n(Xr,t),n(Zr,t)}(Qr),$r.calculateExponentialBackoffTimeout=void 0;const ti=Qr;$r.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,ti.randomIntInclusive)(0,o):o};var ei={};ei.setTimeout=void 0,ei.setTimeout=function(t,e){const n=globalThis.setTimeout(e,t);return()=>clearTimeout(n)};var ni={setSchedule:void 0};const ri=ei;ni.setSchedule=function(t,e){const n=t-Date.now();return(0,ri.setTimeout)(n,e)};var ii={};ii.setInterval=void 0,ii.setInterval=function(t,e){const n=globalThis.setInterval(e,t);return()=>clearInterval(n)};var oi={setImmediate:void 0};const ai=ei;oi.setImmediate=function(t){if(globalThis.setImmediate){const e=globalThis.setImmediate(t);return()=>clearImmediate(e)}return(0,ai.setTimeout)(0,t)};var si={setTimeoutLoop:void 0};const ci=ei;si.setTimeoutLoop=function(t,e){let n=!1,r=(0,ci.setTimeout)(t,(async function i(){await e(),n||(r=(0,ci.setTimeout)(t,i))}));return()=>{n=!0,r()}};var ui={setDynamicTimeoutLoop:void 0};const li=ei;var fi,di,hi,yi,pi,vi,mi;ui.setDynamicTimeoutLoop=function(t,e){let n=!1,r=(0,li.setTimeout)(t,(async function i(){const o=Date.now();await e();const a=Date.now()-o;n||(r=(0,li.setTimeout)(Math.max(t-a,0),i))}));return()=>{n=!0,r()}},function(t){var e=m&&m.__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]}),n=m&&m.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};n($r,t),n(ei,t),n(ni,t),n(ii,t),n(oi,t),n(si,t),n(ui,t)}(Yr);class bi{constructor(){fi.set(this,new Map),di.set(this,void 0),this.itemMetadataSortedByExpirationTime=[]}get[(fi=new WeakMap,di=new WeakMap,Symbol.toStringTag)](){return this.constructor.name}get size(){return f(this,fi,"f").size}set(t,e,n){return f(this,fi,"f").set(t,e),this.removeItemMetadata(t),this.addItemMetadata(t,Date.now()+n),this}has(t){return f(this,fi,"f").has(t)}get(t){return f(this,fi,"f").get(t)}delete(t){const e=f(this,fi,"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;f(this,fi,"f").clear(),null===(t=f(this,di,"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=>f(this,fi,"f").delete(t.key)))}rescheduleClearTimeout(){var t;if(null===(t=f(this,di,"f"))||void 0===t||t.call(this),this.itemMetadataSortedByExpirationTime.length>0){const t=this.itemMetadataSortedByExpirationTime[0];if(Number.isFinite(t.expirationTime)){const e=Yr.setSchedule(t.expirationTime,(()=>{this.clearExpiredItems(Date.now()),this.rescheduleClearTimeout()}));d(this,di,(()=>{e(),d(this,di,void 0,"f")}),"f")}}}}class gi{constructor(t){hi.set(this,void 0),yi.set(this,new Map),pi.set(this,void 0),this.itemMetadataSortedByExpirationTime=[],b.assert(Number.isInteger(t),"The parameter limit must be an integer"),b.assert(t>0,"The parameter limit must be a positive value"),d(this,hi,t,"f")}get[(hi=new WeakMap,yi=new WeakMap,pi=new WeakMap,Symbol.toStringTag)](){return this.constructor.name}get size(){return f(this,yi,"f").size}set(t,e,n){return f(this,yi,"f").has(t)?(this.updateItem(t,e),this.removeItemMetadata(t),this.addItemMetadata(t,Date.now()+n)):(f(this,yi,"f").size===f(this,hi,"f")&&f(this,yi,"f").delete(this.getColdestKey()),f(this,yi,"f").set(t,e),this.addItemMetadata(t,Date.now()+n)),this}has(t){return f(this,yi,"f").has(t)}get(t){if(this.has(t)){const e=f(this,yi,"f").get(t);return this.updateItem(t,e),e}}delete(t){const e=f(this,yi,"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;f(this,yi,"f").clear(),null===(t=f(this,pi,"f"))||void 0===t||t.call(this),this.itemMetadataSortedByExpirationTime=[]}updateItem(t,e){f(this,yi,"f").delete(t),f(this,yi,"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=>f(this,yi,"f").delete(t.key)))}rescheduleClearTimeout(){var t;if(null===(t=f(this,pi,"f"))||void 0===t||t.call(this),this.itemMetadataSortedByExpirationTime.length>0){const t=this.itemMetadataSortedByExpirationTime[0];if(Number.isFinite(t.expirationTime)){const e=Yr.setSchedule(t.expirationTime,(()=>{this.clearExpiredItems(Date.now()),this.rescheduleClearTimeout()}));d(this,pi,(()=>{e(),d(this,pi,void 0,"f")}),"f")}}}getColdestKey(){return w.first(f(this,yi,"f").keys())}}class wi{constructor(t){this.value=t,this.children=new Map}}class Si{constructor(){vi.set(this,new wi)}get[(vi=new WeakMap,Symbol.toStringTag)](){return this.constructor.name}set(t,e){let n=f(this,vi,"f");for(const e of t)n.children.has(e)||n.children.set(e,new wi),n=n.children.get(e);return n.value=e,this}has(t){let e=f(this,vi,"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=f(this,vi,"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=f(this,vi,"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 w.toArray(w.zip(t,e)).reverse())if(r.children.delete(n),0!==r.children.size)break;return!0}}class Ti{constructor(t,e){this.schema=t,mi.set(this,void 0),d(this,mi,e,"f")}get state(){return f(this,mi,"f")}matches(t){return f(this,mi,"f")===t}can(t){return t in this.schema[this.state]}send(t){if(!this.can(t))throw new Ai(this.state,t);d(this,mi,this.schema[this.state][t],"f")}}mi=new WeakMap;class Ai extends b.CustomError{constructor(t,e){super(`State ${t} cannot react to event ${e}`)}}function xi(t){return"function"==typeof t}function Ei(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 Ii=Ei((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 _i(t,e){if(t){var n=t.indexOf(e);0<=n&&t.splice(n,1)}}var Oi=function(){function t(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._teardowns=null}var e;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 a=c(o),s=a.next();!s.done;s=a.next()){s.value.remove(this)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(e=a.return)&&e.call(a)}finally{if(t)throw t.error}}else o.remove(this);var f=this.initialTeardown;if(xi(f))try{f()}catch(t){i=t instanceof Ii?t.errors:[t]}var d=this._teardowns;if(d){this._teardowns=null;try{for(var h=c(d),y=h.next();!y.done;y=h.next()){var p=y.value;try{Bi(p)}catch(t){i=null!=i?i:[],t instanceof Ii?i=l(l([],u(i)),u(t.errors)):i.push(t)}}}catch(t){n={error:t}}finally{try{y&&!y.done&&(r=h.return)&&r.call(h)}finally{if(n)throw n.error}}}if(i)throw new Ii(i)}},t.prototype.add=function(e){var n;if(e&&e!==this)if(this.closed)Bi(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)&&_i(e,t)},t.prototype.remove=function(e){var n=this._teardowns;n&&_i(n,e),e instanceof t&&e._removeParent(this)},t.EMPTY=((e=new t).closed=!0,e),t}(),Mi=Oi.EMPTY;function ji(t){return t instanceof Oi||t&&"closed"in t&&xi(t.remove)&&xi(t.add)&&xi(t.unsubscribe)}function Bi(t){xi(t)?t():t.unsubscribe()}var ki={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Pi={setTimeout:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Pi.delegate;return((null==n?void 0:n.setTimeout)||setTimeout).apply(void 0,l([],u(t)))},clearTimeout:function(t){var e=Pi.delegate;return((null==e?void 0:e.clearTimeout)||clearTimeout)(t)},delegate:void 0};function Ni(){}var Ci=null;function Ri(t){if(ki.useDeprecatedSynchronousErrorHandling){var e=!Ci;if(e&&(Ci={errorThrown:!1,error:null}),t(),e){var n=Ci,r=n.errorThrown,i=n.error;if(Ci=null,r)throw i}}else t()}var zi=function(t){function e(e){var n=t.call(this)||this;return n.isStopped=!1,e?(n.destination=e,ji(e)&&e.add(n)):n.destination=Wi,n}return s(e,t),e.create=function(t,e,n){return new Ji(t,e,n)},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(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}(Oi),qi=Function.prototype.bind;function Di(t,e){return qi.call(t,e)}var Ui=function(){function t(t){this.partialObserver=t}return t.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(t){Fi(t)}},t.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(t){Fi(t)}else Fi(t)},t.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(t){Fi(t)}},t}(),Ji=function(t){function e(e,n,r){var i,o,a=t.call(this)||this;xi(e)||!e?i={next:null!=e?e:void 0,error:null!=n?n:void 0,complete:null!=r?r:void 0}:a&&ki.useDeprecatedNextContext?((o=Object.create(e)).unsubscribe=function(){return a.unsubscribe()},i={next:e.next&&Di(e.next,o),error:e.error&&Di(e.error,o),complete:e.complete&&Di(e.complete,o)}):i=e;return a.destination=new Ui(i),a}return s(e,t),e}(zi);function Fi(t){var e;e=t,Pi.setTimeout((function(){throw e}))}var Wi={closed:!0,next:Ni,error:function(t){throw t},complete:Ni},Li="function"==typeof Symbol&&Symbol.observable||"@@observable";function Hi(t){return t}function Ki(t){return 0===t.length?Hi:1===t.length?t[0]:function(e){return t.reduce((function(t,e){return e(t)}),e)}}var Vi=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 zi||function(t){return t&&xi(t.next)&&xi(t.error)&&xi(t.complete)}(r)&&ji(r)?t:new Ji(t,e,n);return Ri((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=Yi(e))((function(e,r){var i=new Ji({next:function(e){try{t(e)}catch(t){r(t),i.unsubscribe()}},error:r,complete:e});n.subscribe(i)}))},t.prototype._subscribe=function(t){var e;return null===(e=this.source)||void 0===e?void 0:e.subscribe(t)},t.prototype[Li]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Ki(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=Yi(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 Yi(t){var e;return null!==(e=null!=t?t:ki.Promise)&&void 0!==e?e:Promise}var $i=Ei((function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),Qi=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 s(e,t),e.prototype.lift=function(t){var e=new Gi(this,this);return e.operator=t,e},e.prototype._throwIfClosed=function(){if(this.closed)throw new $i},e.prototype.next=function(t){var e=this;Ri((function(){var n,r;if(e._throwIfClosed(),!e.isStopped){var i=e.observers.slice();try{for(var o=c(i),a=o.next();!a.done;a=o.next()){a.value.next(t)}}catch(t){n={error:t}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}}))},e.prototype.error=function(t){var e=this;Ri((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;Ri((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?Mi:(i.push(t),new Oi((function(){return _i(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 Vi;return t.source=this,t},e.create=function(t,e){return new Gi(t,e)},e}(Vi),Gi=function(t){function e(e,n){var r=t.call(this)||this;return r.destination=e,r.source=n,r}return s(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:Mi},e}(Qi);t.BadEventError=Ai,t.Box=class{constructor(t){e.set(this,void 0),d(this,e,t,"f")}set(t){d(this,e,t,"f")}get(){return f(this,e,"f")}},t.Emitter=h,t.ExpirableMap=bi,t.FiniteStateMachine=Ti,t.HashMap=y,t.HashSet=p,t.LRUMap=Vr,t.ObservableFiniteStateMachine=class extends Ti{constructor(){super(...arguments),this.stateChanges=new Qi}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}),F.isEmptyObject(this.schema[n])&&this.stateChanges.complete()}},t.Queue=v,t.TLRUMap=gi,t.TrieMap=Si,t.convertArrayToCons=function t([e,...n]){return[e,n.length?t(n):null]},t.convertConsToArray=function t([e,n]){return null===n?[e]:[e,...t(n)]},Object.defineProperty(t,"__esModule",{value:!0})}));
|
|
15
|
+
***************************************************************************** */var e,n,r,i,o,a=function(t,e){return(a=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)};function s(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}a(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function c(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 u(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.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 a}function l(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}function f(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)}function d(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}e=new WeakMap;class y{constructor(){n.set(this,new Map)}get[(n=new WeakMap,Symbol.toStringTag)](){return this.constructor.name}on(t,e){f(this,n,"f").has(t)||f(this,n,"f").set(t,new Set);f(this,n,"f").get(t).add(e)}off(t,e){if(!f(this,n,"f").has(t))return;const r=f(this,n,"f").get(t);r.delete(e),0===r.size&&f(this,n,"f").delete(t)}emit(t,e){if(!f(this,n,"f").has(t))return;f(this,n,"f").get(t).forEach((t=>t(e)))}}class v{constructor(t){this.hash=t,r.set(this,new Map)}get[(r=new WeakMap,Symbol.toStringTag)](){return this.constructor.name}get size(){return f(this,r,"f").size}set(t,e){return f(this,r,"f").set(this.hash(t),e),this}has(t){return f(this,r,"f").has(this.hash(t))}get(t){return f(this,r,"f").get(this.hash(t))}delete(t){return f(this,r,"f").delete(this.hash(t))}clear(){f(this,r,"f").clear()}}class h{constructor(t){this.hash=t,i.set(this,new Map)}get[(i=new WeakMap,Symbol.toStringTag)](){return this.constructor.name}get size(){return f(this,i,"f").size}[Symbol.iterator](){return f(this,i,"f").values()}add(t){return f(this,i,"f").set(this.hash(t),t),this}delete(t){return f(this,i,"f").delete(this.hash(t))}has(t){return f(this,i,"f").has(this.hash(t))}clear(){f(this,i,"f").clear()}values(){return f(this,i,"f").values()}}class p{constructor(){o.set(this,[])}get[(o=new WeakMap,Symbol.toStringTag)](){return this.constructor.name}get size(){return f(this,o,"f").length}empty(){f(this,o,"f").length=0}enqueue(...t){f(this,o,"f").push(...t)}dequeue(){return f(this,o,"f").shift()}remove(t){let e;for(;(e=f(this,o,"f").indexOf(t))>=0;)f(this,o,"f").splice(e,1)}}var m="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},b={},g={},w={},A={},S={},I={},T={};T.go=void 0,T.go=function(t){return t()},function(t){var e=m&&m.__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]});(m&&m.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)})(T,t)}(I);var E={},O={CustomError:void 0};class x extends Error{get name(){return this.constructor.name}}O.CustomError=x;var j={ExpectedError:void 0};const _=O;class B extends _.CustomError{}j.ExpectedError=B;var k={AssertionError:void 0};const N=O;class P extends N.CustomError{}k.AssertionError=P;var M={};M.normalize=void 0,M.normalize=function(t){var e;return{name:t.name,message:t.message,stack:null!==(e=t.stack)&&void 0!==e?e:null}};var R={refute:void 0};const C=j;R.refute=function(t,e){if(t)throw new C.ExpectedError(e)};var q={assert:void 0};const U=k;q.assert=function(t,e){if(!t)throw new U.AssertionError(e)},function(t){var e=m&&m.__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]}),n=m&&m.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};n(O,t),n(j,t),n(k,t),n(M,t),n(R,t),n(q,t)}(E),S.chunkAsync=void 0;const J=I,z=E;S.chunkAsync=function(t,e){return(0,z.assert)(Number.isInteger(e),"The parameter size must be an integer"),(0,z.assert)(e>0,"The parameter size must be greater than 0"),(0,J.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 D={},F={},L={};function W(t){return Array.isArray(t)}L.isntEmptyArray=L.isEmptyArray=L.isntArray=L.isArray=void 0,L.isArray=W,L.isntArray=function(t){return!W(t)},L.isEmptyArray=function(t){return 0===t.length},L.isntEmptyArray=function(t){return 0!==t.length};var H={},K={};function V(t){return null===t}K.isntNull=K.isNull=void 0,K.isNull=V,K.isntNull=function(t){return!V(t)};var Y={};function $(t){return void 0===t}Y.isntUndefined=Y.isUndefined=void 0,Y.isUndefined=$,Y.isntUndefined=function(t){return!$(t)},H.isntAsyncIterable=H.isAsyncIterable=void 0;const Q=K,G=Y;function X(t){return(0,Q.isntNull)(t)&&(0,G.isntUndefined)(t)&&"function"==typeof t[Symbol.asyncIterator]}H.isAsyncIterable=X,H.isntAsyncIterable=function(t){return!X(t)};var Z={};function tt(t){return"bigint"==typeof t}Z.isntBigInt=Z.isBigInt=void 0,Z.isBigInt=tt,Z.isntBigInt=function(t){return!tt(t)};var et={};function nt(t){return"boolean"==typeof t}et.isntBoolean=et.isBoolean=void 0,et.isBoolean=nt,et.isntBoolean=function(t){return!nt(t)};var rt={},it={};function ot(t){return"string"==typeof t}it.isntString=it.isString=void 0,it.isString=ot,it.isntString=function(t){return!ot(t)},rt.isntChar=rt.isChar=void 0;const at=it;function st(t){return(0,at.isString)(t)&&1===t.length}rt.isChar=st,rt.isntChar=function(t){return!st(t)};var ct={};function ut(t){return t instanceof Date}ct.isntDate=ct.isDate=void 0,ct.isDate=ut,ct.isntDate=function(t){return!ut(t)};var lt={};lt.inEnum=void 0,lt.inEnum=function(t,e){return Object.values(e).includes(t)};var ft={};function dt(t){return t instanceof Error}ft.isntError=ft.isError=void 0,ft.isError=dt,ft.isntError=function(t){return!dt(t)};var yt={};function vt(t){return!t}yt.isntFalsy=yt.isFalsy=void 0,yt.isFalsy=vt,yt.isntFalsy=function(t){return!vt(t)};var ht={};function pt(t){return"function"==typeof t}ht.isntFunction=ht.isFunction=void 0,ht.isFunction=pt,ht.isntFunction=function(t){return!pt(t)};var mt={};mt.isntIterable=mt.isIterable=void 0;const bt=K,gt=Y;function wt(t){return(0,bt.isntNull)(t)&&(0,gt.isntUndefined)(t)&&"function"==typeof t[Symbol.iterator]}mt.isIterable=wt,mt.isntIterable=function(t){return!wt(t)};var At={},St={};var It=Function.prototype,Tt=Object.prototype,Et=It.toString,Ot=Tt.hasOwnProperty,xt=Et.call(Object),jt=Tt.toString,_t=function(t,e){return function(n){return t(e(n))}}(Object.getPrototypeOf,Object);var Bt=function(t){if(!function(t){return!!t&&"object"==typeof t}(t)||"[object Object]"!=jt.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=_t(t);if(null===e)return!0;var n=Ot.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Et.call(n)==xt},kt=m&&m.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};St.isntEmptyObject=St.isEmptyObject=St.isntPlainObject=St.isPlainObject=St.isntObject=St.isObject=void 0;const Nt=kt(Bt);function Pt(t){return null!==t&&"object"==typeof t}function Mt(t){return(0,Nt.default)(t)}St.isObject=Pt,St.isntObject=function(t){return!Pt(t)},St.isPlainObject=Mt,St.isntPlainObject=function(t){return!Mt(t)},St.isEmptyObject=function(t){return 0===Object.keys(t).length},St.isntEmptyObject=function(t){return 0!==Object.keys(t).length};var Rt={};function Ct(t){return"number"==typeof t}Rt.isntNumber=Rt.isNumber=void 0,Rt.isNumber=Ct,Rt.isntNumber=function(t){return!Ct(t)},At.isntJsonRpcError=At.isJsonRpcError=At.isntJsonRpcSuccess=At.isJsonRpcSuccess=At.isntJsonRpcRequest=At.isJsonRpcRequest=At.isntJsonRpcNotification=At.isJsonRpcNotification=void 0;const qt=L,Ut=St,Jt=it,zt=Rt,Dt=Y;function Ft(t){return(0,Jt.isString)(t)||(0,zt.isNumber)(t)}function Lt(t){return(0,qt.isArray)(t)||(0,Ut.isObject)(t)}function Wt(t){return(0,Ut.isPlainObject)(t)&&(0,Jt.isString)(t.jsonrpc)&&(0,Jt.isString)(t.method)&&(0,Dt.isUndefined)(t.id)&&Lt(t.params)}function Ht(t){return(0,Ut.isPlainObject)(t)&&(0,Jt.isString)(t.jsonrpc)&&(0,Jt.isString)(t.method)&&Ft(t.id)&&Lt(t.params)}function Kt(t){return(0,Ut.isPlainObject)(t)&&(0,Jt.isString)(t.jsonrpc)&&(0,Jt.isString)(t.id)&&"result"in t}function Vt(t){return(0,Ut.isPlainObject)(t)&&(0,Jt.isString)(t.jsonrpc)&&Ft(t.id)&&function(t){return(0,Ut.isPlainObject)(t)&&(0,zt.isNumber)(t.code)&&(0,Jt.isString)(t.message)&&((0,Dt.isUndefined)(t.data)||(0,Ut.isObject)(t.data))}(t.error)}At.isJsonRpcNotification=Wt,At.isntJsonRpcNotification=function(t){return!Wt(t)},At.isJsonRpcRequest=Ht,At.isntJsonRpcRequest=function(t){return!Ht(t)},At.isJsonRpcSuccess=Kt,At.isntJsonRpcSuccess=function(t){return!Kt(t)},At.isJsonRpcError=Vt,At.isntJsonRpcError=function(t){return!Vt(t)};var Yt={};Yt.isntJson=Yt.isJson=void 0,Yt.isJson=function(t){try{return JSON.stringify(t),!0}catch(t){return!1}},Yt.isntJson=function t(e){return!t()};var $t={};$t.isAbsoluteURL=void 0,$t.isAbsoluteURL=function(t){try{return new URL(t),!0}catch(t){return!1}},function(t){var e=m&&m.__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]}),n=m&&m.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};n(L,t),n(H,t),n(Z,t),n(et,t),n(rt,t),n(ct,t),n(lt,t),n(ft,t),n(yt,t),n(ht,t),n(mt,t),n(At,t),n(Yt,t),n(K,t),n(Rt,t),n(St,t),n(it,t),n(Y,t),n($t,t)}(F),D.chunkByAsync=void 0;const Qt=F;D.chunkByAsync=function(t,e){return(0,Qt.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 Gt={};Gt.chunkBy=void 0,Gt.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 Xt={chunk:void 0};const Zt=I,te=E;Xt.chunk=function(t,e){return(0,te.assert)(Number.isInteger(e),"The parameter size must be an integer"),(0,te.assert)(e>0,"The parameter size must be greater than 0"),(0,Zt.go)((function*(){let n=[];for(const r of t)n.push(r),n.length>=e&&(yield n,n=[]);n.length&&(yield n)}))};var ee={concatAsync:void 0};const ne=F,re=I;ee.concatAsync=function(t,...e){return(0,re.go)((async function*(){for(const n of[t,...e])if((0,ne.isAsyncIterable)(n))for await(const t of n)yield t;else for(const t of n)yield t}))};var ie={concat:void 0};const oe=I;ie.concat=function(t,...e){return(0,oe.go)((function*(){for(const n of[t,...e])yield*n}))};var ae={},se={};se.copyIterable=se.copyAsyncIterable=void 0,se.copyAsyncIterable=async function*(t){for await(const e of t)yield e},se.copyIterable=function*(t){for(const e of t)yield e},ae.dropAsync=void 0;const ce=I,ue=se,le=E;ae.dropAsync=function(t,e){return(0,le.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,le.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,ue.copyAsyncIterable)(t):(0,ce.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 fe={dropRightAsync:void 0};const de=I,ye=se,ve=E;fe.dropRightAsync=function(t,e){return(0,ve.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,ve.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,ye.copyAsyncIterable)(t):(0,de.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 he={dropRight:void 0};const pe=I,me=se,be=E;he.dropRight=function(t,e){return(0,be.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,be.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,me.copyIterable)(t):(0,pe.go)((function*(){const n=Array.from(t);yield*n.slice(0,-e)}))};var ge={dropUntilAsync:void 0};const we=F;ge.dropUntilAsync=function(t,e){return(0,we.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 Ae={};Ae.dropUntil=void 0,Ae.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 Se={drop:void 0};const Ie=I,Te=se,Ee=E;Se.drop=function(t,e){return(0,Ee.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Ee.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,Te.copyIterable)(t):(0,Ie.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 Oe={filterAsync:void 0};const xe=F;Oe.filterAsync=function(t,e){return(0,xe.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 je={};je.filter=void 0,je.filter=function*(t,e){let n=0;for(const r of t)e(r,n)&&(yield r),n++};var _e={},Be={},ke={flattenByAsync:void 0};const Ne=F;function Pe(t){return(0,Ne.isIterable)(t)&&(0,Ne.isntChar)(t)}ke.flattenByAsync=function(t,e){return(0,Ne.isAsyncIterable)(t)?async function*(t){const r=1;for await(const i of t)Pe(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)Pe(i)&&await e(i,r)?yield*n(i,r+1):yield i}},Be.flattenDeepAsync=void 0;const Me=ke,Re=E;Be.flattenDeepAsync=function(t,e=1/0){return(0,Re.assert)(e===1/0||Number.isInteger(e),"The parameter depth must be an integer"),(0,Re.assert)(e>=0,"The parameter depth must be greater than or equal to 0"),(0,Me.flattenByAsync)(t,((t,n)=>n<=e))},_e.flattenAsync=void 0;const Ce=Be;_e.flattenAsync=function(t){return(0,Ce.flattenDeepAsync)(t,1)};var qe={flattenBy:void 0};const Ue=F;qe.flattenBy=function(t,e){return function*t(n,r){for(const o of n)(0,Ue.isIterable)(i=o)&&(0,Ue.isntChar)(i)&&e(o,r)?yield*t(o,r+1):yield o;var i}(t,1)};var Je={flattenDeep:void 0};const ze=qe,De=E;Je.flattenDeep=function(t,e=1/0){return(0,De.assert)(e===1/0||Number.isInteger(e),"The parameter depth must be an integer"),(0,De.assert)(e>=0,"The parameter depth must be greater than or equal to 0"),(0,ze.flattenBy)(t,((t,n)=>n<=e))};var Fe={flatten:void 0};const Le=Je;Fe.flatten=function(t){return(0,Le.flattenDeep)(t,1)};var We={mapAsync:void 0};const He=F;We.mapAsync=function(t,e){return(0,He.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 Ke={};Ke.map=void 0,Ke.map=function*(t,e){let n=0;for(const r of t)yield e(r,n),n++};var Ve={repeatAsync:void 0};const Ye=I,$e=E;Ve.repeatAsync=function(t,e){return(0,$e.assert)(e===1/0||Number.isInteger(e),"The parameter times must be an integer"),(0,$e.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,Ye.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 Qe={repeat:void 0};const Ge=I,Xe=E;Qe.repeat=function(t,e){return(0,Xe.assert)(e===1/0||Number.isInteger(e),"The parameter times must be an integer"),(0,Xe.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,Ge.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 Ze={sliceAsync:void 0};const tn=I,en=E;Ze.sliceAsync=function(t,e,n=1/0){return(0,en.assert)(Number.isInteger(e),"The parameter start must be an integer"),(0,en.assert)(e>=0,"The parameter start must be greater than or equal to 0"),(0,en.assert)(Number.isInteger(n),"The parameter end must be an integer"),(0,en.assert)(n>=e,"The parameter end must be greater than or equal to start"),(0,tn.go)((async function*(){let r=0;for await(const i of t){if(r>=n)break;r>=e&&(yield i),r++}}))};var nn={slice:void 0};const rn=I,on=E;nn.slice=function(t,e,n=1/0){return(0,on.assert)(Number.isInteger(e),"The parameter start must be an integer"),(0,on.assert)(e>=0,"The parameter start must be greater than or equal to 0"),(0,on.assert)(Number.isInteger(n),"The parameter end must be an integer"),(0,on.assert)(n>=e,"The parameter end must be greater than or equal to start"),(0,rn.go)((function*(){let r=0;for(const i of t){if(r>=n)break;r>=e&&(yield i),r++}}))};var an={};an.splitAsync=void 0,an.splitAsync=async function*(t,e){let n=[];for await(const r of t)r===e?(yield n,n=[]):n.push(r);yield n};var sn={splitByAsync:void 0};const cn=F;sn.splitByAsync=function(t,e){return(0,cn.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 un={};un.splitBy=void 0,un.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 ln={};ln.split=void 0,ln.split=function*(t,e){let n=[];for(const r of t)r===e?(yield n,n=[]):n.push(r);yield n};var fn={takeAsync:void 0};const dn=I,yn=E;fn.takeAsync=function(t,e){return(0,yn.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,yn.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,dn.go)((async function*(){if(0!==e)for await(const n of t)if(yield n,0===--e)break}))};var vn={takeRightAsync:void 0};const hn=I,pn=E;vn.takeRightAsync=function(t,e){return(0,pn.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,pn.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,hn.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 mn={takeRight:void 0};const bn=I,gn=E;mn.takeRight=function(t,e){return(0,gn.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,gn.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,bn.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 wn={takeUntilAsync:void 0};const An=F;wn.takeUntilAsync=function(t,e){return(0,An.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 Sn={};Sn.takeUntil=void 0,Sn.takeUntil=function*(t,e){let n=0;for(const r of t){if(e(r,n))break;yield r,n++}};var In={take:void 0};const Tn=I,En=E;In.take=function(t,e){return(0,En.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,En.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,Tn.go)((function*(){if(0!==e)for(const n of t)if(yield n,0===--e)break}))};var On={tapAsync:void 0};const xn=F;On.tapAsync=function(t,e){return(0,xn.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 jn={};jn.tap=void 0,jn.tap=function*(t,e){let n=0;for(const r of t)e(r,n),yield r,n++};var _n={};_n.toAsyncIterable=void 0,_n.toAsyncIterable=async function*(t){for(const e of t)yield e};var Bn={};Bn.transformAsync=void 0,Bn.transformAsync=async function*(t,e){yield*e(t)};var kn={};kn.transform=void 0,kn.transform=function*(t,e){yield*e(t)};var Nn={};Nn.uniqAsync=void 0,Nn.uniqAsync=async function*(t){const e=new Set;for await(const n of t)e.has(n)||(yield n,e.add(n))};var Pn={uniqByAsync:void 0};const Mn=F;Pn.uniqByAsync=function(t,e){return(0,Mn.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 Rn={};Rn.uniqBy=void 0,Rn.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 Cn={};Cn.uniq=void 0,Cn.uniq=function*(t){const e=new Set;for(const n of t)e.has(n)||(yield n,e.add(n))};var qn={zipAsync:void 0};const Un=F;var Jn;!function(t){t[t.Sync=0]="Sync",t[t.Async=1]="Async"}(Jn||(Jn={})),qn.zipAsync=function(t,...e){return async function*(...t){var e,n,r,i;const o=t.length,a=t.map((t=>(0,Un.isAsyncIterable)(t)?[Jn.Async,t[Symbol.asyncIterator]()]:[Jn.Sync,t[Symbol.iterator]()])),s=a.map((()=>!1));try{for(;;){const t=new Array(o);for(let e=0;e<o;e++){const[n,r]=a[e];let i;if(i=n===Jn.Async?await r.next():r.next(),i.done)return void(s[e]=!0);t[e]=i.value}yield t}}finally{const t=a.filter(((t,e)=>!s[e]));for(const[o,a]of t)o===Jn.Async?await(null===(n=(e=a).return)||void 0===n?void 0:n.call(e)):null===(i=(r=a).return)||void 0===i||i.call(r)}}(t,...e)};var zn={};zn.zip=void 0,zn.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 e=m&&m.__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]}),n=m&&m.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};n(S,t),n(D,t),n(Gt,t),n(Xt,t),n(ee,t),n(ie,t),n(ae,t),n(fe,t),n(he,t),n(ge,t),n(Ae,t),n(Se,t),n(Oe,t),n(je,t),n(_e,t),n(ke,t),n(qe,t),n(Be,t),n(Je,t),n(Fe,t),n(We,t),n(Ke,t),n(Ve,t),n(Qe,t),n(Ze,t),n(nn,t),n(an,t),n(sn,t),n(un,t),n(ln,t),n(fn,t),n(vn,t),n(mn,t),n(wn,t),n(Sn,t),n(In,t),n(On,t),n(jn,t),n(_n,t),n(Bn,t),n(kn,t),n(Nn,t),n(Pn,t),n(Rn,t),n(Cn,t),n(qn,t),n(zn,t)}(A);var Dn={},Fn={};Fn.consume=void 0,Fn.consume=function(t,e){return e(t)};var Ln={eachAsync:void 0};const Wn=F;Ln.eachAsync=function(t,e){return(0,Wn.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 Hn={};Hn.each=void 0,Hn.each=function(t,e){let n=0;for(const r of t)e(r,n),n++};var Kn={everyAsync:void 0};const Vn=F;Kn.everyAsync=function(t,e){return(0,Vn.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 Yn={};Yn.every=void 0,Yn.every=function(t,e){let n=0;for(const r of t){if(!e(r,n))return!1;n++}return!0};var $n={findAsync:void 0};const Qn=F;$n.findAsync=function(t,e){return(0,Qn.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 Gn={};Gn.find=void 0,Gn.find=function(t,e){let n=0;for(const r of t){if(e(r,n))return r;n++}};var Xn={};Xn.firstAsync=void 0,Xn.firstAsync=async function(t){for await(const e of t)return e};var Zn={};Zn.first=void 0,Zn.first=function(t){for(const e of t)return e};var tr={};tr.includesAsync=void 0,tr.includesAsync=async function(t,e){for await(const n of t)if(n===e)return!0;return!1};var er={};er.includes=void 0,er.includes=function(t,e){for(const n of t)if(n===e)return!0;return!1};var nr={};nr.matchAsync=void 0,nr.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 rr={};rr.match=void 0,rr.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 ir={reduceAsync:void 0};const or=F;ir.reduceAsync=function(t,e,n){return(0,or.isUndefined)(n)?function(t,e){return(0,or.isAsyncIterable)(t)?n(t):r(t);async function n(t){var n;const r=t[Symbol.asyncIterator]();let i;try{let t,a=await o(r),s=1;for(;({value:t,done:i}=await r.next()),!i;)a=await e(a,t,s++);return a}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,a=o(r),s=1;for(;({value:t,done:i}=r.next()),!i;)a=await e(a,t,s++);return a}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,or.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 ar={reduce:void 0};const sr=F;ar.reduce=function(t,e,n){return(0,sr.isUndefined)(n)?function(t,e){var n;const r=t[Symbol.iterator]();let i;try{let t,a=o(r),s=1;for(;({value:t,done:i}=r.next()),!i;)a=e(a,t,s++);return a}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 cr={someAsync:void 0};const ur=F;cr.someAsync=function(t,e){return(0,ur.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 lr={};lr.some=void 0,lr.some=function(t,e){let n=0;for(const r of t){if(e(r,n))return!0;n++}return!1};var fr={};fr.lastAsync=void 0,fr.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 dr={};dr.last=void 0,dr.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 yr={toArrayAsync:void 0};const vr=Fn;yr.toArrayAsync=function(t){return(0,vr.consume)(t,(async t=>{const e=[];for await(const n of t)e.push(n);return e}))};var hr={toArray:void 0};const pr=Fn;hr.toArray=function(t){return(0,pr.consume)(t,(t=>Array.from(t)))};var mr={toSetAsync:void 0};const br=Fn;mr.toSetAsync=function(t){return(0,br.consume)(t,(async t=>{const e=new Set;for await(const n of t)e.add(n);return e}))};var gr={toSet:void 0};const wr=Fn;gr.toSet=function(t){return(0,wr.consume)(t,(t=>new Set(t)))},function(t){var e=m&&m.__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]}),n=m&&m.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};n(Fn,t),n(Ln,t),n(Hn,t),n(Kn,t),n(Yn,t),n($n,t),n(Gn,t),n(Xn,t),n(Zn,t),n(tr,t),n(er,t),n(nr,t),n(rr,t),n(ir,t),n(ar,t),n(cr,t),n(lr,t),n(fr,t),n(dr,t),n(yr,t),n(hr,t),n(mr,t),n(gr,t)}(Dn),function(t){var e=m&&m.__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]}),n=m&&m.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};n(A,t),n(Dn,t)}(w);var Ar={},Sr={};Sr.traverseErrorPrototypeChain=void 0,Sr.traverseErrorPrototypeChain=function*(t){let e=t;for(;(e=Object.getPrototypeOf(e))&&(yield e,e!==Error.prototype););},Ar.getErrorNames=void 0;const Ir=F,Tr=Sr;Ar.getErrorNames=function*(t){var e;if((0,Ir.isError)(t))for(const n of(0,Tr.traverseErrorPrototypeChain)(t))(null===(e=n.constructor)||void 0===e?void 0:e.name)&&(yield n.constructor.name);else yield t.name,yield*t.ancestors};var Er={isSerializableError:void 0};const Or=F;Er.isSerializableError=function(t){return(0,Or.isObject)(t)&&(0,Or.isString)(t.name)&&(0,Or.isString)(t.message)&&((0,Or.isString)(t.stack)||(0,Or.isNull)(t.stack))&&(0,Or.isArray)(t.ancestors)&&t.ancestors.every(Or.isString)},g.CustomError=void 0;const xr=w,jr=Ar,_r=F,Br=Er;class kr extends Error{get name(){var t,e;return null!==(e=null!==(t=(0,xr.first)((0,jr.getErrorNames)(this)))&&void 0!==t?t:kr.name)&&void 0!==e?e:"CustomError"}static[Symbol.hasInstance](t){var e;if((0,_r.isError)(t)||(0,Br.isSerializableError)(t)){const n=[null!==(e=this.prototype.constructor.name)&&void 0!==e?e:this.name,...(0,jr.getErrorNames)(this.prototype)].reverse(),r=(0,xr.toArray)((0,jr.getErrorNames)(t)).reverse();return n.every(((t,e)=>t===r[e]))}return!1}}g.CustomError=kr;var Nr={AssertionError:void 0};const Pr=g;class Mr extends Pr.CustomError{}Nr.AssertionError=Mr;var Rr={normalize:void 0};const Cr=Ar,qr=w;Rr.normalize=function(t){var e;const[n,...r]=(0,qr.toArray)((0,Cr.getErrorNames)(t));return{name:n,ancestors:r,message:t.message,stack:null!==(e=t.stack)&&void 0!==e?e:null}};var Ur={},Jr={},zr={};zr.pass=void 0,zr.pass=function(){},function(t){var e=m&&m.__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]});(m&&m.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)})(zr,t)}(Jr),Ur.hydrate=void 0;const Dr=Jr;function Fr(t,e){const n=function(){(0,Dr.pass)()};return(n.prototype=Object.create(t.prototype)).constructor=n,Object.defineProperty(n,"name",{value:e}),n}Ur.hydrate=function(t){var e;const n=[t.name,...t.ancestors].slice(0,-1).reverse();let r=Error;for(const t of n)r=Fr(r,t);const i=new r;return i.name=t.name,i.message=t.message,i.stack=null!==(e=t.stack)&&void 0!==e?e:void 0,i};var Lr={assert:void 0};const Wr=Nr;Lr.assert=function(t,e){if(!t)throw new Wr.AssertionError(e)},function(t){var e=m&&m.__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]}),n=m&&m.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};n(g,t),n(Nr,t),n(Er,t),n(Rr,t),n(Ur,t),n(Lr,t),n(Ar,t),n(Sr,t)}(b);var Hr={},Kr={},Vr={},Yr={},$r={};$r.go=void 0,$r.go=function(t){return t()},function(t){var e=m&&m.__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]});(m&&m.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)})($r,t)}(Yr),Vr.chunkAsync=void 0;const Qr=Yr,Gr=b;Vr.chunkAsync=function(t,e){return(0,Gr.assert)(Number.isInteger(e),"The parameter size must be an integer"),(0,Gr.assert)(e>0,"The parameter size must be greater than 0"),(0,Qr.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 Xr={},Zr={},ti={};function ei(t){return Array.isArray(t)}ti.isntEmptyArray=ti.isEmptyArray=ti.isntArray=ti.isArray=void 0,ti.isArray=ei,ti.isntArray=function(t){return!ei(t)},ti.isEmptyArray=function(t){return 0===t.length},ti.isntEmptyArray=function(t){return 0!==t.length};var ni={},ri={};function ii(t){return null===t}ri.isntNull=ri.isNull=void 0,ri.isNull=ii,ri.isntNull=function(t){return!ii(t)};var oi={};function ai(t){return void 0===t}oi.isntUndefined=oi.isUndefined=void 0,oi.isUndefined=ai,oi.isntUndefined=function(t){return!ai(t)},ni.isntAsyncIterable=ni.isAsyncIterable=void 0;const si=ri,ci=oi;function ui(t){return(0,si.isntNull)(t)&&(0,ci.isntUndefined)(t)&&"function"==typeof t[Symbol.asyncIterator]}ni.isAsyncIterable=ui,ni.isntAsyncIterable=function(t){return!ui(t)};var li={};function fi(t){return"bigint"==typeof t}li.isntBigInt=li.isBigInt=void 0,li.isBigInt=fi,li.isntBigInt=function(t){return!fi(t)};var di={};function yi(t){return"boolean"==typeof t}di.isntBoolean=di.isBoolean=void 0,di.isBoolean=yi,di.isntBoolean=function(t){return!yi(t)};var vi={},hi={};function pi(t){return"string"==typeof t}hi.isntString=hi.isString=void 0,hi.isString=pi,hi.isntString=function(t){return!pi(t)},vi.isntChar=vi.isChar=void 0;const mi=hi;function bi(t){return(0,mi.isString)(t)&&1===t.length}vi.isChar=bi,vi.isntChar=function(t){return!bi(t)};var gi={};function wi(t){return t instanceof Date}gi.isntDate=gi.isDate=void 0,gi.isDate=wi,gi.isntDate=function(t){return!wi(t)};var Ai={};Ai.inEnum=void 0,Ai.inEnum=function(t,e){return Object.values(e).includes(t)};var Si={};function Ii(t){return t instanceof Error}Si.isntError=Si.isError=void 0,Si.isError=Ii,Si.isntError=function(t){return!Ii(t)};var Ti={};function Ei(t){return!t}Ti.isntFalsy=Ti.isFalsy=void 0,Ti.isFalsy=Ei,Ti.isntFalsy=function(t){return!Ei(t)};var Oi={};function xi(t){return"function"==typeof t}Oi.isntFunction=Oi.isFunction=void 0,Oi.isFunction=xi,Oi.isntFunction=function(t){return!xi(t)};var ji={};ji.isntIterable=ji.isIterable=void 0;const _i=ri,Bi=oi;function ki(t){return(0,_i.isntNull)(t)&&(0,Bi.isntUndefined)(t)&&"function"==typeof t[Symbol.iterator]}ji.isIterable=ki,ji.isntIterable=function(t){return!ki(t)};var Ni={},Pi={},Mi=m&&m.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Pi.isntEmptyObject=Pi.isEmptyObject=Pi.isntPlainObject=Pi.isPlainObject=Pi.isntObject=Pi.isObject=void 0;const Ri=Mi(Bt);function Ci(t){return null!==t&&"object"==typeof t}function qi(t){return(0,Ri.default)(t)}Pi.isObject=Ci,Pi.isntObject=function(t){return!Ci(t)},Pi.isPlainObject=qi,Pi.isntPlainObject=function(t){return!qi(t)},Pi.isEmptyObject=function(t){return 0===Object.keys(t).length},Pi.isntEmptyObject=function(t){return 0!==Object.keys(t).length};var Ui={};function Ji(t){return"number"==typeof t}Ui.isntNumber=Ui.isNumber=void 0,Ui.isNumber=Ji,Ui.isntNumber=function(t){return!Ji(t)},Ni.isntJsonRpcError=Ni.isJsonRpcError=Ni.isntJsonRpcSuccess=Ni.isJsonRpcSuccess=Ni.isntJsonRpcRequest=Ni.isJsonRpcRequest=Ni.isntJsonRpcNotification=Ni.isJsonRpcNotification=void 0;const zi=ti,Di=Pi,Fi=hi,Li=Ui,Wi=oi;function Hi(t){return(0,Fi.isString)(t)||(0,Li.isNumber)(t)}function Ki(t){return(0,zi.isArray)(t)||(0,Di.isObject)(t)}function Vi(t){return(0,Di.isPlainObject)(t)&&(0,Fi.isString)(t.jsonrpc)&&(0,Fi.isString)(t.method)&&(0,Wi.isUndefined)(t.id)&&Ki(t.params)}function Yi(t){return(0,Di.isPlainObject)(t)&&(0,Fi.isString)(t.jsonrpc)&&(0,Fi.isString)(t.method)&&Hi(t.id)&&Ki(t.params)}function $i(t){return(0,Di.isPlainObject)(t)&&(0,Fi.isString)(t.jsonrpc)&&(0,Fi.isString)(t.id)&&"result"in t}function Qi(t){return(0,Di.isPlainObject)(t)&&(0,Fi.isString)(t.jsonrpc)&&Hi(t.id)&&function(t){return(0,Di.isPlainObject)(t)&&(0,Li.isNumber)(t.code)&&(0,Fi.isString)(t.message)&&((0,Wi.isUndefined)(t.data)||(0,Di.isObject)(t.data))}(t.error)}Ni.isJsonRpcNotification=Vi,Ni.isntJsonRpcNotification=function(t){return!Vi(t)},Ni.isJsonRpcRequest=Yi,Ni.isntJsonRpcRequest=function(t){return!Yi(t)},Ni.isJsonRpcSuccess=$i,Ni.isntJsonRpcSuccess=function(t){return!$i(t)},Ni.isJsonRpcError=Qi,Ni.isntJsonRpcError=function(t){return!Qi(t)};var Gi={};Gi.isntJson=Gi.isJson=void 0,Gi.isJson=function(t){try{return JSON.stringify(t),!0}catch(t){return!1}},Gi.isntJson=function t(e){return!t()};var Xi={};Xi.isAbsoluteURL=void 0,Xi.isAbsoluteURL=function(t){try{return new URL(t),!0}catch(t){return!1}},function(t){var e=m&&m.__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]}),n=m&&m.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};n(ti,t),n(ni,t),n(li,t),n(di,t),n(vi,t),n(gi,t),n(Ai,t),n(Si,t),n(Ti,t),n(Oi,t),n(ji,t),n(Ni,t),n(Gi,t),n(ri,t),n(Ui,t),n(Pi,t),n(hi,t),n(oi,t),n(Xi,t)}(Zr),Xr.chunkByAsync=void 0;const Zi=Zr;Xr.chunkByAsync=function(t,e){return(0,Zi.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 to={};to.chunkBy=void 0,to.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 eo={chunk:void 0};const no=Yr,ro=b;eo.chunk=function(t,e){return(0,ro.assert)(Number.isInteger(e),"The parameter size must be an integer"),(0,ro.assert)(e>0,"The parameter size must be greater than 0"),(0,no.go)((function*(){let n=[];for(const r of t)n.push(r),n.length>=e&&(yield n,n=[]);n.length&&(yield n)}))};var io={concatAsync:void 0};const oo=Zr,ao=Yr;io.concatAsync=function(t,...e){return(0,ao.go)((async function*(){for(const n of[t,...e])if((0,oo.isAsyncIterable)(n))for await(const t of n)yield t;else for(const t of n)yield t}))};var so={concat:void 0};const co=Yr;so.concat=function(t,...e){return(0,co.go)((function*(){for(const n of[t,...e])yield*n}))};var uo={},lo={};lo.copyIterable=lo.copyAsyncIterable=void 0,lo.copyAsyncIterable=async function*(t){for await(const e of t)yield e},lo.copyIterable=function*(t){for(const e of t)yield e},uo.dropAsync=void 0;const fo=Yr,yo=lo,vo=b;uo.dropAsync=function(t,e){return(0,vo.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,vo.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,yo.copyAsyncIterable)(t):(0,fo.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 ho={dropRightAsync:void 0};const po=Yr,mo=lo,bo=b;ho.dropRightAsync=function(t,e){return(0,bo.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,bo.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,mo.copyAsyncIterable)(t):(0,po.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 go={dropRight:void 0};const wo=Yr,Ao=lo,So=b;go.dropRight=function(t,e){return(0,So.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,So.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,Ao.copyIterable)(t):(0,wo.go)((function*(){const n=Array.from(t);yield*n.slice(0,-e)}))};var Io={dropUntilAsync:void 0};const To=Zr;Io.dropUntilAsync=function(t,e){return(0,To.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 Eo={};Eo.dropUntil=void 0,Eo.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 Oo={drop:void 0};const xo=Yr,jo=lo,_o=b;Oo.drop=function(t,e){return(0,_o.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,_o.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,jo.copyIterable)(t):(0,xo.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 Bo={filterAsync:void 0};const ko=Zr;Bo.filterAsync=function(t,e){return(0,ko.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 No={};No.filter=void 0,No.filter=function*(t,e){let n=0;for(const r of t)e(r,n)&&(yield r),n++};var Po={},Mo={},Ro={flattenByAsync:void 0};const Co=Zr;function qo(t){return(0,Co.isIterable)(t)&&(0,Co.isntChar)(t)}Ro.flattenByAsync=function(t,e){return(0,Co.isAsyncIterable)(t)?async function*(t){const r=1;for await(const i of t)qo(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)qo(i)&&await e(i,r)?yield*n(i,r+1):yield i}},Mo.flattenDeepAsync=void 0;const Uo=Ro,Jo=b;Mo.flattenDeepAsync=function(t,e=1/0){return(0,Jo.assert)(e===1/0||Number.isInteger(e),"The parameter depth must be an integer"),(0,Jo.assert)(e>=0,"The parameter depth must be greater than or equal to 0"),(0,Uo.flattenByAsync)(t,((t,n)=>n<=e))},Po.flattenAsync=void 0;const zo=Mo;Po.flattenAsync=function(t){return(0,zo.flattenDeepAsync)(t,1)};var Do={flattenBy:void 0};const Fo=Zr;Do.flattenBy=function(t,e){return function*t(n,r){for(const o of n)(0,Fo.isIterable)(i=o)&&(0,Fo.isntChar)(i)&&e(o,r)?yield*t(o,r+1):yield o;var i}(t,1)};var Lo={flattenDeep:void 0};const Wo=Do,Ho=b;Lo.flattenDeep=function(t,e=1/0){return(0,Ho.assert)(e===1/0||Number.isInteger(e),"The parameter depth must be an integer"),(0,Ho.assert)(e>=0,"The parameter depth must be greater than or equal to 0"),(0,Wo.flattenBy)(t,((t,n)=>n<=e))};var Ko={flatten:void 0};const Vo=Lo;Ko.flatten=function(t){return(0,Vo.flattenDeep)(t,1)};var Yo={mapAsync:void 0};const $o=Zr;Yo.mapAsync=function(t,e){return(0,$o.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 Qo={};Qo.map=void 0,Qo.map=function*(t,e){let n=0;for(const r of t)yield e(r,n),n++};var Go={repeatAsync:void 0};const Xo=Yr,Zo=b;Go.repeatAsync=function(t,e){return(0,Zo.assert)(e===1/0||Number.isInteger(e),"The parameter times must be an integer"),(0,Zo.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,Xo.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 ta={repeat:void 0};const ea=Yr,na=b;ta.repeat=function(t,e){return(0,na.assert)(e===1/0||Number.isInteger(e),"The parameter times must be an integer"),(0,na.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,ea.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 ra={sliceAsync:void 0};const ia=Yr,oa=b;ra.sliceAsync=function(t,e,n=1/0){return(0,oa.assert)(Number.isInteger(e),"The parameter start must be an integer"),(0,oa.assert)(e>=0,"The parameter start must be greater than or equal to 0"),(0,oa.assert)(Number.isInteger(n),"The parameter end must be an integer"),(0,oa.assert)(n>=e,"The parameter end must be greater than or equal to start"),(0,ia.go)((async function*(){let r=0;for await(const i of t){if(r>=n)break;r>=e&&(yield i),r++}}))};var aa={slice:void 0};const sa=Yr,ca=b;aa.slice=function(t,e,n=1/0){return(0,ca.assert)(Number.isInteger(e),"The parameter start must be an integer"),(0,ca.assert)(e>=0,"The parameter start must be greater than or equal to 0"),(0,ca.assert)(Number.isInteger(n),"The parameter end must be an integer"),(0,ca.assert)(n>=e,"The parameter end must be greater than or equal to start"),(0,sa.go)((function*(){let r=0;for(const i of t){if(r>=n)break;r>=e&&(yield i),r++}}))};var ua={};ua.splitAsync=void 0,ua.splitAsync=async function*(t,e){let n=[];for await(const r of t)r===e?(yield n,n=[]):n.push(r);yield n};var la={splitByAsync:void 0};const fa=Zr;la.splitByAsync=function(t,e){return(0,fa.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 da={};da.splitBy=void 0,da.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 ya={};ya.split=void 0,ya.split=function*(t,e){let n=[];for(const r of t)r===e?(yield n,n=[]):n.push(r);yield n};var va={takeAsync:void 0};const ha=Yr,pa=b;va.takeAsync=function(t,e){return(0,pa.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,pa.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,ha.go)((async function*(){if(0!==e)for await(const n of t)if(yield n,0===--e)break}))};var ma={takeRightAsync:void 0};const ba=Yr,ga=b;ma.takeRightAsync=function(t,e){return(0,ga.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,ga.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,ba.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 wa={takeRight:void 0};const Aa=Yr,Sa=b;wa.takeRight=function(t,e){return(0,Sa.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Sa.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,Aa.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 Ia={takeUntilAsync:void 0};const Ta=Zr;Ia.takeUntilAsync=function(t,e){return(0,Ta.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 Ea={};Ea.takeUntil=void 0,Ea.takeUntil=function*(t,e){let n=0;for(const r of t){if(e(r,n))break;yield r,n++}};var Oa={take:void 0};const xa=Yr,ja=b;Oa.take=function(t,e){return(0,ja.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,ja.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,xa.go)((function*(){if(0!==e)for(const n of t)if(yield n,0===--e)break}))};var _a={tapAsync:void 0};const Ba=Zr;_a.tapAsync=function(t,e){return(0,Ba.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 ka={};ka.tap=void 0,ka.tap=function*(t,e){let n=0;for(const r of t)e(r,n),yield r,n++};var Na={};Na.toAsyncIterable=void 0,Na.toAsyncIterable=async function*(t){for(const e of t)yield e};var Pa={};Pa.transformAsync=void 0,Pa.transformAsync=async function*(t,e){yield*e(t)};var Ma={};Ma.transform=void 0,Ma.transform=function*(t,e){yield*e(t)};var Ra={};Ra.uniqAsync=void 0,Ra.uniqAsync=async function*(t){const e=new Set;for await(const n of t)e.has(n)||(yield n,e.add(n))};var Ca={uniqByAsync:void 0};const qa=Zr;Ca.uniqByAsync=function(t,e){return(0,qa.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 Ua={};Ua.uniqBy=void 0,Ua.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 Ja={};Ja.uniq=void 0,Ja.uniq=function*(t){const e=new Set;for(const n of t)e.has(n)||(yield n,e.add(n))};var za={zipAsync:void 0};const Da=Zr;var Fa;!function(t){t[t.Sync=0]="Sync",t[t.Async=1]="Async"}(Fa||(Fa={})),za.zipAsync=function(t,...e){return async function*(...t){var e,n,r,i;const o=t.length,a=t.map((t=>(0,Da.isAsyncIterable)(t)?[Fa.Async,t[Symbol.asyncIterator]()]:[Fa.Sync,t[Symbol.iterator]()])),s=a.map((()=>!1));try{for(;;){const t=new Array(o);for(let e=0;e<o;e++){const[n,r]=a[e];let i;if(i=n===Fa.Async?await r.next():r.next(),i.done)return void(s[e]=!0);t[e]=i.value}yield t}}finally{const t=a.filter(((t,e)=>!s[e]));for(const[o,a]of t)o===Fa.Async?await(null===(n=(e=a).return)||void 0===n?void 0:n.call(e)):null===(i=(r=a).return)||void 0===i||i.call(r)}}(t,...e)};var La={};La.zip=void 0,La.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 e=m&&m.__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]}),n=m&&m.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};n(Vr,t),n(Xr,t),n(to,t),n(eo,t),n(io,t),n(so,t),n(uo,t),n(ho,t),n(go,t),n(Io,t),n(Eo,t),n(Oo,t),n(Bo,t),n(No,t),n(Po,t),n(Ro,t),n(Do,t),n(Mo,t),n(Lo,t),n(Ko,t),n(Yo,t),n(Qo,t),n(Go,t),n(ta,t),n(ra,t),n(aa,t),n(ua,t),n(la,t),n(da,t),n(ya,t),n(va,t),n(ma,t),n(wa,t),n(Ia,t),n(Ea,t),n(Oa,t),n(_a,t),n(ka,t),n(Na,t),n(Pa,t),n(Ma,t),n(Ra,t),n(Ca,t),n(Ua,t),n(Ja,t),n(za,t),n(La,t)}(Kr);var Wa={},Ha={};Ha.consume=void 0,Ha.consume=function(t,e){return e(t)};var Ka={eachAsync:void 0};const Va=Zr;Ka.eachAsync=function(t,e){return(0,Va.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 Ya={};Ya.each=void 0,Ya.each=function(t,e){let n=0;for(const r of t)e(r,n),n++};var $a={everyAsync:void 0};const Qa=Zr;$a.everyAsync=function(t,e){return(0,Qa.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 Ga={};Ga.every=void 0,Ga.every=function(t,e){let n=0;for(const r of t){if(!e(r,n))return!1;n++}return!0};var Xa={findAsync:void 0};const Za=Zr;Xa.findAsync=function(t,e){return(0,Za.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 ts={};ts.find=void 0,ts.find=function(t,e){let n=0;for(const r of t){if(e(r,n))return r;n++}};var es={};es.firstAsync=void 0,es.firstAsync=async function(t){for await(const e of t)return e};var ns={};ns.first=void 0,ns.first=function(t){for(const e of t)return e};var rs={};rs.includesAsync=void 0,rs.includesAsync=async function(t,e){for await(const n of t)if(n===e)return!0;return!1};var is={};is.includes=void 0,is.includes=function(t,e){for(const n of t)if(n===e)return!0;return!1};var os={};os.matchAsync=void 0,os.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 as={};as.match=void 0,as.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 ss={reduceAsync:void 0};const cs=Zr;ss.reduceAsync=function(t,e,n){return(0,cs.isUndefined)(n)?function(t,e){return(0,cs.isAsyncIterable)(t)?n(t):r(t);async function n(t){var n;const r=t[Symbol.asyncIterator]();let i;try{let t,a=await o(r),s=1;for(;({value:t,done:i}=await r.next()),!i;)a=await e(a,t,s++);return a}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,a=o(r),s=1;for(;({value:t,done:i}=r.next()),!i;)a=await e(a,t,s++);return a}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,cs.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 us={reduce:void 0};const ls=Zr;us.reduce=function(t,e,n){return(0,ls.isUndefined)(n)?function(t,e){var n;const r=t[Symbol.iterator]();let i;try{let t,a=o(r),s=1;for(;({value:t,done:i}=r.next()),!i;)a=e(a,t,s++);return a}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 fs={someAsync:void 0};const ds=Zr;fs.someAsync=function(t,e){return(0,ds.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 ys={};ys.some=void 0,ys.some=function(t,e){let n=0;for(const r of t){if(e(r,n))return!0;n++}return!1};var vs={};vs.lastAsync=void 0,vs.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 hs={};hs.last=void 0,hs.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 ps={toArrayAsync:void 0};const ms=Ha;ps.toArrayAsync=function(t){return(0,ms.consume)(t,(async t=>{const e=[];for await(const n of t)e.push(n);return e}))};var bs={toArray:void 0};const gs=Ha;bs.toArray=function(t){return(0,gs.consume)(t,(t=>Array.from(t)))};var ws={toSetAsync:void 0};const As=Ha;ws.toSetAsync=function(t){return(0,As.consume)(t,(async t=>{const e=new Set;for await(const n of t)e.add(n);return e}))};var Ss={toSet:void 0};const Is=Ha;var Ts,Es;Ss.toSet=function(t){return(0,Is.consume)(t,(t=>new Set(t)))},function(t){var e=m&&m.__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]}),n=m&&m.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};n(Ha,t),n(Ka,t),n(Ya,t),n($a,t),n(Ga,t),n(Xa,t),n(ts,t),n(es,t),n(ns,t),n(rs,t),n(is,t),n(os,t),n(as,t),n(ss,t),n(us,t),n(fs,t),n(ys,t),n(vs,t),n(hs,t),n(ps,t),n(bs,t),n(ws,t),n(Ss,t)}(Wa),function(t){var e=m&&m.__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]}),n=m&&m.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};n(Kr,t),n(Wa,t)}(Hr);class Os{constructor(t){Ts.set(this,void 0),Es.set(this,new Map),b.assert(Number.isInteger(t),"The parameter limit must be an integer"),b.assert(t>0,"The parameter limit must be a positive value"),d(this,Ts,t,"f")}get[(Ts=new WeakMap,Es=new WeakMap,Symbol.toStringTag)](){return this.constructor.name}get size(){return f(this,Es,"f").size}set(t,e){return f(this,Es,"f").has(t)?this.updateItem(t,e):(f(this,Es,"f").size===f(this,Ts,"f")&&f(this,Es,"f").delete(this.getColdestKey()),f(this,Es,"f").set(t,e)),this}has(t){return f(this,Es,"f").has(t)}get(t){if(!this.has(t))return;const e=f(this,Es,"f").get(t);return this.updateItem(t,e),e}delete(t){return f(this,Es,"f").delete(t)}clear(){f(this,Es,"f").clear()}updateItem(t,e){f(this,Es,"f").delete(t),f(this,Es,"f").set(t,e)}getColdestKey(){return Hr.first(f(this,Es,"f").keys())}}var xs={},js={},_s={},Bs={};Bs.random=void 0,Bs.random=function(t,e){return Math.random()*(e-t)+t};var ks={};ks.randomInt=void 0,ks.randomInt=function(t,e){return t=Math.ceil(t),e=Math.floor(e),Math.floor(Math.random()*(e-t))+t};var Ns={};Ns.randomIntInclusive=void 0,Ns.randomIntInclusive=function(t,e){return t=Math.ceil(t),e=Math.floor(e),Math.floor(Math.random()*(e-t+1))+t},function(t){var e=m&&m.__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]}),n=m&&m.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};n(Bs,t),n(ks,t),n(Ns,t)}(_s),js.calculateExponentialBackoffTimeout=void 0;const Ps=_s;js.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,Ps.randomIntInclusive)(0,o):o};var Ms={};Ms.setTimeout=void 0,Ms.setTimeout=function(t,e){const n=globalThis.setTimeout(e,t);return()=>clearTimeout(n)};var Rs={setSchedule:void 0};const Cs=Ms;Rs.setSchedule=function(t,e){const n=t-Date.now();return(0,Cs.setTimeout)(n,e)};var qs={};qs.setInterval=void 0,qs.setInterval=function(t,e){const n=globalThis.setInterval(e,t);return()=>clearInterval(n)};var Us={setImmediate:void 0};const Js=Ms;Us.setImmediate=function(t){if(globalThis.setImmediate){const e=globalThis.setImmediate(t);return()=>clearImmediate(e)}return(0,Js.setTimeout)(0,t)};var zs={setTimeoutLoop:void 0};const Ds=Ms;zs.setTimeoutLoop=function(t,e){let n=!1,r=(0,Ds.setTimeout)(t,(async function i(){await e(),n||(r=(0,Ds.setTimeout)(t,i))}));return()=>{n=!0,r()}};var Fs={setDynamicTimeoutLoop:void 0};const Ls=Ms;var Ws,Hs,Ks,Vs,Ys,$s,Qs;Fs.setDynamicTimeoutLoop=function(t,e){let n=!1,r=(0,Ls.setTimeout)(t,(async function i(){const o=Date.now();await e();const a=Date.now()-o;n||(r=(0,Ls.setTimeout)(Math.max(t-a,0),i))}));return()=>{n=!0,r()}},function(t){var e=m&&m.__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]}),n=m&&m.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};n(js,t),n(Ms,t),n(Rs,t),n(qs,t),n(Us,t),n(zs,t),n(Fs,t)}(xs);class Gs{constructor(){Ws.set(this,new Map),Hs.set(this,void 0),this.itemMetadataSortedByExpirationTime=[]}get[(Ws=new WeakMap,Hs=new WeakMap,Symbol.toStringTag)](){return this.constructor.name}get size(){return f(this,Ws,"f").size}set(t,e,n){return f(this,Ws,"f").set(t,e),this.removeItemMetadata(t),this.addItemMetadata(t,Date.now()+n),this}has(t){return f(this,Ws,"f").has(t)}get(t){return f(this,Ws,"f").get(t)}delete(t){const e=f(this,Ws,"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;f(this,Ws,"f").clear(),null===(t=f(this,Hs,"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=>f(this,Ws,"f").delete(t.key)))}rescheduleClearTimeout(){var t;if(null===(t=f(this,Hs,"f"))||void 0===t||t.call(this),this.itemMetadataSortedByExpirationTime.length>0){const t=this.itemMetadataSortedByExpirationTime[0];if(Number.isFinite(t.expirationTime)){const e=xs.setSchedule(t.expirationTime,(()=>{this.clearExpiredItems(Date.now()),this.rescheduleClearTimeout()}));d(this,Hs,(()=>{e(),d(this,Hs,void 0,"f")}),"f")}}}}class Xs{constructor(t){Ks.set(this,void 0),Vs.set(this,new Map),Ys.set(this,void 0),this.itemMetadataSortedByExpirationTime=[],b.assert(Number.isInteger(t),"The parameter limit must be an integer"),b.assert(t>0,"The parameter limit must be a positive value"),d(this,Ks,t,"f")}get[(Ks=new WeakMap,Vs=new WeakMap,Ys=new WeakMap,Symbol.toStringTag)](){return this.constructor.name}get size(){return f(this,Vs,"f").size}set(t,e,n){return f(this,Vs,"f").has(t)?(this.updateItem(t,e),this.removeItemMetadata(t),this.addItemMetadata(t,Date.now()+n)):(f(this,Vs,"f").size===f(this,Ks,"f")&&f(this,Vs,"f").delete(this.getColdestKey()),f(this,Vs,"f").set(t,e),this.addItemMetadata(t,Date.now()+n)),this}has(t){return f(this,Vs,"f").has(t)}get(t){if(this.has(t)){const e=f(this,Vs,"f").get(t);return this.updateItem(t,e),e}}delete(t){const e=f(this,Vs,"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;f(this,Vs,"f").clear(),null===(t=f(this,Ys,"f"))||void 0===t||t.call(this),this.itemMetadataSortedByExpirationTime=[]}updateItem(t,e){f(this,Vs,"f").delete(t),f(this,Vs,"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=>f(this,Vs,"f").delete(t.key)))}rescheduleClearTimeout(){var t;if(null===(t=f(this,Ys,"f"))||void 0===t||t.call(this),this.itemMetadataSortedByExpirationTime.length>0){const t=this.itemMetadataSortedByExpirationTime[0];if(Number.isFinite(t.expirationTime)){const e=xs.setSchedule(t.expirationTime,(()=>{this.clearExpiredItems(Date.now()),this.rescheduleClearTimeout()}));d(this,Ys,(()=>{e(),d(this,Ys,void 0,"f")}),"f")}}}getColdestKey(){return Hr.first(f(this,Vs,"f").keys())}}class Zs{constructor(t){this.value=t,this.children=new Map}}class tc{constructor(){$s.set(this,new Zs)}get[($s=new WeakMap,Symbol.toStringTag)](){return this.constructor.name}set(t,e){let n=f(this,$s,"f");for(const e of t)n.children.has(e)||n.children.set(e,new Zs),n=n.children.get(e);return n.value=e,this}has(t){let e=f(this,$s,"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=f(this,$s,"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=f(this,$s,"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 Hr.toArray(Hr.zip(t,e)).reverse())if(r.children.delete(n),0!==r.children.size)break;return!0}}class ec{constructor(t,e){this.schema=t,Qs.set(this,void 0),d(this,Qs,e,"f")}get state(){return f(this,Qs,"f")}matches(t){return f(this,Qs,"f")===t}can(t){return t in this.schema[this.state]}send(t){if(!this.can(t))throw new nc(this.state,t);d(this,Qs,this.schema[this.state][t],"f")}}Qs=new WeakMap;class nc extends b.CustomError{constructor(t,e){super(`State ${t} cannot react to event ${e}`)}}function rc(t){return"function"==typeof t}function ic(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 oc=ic((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 ac(t,e){if(t){var n=t.indexOf(e);0<=n&&t.splice(n,1)}}var sc=function(){function t(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}var e;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 a=c(o),s=a.next();!s.done;s=a.next()){s.value.remove(this)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(e=a.return)&&e.call(a)}finally{if(t)throw t.error}}else o.remove(this);var f=this.initialTeardown;if(rc(f))try{f()}catch(t){i=t instanceof oc?t.errors:[t]}var d=this._finalizers;if(d){this._finalizers=null;try{for(var y=c(d),v=y.next();!v.done;v=y.next()){var h=v.value;try{lc(h)}catch(t){i=null!=i?i:[],t instanceof oc?i=l(l([],u(i)),u(t.errors)):i.push(t)}}}catch(t){n={error:t}}finally{try{v&&!v.done&&(r=y.return)&&r.call(y)}finally{if(n)throw n.error}}}if(i)throw new oc(i)}},t.prototype.add=function(e){var n;if(e&&e!==this)if(this.closed)lc(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&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)&&ac(e,t)},t.prototype.remove=function(e){var n=this._finalizers;n&&ac(n,e),e instanceof t&&e._removeParent(this)},t.EMPTY=((e=new t).closed=!0,e),t}(),cc=sc.EMPTY;function uc(t){return t instanceof sc||t&&"closed"in t&&rc(t.remove)&&rc(t.add)&&rc(t.unsubscribe)}function lc(t){rc(t)?t():t.unsubscribe()}var fc={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},dc={setTimeout:function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=dc.delegate;return(null==i?void 0:i.setTimeout)?i.setTimeout.apply(i,l([t,e],u(n))):setTimeout.apply(void 0,l([t,e],u(n)))},clearTimeout:function(t){var e=dc.delegate;return((null==e?void 0:e.clearTimeout)||clearTimeout)(t)},delegate:void 0};function yc(){}var vc=null;function hc(t){if(fc.useDeprecatedSynchronousErrorHandling){var e=!vc;if(e&&(vc={errorThrown:!1,error:null}),t(),e){var n=vc,r=n.errorThrown,i=n.error;if(vc=null,r)throw i}}else t()}var pc=function(t){function e(e){var n=t.call(this)||this;return n.isStopped=!1,e?(n.destination=e,uc(e)&&e.add(n)):n.destination=Sc,n}return s(e,t),e.create=function(t,e,n){return new wc(t,e,n)},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(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}(sc),mc=Function.prototype.bind;function bc(t,e){return mc.call(t,e)}var gc=function(){function t(t){this.partialObserver=t}return t.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(t){Ac(t)}},t.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(t){Ac(t)}else Ac(t)},t.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(t){Ac(t)}},t}(),wc=function(t){function e(e,n,r){var i,o,a=t.call(this)||this;rc(e)||!e?i={next:null!=e?e:void 0,error:null!=n?n:void 0,complete:null!=r?r:void 0}:a&&fc.useDeprecatedNextContext?((o=Object.create(e)).unsubscribe=function(){return a.unsubscribe()},i={next:e.next&&bc(e.next,o),error:e.error&&bc(e.error,o),complete:e.complete&&bc(e.complete,o)}):i=e;return a.destination=new gc(i),a}return s(e,t),e}(pc);function Ac(t){var e;e=t,dc.setTimeout((function(){throw e}))}var Sc={closed:!0,next:yc,error:function(t){throw t},complete:yc},Ic="function"==typeof Symbol&&Symbol.observable||"@@observable";function Tc(t){return t}function Ec(t){return 0===t.length?Tc:1===t.length?t[0]:function(e){return t.reduce((function(t,e){return e(t)}),e)}}var Oc=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 pc||function(t){return t&&rc(t.next)&&rc(t.error)&&rc(t.complete)}(r)&&uc(r)?t:new wc(t,e,n);return hc((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=xc(e))((function(e,r){var i=new wc({next:function(e){try{t(e)}catch(t){r(t),i.unsubscribe()}},error:r,complete:e});n.subscribe(i)}))},t.prototype._subscribe=function(t){var e;return null===(e=this.source)||void 0===e?void 0:e.subscribe(t)},t.prototype[Ic]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Ec(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=xc(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 xc(t){var e;return null!==(e=null!=t?t:fc.Promise)&&void 0!==e?e:Promise}var jc=ic((function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),_c=function(t){function e(){var e=t.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return s(e,t),e.prototype.lift=function(t){var e=new Bc(this,this);return e.operator=t,e},e.prototype._throwIfClosed=function(){if(this.closed)throw new jc},e.prototype.next=function(t){var e=this;hc((function(){var n,r;if(e._throwIfClosed(),!e.isStopped){e.currentObservers||(e.currentObservers=Array.from(e.observers));try{for(var i=c(e.currentObservers),o=i.next();!o.done;o=i.next()){o.value.next(t)}}catch(t){n={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}}))},e.prototype.error=function(t){var e=this;hc((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;hc((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=this.currentObservers=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=this,r=n.hasError,i=n.isStopped,o=n.observers;return r||i?cc:(this.currentObservers=null,o.push(t),new sc((function(){e.currentObservers=null,ac(o,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 Oc;return t.source=this,t},e.create=function(t,e){return new Bc(t,e)},e}(Oc),Bc=function(t){function e(e,n){var r=t.call(this)||this;return r.destination=e,r.source=n,r}return s(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:cc},e}(_c),kc={},Nc={};function Pc(t){return Array.isArray(t)}Nc.isntEmptyArray=Nc.isEmptyArray=Nc.isntArray=Nc.isArray=void 0,Nc.isArray=Pc,Nc.isntArray=function(t){return!Pc(t)},Nc.isEmptyArray=function(t){return 0===t.length},Nc.isntEmptyArray=function(t){return 0!==t.length};var Mc={},Rc={};function Cc(t){return null===t}Rc.isntNull=Rc.isNull=void 0,Rc.isNull=Cc,Rc.isntNull=function(t){return!Cc(t)};var qc={};function Uc(t){return void 0===t}qc.isntUndefined=qc.isUndefined=void 0,qc.isUndefined=Uc,qc.isntUndefined=function(t){return!Uc(t)};var Jc={};function zc(t){return"function"==typeof t}Jc.isntFunction=Jc.isFunction=void 0,Jc.isFunction=zc,Jc.isntFunction=function(t){return!zc(t)},Mc.isntAsyncIterable=Mc.isAsyncIterable=void 0;const Dc=Rc,Fc=qc,Lc=Jc;function Wc(t){return(0,Dc.isntNull)(t)&&(0,Fc.isntUndefined)(t)&&(0,Lc.isFunction)(t[Symbol.asyncIterator])}Mc.isAsyncIterable=Wc,Mc.isntAsyncIterable=function(t){return!Wc(t)};var Hc={};function Kc(t){return"bigint"==typeof t}Hc.isntBigInt=Hc.isBigInt=void 0,Hc.isBigInt=Kc,Hc.isntBigInt=function(t){return!Kc(t)};var Vc={};function Yc(t){return"boolean"==typeof t}Vc.isntBoolean=Vc.isBoolean=void 0,Vc.isBoolean=Yc,Vc.isntBoolean=function(t){return!Yc(t)};var $c={},Qc={};function Gc(t){return"string"==typeof t}Qc.isntString=Qc.isString=void 0,Qc.isString=Gc,Qc.isntString=function(t){return!Gc(t)},$c.isntChar=$c.isChar=void 0;const Xc=Qc;function Zc(t){return(0,Xc.isString)(t)&&1===t.length}$c.isChar=Zc,$c.isntChar=function(t){return!Zc(t)};var tu={};function eu(t){return t instanceof Date}tu.isntDate=tu.isDate=void 0,tu.isDate=eu,tu.isntDate=function(t){return!eu(t)};var nu={};nu.inEnum=void 0,nu.inEnum=function(t,e){return Object.values(e).includes(t)};var ru={};function iu(t){return t instanceof Error}ru.isntError=ru.isError=void 0,ru.isError=iu,ru.isntError=function(t){return!iu(t)};var ou={};function au(t){return!t}ou.isntFalsy=ou.isFalsy=void 0,ou.isFalsy=au,ou.isntFalsy=function(t){return!au(t)};var su={};su.isntIterable=su.isIterable=void 0;const cu=Rc,uu=qc,lu=Jc;function fu(t){return(0,cu.isntNull)(t)&&(0,uu.isntUndefined)(t)&&(0,lu.isFunction)(t[Symbol.iterator])}su.isIterable=fu,su.isntIterable=function(t){return!fu(t)};var du={},yu={};function vu(t){return"number"==typeof t}yu.isntNumber=yu.isNumber=void 0,yu.isNumber=vu,yu.isntNumber=function(t){return!vu(t)};var hu={},pu=m&&m.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};hu.isntEmptyObject=hu.isEmptyObject=hu.isntPlainObject=hu.isPlainObject=hu.isntObject=hu.isObject=void 0;const mu=pu(Bt);function bu(t){return null!==t&&"object"==typeof t}function gu(t){return(0,mu.default)(t)}hu.isObject=bu,hu.isntObject=function(t){return!bu(t)},hu.isPlainObject=gu,hu.isntPlainObject=function(t){return!gu(t)},hu.isEmptyObject=function(t){return 0===Object.keys(t).length},hu.isntEmptyObject=function(t){return 0!==Object.keys(t).length},du.isntJsonable=du.isJsonable=du.isntJson=du.isJson=void 0;const wu=Rc,Au=Vc,Su=Qc,Iu=yu,Tu=Nc,Eu=hu;function Ou(t){return(0,wu.isNull)(t)||(0,Au.isBoolean)(t)||(0,Su.isString)(t)||(0,Iu.isNumber)(t)||(0,Tu.isArray)(t)&&t.every(Ou)||(0,Eu.isPlainObject)(t)&&Object.values(t).every(Ou)}du.isJson=Ou,du.isntJson=function(t){return!Ou(t)},du.isJsonable=function(t){try{return JSON.stringify(t),!0}catch(t){return!1}},du.isntJsonable=function t(e){return!t()};var xu={};xu.isPromiseLike=xu.isntPromiseLike=xu.isntPromise=xu.isPromise=void 0;const ju=hu,_u=Jc;function Bu(t){return t instanceof Promise}function ku(t){return(0,ju.isObject)(t)&&(0,_u.isFunction)(t.then)}xu.isPromise=Bu,xu.isntPromise=function(t){return!Bu(t)},xu.isntPromiseLike=function(t){return!ku(t)},xu.isPromiseLike=ku;var Nu={};Nu.isAbsoluteURL=void 0,Nu.isAbsoluteURL=function(t){try{return new URL(t),!0}catch(t){return!1}},function(t){var e=m&&m.__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]}),n=m&&m.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};n(Nc,t),n(Mc,t),n(Hc,t),n(Vc,t),n($c,t),n(tu,t),n(nu,t),n(ru,t),n(ou,t),n(Jc,t),n(su,t),n(du,t),n(Rc,t),n(yu,t),n(hu,t),n(xu,t),n(Qc,t),n(qc,t),n(Nu,t)}(kc);t.BadEventError=nc,t.Box=class{constructor(t){e.set(this,void 0),d(this,e,t,"f")}set(t){d(this,e,t,"f")}get(){return f(this,e,"f")}},t.Emitter=y,t.ExpirableMap=Gs,t.FiniteStateMachine=ec,t.HashMap=v,t.HashSet=h,t.LRUMap=Os,t.ObservableFiniteStateMachine=class extends ec{constructor(){super(...arguments),this.stateChanges=new _c}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}),kc.isEmptyObject(this.schema[n])&&this.stateChanges.complete()}},t.Queue=p,t.TLRUMap=Xs,t.TrieMap=tc,t.convertArrayToCons=function t([e,...n]){return[e,n.length?t(n):null]},t.convertConsToArray=function t([e,n]){return null===n?[e]:[e,...t(n)]},Object.defineProperty(t,"__esModule",{value:!0})}));
|
|
16
16
|
//# sourceMappingURL=index.umd.min.js.map
|