@blackglory/structures 0.6.1 → 0.6.4
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/README.md +16 -5
- package/dist/es2015/index.min.mjs +2 -2
- package/dist/es2015/index.min.mjs.map +1 -1
- package/dist/es2015/index.mjs +36 -1
- package/dist/es2015/index.mjs.map +1 -1
- package/dist/es2015/index.umd.js +36 -0
- package/dist/es2015/index.umd.js.map +1 -1
- package/dist/es2015/index.umd.min.js +2 -2
- package/dist/es2015/index.umd.min.js.map +1 -1
- package/dist/es2018/index.min.mjs +2 -2
- package/dist/es2018/index.min.mjs.map +1 -1
- package/dist/es2018/index.mjs +36 -1
- package/dist/es2018/index.mjs.map +1 -1
- package/dist/es2018/index.umd.js +36 -0
- package/dist/es2018/index.umd.js.map +1 -1
- package/dist/es2018/index.umd.min.js +2 -2
- package/dist/es2018/index.umd.min.js.map +1 -1
- package/lib/es2015/hash-map.d.ts +2 -2
- package/lib/es2015/hash-map.js.map +1 -1
- package/lib/es2015/hash-set.d.ts +2 -2
- package/lib/es2015/hash-set.js.map +1 -1
- package/lib/es2015/index.d.ts +1 -0
- package/lib/es2015/index.js +1 -0
- package/lib/es2015/index.js.map +1 -1
- package/lib/es2015/sparse-set.d.ts +8 -0
- package/lib/es2015/sparse-set.js +38 -0
- package/lib/es2015/sparse-set.js.map +1 -0
- package/lib/es2015/trie-map.d.ts +1 -2
- package/lib/es2015/trie-map.js.map +1 -1
- package/lib/es2018/hash-map.d.ts +2 -2
- package/lib/es2018/hash-map.js.map +1 -1
- package/lib/es2018/hash-set.d.ts +2 -2
- package/lib/es2018/hash-set.js.map +1 -1
- package/lib/es2018/index.d.ts +1 -0
- package/lib/es2018/index.js +1 -0
- package/lib/es2018/index.js.map +1 -1
- package/lib/es2018/sparse-set.d.ts +8 -0
- package/lib/es2018/sparse-set.js +38 -0
- package/lib/es2018/sparse-set.js.map +1 -0
- package/lib/es2018/trie-map.d.ts +1 -2
- package/lib/es2018/trie-map.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).Structures={})}(this,(function(t){"use strict";class e{constructor(){this.map=new Map}get[Symbol.toStringTag](){return this.constructor.name}on(t,e){this.map.has(t)||this.map.set(t,new Set);return this.map.get(t).add(n),()=>{if(!this.map.has(t))return;const e=this.map.get(t);e.delete(n),0===e.size&&this.map.delete(t)};function n(...t){e(...t)}}once(t,e){const n=this.on(t,((...t)=>{e(...t),n()}));return n}emit(t,...e){this.map.has(t)&&this.map.get(t).forEach((t=>t(...e)))}}class n{constructor(t){this.hash=t,this.map=new Map}get[Symbol.toStringTag](){return this.constructor.name}get size(){return this.map.size}set(t,e){return this.map.set(this.hash(t),e),this}has(t){return this.map.has(this.hash(t))}get(t){return this.map.get(this.hash(t))}delete(t){return this.map.delete(this.hash(t))}clear(){this.map.clear()}}class r{constructor(t){this.hash=t,this.map=new Map}get[Symbol.toStringTag](){return this.constructor.name}get size(){return this.map.size}[Symbol.iterator](){return this.map.values()}add(t){return this.map.set(this.hash(t),t),this}delete(t){return this.map.delete(this.hash(t))}has(t){return this.map.has(this.hash(t))}clear(){this.map.clear()}values(){return this.map.values()}}class o{constructor(){this.items=[]}get[Symbol.toStringTag](){return this.constructor.name}get size(){return this.items.length}empty(){this.items.length=0}enqueue(...t){this.items.push(...t)}dequeue(){return this.items.shift()}remove(t){let e;for(;(e=this.items.indexOf(t))>=0;)this.items.splice(e,1)}}var i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},a={},s={},c={},u={},l={},f={},d={};d.go=void 0,d.go=function(t){return t()},function(t){var e=i&&i.__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]});(i&&i.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)})(d,t)}(f);var y={},h={},v={},p={},m={},b={},g={CustomError:void 0};class w extends Error{get name(){return this.constructor.name}}g.CustomError=w;var A={ExpectedError:void 0};const S=g;class I extends S.CustomError{}A.ExpectedError=I;var _={AssertionError:void 0};const T=g;class x extends T.CustomError{}_.AssertionError=x;var E={};E.normalize=void 0,E.normalize=function(t){var e;return{name:t.name,message:t.message,stack:null!==(e=t.stack)&&void 0!==e?e:null}};var O={refute:void 0};const j=A;O.refute=function(t,e){if(t)throw new j.ExpectedError(e)};var k={assert:void 0};const N=_;k.assert=function(t,e){if(!t)throw new N.AssertionError(e)},function(t){var e=i&&i.__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=i&&i.__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(A,t),n(_,t),n(E,t),n(O,t),n(k,t)}(b),m.chunkAsync=void 0;const B=f,P=b;m.chunkAsync=function(t,e){return(0,P.assert)(Number.isInteger(e),"The parameter size must be an integer"),(0,P.assert)(e>0,"The parameter size must be greater than 0"),(0,B.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 q={},C={},M={};function z(t){return Array.isArray(t)}M.isntEmptyArray=M.isEmptyArray=M.isntArray=M.isArray=void 0,M.isArray=z,M.isntArray=function(t){return!z(t)},M.isEmptyArray=function(t){return 0===t.length},M.isntEmptyArray=function(t){return 0!==t.length};var R={},U={};function D(t){return null===t}U.isntNull=U.isNull=void 0,U.isNull=D,U.isntNull=function(t){return!D(t)};var F={};function J(t){return void 0===t}F.isntUndefined=F.isUndefined=void 0,F.isUndefined=J,F.isntUndefined=function(t){return!J(t)},R.isntAsyncIterable=R.isAsyncIterable=void 0;const L=U,V=F;function W(t){return(0,L.isntNull)(t)&&(0,V.isntUndefined)(t)&&"function"==typeof t[Symbol.asyncIterator]}R.isAsyncIterable=W,R.isntAsyncIterable=function(t){return!W(t)};var K={};function Y(t){return"bigint"==typeof t}K.isntBigInt=K.isBigInt=void 0,K.isBigInt=Y,K.isntBigInt=function(t){return!Y(t)};var H={};function $(t){return"boolean"==typeof t}H.isntBoolean=H.isBoolean=void 0,H.isBoolean=$,H.isntBoolean=function(t){return!$(t)};var Q={},X={};function G(t){return"string"==typeof t}X.isntString=X.isString=void 0,X.isString=G,X.isntString=function(t){return!G(t)},Q.isntChar=Q.isChar=void 0;const Z=X;function tt(t){return(0,Z.isString)(t)&&1===t.length}Q.isChar=tt,Q.isntChar=function(t){return!tt(t)};var et={};function nt(t){return t instanceof Date}et.isntDate=et.isDate=void 0,et.isDate=nt,et.isntDate=function(t){return!nt(t)};var rt={};rt.inEnum=void 0,rt.inEnum=function(t,e){return Object.values(e).includes(t)};var ot={};function it(t){return t instanceof Error}ot.isntError=ot.isError=void 0,ot.isError=it,ot.isntError=function(t){return!it(t)};var at={};function st(t){return!t}at.isntFalsy=at.isFalsy=void 0,at.isFalsy=st,at.isntFalsy=function(t){return!st(t)};var ct={};function ut(t){return"function"==typeof t}ct.isntFunction=ct.isFunction=void 0,ct.isFunction=ut,ct.isntFunction=function(t){return!ut(t)};var lt={};lt.isntIterable=lt.isIterable=void 0;const ft=U,dt=F;function yt(t){return(0,ft.isntNull)(t)&&(0,dt.isntUndefined)(t)&&"function"==typeof t[Symbol.iterator]}lt.isIterable=yt,lt.isntIterable=function(t){return!yt(t)};var ht={},vt={};var pt=Function.prototype,mt=Object.prototype,bt=pt.toString,gt=mt.hasOwnProperty,wt=bt.call(Object),At=mt.toString,St=function(t,e){return function(n){return t(e(n))}}(Object.getPrototypeOf,Object);var It=function(t){if(!function(t){return!!t&&"object"==typeof t}(t)||"[object Object]"!=At.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=St(t);if(null===e)return!0;var n=gt.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&bt.call(n)==wt},_t=i&&i.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};vt.isntEmptyObject=vt.isEmptyObject=vt.isntPlainObject=vt.isPlainObject=vt.isntObject=vt.isObject=void 0;const Tt=_t(It);function xt(t){return null!==t&&"object"==typeof t}function Et(t){return(0,Tt.default)(t)}vt.isObject=xt,vt.isntObject=function(t){return!xt(t)},vt.isPlainObject=Et,vt.isntPlainObject=function(t){return!Et(t)},vt.isEmptyObject=function(t){return 0===Object.keys(t).length},vt.isntEmptyObject=function(t){return 0!==Object.keys(t).length};var Ot={};function jt(t){return"number"==typeof t}Ot.isntNumber=Ot.isNumber=void 0,Ot.isNumber=jt,Ot.isntNumber=function(t){return!jt(t)},ht.isntJsonRpcError=ht.isJsonRpcError=ht.isntJsonRpcSuccess=ht.isJsonRpcSuccess=ht.isntJsonRpcRequest=ht.isJsonRpcRequest=ht.isntJsonRpcNotification=ht.isJsonRpcNotification=void 0;const kt=M,Nt=vt,Bt=X,Pt=Ot,qt=F;function Ct(t){return(0,Bt.isString)(t)||(0,Pt.isNumber)(t)}function Mt(t){return(0,kt.isArray)(t)||(0,Nt.isObject)(t)}function zt(t){return(0,Nt.isPlainObject)(t)&&(0,Bt.isString)(t.jsonrpc)&&(0,Bt.isString)(t.method)&&(0,qt.isUndefined)(t.id)&&Mt(t.params)}function Rt(t){return(0,Nt.isPlainObject)(t)&&(0,Bt.isString)(t.jsonrpc)&&(0,Bt.isString)(t.method)&&Ct(t.id)&&Mt(t.params)}function Ut(t){return(0,Nt.isPlainObject)(t)&&(0,Bt.isString)(t.jsonrpc)&&(0,Bt.isString)(t.id)&&"result"in t}function Dt(t){return(0,Nt.isPlainObject)(t)&&(0,Bt.isString)(t.jsonrpc)&&Ct(t.id)&&function(t){return(0,Nt.isPlainObject)(t)&&(0,Pt.isNumber)(t.code)&&(0,Bt.isString)(t.message)&&((0,qt.isUndefined)(t.data)||(0,Nt.isObject)(t.data))}(t.error)}ht.isJsonRpcNotification=zt,ht.isntJsonRpcNotification=function(t){return!zt(t)},ht.isJsonRpcRequest=Rt,ht.isntJsonRpcRequest=function(t){return!Rt(t)},ht.isJsonRpcSuccess=Ut,ht.isntJsonRpcSuccess=function(t){return!Ut(t)},ht.isJsonRpcError=Dt,ht.isntJsonRpcError=function(t){return!Dt(t)};var Ft={};Ft.isntJson=Ft.isJson=void 0,Ft.isJson=function(t){try{return JSON.stringify(t),!0}catch(t){return!1}},Ft.isntJson=function t(e){return!t()};var Jt={};Jt.isAbsoluteURL=void 0,Jt.isAbsoluteURL=function(t){try{return new URL(t),!0}catch(t){return!1}},function(t){var e=i&&i.__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=i&&i.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};n(M,t),n(R,t),n(K,t),n(H,t),n(Q,t),n(et,t),n(rt,t),n(ot,t),n(at,t),n(ct,t),n(lt,t),n(ht,t),n(Ft,t),n(U,t),n(Ot,t),n(vt,t),n(X,t),n(F,t),n(Jt,t)}(C),q.chunkByAsync=void 0;const Lt=C;q.chunkByAsync=function(t,e){return(0,Lt.isAsyncIterable)(t)?async function*(t){let n=[],r=0;for await(const o of t)n.push(o),await e(o,r)&&(yield n,n=[]),r++;n.length&&(yield n)}(t):async function*(t){let n=[],r=0;for(const o of t)n.push(o),await e(o,r)&&(yield n,n=[]),r++;n.length&&(yield n)}(t)};var Vt={};Vt.chunkBy=void 0,Vt.chunkBy=function*(t,e){let n=[],r=0;for(const o of t)n.push(o),e(o,r)&&(yield n,n=[]),r++;n.length&&(yield n)};var Wt={chunk:void 0};const Kt=f,Yt=b;Wt.chunk=function(t,e){return(0,Yt.assert)(Number.isInteger(e),"The parameter size must be an integer"),(0,Yt.assert)(e>0,"The parameter size must be greater than 0"),(0,Kt.go)((function*(){let n=[];for(const r of t)n.push(r),n.length>=e&&(yield n,n=[]);n.length&&(yield n)}))};var Ht={concatAsync:void 0};const $t=C,Qt=f;Ht.concatAsync=function(t,...e){return(0,Qt.go)((async function*(){for(const n of[t,...e])if((0,$t.isAsyncIterable)(n))for await(const t of n)yield t;else for(const t of n)yield t}))};var Xt={concat:void 0};const Gt=f;Xt.concat=function(t,...e){return(0,Gt.go)((function*(){for(const n of[t,...e])yield*n}))};var Zt={},te={};te.copyIterable=te.copyAsyncIterable=void 0,te.copyAsyncIterable=async function*(t){for await(const e of t)yield e},te.copyIterable=function*(t){for(const e of t)yield e},Zt.dropAsync=void 0;const ee=f,ne=te,re=b;Zt.dropAsync=function(t,e){return(0,re.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,re.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,ne.copyAsyncIterable)(t):(0,ee.go)((async function*(){var n;const r=t[Symbol.asyncIterator]();let o;try{let t;for(;!(({value:t,done:o}=await r.next()),o||e<=0);)e--;for(;!o;)yield t,({value:t,done:o}=await r.next())}finally{o||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}}))};var oe={dropRightAsync:void 0};const ie=f,ae=te,se=b;oe.dropRightAsync=function(t,e){return(0,se.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,se.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,ae.copyAsyncIterable)(t):(0,ie.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 ce={dropRight:void 0};const ue=f,le=te,fe=b;ce.dropRight=function(t,e){return(0,fe.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,fe.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,le.copyIterable)(t):(0,ue.go)((function*(){const n=Array.from(t);yield*n.slice(0,-e)}))};var de={dropUntilAsync:void 0};const ye=C;de.dropUntilAsync=function(t,e){return(0,ye.isAsyncIterable)(t)?async function*(t){var n;const r=t[Symbol.asyncIterator]();let o;try{let t,i=0;for(;!(({value:t,done:o}=await r.next()),o||await e(t,i++)););for(;!o;)yield t,({value:t,done:o}=await r.next())}finally{o||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 o;try{let t,i=0;for(;!(({value:t,done:o}=r.next()),o||await e(t,i++)););for(;!o;)yield t,({value:t,done:o}=r.next())}finally{o||null===(n=r.return)||void 0===n||n.call(r)}}(t)};var he={};he.dropUntil=void 0,he.dropUntil=function*(t,e){var n;const r=t[Symbol.iterator]();let o;try{let t,i=0;for(;!(({value:t,done:o}=r.next()),o||e(t,i++)););for(;!o;)yield t,({value:t,done:o}=r.next())}finally{o||null===(n=r.return)||void 0===n||n.call(r)}};var ve={drop:void 0};const pe=f,me=te,be=b;ve.drop=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*(){var n;const r=t[Symbol.iterator]();let o;try{let t;for(;!(({value:t,done:o}=r.next()),o||e<=0);)e--;for(;!o;)yield t,({value:t,done:o}=r.next())}finally{o||null===(n=r.return)||void 0===n||n.call(r)}}))};var ge={filterAsync:void 0};const we=C;ge.filterAsync=function(t,e){return(0,we.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 Ae={};Ae.filter=void 0,Ae.filter=function*(t,e){let n=0;for(const r of t)e(r,n)&&(yield r),n++};var Se={},Ie={},_e={flattenByAsync:void 0};const Te=C;function xe(t){return(0,Te.isIterable)(t)&&(0,Te.isntChar)(t)}_e.flattenByAsync=function(t,e){return(0,Te.isAsyncIterable)(t)?async function*(t){const r=1;for await(const o of t)xe(o)&&await e(o,r)?yield*n(o,r+1):yield o}(t):function(t){return n(t,1)}(t);async function*n(t,r){for(const o of t)xe(o)&&await e(o,r)?yield*n(o,r+1):yield o}},Ie.flattenDeepAsync=void 0;const Ee=_e,Oe=b;Ie.flattenDeepAsync=function(t,e=1/0){return(0,Oe.assert)(e===1/0||Number.isInteger(e),"The parameter depth must be an integer"),(0,Oe.assert)(e>=0,"The parameter depth must be greater than or equal to 0"),(0,Ee.flattenByAsync)(t,((t,n)=>n<=e))},Se.flattenAsync=void 0;const je=Ie;Se.flattenAsync=function(t){return(0,je.flattenDeepAsync)(t,1)};var ke={flattenBy:void 0};const Ne=C;ke.flattenBy=function(t,e){return function*t(n,r){for(const i of n)(0,Ne.isIterable)(o=i)&&(0,Ne.isntChar)(o)&&e(i,r)?yield*t(i,r+1):yield i;var o}(t,1)};var Be={flattenDeep:void 0};const Pe=ke,qe=b;Be.flattenDeep=function(t,e=1/0){return(0,qe.assert)(e===1/0||Number.isInteger(e),"The parameter depth must be an integer"),(0,qe.assert)(e>=0,"The parameter depth must be greater than or equal to 0"),(0,Pe.flattenBy)(t,((t,n)=>n<=e))};var Ce={flatten:void 0};const Me=Be;Ce.flatten=function(t){return(0,Me.flattenDeep)(t,1)};var ze={mapAsync:void 0};const Re=C;ze.mapAsync=function(t,e){return(0,Re.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 Ue={};Ue.map=void 0,Ue.map=function*(t,e){let n=0;for(const r of t)yield e(r,n),n++};var De={repeatAsync:void 0};const Fe=f,Je=b;De.repeatAsync=function(t,e){return(0,Je.assert)(e===1/0||Number.isInteger(e),"The parameter times must be an integer"),(0,Je.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,Fe.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 Le={repeat:void 0};const Ve=f,We=b;Le.repeat=function(t,e){return(0,We.assert)(e===1/0||Number.isInteger(e),"The parameter times must be an integer"),(0,We.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,Ve.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 Ke={sliceAsync:void 0};const Ye=f,He=b;Ke.sliceAsync=function(t,e,n=1/0){return(0,He.assert)(Number.isInteger(e),"The parameter start must be an integer"),(0,He.assert)(e>=0,"The parameter start must be greater than or equal to 0"),(0,He.assert)(Number.isInteger(n),"The parameter end must be an integer"),(0,He.assert)(n>=e,"The parameter end must be greater than or equal to start"),(0,Ye.go)((async function*(){let r=0;for await(const o of t){if(r>=n)break;r>=e&&(yield o),r++}}))};var $e={slice:void 0};const Qe=f,Xe=b;$e.slice=function(t,e,n=1/0){return(0,Xe.assert)(Number.isInteger(e),"The parameter start must be an integer"),(0,Xe.assert)(e>=0,"The parameter start must be greater than or equal to 0"),(0,Xe.assert)(Number.isInteger(n),"The parameter end must be an integer"),(0,Xe.assert)(n>=e,"The parameter end must be greater than or equal to start"),(0,Qe.go)((function*(){let r=0;for(const o of t){if(r>=n)break;r>=e&&(yield o),r++}}))};var Ge={};Ge.splitAsync=void 0,Ge.splitAsync=async function*(t,e){let n=[];for await(const r of t)r===e?(yield n,n=[]):n.push(r);yield n};var Ze={splitByAsync:void 0};const tn=C;Ze.splitByAsync=function(t,e){return(0,tn.isAsyncIterable)(t)?async function*(t){let n=[],r=0;for await(const o of t)await e(o,r)?(yield n,n=[]):n.push(o),r++;yield n}(t):async function*(t){let n=[],r=0;for(const o of t)await e(o,r)?(yield n,n=[]):n.push(o),r++;yield n}(t)};var en={};en.splitBy=void 0,en.splitBy=function*(t,e){let n=[],r=0;for(const o of t)e(o,r)?(yield n,n=[]):n.push(o),r++;yield n};var nn={};nn.split=void 0,nn.split=function*(t,e){let n=[];for(const r of t)r===e?(yield n,n=[]):n.push(r);yield n};var rn={takeAsync:void 0};const on=f,an=b;rn.takeAsync=function(t,e){return(0,an.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,an.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,on.go)((async function*(){if(0!==e)for await(const n of t)if(yield n,0===--e)break}))};var sn={takeRightAsync:void 0};const cn=f,un=b;sn.takeRightAsync=function(t,e){return(0,un.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,un.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,cn.go)((async function*(){var n;const r=t[Symbol.asyncIterator]();let o;try{const t=[];let i;for(;({value:i,done:o}=await r.next()),!o;)t.push(i),t.length>e&&t.shift();yield*t}finally{o||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}}))};var ln={takeRight:void 0};const fn=f,dn=b;ln.takeRight=function(t,e){return(0,dn.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,dn.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,fn.go)((function*(){var n;const r=t[Symbol.iterator]();let o;try{const t=[];let i;for(;({value:i,done:o}=r.next()),!o;)t.push(i),t.length>e&&t.shift();yield*t}finally{o||null===(n=r.return)||void 0===n||n.call(r)}}))};var yn={takeUntilAsync:void 0};const hn=C;yn.takeUntilAsync=function(t,e){return(0,hn.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 vn={};vn.takeUntil=void 0,vn.takeUntil=function*(t,e){let n=0;for(const r of t){if(e(r,n))break;yield r,n++}};var pn={take:void 0};const mn=f,bn=b;pn.take=function(t,e){return(0,bn.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,bn.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,mn.go)((function*(){if(0!==e)for(const n of t)if(yield n,0===--e)break}))};var gn={tapAsync:void 0};const wn=C;gn.tapAsync=function(t,e){return(0,wn.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 An={};An.tap=void 0,An.tap=function*(t,e){let n=0;for(const r of t)e(r,n),yield r,n++};var Sn={};Sn.toAsyncIterable=void 0,Sn.toAsyncIterable=async function*(t){for(const e of t)yield e};var In={};In.transformAsync=void 0,In.transformAsync=async function*(t,e){yield*e(t)};var _n={};_n.transform=void 0,_n.transform=function*(t,e){yield*e(t)};var Tn={};Tn.uniqAsync=void 0,Tn.uniqAsync=async function*(t){const e=new Set;for await(const n of t)e.has(n)||(yield n,e.add(n))};var xn={uniqByAsync:void 0};const En=C;xn.uniqByAsync=function(t,e){return(0,En.isAsyncIterable)(t)?async function*(t){const n=new Set;let r=0;for await(const o of t){const t=await e(o,r);n.has(t)||(yield o,n.add(t)),r++}}(t):async function*(t){const n=new Set;let r=0;for(const o of t){const t=await e(o,r);n.has(t)||(yield o,n.add(t)),r++}}(t)};var On={};On.uniqBy=void 0,On.uniqBy=function*(t,e){const n=new Set;let r=0;for(const o of t){const t=e(o,r);n.has(t)||(yield o,n.add(t)),r++}};var jn={};jn.uniq=void 0,jn.uniq=function*(t){const e=new Set;for(const n of t)e.has(n)||(yield n,e.add(n))};var kn={zipAsync:void 0};const Nn=C;var Bn;!function(t){t[t.Sync=0]="Sync",t[t.Async=1]="Async"}(Bn||(Bn={})),kn.zipAsync=function(t,...e){return async function*(...t){var e,n,r,o;const i=t.length,a=t.map((t=>(0,Nn.isAsyncIterable)(t)?[Bn.Async,t[Symbol.asyncIterator]()]:[Bn.Sync,t[Symbol.iterator]()])),s=a.map((()=>!1));try{for(;;){const t=new Array(i);for(let e=0;e<i;e++){const[n,r]=a[e];let o;if(o=n===Bn.Async?await r.next():r.next(),o.done)return void(s[e]=!0);t[e]=o.value}yield t}}finally{const t=a.filter(((t,e)=>!s[e]));for(const[i,a]of t)i===Bn.Async?await(null===(n=(e=a).return)||void 0===n?void 0:n.call(e)):null===(o=(r=a).return)||void 0===o||o.call(r)}}(t,...e)};var Pn={};Pn.zip=void 0,Pn.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 o=0;o<e;o++){const{value:e,done:i}=n[o].next();if(i)return void(r[o]=!0);t[o]=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=i&&i.__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=i&&i.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};n(m,t),n(q,t),n(Vt,t),n(Wt,t),n(Ht,t),n(Xt,t),n(Zt,t),n(oe,t),n(ce,t),n(de,t),n(he,t),n(ve,t),n(ge,t),n(Ae,t),n(Se,t),n(_e,t),n(ke,t),n(Ie,t),n(Be,t),n(Ce,t),n(ze,t),n(Ue,t),n(De,t),n(Le,t),n(Ke,t),n($e,t),n(Ge,t),n(Ze,t),n(en,t),n(nn,t),n(rn,t),n(sn,t),n(ln,t),n(yn,t),n(vn,t),n(pn,t),n(gn,t),n(An,t),n(Sn,t),n(In,t),n(_n,t),n(Tn,t),n(xn,t),n(On,t),n(jn,t),n(kn,t),n(Pn,t)}(p);var qn={},Cn={};Cn.consume=void 0,Cn.consume=function(t,e){return e(t)};var Mn={eachAsync:void 0};const zn=C;Mn.eachAsync=function(t,e){return(0,zn.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 Rn={};Rn.each=void 0,Rn.each=function(t,e){let n=0;for(const r of t)e(r,n),n++};var Un={everyAsync:void 0};const Dn=C;Un.everyAsync=function(t,e){return(0,Dn.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 Fn={};Fn.every=void 0,Fn.every=function(t,e){let n=0;for(const r of t){if(!e(r,n))return!1;n++}return!0};var Jn={findAsync:void 0};const Ln=C;Jn.findAsync=function(t,e){return(0,Ln.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 Vn={};Vn.find=void 0,Vn.find=function(t,e){let n=0;for(const r of t){if(e(r,n))return r;n++}};var Wn={};Wn.firstAsync=void 0,Wn.firstAsync=async function(t){for await(const e of t)return e};var Kn={};Kn.first=void 0,Kn.first=function(t){for(const e of t)return e};var Yn={};Yn.includesAsync=void 0,Yn.includesAsync=async function(t,e){for await(const n of t)if(n===e)return!0;return!1};var Hn={};Hn.includes=void 0,Hn.includes=function(t,e){for(const n of t)if(n===e)return!0;return!1};var $n={};$n.matchAsync=void 0,$n.matchAsync=async function(t,e){const n=e.length;let r=0;for await(const o of t)if(o===e[r]&&r++,r===n)return!0;return!1};var Qn={};Qn.match=void 0,Qn.match=function(t,e){const n=e.length;let r=0;for(const o of t)if(o===e[r]&&r++,r===n)return!0;return!1};var Xn={reduceAsync:void 0};const Gn=C;Xn.reduceAsync=function(t,e,n){return(0,Gn.isUndefined)(n)?function(t,e){return(0,Gn.isAsyncIterable)(t)?n(t):r(t);async function n(t){var n;const r=t[Symbol.asyncIterator]();let o;try{let t,a=await i(r),s=1;for(;({value:t,done:o}=await r.next()),!o;)a=await e(a,t,s++);return a}finally{o||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}async function i(t){const e=await t.next();if(e.done)throw o=!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 o;try{let t,a=i(r),s=1;for(;({value:t,done:o}=r.next()),!o;)a=await e(a,t,s++);return a}finally{o||null===(n=r.return)||void 0===n||n.call(r)}function i(t){const e=t.next();if(e.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return e.value}}}(t,e):function(t,e,n){return(0,Gn.isAsyncIterable)(t)?o(t):r(t);async function r(t){let r=n,o=0;for(const n of t)r=await e(r,n,o++);return r}async function o(t){let r=n,o=0;for await(const n of t)r=await e(r,n,o++);return r}}(t,e,n)};var Zn={reduce:void 0};const tr=C;Zn.reduce=function(t,e,n){return(0,tr.isUndefined)(n)?function(t,e){var n;const r=t[Symbol.iterator]();let o;try{let t,a=i(r),s=1;for(;({value:t,done:o}=r.next()),!o;)a=e(a,t,s++);return a}finally{o||null===(n=r.return)||void 0===n||n.call(r)}function i(t){const e=t.next();if(e.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return e.value}}(t,e):function(t,e,n){let r=n,o=0;for(const n of t)r=e(r,n,o++);return r}(t,e,n)};var er={someAsync:void 0};const nr=C;er.someAsync=function(t,e){return(0,nr.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 rr={};rr.some=void 0,rr.some=function(t,e){let n=0;for(const r of t){if(e(r,n))return!0;n++}return!1};var or={};or.lastAsync=void 0,or.lastAsync=async function(t){var e;const n=t[Symbol.asyncIterator]();let r;try{let t,o;for(;({value:t,done:r}=await n.next()),!r;)o=t;return o}finally{r||await(null===(e=n.return)||void 0===e?void 0:e.call(n))}};var ir={};ir.last=void 0,ir.last=function(t){var e;const n=t[Symbol.iterator]();let r;try{let t,o;for(;({value:t,done:r}=n.next()),!r;)o=t;return o}finally{r||null===(e=n.return)||void 0===e||e.call(n)}};var ar={toArrayAsync:void 0};const sr=Cn;ar.toArrayAsync=function(t){return(0,sr.consume)(t,(async t=>{const e=[];for await(const n of t)e.push(n);return e}))};var cr={toArray:void 0};const ur=Cn;cr.toArray=function(t){return(0,ur.consume)(t,(t=>Array.from(t)))};var lr={toSetAsync:void 0};const fr=Cn;lr.toSetAsync=function(t){return(0,fr.consume)(t,(async t=>{const e=new Set;for await(const n of t)e.add(n);return e}))};var dr={toSet:void 0};const yr=Cn;dr.toSet=function(t){return(0,yr.consume)(t,(t=>new Set(t)))},function(t){var e=i&&i.__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=i&&i.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};n(Cn,t),n(Mn,t),n(Rn,t),n(Un,t),n(Fn,t),n(Jn,t),n(Vn,t),n(Wn,t),n(Kn,t),n(Yn,t),n(Hn,t),n($n,t),n(Qn,t),n(Xn,t),n(Zn,t),n(er,t),n(rr,t),n(or,t),n(ir,t),n(ar,t),n(cr,t),n(lr,t),n(dr,t)}(qn),function(t){var e=i&&i.__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=i&&i.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};n(p,t),n(qn,t)}(v);var hr={},vr={};vr.traverseErrorPrototypeChain=void 0,vr.traverseErrorPrototypeChain=function*(t){let e=t;for(;(e=Object.getPrototypeOf(e))&&(yield e,e!==Error.prototype););},hr.getErrorNames=void 0;const pr=C,mr=vr;hr.getErrorNames=function*(t){var e;if((0,pr.isError)(t))for(const n of(0,mr.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 br={isSerializableError:void 0};const gr=C;br.isSerializableError=function(t){return(0,gr.isObject)(t)&&(0,gr.isString)(t.name)&&(0,gr.isString)(t.message)&&((0,gr.isString)(t.stack)||(0,gr.isNull)(t.stack))&&(0,gr.isArray)(t.ancestors)&&t.ancestors.every(gr.isString)},h.CustomError=void 0;const wr=v,Ar=hr,Sr=C,Ir=br;class _r extends Error{get name(){var t,e;return null!==(e=null!==(t=(0,wr.first)((0,Ar.getErrorNames)(this)))&&void 0!==t?t:_r.name)&&void 0!==e?e:"CustomError"}static[Symbol.hasInstance](t){var e;if((0,Sr.isError)(t)||(0,Ir.isSerializableError)(t)){const n=[null!==(e=this.prototype.constructor.name)&&void 0!==e?e:this.name,...(0,Ar.getErrorNames)(this.prototype)].reverse(),r=(0,wr.toArray)((0,Ar.getErrorNames)(t)).reverse();return n.every(((t,e)=>t===r[e]))}return!1}}h.CustomError=_r;var Tr={AssertionError:void 0};const xr=h;class Er extends xr.CustomError{}Tr.AssertionError=Er;var Or={normalize:void 0};const jr=hr,kr=v;Or.normalize=function(t){var e;const[n,...r]=(0,kr.toArray)((0,jr.getErrorNames)(t));return{name:n,ancestors:r,message:t.message,stack:null!==(e=t.stack)&&void 0!==e?e:null}};var Nr={},Br={},Pr={};Pr.pass=void 0,Pr.pass=function(){},function(t){var e=i&&i.__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]});(i&&i.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)})(Pr,t)}(Br),Nr.hydrate=void 0;const qr=Br;function Cr(t,e){const n=function(){(0,qr.pass)()};return(n.prototype=Object.create(t.prototype)).constructor=n,Object.defineProperty(n,"name",{value:e}),n}Nr.hydrate=function(t){var e;const n=[t.name,...t.ancestors].slice(0,-1).reverse();let r=Error;for(const t of n)r=Cr(r,t);const o=new r;return o.name=t.name,o.message=t.message,o.stack=null!==(e=t.stack)&&void 0!==e?e:void 0,o};var Mr={assert:void 0};const zr=Tr;Mr.assert=function(t,e){if(!t)throw new zr.AssertionError(e)},function(t){var e=i&&i.__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=i&&i.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};n(h,t),n(Tr,t),n(br,t),n(Or,t),n(Nr,t),n(Mr,t),n(hr,t),n(vr,t)}(y),l.chunkAsync=void 0;const Rr=f,Ur=y;l.chunkAsync=function(t,e){return(0,Ur.assert)(Number.isInteger(e),"The parameter size must be an integer"),(0,Ur.assert)(e>0,"The parameter size must be greater than 0"),(0,Rr.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 Dr={chunkByAsync:void 0};const Fr=C;Dr.chunkByAsync=function(t,e){return(0,Fr.isAsyncIterable)(t)?async function*(t){let n=[],r=0;for await(const o of t)n.push(o),await e(o,r)&&(yield n,n=[]),r++;n.length&&(yield n)}(t):async function*(t){let n=[],r=0;for(const o of t)n.push(o),await e(o,r)&&(yield n,n=[]),r++;n.length&&(yield n)}(t)};var Jr={};Jr.chunkBy=void 0,Jr.chunkBy=function*(t,e){let n=[],r=0;for(const o of t)n.push(o),e(o,r)&&(yield n,n=[]),r++;n.length&&(yield n)};var Lr={chunk:void 0};const Vr=f,Wr=y;Lr.chunk=function(t,e){return(0,Wr.assert)(Number.isInteger(e),"The parameter size must be an integer"),(0,Wr.assert)(e>0,"The parameter size must be greater than 0"),(0,Vr.go)((function*(){let n=[];for(const r of t)n.push(r),n.length>=e&&(yield n,n=[]);n.length&&(yield n)}))};var Kr={concatAsync:void 0};const Yr=C,Hr=f;Kr.concatAsync=function(t,...e){return(0,Hr.go)((async function*(){for(const n of[t,...e])if((0,Yr.isAsyncIterable)(n))for await(const t of n)yield t;else for(const t of n)yield t}))};var $r={concat:void 0};const Qr=f;$r.concat=function(t,...e){return(0,Qr.go)((function*(){for(const n of[t,...e])yield*n}))};var Xr={},Gr={};Gr.copyIterable=Gr.copyAsyncIterable=void 0,Gr.copyAsyncIterable=async function*(t){for await(const e of t)yield e},Gr.copyIterable=function*(t){for(const e of t)yield e},Xr.dropAsync=void 0;const Zr=f,to=Gr,eo=y;Xr.dropAsync=function(t,e){return(0,eo.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,eo.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,to.copyAsyncIterable)(t):(0,Zr.go)((async function*(){var n;const r=t[Symbol.asyncIterator]();let o;try{let t;for(;!(({value:t,done:o}=await r.next()),o||e<=0);)e--;for(;!o;)yield t,({value:t,done:o}=await r.next())}finally{o||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}}))};var no={dropRightAsync:void 0};const ro=f,oo=Gr,io=y;no.dropRightAsync=function(t,e){return(0,io.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,io.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,oo.copyAsyncIterable)(t):(0,ro.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 ao={dropRight:void 0};const so=f,co=Gr,uo=y;ao.dropRight=function(t,e){return(0,uo.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,uo.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,co.copyIterable)(t):(0,so.go)((function*(){const n=Array.from(t);yield*n.slice(0,-e)}))};var lo={dropUntilAsync:void 0};const fo=C;lo.dropUntilAsync=function(t,e){return(0,fo.isAsyncIterable)(t)?async function*(t){var n;const r=t[Symbol.asyncIterator]();let o;try{let t,i=0;for(;!(({value:t,done:o}=await r.next()),o||await e(t,i++)););for(;!o;)yield t,({value:t,done:o}=await r.next())}finally{o||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 o;try{let t,i=0;for(;!(({value:t,done:o}=r.next()),o||await e(t,i++)););for(;!o;)yield t,({value:t,done:o}=r.next())}finally{o||null===(n=r.return)||void 0===n||n.call(r)}}(t)};var yo={};yo.dropUntil=void 0,yo.dropUntil=function*(t,e){var n;const r=t[Symbol.iterator]();let o;try{let t,i=0;for(;!(({value:t,done:o}=r.next()),o||e(t,i++)););for(;!o;)yield t,({value:t,done:o}=r.next())}finally{o||null===(n=r.return)||void 0===n||n.call(r)}};var ho={drop:void 0};const vo=f,po=Gr,mo=y;ho.drop=function(t,e){return(0,mo.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,mo.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,po.copyIterable)(t):(0,vo.go)((function*(){var n;const r=t[Symbol.iterator]();let o;try{let t;for(;!(({value:t,done:o}=r.next()),o||e<=0);)e--;for(;!o;)yield t,({value:t,done:o}=r.next())}finally{o||null===(n=r.return)||void 0===n||n.call(r)}}))};var bo={filterAsync:void 0};const go=C;bo.filterAsync=function(t,e){return(0,go.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 wo={};wo.filter=void 0,wo.filter=function*(t,e){let n=0;for(const r of t)e(r,n)&&(yield r),n++};var Ao={},So={},Io={flattenByAsync:void 0};const _o=C;function To(t){return(0,_o.isIterable)(t)&&(0,_o.isntChar)(t)}Io.flattenByAsync=function(t,e){return(0,_o.isAsyncIterable)(t)?async function*(t){const r=1;for await(const o of t)To(o)&&await e(o,r)?yield*n(o,r+1):yield o}(t):function(t){return n(t,1)}(t);async function*n(t,r){for(const o of t)To(o)&&await e(o,r)?yield*n(o,r+1):yield o}},So.flattenDeepAsync=void 0;const xo=Io,Eo=y;So.flattenDeepAsync=function(t,e=1/0){return(0,Eo.assert)(e===1/0||Number.isInteger(e),"The parameter depth must be an integer"),(0,Eo.assert)(e>=0,"The parameter depth must be greater than or equal to 0"),(0,xo.flattenByAsync)(t,((t,n)=>n<=e))},Ao.flattenAsync=void 0;const Oo=So;Ao.flattenAsync=function(t){return(0,Oo.flattenDeepAsync)(t,1)};var jo={flattenBy:void 0};const ko=C;jo.flattenBy=function(t,e){return function*t(n,r){for(const i of n)(0,ko.isIterable)(o=i)&&(0,ko.isntChar)(o)&&e(i,r)?yield*t(i,r+1):yield i;var o}(t,1)};var No={flattenDeep:void 0};const Bo=jo,Po=y;No.flattenDeep=function(t,e=1/0){return(0,Po.assert)(e===1/0||Number.isInteger(e),"The parameter depth must be an integer"),(0,Po.assert)(e>=0,"The parameter depth must be greater than or equal to 0"),(0,Bo.flattenBy)(t,((t,n)=>n<=e))};var qo={flatten:void 0};const Co=No;qo.flatten=function(t){return(0,Co.flattenDeep)(t,1)};var Mo={mapAsync:void 0};const zo=C;Mo.mapAsync=function(t,e){return(0,zo.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 Ro={};Ro.map=void 0,Ro.map=function*(t,e){let n=0;for(const r of t)yield e(r,n),n++};var Uo={repeatAsync:void 0};const Do=f,Fo=y;Uo.repeatAsync=function(t,e){return(0,Fo.assert)(e===1/0||Number.isInteger(e),"The parameter times must be an integer"),(0,Fo.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,Do.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 Jo={repeat:void 0};const Lo=f,Vo=y;Jo.repeat=function(t,e){return(0,Vo.assert)(e===1/0||Number.isInteger(e),"The parameter times must be an integer"),(0,Vo.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,Lo.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 Wo={sliceAsync:void 0};const Ko=f,Yo=y;Wo.sliceAsync=function(t,e,n=1/0){return(0,Yo.assert)(Number.isInteger(e),"The parameter start must be an integer"),(0,Yo.assert)(e>=0,"The parameter start must be greater than or equal to 0"),(0,Yo.assert)(Number.isInteger(n),"The parameter end must be an integer"),(0,Yo.assert)(n>=e,"The parameter end must be greater than or equal to start"),(0,Ko.go)((async function*(){let r=0;for await(const o of t){if(r>=n)break;r>=e&&(yield o),r++}}))};var Ho={slice:void 0};const $o=f,Qo=y;Ho.slice=function(t,e,n=1/0){return(0,Qo.assert)(Number.isInteger(e),"The parameter start must be an integer"),(0,Qo.assert)(e>=0,"The parameter start must be greater than or equal to 0"),(0,Qo.assert)(Number.isInteger(n),"The parameter end must be an integer"),(0,Qo.assert)(n>=e,"The parameter end must be greater than or equal to start"),(0,$o.go)((function*(){let r=0;for(const o of t){if(r>=n)break;r>=e&&(yield o),r++}}))};var Xo={};Xo.splitAsync=void 0,Xo.splitAsync=async function*(t,e){let n=[];for await(const r of t)r===e?(yield n,n=[]):n.push(r);yield n};var Go={splitByAsync:void 0};const Zo=C;Go.splitByAsync=function(t,e){return(0,Zo.isAsyncIterable)(t)?async function*(t){let n=[],r=0;for await(const o of t)await e(o,r)?(yield n,n=[]):n.push(o),r++;yield n}(t):async function*(t){let n=[],r=0;for(const o of t)await e(o,r)?(yield n,n=[]):n.push(o),r++;yield n}(t)};var ti={};ti.splitBy=void 0,ti.splitBy=function*(t,e){let n=[],r=0;for(const o of t)e(o,r)?(yield n,n=[]):n.push(o),r++;yield n};var ei={};ei.split=void 0,ei.split=function*(t,e){let n=[];for(const r of t)r===e?(yield n,n=[]):n.push(r);yield n};var ni={takeAsync:void 0};const ri=f,oi=y;ni.takeAsync=function(t,e){return(0,oi.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,oi.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,ri.go)((async function*(){if(0!==e)for await(const n of t)if(yield n,0===--e)break}))};var ii={takeRightAsync:void 0};const ai=f,si=y;ii.takeRightAsync=function(t,e){return(0,si.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,si.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,ai.go)((async function*(){var n;const r=t[Symbol.asyncIterator]();let o;try{const t=[];let i;for(;({value:i,done:o}=await r.next()),!o;)t.push(i),t.length>e&&t.shift();yield*t}finally{o||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}}))};var ci={takeRight:void 0};const ui=f,li=y;ci.takeRight=function(t,e){return(0,li.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,li.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,ui.go)((function*(){var n;const r=t[Symbol.iterator]();let o;try{const t=[];let i;for(;({value:i,done:o}=r.next()),!o;)t.push(i),t.length>e&&t.shift();yield*t}finally{o||null===(n=r.return)||void 0===n||n.call(r)}}))};var fi={takeUntilAsync:void 0};const di=C;fi.takeUntilAsync=function(t,e){return(0,di.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 yi={};yi.takeUntil=void 0,yi.takeUntil=function*(t,e){let n=0;for(const r of t){if(e(r,n))break;yield r,n++}};var hi={take:void 0};const vi=f,pi=y;hi.take=function(t,e){return(0,pi.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,pi.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,vi.go)((function*(){if(0!==e)for(const n of t)if(yield n,0===--e)break}))};var mi={tapAsync:void 0};const bi=C;mi.tapAsync=function(t,e){return(0,bi.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 gi={};gi.tap=void 0,gi.tap=function*(t,e){let n=0;for(const r of t)e(r,n),yield r,n++};var wi={};wi.toAsyncIterable=void 0,wi.toAsyncIterable=async function*(t){for(const e of t)yield e};var Ai={};Ai.transformAsync=void 0,Ai.transformAsync=async function*(t,e){yield*e(t)};var Si={};Si.transform=void 0,Si.transform=function*(t,e){yield*e(t)};var Ii={};Ii.uniqAsync=void 0,Ii.uniqAsync=async function*(t){const e=new Set;for await(const n of t)e.has(n)||(yield n,e.add(n))};var _i={uniqByAsync:void 0};const Ti=C;_i.uniqByAsync=function(t,e){return(0,Ti.isAsyncIterable)(t)?async function*(t){const n=new Set;let r=0;for await(const o of t){const t=await e(o,r);n.has(t)||(yield o,n.add(t)),r++}}(t):async function*(t){const n=new Set;let r=0;for(const o of t){const t=await e(o,r);n.has(t)||(yield o,n.add(t)),r++}}(t)};var xi={};xi.uniqBy=void 0,xi.uniqBy=function*(t,e){const n=new Set;let r=0;for(const o of t){const t=e(o,r);n.has(t)||(yield o,n.add(t)),r++}};var Ei={};Ei.uniq=void 0,Ei.uniq=function*(t){const e=new Set;for(const n of t)e.has(n)||(yield n,e.add(n))};var Oi={zipAsync:void 0};const ji=C;var ki;!function(t){t[t.Sync=0]="Sync",t[t.Async=1]="Async"}(ki||(ki={})),Oi.zipAsync=function(t,...e){return async function*(...t){var e,n,r,o;const i=t.length,a=t.map((t=>(0,ji.isAsyncIterable)(t)?[ki.Async,t[Symbol.asyncIterator]()]:[ki.Sync,t[Symbol.iterator]()])),s=a.map((()=>!1));try{for(;;){const t=new Array(i);for(let e=0;e<i;e++){const[n,r]=a[e];let o;if(o=n===ki.Async?await r.next():r.next(),o.done)return void(s[e]=!0);t[e]=o.value}yield t}}finally{const t=a.filter(((t,e)=>!s[e]));for(const[i,a]of t)i===ki.Async?await(null===(n=(e=a).return)||void 0===n?void 0:n.call(e)):null===(o=(r=a).return)||void 0===o||o.call(r)}}(t,...e)};var Ni={};Ni.zip=void 0,Ni.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 o=0;o<e;o++){const{value:e,done:i}=n[o].next();if(i)return void(r[o]=!0);t[o]=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=i&&i.__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=i&&i.__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(Dr,t),n(Jr,t),n(Lr,t),n(Kr,t),n($r,t),n(Xr,t),n(no,t),n(ao,t),n(lo,t),n(yo,t),n(ho,t),n(bo,t),n(wo,t),n(Ao,t),n(Io,t),n(jo,t),n(So,t),n(No,t),n(qo,t),n(Mo,t),n(Ro,t),n(Uo,t),n(Jo,t),n(Wo,t),n(Ho,t),n(Xo,t),n(Go,t),n(ti,t),n(ei,t),n(ni,t),n(ii,t),n(ci,t),n(fi,t),n(yi,t),n(hi,t),n(mi,t),n(gi,t),n(wi,t),n(Ai,t),n(Si,t),n(Ii,t),n(_i,t),n(xi,t),n(Ei,t),n(Oi,t),n(Ni,t)}(u);var Bi={},Pi={};Pi.consume=void 0,Pi.consume=function(t,e){return e(t)};var qi={eachAsync:void 0};const Ci=C;qi.eachAsync=function(t,e){return(0,Ci.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 Mi={};Mi.each=void 0,Mi.each=function(t,e){let n=0;for(const r of t)e(r,n),n++};var zi={everyAsync:void 0};const Ri=C;zi.everyAsync=function(t,e){return(0,Ri.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 Ui={};Ui.every=void 0,Ui.every=function(t,e){let n=0;for(const r of t){if(!e(r,n))return!1;n++}return!0};var Di={findAsync:void 0};const Fi=C;Di.findAsync=function(t,e){return(0,Fi.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 Ji={};Ji.find=void 0,Ji.find=function(t,e){let n=0;for(const r of t){if(e(r,n))return r;n++}};var Li={};Li.firstAsync=void 0,Li.firstAsync=async function(t){for await(const e of t)return e};var Vi={};Vi.first=void 0,Vi.first=function(t){for(const e of t)return e};var Wi={};Wi.includesAsync=void 0,Wi.includesAsync=async function(t,e){for await(const n of t)if(n===e)return!0;return!1};var Ki={};Ki.includes=void 0,Ki.includes=function(t,e){for(const n of t)if(n===e)return!0;return!1};var Yi={};Yi.matchAsync=void 0,Yi.matchAsync=async function(t,e){const n=e.length;let r=0;for await(const o of t)if(o===e[r]&&r++,r===n)return!0;return!1};var Hi={};Hi.match=void 0,Hi.match=function(t,e){const n=e.length;let r=0;for(const o of t)if(o===e[r]&&r++,r===n)return!0;return!1};var $i={reduceAsync:void 0};const Qi=C;$i.reduceAsync=function(t,e,n){return(0,Qi.isUndefined)(n)?function(t,e){return(0,Qi.isAsyncIterable)(t)?n(t):r(t);async function n(t){var n;const r=t[Symbol.asyncIterator]();let o;try{let t,a=await i(r),s=1;for(;({value:t,done:o}=await r.next()),!o;)a=await e(a,t,s++);return a}finally{o||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}async function i(t){const e=await t.next();if(e.done)throw o=!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 o;try{let t,a=i(r),s=1;for(;({value:t,done:o}=r.next()),!o;)a=await e(a,t,s++);return a}finally{o||null===(n=r.return)||void 0===n||n.call(r)}function i(t){const e=t.next();if(e.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return e.value}}}(t,e):function(t,e,n){return(0,Qi.isAsyncIterable)(t)?o(t):r(t);async function r(t){let r=n,o=0;for(const n of t)r=await e(r,n,o++);return r}async function o(t){let r=n,o=0;for await(const n of t)r=await e(r,n,o++);return r}}(t,e,n)};var Xi={reduce:void 0};const Gi=C;Xi.reduce=function(t,e,n){return(0,Gi.isUndefined)(n)?function(t,e){var n;const r=t[Symbol.iterator]();let o;try{let t,a=i(r),s=1;for(;({value:t,done:o}=r.next()),!o;)a=e(a,t,s++);return a}finally{o||null===(n=r.return)||void 0===n||n.call(r)}function i(t){const e=t.next();if(e.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return e.value}}(t,e):function(t,e,n){let r=n,o=0;for(const n of t)r=e(r,n,o++);return r}(t,e,n)};var Zi={someAsync:void 0};const ta=C;Zi.someAsync=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))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 ea={};ea.some=void 0,ea.some=function(t,e){let n=0;for(const r of t){if(e(r,n))return!0;n++}return!1};var na={};na.lastAsync=void 0,na.lastAsync=async function(t){var e;const n=t[Symbol.asyncIterator]();let r;try{let t,o;for(;({value:t,done:r}=await n.next()),!r;)o=t;return o}finally{r||await(null===(e=n.return)||void 0===e?void 0:e.call(n))}};var ra={};ra.last=void 0,ra.last=function(t){var e;const n=t[Symbol.iterator]();let r;try{let t,o;for(;({value:t,done:r}=n.next()),!r;)o=t;return o}finally{r||null===(e=n.return)||void 0===e||e.call(n)}};var oa={toArrayAsync:void 0};const ia=Pi;oa.toArrayAsync=function(t){return(0,ia.consume)(t,(async t=>{const e=[];for await(const n of t)e.push(n);return e}))};var aa={toArray:void 0};const sa=Pi;aa.toArray=function(t){return(0,sa.consume)(t,(t=>Array.from(t)))};var ca={toSetAsync:void 0};const ua=Pi;ca.toSetAsync=function(t){return(0,ua.consume)(t,(async t=>{const e=new Set;for await(const n of t)e.add(n);return e}))};var la={toSet:void 0};const fa=Pi;la.toSet=function(t){return(0,fa.consume)(t,(t=>new Set(t)))},function(t){var e=i&&i.__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=i&&i.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};n(Pi,t),n(qi,t),n(Mi,t),n(zi,t),n(Ui,t),n(Di,t),n(Ji,t),n(Li,t),n(Vi,t),n(Wi,t),n(Ki,t),n(Yi,t),n(Hi,t),n($i,t),n(Xi,t),n(Zi,t),n(ea,t),n(na,t),n(ra,t),n(oa,t),n(aa,t),n(ca,t),n(la,t)}(Bi),function(t){var e=i&&i.__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=i&&i.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};n(u,t),n(Bi,t)}(c);var da={},ya={};ya.traverseErrorPrototypeChain=void 0,ya.traverseErrorPrototypeChain=function*(t){let e=t;for(;(e=Object.getPrototypeOf(e))&&(yield e,e!==Error.prototype););},da.getErrorNames=void 0;const ha=C,va=ya;da.getErrorNames=function*(t){var e;if((0,ha.isError)(t))for(const n of(0,va.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 pa={isSerializableError:void 0};const ma=C;pa.isSerializableError=function(t){return(0,ma.isObject)(t)&&(0,ma.isString)(t.name)&&(0,ma.isString)(t.message)&&((0,ma.isString)(t.stack)||(0,ma.isNull)(t.stack))&&(0,ma.isArray)(t.ancestors)&&t.ancestors.every(ma.isString)},s.CustomError=void 0;const ba=c,ga=da,wa=C,Aa=pa;class Sa extends Error{get name(){var t,e;return null!==(e=null!==(t=(0,ba.first)((0,ga.getErrorNames)(this)))&&void 0!==t?t:Sa.name)&&void 0!==e?e:"CustomError"}static[Symbol.hasInstance](t){var e;if((0,wa.isError)(t)||(0,Aa.isSerializableError)(t)){const n=[null!==(e=this.prototype.constructor.name)&&void 0!==e?e:this.name,...(0,ga.getErrorNames)(this.prototype)].reverse(),r=(0,ba.toArray)((0,ga.getErrorNames)(t)).reverse();return n.every(((t,e)=>t===r[e]))}return!1}}s.CustomError=Sa;var Ia={AssertionError:void 0};const _a=s;class Ta extends _a.CustomError{}Ia.AssertionError=Ta;var xa={normalize:void 0};const Ea=da,Oa=c;xa.normalize=function(t){var e;const[n,...r]=(0,Oa.toArray)((0,Ea.getErrorNames)(t));return{name:n,ancestors:r,message:t.message,stack:null!==(e=t.stack)&&void 0!==e?e:null}};var ja={},ka={},Na={};Na.pass=void 0,Na.pass=function(){},function(t){var e=i&&i.__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]});(i&&i.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)})(Na,t)}(ka),ja.hydrate=void 0;const Ba=ka;function Pa(t,e){const n=function(){(0,Ba.pass)()};return(n.prototype=Object.create(t.prototype)).constructor=n,Object.defineProperty(n,"name",{value:e}),n}ja.hydrate=function(t){var e;const n=[t.name,...t.ancestors].slice(0,-1).reverse();let r=Error;for(const t of n)r=Pa(r,t);const o=new r;return o.name=t.name,o.message=t.message,o.stack=null!==(e=t.stack)&&void 0!==e?e:void 0,o};var qa={assert:void 0};const Ca=Ia;qa.assert=function(t,e){if(!t)throw new Ca.AssertionError(e)},function(t){var e=i&&i.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(e,n);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,o)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),n=i&&i.__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(Ia,t),n(pa,t),n(xa,t),n(ja,t),n(qa,t),n(da,t),n(ya,t)}(a);var Ma={},za={},Ra={},Ua={},Da={};Da.go=void 0,Da.go=function(t){return t()},function(t){var e=i&&i.__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]});(i&&i.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)})(Da,t)}(Ua),Ra.chunkAsync=void 0;const Fa=Ua,Ja=a;Ra.chunkAsync=function(t,e){return(0,Ja.assert)(Number.isInteger(e),"The parameter size must be an integer"),(0,Ja.assert)(e>0,"The parameter size must be greater than 0"),(0,Fa.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 La={},Va={},Wa={};function Ka(t){return Array.isArray(t)}Wa.isntEmptyArray=Wa.isEmptyArray=Wa.isntArray=Wa.isArray=void 0,Wa.isArray=Ka,Wa.isntArray=function(t){return!Ka(t)},Wa.isEmptyArray=function(t){return 0===t.length},Wa.isntEmptyArray=function(t){return 0!==t.length};var Ya={},Ha={};function $a(t){return null===t}Ha.isntNull=Ha.isNull=void 0,Ha.isNull=$a,Ha.isntNull=function(t){return!$a(t)};var Qa={};function Xa(t){return void 0===t}Qa.isntUndefined=Qa.isUndefined=void 0,Qa.isUndefined=Xa,Qa.isntUndefined=function(t){return!Xa(t)};var Ga={};function Za(t){return"function"==typeof t}Ga.isntFunction=Ga.isFunction=void 0,Ga.isFunction=Za,Ga.isntFunction=function(t){return!Za(t)},Ya.isntAsyncIterable=Ya.isAsyncIterable=void 0;const ts=Ha,es=Qa,ns=Ga;function rs(t){return(0,ts.isntNull)(t)&&(0,es.isntUndefined)(t)&&(0,ns.isFunction)(t[Symbol.asyncIterator])}Ya.isAsyncIterable=rs,Ya.isntAsyncIterable=function(t){return!rs(t)};var os={};function is(t){return"bigint"==typeof t}os.isntBigInt=os.isBigInt=void 0,os.isBigInt=is,os.isntBigInt=function(t){return!is(t)};var as={};function ss(t){return"boolean"==typeof t}as.isntBoolean=as.isBoolean=void 0,as.isBoolean=ss,as.isntBoolean=function(t){return!ss(t)};var cs={},us={};function ls(t){return"string"==typeof t}us.isntString=us.isString=void 0,us.isString=ls,us.isntString=function(t){return!ls(t)},cs.isntChar=cs.isChar=void 0;const fs=us;function ds(t){return(0,fs.isString)(t)&&1===t.length}cs.isChar=ds,cs.isntChar=function(t){return!ds(t)};var ys={};function hs(t){return t instanceof Date}ys.isntDate=ys.isDate=void 0,ys.isDate=hs,ys.isntDate=function(t){return!hs(t)};var vs={};vs.inEnum=void 0,vs.inEnum=function(t,e){return Object.values(e).includes(t)};var ps={};function ms(t){return t instanceof Error}ps.isntError=ps.isError=void 0,ps.isError=ms,ps.isntError=function(t){return!ms(t)};var bs={};function gs(t){return!t}bs.isntFalsy=bs.isFalsy=void 0,bs.isFalsy=gs,bs.isntFalsy=function(t){return!gs(t)};var ws={};ws.isntIterable=ws.isIterable=void 0;const As=Ha,Ss=Qa,Is=Ga;function _s(t){return(0,As.isntNull)(t)&&(0,Ss.isntUndefined)(t)&&(0,Is.isFunction)(t[Symbol.iterator])}ws.isIterable=_s,ws.isntIterable=function(t){return!_s(t)};var Ts={},xs={};function Es(t){return"number"==typeof t}function Os(t){return Number.isNaN(t)}xs.isntNaN=xs.isNaN=xs.isNegativeInfinity=xs.isPositiveInfinity=xs.isFinite=xs.isntNumber=xs.isNumber=void 0,xs.isNumber=Es,xs.isntNumber=function(t){return!Es(t)},xs.isFinite=function(t){return Number.isFinite(t)},xs.isPositiveInfinity=function(t){return t===1/0},xs.isNegativeInfinity=function(t){return t===-1/0},xs.isNaN=Os,xs.isntNaN=function(t){return!Os(t)};var js={},ks="object"==typeof i&&i&&i.Object===Object&&i,Ns="object"==typeof self&&self&&self.Object===Object&&self,Bs=(ks||Ns||Function("return this")()).Symbol,Ps=Bs,qs=Object.prototype,Cs=qs.hasOwnProperty,Ms=qs.toString,zs=Ps?Ps.toStringTag:void 0;var Rs=function(t){var e=Cs.call(t,zs),n=t[zs];try{t[zs]=void 0;var r=!0}catch(t){}var o=Ms.call(t);return r&&(e?t[zs]=n:delete t[zs]),o},Us=Object.prototype.toString;var Ds=Rs,Fs=function(t){return Us.call(t)},Js=Bs?Bs.toStringTag:void 0;var Ls=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Js&&Js in Object(t)?Ds(t):Fs(t)};var Vs=function(t,e){return function(n){return t(e(n))}}(Object.getPrototypeOf,Object);var Ws=Ls,Ks=Vs,Ys=function(t){return null!=t&&"object"==typeof t},Hs=Function.prototype,$s=Object.prototype,Qs=Hs.toString,Xs=$s.hasOwnProperty,Gs=Qs.call(Object);var Zs=function(t){if(!Ys(t)||"[object Object]"!=Ws(t))return!1;var e=Ks(t);if(null===e)return!0;var n=Xs.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Qs.call(n)==Gs},tc=i&&i.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};js.isntEmptyObject=js.isEmptyObject=js.isntPlainObject=js.isPlainObject=js.isntObject=js.isObject=void 0;const ec=tc(Zs);function nc(t){return null!==t&&"object"==typeof t}function rc(t){return(0,ec.default)(t)}js.isObject=nc,js.isntObject=function(t){return!nc(t)},js.isPlainObject=rc,js.isntPlainObject=function(t){return!rc(t)},js.isEmptyObject=function(t){return 0===Object.keys(t).length},js.isntEmptyObject=function(t){return 0!==Object.keys(t).length},Ts.isntJsonable=Ts.isJsonable=Ts.isntJson=Ts.isJson=void 0;const oc=Ha,ic=as,ac=us,sc=xs,cc=Wa,uc=js;function lc(t){return(0,oc.isNull)(t)||(0,ic.isBoolean)(t)||(0,ac.isString)(t)||(0,sc.isNumber)(t)||(0,cc.isArray)(t)&&t.every(lc)||(0,uc.isPlainObject)(t)&&Object.values(t).every(lc)}Ts.isJson=lc,Ts.isntJson=function(t){return!lc(t)},Ts.isJsonable=function(t){try{return JSON.stringify(t),!0}catch(t){return!1}},Ts.isntJsonable=function t(e){return!t()};var fc={};fc.isPromiseLike=fc.isntPromiseLike=fc.isntPromise=fc.isPromise=void 0;const dc=js,yc=Ga;function hc(t){return t instanceof Promise}function vc(t){return(0,dc.isObject)(t)&&(0,yc.isFunction)(t.then)}fc.isPromise=hc,fc.isntPromise=function(t){return!hc(t)},fc.isntPromiseLike=function(t){return!vc(t)},fc.isPromiseLike=vc;var pc={};pc.isAbsoluteURL=void 0,pc.isAbsoluteURL=function(t){try{return new URL(t),!0}catch(t){return!1}},function(t){var e=i&&i.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(e,n);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,o)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),n=i&&i.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};n(Wa,t),n(Ya,t),n(os,t),n(as,t),n(cs,t),n(ys,t),n(vs,t),n(ps,t),n(bs,t),n(Ga,t),n(ws,t),n(Ts,t),n(Ha,t),n(xs,t),n(js,t),n(fc,t),n(us,t),n(Qa,t),n(pc,t)}(Va),La.chunkByAsync=void 0;const mc=Va;La.chunkByAsync=function(t,e){return(0,mc.isAsyncIterable)(t)?async function*(t){let n=[],r=0;for await(const o of t)n.push(o),await e(o,r)&&(yield n,n=[]),r++;n.length&&(yield n)}(t):async function*(t){let n=[],r=0;for(const o of t)n.push(o),await e(o,r)&&(yield n,n=[]),r++;n.length&&(yield n)}(t)};var bc={};bc.chunkBy=void 0,bc.chunkBy=function*(t,e){let n=[],r=0;for(const o of t)n.push(o),e(o,r)&&(yield n,n=[]),r++;n.length&&(yield n)};var gc={chunk:void 0};const wc=Ua,Ac=a;gc.chunk=function(t,e){return(0,Ac.assert)(Number.isInteger(e),"The parameter size must be an integer"),(0,Ac.assert)(e>0,"The parameter size must be greater than 0"),(0,wc.go)((function*(){let n=[];for(const r of t)n.push(r),n.length>=e&&(yield n,n=[]);n.length&&(yield n)}))};var Sc={concatAsync:void 0};const Ic=Va,_c=Ua;Sc.concatAsync=function(t,...e){return(0,_c.go)((async function*(){for(const n of[t,...e])if((0,Ic.isAsyncIterable)(n))for await(const t of n)yield t;else for(const t of n)yield t}))};var Tc={concat:void 0};const xc=Ua;Tc.concat=function(t,...e){return(0,xc.go)((function*(){for(const n of[t,...e])yield*n}))};var Ec={},Oc={};Oc.copyIterable=Oc.copyAsyncIterable=void 0,Oc.copyAsyncIterable=async function*(t){for await(const e of t)yield e},Oc.copyIterable=function*(t){for(const e of t)yield e},Ec.dropAsync=void 0;const jc=Ua,kc=Oc,Nc=a;Ec.dropAsync=function(t,e){return(0,Nc.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Nc.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,kc.copyAsyncIterable)(t):(0,jc.go)((async function*(){var n;const r=t[Symbol.asyncIterator]();let o;try{let t;for(;!(({value:t,done:o}=await r.next()),o||e<=0);)e--;for(;!o;)yield t,({value:t,done:o}=await r.next())}finally{o||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}}))};var Bc={dropRightAsync:void 0};const Pc=Ua,qc=Oc,Cc=a;Bc.dropRightAsync=function(t,e){return(0,Cc.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Cc.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,qc.copyAsyncIterable)(t):(0,Pc.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 Mc={dropRight:void 0};const zc=Ua,Rc=Oc,Uc=a;Mc.dropRight=function(t,e){return(0,Uc.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Uc.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,Rc.copyIterable)(t):(0,zc.go)((function*(){const n=Array.from(t);yield*n.slice(0,-e)}))};var Dc={dropUntilAsync:void 0};const Fc=Va;Dc.dropUntilAsync=function(t,e){return(0,Fc.isAsyncIterable)(t)?async function*(t){var n;const r=t[Symbol.asyncIterator]();let o;try{let t,i=0;for(;!(({value:t,done:o}=await r.next()),o||await e(t,i++)););for(;!o;)yield t,({value:t,done:o}=await r.next())}finally{o||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 o;try{let t,i=0;for(;!(({value:t,done:o}=r.next()),o||await e(t,i++)););for(;!o;)yield t,({value:t,done:o}=r.next())}finally{o||null===(n=r.return)||void 0===n||n.call(r)}}(t)};var Jc={};Jc.dropUntil=void 0,Jc.dropUntil=function*(t,e){var n;const r=t[Symbol.iterator]();let o;try{let t,i=0;for(;!(({value:t,done:o}=r.next()),o||e(t,i++)););for(;!o;)yield t,({value:t,done:o}=r.next())}finally{o||null===(n=r.return)||void 0===n||n.call(r)}};var Lc={drop:void 0};const Vc=Ua,Wc=Oc,Kc=a;Lc.drop=function(t,e){return(0,Kc.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Kc.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,Wc.copyIterable)(t):(0,Vc.go)((function*(){var n;const r=t[Symbol.iterator]();let o;try{let t;for(;!(({value:t,done:o}=r.next()),o||e<=0);)e--;for(;!o;)yield t,({value:t,done:o}=r.next())}finally{o||null===(n=r.return)||void 0===n||n.call(r)}}))};var Yc={filterAsync:void 0};const Hc=Va;Yc.filterAsync=function(t,e){return(0,Hc.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 $c={};$c.filter=void 0,$c.filter=function*(t,e){let n=0;for(const r of t)e(r,n)&&(yield r),n++};var Qc={},Xc={},Gc={flattenByAsync:void 0};const Zc=Va;function tu(t){return(0,Zc.isIterable)(t)&&(0,Zc.isntChar)(t)}Gc.flattenByAsync=function(t,e){return(0,Zc.isAsyncIterable)(t)?async function*(t){const r=1;for await(const o of t)tu(o)&&await e(o,r)?yield*n(o,r+1):yield o}(t):function(t){return n(t,1)}(t);async function*n(t,r){for(const o of t)tu(o)&&await e(o,r)?yield*n(o,r+1):yield o}},Xc.flattenDeepAsync=void 0;const eu=Gc,nu=a;Xc.flattenDeepAsync=function(t,e=1/0){return(0,nu.assert)(e===1/0||Number.isInteger(e),"The parameter depth must be an integer"),(0,nu.assert)(e>=0,"The parameter depth must be greater than or equal to 0"),(0,eu.flattenByAsync)(t,((t,n)=>n<=e))},Qc.flattenAsync=void 0;const ru=Xc;Qc.flattenAsync=function(t){return(0,ru.flattenDeepAsync)(t,1)};var ou={flattenBy:void 0};const iu=Va;ou.flattenBy=function(t,e){return function*t(n,r){for(const i of n)o=i,(0,iu.isIterable)(o)&&(0,iu.isntChar)(o)&&e(i,r)?yield*t(i,r+1):yield i;var o}(t,1)};var au={flattenDeep:void 0};const su=ou,cu=a;au.flattenDeep=function(t,e=1/0){return(0,cu.assert)(e===1/0||Number.isInteger(e),"The parameter depth must be an integer"),(0,cu.assert)(e>=0,"The parameter depth must be greater than or equal to 0"),(0,su.flattenBy)(t,((t,n)=>n<=e))};var uu={flatten:void 0};const lu=au;uu.flatten=function(t){return(0,lu.flattenDeep)(t,1)};var fu={mapAsync:void 0};const du=Va;fu.mapAsync=function(t,e){return(0,du.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 yu={};yu.map=void 0,yu.map=function*(t,e){let n=0;for(const r of t)yield e(r,n),n++};var hu={repeatAsync:void 0};const vu=Ua,pu=a;hu.repeatAsync=function(t,e){return(0,pu.assert)(e===1/0||Number.isInteger(e),"The parameter times must be an integer"),(0,pu.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,vu.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 mu={repeat:void 0};const bu=Ua,gu=a;mu.repeat=function(t,e){return(0,gu.assert)(e===1/0||Number.isInteger(e),"The parameter times must be an integer"),(0,gu.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,bu.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 wu={sliceAsync:void 0};const Au=Ua,Su=a;wu.sliceAsync=function(t,e,n=1/0){return(0,Su.assert)(Number.isInteger(e),"The parameter start must be an integer"),(0,Su.assert)(e>=0,"The parameter start must be greater than or equal to 0"),(0,Su.assert)(Number.isInteger(n),"The parameter end must be an integer"),(0,Su.assert)(n>=e,"The parameter end must be greater than or equal to start"),(0,Au.go)((async function*(){let r=0;for await(const o of t){if(r>=n)break;r>=e&&(yield o),r++}}))};var Iu={slice:void 0};const _u=Ua,Tu=a;Iu.slice=function(t,e,n=1/0){return(0,Tu.assert)(Number.isInteger(e),"The parameter start must be an integer"),(0,Tu.assert)(e>=0,"The parameter start must be greater than or equal to 0"),(0,Tu.assert)(Number.isInteger(n),"The parameter end must be an integer"),(0,Tu.assert)(n>=e,"The parameter end must be greater than or equal to start"),(0,_u.go)((function*(){let r=0;for(const o of t){if(r>=n)break;r>=e&&(yield o),r++}}))};var xu={};xu.splitAsync=void 0,xu.splitAsync=async function*(t,e){let n=[];for await(const r of t)r===e?(yield n,n=[]):n.push(r);yield n};var Eu={splitByAsync:void 0};const Ou=Va;Eu.splitByAsync=function(t,e){return(0,Ou.isAsyncIterable)(t)?async function*(t){let n=[],r=0;for await(const o of t)await e(o,r)?(yield n,n=[]):n.push(o),r++;yield n}(t):async function*(t){let n=[],r=0;for(const o of t)await e(o,r)?(yield n,n=[]):n.push(o),r++;yield n}(t)};var ju={};ju.splitBy=void 0,ju.splitBy=function*(t,e){let n=[],r=0;for(const o of t)e(o,r)?(yield n,n=[]):n.push(o),r++;yield n};var ku={};ku.split=void 0,ku.split=function*(t,e){let n=[];for(const r of t)r===e?(yield n,n=[]):n.push(r);yield n};var Nu={takeAsync:void 0};const Bu=Ua,Pu=a;Nu.takeAsync=function(t,e){return(0,Pu.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Pu.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,Bu.go)((async function*(){if(0!==e)for await(const n of t)if(yield n,0===--e)break}))};var qu={takeRightAsync:void 0};const Cu=Ua,Mu=a;qu.takeRightAsync=function(t,e){return(0,Mu.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Mu.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,Cu.go)((async function*(){var n;const r=t[Symbol.asyncIterator]();let o;try{const t=[];let i;for(;({value:i,done:o}=await r.next()),!o;)t.push(i),t.length>e&&t.shift();yield*t}finally{o||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}}))};var zu={takeRight:void 0};const Ru=Ua,Uu=a;zu.takeRight=function(t,e){return(0,Uu.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Uu.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,Ru.go)((function*(){var n;const r=t[Symbol.iterator]();let o;try{const t=[];let i;for(;({value:i,done:o}=r.next()),!o;)t.push(i),t.length>e&&t.shift();yield*t}finally{o||null===(n=r.return)||void 0===n||n.call(r)}}))};var Du={takeUntilAsync:void 0};const Fu=Va;Du.takeUntilAsync=function(t,e){return(0,Fu.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 Ju={};Ju.takeUntil=void 0,Ju.takeUntil=function*(t,e){let n=0;for(const r of t){if(e(r,n))break;yield r,n++}};var Lu={take:void 0};const Vu=Ua,Wu=a;Lu.take=function(t,e){return(0,Wu.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Wu.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,Vu.go)((function*(){if(0!==e)for(const n of t)if(yield n,0===--e)break}))};var Ku={tapAsync:void 0};const Yu=Va;Ku.tapAsync=function(t,e){return(0,Yu.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 Hu={};Hu.tap=void 0,Hu.tap=function*(t,e){let n=0;for(const r of t)e(r,n),yield r,n++};var $u={};$u.toAsyncIterable=void 0,$u.toAsyncIterable=async function*(t){for(const e of t)yield e};var Qu={};Qu.transformAsync=void 0,Qu.transformAsync=async function*(t,e){yield*e(t)};var Xu={};Xu.transform=void 0,Xu.transform=function*(t,e){yield*e(t)};var Gu={};Gu.uniqAsync=void 0,Gu.uniqAsync=async function*(t){const e=new Set;for await(const n of t)e.has(n)||(yield n,e.add(n))};var Zu={uniqByAsync:void 0};const tl=Va;Zu.uniqByAsync=function(t,e){return(0,tl.isAsyncIterable)(t)?async function*(t){const n=new Set;let r=0;for await(const o of t){const t=await e(o,r);n.has(t)||(yield o,n.add(t)),r++}}(t):async function*(t){const n=new Set;let r=0;for(const o of t){const t=await e(o,r);n.has(t)||(yield o,n.add(t)),r++}}(t)};var el={};el.uniqBy=void 0,el.uniqBy=function*(t,e){const n=new Set;let r=0;for(const o of t){const t=e(o,r);n.has(t)||(yield o,n.add(t)),r++}};var nl={};nl.uniq=void 0,nl.uniq=function*(t){const e=new Set;for(const n of t)e.has(n)||(yield n,e.add(n))};var rl={zipAsync:void 0};const ol=Va;var il;!function(t){t[t.Sync=0]="Sync",t[t.Async=1]="Async"}(il||(il={})),rl.zipAsync=function(t,...e){return async function*(...t){var e,n,r,o;const i=t.length,a=t.map((t=>(0,ol.isAsyncIterable)(t)?[il.Async,t[Symbol.asyncIterator]()]:[il.Sync,t[Symbol.iterator]()])),s=a.map((()=>!1));try{for(;;){const t=new Array(i);for(let e=0;e<i;e++){const[n,r]=a[e];let o;if(o=n===il.Async?await r.next():r.next(),o.done)return void(s[e]=!0);t[e]=o.value}yield t}}finally{const t=a.filter(((t,e)=>!s[e]));for(const[i,a]of t)i===il.Async?await(null===(n=(e=a).return)||void 0===n?void 0:n.call(e)):null===(o=(r=a).return)||void 0===o||o.call(r)}}(t,...e)};var al={};al.zip=void 0,al.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 o=0;o<e;o++){const{value:e,done:i}=n[o].next();if(i)return void(r[o]=!0);t[o]=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=i&&i.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(e,n);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,o)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),n=i&&i.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};n(Ra,t),n(La,t),n(bc,t),n(gc,t),n(Sc,t),n(Tc,t),n(Ec,t),n(Bc,t),n(Mc,t),n(Dc,t),n(Jc,t),n(Lc,t),n(Yc,t),n($c,t),n(Qc,t),n(Gc,t),n(ou,t),n(Xc,t),n(au,t),n(uu,t),n(fu,t),n(yu,t),n(hu,t),n(mu,t),n(wu,t),n(Iu,t),n(xu,t),n(Eu,t),n(ju,t),n(ku,t),n(Nu,t),n(qu,t),n(zu,t),n(Du,t),n(Ju,t),n(Lu,t),n(Ku,t),n(Hu,t),n($u,t),n(Qu,t),n(Xu,t),n(Gu,t),n(Zu,t),n(el,t),n(nl,t),n(rl,t),n(al,t)}(za);var sl={},cl={};cl.consume=void 0,cl.consume=function(t,e){return e(t)};var ul={eachAsync:void 0};const ll=Va;ul.eachAsync=function(t,e){return(0,ll.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 fl={};fl.each=void 0,fl.each=function(t,e){let n=0;for(const r of t)e(r,n),n++};var dl={everyAsync:void 0};const yl=Va;dl.everyAsync=function(t,e){return(0,yl.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 hl={};hl.every=void 0,hl.every=function(t,e){let n=0;for(const r of t){if(!e(r,n))return!1;n++}return!0};var vl={findAsync:void 0};const pl=Va;vl.findAsync=function(t,e){return(0,pl.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 ml={};ml.find=void 0,ml.find=function(t,e){let n=0;for(const r of t){if(e(r,n))return r;n++}};var bl={};bl.firstAsync=void 0,bl.firstAsync=async function(t){for await(const e of t)return e};var gl={};gl.first=void 0,gl.first=function(t){for(const e of t)return e};var wl={};wl.includesAsync=void 0,wl.includesAsync=async function(t,e){for await(const n of t)if(n===e)return!0;return!1};var Al={};Al.includes=void 0,Al.includes=function(t,e){for(const n of t)if(n===e)return!0;return!1};var Sl={};Sl.matchAsync=void 0,Sl.matchAsync=async function(t,e){const n=e.length;let r=0;for await(const o of t)if(o===e[r]&&r++,r===n)return!0;return!1};var Il={};Il.match=void 0,Il.match=function(t,e){const n=e.length;let r=0;for(const o of t)if(o===e[r]&&r++,r===n)return!0;return!1};var _l={reduceAsync:void 0};const Tl=Va;_l.reduceAsync=function(t,e,n){return(0,Tl.isUndefined)(n)?function(t,e){return(0,Tl.isAsyncIterable)(t)?n(t):r(t);async function n(t){var n;const r=t[Symbol.asyncIterator]();let o;try{let t,a=await i(r),s=1;for(;({value:t,done:o}=await r.next()),!o;)a=await e(a,t,s++);return a}finally{o||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}async function i(t){const e=await t.next();if(e.done)throw o=!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 o;try{let t,a=i(r),s=1;for(;({value:t,done:o}=r.next()),!o;)a=await e(a,t,s++);return a}finally{o||null===(n=r.return)||void 0===n||n.call(r)}function i(t){const e=t.next();if(e.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return e.value}}}(t,e):function(t,e,n){return(0,Tl.isAsyncIterable)(t)?o(t):r(t);async function r(t){let r=n,o=0;for(const n of t)r=await e(r,n,o++);return r}async function o(t){let r=n,o=0;for await(const n of t)r=await e(r,n,o++);return r}}(t,e,n)};var xl={reduce:void 0};const El=Va;xl.reduce=function(t,e,n){return(0,El.isUndefined)(n)?function(t,e){var n;const r=t[Symbol.iterator]();let o;try{let t,a=i(r),s=1;for(;({value:t,done:o}=r.next()),!o;)a=e(a,t,s++);return a}finally{o||null===(n=r.return)||void 0===n||n.call(r)}function i(t){const e=t.next();if(e.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return e.value}}(t,e):function(t,e,n){let r=n,o=0;for(const n of t)r=e(r,n,o++);return r}(t,e,n)};var Ol={someAsync:void 0};const jl=Va;Ol.someAsync=function(t,e){return(0,jl.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 kl={};kl.some=void 0,kl.some=function(t,e){let n=0;for(const r of t){if(e(r,n))return!0;n++}return!1};var Nl={};Nl.lastAsync=void 0,Nl.lastAsync=async function(t){var e;const n=t[Symbol.asyncIterator]();let r;try{let t,o;for(;({value:t,done:r}=await n.next()),!r;)o=t;return o}finally{r||await(null===(e=n.return)||void 0===e?void 0:e.call(n))}};var Bl={};Bl.last=void 0,Bl.last=function(t){var e;const n=t[Symbol.iterator]();let r;try{let t,o;for(;({value:t,done:r}=n.next()),!r;)o=t;return o}finally{r||null===(e=n.return)||void 0===e||e.call(n)}};var Pl={toArrayAsync:void 0};const ql=cl;Pl.toArrayAsync=function(t){return(0,ql.consume)(t,(async t=>{const e=[];for await(const n of t)e.push(n);return e}))};var Cl={toArray:void 0};const Ml=cl;Cl.toArray=function(t){return(0,Ml.consume)(t,(t=>Array.from(t)))};var zl={toSetAsync:void 0};const Rl=cl;zl.toSetAsync=function(t){return(0,Rl.consume)(t,(async t=>{const e=new Set;for await(const n of t)e.add(n);return e}))};var Ul={toSet:void 0};const Dl=cl;Ul.toSet=function(t){return(0,Dl.consume)(t,(t=>new Set(t)))};var Fl={};Fl.count=void 0,Fl.count=function(t){let e=0;for(const n of t)e++;return e};var Jl={};Jl.countAsync=void 0,Jl.countAsync=async function(t){let e=0;for await(const n of t)e++;return e},function(t){var e=i&&i.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(e,n);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,o)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),n=i&&i.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};n(cl,t),n(ul,t),n(fl,t),n(dl,t),n(hl,t),n(vl,t),n(ml,t),n(bl,t),n(gl,t),n(wl,t),n(Al,t),n(Sl,t),n(Il,t),n(_l,t),n(xl,t),n(Ol,t),n(kl,t),n(Nl,t),n(Bl,t),n(Pl,t),n(Cl,t),n(zl,t),n(Ul,t),n(Fl,t),n(Jl,t)}(sl),function(t){var e=i&&i.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(e,n);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,o)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),n=i&&i.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};n(za,t),n(sl,t)}(Ma);class Ll{constructor(t){this.map=new Map,a.assert(Number.isInteger(t),"The parameter limit must be an integer"),a.assert(t>0,"The parameter limit must be a positive value"),this.limit=t}get[Symbol.toStringTag](){return this.constructor.name}get size(){return this.map.size}set(t,e){return this.map.has(t)?this.updateItem(t,e):(this.map.size===this.limit&&this.map.delete(this.getColdestKey()),this.map.set(t,e)),this}has(t){return this.map.has(t)}get(t){if(!this.has(t))return;const e=this.map.get(t);return this.updateItem(t,e),e}delete(t){return this.map.delete(t)}clear(){this.map.clear()}updateItem(t,e){this.map.delete(t),this.map.set(t,e)}getColdestKey(){return Ma.first(this.map.keys())}}var Vl={},Wl={},Kl={},Yl={};Yl.random=void 0,Yl.random=function(t,e){return Math.random()*(e-t)+t};var Hl={};Hl.randomInt=void 0,Hl.randomInt=function(t,e){return t=Math.ceil(t),e=Math.floor(e),Math.floor(Math.random()*(e-t))+t};var $l={};$l.randomIntInclusive=void 0,$l.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=i&&i.__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=i&&i.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};n(Yl,t),n(Hl,t),n($l,t)}(Kl),Wl.calculateExponentialBackoffTimeout=void 0;const Ql=Kl;Wl.calculateExponentialBackoffTimeout=function({baseTimeout:t,retries:e,maxTimeout:n=1/0,factor:r=2,jitter:o=!0}){const i=Math.min(r**e*t,n);return o?(0,Ql.randomIntInclusive)(0,i):i};var Xl={};Xl.setTimeout=void 0,Xl.setTimeout=function(t,e){const n=globalThis.setTimeout(e,t);return()=>clearTimeout(n)};var Gl={setSchedule:void 0};const Zl=Xl;Gl.setSchedule=function(t,e){const n=t-Date.now();return(0,Zl.setTimeout)(n,e)};var tf={};tf.setInterval=void 0,tf.setInterval=function(t,e){const n=globalThis.setInterval(e,t);return()=>clearInterval(n)};var ef={setImmediate:void 0};const nf=Xl;ef.setImmediate=function(t){if(globalThis.setImmediate){const e=globalThis.setImmediate(t);return()=>clearImmediate(e)}return(0,nf.setTimeout)(0,t)};var rf={setTimeoutLoop:void 0};const of=Xl;rf.setTimeoutLoop=function(t,e){let n=!1,r=(0,of.setTimeout)(t,(async function o(){await e(),n||(r=(0,of.setTimeout)(t,o))}));return()=>{n=!0,r()}};var af={setDynamicTimeoutLoop:void 0};const sf=Xl;af.setDynamicTimeoutLoop=function(t,e){let n=!1,r=(0,sf.setTimeout)(t,(async function o(){const i=Date.now();await e();const a=Date.now()-i;n||(r=(0,sf.setTimeout)(Math.max(t-a,0),o))}));return()=>{n=!0,r()}},function(t){var e=i&&i.__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=i&&i.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};n(Wl,t),n(Xl,t),n(Gl,t),n(tf,t),n(ef,t),n(rf,t),n(af,t)}(Vl);class cf{constructor(){this.map=new Map,this.itemMetadataSortedByExpirationTime=[]}get[Symbol.toStringTag](){return this.constructor.name}get size(){return this.map.size}set(t,e,n){return this.map.set(t,e),this.removeItemMetadata(t),this.addItemMetadata(t,Date.now()+n),this}has(t){return this.map.has(t)}get(t){return this.map.get(t)}delete(t){const e=this.map.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;this.map.clear(),null===(t=this.cancelClearTimeout)||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=>this.map.delete(t.key)))}rescheduleClearTimeout(){var t;if(null===(t=this.cancelClearTimeout)||void 0===t||t.call(this),this.itemMetadataSortedByExpirationTime.length>0){const t=this.itemMetadataSortedByExpirationTime[0];if(Number.isFinite(t.expirationTime)){const e=Vl.setSchedule(t.expirationTime,(()=>{this.clearExpiredItems(Date.now()),this.rescheduleClearTimeout()}));this.cancelClearTimeout=()=>{e(),this.cancelClearTimeout=void 0}}}}}class uf{constructor(t){this.map=new Map,this.itemMetadataSortedByExpirationTime=[],a.assert(Number.isInteger(t),"The parameter limit must be an integer"),a.assert(t>0,"The parameter limit must be a positive value"),this.limit=t}get[Symbol.toStringTag](){return this.constructor.name}get size(){return this.map.size}set(t,e,n){return this.map.has(t)?(this.updateItem(t,e),this.removeItemMetadata(t),this.addItemMetadata(t,Date.now()+n)):(this.map.size===this.limit&&this.map.delete(this.getColdestKey()),this.map.set(t,e),this.addItemMetadata(t,Date.now()+n)),this}has(t){return this.map.has(t)}get(t){if(this.has(t)){const e=this.map.get(t);return this.updateItem(t,e),e}}delete(t){const e=this.map.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;this.map.clear(),null===(t=this.cancelClearTimeout)||void 0===t||t.call(this),this.itemMetadataSortedByExpirationTime=[]}updateItem(t,e){this.map.delete(t),this.map.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=>this.map.delete(t.key)))}rescheduleClearTimeout(){var t;if(null===(t=this.cancelClearTimeout)||void 0===t||t.call(this),this.itemMetadataSortedByExpirationTime.length>0){const t=this.itemMetadataSortedByExpirationTime[0];if(Number.isFinite(t.expirationTime)){const e=Vl.setSchedule(t.expirationTime,(()=>{this.clearExpiredItems(Date.now()),this.rescheduleClearTimeout()}));this.cancelClearTimeout=()=>{e(),this.cancelClearTimeout=void 0}}}}getColdestKey(){return Ma.first(this.map.keys())}}class lf{constructor(t){this.value=t,this.children=new Map}}class ff{constructor(){this.root=new lf}get[Symbol.toStringTag](){return this.constructor.name}*entries(){yield*function*t(e,n){for(const[r,o]of e.children){const e=[...n,r];Va.isntUndefined(o.value)&&(yield[e,o.value]),yield*t(o,e)}}(this.root,[])}keys(){return Ma.map(this.entries(),(([t])=>t))}values(){return Ma.map(this.entries(),(([t,e])=>e))}set(t,e){let n=this.root;for(const e of t)n.children.has(e)||n.children.set(e,new lf),n=n.children.get(e);return n.value=e,this}has(t){let e=this.root;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=this.root;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=this.root;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 Ma.toArray(Ma.zip(t,e)).reverse())if(r.children.delete(n),0!==r.children.size)break;return!0}}class df{constructor(t,e){this.schema=t,this._state=e}get state(){return this._state}matches(t){return this._state===t}can(t){return t in this.schema[this.state]}send(t){if(!this.can(t))throw new yf(this.state,t);this._state=this.schema[this.state][t]}}class yf extends a.CustomError{constructor(t,e){super(`State ${t} cannot react to event ${e}`)}}
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).Structures={})}(this,(function(t){"use strict";class e{constructor(){this.map=new Map}get[Symbol.toStringTag](){return this.constructor.name}on(t,e){this.map.has(t)||this.map.set(t,new Set);return this.map.get(t).add(n),()=>{if(!this.map.has(t))return;const e=this.map.get(t);e.delete(n),0===e.size&&this.map.delete(t)};function n(...t){e(...t)}}once(t,e){const n=this.on(t,((...t)=>{e(...t),n()}));return n}emit(t,...e){this.map.has(t)&&this.map.get(t).forEach((t=>t(...e)))}}class n{constructor(t){this.hash=t,this.map=new Map}get[Symbol.toStringTag](){return this.constructor.name}get size(){return this.map.size}set(t,e){return this.map.set(this.hash(t),e),this}has(t){return this.map.has(this.hash(t))}get(t){return this.map.get(this.hash(t))}delete(t){return this.map.delete(this.hash(t))}clear(){this.map.clear()}}class r{constructor(t){this.hash=t,this.map=new Map}get[Symbol.toStringTag](){return this.constructor.name}get size(){return this.map.size}[Symbol.iterator](){return this.map.values()}add(t){return this.map.set(this.hash(t),t),this}delete(t){return this.map.delete(this.hash(t))}has(t){return this.map.has(this.hash(t))}clear(){this.map.clear()}values(){return this.map.values()}}class o{constructor(){this.items=[]}get[Symbol.toStringTag](){return this.constructor.name}get size(){return this.items.length}empty(){this.items.length=0}enqueue(...t){this.items.push(...t)}dequeue(){return this.items.shift()}remove(t){let e;for(;(e=this.items.indexOf(t))>=0;)this.items.splice(e,1)}}var i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},a={},s={},c={},u={},l={},f={},d={};d.go=void 0,d.go=function(t){return t()},function(t){var e=i&&i.__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]});(i&&i.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)})(d,t)}(f);var y={},h={},v={},p={},m={},b={},g={CustomError:void 0};class w extends Error{get name(){return this.constructor.name}}g.CustomError=w;var A={ExpectedError:void 0};const I=g;class S extends I.CustomError{}A.ExpectedError=S;var _={AssertionError:void 0};const T=g;class x extends T.CustomError{}_.AssertionError=x;var E={};E.normalize=void 0,E.normalize=function(t){var e;return{name:t.name,message:t.message,stack:null!==(e=t.stack)&&void 0!==e?e:null}};var O={refute:void 0};const j=A;O.refute=function(t,e){if(t)throw new j.ExpectedError(e)};var k={assert:void 0};const N=_;k.assert=function(t,e){if(!t)throw new N.AssertionError(e)},function(t){var e=i&&i.__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=i&&i.__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(A,t),n(_,t),n(E,t),n(O,t),n(k,t)}(b),m.chunkAsync=void 0;const B=f,P=b;m.chunkAsync=function(t,e){return(0,P.assert)(Number.isInteger(e),"The parameter size must be an integer"),(0,P.assert)(e>0,"The parameter size must be greater than 0"),(0,B.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 q={},C={},M={};function z(t){return Array.isArray(t)}M.isntEmptyArray=M.isEmptyArray=M.isntArray=M.isArray=void 0,M.isArray=z,M.isntArray=function(t){return!z(t)},M.isEmptyArray=function(t){return 0===t.length},M.isntEmptyArray=function(t){return 0!==t.length};var R={},U={};function D(t){return null===t}U.isntNull=U.isNull=void 0,U.isNull=D,U.isntNull=function(t){return!D(t)};var F={};function J(t){return void 0===t}F.isntUndefined=F.isUndefined=void 0,F.isUndefined=J,F.isntUndefined=function(t){return!J(t)},R.isntAsyncIterable=R.isAsyncIterable=void 0;const V=U,L=F;function W(t){return(0,V.isntNull)(t)&&(0,L.isntUndefined)(t)&&"function"==typeof t[Symbol.asyncIterator]}R.isAsyncIterable=W,R.isntAsyncIterable=function(t){return!W(t)};var K={};function Y(t){return"bigint"==typeof t}K.isntBigInt=K.isBigInt=void 0,K.isBigInt=Y,K.isntBigInt=function(t){return!Y(t)};var H={};function $(t){return"boolean"==typeof t}H.isntBoolean=H.isBoolean=void 0,H.isBoolean=$,H.isntBoolean=function(t){return!$(t)};var Q={},X={};function G(t){return"string"==typeof t}X.isntString=X.isString=void 0,X.isString=G,X.isntString=function(t){return!G(t)},Q.isntChar=Q.isChar=void 0;const Z=X;function tt(t){return(0,Z.isString)(t)&&1===t.length}Q.isChar=tt,Q.isntChar=function(t){return!tt(t)};var et={};function nt(t){return t instanceof Date}et.isntDate=et.isDate=void 0,et.isDate=nt,et.isntDate=function(t){return!nt(t)};var rt={};rt.inEnum=void 0,rt.inEnum=function(t,e){return Object.values(e).includes(t)};var ot={};function it(t){return t instanceof Error}ot.isntError=ot.isError=void 0,ot.isError=it,ot.isntError=function(t){return!it(t)};var at={};function st(t){return!t}at.isntFalsy=at.isFalsy=void 0,at.isFalsy=st,at.isntFalsy=function(t){return!st(t)};var ct={};function ut(t){return"function"==typeof t}ct.isntFunction=ct.isFunction=void 0,ct.isFunction=ut,ct.isntFunction=function(t){return!ut(t)};var lt={};lt.isntIterable=lt.isIterable=void 0;const ft=U,dt=F;function yt(t){return(0,ft.isntNull)(t)&&(0,dt.isntUndefined)(t)&&"function"==typeof t[Symbol.iterator]}lt.isIterable=yt,lt.isntIterable=function(t){return!yt(t)};var ht={},vt={};var pt=Function.prototype,mt=Object.prototype,bt=pt.toString,gt=mt.hasOwnProperty,wt=bt.call(Object),At=mt.toString,It=function(t,e){return function(n){return t(e(n))}}(Object.getPrototypeOf,Object);var St=function(t){if(!function(t){return!!t&&"object"==typeof t}(t)||"[object Object]"!=At.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=It(t);if(null===e)return!0;var n=gt.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&bt.call(n)==wt},_t=i&&i.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};vt.isntEmptyObject=vt.isEmptyObject=vt.isntPlainObject=vt.isPlainObject=vt.isntObject=vt.isObject=void 0;const Tt=_t(St);function xt(t){return null!==t&&"object"==typeof t}function Et(t){return(0,Tt.default)(t)}vt.isObject=xt,vt.isntObject=function(t){return!xt(t)},vt.isPlainObject=Et,vt.isntPlainObject=function(t){return!Et(t)},vt.isEmptyObject=function(t){return 0===Object.keys(t).length},vt.isntEmptyObject=function(t){return 0!==Object.keys(t).length};var Ot={};function jt(t){return"number"==typeof t}Ot.isntNumber=Ot.isNumber=void 0,Ot.isNumber=jt,Ot.isntNumber=function(t){return!jt(t)},ht.isntJsonRpcError=ht.isJsonRpcError=ht.isntJsonRpcSuccess=ht.isJsonRpcSuccess=ht.isntJsonRpcRequest=ht.isJsonRpcRequest=ht.isntJsonRpcNotification=ht.isJsonRpcNotification=void 0;const kt=M,Nt=vt,Bt=X,Pt=Ot,qt=F;function Ct(t){return(0,Bt.isString)(t)||(0,Pt.isNumber)(t)}function Mt(t){return(0,kt.isArray)(t)||(0,Nt.isObject)(t)}function zt(t){return(0,Nt.isPlainObject)(t)&&(0,Bt.isString)(t.jsonrpc)&&(0,Bt.isString)(t.method)&&(0,qt.isUndefined)(t.id)&&Mt(t.params)}function Rt(t){return(0,Nt.isPlainObject)(t)&&(0,Bt.isString)(t.jsonrpc)&&(0,Bt.isString)(t.method)&&Ct(t.id)&&Mt(t.params)}function Ut(t){return(0,Nt.isPlainObject)(t)&&(0,Bt.isString)(t.jsonrpc)&&(0,Bt.isString)(t.id)&&"result"in t}function Dt(t){return(0,Nt.isPlainObject)(t)&&(0,Bt.isString)(t.jsonrpc)&&Ct(t.id)&&function(t){return(0,Nt.isPlainObject)(t)&&(0,Pt.isNumber)(t.code)&&(0,Bt.isString)(t.message)&&((0,qt.isUndefined)(t.data)||(0,Nt.isObject)(t.data))}(t.error)}ht.isJsonRpcNotification=zt,ht.isntJsonRpcNotification=function(t){return!zt(t)},ht.isJsonRpcRequest=Rt,ht.isntJsonRpcRequest=function(t){return!Rt(t)},ht.isJsonRpcSuccess=Ut,ht.isntJsonRpcSuccess=function(t){return!Ut(t)},ht.isJsonRpcError=Dt,ht.isntJsonRpcError=function(t){return!Dt(t)};var Ft={};Ft.isntJson=Ft.isJson=void 0,Ft.isJson=function(t){try{return JSON.stringify(t),!0}catch(t){return!1}},Ft.isntJson=function t(e){return!t()};var Jt={};Jt.isAbsoluteURL=void 0,Jt.isAbsoluteURL=function(t){try{return new URL(t),!0}catch(t){return!1}},function(t){var e=i&&i.__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=i&&i.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};n(M,t),n(R,t),n(K,t),n(H,t),n(Q,t),n(et,t),n(rt,t),n(ot,t),n(at,t),n(ct,t),n(lt,t),n(ht,t),n(Ft,t),n(U,t),n(Ot,t),n(vt,t),n(X,t),n(F,t),n(Jt,t)}(C),q.chunkByAsync=void 0;const Vt=C;q.chunkByAsync=function(t,e){return(0,Vt.isAsyncIterable)(t)?async function*(t){let n=[],r=0;for await(const o of t)n.push(o),await e(o,r)&&(yield n,n=[]),r++;n.length&&(yield n)}(t):async function*(t){let n=[],r=0;for(const o of t)n.push(o),await e(o,r)&&(yield n,n=[]),r++;n.length&&(yield n)}(t)};var Lt={};Lt.chunkBy=void 0,Lt.chunkBy=function*(t,e){let n=[],r=0;for(const o of t)n.push(o),e(o,r)&&(yield n,n=[]),r++;n.length&&(yield n)};var Wt={chunk:void 0};const Kt=f,Yt=b;Wt.chunk=function(t,e){return(0,Yt.assert)(Number.isInteger(e),"The parameter size must be an integer"),(0,Yt.assert)(e>0,"The parameter size must be greater than 0"),(0,Kt.go)((function*(){let n=[];for(const r of t)n.push(r),n.length>=e&&(yield n,n=[]);n.length&&(yield n)}))};var Ht={concatAsync:void 0};const $t=C,Qt=f;Ht.concatAsync=function(t,...e){return(0,Qt.go)((async function*(){for(const n of[t,...e])if((0,$t.isAsyncIterable)(n))for await(const t of n)yield t;else for(const t of n)yield t}))};var Xt={concat:void 0};const Gt=f;Xt.concat=function(t,...e){return(0,Gt.go)((function*(){for(const n of[t,...e])yield*n}))};var Zt={},te={};te.copyIterable=te.copyAsyncIterable=void 0,te.copyAsyncIterable=async function*(t){for await(const e of t)yield e},te.copyIterable=function*(t){for(const e of t)yield e},Zt.dropAsync=void 0;const ee=f,ne=te,re=b;Zt.dropAsync=function(t,e){return(0,re.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,re.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,ne.copyAsyncIterable)(t):(0,ee.go)((async function*(){var n;const r=t[Symbol.asyncIterator]();let o;try{let t;for(;!(({value:t,done:o}=await r.next()),o||e<=0);)e--;for(;!o;)yield t,({value:t,done:o}=await r.next())}finally{o||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}}))};var oe={dropRightAsync:void 0};const ie=f,ae=te,se=b;oe.dropRightAsync=function(t,e){return(0,se.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,se.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,ae.copyAsyncIterable)(t):(0,ie.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 ce={dropRight:void 0};const ue=f,le=te,fe=b;ce.dropRight=function(t,e){return(0,fe.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,fe.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,le.copyIterable)(t):(0,ue.go)((function*(){const n=Array.from(t);yield*n.slice(0,-e)}))};var de={dropUntilAsync:void 0};const ye=C;de.dropUntilAsync=function(t,e){return(0,ye.isAsyncIterable)(t)?async function*(t){var n;const r=t[Symbol.asyncIterator]();let o;try{let t,i=0;for(;!(({value:t,done:o}=await r.next()),o||await e(t,i++)););for(;!o;)yield t,({value:t,done:o}=await r.next())}finally{o||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 o;try{let t,i=0;for(;!(({value:t,done:o}=r.next()),o||await e(t,i++)););for(;!o;)yield t,({value:t,done:o}=r.next())}finally{o||null===(n=r.return)||void 0===n||n.call(r)}}(t)};var he={};he.dropUntil=void 0,he.dropUntil=function*(t,e){var n;const r=t[Symbol.iterator]();let o;try{let t,i=0;for(;!(({value:t,done:o}=r.next()),o||e(t,i++)););for(;!o;)yield t,({value:t,done:o}=r.next())}finally{o||null===(n=r.return)||void 0===n||n.call(r)}};var ve={drop:void 0};const pe=f,me=te,be=b;ve.drop=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*(){var n;const r=t[Symbol.iterator]();let o;try{let t;for(;!(({value:t,done:o}=r.next()),o||e<=0);)e--;for(;!o;)yield t,({value:t,done:o}=r.next())}finally{o||null===(n=r.return)||void 0===n||n.call(r)}}))};var ge={filterAsync:void 0};const we=C;ge.filterAsync=function(t,e){return(0,we.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 Ae={};Ae.filter=void 0,Ae.filter=function*(t,e){let n=0;for(const r of t)e(r,n)&&(yield r),n++};var Ie={},Se={},_e={flattenByAsync:void 0};const Te=C;function xe(t){return(0,Te.isIterable)(t)&&(0,Te.isntChar)(t)}_e.flattenByAsync=function(t,e){return(0,Te.isAsyncIterable)(t)?async function*(t){const r=1;for await(const o of t)xe(o)&&await e(o,r)?yield*n(o,r+1):yield o}(t):function(t){return n(t,1)}(t);async function*n(t,r){for(const o of t)xe(o)&&await e(o,r)?yield*n(o,r+1):yield o}},Se.flattenDeepAsync=void 0;const Ee=_e,Oe=b;Se.flattenDeepAsync=function(t,e=1/0){return(0,Oe.assert)(e===1/0||Number.isInteger(e),"The parameter depth must be an integer"),(0,Oe.assert)(e>=0,"The parameter depth must be greater than or equal to 0"),(0,Ee.flattenByAsync)(t,((t,n)=>n<=e))},Ie.flattenAsync=void 0;const je=Se;Ie.flattenAsync=function(t){return(0,je.flattenDeepAsync)(t,1)};var ke={flattenBy:void 0};const Ne=C;ke.flattenBy=function(t,e){return function*t(n,r){for(const i of n)(0,Ne.isIterable)(o=i)&&(0,Ne.isntChar)(o)&&e(i,r)?yield*t(i,r+1):yield i;var o}(t,1)};var Be={flattenDeep:void 0};const Pe=ke,qe=b;Be.flattenDeep=function(t,e=1/0){return(0,qe.assert)(e===1/0||Number.isInteger(e),"The parameter depth must be an integer"),(0,qe.assert)(e>=0,"The parameter depth must be greater than or equal to 0"),(0,Pe.flattenBy)(t,((t,n)=>n<=e))};var Ce={flatten:void 0};const Me=Be;Ce.flatten=function(t){return(0,Me.flattenDeep)(t,1)};var ze={mapAsync:void 0};const Re=C;ze.mapAsync=function(t,e){return(0,Re.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 Ue={};Ue.map=void 0,Ue.map=function*(t,e){let n=0;for(const r of t)yield e(r,n),n++};var De={repeatAsync:void 0};const Fe=f,Je=b;De.repeatAsync=function(t,e){return(0,Je.assert)(e===1/0||Number.isInteger(e),"The parameter times must be an integer"),(0,Je.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,Fe.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 Ve={repeat:void 0};const Le=f,We=b;Ve.repeat=function(t,e){return(0,We.assert)(e===1/0||Number.isInteger(e),"The parameter times must be an integer"),(0,We.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,Le.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 Ke={sliceAsync:void 0};const Ye=f,He=b;Ke.sliceAsync=function(t,e,n=1/0){return(0,He.assert)(Number.isInteger(e),"The parameter start must be an integer"),(0,He.assert)(e>=0,"The parameter start must be greater than or equal to 0"),(0,He.assert)(Number.isInteger(n),"The parameter end must be an integer"),(0,He.assert)(n>=e,"The parameter end must be greater than or equal to start"),(0,Ye.go)((async function*(){let r=0;for await(const o of t){if(r>=n)break;r>=e&&(yield o),r++}}))};var $e={slice:void 0};const Qe=f,Xe=b;$e.slice=function(t,e,n=1/0){return(0,Xe.assert)(Number.isInteger(e),"The parameter start must be an integer"),(0,Xe.assert)(e>=0,"The parameter start must be greater than or equal to 0"),(0,Xe.assert)(Number.isInteger(n),"The parameter end must be an integer"),(0,Xe.assert)(n>=e,"The parameter end must be greater than or equal to start"),(0,Qe.go)((function*(){let r=0;for(const o of t){if(r>=n)break;r>=e&&(yield o),r++}}))};var Ge={};Ge.splitAsync=void 0,Ge.splitAsync=async function*(t,e){let n=[];for await(const r of t)r===e?(yield n,n=[]):n.push(r);yield n};var Ze={splitByAsync:void 0};const tn=C;Ze.splitByAsync=function(t,e){return(0,tn.isAsyncIterable)(t)?async function*(t){let n=[],r=0;for await(const o of t)await e(o,r)?(yield n,n=[]):n.push(o),r++;yield n}(t):async function*(t){let n=[],r=0;for(const o of t)await e(o,r)?(yield n,n=[]):n.push(o),r++;yield n}(t)};var en={};en.splitBy=void 0,en.splitBy=function*(t,e){let n=[],r=0;for(const o of t)e(o,r)?(yield n,n=[]):n.push(o),r++;yield n};var nn={};nn.split=void 0,nn.split=function*(t,e){let n=[];for(const r of t)r===e?(yield n,n=[]):n.push(r);yield n};var rn={takeAsync:void 0};const on=f,an=b;rn.takeAsync=function(t,e){return(0,an.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,an.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,on.go)((async function*(){if(0!==e)for await(const n of t)if(yield n,0===--e)break}))};var sn={takeRightAsync:void 0};const cn=f,un=b;sn.takeRightAsync=function(t,e){return(0,un.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,un.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,cn.go)((async function*(){var n;const r=t[Symbol.asyncIterator]();let o;try{const t=[];let i;for(;({value:i,done:o}=await r.next()),!o;)t.push(i),t.length>e&&t.shift();yield*t}finally{o||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}}))};var ln={takeRight:void 0};const fn=f,dn=b;ln.takeRight=function(t,e){return(0,dn.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,dn.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,fn.go)((function*(){var n;const r=t[Symbol.iterator]();let o;try{const t=[];let i;for(;({value:i,done:o}=r.next()),!o;)t.push(i),t.length>e&&t.shift();yield*t}finally{o||null===(n=r.return)||void 0===n||n.call(r)}}))};var yn={takeUntilAsync:void 0};const hn=C;yn.takeUntilAsync=function(t,e){return(0,hn.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 vn={};vn.takeUntil=void 0,vn.takeUntil=function*(t,e){let n=0;for(const r of t){if(e(r,n))break;yield r,n++}};var pn={take:void 0};const mn=f,bn=b;pn.take=function(t,e){return(0,bn.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,bn.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,mn.go)((function*(){if(0!==e)for(const n of t)if(yield n,0===--e)break}))};var gn={tapAsync:void 0};const wn=C;gn.tapAsync=function(t,e){return(0,wn.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 An={};An.tap=void 0,An.tap=function*(t,e){let n=0;for(const r of t)e(r,n),yield r,n++};var In={};In.toAsyncIterable=void 0,In.toAsyncIterable=async function*(t){for(const e of t)yield e};var Sn={};Sn.transformAsync=void 0,Sn.transformAsync=async function*(t,e){yield*e(t)};var _n={};_n.transform=void 0,_n.transform=function*(t,e){yield*e(t)};var Tn={};Tn.uniqAsync=void 0,Tn.uniqAsync=async function*(t){const e=new Set;for await(const n of t)e.has(n)||(yield n,e.add(n))};var xn={uniqByAsync:void 0};const En=C;xn.uniqByAsync=function(t,e){return(0,En.isAsyncIterable)(t)?async function*(t){const n=new Set;let r=0;for await(const o of t){const t=await e(o,r);n.has(t)||(yield o,n.add(t)),r++}}(t):async function*(t){const n=new Set;let r=0;for(const o of t){const t=await e(o,r);n.has(t)||(yield o,n.add(t)),r++}}(t)};var On={};On.uniqBy=void 0,On.uniqBy=function*(t,e){const n=new Set;let r=0;for(const o of t){const t=e(o,r);n.has(t)||(yield o,n.add(t)),r++}};var jn={};jn.uniq=void 0,jn.uniq=function*(t){const e=new Set;for(const n of t)e.has(n)||(yield n,e.add(n))};var kn={zipAsync:void 0};const Nn=C;var Bn;!function(t){t[t.Sync=0]="Sync",t[t.Async=1]="Async"}(Bn||(Bn={})),kn.zipAsync=function(t,...e){return async function*(...t){var e,n,r,o;const i=t.length,a=t.map((t=>(0,Nn.isAsyncIterable)(t)?[Bn.Async,t[Symbol.asyncIterator]()]:[Bn.Sync,t[Symbol.iterator]()])),s=a.map((()=>!1));try{for(;;){const t=new Array(i);for(let e=0;e<i;e++){const[n,r]=a[e];let o;if(o=n===Bn.Async?await r.next():r.next(),o.done)return void(s[e]=!0);t[e]=o.value}yield t}}finally{const t=a.filter(((t,e)=>!s[e]));for(const[i,a]of t)i===Bn.Async?await(null===(n=(e=a).return)||void 0===n?void 0:n.call(e)):null===(o=(r=a).return)||void 0===o||o.call(r)}}(t,...e)};var Pn={};Pn.zip=void 0,Pn.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 o=0;o<e;o++){const{value:e,done:i}=n[o].next();if(i)return void(r[o]=!0);t[o]=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=i&&i.__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=i&&i.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};n(m,t),n(q,t),n(Lt,t),n(Wt,t),n(Ht,t),n(Xt,t),n(Zt,t),n(oe,t),n(ce,t),n(de,t),n(he,t),n(ve,t),n(ge,t),n(Ae,t),n(Ie,t),n(_e,t),n(ke,t),n(Se,t),n(Be,t),n(Ce,t),n(ze,t),n(Ue,t),n(De,t),n(Ve,t),n(Ke,t),n($e,t),n(Ge,t),n(Ze,t),n(en,t),n(nn,t),n(rn,t),n(sn,t),n(ln,t),n(yn,t),n(vn,t),n(pn,t),n(gn,t),n(An,t),n(In,t),n(Sn,t),n(_n,t),n(Tn,t),n(xn,t),n(On,t),n(jn,t),n(kn,t),n(Pn,t)}(p);var qn={},Cn={};Cn.consume=void 0,Cn.consume=function(t,e){return e(t)};var Mn={eachAsync:void 0};const zn=C;Mn.eachAsync=function(t,e){return(0,zn.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 Rn={};Rn.each=void 0,Rn.each=function(t,e){let n=0;for(const r of t)e(r,n),n++};var Un={everyAsync:void 0};const Dn=C;Un.everyAsync=function(t,e){return(0,Dn.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 Fn={};Fn.every=void 0,Fn.every=function(t,e){let n=0;for(const r of t){if(!e(r,n))return!1;n++}return!0};var Jn={findAsync:void 0};const Vn=C;Jn.findAsync=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 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 Ln={};Ln.find=void 0,Ln.find=function(t,e){let n=0;for(const r of t){if(e(r,n))return r;n++}};var Wn={};Wn.firstAsync=void 0,Wn.firstAsync=async function(t){for await(const e of t)return e};var Kn={};Kn.first=void 0,Kn.first=function(t){for(const e of t)return e};var Yn={};Yn.includesAsync=void 0,Yn.includesAsync=async function(t,e){for await(const n of t)if(n===e)return!0;return!1};var Hn={};Hn.includes=void 0,Hn.includes=function(t,e){for(const n of t)if(n===e)return!0;return!1};var $n={};$n.matchAsync=void 0,$n.matchAsync=async function(t,e){const n=e.length;let r=0;for await(const o of t)if(o===e[r]&&r++,r===n)return!0;return!1};var Qn={};Qn.match=void 0,Qn.match=function(t,e){const n=e.length;let r=0;for(const o of t)if(o===e[r]&&r++,r===n)return!0;return!1};var Xn={reduceAsync:void 0};const Gn=C;Xn.reduceAsync=function(t,e,n){return(0,Gn.isUndefined)(n)?function(t,e){return(0,Gn.isAsyncIterable)(t)?n(t):r(t);async function n(t){var n;const r=t[Symbol.asyncIterator]();let o;try{let t,a=await i(r),s=1;for(;({value:t,done:o}=await r.next()),!o;)a=await e(a,t,s++);return a}finally{o||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}async function i(t){const e=await t.next();if(e.done)throw o=!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 o;try{let t,a=i(r),s=1;for(;({value:t,done:o}=r.next()),!o;)a=await e(a,t,s++);return a}finally{o||null===(n=r.return)||void 0===n||n.call(r)}function i(t){const e=t.next();if(e.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return e.value}}}(t,e):function(t,e,n){return(0,Gn.isAsyncIterable)(t)?o(t):r(t);async function r(t){let r=n,o=0;for(const n of t)r=await e(r,n,o++);return r}async function o(t){let r=n,o=0;for await(const n of t)r=await e(r,n,o++);return r}}(t,e,n)};var Zn={reduce:void 0};const tr=C;Zn.reduce=function(t,e,n){return(0,tr.isUndefined)(n)?function(t,e){var n;const r=t[Symbol.iterator]();let o;try{let t,a=i(r),s=1;for(;({value:t,done:o}=r.next()),!o;)a=e(a,t,s++);return a}finally{o||null===(n=r.return)||void 0===n||n.call(r)}function i(t){const e=t.next();if(e.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return e.value}}(t,e):function(t,e,n){let r=n,o=0;for(const n of t)r=e(r,n,o++);return r}(t,e,n)};var er={someAsync:void 0};const nr=C;er.someAsync=function(t,e){return(0,nr.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 rr={};rr.some=void 0,rr.some=function(t,e){let n=0;for(const r of t){if(e(r,n))return!0;n++}return!1};var or={};or.lastAsync=void 0,or.lastAsync=async function(t){var e;const n=t[Symbol.asyncIterator]();let r;try{let t,o;for(;({value:t,done:r}=await n.next()),!r;)o=t;return o}finally{r||await(null===(e=n.return)||void 0===e?void 0:e.call(n))}};var ir={};ir.last=void 0,ir.last=function(t){var e;const n=t[Symbol.iterator]();let r;try{let t,o;for(;({value:t,done:r}=n.next()),!r;)o=t;return o}finally{r||null===(e=n.return)||void 0===e||e.call(n)}};var ar={toArrayAsync:void 0};const sr=Cn;ar.toArrayAsync=function(t){return(0,sr.consume)(t,(async t=>{const e=[];for await(const n of t)e.push(n);return e}))};var cr={toArray:void 0};const ur=Cn;cr.toArray=function(t){return(0,ur.consume)(t,(t=>Array.from(t)))};var lr={toSetAsync:void 0};const fr=Cn;lr.toSetAsync=function(t){return(0,fr.consume)(t,(async t=>{const e=new Set;for await(const n of t)e.add(n);return e}))};var dr={toSet:void 0};const yr=Cn;dr.toSet=function(t){return(0,yr.consume)(t,(t=>new Set(t)))},function(t){var e=i&&i.__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=i&&i.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};n(Cn,t),n(Mn,t),n(Rn,t),n(Un,t),n(Fn,t),n(Jn,t),n(Ln,t),n(Wn,t),n(Kn,t),n(Yn,t),n(Hn,t),n($n,t),n(Qn,t),n(Xn,t),n(Zn,t),n(er,t),n(rr,t),n(or,t),n(ir,t),n(ar,t),n(cr,t),n(lr,t),n(dr,t)}(qn),function(t){var e=i&&i.__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=i&&i.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};n(p,t),n(qn,t)}(v);var hr={},vr={};vr.traverseErrorPrototypeChain=void 0,vr.traverseErrorPrototypeChain=function*(t){let e=t;for(;(e=Object.getPrototypeOf(e))&&(yield e,e!==Error.prototype););},hr.getErrorNames=void 0;const pr=C,mr=vr;hr.getErrorNames=function*(t){var e;if((0,pr.isError)(t))for(const n of(0,mr.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 br={isSerializableError:void 0};const gr=C;br.isSerializableError=function(t){return(0,gr.isObject)(t)&&(0,gr.isString)(t.name)&&(0,gr.isString)(t.message)&&((0,gr.isString)(t.stack)||(0,gr.isNull)(t.stack))&&(0,gr.isArray)(t.ancestors)&&t.ancestors.every(gr.isString)},h.CustomError=void 0;const wr=v,Ar=hr,Ir=C,Sr=br;class _r extends Error{get name(){var t,e;return null!==(e=null!==(t=(0,wr.first)((0,Ar.getErrorNames)(this)))&&void 0!==t?t:_r.name)&&void 0!==e?e:"CustomError"}static[Symbol.hasInstance](t){var e;if((0,Ir.isError)(t)||(0,Sr.isSerializableError)(t)){const n=[null!==(e=this.prototype.constructor.name)&&void 0!==e?e:this.name,...(0,Ar.getErrorNames)(this.prototype)].reverse(),r=(0,wr.toArray)((0,Ar.getErrorNames)(t)).reverse();return n.every(((t,e)=>t===r[e]))}return!1}}h.CustomError=_r;var Tr={AssertionError:void 0};const xr=h;class Er extends xr.CustomError{}Tr.AssertionError=Er;var Or={normalize:void 0};const jr=hr,kr=v;Or.normalize=function(t){var e;const[n,...r]=(0,kr.toArray)((0,jr.getErrorNames)(t));return{name:n,ancestors:r,message:t.message,stack:null!==(e=t.stack)&&void 0!==e?e:null}};var Nr={},Br={},Pr={};Pr.pass=void 0,Pr.pass=function(){},function(t){var e=i&&i.__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]});(i&&i.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)})(Pr,t)}(Br),Nr.hydrate=void 0;const qr=Br;function Cr(t,e){const n=function(){(0,qr.pass)()};return(n.prototype=Object.create(t.prototype)).constructor=n,Object.defineProperty(n,"name",{value:e}),n}Nr.hydrate=function(t){var e;const n=[t.name,...t.ancestors].slice(0,-1).reverse();let r=Error;for(const t of n)r=Cr(r,t);const o=new r;return o.name=t.name,o.message=t.message,o.stack=null!==(e=t.stack)&&void 0!==e?e:void 0,o};var Mr={assert:void 0};const zr=Tr;Mr.assert=function(t,e){if(!t)throw new zr.AssertionError(e)},function(t){var e=i&&i.__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=i&&i.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};n(h,t),n(Tr,t),n(br,t),n(Or,t),n(Nr,t),n(Mr,t),n(hr,t),n(vr,t)}(y),l.chunkAsync=void 0;const Rr=f,Ur=y;l.chunkAsync=function(t,e){return(0,Ur.assert)(Number.isInteger(e),"The parameter size must be an integer"),(0,Ur.assert)(e>0,"The parameter size must be greater than 0"),(0,Rr.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 Dr={chunkByAsync:void 0};const Fr=C;Dr.chunkByAsync=function(t,e){return(0,Fr.isAsyncIterable)(t)?async function*(t){let n=[],r=0;for await(const o of t)n.push(o),await e(o,r)&&(yield n,n=[]),r++;n.length&&(yield n)}(t):async function*(t){let n=[],r=0;for(const o of t)n.push(o),await e(o,r)&&(yield n,n=[]),r++;n.length&&(yield n)}(t)};var Jr={};Jr.chunkBy=void 0,Jr.chunkBy=function*(t,e){let n=[],r=0;for(const o of t)n.push(o),e(o,r)&&(yield n,n=[]),r++;n.length&&(yield n)};var Vr={chunk:void 0};const Lr=f,Wr=y;Vr.chunk=function(t,e){return(0,Wr.assert)(Number.isInteger(e),"The parameter size must be an integer"),(0,Wr.assert)(e>0,"The parameter size must be greater than 0"),(0,Lr.go)((function*(){let n=[];for(const r of t)n.push(r),n.length>=e&&(yield n,n=[]);n.length&&(yield n)}))};var Kr={concatAsync:void 0};const Yr=C,Hr=f;Kr.concatAsync=function(t,...e){return(0,Hr.go)((async function*(){for(const n of[t,...e])if((0,Yr.isAsyncIterable)(n))for await(const t of n)yield t;else for(const t of n)yield t}))};var $r={concat:void 0};const Qr=f;$r.concat=function(t,...e){return(0,Qr.go)((function*(){for(const n of[t,...e])yield*n}))};var Xr={},Gr={};Gr.copyIterable=Gr.copyAsyncIterable=void 0,Gr.copyAsyncIterable=async function*(t){for await(const e of t)yield e},Gr.copyIterable=function*(t){for(const e of t)yield e},Xr.dropAsync=void 0;const Zr=f,to=Gr,eo=y;Xr.dropAsync=function(t,e){return(0,eo.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,eo.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,to.copyAsyncIterable)(t):(0,Zr.go)((async function*(){var n;const r=t[Symbol.asyncIterator]();let o;try{let t;for(;!(({value:t,done:o}=await r.next()),o||e<=0);)e--;for(;!o;)yield t,({value:t,done:o}=await r.next())}finally{o||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}}))};var no={dropRightAsync:void 0};const ro=f,oo=Gr,io=y;no.dropRightAsync=function(t,e){return(0,io.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,io.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,oo.copyAsyncIterable)(t):(0,ro.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 ao={dropRight:void 0};const so=f,co=Gr,uo=y;ao.dropRight=function(t,e){return(0,uo.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,uo.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,co.copyIterable)(t):(0,so.go)((function*(){const n=Array.from(t);yield*n.slice(0,-e)}))};var lo={dropUntilAsync:void 0};const fo=C;lo.dropUntilAsync=function(t,e){return(0,fo.isAsyncIterable)(t)?async function*(t){var n;const r=t[Symbol.asyncIterator]();let o;try{let t,i=0;for(;!(({value:t,done:o}=await r.next()),o||await e(t,i++)););for(;!o;)yield t,({value:t,done:o}=await r.next())}finally{o||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 o;try{let t,i=0;for(;!(({value:t,done:o}=r.next()),o||await e(t,i++)););for(;!o;)yield t,({value:t,done:o}=r.next())}finally{o||null===(n=r.return)||void 0===n||n.call(r)}}(t)};var yo={};yo.dropUntil=void 0,yo.dropUntil=function*(t,e){var n;const r=t[Symbol.iterator]();let o;try{let t,i=0;for(;!(({value:t,done:o}=r.next()),o||e(t,i++)););for(;!o;)yield t,({value:t,done:o}=r.next())}finally{o||null===(n=r.return)||void 0===n||n.call(r)}};var ho={drop:void 0};const vo=f,po=Gr,mo=y;ho.drop=function(t,e){return(0,mo.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,mo.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,po.copyIterable)(t):(0,vo.go)((function*(){var n;const r=t[Symbol.iterator]();let o;try{let t;for(;!(({value:t,done:o}=r.next()),o||e<=0);)e--;for(;!o;)yield t,({value:t,done:o}=r.next())}finally{o||null===(n=r.return)||void 0===n||n.call(r)}}))};var bo={filterAsync:void 0};const go=C;bo.filterAsync=function(t,e){return(0,go.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 wo={};wo.filter=void 0,wo.filter=function*(t,e){let n=0;for(const r of t)e(r,n)&&(yield r),n++};var Ao={},Io={},So={flattenByAsync:void 0};const _o=C;function To(t){return(0,_o.isIterable)(t)&&(0,_o.isntChar)(t)}So.flattenByAsync=function(t,e){return(0,_o.isAsyncIterable)(t)?async function*(t){const r=1;for await(const o of t)To(o)&&await e(o,r)?yield*n(o,r+1):yield o}(t):function(t){return n(t,1)}(t);async function*n(t,r){for(const o of t)To(o)&&await e(o,r)?yield*n(o,r+1):yield o}},Io.flattenDeepAsync=void 0;const xo=So,Eo=y;Io.flattenDeepAsync=function(t,e=1/0){return(0,Eo.assert)(e===1/0||Number.isInteger(e),"The parameter depth must be an integer"),(0,Eo.assert)(e>=0,"The parameter depth must be greater than or equal to 0"),(0,xo.flattenByAsync)(t,((t,n)=>n<=e))},Ao.flattenAsync=void 0;const Oo=Io;Ao.flattenAsync=function(t){return(0,Oo.flattenDeepAsync)(t,1)};var jo={flattenBy:void 0};const ko=C;jo.flattenBy=function(t,e){return function*t(n,r){for(const i of n)(0,ko.isIterable)(o=i)&&(0,ko.isntChar)(o)&&e(i,r)?yield*t(i,r+1):yield i;var o}(t,1)};var No={flattenDeep:void 0};const Bo=jo,Po=y;No.flattenDeep=function(t,e=1/0){return(0,Po.assert)(e===1/0||Number.isInteger(e),"The parameter depth must be an integer"),(0,Po.assert)(e>=0,"The parameter depth must be greater than or equal to 0"),(0,Bo.flattenBy)(t,((t,n)=>n<=e))};var qo={flatten:void 0};const Co=No;qo.flatten=function(t){return(0,Co.flattenDeep)(t,1)};var Mo={mapAsync:void 0};const zo=C;Mo.mapAsync=function(t,e){return(0,zo.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 Ro={};Ro.map=void 0,Ro.map=function*(t,e){let n=0;for(const r of t)yield e(r,n),n++};var Uo={repeatAsync:void 0};const Do=f,Fo=y;Uo.repeatAsync=function(t,e){return(0,Fo.assert)(e===1/0||Number.isInteger(e),"The parameter times must be an integer"),(0,Fo.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,Do.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 Jo={repeat:void 0};const Vo=f,Lo=y;Jo.repeat=function(t,e){return(0,Lo.assert)(e===1/0||Number.isInteger(e),"The parameter times must be an integer"),(0,Lo.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,Vo.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 Wo={sliceAsync:void 0};const Ko=f,Yo=y;Wo.sliceAsync=function(t,e,n=1/0){return(0,Yo.assert)(Number.isInteger(e),"The parameter start must be an integer"),(0,Yo.assert)(e>=0,"The parameter start must be greater than or equal to 0"),(0,Yo.assert)(Number.isInteger(n),"The parameter end must be an integer"),(0,Yo.assert)(n>=e,"The parameter end must be greater than or equal to start"),(0,Ko.go)((async function*(){let r=0;for await(const o of t){if(r>=n)break;r>=e&&(yield o),r++}}))};var Ho={slice:void 0};const $o=f,Qo=y;Ho.slice=function(t,e,n=1/0){return(0,Qo.assert)(Number.isInteger(e),"The parameter start must be an integer"),(0,Qo.assert)(e>=0,"The parameter start must be greater than or equal to 0"),(0,Qo.assert)(Number.isInteger(n),"The parameter end must be an integer"),(0,Qo.assert)(n>=e,"The parameter end must be greater than or equal to start"),(0,$o.go)((function*(){let r=0;for(const o of t){if(r>=n)break;r>=e&&(yield o),r++}}))};var Xo={};Xo.splitAsync=void 0,Xo.splitAsync=async function*(t,e){let n=[];for await(const r of t)r===e?(yield n,n=[]):n.push(r);yield n};var Go={splitByAsync:void 0};const Zo=C;Go.splitByAsync=function(t,e){return(0,Zo.isAsyncIterable)(t)?async function*(t){let n=[],r=0;for await(const o of t)await e(o,r)?(yield n,n=[]):n.push(o),r++;yield n}(t):async function*(t){let n=[],r=0;for(const o of t)await e(o,r)?(yield n,n=[]):n.push(o),r++;yield n}(t)};var ti={};ti.splitBy=void 0,ti.splitBy=function*(t,e){let n=[],r=0;for(const o of t)e(o,r)?(yield n,n=[]):n.push(o),r++;yield n};var ei={};ei.split=void 0,ei.split=function*(t,e){let n=[];for(const r of t)r===e?(yield n,n=[]):n.push(r);yield n};var ni={takeAsync:void 0};const ri=f,oi=y;ni.takeAsync=function(t,e){return(0,oi.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,oi.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,ri.go)((async function*(){if(0!==e)for await(const n of t)if(yield n,0===--e)break}))};var ii={takeRightAsync:void 0};const ai=f,si=y;ii.takeRightAsync=function(t,e){return(0,si.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,si.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,ai.go)((async function*(){var n;const r=t[Symbol.asyncIterator]();let o;try{const t=[];let i;for(;({value:i,done:o}=await r.next()),!o;)t.push(i),t.length>e&&t.shift();yield*t}finally{o||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}}))};var ci={takeRight:void 0};const ui=f,li=y;ci.takeRight=function(t,e){return(0,li.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,li.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,ui.go)((function*(){var n;const r=t[Symbol.iterator]();let o;try{const t=[];let i;for(;({value:i,done:o}=r.next()),!o;)t.push(i),t.length>e&&t.shift();yield*t}finally{o||null===(n=r.return)||void 0===n||n.call(r)}}))};var fi={takeUntilAsync:void 0};const di=C;fi.takeUntilAsync=function(t,e){return(0,di.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 yi={};yi.takeUntil=void 0,yi.takeUntil=function*(t,e){let n=0;for(const r of t){if(e(r,n))break;yield r,n++}};var hi={take:void 0};const vi=f,pi=y;hi.take=function(t,e){return(0,pi.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,pi.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,vi.go)((function*(){if(0!==e)for(const n of t)if(yield n,0===--e)break}))};var mi={tapAsync:void 0};const bi=C;mi.tapAsync=function(t,e){return(0,bi.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 gi={};gi.tap=void 0,gi.tap=function*(t,e){let n=0;for(const r of t)e(r,n),yield r,n++};var wi={};wi.toAsyncIterable=void 0,wi.toAsyncIterable=async function*(t){for(const e of t)yield e};var Ai={};Ai.transformAsync=void 0,Ai.transformAsync=async function*(t,e){yield*e(t)};var Ii={};Ii.transform=void 0,Ii.transform=function*(t,e){yield*e(t)};var Si={};Si.uniqAsync=void 0,Si.uniqAsync=async function*(t){const e=new Set;for await(const n of t)e.has(n)||(yield n,e.add(n))};var _i={uniqByAsync:void 0};const Ti=C;_i.uniqByAsync=function(t,e){return(0,Ti.isAsyncIterable)(t)?async function*(t){const n=new Set;let r=0;for await(const o of t){const t=await e(o,r);n.has(t)||(yield o,n.add(t)),r++}}(t):async function*(t){const n=new Set;let r=0;for(const o of t){const t=await e(o,r);n.has(t)||(yield o,n.add(t)),r++}}(t)};var xi={};xi.uniqBy=void 0,xi.uniqBy=function*(t,e){const n=new Set;let r=0;for(const o of t){const t=e(o,r);n.has(t)||(yield o,n.add(t)),r++}};var Ei={};Ei.uniq=void 0,Ei.uniq=function*(t){const e=new Set;for(const n of t)e.has(n)||(yield n,e.add(n))};var Oi={zipAsync:void 0};const ji=C;var ki;!function(t){t[t.Sync=0]="Sync",t[t.Async=1]="Async"}(ki||(ki={})),Oi.zipAsync=function(t,...e){return async function*(...t){var e,n,r,o;const i=t.length,a=t.map((t=>(0,ji.isAsyncIterable)(t)?[ki.Async,t[Symbol.asyncIterator]()]:[ki.Sync,t[Symbol.iterator]()])),s=a.map((()=>!1));try{for(;;){const t=new Array(i);for(let e=0;e<i;e++){const[n,r]=a[e];let o;if(o=n===ki.Async?await r.next():r.next(),o.done)return void(s[e]=!0);t[e]=o.value}yield t}}finally{const t=a.filter(((t,e)=>!s[e]));for(const[i,a]of t)i===ki.Async?await(null===(n=(e=a).return)||void 0===n?void 0:n.call(e)):null===(o=(r=a).return)||void 0===o||o.call(r)}}(t,...e)};var Ni={};Ni.zip=void 0,Ni.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 o=0;o<e;o++){const{value:e,done:i}=n[o].next();if(i)return void(r[o]=!0);t[o]=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=i&&i.__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=i&&i.__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(Dr,t),n(Jr,t),n(Vr,t),n(Kr,t),n($r,t),n(Xr,t),n(no,t),n(ao,t),n(lo,t),n(yo,t),n(ho,t),n(bo,t),n(wo,t),n(Ao,t),n(So,t),n(jo,t),n(Io,t),n(No,t),n(qo,t),n(Mo,t),n(Ro,t),n(Uo,t),n(Jo,t),n(Wo,t),n(Ho,t),n(Xo,t),n(Go,t),n(ti,t),n(ei,t),n(ni,t),n(ii,t),n(ci,t),n(fi,t),n(yi,t),n(hi,t),n(mi,t),n(gi,t),n(wi,t),n(Ai,t),n(Ii,t),n(Si,t),n(_i,t),n(xi,t),n(Ei,t),n(Oi,t),n(Ni,t)}(u);var Bi={},Pi={};Pi.consume=void 0,Pi.consume=function(t,e){return e(t)};var qi={eachAsync:void 0};const Ci=C;qi.eachAsync=function(t,e){return(0,Ci.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 Mi={};Mi.each=void 0,Mi.each=function(t,e){let n=0;for(const r of t)e(r,n),n++};var zi={everyAsync:void 0};const Ri=C;zi.everyAsync=function(t,e){return(0,Ri.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 Ui={};Ui.every=void 0,Ui.every=function(t,e){let n=0;for(const r of t){if(!e(r,n))return!1;n++}return!0};var Di={findAsync:void 0};const Fi=C;Di.findAsync=function(t,e){return(0,Fi.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 Ji={};Ji.find=void 0,Ji.find=function(t,e){let n=0;for(const r of t){if(e(r,n))return r;n++}};var Vi={};Vi.firstAsync=void 0,Vi.firstAsync=async function(t){for await(const e of t)return e};var Li={};Li.first=void 0,Li.first=function(t){for(const e of t)return e};var Wi={};Wi.includesAsync=void 0,Wi.includesAsync=async function(t,e){for await(const n of t)if(n===e)return!0;return!1};var Ki={};Ki.includes=void 0,Ki.includes=function(t,e){for(const n of t)if(n===e)return!0;return!1};var Yi={};Yi.matchAsync=void 0,Yi.matchAsync=async function(t,e){const n=e.length;let r=0;for await(const o of t)if(o===e[r]&&r++,r===n)return!0;return!1};var Hi={};Hi.match=void 0,Hi.match=function(t,e){const n=e.length;let r=0;for(const o of t)if(o===e[r]&&r++,r===n)return!0;return!1};var $i={reduceAsync:void 0};const Qi=C;$i.reduceAsync=function(t,e,n){return(0,Qi.isUndefined)(n)?function(t,e){return(0,Qi.isAsyncIterable)(t)?n(t):r(t);async function n(t){var n;const r=t[Symbol.asyncIterator]();let o;try{let t,a=await i(r),s=1;for(;({value:t,done:o}=await r.next()),!o;)a=await e(a,t,s++);return a}finally{o||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}async function i(t){const e=await t.next();if(e.done)throw o=!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 o;try{let t,a=i(r),s=1;for(;({value:t,done:o}=r.next()),!o;)a=await e(a,t,s++);return a}finally{o||null===(n=r.return)||void 0===n||n.call(r)}function i(t){const e=t.next();if(e.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return e.value}}}(t,e):function(t,e,n){return(0,Qi.isAsyncIterable)(t)?o(t):r(t);async function r(t){let r=n,o=0;for(const n of t)r=await e(r,n,o++);return r}async function o(t){let r=n,o=0;for await(const n of t)r=await e(r,n,o++);return r}}(t,e,n)};var Xi={reduce:void 0};const Gi=C;Xi.reduce=function(t,e,n){return(0,Gi.isUndefined)(n)?function(t,e){var n;const r=t[Symbol.iterator]();let o;try{let t,a=i(r),s=1;for(;({value:t,done:o}=r.next()),!o;)a=e(a,t,s++);return a}finally{o||null===(n=r.return)||void 0===n||n.call(r)}function i(t){const e=t.next();if(e.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return e.value}}(t,e):function(t,e,n){let r=n,o=0;for(const n of t)r=e(r,n,o++);return r}(t,e,n)};var Zi={someAsync:void 0};const ta=C;Zi.someAsync=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))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 ea={};ea.some=void 0,ea.some=function(t,e){let n=0;for(const r of t){if(e(r,n))return!0;n++}return!1};var na={};na.lastAsync=void 0,na.lastAsync=async function(t){var e;const n=t[Symbol.asyncIterator]();let r;try{let t,o;for(;({value:t,done:r}=await n.next()),!r;)o=t;return o}finally{r||await(null===(e=n.return)||void 0===e?void 0:e.call(n))}};var ra={};ra.last=void 0,ra.last=function(t){var e;const n=t[Symbol.iterator]();let r;try{let t,o;for(;({value:t,done:r}=n.next()),!r;)o=t;return o}finally{r||null===(e=n.return)||void 0===e||e.call(n)}};var oa={toArrayAsync:void 0};const ia=Pi;oa.toArrayAsync=function(t){return(0,ia.consume)(t,(async t=>{const e=[];for await(const n of t)e.push(n);return e}))};var aa={toArray:void 0};const sa=Pi;aa.toArray=function(t){return(0,sa.consume)(t,(t=>Array.from(t)))};var ca={toSetAsync:void 0};const ua=Pi;ca.toSetAsync=function(t){return(0,ua.consume)(t,(async t=>{const e=new Set;for await(const n of t)e.add(n);return e}))};var la={toSet:void 0};const fa=Pi;la.toSet=function(t){return(0,fa.consume)(t,(t=>new Set(t)))},function(t){var e=i&&i.__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=i&&i.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};n(Pi,t),n(qi,t),n(Mi,t),n(zi,t),n(Ui,t),n(Di,t),n(Ji,t),n(Vi,t),n(Li,t),n(Wi,t),n(Ki,t),n(Yi,t),n(Hi,t),n($i,t),n(Xi,t),n(Zi,t),n(ea,t),n(na,t),n(ra,t),n(oa,t),n(aa,t),n(ca,t),n(la,t)}(Bi),function(t){var e=i&&i.__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=i&&i.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};n(u,t),n(Bi,t)}(c);var da={},ya={};ya.traverseErrorPrototypeChain=void 0,ya.traverseErrorPrototypeChain=function*(t){let e=t;for(;(e=Object.getPrototypeOf(e))&&(yield e,e!==Error.prototype););},da.getErrorNames=void 0;const ha=C,va=ya;da.getErrorNames=function*(t){var e;if((0,ha.isError)(t))for(const n of(0,va.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 pa={isSerializableError:void 0};const ma=C;pa.isSerializableError=function(t){return(0,ma.isObject)(t)&&(0,ma.isString)(t.name)&&(0,ma.isString)(t.message)&&((0,ma.isString)(t.stack)||(0,ma.isNull)(t.stack))&&(0,ma.isArray)(t.ancestors)&&t.ancestors.every(ma.isString)},s.CustomError=void 0;const ba=c,ga=da,wa=C,Aa=pa;class Ia extends Error{get name(){var t,e;return null!==(e=null!==(t=(0,ba.first)((0,ga.getErrorNames)(this)))&&void 0!==t?t:Ia.name)&&void 0!==e?e:"CustomError"}static[Symbol.hasInstance](t){var e;if((0,wa.isError)(t)||(0,Aa.isSerializableError)(t)){const n=[null!==(e=this.prototype.constructor.name)&&void 0!==e?e:this.name,...(0,ga.getErrorNames)(this.prototype)].reverse(),r=(0,ba.toArray)((0,ga.getErrorNames)(t)).reverse();return n.every(((t,e)=>t===r[e]))}return!1}}s.CustomError=Ia;var Sa={AssertionError:void 0};const _a=s;class Ta extends _a.CustomError{}Sa.AssertionError=Ta;var xa={normalize:void 0};const Ea=da,Oa=c;xa.normalize=function(t){var e;const[n,...r]=(0,Oa.toArray)((0,Ea.getErrorNames)(t));return{name:n,ancestors:r,message:t.message,stack:null!==(e=t.stack)&&void 0!==e?e:null}};var ja={},ka={},Na={};Na.pass=void 0,Na.pass=function(){},function(t){var e=i&&i.__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]});(i&&i.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)})(Na,t)}(ka),ja.hydrate=void 0;const Ba=ka;function Pa(t,e){const n=function(){(0,Ba.pass)()};return(n.prototype=Object.create(t.prototype)).constructor=n,Object.defineProperty(n,"name",{value:e}),n}ja.hydrate=function(t){var e;const n=[t.name,...t.ancestors].slice(0,-1).reverse();let r=Error;for(const t of n)r=Pa(r,t);const o=new r;return o.name=t.name,o.message=t.message,o.stack=null!==(e=t.stack)&&void 0!==e?e:void 0,o};var qa={assert:void 0};const Ca=Sa;qa.assert=function(t,e){if(!t)throw new Ca.AssertionError(e)},function(t){var e=i&&i.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(e,n);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,o)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),n=i&&i.__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(Sa,t),n(pa,t),n(xa,t),n(ja,t),n(qa,t),n(da,t),n(ya,t)}(a);var Ma={},za={},Ra={},Ua={},Da={};Da.go=void 0,Da.go=function(t){return t()},function(t){var e=i&&i.__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]});(i&&i.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)})(Da,t)}(Ua),Ra.chunkAsync=void 0;const Fa=Ua,Ja=a;Ra.chunkAsync=function(t,e){return(0,Ja.assert)(Number.isInteger(e),"The parameter size must be an integer"),(0,Ja.assert)(e>0,"The parameter size must be greater than 0"),(0,Fa.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 Va={},La={},Wa={};function Ka(t){return Array.isArray(t)}Wa.isntEmptyArray=Wa.isEmptyArray=Wa.isntArray=Wa.isArray=void 0,Wa.isArray=Ka,Wa.isntArray=function(t){return!Ka(t)},Wa.isEmptyArray=function(t){return 0===t.length},Wa.isntEmptyArray=function(t){return 0!==t.length};var Ya={},Ha={};function $a(t){return null===t}Ha.isntNull=Ha.isNull=void 0,Ha.isNull=$a,Ha.isntNull=function(t){return!$a(t)};var Qa={};function Xa(t){return void 0===t}Qa.isntUndefined=Qa.isUndefined=void 0,Qa.isUndefined=Xa,Qa.isntUndefined=function(t){return!Xa(t)};var Ga={};function Za(t){return"function"==typeof t}Ga.isntFunction=Ga.isFunction=void 0,Ga.isFunction=Za,Ga.isntFunction=function(t){return!Za(t)},Ya.isntAsyncIterable=Ya.isAsyncIterable=void 0;const ts=Ha,es=Qa,ns=Ga;function rs(t){return(0,ts.isntNull)(t)&&(0,es.isntUndefined)(t)&&(0,ns.isFunction)(t[Symbol.asyncIterator])}Ya.isAsyncIterable=rs,Ya.isntAsyncIterable=function(t){return!rs(t)};var os={};function is(t){return"bigint"==typeof t}os.isntBigInt=os.isBigInt=void 0,os.isBigInt=is,os.isntBigInt=function(t){return!is(t)};var as={};function ss(t){return"boolean"==typeof t}as.isntBoolean=as.isBoolean=void 0,as.isBoolean=ss,as.isntBoolean=function(t){return!ss(t)};var cs={},us={};function ls(t){return"string"==typeof t}us.isntString=us.isString=void 0,us.isString=ls,us.isntString=function(t){return!ls(t)},cs.isntChar=cs.isChar=void 0;const fs=us;function ds(t){return(0,fs.isString)(t)&&1===t.length}cs.isChar=ds,cs.isntChar=function(t){return!ds(t)};var ys={};function hs(t){return t instanceof Date}ys.isntDate=ys.isDate=void 0,ys.isDate=hs,ys.isntDate=function(t){return!hs(t)};var vs={};vs.inEnum=void 0,vs.inEnum=function(t,e){return Object.values(e).includes(t)};var ps={};function ms(t){return t instanceof Error}ps.isntError=ps.isError=void 0,ps.isError=ms,ps.isntError=function(t){return!ms(t)};var bs={};function gs(t){return!t}bs.isntFalsy=bs.isFalsy=void 0,bs.isFalsy=gs,bs.isntFalsy=function(t){return!gs(t)};var ws={};ws.isntIterable=ws.isIterable=void 0;const As=Ha,Is=Qa,Ss=Ga;function _s(t){return(0,As.isntNull)(t)&&(0,Is.isntUndefined)(t)&&(0,Ss.isFunction)(t[Symbol.iterator])}ws.isIterable=_s,ws.isntIterable=function(t){return!_s(t)};var Ts={},xs={};function Es(t){return"number"==typeof t}function Os(t){return Number.isNaN(t)}xs.isntNaN=xs.isNaN=xs.isNegativeInfinity=xs.isPositiveInfinity=xs.isFinite=xs.isntNumber=xs.isNumber=void 0,xs.isNumber=Es,xs.isntNumber=function(t){return!Es(t)},xs.isFinite=function(t){return Number.isFinite(t)},xs.isPositiveInfinity=function(t){return t===1/0},xs.isNegativeInfinity=function(t){return t===-1/0},xs.isNaN=Os,xs.isntNaN=function(t){return!Os(t)};var js={},ks="object"==typeof i&&i&&i.Object===Object&&i,Ns="object"==typeof self&&self&&self.Object===Object&&self,Bs=(ks||Ns||Function("return this")()).Symbol,Ps=Bs,qs=Object.prototype,Cs=qs.hasOwnProperty,Ms=qs.toString,zs=Ps?Ps.toStringTag:void 0;var Rs=function(t){var e=Cs.call(t,zs),n=t[zs];try{t[zs]=void 0;var r=!0}catch(t){}var o=Ms.call(t);return r&&(e?t[zs]=n:delete t[zs]),o},Us=Object.prototype.toString;var Ds=Rs,Fs=function(t){return Us.call(t)},Js=Bs?Bs.toStringTag:void 0;var Vs=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Js&&Js in Object(t)?Ds(t):Fs(t)};var Ls=function(t,e){return function(n){return t(e(n))}}(Object.getPrototypeOf,Object);var Ws=Vs,Ks=Ls,Ys=function(t){return null!=t&&"object"==typeof t},Hs=Function.prototype,$s=Object.prototype,Qs=Hs.toString,Xs=$s.hasOwnProperty,Gs=Qs.call(Object);var Zs=function(t){if(!Ys(t)||"[object Object]"!=Ws(t))return!1;var e=Ks(t);if(null===e)return!0;var n=Xs.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Qs.call(n)==Gs},tc=i&&i.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};js.isntEmptyObject=js.isEmptyObject=js.isntPlainObject=js.isPlainObject=js.isntObject=js.isObject=void 0;const ec=tc(Zs);function nc(t){return null!==t&&"object"==typeof t}function rc(t){return(0,ec.default)(t)}js.isObject=nc,js.isntObject=function(t){return!nc(t)},js.isPlainObject=rc,js.isntPlainObject=function(t){return!rc(t)},js.isEmptyObject=function(t){return 0===Object.keys(t).length},js.isntEmptyObject=function(t){return 0!==Object.keys(t).length},Ts.isntJsonable=Ts.isJsonable=Ts.isntJson=Ts.isJson=void 0;const oc=Ha,ic=as,ac=us,sc=xs,cc=Wa,uc=js;function lc(t){return(0,oc.isNull)(t)||(0,ic.isBoolean)(t)||(0,ac.isString)(t)||(0,sc.isNumber)(t)||(0,cc.isArray)(t)&&t.every(lc)||(0,uc.isPlainObject)(t)&&Object.values(t).every(lc)}Ts.isJson=lc,Ts.isntJson=function(t){return!lc(t)},Ts.isJsonable=function(t){try{return JSON.stringify(t),!0}catch(t){return!1}},Ts.isntJsonable=function t(e){return!t()};var fc={};fc.isPromiseLike=fc.isntPromiseLike=fc.isntPromise=fc.isPromise=void 0;const dc=js,yc=Ga;function hc(t){return t instanceof Promise}function vc(t){return(0,dc.isObject)(t)&&(0,yc.isFunction)(t.then)}fc.isPromise=hc,fc.isntPromise=function(t){return!hc(t)},fc.isntPromiseLike=function(t){return!vc(t)},fc.isPromiseLike=vc;var pc={};pc.isAbsoluteURL=void 0,pc.isAbsoluteURL=function(t){try{return new URL(t),!0}catch(t){return!1}},function(t){var e=i&&i.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(e,n);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,o)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),n=i&&i.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};n(Wa,t),n(Ya,t),n(os,t),n(as,t),n(cs,t),n(ys,t),n(vs,t),n(ps,t),n(bs,t),n(Ga,t),n(ws,t),n(Ts,t),n(Ha,t),n(xs,t),n(js,t),n(fc,t),n(us,t),n(Qa,t),n(pc,t)}(La),Va.chunkByAsync=void 0;const mc=La;Va.chunkByAsync=function(t,e){return(0,mc.isAsyncIterable)(t)?async function*(t){let n=[],r=0;for await(const o of t)n.push(o),await e(o,r)&&(yield n,n=[]),r++;n.length&&(yield n)}(t):async function*(t){let n=[],r=0;for(const o of t)n.push(o),await e(o,r)&&(yield n,n=[]),r++;n.length&&(yield n)}(t)};var bc={};bc.chunkBy=void 0,bc.chunkBy=function*(t,e){let n=[],r=0;for(const o of t)n.push(o),e(o,r)&&(yield n,n=[]),r++;n.length&&(yield n)};var gc={chunk:void 0};const wc=Ua,Ac=a;gc.chunk=function(t,e){return(0,Ac.assert)(Number.isInteger(e),"The parameter size must be an integer"),(0,Ac.assert)(e>0,"The parameter size must be greater than 0"),(0,wc.go)((function*(){let n=[];for(const r of t)n.push(r),n.length>=e&&(yield n,n=[]);n.length&&(yield n)}))};var Ic={concatAsync:void 0};const Sc=La,_c=Ua;Ic.concatAsync=function(t,...e){return(0,_c.go)((async function*(){for(const n of[t,...e])if((0,Sc.isAsyncIterable)(n))for await(const t of n)yield t;else for(const t of n)yield t}))};var Tc={concat:void 0};const xc=Ua;Tc.concat=function(t,...e){return(0,xc.go)((function*(){for(const n of[t,...e])yield*n}))};var Ec={},Oc={};Oc.copyIterable=Oc.copyAsyncIterable=void 0,Oc.copyAsyncIterable=async function*(t){for await(const e of t)yield e},Oc.copyIterable=function*(t){for(const e of t)yield e},Ec.dropAsync=void 0;const jc=Ua,kc=Oc,Nc=a;Ec.dropAsync=function(t,e){return(0,Nc.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Nc.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,kc.copyAsyncIterable)(t):(0,jc.go)((async function*(){var n;const r=t[Symbol.asyncIterator]();let o;try{let t;for(;!(({value:t,done:o}=await r.next()),o||e<=0);)e--;for(;!o;)yield t,({value:t,done:o}=await r.next())}finally{o||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}}))};var Bc={dropRightAsync:void 0};const Pc=Ua,qc=Oc,Cc=a;Bc.dropRightAsync=function(t,e){return(0,Cc.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Cc.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,qc.copyAsyncIterable)(t):(0,Pc.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 Mc={dropRight:void 0};const zc=Ua,Rc=Oc,Uc=a;Mc.dropRight=function(t,e){return(0,Uc.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Uc.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,Rc.copyIterable)(t):(0,zc.go)((function*(){const n=Array.from(t);yield*n.slice(0,-e)}))};var Dc={dropUntilAsync:void 0};const Fc=La;Dc.dropUntilAsync=function(t,e){return(0,Fc.isAsyncIterable)(t)?async function*(t){var n;const r=t[Symbol.asyncIterator]();let o;try{let t,i=0;for(;!(({value:t,done:o}=await r.next()),o||await e(t,i++)););for(;!o;)yield t,({value:t,done:o}=await r.next())}finally{o||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 o;try{let t,i=0;for(;!(({value:t,done:o}=r.next()),o||await e(t,i++)););for(;!o;)yield t,({value:t,done:o}=r.next())}finally{o||null===(n=r.return)||void 0===n||n.call(r)}}(t)};var Jc={};Jc.dropUntil=void 0,Jc.dropUntil=function*(t,e){var n;const r=t[Symbol.iterator]();let o;try{let t,i=0;for(;!(({value:t,done:o}=r.next()),o||e(t,i++)););for(;!o;)yield t,({value:t,done:o}=r.next())}finally{o||null===(n=r.return)||void 0===n||n.call(r)}};var Vc={drop:void 0};const Lc=Ua,Wc=Oc,Kc=a;Vc.drop=function(t,e){return(0,Kc.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Kc.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,Wc.copyIterable)(t):(0,Lc.go)((function*(){var n;const r=t[Symbol.iterator]();let o;try{let t;for(;!(({value:t,done:o}=r.next()),o||e<=0);)e--;for(;!o;)yield t,({value:t,done:o}=r.next())}finally{o||null===(n=r.return)||void 0===n||n.call(r)}}))};var Yc={filterAsync:void 0};const Hc=La;Yc.filterAsync=function(t,e){return(0,Hc.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 $c={};$c.filter=void 0,$c.filter=function*(t,e){let n=0;for(const r of t)e(r,n)&&(yield r),n++};var Qc={},Xc={},Gc={flattenByAsync:void 0};const Zc=La;function tu(t){return(0,Zc.isIterable)(t)&&(0,Zc.isntChar)(t)}Gc.flattenByAsync=function(t,e){return(0,Zc.isAsyncIterable)(t)?async function*(t){const r=1;for await(const o of t)tu(o)&&await e(o,r)?yield*n(o,r+1):yield o}(t):function(t){return n(t,1)}(t);async function*n(t,r){for(const o of t)tu(o)&&await e(o,r)?yield*n(o,r+1):yield o}},Xc.flattenDeepAsync=void 0;const eu=Gc,nu=a;Xc.flattenDeepAsync=function(t,e=1/0){return(0,nu.assert)(e===1/0||Number.isInteger(e),"The parameter depth must be an integer"),(0,nu.assert)(e>=0,"The parameter depth must be greater than or equal to 0"),(0,eu.flattenByAsync)(t,((t,n)=>n<=e))},Qc.flattenAsync=void 0;const ru=Xc;Qc.flattenAsync=function(t){return(0,ru.flattenDeepAsync)(t,1)};var ou={flattenBy:void 0};const iu=La;ou.flattenBy=function(t,e){return function*t(n,r){for(const i of n)o=i,(0,iu.isIterable)(o)&&(0,iu.isntChar)(o)&&e(i,r)?yield*t(i,r+1):yield i;var o}(t,1)};var au={flattenDeep:void 0};const su=ou,cu=a;au.flattenDeep=function(t,e=1/0){return(0,cu.assert)(e===1/0||Number.isInteger(e),"The parameter depth must be an integer"),(0,cu.assert)(e>=0,"The parameter depth must be greater than or equal to 0"),(0,su.flattenBy)(t,((t,n)=>n<=e))};var uu={flatten:void 0};const lu=au;uu.flatten=function(t){return(0,lu.flattenDeep)(t,1)};var fu={mapAsync:void 0};const du=La;fu.mapAsync=function(t,e){return(0,du.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 yu={};yu.map=void 0,yu.map=function*(t,e){let n=0;for(const r of t)yield e(r,n),n++};var hu={repeatAsync:void 0};const vu=Ua,pu=a;hu.repeatAsync=function(t,e){return(0,pu.assert)(e===1/0||Number.isInteger(e),"The parameter times must be an integer"),(0,pu.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,vu.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 mu={repeat:void 0};const bu=Ua,gu=a;mu.repeat=function(t,e){return(0,gu.assert)(e===1/0||Number.isInteger(e),"The parameter times must be an integer"),(0,gu.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,bu.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 wu={sliceAsync:void 0};const Au=Ua,Iu=a;wu.sliceAsync=function(t,e,n=1/0){return(0,Iu.assert)(Number.isInteger(e),"The parameter start must be an integer"),(0,Iu.assert)(e>=0,"The parameter start must be greater than or equal to 0"),(0,Iu.assert)(Number.isInteger(n),"The parameter end must be an integer"),(0,Iu.assert)(n>=e,"The parameter end must be greater than or equal to start"),(0,Au.go)((async function*(){let r=0;for await(const o of t){if(r>=n)break;r>=e&&(yield o),r++}}))};var Su={slice:void 0};const _u=Ua,Tu=a;Su.slice=function(t,e,n=1/0){return(0,Tu.assert)(Number.isInteger(e),"The parameter start must be an integer"),(0,Tu.assert)(e>=0,"The parameter start must be greater than or equal to 0"),(0,Tu.assert)(Number.isInteger(n),"The parameter end must be an integer"),(0,Tu.assert)(n>=e,"The parameter end must be greater than or equal to start"),(0,_u.go)((function*(){let r=0;for(const o of t){if(r>=n)break;r>=e&&(yield o),r++}}))};var xu={};xu.splitAsync=void 0,xu.splitAsync=async function*(t,e){let n=[];for await(const r of t)r===e?(yield n,n=[]):n.push(r);yield n};var Eu={splitByAsync:void 0};const Ou=La;Eu.splitByAsync=function(t,e){return(0,Ou.isAsyncIterable)(t)?async function*(t){let n=[],r=0;for await(const o of t)await e(o,r)?(yield n,n=[]):n.push(o),r++;yield n}(t):async function*(t){let n=[],r=0;for(const o of t)await e(o,r)?(yield n,n=[]):n.push(o),r++;yield n}(t)};var ju={};ju.splitBy=void 0,ju.splitBy=function*(t,e){let n=[],r=0;for(const o of t)e(o,r)?(yield n,n=[]):n.push(o),r++;yield n};var ku={};ku.split=void 0,ku.split=function*(t,e){let n=[];for(const r of t)r===e?(yield n,n=[]):n.push(r);yield n};var Nu={takeAsync:void 0};const Bu=Ua,Pu=a;Nu.takeAsync=function(t,e){return(0,Pu.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Pu.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,Bu.go)((async function*(){if(0!==e)for await(const n of t)if(yield n,0===--e)break}))};var qu={takeRightAsync:void 0};const Cu=Ua,Mu=a;qu.takeRightAsync=function(t,e){return(0,Mu.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Mu.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,Cu.go)((async function*(){var n;const r=t[Symbol.asyncIterator]();let o;try{const t=[];let i;for(;({value:i,done:o}=await r.next()),!o;)t.push(i),t.length>e&&t.shift();yield*t}finally{o||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}}))};var zu={takeRight:void 0};const Ru=Ua,Uu=a;zu.takeRight=function(t,e){return(0,Uu.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Uu.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,Ru.go)((function*(){var n;const r=t[Symbol.iterator]();let o;try{const t=[];let i;for(;({value:i,done:o}=r.next()),!o;)t.push(i),t.length>e&&t.shift();yield*t}finally{o||null===(n=r.return)||void 0===n||n.call(r)}}))};var Du={takeUntilAsync:void 0};const Fu=La;Du.takeUntilAsync=function(t,e){return(0,Fu.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 Ju={};Ju.takeUntil=void 0,Ju.takeUntil=function*(t,e){let n=0;for(const r of t){if(e(r,n))break;yield r,n++}};var Vu={take:void 0};const Lu=Ua,Wu=a;Vu.take=function(t,e){return(0,Wu.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Wu.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,Lu.go)((function*(){if(0!==e)for(const n of t)if(yield n,0===--e)break}))};var Ku={tapAsync:void 0};const Yu=La;Ku.tapAsync=function(t,e){return(0,Yu.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 Hu={};Hu.tap=void 0,Hu.tap=function*(t,e){let n=0;for(const r of t)e(r,n),yield r,n++};var $u={};$u.toAsyncIterable=void 0,$u.toAsyncIterable=async function*(t){for(const e of t)yield e};var Qu={};Qu.transformAsync=void 0,Qu.transformAsync=async function*(t,e){yield*e(t)};var Xu={};Xu.transform=void 0,Xu.transform=function*(t,e){yield*e(t)};var Gu={};Gu.uniqAsync=void 0,Gu.uniqAsync=async function*(t){const e=new Set;for await(const n of t)e.has(n)||(yield n,e.add(n))};var Zu={uniqByAsync:void 0};const tl=La;Zu.uniqByAsync=function(t,e){return(0,tl.isAsyncIterable)(t)?async function*(t){const n=new Set;let r=0;for await(const o of t){const t=await e(o,r);n.has(t)||(yield o,n.add(t)),r++}}(t):async function*(t){const n=new Set;let r=0;for(const o of t){const t=await e(o,r);n.has(t)||(yield o,n.add(t)),r++}}(t)};var el={};el.uniqBy=void 0,el.uniqBy=function*(t,e){const n=new Set;let r=0;for(const o of t){const t=e(o,r);n.has(t)||(yield o,n.add(t)),r++}};var nl={};nl.uniq=void 0,nl.uniq=function*(t){const e=new Set;for(const n of t)e.has(n)||(yield n,e.add(n))};var rl={zipAsync:void 0};const ol=La;var il;!function(t){t[t.Sync=0]="Sync",t[t.Async=1]="Async"}(il||(il={})),rl.zipAsync=function(t,...e){return async function*(...t){var e,n,r,o;const i=t.length,a=t.map((t=>(0,ol.isAsyncIterable)(t)?[il.Async,t[Symbol.asyncIterator]()]:[il.Sync,t[Symbol.iterator]()])),s=a.map((()=>!1));try{for(;;){const t=new Array(i);for(let e=0;e<i;e++){const[n,r]=a[e];let o;if(o=n===il.Async?await r.next():r.next(),o.done)return void(s[e]=!0);t[e]=o.value}yield t}}finally{const t=a.filter(((t,e)=>!s[e]));for(const[i,a]of t)i===il.Async?await(null===(n=(e=a).return)||void 0===n?void 0:n.call(e)):null===(o=(r=a).return)||void 0===o||o.call(r)}}(t,...e)};var al={};al.zip=void 0,al.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 o=0;o<e;o++){const{value:e,done:i}=n[o].next();if(i)return void(r[o]=!0);t[o]=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=i&&i.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(e,n);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,o)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),n=i&&i.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};n(Ra,t),n(Va,t),n(bc,t),n(gc,t),n(Ic,t),n(Tc,t),n(Ec,t),n(Bc,t),n(Mc,t),n(Dc,t),n(Jc,t),n(Vc,t),n(Yc,t),n($c,t),n(Qc,t),n(Gc,t),n(ou,t),n(Xc,t),n(au,t),n(uu,t),n(fu,t),n(yu,t),n(hu,t),n(mu,t),n(wu,t),n(Su,t),n(xu,t),n(Eu,t),n(ju,t),n(ku,t),n(Nu,t),n(qu,t),n(zu,t),n(Du,t),n(Ju,t),n(Vu,t),n(Ku,t),n(Hu,t),n($u,t),n(Qu,t),n(Xu,t),n(Gu,t),n(Zu,t),n(el,t),n(nl,t),n(rl,t),n(al,t)}(za);var sl={},cl={};cl.consume=void 0,cl.consume=function(t,e){return e(t)};var ul={eachAsync:void 0};const ll=La;ul.eachAsync=function(t,e){return(0,ll.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 fl={};fl.each=void 0,fl.each=function(t,e){let n=0;for(const r of t)e(r,n),n++};var dl={everyAsync:void 0};const yl=La;dl.everyAsync=function(t,e){return(0,yl.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 hl={};hl.every=void 0,hl.every=function(t,e){let n=0;for(const r of t){if(!e(r,n))return!1;n++}return!0};var vl={findAsync:void 0};const pl=La;vl.findAsync=function(t,e){return(0,pl.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 ml={};ml.find=void 0,ml.find=function(t,e){let n=0;for(const r of t){if(e(r,n))return r;n++}};var bl={};bl.firstAsync=void 0,bl.firstAsync=async function(t){for await(const e of t)return e};var gl={};gl.first=void 0,gl.first=function(t){for(const e of t)return e};var wl={};wl.includesAsync=void 0,wl.includesAsync=async function(t,e){for await(const n of t)if(n===e)return!0;return!1};var Al={};Al.includes=void 0,Al.includes=function(t,e){for(const n of t)if(n===e)return!0;return!1};var Il={};Il.matchAsync=void 0,Il.matchAsync=async function(t,e){const n=e.length;let r=0;for await(const o of t)if(o===e[r]&&r++,r===n)return!0;return!1};var Sl={};Sl.match=void 0,Sl.match=function(t,e){const n=e.length;let r=0;for(const o of t)if(o===e[r]&&r++,r===n)return!0;return!1};var _l={reduceAsync:void 0};const Tl=La;_l.reduceAsync=function(t,e,n){return(0,Tl.isUndefined)(n)?function(t,e){return(0,Tl.isAsyncIterable)(t)?n(t):r(t);async function n(t){var n;const r=t[Symbol.asyncIterator]();let o;try{let t,a=await i(r),s=1;for(;({value:t,done:o}=await r.next()),!o;)a=await e(a,t,s++);return a}finally{o||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}async function i(t){const e=await t.next();if(e.done)throw o=!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 o;try{let t,a=i(r),s=1;for(;({value:t,done:o}=r.next()),!o;)a=await e(a,t,s++);return a}finally{o||null===(n=r.return)||void 0===n||n.call(r)}function i(t){const e=t.next();if(e.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return e.value}}}(t,e):function(t,e,n){return(0,Tl.isAsyncIterable)(t)?o(t):r(t);async function r(t){let r=n,o=0;for(const n of t)r=await e(r,n,o++);return r}async function o(t){let r=n,o=0;for await(const n of t)r=await e(r,n,o++);return r}}(t,e,n)};var xl={reduce:void 0};const El=La;xl.reduce=function(t,e,n){return(0,El.isUndefined)(n)?function(t,e){var n;const r=t[Symbol.iterator]();let o;try{let t,a=i(r),s=1;for(;({value:t,done:o}=r.next()),!o;)a=e(a,t,s++);return a}finally{o||null===(n=r.return)||void 0===n||n.call(r)}function i(t){const e=t.next();if(e.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return e.value}}(t,e):function(t,e,n){let r=n,o=0;for(const n of t)r=e(r,n,o++);return r}(t,e,n)};var Ol={someAsync:void 0};const jl=La;Ol.someAsync=function(t,e){return(0,jl.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 kl={};kl.some=void 0,kl.some=function(t,e){let n=0;for(const r of t){if(e(r,n))return!0;n++}return!1};var Nl={};Nl.lastAsync=void 0,Nl.lastAsync=async function(t){var e;const n=t[Symbol.asyncIterator]();let r;try{let t,o;for(;({value:t,done:r}=await n.next()),!r;)o=t;return o}finally{r||await(null===(e=n.return)||void 0===e?void 0:e.call(n))}};var Bl={};Bl.last=void 0,Bl.last=function(t){var e;const n=t[Symbol.iterator]();let r;try{let t,o;for(;({value:t,done:r}=n.next()),!r;)o=t;return o}finally{r||null===(e=n.return)||void 0===e||e.call(n)}};var Pl={toArrayAsync:void 0};const ql=cl;Pl.toArrayAsync=function(t){return(0,ql.consume)(t,(async t=>{const e=[];for await(const n of t)e.push(n);return e}))};var Cl={toArray:void 0};const Ml=cl;Cl.toArray=function(t){return(0,Ml.consume)(t,(t=>Array.from(t)))};var zl={toSetAsync:void 0};const Rl=cl;zl.toSetAsync=function(t){return(0,Rl.consume)(t,(async t=>{const e=new Set;for await(const n of t)e.add(n);return e}))};var Ul={toSet:void 0};const Dl=cl;Ul.toSet=function(t){return(0,Dl.consume)(t,(t=>new Set(t)))};var Fl={};Fl.count=void 0,Fl.count=function(t){let e=0;for(const n of t)e++;return e};var Jl={};Jl.countAsync=void 0,Jl.countAsync=async function(t){let e=0;for await(const n of t)e++;return e},function(t){var e=i&&i.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(e,n);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,o)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),n=i&&i.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};n(cl,t),n(ul,t),n(fl,t),n(dl,t),n(hl,t),n(vl,t),n(ml,t),n(bl,t),n(gl,t),n(wl,t),n(Al,t),n(Il,t),n(Sl,t),n(_l,t),n(xl,t),n(Ol,t),n(kl,t),n(Nl,t),n(Bl,t),n(Pl,t),n(Cl,t),n(zl,t),n(Ul,t),n(Fl,t),n(Jl,t)}(sl),function(t){var e=i&&i.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(e,n);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,o)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),n=i&&i.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};n(za,t),n(sl,t)}(Ma);class Vl{constructor(t){this.map=new Map,a.assert(Number.isInteger(t),"The parameter limit must be an integer"),a.assert(t>0,"The parameter limit must be a positive value"),this.limit=t}get[Symbol.toStringTag](){return this.constructor.name}get size(){return this.map.size}set(t,e){return this.map.has(t)?this.updateItem(t,e):(this.map.size===this.limit&&this.map.delete(this.getColdestKey()),this.map.set(t,e)),this}has(t){return this.map.has(t)}get(t){if(!this.has(t))return;const e=this.map.get(t);return this.updateItem(t,e),e}delete(t){return this.map.delete(t)}clear(){this.map.clear()}updateItem(t,e){this.map.delete(t),this.map.set(t,e)}getColdestKey(){return Ma.first(this.map.keys())}}var Ll={},Wl={},Kl={},Yl={};Yl.random=void 0,Yl.random=function(t,e){return Math.random()*(e-t)+t};var Hl={};Hl.randomInt=void 0,Hl.randomInt=function(t,e){return t=Math.ceil(t),e=Math.floor(e),Math.floor(Math.random()*(e-t))+t};var $l={};$l.randomIntInclusive=void 0,$l.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=i&&i.__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=i&&i.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};n(Yl,t),n(Hl,t),n($l,t)}(Kl),Wl.calculateExponentialBackoffTimeout=void 0;const Ql=Kl;Wl.calculateExponentialBackoffTimeout=function({baseTimeout:t,retries:e,maxTimeout:n=1/0,factor:r=2,jitter:o=!0}){const i=Math.min(r**e*t,n);return o?(0,Ql.randomIntInclusive)(0,i):i};var Xl={};Xl.setTimeout=void 0,Xl.setTimeout=function(t,e){const n=globalThis.setTimeout(e,t);return()=>clearTimeout(n)};var Gl={setSchedule:void 0};const Zl=Xl;Gl.setSchedule=function(t,e){const n=t-Date.now();return(0,Zl.setTimeout)(n,e)};var tf={};tf.setInterval=void 0,tf.setInterval=function(t,e){const n=globalThis.setInterval(e,t);return()=>clearInterval(n)};var ef={setImmediate:void 0};const nf=Xl;ef.setImmediate=function(t){if(globalThis.setImmediate){const e=globalThis.setImmediate(t);return()=>clearImmediate(e)}return(0,nf.setTimeout)(0,t)};var rf={setTimeoutLoop:void 0};const of=Xl;rf.setTimeoutLoop=function(t,e){let n=!1,r=(0,of.setTimeout)(t,(async function o(){await e(),n||(r=(0,of.setTimeout)(t,o))}));return()=>{n=!0,r()}};var af={setDynamicTimeoutLoop:void 0};const sf=Xl;af.setDynamicTimeoutLoop=function(t,e){let n=!1,r=(0,sf.setTimeout)(t,(async function o(){const i=Date.now();await e();const a=Date.now()-i;n||(r=(0,sf.setTimeout)(Math.max(t-a,0),o))}));return()=>{n=!0,r()}},function(t){var e=i&&i.__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=i&&i.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};n(Wl,t),n(Xl,t),n(Gl,t),n(tf,t),n(ef,t),n(rf,t),n(af,t)}(Ll);class cf{constructor(){this.map=new Map,this.itemMetadataSortedByExpirationTime=[]}get[Symbol.toStringTag](){return this.constructor.name}get size(){return this.map.size}set(t,e,n){return this.map.set(t,e),this.removeItemMetadata(t),this.addItemMetadata(t,Date.now()+n),this}has(t){return this.map.has(t)}get(t){return this.map.get(t)}delete(t){const e=this.map.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;this.map.clear(),null===(t=this.cancelClearTimeout)||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=>this.map.delete(t.key)))}rescheduleClearTimeout(){var t;if(null===(t=this.cancelClearTimeout)||void 0===t||t.call(this),this.itemMetadataSortedByExpirationTime.length>0){const t=this.itemMetadataSortedByExpirationTime[0];if(Number.isFinite(t.expirationTime)){const e=Ll.setSchedule(t.expirationTime,(()=>{this.clearExpiredItems(Date.now()),this.rescheduleClearTimeout()}));this.cancelClearTimeout=()=>{e(),this.cancelClearTimeout=void 0}}}}}class uf{constructor(t){this.map=new Map,this.itemMetadataSortedByExpirationTime=[],a.assert(Number.isInteger(t),"The parameter limit must be an integer"),a.assert(t>0,"The parameter limit must be a positive value"),this.limit=t}get[Symbol.toStringTag](){return this.constructor.name}get size(){return this.map.size}set(t,e,n){return this.map.has(t)?(this.updateItem(t,e),this.removeItemMetadata(t),this.addItemMetadata(t,Date.now()+n)):(this.map.size===this.limit&&this.map.delete(this.getColdestKey()),this.map.set(t,e),this.addItemMetadata(t,Date.now()+n)),this}has(t){return this.map.has(t)}get(t){if(this.has(t)){const e=this.map.get(t);return this.updateItem(t,e),e}}delete(t){const e=this.map.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;this.map.clear(),null===(t=this.cancelClearTimeout)||void 0===t||t.call(this),this.itemMetadataSortedByExpirationTime=[]}updateItem(t,e){this.map.delete(t),this.map.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=>this.map.delete(t.key)))}rescheduleClearTimeout(){var t;if(null===(t=this.cancelClearTimeout)||void 0===t||t.call(this),this.itemMetadataSortedByExpirationTime.length>0){const t=this.itemMetadataSortedByExpirationTime[0];if(Number.isFinite(t.expirationTime)){const e=Ll.setSchedule(t.expirationTime,(()=>{this.clearExpiredItems(Date.now()),this.rescheduleClearTimeout()}));this.cancelClearTimeout=()=>{e(),this.cancelClearTimeout=void 0}}}}getColdestKey(){return Ma.first(this.map.keys())}}class lf{constructor(t){this.value=t,this.children=new Map}}class ff{constructor(){this.root=new lf}get[Symbol.toStringTag](){return this.constructor.name}*entries(){yield*function*t(e,n){for(const[r,o]of e.children){const e=[...n,r];La.isntUndefined(o.value)&&(yield[e,o.value]),yield*t(o,e)}}(this.root,[])}keys(){return Ma.map(this.entries(),(([t])=>t))}values(){return Ma.map(this.entries(),(([t,e])=>e))}set(t,e){let n=this.root;for(const e of t)n.children.has(e)||n.children.set(e,new lf),n=n.children.get(e);return n.value=e,this}has(t){let e=this.root;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=this.root;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=this.root;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 Ma.toArray(Ma.zip(t,e)).reverse())if(r.children.delete(n),0!==r.children.size)break;return!0}}class df{constructor(t,e){this.schema=t,this._state=e}get state(){return this._state}matches(t){return this._state===t}can(t){return t in this.schema[this.state]}send(t){if(!this.can(t))throw new yf(this.state,t);this._state=this.schema[this.state][t]}}class yf extends a.CustomError{constructor(t,e){super(`State ${t} cannot react to event ${e}`)}}
|
|
2
2
|
/*! *****************************************************************************
|
|
3
3
|
Copyright (c) Microsoft Corporation.
|
|
4
4
|
|
|
@@ -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 hf=function(t,e){return(hf=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 vf(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}hf(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function pf(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 mf(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function bf(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))}function gf(t){return"function"==typeof t}function wf(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 Af=wf((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 Sf(t,e){if(t){var n=t.indexOf(e);0<=n&&t.splice(n,1)}}var If=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,o;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var a=pf(i),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 i.remove(this);var c=this.initialTeardown;if(gf(c))try{c()}catch(t){o=t instanceof Af?t.errors:[t]}var u=this._finalizers;if(u){this._finalizers=null;try{for(var l=pf(u),f=l.next();!f.done;f=l.next()){var d=f.value;try{xf(d)}catch(t){o=null!=o?o:[],t instanceof Af?o=bf(bf([],mf(o)),mf(t.errors)):o.push(t)}}}catch(t){n={error:t}}finally{try{f&&!f.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}}if(o)throw new Af(o)}},t.prototype.add=function(e){var n;if(e&&e!==this)if(this.closed)xf(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)&&Sf(e,t)},t.prototype.remove=function(e){var n=this._finalizers;n&&Sf(n,e),e instanceof t&&e._removeParent(this)},t.EMPTY=((e=new t).closed=!0,e),t}(),_f=If.EMPTY;function Tf(t){return t instanceof If||t&&"closed"in t&&gf(t.remove)&&gf(t.add)&&gf(t.unsubscribe)}function xf(t){gf(t)?t():t.unsubscribe()}var Ef={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Of=function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setTimeout.apply(void 0,bf([t,e],mf(n)))};function jf(){}function kf(t){t()}var Nf=function(t){function e(e){var n=t.call(this)||this;return n.isStopped=!1,e?(n.destination=e,Tf(e)&&e.add(n)):n.destination=zf,n}return vf(e,t),e.create=function(t,e,n){return new Cf(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}(If),Bf=Function.prototype.bind;function Pf(t,e){return Bf.call(t,e)}var qf=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){Mf(t)}},t.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(t){Mf(t)}else Mf(t)},t.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(t){Mf(t)}},t}(),Cf=function(t){function e(e,n,r){var o,i,a=t.call(this)||this;gf(e)||!e?o={next:null!=e?e:void 0,error:null!=n?n:void 0,complete:null!=r?r:void 0}:a&&Ef.useDeprecatedNextContext?((i=Object.create(e)).unsubscribe=function(){return a.unsubscribe()},o={next:e.next&&Pf(e.next,i),error:e.error&&Pf(e.error,i),complete:e.complete&&Pf(e.complete,i)}):o=e;return a.destination=new qf(o),a}return vf(e,t),e}(Nf);function Mf(t){var e;e=t,Of((function(){throw e}))}var zf={closed:!0,next:jf,error:function(t){throw t},complete:jf},Rf="function"==typeof Symbol&&Symbol.observable||"@@observable";function Uf(t){return t}function Df(t){return 0===t.length?Uf:1===t.length?t[0]:function(e){return t.reduce((function(t,e){return e(t)}),e)}}var Ff=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,o=this,i=(r=t)&&r instanceof Nf||function(t){return t&&gf(t.next)&&gf(t.error)&&gf(t.complete)}(r)&&Tf(r)?t:new Cf(t,e,n);return kf((function(){var t=o,e=t.operator,n=t.source;i.add(e?e.call(i,n):n?o._subscribe(i):o._trySubscribe(i))})),i},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=Jf(e))((function(e,r){var o=new Cf({next:function(e){try{t(e)}catch(t){r(t),o.unsubscribe()}},error:r,complete:e});n.subscribe(o)}))},t.prototype._subscribe=function(t){var e;return null===(e=this.source)||void 0===e?void 0:e.subscribe(t)},t.prototype[Rf]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Df(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=Jf(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 Jf(t){var e;return null!==(e=null!=t?t:Ef.Promise)&&void 0!==e?e:Promise}function Lf(t){return gf(null==t?void 0:t.lift)}function Vf(t,e,n,r,o){return new Wf(t,e,n,r,o)}var Wf=function(t){function e(e,n,r,o,i,a){var s=t.call(this,e)||this;return s.onFinalize=i,s.shouldUnsubscribe=a,s._next=n?function(t){try{n(t)}catch(t){e.error(t)}}:t.prototype._next,s._error=o?function(t){try{o(t)}catch(t){e.error(t)}finally{this.unsubscribe()}}:t.prototype._error,s._complete=r?function(){try{r()}catch(t){e.error(t)}finally{this.unsubscribe()}}:t.prototype._complete,s}return vf(e,t),e.prototype.unsubscribe=function(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;t.prototype.unsubscribe.call(this),!n&&(null===(e=this.onFinalize)||void 0===e||e.call(this))}},e}(Nf);function Kf(){return t=function(t,e){var n=null;t._refCount++;var r=Vf(e,void 0,void 0,void 0,(function(){if(!t||t._refCount<=0||0<--t._refCount)n=null;else{var r=t._connection,o=n;n=null,!r||o&&r!==o||r.unsubscribe(),e.unsubscribe()}}));t.subscribe(r),r.closed||(n=t.connect())},function(e){if(Lf(e))return e.lift((function(e){try{return t(e,this)}catch(t){this.error(t)}}));throw new TypeError("Unable to lift unknown Observable type")};var t}!function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subjectFactory=n,r._subject=null,r._refCount=0,r._connection=null,Lf(e)&&(r.lift=e.lift),r}vf(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype._teardown=function(){this._refCount=0;var t=this._connection;this._subject=this._connection=null,null==t||t.unsubscribe()},e.prototype.connect=function(){var t=this,e=this._connection;if(!e){e=this._connection=new If;var n=this.getSubject();e.add(this.source.subscribe(Vf(n,void 0,(function(){t._teardown(),n.complete()}),(function(e){t._teardown(),n.error(e)}),(function(){return t._teardown()})))),e.closed&&(this._connection=null,e=If.EMPTY)}return e},e.prototype.refCount=function(){return Kf()(this)}}(Ff);var Yf,Hf,$f={now:function(){return($f.delegate||performance).now()},delegate:void 0},Qf={schedule:function(t){var e=requestAnimationFrame,n=cancelAnimationFrame,r=e((function(e){n=void 0,t(e)}));return new If((function(){return null==n?void 0:n(r)}))},requestAnimationFrame:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Qf.delegate;return((null==n?void 0:n.requestAnimationFrame)||requestAnimationFrame).apply(void 0,bf([],mf(t)))},cancelAnimationFrame:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return cancelAnimationFrame.apply(void 0,bf([],mf(t)))},delegate:void 0};Hf=Qf.schedule,new Ff((function(t){var e=new If,n=Yf||$f,r=n.now(),o=function(i){var a=n.now();t.next({timestamp:Yf?a:i,elapsed:a-r}),t.closed||e.add(Hf(o))};return e.add(Hf(o)),e}));var Xf=wf((function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),Gf=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 vf(e,t),e.prototype.lift=function(t){var e=new Zf(this,this);return e.operator=t,e},e.prototype._throwIfClosed=function(){if(this.closed)throw new Xf},e.prototype.next=function(t){var e=this;kf((function(){var n,r;if(e._throwIfClosed(),!e.isStopped){e.currentObservers||(e.currentObservers=Array.from(e.observers));try{for(var o=pf(e.currentObservers),i=o.next();!i.done;i=o.next()){i.value.next(t)}}catch(t){n={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}}))},e.prototype.error=function(t){var e=this;kf((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;kf((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,o=n.isStopped,i=n.observers;return r||o?_f:(this.currentObservers=null,i.push(t),new If((function(){e.currentObservers=null,Sf(i,t)})))},e.prototype._checkFinalizedStatuses=function(t){var e=this,n=e.hasError,r=e.thrownError,o=e.isStopped;n?t.error(r):o&&t.complete()},e.prototype.asObservable=function(){var t=new Ff;return t.source=this,t},e.create=function(t,e){return new Zf(t,e)},e}(Ff),Zf=function(t){function e(e,n){var r=t.call(this)||this;return r.destination=e,r.source=n,r}return vf(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:_f},e}(Gf);!function(t){function e(e){var n=t.call(this)||this;return n._value=e,n}vf(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),e.prototype._subscribe=function(e){var n=t.prototype._subscribe.call(this,e);return!n.closed&&e.next(this._value),n},e.prototype.getValue=function(){var t=this,e=t.hasError,n=t.thrownError,r=t._value;if(e)throw n;return this._throwIfClosed(),r},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)}}(Gf);var td={now:function(){return(td.delegate||Date).now()},delegate:void 0};!function(t){function e(e,n,r){void 0===e&&(e=1/0),void 0===n&&(n=1/0),void 0===r&&(r=td);var o=t.call(this)||this;return o._bufferSize=e,o._windowTime=n,o._timestampProvider=r,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=n===1/0,o._bufferSize=Math.max(1,e),o._windowTime=Math.max(1,n),o}vf(e,t),e.prototype.next=function(e){var n=this,r=n.isStopped,o=n._buffer,i=n._infiniteTimeWindow,a=n._timestampProvider,s=n._windowTime;r||(o.push(e),!i&&o.push(a.now()+s)),this._trimBuffer(),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var e=this._innerSubscribe(t),n=this._infiniteTimeWindow,r=this._buffer.slice(),o=0;o<r.length&&!t.closed;o+=n?1:2)t.next(r[o]);return this._checkFinalizedStatuses(t),e},e.prototype._trimBuffer=function(){var t=this,e=t._bufferSize,n=t._timestampProvider,r=t._buffer,o=t._infiniteTimeWindow,i=(o?1:2)*e;if(e<1/0&&i<r.length&&r.splice(0,r.length-i),!o){for(var a=n.now(),s=0,c=1;c<r.length&&r[c]<=a;c+=2)s=c;s&&r.splice(0,s+1)}}}(Gf),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._value=null,e._hasValue=!1,e._isComplete=!1,e}vf(e,t),e.prototype._checkFinalizedStatuses=function(t){var e=this,n=e.hasError,r=e._hasValue,o=e._value,i=e.thrownError,a=e.isStopped,s=e._isComplete;n?t.error(i):(a||s)&&(r&&t.next(o),t.complete())},e.prototype.next=function(t){this.isStopped||(this._value=t,this._hasValue=!0)},e.prototype.complete=function(){var e=this,n=e._hasValue,r=e._value;e._isComplete||(this._isComplete=!0,n&&t.prototype.next.call(this,r),t.prototype.complete.call(this))}}(Gf);var ed,nd=function(t){function e(e,n){return t.call(this)||this}return vf(e,t),e.prototype.schedule=function(t,e){return this},e}(If),rd=function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setInterval.apply(void 0,bf([t,e],mf(n)))},od=function(t){return clearInterval(t)},id=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r.pending=!1,r}return vf(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this},e.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),rd(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,e,n){if(void 0===n&&(n=0),null!=n&&this.delay===n&&!1===this.pending)return e;od(e)},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var n,r=!1;try{this.work(t)}catch(t){r=!0,n=t||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),n},e.prototype.unsubscribe=function(){if(!this.closed){var e=this.id,n=this.scheduler,r=n.actions;this.work=this.state=this.scheduler=null,this.pending=!1,Sf(r,this),null!=e&&(this.id=this.recycleAsyncId(n,e,null)),this.delay=null,t.prototype.unsubscribe.call(this)}},e}(nd),ad=1,sd={};function cd(t){return t in sd&&(delete sd[t],!0)}var ud=function(t){var e=ad++;return sd[e]=!0,ed||(ed=Promise.resolve()),ed.then((function(){return cd(e)&&t()})),e},ld=function(t){cd(t)},fd={setImmediate:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=fd.delegate;return((null==n?void 0:n.setImmediate)||ud).apply(void 0,bf([],mf(t)))},clearImmediate:function(t){return ld(t)},delegate:void 0},dd=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return vf(e,t),e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0?t.prototype.requestAsyncId.call(this,e,n,r):(e.actions.push(this),e._scheduled||(e._scheduled=fd.setImmediate(e.flush.bind(e,void 0))))},e.prototype.recycleAsyncId=function(e,n,r){if(void 0===r&&(r=0),null!=r&&r>0||null==r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,r);e.actions.some((function(t){return t.id===n}))||(fd.clearImmediate(n),e._scheduled=void 0)},e}(id),yd=function(){function t(e,n){void 0===n&&(n=t.now),this.schedulerActionCtor=e,this.now=n}return t.prototype.schedule=function(t,e,n){return void 0===e&&(e=0),new this.schedulerActionCtor(this,t).schedule(n,e)},t.now=td.now,t}(),hd=function(t){function e(e,n){void 0===n&&(n=yd.now);var r=t.call(this,e,n)||this;return r.actions=[],r._active=!1,r._scheduled=void 0,r}return vf(e,t),e.prototype.flush=function(t){var e=this.actions;if(this._active)e.push(t);else{var n;this._active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this._active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}},e}(yd);new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return vf(e,t),e.prototype.flush=function(t){this._active=!0;var e=this._scheduled;this._scheduled=void 0;var n,r=this.actions;t=t||r.shift();do{if(n=t.execute(t.state,t.delay))break}while((t=r[0])&&t.id===e&&r.shift());if(this._active=!1,n){for(;(t=r[0])&&t.id===e&&r.shift();)t.unsubscribe();throw n}},e}(hd))(dd),new hd(id);var vd=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return vf(e,t),e.prototype.schedule=function(e,n){return void 0===n&&(n=0),n>0?t.prototype.schedule.call(this,e,n):(this.delay=n,this.state=e,this.scheduler.flush(this),this)},e.prototype.execute=function(e,n){return n>0||this.closed?t.prototype.execute.call(this,e,n):this._execute(e,n)},e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!=r&&r>0||null==r&&this.delay>0?t.prototype.requestAsyncId.call(this,e,n,r):e.flush(this)},e}(id);new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return vf(e,t),e}(hd))(vd);var pd=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return vf(e,t),e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0?t.prototype.requestAsyncId.call(this,e,n,r):(e.actions.push(this),e._scheduled||(e._scheduled=Qf.requestAnimationFrame((function(){return e.flush(void 0)}))))},e.prototype.recycleAsyncId=function(e,n,r){if(void 0===r&&(r=0),null!=r&&r>0||null==r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,r);e.actions.some((function(t){return t.id===n}))||(Qf.cancelAnimationFrame(n),e._scheduled=void 0)},e}(id);new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return vf(e,t),e.prototype.flush=function(t){this._active=!0;var e=this._scheduled;this._scheduled=void 0;var n,r=this.actions;t=t||r.shift();do{if(n=t.execute(t.state,t.delay))break}while((t=r[0])&&t.id===e&&r.shift());if(this._active=!1,n){for(;(t=r[0])&&t.id===e&&r.shift();)t.unsubscribe();throw n}},e}(hd))(pd),function(t){function e(e,n){void 0===e&&(e=bd),void 0===n&&(n=1/0);var r=t.call(this,e,(function(){return r.frame}))||this;return r.maxFrames=n,r.frame=0,r.index=-1,r}vf(e,t),e.prototype.flush=function(){for(var t,e,n=this.actions,r=this.maxFrames;(e=n[0])&&e.delay<=r&&(n.shift(),this.frame=e.delay,!(t=e.execute(e.state,e.delay))););if(t){for(;e=n.shift();)e.unsubscribe();throw t}},e.frameTimeFactor=10}(hd);var md,bd=function(t){function e(e,n,r){void 0===r&&(r=e.index+=1);var o=t.call(this,e,n)||this;return o.scheduler=e,o.work=n,o.index=r,o.active=!0,o.index=e.index=r,o}return vf(e,t),e.prototype.schedule=function(n,r){if(void 0===r&&(r=0),Number.isFinite(r)){if(!this.id)return t.prototype.schedule.call(this,n,r);this.active=!1;var o=new e(this.scheduler,this.work);return this.add(o),o.schedule(n,r)}return If.EMPTY},e.prototype.requestAsyncId=function(t,n,r){void 0===r&&(r=0),this.delay=t.frame+r;var o=t.actions;return o.push(this),o.sort(e.sortActions),!0},e.prototype.recycleAsyncId=function(t,e,n){},e.prototype._execute=function(e,n){if(!0===this.active)return t.prototype._execute.call(this,e,n)},e.sortActions=function(t,e){return t.delay===e.delay?t.index===e.index?0:t.index>e.index?1:-1:t.delay>e.delay?1:-1},e}(id);new Ff((function(t){return t.complete()})),function(t){t.NEXT="N",t.ERROR="E",t.COMPLETE="C"}(md||(md={})),wf((function(t){return function(){t(this),this.name="EmptyError",this.message="no elements in sequence"}})),wf((function(t){return function(){t(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}})),wf((function(t){return function(e){t(this),this.name="NotFoundError",this.message=e}})),wf((function(t){return function(e){t(this),this.name="SequenceError",this.message=e}})),wf((function(t){return function(e){void 0===e&&(e=null),t(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=e}})),new Ff(jf);t.BadEventError=yf,t.Box=class{constructor(t){this.value=t}set(t){this.value=t}get(){return this.value}},t.Emitter=e,t.ExpirableMap=cf,t.FiniteStateMachine=df,t.HashMap=n,t.HashSet=r,t.LRUMap=Ll,t.ObservableFiniteStateMachine=class extends df{constructor(){super(...arguments),this.stateChanges=new Gf}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}),Va.isEmptyObject(this.schema[n])&&this.stateChanges.complete()}},t.Queue=o,t.TLRUMap=uf,t.TrieMap=ff,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 hf=function(t,e){return(hf=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 vf(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}hf(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function pf(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 mf(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function bf(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))}function gf(t){return"function"==typeof t}function wf(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 Af=wf((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 If(t,e){if(t){var n=t.indexOf(e);0<=n&&t.splice(n,1)}}var Sf=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,o;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var a=pf(i),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 i.remove(this);var c=this.initialTeardown;if(gf(c))try{c()}catch(t){o=t instanceof Af?t.errors:[t]}var u=this._finalizers;if(u){this._finalizers=null;try{for(var l=pf(u),f=l.next();!f.done;f=l.next()){var d=f.value;try{xf(d)}catch(t){o=null!=o?o:[],t instanceof Af?o=bf(bf([],mf(o)),mf(t.errors)):o.push(t)}}}catch(t){n={error:t}}finally{try{f&&!f.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}}if(o)throw new Af(o)}},t.prototype.add=function(e){var n;if(e&&e!==this)if(this.closed)xf(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)&&If(e,t)},t.prototype.remove=function(e){var n=this._finalizers;n&&If(n,e),e instanceof t&&e._removeParent(this)},t.EMPTY=((e=new t).closed=!0,e),t}(),_f=Sf.EMPTY;function Tf(t){return t instanceof Sf||t&&"closed"in t&&gf(t.remove)&&gf(t.add)&&gf(t.unsubscribe)}function xf(t){gf(t)?t():t.unsubscribe()}var Ef={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Of=function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setTimeout.apply(void 0,bf([t,e],mf(n)))};function jf(){}function kf(t){t()}var Nf=function(t){function e(e){var n=t.call(this)||this;return n.isStopped=!1,e?(n.destination=e,Tf(e)&&e.add(n)):n.destination=zf,n}return vf(e,t),e.create=function(t,e,n){return new Cf(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}(Sf),Bf=Function.prototype.bind;function Pf(t,e){return Bf.call(t,e)}var qf=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){Mf(t)}},t.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(t){Mf(t)}else Mf(t)},t.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(t){Mf(t)}},t}(),Cf=function(t){function e(e,n,r){var o,i,a=t.call(this)||this;gf(e)||!e?o={next:null!=e?e:void 0,error:null!=n?n:void 0,complete:null!=r?r:void 0}:a&&Ef.useDeprecatedNextContext?((i=Object.create(e)).unsubscribe=function(){return a.unsubscribe()},o={next:e.next&&Pf(e.next,i),error:e.error&&Pf(e.error,i),complete:e.complete&&Pf(e.complete,i)}):o=e;return a.destination=new qf(o),a}return vf(e,t),e}(Nf);function Mf(t){var e;e=t,Of((function(){throw e}))}var zf={closed:!0,next:jf,error:function(t){throw t},complete:jf},Rf="function"==typeof Symbol&&Symbol.observable||"@@observable";function Uf(t){return t}function Df(t){return 0===t.length?Uf:1===t.length?t[0]:function(e){return t.reduce((function(t,e){return e(t)}),e)}}var Ff=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,o=this,i=(r=t)&&r instanceof Nf||function(t){return t&&gf(t.next)&&gf(t.error)&&gf(t.complete)}(r)&&Tf(r)?t:new Cf(t,e,n);return kf((function(){var t=o,e=t.operator,n=t.source;i.add(e?e.call(i,n):n?o._subscribe(i):o._trySubscribe(i))})),i},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=Jf(e))((function(e,r){var o=new Cf({next:function(e){try{t(e)}catch(t){r(t),o.unsubscribe()}},error:r,complete:e});n.subscribe(o)}))},t.prototype._subscribe=function(t){var e;return null===(e=this.source)||void 0===e?void 0:e.subscribe(t)},t.prototype[Rf]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Df(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=Jf(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 Jf(t){var e;return null!==(e=null!=t?t:Ef.Promise)&&void 0!==e?e:Promise}function Vf(t){return gf(null==t?void 0:t.lift)}function Lf(t,e,n,r,o){return new Wf(t,e,n,r,o)}var Wf=function(t){function e(e,n,r,o,i,a){var s=t.call(this,e)||this;return s.onFinalize=i,s.shouldUnsubscribe=a,s._next=n?function(t){try{n(t)}catch(t){e.error(t)}}:t.prototype._next,s._error=o?function(t){try{o(t)}catch(t){e.error(t)}finally{this.unsubscribe()}}:t.prototype._error,s._complete=r?function(){try{r()}catch(t){e.error(t)}finally{this.unsubscribe()}}:t.prototype._complete,s}return vf(e,t),e.prototype.unsubscribe=function(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;t.prototype.unsubscribe.call(this),!n&&(null===(e=this.onFinalize)||void 0===e||e.call(this))}},e}(Nf);function Kf(){return t=function(t,e){var n=null;t._refCount++;var r=Lf(e,void 0,void 0,void 0,(function(){if(!t||t._refCount<=0||0<--t._refCount)n=null;else{var r=t._connection,o=n;n=null,!r||o&&r!==o||r.unsubscribe(),e.unsubscribe()}}));t.subscribe(r),r.closed||(n=t.connect())},function(e){if(Vf(e))return e.lift((function(e){try{return t(e,this)}catch(t){this.error(t)}}));throw new TypeError("Unable to lift unknown Observable type")};var t}!function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subjectFactory=n,r._subject=null,r._refCount=0,r._connection=null,Vf(e)&&(r.lift=e.lift),r}vf(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype._teardown=function(){this._refCount=0;var t=this._connection;this._subject=this._connection=null,null==t||t.unsubscribe()},e.prototype.connect=function(){var t=this,e=this._connection;if(!e){e=this._connection=new Sf;var n=this.getSubject();e.add(this.source.subscribe(Lf(n,void 0,(function(){t._teardown(),n.complete()}),(function(e){t._teardown(),n.error(e)}),(function(){return t._teardown()})))),e.closed&&(this._connection=null,e=Sf.EMPTY)}return e},e.prototype.refCount=function(){return Kf()(this)}}(Ff);var Yf,Hf,$f={now:function(){return($f.delegate||performance).now()},delegate:void 0},Qf={schedule:function(t){var e=requestAnimationFrame,n=cancelAnimationFrame,r=e((function(e){n=void 0,t(e)}));return new Sf((function(){return null==n?void 0:n(r)}))},requestAnimationFrame:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Qf.delegate;return((null==n?void 0:n.requestAnimationFrame)||requestAnimationFrame).apply(void 0,bf([],mf(t)))},cancelAnimationFrame:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return cancelAnimationFrame.apply(void 0,bf([],mf(t)))},delegate:void 0};Hf=Qf.schedule,new Ff((function(t){var e=new Sf,n=Yf||$f,r=n.now(),o=function(i){var a=n.now();t.next({timestamp:Yf?a:i,elapsed:a-r}),t.closed||e.add(Hf(o))};return e.add(Hf(o)),e}));var Xf=wf((function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),Gf=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 vf(e,t),e.prototype.lift=function(t){var e=new Zf(this,this);return e.operator=t,e},e.prototype._throwIfClosed=function(){if(this.closed)throw new Xf},e.prototype.next=function(t){var e=this;kf((function(){var n,r;if(e._throwIfClosed(),!e.isStopped){e.currentObservers||(e.currentObservers=Array.from(e.observers));try{for(var o=pf(e.currentObservers),i=o.next();!i.done;i=o.next()){i.value.next(t)}}catch(t){n={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}}))},e.prototype.error=function(t){var e=this;kf((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;kf((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,o=n.isStopped,i=n.observers;return r||o?_f:(this.currentObservers=null,i.push(t),new Sf((function(){e.currentObservers=null,If(i,t)})))},e.prototype._checkFinalizedStatuses=function(t){var e=this,n=e.hasError,r=e.thrownError,o=e.isStopped;n?t.error(r):o&&t.complete()},e.prototype.asObservable=function(){var t=new Ff;return t.source=this,t},e.create=function(t,e){return new Zf(t,e)},e}(Ff),Zf=function(t){function e(e,n){var r=t.call(this)||this;return r.destination=e,r.source=n,r}return vf(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:_f},e}(Gf);!function(t){function e(e){var n=t.call(this)||this;return n._value=e,n}vf(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),e.prototype._subscribe=function(e){var n=t.prototype._subscribe.call(this,e);return!n.closed&&e.next(this._value),n},e.prototype.getValue=function(){var t=this,e=t.hasError,n=t.thrownError,r=t._value;if(e)throw n;return this._throwIfClosed(),r},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)}}(Gf);var td={now:function(){return(td.delegate||Date).now()},delegate:void 0};!function(t){function e(e,n,r){void 0===e&&(e=1/0),void 0===n&&(n=1/0),void 0===r&&(r=td);var o=t.call(this)||this;return o._bufferSize=e,o._windowTime=n,o._timestampProvider=r,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=n===1/0,o._bufferSize=Math.max(1,e),o._windowTime=Math.max(1,n),o}vf(e,t),e.prototype.next=function(e){var n=this,r=n.isStopped,o=n._buffer,i=n._infiniteTimeWindow,a=n._timestampProvider,s=n._windowTime;r||(o.push(e),!i&&o.push(a.now()+s)),this._trimBuffer(),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var e=this._innerSubscribe(t),n=this._infiniteTimeWindow,r=this._buffer.slice(),o=0;o<r.length&&!t.closed;o+=n?1:2)t.next(r[o]);return this._checkFinalizedStatuses(t),e},e.prototype._trimBuffer=function(){var t=this,e=t._bufferSize,n=t._timestampProvider,r=t._buffer,o=t._infiniteTimeWindow,i=(o?1:2)*e;if(e<1/0&&i<r.length&&r.splice(0,r.length-i),!o){for(var a=n.now(),s=0,c=1;c<r.length&&r[c]<=a;c+=2)s=c;s&&r.splice(0,s+1)}}}(Gf),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._value=null,e._hasValue=!1,e._isComplete=!1,e}vf(e,t),e.prototype._checkFinalizedStatuses=function(t){var e=this,n=e.hasError,r=e._hasValue,o=e._value,i=e.thrownError,a=e.isStopped,s=e._isComplete;n?t.error(i):(a||s)&&(r&&t.next(o),t.complete())},e.prototype.next=function(t){this.isStopped||(this._value=t,this._hasValue=!0)},e.prototype.complete=function(){var e=this,n=e._hasValue,r=e._value;e._isComplete||(this._isComplete=!0,n&&t.prototype.next.call(this,r),t.prototype.complete.call(this))}}(Gf);var ed,nd=function(t){function e(e,n){return t.call(this)||this}return vf(e,t),e.prototype.schedule=function(t,e){return this},e}(Sf),rd=function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setInterval.apply(void 0,bf([t,e],mf(n)))},od=function(t){return clearInterval(t)},id=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r.pending=!1,r}return vf(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this},e.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),rd(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,e,n){if(void 0===n&&(n=0),null!=n&&this.delay===n&&!1===this.pending)return e;od(e)},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var n,r=!1;try{this.work(t)}catch(t){r=!0,n=t||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),n},e.prototype.unsubscribe=function(){if(!this.closed){var e=this.id,n=this.scheduler,r=n.actions;this.work=this.state=this.scheduler=null,this.pending=!1,If(r,this),null!=e&&(this.id=this.recycleAsyncId(n,e,null)),this.delay=null,t.prototype.unsubscribe.call(this)}},e}(nd),ad=1,sd={};function cd(t){return t in sd&&(delete sd[t],!0)}var ud=function(t){var e=ad++;return sd[e]=!0,ed||(ed=Promise.resolve()),ed.then((function(){return cd(e)&&t()})),e},ld=function(t){cd(t)},fd={setImmediate:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=fd.delegate;return((null==n?void 0:n.setImmediate)||ud).apply(void 0,bf([],mf(t)))},clearImmediate:function(t){return ld(t)},delegate:void 0},dd=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return vf(e,t),e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0?t.prototype.requestAsyncId.call(this,e,n,r):(e.actions.push(this),e._scheduled||(e._scheduled=fd.setImmediate(e.flush.bind(e,void 0))))},e.prototype.recycleAsyncId=function(e,n,r){if(void 0===r&&(r=0),null!=r&&r>0||null==r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,r);e.actions.some((function(t){return t.id===n}))||(fd.clearImmediate(n),e._scheduled=void 0)},e}(id),yd=function(){function t(e,n){void 0===n&&(n=t.now),this.schedulerActionCtor=e,this.now=n}return t.prototype.schedule=function(t,e,n){return void 0===e&&(e=0),new this.schedulerActionCtor(this,t).schedule(n,e)},t.now=td.now,t}(),hd=function(t){function e(e,n){void 0===n&&(n=yd.now);var r=t.call(this,e,n)||this;return r.actions=[],r._active=!1,r._scheduled=void 0,r}return vf(e,t),e.prototype.flush=function(t){var e=this.actions;if(this._active)e.push(t);else{var n;this._active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this._active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}},e}(yd);new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return vf(e,t),e.prototype.flush=function(t){this._active=!0;var e=this._scheduled;this._scheduled=void 0;var n,r=this.actions;t=t||r.shift();do{if(n=t.execute(t.state,t.delay))break}while((t=r[0])&&t.id===e&&r.shift());if(this._active=!1,n){for(;(t=r[0])&&t.id===e&&r.shift();)t.unsubscribe();throw n}},e}(hd))(dd),new hd(id);var vd=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return vf(e,t),e.prototype.schedule=function(e,n){return void 0===n&&(n=0),n>0?t.prototype.schedule.call(this,e,n):(this.delay=n,this.state=e,this.scheduler.flush(this),this)},e.prototype.execute=function(e,n){return n>0||this.closed?t.prototype.execute.call(this,e,n):this._execute(e,n)},e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!=r&&r>0||null==r&&this.delay>0?t.prototype.requestAsyncId.call(this,e,n,r):e.flush(this)},e}(id);new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return vf(e,t),e}(hd))(vd);var pd=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return vf(e,t),e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0?t.prototype.requestAsyncId.call(this,e,n,r):(e.actions.push(this),e._scheduled||(e._scheduled=Qf.requestAnimationFrame((function(){return e.flush(void 0)}))))},e.prototype.recycleAsyncId=function(e,n,r){if(void 0===r&&(r=0),null!=r&&r>0||null==r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,r);e.actions.some((function(t){return t.id===n}))||(Qf.cancelAnimationFrame(n),e._scheduled=void 0)},e}(id);new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return vf(e,t),e.prototype.flush=function(t){this._active=!0;var e=this._scheduled;this._scheduled=void 0;var n,r=this.actions;t=t||r.shift();do{if(n=t.execute(t.state,t.delay))break}while((t=r[0])&&t.id===e&&r.shift());if(this._active=!1,n){for(;(t=r[0])&&t.id===e&&r.shift();)t.unsubscribe();throw n}},e}(hd))(pd),function(t){function e(e,n){void 0===e&&(e=bd),void 0===n&&(n=1/0);var r=t.call(this,e,(function(){return r.frame}))||this;return r.maxFrames=n,r.frame=0,r.index=-1,r}vf(e,t),e.prototype.flush=function(){for(var t,e,n=this.actions,r=this.maxFrames;(e=n[0])&&e.delay<=r&&(n.shift(),this.frame=e.delay,!(t=e.execute(e.state,e.delay))););if(t){for(;e=n.shift();)e.unsubscribe();throw t}},e.frameTimeFactor=10}(hd);var md,bd=function(t){function e(e,n,r){void 0===r&&(r=e.index+=1);var o=t.call(this,e,n)||this;return o.scheduler=e,o.work=n,o.index=r,o.active=!0,o.index=e.index=r,o}return vf(e,t),e.prototype.schedule=function(n,r){if(void 0===r&&(r=0),Number.isFinite(r)){if(!this.id)return t.prototype.schedule.call(this,n,r);this.active=!1;var o=new e(this.scheduler,this.work);return this.add(o),o.schedule(n,r)}return Sf.EMPTY},e.prototype.requestAsyncId=function(t,n,r){void 0===r&&(r=0),this.delay=t.frame+r;var o=t.actions;return o.push(this),o.sort(e.sortActions),!0},e.prototype.recycleAsyncId=function(t,e,n){},e.prototype._execute=function(e,n){if(!0===this.active)return t.prototype._execute.call(this,e,n)},e.sortActions=function(t,e){return t.delay===e.delay?t.index===e.index?0:t.index>e.index?1:-1:t.delay>e.delay?1:-1},e}(id);new Ff((function(t){return t.complete()})),function(t){t.NEXT="N",t.ERROR="E",t.COMPLETE="C"}(md||(md={})),wf((function(t){return function(){t(this),this.name="EmptyError",this.message="no elements in sequence"}})),wf((function(t){return function(){t(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}})),wf((function(t){return function(e){t(this),this.name="NotFoundError",this.message=e}})),wf((function(t){return function(e){t(this),this.name="SequenceError",this.message=e}})),wf((function(t){return function(e){void 0===e&&(e=null),t(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=e}})),new Ff(jf);class gd{constructor(){this.values=[],this.valueToValueIndex=[]}*[Symbol.iterator](){for(const t of this.values)yield t}has(t){return La.isntUndefined(this.valueToValueIndex[t])}add(t){if(!this.has(t)){const e=this.values.length;this.values.push(t),this.valueToValueIndex[t]=e}}remove(t){if(this.has(t)){const e=this.values.pop();if(t!==e){const n=this.valueToValueIndex[t];this.values[n]=e,this.valueToValueIndex[e]=n,this.valueToValueIndex[t]=void 0}}}}t.BadEventError=yf,t.Box=class{constructor(t){this.value=t}set(t){this.value=t}get(){return this.value}},t.Emitter=e,t.ExpirableMap=cf,t.FiniteStateMachine=df,t.HashMap=n,t.HashSet=r,t.LRUMap=Vl,t.ObservableFiniteStateMachine=class extends df{constructor(){super(...arguments),this.stateChanges=new Gf}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}),La.isEmptyObject(this.schema[n])&&this.stateChanges.complete()}},t.Queue=o,t.SparseSet=gd,t.TLRUMap=uf,t.TrieMap=ff,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
|