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