Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

extra-abort

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

extra-abort - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

4

dist/es2015/index.umd.min.js

@@ -1,2 +0,2 @@

!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((t="undefined"!=typeof globalThis?globalThis:t||self).ExtraAbort={})}(this,(function(t){"use strict";var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},e={exports:{}};const{AbortController:r,AbortSignal:o}="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0;e.exports=r;var i=e.exports.AbortSignal=o;e.exports.default=r;var a,s=e.exports;const c=null!==(a=globalThis.AbortController)&&void 0!==a?a:s;var u={},f={},l={},y={},d={},v={},b={};b.go=void 0,b.go=function(t){return t()},function(t){var e=n&&n.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e),Object.defineProperty(t,r,{enumerable:!0,get:function(){return n[e]}})}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]});(n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)})(b,t)}(v),d.chunkAsync=void 0;const p=v,m=u;d.chunkAsync=function(t,n){return(0,m.assert)(Number.isInteger(n),"The parameter size must be an integer"),(0,m.assert)(n>0,"The parameter size must be greater than 0"),(0,p.go)((async function*(){let e=[];for await(const r of t)e.push(r),e.length>=n&&(yield e,e=[]);e.length&&(yield e)}))};var g={},h={},A={};function w(t){return Array.isArray(t)}A.isntEmptyArray=A.isEmptyArray=A.isntArray=A.isArray=void 0,A.isArray=w,A.isntArray=function(t){return!w(t)},A.isEmptyArray=function(t){return 0===t.length},A.isntEmptyArray=function(t){return 0!==t.length};var O={},S={};function j(t){return null===t}S.isntNull=S.isNull=void 0,S.isNull=j,S.isntNull=function(t){return!j(t)};var I={};function E(t){return void 0===t}I.isntUndefined=I.isUndefined=void 0,I.isUndefined=E,I.isntUndefined=function(t){return!E(t)},O.isntAsyncIterable=O.isAsyncIterable=void 0;const N=S,P=I;function _(t){return(0,N.isntNull)(t)&&(0,P.isntUndefined)(t)&&"function"==typeof t[Symbol.asyncIterator]}O.isAsyncIterable=_,O.isntAsyncIterable=function(t){return!_(t)};var x={};function B(t){return"bigint"==typeof t}x.isntBigInt=x.isBigInt=void 0,x.isBigInt=B,x.isntBigInt=function(t){return!B(t)};var T={};function k(t){return"boolean"==typeof t}T.isntBoolean=T.isBoolean=void 0,T.isBoolean=k,T.isntBoolean=function(t){return!k(t)};var R={},J={};function U(t){return"string"==typeof t}J.isntString=J.isString=void 0,J.isString=U,J.isntString=function(t){return!U(t)},R.isntChar=R.isChar=void 0;const q=J;function C(t){return(0,q.isString)(t)&&1===t.length}R.isChar=C,R.isntChar=function(t){return!C(t)};var D={};function F(t){return t instanceof Date}D.isntDate=D.isDate=void 0,D.isDate=F,D.isntDate=function(t){return!F(t)};var L={};L.inEnum=void 0,L.inEnum=function(t,n){return Object.values(n).includes(t)};var z={};function M(t){return t instanceof Error}z.isntError=z.isError=void 0,z.isError=M,z.isntError=function(t){return!M(t)};var V={};function W(t){return!t}V.isntFalsy=V.isFalsy=void 0,V.isFalsy=W,V.isntFalsy=function(t){return!W(t)};var G={};function H(t){return"function"==typeof t}G.isntFunction=G.isFunction=void 0,G.isFunction=H,G.isntFunction=function(t){return!H(t)};var K={};K.isntIterable=K.isIterable=void 0;const Q=S,X=I;function Y(t){return(0,Q.isntNull)(t)&&(0,X.isntUndefined)(t)&&"function"==typeof t[Symbol.iterator]}K.isIterable=Y,K.isntIterable=function(t){return!Y(t)};var Z={},$={};var tt=Function.prototype,nt=Object.prototype,et=tt.toString,rt=nt.hasOwnProperty,ot=et.call(Object),it=nt.toString,at=function(t,n){return function(e){return t(n(e))}}(Object.getPrototypeOf,Object);var st=function(t){if(!function(t){return!!t&&"object"==typeof t}(t)||"[object Object]"!=it.call(t)||function(t){var n=!1;if(null!=t&&"function"!=typeof t.toString)try{n=!!(t+"")}catch(t){}return n}(t))return!1;var n=at(t);if(null===n)return!0;var e=rt.call(n,"constructor")&&n.constructor;return"function"==typeof e&&e instanceof e&&et.call(e)==ot},ct=n&&n.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};$.isntEmptyObject=$.isEmptyObject=$.isntPlainObject=$.isPlainObject=$.isntObject=$.isObject=void 0;const ut=ct(st);function ft(t){return null!==t&&"object"==typeof t}function lt(t){return(0,ut.default)(t)}$.isObject=ft,$.isntObject=function(t){return!ft(t)},$.isPlainObject=lt,$.isntPlainObject=function(t){return!lt(t)},$.isEmptyObject=function(t){return 0===Object.keys(t).length},$.isntEmptyObject=function(t){return 0!==Object.keys(t).length};var yt={};function dt(t){return"number"==typeof t}yt.isntNumber=yt.isNumber=void 0,yt.isNumber=dt,yt.isntNumber=function(t){return!dt(t)},Z.isntJsonRpcError=Z.isJsonRpcError=Z.isntJsonRpcSuccess=Z.isJsonRpcSuccess=Z.isntJsonRpcRequest=Z.isJsonRpcRequest=Z.isntJsonRpcNotification=Z.isJsonRpcNotification=void 0;const vt=A,bt=$,pt=J,mt=yt,gt=I;function ht(t){return(0,pt.isString)(t)||(0,mt.isNumber)(t)}function At(t){return(0,vt.isArray)(t)||(0,bt.isObject)(t)}function wt(t){return(0,bt.isPlainObject)(t)&&(0,pt.isString)(t.jsonrpc)&&(0,pt.isString)(t.method)&&(0,gt.isUndefined)(t.id)&&At(t.params)}function Ot(t){return(0,bt.isPlainObject)(t)&&(0,pt.isString)(t.jsonrpc)&&(0,pt.isString)(t.method)&&ht(t.id)&&At(t.params)}function St(t){return(0,bt.isPlainObject)(t)&&(0,pt.isString)(t.jsonrpc)&&(0,pt.isString)(t.id)&&"result"in t}function jt(t){return(0,bt.isPlainObject)(t)&&(0,pt.isString)(t.jsonrpc)&&ht(t.id)&&function(t){return(0,bt.isPlainObject)(t)&&(0,mt.isNumber)(t.code)&&(0,pt.isString)(t.message)&&((0,gt.isUndefined)(t.data)||(0,bt.isObject)(t.data))}(t.error)}Z.isJsonRpcNotification=wt,Z.isntJsonRpcNotification=function(t){return!wt(t)},Z.isJsonRpcRequest=Ot,Z.isntJsonRpcRequest=function(t){return!Ot(t)},Z.isJsonRpcSuccess=St,Z.isntJsonRpcSuccess=function(t){return!St(t)},Z.isJsonRpcError=jt,Z.isntJsonRpcError=function(t){return!jt(t)};var It={};It.isntJson=It.isJson=void 0,It.isJson=function(t){try{return JSON.stringify(t),!0}catch(t){return!1}},It.isntJson=function t(n){return!t()};var Et={};Et.isAbsoluteURL=void 0,Et.isAbsoluteURL=function(t){try{return new URL(t),!0}catch(t){return!1}},function(t){var e=n&&n.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e),Object.defineProperty(t,r,{enumerable:!0,get:function(){return n[e]}})}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(A,t),r(O,t),r(x,t),r(T,t),r(R,t),r(D,t),r(L,t),r(z,t),r(V,t),r(G,t),r(K,t),r(Z,t),r(It,t),r(S,t),r(yt,t),r($,t),r(J,t),r(I,t),r(Et,t)}(h),g.chunkByAsync=void 0;const Nt=h;g.chunkByAsync=function(t,n){return(0,Nt.isAsyncIterable)(t)?async function*(t){let e=[],r=0;for await(const o of t)e.push(o),await n(o,r)&&(yield e,e=[]),r++;e.length&&(yield e)}(t):async function*(t){let e=[],r=0;for(const o of t)e.push(o),await n(o,r)&&(yield e,e=[]),r++;e.length&&(yield e)}(t)};var Pt={};Pt.chunkBy=void 0,Pt.chunkBy=function*(t,n){let e=[],r=0;for(const o of t)e.push(o),n(o,r)&&(yield e,e=[]),r++;e.length&&(yield e)};var _t={chunk:void 0};const xt=v,Bt=u;_t.chunk=function(t,n){return(0,Bt.assert)(Number.isInteger(n),"The parameter size must be an integer"),(0,Bt.assert)(n>0,"The parameter size must be greater than 0"),(0,xt.go)((function*(){let e=[];for(const r of t)e.push(r),e.length>=n&&(yield e,e=[]);e.length&&(yield e)}))};var Tt={concatAsync:void 0};const kt=h,Rt=v;Tt.concatAsync=function(t,...n){return(0,Rt.go)((async function*(){for(const e of[t,...n])if((0,kt.isAsyncIterable)(e))for await(const t of e)yield t;else for(const t of e)yield t}))};var Jt={concat:void 0};const Ut=v;Jt.concat=function(t,...n){return(0,Ut.go)((function*(){for(const e of[t,...n])yield*e}))};var qt={},Ct={};Ct.copyIterable=Ct.copyAsyncIterable=void 0,Ct.copyAsyncIterable=async function*(t){for await(const n of t)yield n},Ct.copyIterable=function*(t){for(const n of t)yield n},qt.dropAsync=void 0;const Dt=v,Ft=Ct,Lt=u;qt.dropAsync=function(t,n){return(0,Lt.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,Lt.assert)(n>=0,"The parameter count must be greater than or equal to 0"),0===n?(0,Ft.copyAsyncIterable)(t):(0,Dt.go)((async function*(){var e;const r=t[Symbol.asyncIterator]();let o;try{let t;for(;!(({value:t,done:o}=await r.next()),o||n<=0);)n--;for(;!o;)yield t,({value:t,done:o}=await r.next())}finally{o||await(null===(e=r.return)||void 0===e?void 0:e.call(r))}}))};var zt={dropRightAsync:void 0};const Mt=v,Vt=Ct,Wt=u;zt.dropRightAsync=function(t,n){return(0,Wt.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,Wt.assert)(n>=0,"The parameter count must be greater than or equal to 0"),0===n?(0,Vt.copyAsyncIterable)(t):(0,Mt.go)((async function*(){const e=(await async function(t){const n=[];for await(const e of t)n.push(e);return n}(t)).slice(0,-n);for(const t of e)yield t}))};var Gt={dropRight:void 0};const Ht=v,Kt=Ct,Qt=u;Gt.dropRight=function(t,n){return(0,Qt.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,Qt.assert)(n>=0,"The parameter count must be greater than or equal to 0"),0===n?(0,Kt.copyIterable)(t):(0,Ht.go)((function*(){const e=Array.from(t);yield*e.slice(0,-n)}))};var Xt={dropUntilAsync:void 0};const Yt=h;Xt.dropUntilAsync=function(t,n){return(0,Yt.isAsyncIterable)(t)?async function*(t){var e;const r=t[Symbol.asyncIterator]();let o;try{let t,i=0;for(;!(({value:t,done:o}=await r.next()),o||await n(t,i++)););for(;!o;)yield t,({value:t,done:o}=await r.next())}finally{o||await(null===(e=r.return)||void 0===e?void 0:e.call(r))}}(t):async function*(t){var e;const r=t[Symbol.iterator]();let o;try{let t,i=0;for(;!(({value:t,done:o}=r.next()),o||await n(t,i++)););for(;!o;)yield t,({value:t,done:o}=r.next())}finally{o||null===(e=r.return)||void 0===e||e.call(r)}}(t)};var Zt={};Zt.dropUntil=void 0,Zt.dropUntil=function*(t,n){var e;const r=t[Symbol.iterator]();let o;try{let t,i=0;for(;!(({value:t,done:o}=r.next()),o||n(t,i++)););for(;!o;)yield t,({value:t,done:o}=r.next())}finally{o||null===(e=r.return)||void 0===e||e.call(r)}};var $t={drop:void 0};const tn=v,nn=Ct,en=u;$t.drop=function(t,n){return(0,en.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,en.assert)(n>=0,"The parameter count must be greater than or equal to 0"),0===n?(0,nn.copyIterable)(t):(0,tn.go)((function*(){var e;const r=t[Symbol.iterator]();let o;try{let t;for(;!(({value:t,done:o}=r.next()),o||n<=0);)n--;for(;!o;)yield t,({value:t,done:o}=r.next())}finally{o||null===(e=r.return)||void 0===e||e.call(r)}}))};var rn={filterAsync:void 0};const on=h;rn.filterAsync=function(t,n){return(0,on.isAsyncIterable)(t)?async function*(t){let e=0;for await(const r of t)await n(r,e)&&(yield r),e++}(t):async function*(t){let e=0;for(const r of t)await n(r,e)&&(yield r),e++}(t)};var an={};an.filter=void 0,an.filter=function*(t,n){let e=0;for(const r of t)n(r,e)&&(yield r),e++};var sn={},cn={},un={flattenByAsync:void 0};const fn=h;function ln(t){return(0,fn.isIterable)(t)&&(0,fn.isntChar)(t)}un.flattenByAsync=function(t,n){return(0,fn.isAsyncIterable)(t)?async function*(t){const r=1;for await(const o of t)ln(o)&&await n(o,r)?yield*e(o,r+1):yield o}(t):function(t){return e(t,1)}(t);async function*e(t,r){for(const o of t)ln(o)&&await n(o,r)?yield*e(o,r+1):yield o}},cn.flattenDeepAsync=void 0;const yn=un,dn=u;cn.flattenDeepAsync=function(t,n=1/0){return(0,dn.assert)(n===1/0||Number.isInteger(n),"The parameter depth must be an integer"),(0,dn.assert)(n>=0,"The parameter depth must be greater than or equal to 0"),(0,yn.flattenByAsync)(t,((t,e)=>e<=n))},sn.flattenAsync=void 0;const vn=cn;sn.flattenAsync=function(t){return(0,vn.flattenDeepAsync)(t,1)};var bn={flattenBy:void 0};const pn=h;bn.flattenBy=function(t,n){return function*t(e,r){for(const i of e)(0,pn.isIterable)(o=i)&&(0,pn.isntChar)(o)&&n(i,r)?yield*t(i,r+1):yield i;var o}(t,1)};var mn={flattenDeep:void 0};const gn=bn,hn=u;mn.flattenDeep=function(t,n=1/0){return(0,hn.assert)(n===1/0||Number.isInteger(n),"The parameter depth must be an integer"),(0,hn.assert)(n>=0,"The parameter depth must be greater than or equal to 0"),(0,gn.flattenBy)(t,((t,e)=>e<=n))};var An={flatten:void 0};const wn=mn;An.flatten=function(t){return(0,wn.flattenDeep)(t,1)};var On={mapAsync:void 0};const Sn=h;On.mapAsync=function(t,n){return(0,Sn.isAsyncIterable)(t)?async function*(t){let e=0;for await(const r of t)yield await n(r,e),e++}(t):async function*(t){let e=0;for(const r of t)yield await n(r,e),e++}(t)};var jn={};jn.map=void 0,jn.map=function*(t,n){let e=0;for(const r of t)yield n(r,e),e++};var In={repeatAsync:void 0};const En=v,Nn=u;In.repeatAsync=function(t,n){return(0,Nn.assert)(n===1/0||Number.isInteger(n),"The parameter times must be an integer"),(0,Nn.assert)(n>=0,"The parameter times must be greater than or equal to 0"),n===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,En.go)((async function*(){const e=[];if(n>0){for await(const n of t)yield n,e.push(n);n--}for(;n>0;)yield*e,n--}))};var Pn={repeat:void 0};const _n=v,xn=u;Pn.repeat=function(t,n){return(0,xn.assert)(n===1/0||Number.isInteger(n),"The parameter times must be an integer"),(0,xn.assert)(n>=0,"The parameter times must be greater than or equal to 0"),n===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,_n.go)((function*(){const e=[];if(n>0){for(const n of t)yield n,e.push(n);n--}for(;n>0;)yield*e,n--}))};var Bn={sliceAsync:void 0};const Tn=v,kn=u;Bn.sliceAsync=function(t,n,e=1/0){return(0,kn.assert)(Number.isInteger(n),"The parameter start must be an integer"),(0,kn.assert)(n>=0,"The parameter start must be greater than or equal to 0"),(0,kn.assert)(Number.isInteger(e),"The parameter end must be an integer"),(0,kn.assert)(e>=n,"The parameter end must be greater than or equal to start"),(0,Tn.go)((async function*(){let r=0;for await(const o of t){if(r>=e)break;r>=n&&(yield o),r++}}))};var Rn={slice:void 0};const Jn=v,Un=u;Rn.slice=function(t,n,e=1/0){return(0,Un.assert)(Number.isInteger(n),"The parameter start must be an integer"),(0,Un.assert)(n>=0,"The parameter start must be greater than or equal to 0"),(0,Un.assert)(Number.isInteger(e),"The parameter end must be an integer"),(0,Un.assert)(e>=n,"The parameter end must be greater than or equal to start"),(0,Jn.go)((function*(){let r=0;for(const o of t){if(r>=e)break;r>=n&&(yield o),r++}}))};var qn={};qn.splitAsync=void 0,qn.splitAsync=async function*(t,n){let e=[];for await(const r of t)r===n?(yield e,e=[]):e.push(r);yield e};var Cn={splitByAsync:void 0};const Dn=h;Cn.splitByAsync=function(t,n){return(0,Dn.isAsyncIterable)(t)?async function*(t){let e=[],r=0;for await(const o of t)await n(o,r)?(yield e,e=[]):e.push(o),r++;yield e}(t):async function*(t){let e=[],r=0;for(const o of t)await n(o,r)?(yield e,e=[]):e.push(o),r++;yield e}(t)};var Fn={};Fn.splitBy=void 0,Fn.splitBy=function*(t,n){let e=[],r=0;for(const o of t)n(o,r)?(yield e,e=[]):e.push(o),r++;yield e};var Ln={};Ln.split=void 0,Ln.split=function*(t,n){let e=[];for(const r of t)r===n?(yield e,e=[]):e.push(r);yield e};var zn={takeAsync:void 0};const Mn=v,Vn=u;zn.takeAsync=function(t,n){return(0,Vn.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,Vn.assert)(n>=0,"The parameter count must be greater than or equal to 0"),(0,Mn.go)((async function*(){if(0!==n)for await(const e of t)if(yield e,0===--n)break}))};var Wn={takeRightAsync:void 0};const Gn=v,Hn=u;Wn.takeRightAsync=function(t,n){return(0,Hn.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,Hn.assert)(n>=0,"The parameter count must be greater than or equal to 0"),(0,Gn.go)((async function*(){var e;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>n&&t.shift();yield*t}finally{o||await(null===(e=r.return)||void 0===e?void 0:e.call(r))}}))};var Kn={takeRight:void 0};const Qn=v,Xn=u;Kn.takeRight=function(t,n){return(0,Xn.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,Xn.assert)(n>=0,"The parameter count must be greater than or equal to 0"),(0,Qn.go)((function*(){var e;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>n&&t.shift();yield*t}finally{o||null===(e=r.return)||void 0===e||e.call(r)}}))};var Yn={takeUntilAsync:void 0};const Zn=h;Yn.takeUntilAsync=function(t,n){return(0,Zn.isAsyncIterable)(t)?async function*(t){let e=0;for await(const r of t){if(await n(r,e))break;yield r,e++}}(t):async function*(t){let e=0;for(const r of t){if(await n(r,e))break;yield r,e++}}(t)};var $n={};$n.takeUntil=void 0,$n.takeUntil=function*(t,n){let e=0;for(const r of t){if(n(r,e))break;yield r,e++}};var te={take:void 0};const ne=v,ee=u;te.take=function(t,n){return(0,ee.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,ee.assert)(n>=0,"The parameter count must be greater than or equal to 0"),(0,ne.go)((function*(){if(0!==n)for(const e of t)if(yield e,0===--n)break}))};var re={tapAsync:void 0};const oe=h;re.tapAsync=function(t,n){return(0,oe.isAsyncIterable)(t)?async function*(t){let e=0;for await(const r of t)await n(r,e),yield r,e++}(t):async function*(t){let e=0;for(const r of t)await n(r,e),yield r,e++}(t)};var ie={};ie.tap=void 0,ie.tap=function*(t,n){let e=0;for(const r of t)n(r,e),yield r,e++};var ae={};ae.toAsyncIterable=void 0,ae.toAsyncIterable=async function*(t){for(const n of t)yield n};var se={};se.transformAsync=void 0,se.transformAsync=async function*(t,n){yield*n(t)};var ce={};ce.transform=void 0,ce.transform=function*(t,n){yield*n(t)};var ue={};ue.uniqAsync=void 0,ue.uniqAsync=async function*(t){const n=new Set;for await(const e of t)n.has(e)||(yield e,n.add(e))};var fe={uniqByAsync:void 0};const le=h;fe.uniqByAsync=function(t,n){return(0,le.isAsyncIterable)(t)?async function*(t){const e=new Set;let r=0;for await(const o of t){const t=await n(o,r);e.has(t)||(yield o,e.add(t)),r++}}(t):async function*(t){const e=new Set;let r=0;for(const o of t){const t=await n(o,r);e.has(t)||(yield o,e.add(t)),r++}}(t)};var ye={};ye.uniqBy=void 0,ye.uniqBy=function*(t,n){const e=new Set;let r=0;for(const o of t){const t=n(o,r);e.has(t)||(yield o,e.add(t)),r++}};var de={};de.uniq=void 0,de.uniq=function*(t){const n=new Set;for(const e of t)n.has(e)||(yield e,n.add(e))};var ve={zipAsync:void 0};const be=h;var pe;!function(t){t[t.Sync=0]="Sync",t[t.Async=1]="Async"}(pe||(pe={})),ve.zipAsync=function(t,...n){return async function*(...t){var n,e,r,o;const i=t.length,a=t.map((t=>(0,be.isAsyncIterable)(t)?[pe.Async,t[Symbol.asyncIterator]()]:[pe.Sync,t[Symbol.iterator]()])),s=a.map((()=>!1));try{for(;;){const t=new Array(i);for(let n=0;n<i;n++){const[e,r]=a[n];let o;if(o=e===pe.Async?await r.next():r.next(),o.done)return void(s[n]=!0);t[n]=o.value}yield t}}finally{const t=a.filter(((t,n)=>!s[n]));for(const[i,a]of t)i===pe.Async?await(null===(e=(n=a).return)||void 0===e?void 0:e.call(n)):null===(o=(r=a).return)||void 0===o||o.call(r)}}(t,...n)};var me={};me.zip=void 0,me.zip=function(t,...n){return function*(...t){const n=t.length,e=t.map((t=>t[Symbol.iterator]())),r=e.map((()=>!1));try{for(;;){const t=new Array(n);for(let o=0;o<n;o++){const{value:n,done:i}=e[o].next();if(i)return void(r[o]=!0);t[o]=n}yield t}}finally{e.filter(((t,n)=>!r[n])).forEach((t=>{var n;return null===(n=t.return)||void 0===n?void 0:n.call(t)}))}}(t,...n)},function(t){var e=n&&n.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e),Object.defineProperty(t,r,{enumerable:!0,get:function(){return n[e]}})}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(d,t),r(g,t),r(Pt,t),r(_t,t),r(Tt,t),r(Jt,t),r(qt,t),r(zt,t),r(Gt,t),r(Xt,t),r(Zt,t),r($t,t),r(rn,t),r(an,t),r(sn,t),r(un,t),r(bn,t),r(cn,t),r(mn,t),r(An,t),r(On,t),r(jn,t),r(In,t),r(Pn,t),r(Bn,t),r(Rn,t),r(qn,t),r(Cn,t),r(Fn,t),r(Ln,t),r(zn,t),r(Wn,t),r(Kn,t),r(Yn,t),r($n,t),r(te,t),r(re,t),r(ie,t),r(ae,t),r(se,t),r(ce,t),r(ue,t),r(fe,t),r(ye,t),r(de,t),r(ve,t),r(me,t)}(y);var ge={},he={};he.consume=void 0,he.consume=function(t,n){return n(t)};var Ae={eachAsync:void 0};const we=h;Ae.eachAsync=function(t,n){return(0,we.isAsyncIterable)(t)?async function(t){let e=0;for await(const r of t)await n(r,e),e++}(t):async function(t){let e=0;for(const r of t)await n(r,e),e++}(t)};var Oe={};Oe.each=void 0,Oe.each=function(t,n){let e=0;for(const r of t)n(r,e),e++};var Se={everyAsync:void 0};const je=h;Se.everyAsync=function(t,n){return(0,je.isAsyncIterable)(t)?async function(t){let e=0;for await(const r of t){if(!await n(r,e))return!1;e++}return!0}(t):async function(t){let e=0;for(const r of t){if(!await n(r,e))return!1;e++}return!0}(t)};var Ie={};Ie.every=void 0,Ie.every=function(t,n){let e=0;for(const r of t){if(!n(r,e))return!1;e++}return!0};var Ee={findAsync:void 0};const Ne=h;Ee.findAsync=function(t,n){return(0,Ne.isAsyncIterable)(t)?async function(t){let e=0;for await(const r of t){if(await n(r,e))return r;e++}return}(t):async function(t){let e=0;for(const r of t){if(await n(r,e))return r;e++}return}(t)};var Pe={};Pe.find=void 0,Pe.find=function(t,n){let e=0;for(const r of t){if(n(r,e))return r;e++}};var _e={};_e.firstAsync=void 0,_e.firstAsync=async function(t){for await(const n of t)return n};var xe={};xe.first=void 0,xe.first=function(t){for(const n of t)return n};var Be={};Be.includesAsync=void 0,Be.includesAsync=async function(t,n){for await(const e of t)if(e===n)return!0;return!1};var Te={};Te.includes=void 0,Te.includes=function(t,n){for(const e of t)if(e===n)return!0;return!1};var ke={};ke.matchAsync=void 0,ke.matchAsync=async function(t,n){const e=n.length;let r=0;for await(const o of t)if(o===n[r]&&r++,r===e)return!0;return!1};var Re={};Re.match=void 0,Re.match=function(t,n){const e=n.length;let r=0;for(const o of t)if(o===n[r]&&r++,r===e)return!0;return!1};var Je={reduceAsync:void 0};const Ue=h;Je.reduceAsync=function(t,n,e){return(0,Ue.isUndefined)(e)?function(t,n){return(0,Ue.isAsyncIterable)(t)?e(t):r(t);async function e(t){var e;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 n(a,t,s++);return a}finally{o||await(null===(e=r.return)||void 0===e?void 0:e.call(r))}async function i(t){const n=await t.next();if(n.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return n.value}}async function r(t){var e;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 n(a,t,s++);return a}finally{o||null===(e=r.return)||void 0===e||e.call(r)}function i(t){const n=t.next();if(n.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return n.value}}}(t,n):function(t,n,e){return(0,Ue.isAsyncIterable)(t)?o(t):r(t);async function r(t){let r=e,o=0;for(const e of t)r=await n(r,e,o++);return r}async function o(t){let r=e,o=0;for await(const e of t)r=await n(r,e,o++);return r}}(t,n,e)};var qe={reduce:void 0};const Ce=h;qe.reduce=function(t,n,e){return(0,Ce.isUndefined)(e)?function(t,n){var e;const r=t[Symbol.iterator]();let o;try{let t,a=i(r),s=1;for(;({value:t,done:o}=r.next()),!o;)a=n(a,t,s++);return a}finally{o||null===(e=r.return)||void 0===e||e.call(r)}function i(t){const n=t.next();if(n.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return n.value}}(t,n):function(t,n,e){let r=e,o=0;for(const e of t)r=n(r,e,o++);return r}(t,n,e)};var De={someAsync:void 0};const Fe=h;De.someAsync=function(t,n){return(0,Fe.isAsyncIterable)(t)?async function(t){let e=0;for await(const r of t){if(await n(r,e))return!0;e++}return!1}(t):async function(t){let e=0;for(const r of t){if(await n(r,e))return!0;e++}return!1}(t)};var Le={};Le.some=void 0,Le.some=function(t,n){let e=0;for(const r of t){if(n(r,e))return!0;e++}return!1};var ze={};ze.lastAsync=void 0,ze.lastAsync=async function(t){var n;const e=t[Symbol.asyncIterator]();let r;try{let t,o;for(;({value:t,done:r}=await e.next()),!r;)o=t;return o}finally{r||await(null===(n=e.return)||void 0===n?void 0:n.call(e))}};var Me={};Me.last=void 0,Me.last=function(t){var n;const e=t[Symbol.iterator]();let r;try{let t,o;for(;({value:t,done:r}=e.next()),!r;)o=t;return o}finally{r||null===(n=e.return)||void 0===n||n.call(e)}};var Ve={toArrayAsync:void 0};const We=he;Ve.toArrayAsync=function(t){return(0,We.consume)(t,(async t=>{const n=[];for await(const e of t)n.push(e);return n}))};var Ge={toArray:void 0};const He=he;Ge.toArray=function(t){return(0,He.consume)(t,(t=>Array.from(t)))};var Ke={toSetAsync:void 0};const Qe=he;Ke.toSetAsync=function(t){return(0,Qe.consume)(t,(async t=>{const n=new Set;for await(const e of t)n.add(e);return n}))};var Xe={toSet:void 0};const Ye=he;Xe.toSet=function(t){return(0,Ye.consume)(t,(t=>new Set(t)))},function(t){var e=n&&n.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e),Object.defineProperty(t,r,{enumerable:!0,get:function(){return n[e]}})}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(he,t),r(Ae,t),r(Oe,t),r(Se,t),r(Ie,t),r(Ee,t),r(Pe,t),r(_e,t),r(xe,t),r(Be,t),r(Te,t),r(ke,t),r(Re,t),r(Je,t),r(qe,t),r(De,t),r(Le,t),r(ze,t),r(Me,t),r(Ve,t),r(Ge,t),r(Ke,t),r(Xe,t)}(ge),function(t){var e=n&&n.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e),Object.defineProperty(t,r,{enumerable:!0,get:function(){return n[e]}})}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(y,t),r(ge,t)}(l);var Ze={},$e={},tr={};function nr(t){return Array.isArray(t)}tr.isntEmptyArray=tr.isEmptyArray=tr.isntArray=tr.isArray=void 0,tr.isArray=nr,tr.isntArray=function(t){return!nr(t)},tr.isEmptyArray=function(t){return 0===t.length},tr.isntEmptyArray=function(t){return 0!==t.length};var er={},rr={};function or(t){return null===t}rr.isntNull=rr.isNull=void 0,rr.isNull=or,rr.isntNull=function(t){return!or(t)};var ir={};function ar(t){return void 0===t}ir.isntUndefined=ir.isUndefined=void 0,ir.isUndefined=ar,ir.isntUndefined=function(t){return!ar(t)};var sr={};function cr(t){return"function"==typeof t}sr.isntFunction=sr.isFunction=void 0,sr.isFunction=cr,sr.isntFunction=function(t){return!cr(t)},er.isntAsyncIterable=er.isAsyncIterable=void 0;const ur=rr,fr=ir,lr=sr;function yr(t){return(0,ur.isntNull)(t)&&(0,fr.isntUndefined)(t)&&(0,lr.isFunction)(t[Symbol.asyncIterator])}er.isAsyncIterable=yr,er.isntAsyncIterable=function(t){return!yr(t)};var dr={};function vr(t){return"bigint"==typeof t}dr.isntBigInt=dr.isBigInt=void 0,dr.isBigInt=vr,dr.isntBigInt=function(t){return!vr(t)};var br={};function pr(t){return"boolean"==typeof t}br.isntBoolean=br.isBoolean=void 0,br.isBoolean=pr,br.isntBoolean=function(t){return!pr(t)};var mr={},gr={};function hr(t){return"string"==typeof t}gr.isntString=gr.isString=void 0,gr.isString=hr,gr.isntString=function(t){return!hr(t)},mr.isntChar=mr.isChar=void 0;const Ar=gr;function wr(t){return(0,Ar.isString)(t)&&1===t.length}mr.isChar=wr,mr.isntChar=function(t){return!wr(t)};var Or={};function Sr(t){return t instanceof Date}Or.isntDate=Or.isDate=void 0,Or.isDate=Sr,Or.isntDate=function(t){return!Sr(t)};var jr={};jr.inEnum=void 0,jr.inEnum=function(t,n){return Object.values(n).includes(t)};var Ir={};function Er(t){return t instanceof Error}Ir.isntError=Ir.isError=void 0,Ir.isError=Er,Ir.isntError=function(t){return!Er(t)};var Nr={};function Pr(t){return!t}Nr.isntFalsy=Nr.isFalsy=void 0,Nr.isFalsy=Pr,Nr.isntFalsy=function(t){return!Pr(t)};var _r={};_r.isntIterable=_r.isIterable=void 0;const xr=rr,Br=ir,Tr=sr;function kr(t){return(0,xr.isntNull)(t)&&(0,Br.isntUndefined)(t)&&(0,Tr.isFunction)(t[Symbol.iterator])}_r.isIterable=kr,_r.isntIterable=function(t){return!kr(t)};var Rr={},Jr={};function Ur(t){return"number"==typeof t}Jr.isntNumber=Jr.isNumber=void 0,Jr.isNumber=Ur,Jr.isntNumber=function(t){return!Ur(t)};var qr={},Cr=n&&n.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};qr.isntEmptyObject=qr.isEmptyObject=qr.isntPlainObject=qr.isPlainObject=qr.isntObject=qr.isObject=void 0;const Dr=Cr(st);function Fr(t){return null!==t&&"object"==typeof t}function Lr(t){return(0,Dr.default)(t)}qr.isObject=Fr,qr.isntObject=function(t){return!Fr(t)},qr.isPlainObject=Lr,qr.isntPlainObject=function(t){return!Lr(t)},qr.isEmptyObject=function(t){return 0===Object.keys(t).length},qr.isntEmptyObject=function(t){return 0!==Object.keys(t).length},Rr.isntJsonable=Rr.isJsonable=Rr.isntJson=Rr.isJson=void 0;const zr=rr,Mr=br,Vr=gr,Wr=Jr,Gr=tr,Hr=qr;function Kr(t){return(0,zr.isNull)(t)||(0,Mr.isBoolean)(t)||(0,Vr.isString)(t)||(0,Wr.isNumber)(t)||(0,Gr.isArray)(t)&&t.every(Kr)||(0,Hr.isPlainObject)(t)&&Object.values(t).every(Kr)}Rr.isJson=Kr,Rr.isntJson=function(t){return!Kr(t)},Rr.isJsonable=function(t){try{return JSON.stringify(t),!0}catch(t){return!1}},Rr.isntJsonable=function t(n){return!t()};var Qr={};Qr.isPromiseLike=Qr.isntPromiseLike=Qr.isntPromise=Qr.isPromise=void 0;const Xr=qr,Yr=sr;function Zr(t){return t instanceof Promise}function $r(t){return(0,Xr.isObject)(t)&&(0,Yr.isFunction)(t.then)}Qr.isPromise=Zr,Qr.isntPromise=function(t){return!Zr(t)},Qr.isntPromiseLike=function(t){return!$r(t)},Qr.isPromiseLike=$r;var to={};to.isAbsoluteURL=void 0,to.isAbsoluteURL=function(t){try{return new URL(t),!0}catch(t){return!1}},function(t){var e=n&&n.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e),Object.defineProperty(t,r,{enumerable:!0,get:function(){return n[e]}})}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(tr,t),r(er,t),r(dr,t),r(br,t),r(mr,t),r(Or,t),r(jr,t),r(Ir,t),r(Nr,t),r(sr,t),r(_r,t),r(Rr,t),r(rr,t),r(Jr,t),r(qr,t),r(Qr,t),r(gr,t),r(ir,t),r(to,t)}($e);var no={};no.traverseErrorPrototypeChain=void 0,no.traverseErrorPrototypeChain=function*(t){let n=t;for(;(n=Object.getPrototypeOf(n))&&(yield n,n!==Error.prototype););},Ze.getErrorNames=void 0;const eo=$e,ro=no;Ze.getErrorNames=function*(t){var n;if((0,eo.isError)(t))for(const e of(0,ro.traverseErrorPrototypeChain)(t))(null===(n=e.constructor)||void 0===n?void 0:n.name)&&(yield e.constructor.name);else yield t.name,yield*t.ancestors};var oo={isSerializableError:void 0};const io=$e;oo.isSerializableError=function(t){return(0,io.isObject)(t)&&(0,io.isString)(t.name)&&(0,io.isString)(t.message)&&((0,io.isString)(t.stack)||(0,io.isNull)(t.stack))&&(0,io.isArray)(t.ancestors)&&t.ancestors.every(io.isString)},f.CustomError=void 0;const ao=l,so=Ze,co=$e,uo=oo;class fo extends Error{get name(){var t,n;return null!==(n=null!==(t=(0,ao.first)((0,so.getErrorNames)(this)))&&void 0!==t?t:fo.name)&&void 0!==n?n:"CustomError"}static[Symbol.hasInstance](t){var n;if((0,co.isError)(t)||(0,uo.isSerializableError)(t)){const e=[null!==(n=this.prototype.constructor.name)&&void 0!==n?n:this.name,...(0,so.getErrorNames)(this.prototype)].reverse(),r=(0,ao.toArray)((0,so.getErrorNames)(t)).reverse();return e.every(((t,n)=>t===r[n]))}return!1}}f.CustomError=fo;var lo={AssertionError:void 0};const yo=f;class vo extends yo.CustomError{}lo.AssertionError=vo;var bo={normalize:void 0};const po=Ze,mo=l;bo.normalize=function(t){var n;const[e,...r]=(0,mo.toArray)((0,po.getErrorNames)(t));return{name:e,ancestors:r,message:t.message,stack:null!==(n=t.stack)&&void 0!==n?n:null}};var go={},ho={},Ao={};Ao.pass=void 0,Ao.pass=function(){},function(t){var e=n&&n.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e),Object.defineProperty(t,r,{enumerable:!0,get:function(){return n[e]}})}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]});(n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)})(Ao,t)}(ho),go.hydrate=void 0;const wo=ho;function Oo(t,n){const e=function(){(0,wo.pass)()};return(e.prototype=Object.create(t.prototype)).constructor=e,Object.defineProperty(e,"name",{value:n}),e}go.hydrate=function(t){var n;const e=[t.name,...t.ancestors].slice(0,-1).reverse();let r=Error;for(const t of e)r=Oo(r,t);const o=new r;return o.name=t.name,o.message=t.message,o.stack=null!==(n=t.stack)&&void 0!==n?n:void 0,o};var So={assert:void 0};const jo=lo;So.assert=function(t,n){if(!t)throw new jo.AssertionError(n)},function(t){var e=n&&n.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var o=Object.getOwnPropertyDescriptor(n,e);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,o)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(f,t),r(lo,t),r(oo,t),r(bo,t),r(go,t),r(So,t),r(Ze,t),r(no,t)}(u);class Io extends u.CustomError{static[Symbol.hasInstance](t){return $e.isError(t)?l.some(u.getErrorNames(t),(t=>"AbortError"===t)):super[Symbol.hasInstance](t)}}var Eo;const No=null!==(Eo=globalThis.AbortSignal)&&void 0!==Eo?Eo:i;
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((t="undefined"!=typeof globalThis?globalThis:t||self).ExtraAbort={})}(this,(function(t){"use strict";var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},e={exports:{}};const{AbortController:r,AbortSignal:o}="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0;e.exports=r;var i=e.exports.AbortSignal=o;e.exports.default=r;var a,c=e.exports;const s=null!==(a=globalThis.AbortController)&&void 0!==a?a:c;var u={},f={},l={},y={},d={},v={},m={};m.go=void 0,m.go=function(t){return t()};var p={};p.goMicrotask=void 0,p.goMicrotask=function(t){return new Promise(((n,e)=>{queueMicrotask((async()=>{try{n(await t())}catch(t){e(t)}}))}))};var b={},h={},g={},w={},A={};A.random=void 0,A.random=function(t,n){return Math.random()*(n-t)+t};var I={};I.randomInt=void 0,I.randomInt=function(t,n){return t=Math.ceil(t),n=Math.floor(n),Math.floor(Math.random()*(n-t))+t};var S={};S.randomIntInclusive=void 0,S.randomIntInclusive=function(t,n){return t=Math.ceil(t),n=Math.floor(n),Math.floor(Math.random()*(n-t+1))+t},function(t){var e=n&&n.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e),Object.defineProperty(t,r,{enumerable:!0,get:function(){return n[e]}})}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(A,t),r(I,t),r(S,t)}(w),g.calculateExponentialBackoffTimeout=void 0;const O=w;g.calculateExponentialBackoffTimeout=function({baseTimeout:t,retries:n,maxTimeout:e=1/0,factor:r=2,jitter:o=!0}){const i=Math.min(r**n*t,e);return o?(0,O.randomIntInclusive)(0,i):i};var T={};T.setTimeout=void 0,T.setTimeout=function(t,n){const e=globalThis.setTimeout(n,t);return()=>clearTimeout(e)};var j={setSchedule:void 0};const x=T;j.setSchedule=function(t,n){const e=t-Date.now();return(0,x.setTimeout)(e,n)};var N={};N.setInterval=void 0,N.setInterval=function(t,n){const e=globalThis.setInterval(n,t);return()=>clearInterval(e)};var _={setImmediate:void 0};const k=T;_.setImmediate=function(t){if(globalThis.setImmediate){const n=globalThis.setImmediate(t);return()=>clearImmediate(n)}return(0,k.setTimeout)(0,t)};var E={setTimeoutLoop:void 0};const B=T;E.setTimeoutLoop=function(t,n){let e=!1,r=(0,B.setTimeout)(t,(async function o(){await n(),e||(r=(0,B.setTimeout)(t,o))}));return()=>{e=!0,r()}};var P={setDynamicTimeoutLoop:void 0};const q=T;P.setDynamicTimeoutLoop=function(t,n){let e=!1,r=(0,q.setTimeout)(t,(async function o(){const i=Date.now();await n();const a=Date.now()-i;e||(r=(0,q.setTimeout)(Math.max(t-a,0),o))}));return()=>{e=!0,r()}},function(t){var e=n&&n.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e),Object.defineProperty(t,r,{enumerable:!0,get:function(){return n[e]}})}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(g,t),r(T,t),r(j,t),r(N,t),r(_,t),r(E,t),r(P,t)}(h),b.goMacrotask=void 0;const D=h;b.goMacrotask=function(t){return new Promise(((n,e)=>{(0,D.setImmediate)((async()=>{try{n(await t())}catch(t){e(t)}}))}))},function(t){var e=n&&n.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var o=Object.getOwnPropertyDescriptor(n,e);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,o)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(m,t),r(p,t),r(b,t)}(v),d.chunkAsync=void 0;const M=v,R=u;d.chunkAsync=function(t,n){return(0,R.assert)(Number.isInteger(n),"The parameter size must be an integer"),(0,R.assert)(n>0,"The parameter size must be greater than 0"),(0,M.go)((async function*(){let e=[];for await(const r of t)e.push(r),e.length>=n&&(yield e,e=[]);e.length&&(yield e)}))};var U={},z={},C={};function F(t){return Array.isArray(t)}C.isntEmptyArray=C.isEmptyArray=C.isntArray=C.isArray=void 0,C.isArray=F,C.isntArray=function(t){return!F(t)},C.isEmptyArray=function(t){return 0===t.length},C.isntEmptyArray=function(t){return 0!==t.length};var L={},J={};function V(t){return null===t}J.isntNull=J.isNull=void 0,J.isNull=V,J.isntNull=function(t){return!V(t)};var W={};function G(t){return void 0===t}W.isntUndefined=W.isUndefined=void 0,W.isUndefined=G,W.isntUndefined=function(t){return!G(t)};var H={};function K(t){return"function"==typeof t}H.isntFunction=H.isFunction=void 0,H.isFunction=K,H.isntFunction=function(t){return!K(t)},L.isntAsyncIterable=L.isAsyncIterable=void 0;const Q=J,X=W,Y=H;function Z(t){return(0,Q.isntNull)(t)&&(0,X.isntUndefined)(t)&&(0,Y.isFunction)(t[Symbol.asyncIterator])}L.isAsyncIterable=Z,L.isntAsyncIterable=function(t){return!Z(t)};var $={};function tt(t){return"bigint"==typeof t}$.isntBigInt=$.isBigInt=void 0,$.isBigInt=tt,$.isntBigInt=function(t){return!tt(t)};var nt={};function et(t){return"boolean"==typeof t}nt.isntBoolean=nt.isBoolean=void 0,nt.isBoolean=et,nt.isntBoolean=function(t){return!et(t)};var rt={},ot={};function it(t){return"string"==typeof t}ot.isntString=ot.isString=void 0,ot.isString=it,ot.isntString=function(t){return!it(t)},rt.isntChar=rt.isChar=void 0;const at=ot;function ct(t){return(0,at.isString)(t)&&1===t.length}rt.isChar=ct,rt.isntChar=function(t){return!ct(t)};var st={};function ut(t){return t instanceof Date}st.isntDate=st.isDate=void 0,st.isDate=ut,st.isntDate=function(t){return!ut(t)};var ft={};ft.inEnum=void 0,ft.inEnum=function(t,n){return Object.values(n).includes(t)};var lt={};function yt(t){return t instanceof Error}lt.isntError=lt.isError=void 0,lt.isError=yt,lt.isntError=function(t){return!yt(t)};var dt={};function vt(t){return!t}dt.isntFalsy=dt.isFalsy=void 0,dt.isFalsy=vt,dt.isntFalsy=function(t){return!vt(t)};var mt={};mt.isntIterable=mt.isIterable=void 0;const pt=J,bt=W,ht=H;function gt(t){return(0,pt.isntNull)(t)&&(0,bt.isntUndefined)(t)&&(0,ht.isFunction)(t[Symbol.iterator])}mt.isIterable=gt,mt.isntIterable=function(t){return!gt(t)};var wt={},At={};function It(t){return"number"==typeof t}function St(t){return Number.isNaN(t)}At.isntNaN=At.isNaN=At.isNegativeInfinity=At.isPositiveInfinity=At.isFinite=At.isntNumber=At.isNumber=void 0,At.isNumber=It,At.isntNumber=function(t){return!It(t)},At.isFinite=function(t){return Number.isFinite(t)},At.isPositiveInfinity=function(t){return t===1/0},At.isNegativeInfinity=function(t){return t===-1/0},At.isNaN=St,At.isntNaN=function(t){return!St(t)};var Ot={},Tt="object"==typeof n&&n&&n.Object===Object&&n,jt="object"==typeof self&&self&&self.Object===Object&&self,xt=(Tt||jt||Function("return this")()).Symbol,Nt=xt,_t=Object.prototype,kt=_t.hasOwnProperty,Et=_t.toString,Bt=Nt?Nt.toStringTag:void 0;var Pt=function(t){var n=kt.call(t,Bt),e=t[Bt];try{t[Bt]=void 0;var r=!0}catch(t){}var o=Et.call(t);return r&&(n?t[Bt]=e:delete t[Bt]),o},qt=Object.prototype.toString;var Dt=Pt,Mt=function(t){return qt.call(t)},Rt=xt?xt.toStringTag:void 0;var Ut=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Rt&&Rt in Object(t)?Dt(t):Mt(t)};var zt=function(t,n){return function(e){return t(n(e))}}(Object.getPrototypeOf,Object);var Ct=Ut,Ft=zt,Lt=function(t){return null!=t&&"object"==typeof t},Jt=Function.prototype,Vt=Object.prototype,Wt=Jt.toString,Gt=Vt.hasOwnProperty,Ht=Wt.call(Object);var Kt=function(t){if(!Lt(t)||"[object Object]"!=Ct(t))return!1;var n=Ft(t);if(null===n)return!0;var e=Gt.call(n,"constructor")&&n.constructor;return"function"==typeof e&&e instanceof e&&Wt.call(e)==Ht},Qt=n&&n.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Ot.isntEmptyObject=Ot.isEmptyObject=Ot.isntPlainObject=Ot.isPlainObject=Ot.isntObject=Ot.isObject=void 0;const Xt=Qt(Kt);function Yt(t){return null!==t&&"object"==typeof t}function Zt(t){return(0,Xt.default)(t)}Ot.isObject=Yt,Ot.isntObject=function(t){return!Yt(t)},Ot.isPlainObject=Zt,Ot.isntPlainObject=function(t){return!Zt(t)},Ot.isEmptyObject=function(t){return 0===Object.keys(t).length},Ot.isntEmptyObject=function(t){return 0!==Object.keys(t).length},wt.isntJsonable=wt.isJsonable=wt.isntJson=wt.isJson=void 0;const $t=J,tn=nt,nn=ot,en=At,rn=C,on=Ot;function an(t){return(0,$t.isNull)(t)||(0,tn.isBoolean)(t)||(0,nn.isString)(t)||(0,en.isNumber)(t)||(0,rn.isArray)(t)&&t.every(an)||(0,on.isPlainObject)(t)&&Object.values(t).every(an)}wt.isJson=an,wt.isntJson=function(t){return!an(t)},wt.isJsonable=function(t){try{return JSON.stringify(t),!0}catch(t){return!1}},wt.isntJsonable=function t(n){return!t()};var cn={};cn.isPromiseLike=cn.isntPromiseLike=cn.isntPromise=cn.isPromise=void 0;const sn=Ot,un=H;function fn(t){return t instanceof Promise}function ln(t){return(0,sn.isObject)(t)&&(0,un.isFunction)(t.then)}cn.isPromise=fn,cn.isntPromise=function(t){return!fn(t)},cn.isntPromiseLike=function(t){return!ln(t)},cn.isPromiseLike=ln;var yn={};yn.isAbsoluteURL=void 0,yn.isAbsoluteURL=function(t){try{return new URL(t),!0}catch(t){return!1}};var dn={};function vn(t){return t instanceof RegExp}dn.isntRegExp=dn.isRegExp=void 0,dn.isRegExp=vn,dn.isntRegExp=function(t){return!vn(t)};var mn={};function pn(t){return"symbol"==typeof t}mn.isntSymbol=mn.isSymbol=void 0,mn.isSymbol=pn,mn.isntSymbol=function(t){return!pn(t)},function(t){var e=n&&n.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var o=Object.getOwnPropertyDescriptor(n,e);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,o)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(C,t),r(L,t),r($,t),r(nt,t),r(rt,t),r(st,t),r(ft,t),r(lt,t),r(dt,t),r(H,t),r(mt,t),r(wt,t),r(J,t),r(At,t),r(Ot,t),r(cn,t),r(ot,t),r(W,t),r(yn,t),r(dn,t),r(mn,t)}(z),U.chunkByAsync=void 0;const bn=z;U.chunkByAsync=function(t,n){return(0,bn.isAsyncIterable)(t)?async function*(t,n){let e=[],r=0;for await(const o of t)e.push(o),await n(o,r)&&(yield e,e=[]),r++;e.length&&(yield e)}(t,n):async function*(t,n){let e=[],r=0;for(const o of t)e.push(o),await n(o,r)&&(yield e,e=[]),r++;e.length&&(yield e)}(t,n)};var hn={};hn.chunkBy=void 0,hn.chunkBy=function*(t,n){let e=[],r=0;for(const o of t)e.push(o),n(o,r)&&(yield e,e=[]),r++;e.length&&(yield e)};var gn={chunk:void 0};const wn=v,An=u;gn.chunk=function(t,n){return(0,An.assert)(Number.isInteger(n),"The parameter size must be an integer"),(0,An.assert)(n>0,"The parameter size must be greater than 0"),(0,wn.go)((function*(){let e=[];for(const r of t)e.push(r),e.length>=n&&(yield e,e=[]);e.length&&(yield e)}))};var In={concatAsync:void 0};const Sn=z,On=v;In.concatAsync=function(t,...n){return(0,On.go)((async function*(){for(const e of[t,...n])if((0,Sn.isAsyncIterable)(e))for await(const t of e)yield t;else for(const t of e)yield t}))};var Tn={concat:void 0};const jn=v;Tn.concat=function(t,...n){return(0,jn.go)((function*(){for(const e of[t,...n])yield*e}))};var xn={},Nn={};Nn.copyIterable=Nn.copyAsyncIterable=void 0,Nn.copyAsyncIterable=async function*(t){for await(const n of t)yield n},Nn.copyIterable=function*(t){for(const n of t)yield n},xn.dropAsync=void 0;const _n=v,kn=Nn,En=u;xn.dropAsync=function(t,n){return(0,En.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,En.assert)(n>=0,"The parameter count must be greater than or equal to 0"),0===n?(0,kn.copyAsyncIterable)(t):(0,_n.go)((async function*(){var e;const r=t[Symbol.asyncIterator]();let o;try{let t;for(;!(({value:t,done:o}=await r.next()),o||n<=0);)n--;for(;!o;)yield t,({value:t,done:o}=await r.next())}finally{o||await(null===(e=r.return)||void 0===e?void 0:e.call(r))}}))};var Bn={dropRightAsync:void 0};const Pn=v,qn=Nn,Dn=u;Bn.dropRightAsync=function(t,n){return(0,Dn.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,Dn.assert)(n>=0,"The parameter count must be greater than or equal to 0"),0===n?(0,qn.copyAsyncIterable)(t):(0,Pn.go)((async function*(){const e=(await async function(t){const n=[];for await(const e of t)n.push(e);return n}(t)).slice(0,-n);for(const t of e)yield t}))};var Mn={dropRight:void 0};const Rn=v,Un=Nn,zn=u;Mn.dropRight=function(t,n){return(0,zn.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,zn.assert)(n>=0,"The parameter count must be greater than or equal to 0"),0===n?(0,Un.copyIterable)(t):(0,Rn.go)((function*(){const e=Array.from(t);yield*e.slice(0,-n)}))};var Cn={dropUntilAsync:void 0};const Fn=z;Cn.dropUntilAsync=function(t,n){return(0,Fn.isAsyncIterable)(t)?async function*(t,n){var e;const r=t[Symbol.asyncIterator]();let o;try{let t,i=0;for(;!(({value:t,done:o}=await r.next()),o||await n(t,i++)););for(;!o;)yield t,({value:t,done:o}=await r.next())}finally{o||await(null===(e=r.return)||void 0===e?void 0:e.call(r))}}(t,n):async function*(t,n){var e;const r=t[Symbol.iterator]();let o;try{let t,i=0;for(;!(({value:t,done:o}=r.next()),o||await n(t,i++)););for(;!o;)yield t,({value:t,done:o}=r.next())}finally{o||null===(e=r.return)||void 0===e||e.call(r)}}(t,n)};var Ln={};Ln.dropUntil=void 0,Ln.dropUntil=function*(t,n){var e;const r=t[Symbol.iterator]();let o;try{let t,i=0;for(;!(({value:t,done:o}=r.next()),o||n(t,i++)););for(;!o;)yield t,({value:t,done:o}=r.next())}finally{o||null===(e=r.return)||void 0===e||e.call(r)}};var Jn={drop:void 0};const Vn=v,Wn=Nn,Gn=u;Jn.drop=function(t,n){return(0,Gn.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,Gn.assert)(n>=0,"The parameter count must be greater than or equal to 0"),0===n?(0,Wn.copyIterable)(t):(0,Vn.go)((function*(){var e;const r=t[Symbol.iterator]();let o;try{let t;for(;!(({value:t,done:o}=r.next()),o||n<=0);)n--;for(;!o;)yield t,({value:t,done:o}=r.next())}finally{o||null===(e=r.return)||void 0===e||e.call(r)}}))};var Hn={filterAsync:void 0};const Kn=z;Hn.filterAsync=function(t,n){return(0,Kn.isAsyncIterable)(t)?async function*(t,n){let e=0;for await(const r of t)await n(r,e)&&(yield r),e++}(t,n):async function*(t,n){let e=0;for(const r of t)await n(r,e)&&(yield r),e++}(t,n)};var Qn={};Qn.filter=void 0,Qn.filter=function*(t,n){let e=0;for(const r of t)n(r,e)&&(yield r),e++};var Xn={},Yn={},Zn={flattenByAsync:void 0};const $n=z;async function*te(t,n,e){for(const r of t)ne(r)&&await n(r,e)?yield*te(r,n,e+1):yield r}function ne(t){return(0,$n.isIterable)(t)&&(0,$n.isntChar)(t)}Zn.flattenByAsync=function(t,n){return(0,$n.isAsyncIterable)(t)?async function*(t,n){const e=1;for await(const r of t)ne(r)&&await n(r,e)?yield*te(r,n,e+1):yield r}(t,n):function(t,n){return te(t,n,1)}(t,n)},Yn.flattenDeepAsync=void 0;const ee=Zn,re=u;Yn.flattenDeepAsync=function(t,n=1/0){return(0,re.assert)(n===1/0||Number.isInteger(n),"The parameter depth must be an integer"),(0,re.assert)(n>=0,"The parameter depth must be greater than or equal to 0"),(0,ee.flattenByAsync)(t,((t,e)=>e<=n))},Xn.flattenAsync=void 0;const oe=Yn;Xn.flattenAsync=function(t){return(0,oe.flattenDeepAsync)(t,1)};var ie={flattenBy:void 0};const ae=z;function*ce(t,n,e){for(const o of t)r=o,(0,ae.isIterable)(r)&&(0,ae.isntChar)(r)&&n(o,e)?yield*ce(o,n,e+1):yield o;var r}ie.flattenBy=function(t,n){return ce(t,n,1)};var se={flattenDeep:void 0};const ue=ie,fe=u;se.flattenDeep=function(t,n=1/0){return(0,fe.assert)(n===1/0||Number.isInteger(n),"The parameter depth must be an integer"),(0,fe.assert)(n>=0,"The parameter depth must be greater than or equal to 0"),(0,ue.flattenBy)(t,((t,e)=>e<=n))};var le={flatten:void 0};const ye=se;le.flatten=function(t){return(0,ye.flattenDeep)(t,1)};var de={mapAsync:void 0};const ve=z;de.mapAsync=function(t,n){return(0,ve.isAsyncIterable)(t)?async function*(t,n){let e=0;for await(const r of t)yield await n(r,e),e++}(t,n):async function*(t,n){let e=0;for(const r of t)yield await n(r,e),e++}(t,n)};var me={};me.map=void 0,me.map=function*(t,n){let e=0;for(const r of t)yield n(r,e),e++};var pe={repeatAsync:void 0};const be=v,he=u;pe.repeatAsync=function(t,n){return(0,he.assert)(n===1/0||Number.isInteger(n),"The parameter times must be an integer"),(0,he.assert)(n>=0,"The parameter times must be greater than or equal to 0"),n===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,be.go)((async function*(){const e=[];if(n>0){for await(const n of t)yield n,e.push(n);n--}for(;n>0;)yield*e,n--}))};var ge={repeat:void 0};const we=v,Ae=u;ge.repeat=function(t,n){return(0,Ae.assert)(n===1/0||Number.isInteger(n),"The parameter times must be an integer"),(0,Ae.assert)(n>=0,"The parameter times must be greater than or equal to 0"),n===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)((function*(){const e=[];if(n>0){for(const n of t)yield n,e.push(n);n--}for(;n>0;)yield*e,n--}))};var Ie={sliceAsync:void 0};const Se=v,Oe=u;Ie.sliceAsync=function(t,n,e=1/0){return(0,Oe.assert)(Number.isInteger(n),"The parameter start must be an integer"),(0,Oe.assert)(n>=0,"The parameter start must be greater than or equal to 0"),(0,Oe.assert)(Number.isInteger(e),"The parameter end must be an integer"),(0,Oe.assert)(e>=n,"The parameter end must be greater than or equal to start"),(0,Se.go)((async function*(){let r=0;for await(const o of t){if(r>=e)break;r>=n&&(yield o),r++}}))};var Te={slice:void 0};const je=v,xe=u;Te.slice=function(t,n,e=1/0){return(0,xe.assert)(Number.isInteger(n),"The parameter start must be an integer"),(0,xe.assert)(n>=0,"The parameter start must be greater than or equal to 0"),(0,xe.assert)(Number.isInteger(e),"The parameter end must be an integer"),(0,xe.assert)(e>=n,"The parameter end must be greater than or equal to start"),(0,je.go)((function*(){let r=0;for(const o of t){if(r>=e)break;r>=n&&(yield o),r++}}))};var Ne={};Ne.splitAsync=void 0,Ne.splitAsync=async function*(t,n){let e=[];for await(const r of t)r===n?(yield e,e=[]):e.push(r);yield e};var _e={splitByAsync:void 0};const ke=z;_e.splitByAsync=function(t,n){return(0,ke.isAsyncIterable)(t)?async function*(t,n){let e=[],r=0;for await(const o of t)await n(o,r)?(yield e,e=[]):e.push(o),r++;yield e}(t,n):async function*(t,n){let e=[],r=0;for(const o of t)await n(o,r)?(yield e,e=[]):e.push(o),r++;yield e}(t,n)};var Ee={};Ee.splitBy=void 0,Ee.splitBy=function*(t,n){let e=[],r=0;for(const o of t)n(o,r)?(yield e,e=[]):e.push(o),r++;yield e};var Be={};Be.split=void 0,Be.split=function*(t,n){let e=[];for(const r of t)r===n?(yield e,e=[]):e.push(r);yield e};var Pe={takeAsync:void 0};const qe=v,De=u;Pe.takeAsync=function(t,n){return(0,De.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,De.assert)(n>=0,"The parameter count must be greater than or equal to 0"),(0,qe.go)((async function*(){if(0!==n)for await(const e of t)if(yield e,0===--n)break}))};var Me={takeRightAsync:void 0};const Re=v,Ue=u;Me.takeRightAsync=function(t,n){return(0,Ue.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,Ue.assert)(n>=0,"The parameter count must be greater than or equal to 0"),(0,Re.go)((async function*(){var e;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>n&&t.shift();yield*t}finally{o||await(null===(e=r.return)||void 0===e?void 0:e.call(r))}}))};var ze={takeRight:void 0};const Ce=v,Fe=u;ze.takeRight=function(t,n){return(0,Fe.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,Fe.assert)(n>=0,"The parameter count must be greater than or equal to 0"),(0,Ce.go)((function*(){var e;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>n&&t.shift();yield*t}finally{o||null===(e=r.return)||void 0===e||e.call(r)}}))};var Le={takeUntilAsync:void 0};const Je=z;Le.takeUntilAsync=function(t,n){return(0,Je.isAsyncIterable)(t)?async function*(t,n){let e=0;for await(const r of t){if(await n(r,e))break;yield r,e++}}(t,n):async function*(t,n){let e=0;for(const r of t){if(await n(r,e))break;yield r,e++}}(t,n)};var Ve={};Ve.takeUntil=void 0,Ve.takeUntil=function*(t,n){let e=0;for(const r of t){if(n(r,e))break;yield r,e++}};var We={take:void 0};const Ge=v,He=u;We.take=function(t,n){return(0,He.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,He.assert)(n>=0,"The parameter count must be greater than or equal to 0"),(0,Ge.go)((function*(){if(0!==n)for(const e of t)if(yield e,0===--n)break}))};var Ke={tapAsync:void 0};const Qe=z;Ke.tapAsync=function(t,n){return(0,Qe.isAsyncIterable)(t)?async function*(t,n){let e=0;for await(const r of t)await n(r,e),yield r,e++}(t,n):async function*(t,n){let e=0;for(const r of t)await n(r,e),yield r,e++}(t,n)};var Xe={};Xe.tap=void 0,Xe.tap=function*(t,n){let e=0;for(const r of t)n(r,e),yield r,e++};var Ye={};Ye.toAsyncIterable=void 0,Ye.toAsyncIterable=async function*(t){for(const n of t)yield n};var Ze={};Ze.transformAsync=void 0,Ze.transformAsync=async function*(t,n){yield*n(t)};var $e={};$e.transform=void 0,$e.transform=function*(t,n){yield*n(t)};var tr={};tr.uniqAsync=void 0,tr.uniqAsync=async function*(t){const n=new Set;for await(const e of t)n.has(e)||(yield e,n.add(e))};var nr={uniqByAsync:void 0};const er=z;nr.uniqByAsync=function(t,n){return(0,er.isAsyncIterable)(t)?async function*(t,n){const e=new Set;let r=0;for await(const o of t){const t=await n(o,r);e.has(t)||(yield o,e.add(t)),r++}}(t,n):async function*(t,n){const e=new Set;let r=0;for(const o of t){const t=await n(o,r);e.has(t)||(yield o,e.add(t)),r++}}(t,n)};var rr={};rr.uniqBy=void 0,rr.uniqBy=function*(t,n){const e=new Set;let r=0;for(const o of t){const t=n(o,r);e.has(t)||(yield o,e.add(t)),r++}};var or={};or.uniq=void 0,or.uniq=function*(t){const n=new Set;for(const e of t)n.has(e)||(yield e,n.add(e))};var ir={zipAsync:void 0};const ar=z;var cr;!function(t){t[t.Sync=0]="Sync",t[t.Async=1]="Async"}(cr||(cr={})),ir.zipAsync=function(t,...n){return async function*(...t){var n,e,r,o;const i=t.length,a=t.map((t=>(0,ar.isAsyncIterable)(t)?[cr.Async,t[Symbol.asyncIterator]()]:[cr.Sync,t[Symbol.iterator]()])),c=a.map((()=>!1));try{for(;;){const t=new Array(i);for(let n=0;n<i;n++){const[e,r]=a[n];let o;if(o=e===cr.Async?await r.next():r.next(),o.done)return void(c[n]=!0);t[n]=o.value}yield t}}finally{const t=a.filter(((t,n)=>!c[n]));for(const[i,a]of t)i===cr.Async?await(null===(e=(n=a).return)||void 0===e?void 0:e.call(n)):null===(o=(r=a).return)||void 0===o||o.call(r)}}(t,...n)};var sr={};sr.zip=void 0,sr.zip=function(t,...n){return function*(...t){const n=t.length,e=t.map((t=>t[Symbol.iterator]())),r=e.map((()=>!1));try{for(;;){const t=new Array(n);for(let o=0;o<n;o++){const{value:n,done:i}=e[o].next();if(i)return void(r[o]=!0);t[o]=n}yield t}}finally{e.filter(((t,n)=>!r[n])).forEach((t=>{var n;return null===(n=t.return)||void 0===n?void 0:n.call(t)}))}}(t,...n)},function(t){var e=n&&n.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var o=Object.getOwnPropertyDescriptor(n,e);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,o)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(d,t),r(U,t),r(hn,t),r(gn,t),r(In,t),r(Tn,t),r(xn,t),r(Bn,t),r(Mn,t),r(Cn,t),r(Ln,t),r(Jn,t),r(Hn,t),r(Qn,t),r(Xn,t),r(Zn,t),r(ie,t),r(Yn,t),r(se,t),r(le,t),r(de,t),r(me,t),r(pe,t),r(ge,t),r(Ie,t),r(Te,t),r(Ne,t),r(_e,t),r(Ee,t),r(Be,t),r(Pe,t),r(Me,t),r(ze,t),r(Le,t),r(Ve,t),r(We,t),r(Ke,t),r(Xe,t),r(Ye,t),r(Ze,t),r($e,t),r(tr,t),r(nr,t),r(rr,t),r(or,t),r(ir,t),r(sr,t)}(y);var ur={},fr={};fr.consume=void 0,fr.consume=function(t,n){return n(t)};var lr={eachAsync:void 0};const yr=z;lr.eachAsync=function(t,n){return(0,yr.isAsyncIterable)(t)?async function(t,n){let e=0;for await(const r of t)await n(r,e),e++}(t,n):async function(t,n){let e=0;for(const r of t)await n(r,e),e++}(t,n)};var dr={};dr.each=void 0,dr.each=function(t,n){let e=0;for(const r of t)n(r,e),e++};var vr={everyAsync:void 0};const mr=z;vr.everyAsync=function(t,n){return(0,mr.isAsyncIterable)(t)?async function(t,n){let e=0;for await(const r of t){if(!await n(r,e))return!1;e++}return!0}(t,n):async function(t,n){let e=0;for(const r of t){if(!await n(r,e))return!1;e++}return!0}(t,n)};var pr={};pr.every=void 0,pr.every=function(t,n){let e=0;for(const r of t){if(!n(r,e))return!1;e++}return!0};var br={findAsync:void 0};const hr=z;br.findAsync=function(t,n){return(0,hr.isAsyncIterable)(t)?async function(t,n){let e=0;for await(const r of t){if(await n(r,e))return r;e++}return}(t,n):async function(t,n){let e=0;for(const r of t){if(await n(r,e))return r;e++}return}(t,n)};var gr={};gr.find=void 0,gr.find=function(t,n){let e=0;for(const r of t){if(n(r,e))return r;e++}};var wr={};wr.firstAsync=void 0,wr.firstAsync=async function(t){for await(const n of t)return n};var Ar={};Ar.first=void 0,Ar.first=function(t){for(const n of t)return n};var Ir={};Ir.includesAsync=void 0,Ir.includesAsync=async function(t,n){for await(const e of t)if(e===n)return!0;return!1};var Sr={};Sr.includes=void 0,Sr.includes=function(t,n){for(const e of t)if(e===n)return!0;return!1};var Or={};Or.matchAsync=void 0,Or.matchAsync=async function(t,n){const e=n.length;let r=0;for await(const o of t)if(o===n[r]&&r++,r===e)return!0;return!1};var Tr={};Tr.match=void 0,Tr.match=function(t,n){const e=n.length;let r=0;for(const o of t)if(o===n[r]&&r++,r===e)return!0;return!1};var jr={reduceAsync:void 0};const xr=z;jr.reduceAsync=function(t,n,e){return(0,xr.isUndefined)(e)?function(t,n){return(0,xr.isAsyncIterable)(t)?e(t):r(t);async function e(t){var e;const r=t[Symbol.asyncIterator]();let o;try{let t,a=await i(r),c=1;for(;({value:t,done:o}=await r.next()),!o;)a=await n(a,t,c++);return a}finally{o||await(null===(e=r.return)||void 0===e?void 0:e.call(r))}async function i(t){const n=await t.next();if(n.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return n.value}}async function r(t){var e;const r=t[Symbol.iterator]();let o;try{let t,a=i(r),c=1;for(;({value:t,done:o}=r.next()),!o;)a=await n(a,t,c++);return a}finally{o||null===(e=r.return)||void 0===e||e.call(r)}function i(t){const n=t.next();if(n.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return n.value}}}(t,n):function(t,n,e){return(0,xr.isAsyncIterable)(t)?o(t):r(t);async function r(t){let r=e,o=0;for(const e of t)r=await n(r,e,o++);return r}async function o(t){let r=e,o=0;for await(const e of t)r=await n(r,e,o++);return r}}(t,n,e)};var Nr={reduce:void 0};const _r=z;Nr.reduce=function(t,n,e){return(0,_r.isUndefined)(e)?function(t,n){var e;const r=t[Symbol.iterator]();let o;try{let t,a=i(r),c=1;for(;({value:t,done:o}=r.next()),!o;)a=n(a,t,c++);return a}finally{o||null===(e=r.return)||void 0===e||e.call(r)}function i(t){const n=t.next();if(n.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return n.value}}(t,n):function(t,n,e){let r=e,o=0;for(const e of t)r=n(r,e,o++);return r}(t,n,e)};var kr={someAsync:void 0};const Er=z;kr.someAsync=function(t,n){return(0,Er.isAsyncIterable)(t)?async function(t,n){let e=0;for await(const r of t){if(await n(r,e))return!0;e++}return!1}(t,n):async function(t,n){let e=0;for(const r of t){if(await n(r,e))return!0;e++}return!1}(t,n)};var Br={};Br.some=void 0,Br.some=function(t,n){let e=0;for(const r of t){if(n(r,e))return!0;e++}return!1};var Pr={};Pr.lastAsync=void 0,Pr.lastAsync=async function(t){var n;const e=t[Symbol.asyncIterator]();let r;try{let t,o;for(;({value:t,done:r}=await e.next()),!r;)o=t;return o}finally{r||await(null===(n=e.return)||void 0===n?void 0:n.call(e))}};var qr={};qr.last=void 0,qr.last=function(t){var n;const e=t[Symbol.iterator]();let r;try{let t,o;for(;({value:t,done:r}=e.next()),!r;)o=t;return o}finally{r||null===(n=e.return)||void 0===n||n.call(e)}};var Dr={toArrayAsync:void 0};const Mr=fr;Dr.toArrayAsync=function(t){return(0,Mr.consume)(t,(async t=>{const n=[];for await(const e of t)n.push(e);return n}))};var Rr={toArray:void 0};const Ur=fr;Rr.toArray=function(t){return(0,Ur.consume)(t,(t=>Array.from(t)))};var zr={toSetAsync:void 0};const Cr=fr;zr.toSetAsync=function(t){return(0,Cr.consume)(t,(async t=>{const n=new Set;for await(const e of t)n.add(e);return n}))};var Fr={toSet:void 0};const Lr=fr;Fr.toSet=function(t){return(0,Lr.consume)(t,(t=>new Set(t)))};var Jr={};Jr.count=void 0,Jr.count=function(t){let n=0;for(const e of t)n++;return n};var Vr={};Vr.countAsync=void 0,Vr.countAsync=async function(t){let n=0;for await(const e of t)n++;return n};var Wr={groupBy:void 0};const Gr=dr;Wr.groupBy=function(t,n){const e=new Map;return(0,Gr.each)(t,((t,r)=>{const o=n(t,r);e.has(o)||e.set(o,[]),e.get(o).push(t)})),e};var Hr={groupByAsync:void 0};const Kr=lr;Hr.groupByAsync=async function(t,n){const e=new Map;return await(0,Kr.eachAsync)(t,(async(t,r)=>{const o=await n(t,r);e.has(o)||e.set(o,[]),e.get(o).push(t)})),e},function(t){var e=n&&n.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var o=Object.getOwnPropertyDescriptor(n,e);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,o)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(fr,t),r(lr,t),r(dr,t),r(vr,t),r(pr,t),r(br,t),r(gr,t),r(wr,t),r(Ar,t),r(Ir,t),r(Sr,t),r(Or,t),r(Tr,t),r(jr,t),r(Nr,t),r(kr,t),r(Br,t),r(Pr,t),r(qr,t),r(Dr,t),r(Rr,t),r(zr,t),r(Fr,t),r(Jr,t),r(Vr,t),r(Wr,t),r(Hr,t)}(ur),function(t){var e=n&&n.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var o=Object.getOwnPropertyDescriptor(n,e);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,o)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(y,t),r(ur,t)}(l);var Qr={},Xr={};Xr.traverseErrorPrototypeChain=void 0,Xr.traverseErrorPrototypeChain=function*(t){let n=t;for(;(n=Object.getPrototypeOf(n))&&(yield n,n!==Error.prototype););},Qr.getErrorNames=void 0;const Yr=z,Zr=Xr;Qr.getErrorNames=function*(t){var n;if((0,Yr.isError)(t))for(const e of(0,Zr.traverseErrorPrototypeChain)(t))(null===(n=e.constructor)||void 0===n?void 0:n.name)&&(yield e.constructor.name);else yield t.name,yield*t.ancestors};var $r={isSerializableError:void 0};const to=z;$r.isSerializableError=function(t){return(0,to.isObject)(t)&&(0,to.isString)(t.name)&&(0,to.isString)(t.message)&&((0,to.isString)(t.stack)||(0,to.isNull)(t.stack))&&(0,to.isArray)(t.ancestors)&&t.ancestors.every(to.isString)},f.CustomError=void 0;const no=l,eo=Qr,ro=z,oo=$r;class io extends Error{get name(){var t,n;return null!==(n=null!==(t=(0,no.first)((0,eo.getErrorNames)(this)))&&void 0!==t?t:io.name)&&void 0!==n?n:"CustomError"}static[Symbol.hasInstance](t){var n;if((0,ro.isError)(t)||(0,oo.isSerializableError)(t)){const e=[null!==(n=this.prototype.constructor.name)&&void 0!==n?n:this.name,...(0,eo.getErrorNames)(this.prototype)].reverse(),r=(0,no.toArray)((0,eo.getErrorNames)(t)).reverse();return e.every(((t,n)=>t===r[n]))}return!1}}f.CustomError=io;var ao={AssertionError:void 0};const co=f;class so extends co.CustomError{}ao.AssertionError=so;var uo={normalize:void 0};const fo=Qr,lo=l;uo.normalize=function(t){var n;const[e,...r]=(0,lo.toArray)((0,fo.getErrorNames)(t));return{name:e,ancestors:r,message:t.message,stack:null!==(n=t.stack)&&void 0!==n?n:null}};var yo={},vo={},mo={};mo.pass=void 0,mo.pass=function(){},function(t){var e=n&&n.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e),Object.defineProperty(t,r,{enumerable:!0,get:function(){return n[e]}})}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]});(n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)})(mo,t)}(vo),yo.hydrate=void 0;const po=vo;function bo(t,n){const e=function(){(0,po.pass)()};return(e.prototype=Object.create(t.prototype)).constructor=e,Object.defineProperty(e,"name",{value:n}),e}yo.hydrate=function(t){var n;const e=[t.name,...t.ancestors].slice(0,-1).reverse();let r=Error;for(const t of e)r=bo(r,t);const o=new r;return o.name=t.name,o.message=t.message,o.stack=null!==(n=t.stack)&&void 0!==n?n:void 0,o};var ho={assert:void 0};const go=ao;ho.assert=function(t,n){if(!t)throw new go.AssertionError(n)},function(t){var e=n&&n.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var o=Object.getOwnPropertyDescriptor(n,e);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,o)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(f,t),r(ao,t),r($r,t),r(uo,t),r(yo,t),r(ho,t),r(Qr,t),r(Xr,t)}(u);var wo={},Ao={},Io={chunkAsync:void 0};const So=v,Oo=u;Io.chunkAsync=function(t,n){return(0,Oo.assert)(Number.isInteger(n),"The parameter size must be an integer"),(0,Oo.assert)(n>0,"The parameter size must be greater than 0"),(0,So.go)((async function*(){let e=[];for await(const r of t)e.push(r),e.length>=n&&(yield e,e=[]);e.length&&(yield e)}))};var To={chunkByAsync:void 0};const jo=z;To.chunkByAsync=function(t,n){return(0,jo.isAsyncIterable)(t)?async function*(t,n){let e=[],r=0;for await(const o of t)e.push(o),await n(o,r)&&(yield e,e=[]),r++;e.length&&(yield e)}(t,n):async function*(t,n){let e=[],r=0;for(const o of t)e.push(o),await n(o,r)&&(yield e,e=[]),r++;e.length&&(yield e)}(t,n)};var xo={};xo.chunkBy=void 0,xo.chunkBy=function*(t,n){let e=[],r=0;for(const o of t)e.push(o),n(o,r)&&(yield e,e=[]),r++;e.length&&(yield e)};var No={chunk:void 0};const _o=v,ko=u;No.chunk=function(t,n){return(0,ko.assert)(Number.isInteger(n),"The parameter size must be an integer"),(0,ko.assert)(n>0,"The parameter size must be greater than 0"),(0,_o.go)((function*(){let e=[];for(const r of t)e.push(r),e.length>=n&&(yield e,e=[]);e.length&&(yield e)}))};var Eo={concatAsync:void 0};const Bo=z,Po=v;Eo.concatAsync=function(t,...n){return(0,Po.go)((async function*(){for(const e of[t,...n])if((0,Bo.isAsyncIterable)(e))for await(const t of e)yield t;else for(const t of e)yield t}))};var qo={concat:void 0};const Do=v;qo.concat=function(t,...n){return(0,Do.go)((function*(){for(const e of[t,...n])yield*e}))};var Mo={},Ro={filterAsync:void 0};const Uo=z;Ro.filterAsync=function(t,n){return(0,Uo.isAsyncIterable)(t)?async function*(t,n){let e=0;for await(const r of t)await n(r,e)&&(yield r),e++}(t,n):async function*(t,n){let e=0;for(const r of t)await n(r,e)&&(yield r),e++}(t,n)};var zo={};zo.toSetAsync=void 0,zo.toSetAsync=async function(t){const n=new Set;for await(const e of t)n.add(await e);return n},Mo.differenceAsync=void 0;const Co=Ro,Fo=zo;Mo.differenceAsync=async function*(t,n){const e=await(0,Fo.toSetAsync)(n);yield*(0,Co.filterAsync)(t,(async t=>!e.has(await t)))};var Lo={},Jo={};Jo.filter=void 0,Jo.filter=function*(t,n){let e=0;for(const r of t)n(r,e)&&(yield r),e++};var Vo={};Vo.toSet=void 0,Vo.toSet=function(t){return new Set(t)},Lo.difference=void 0;const Wo=Jo,Go=Vo;Lo.difference=function(t,n){const e=(0,Go.toSet)(n);return(0,Wo.filter)(t,(t=>!e.has(t)))};var Ho={},Ko={};Ko.copyIterable=Ko.copyAsyncIterable=void 0,Ko.copyAsyncIterable=async function*(t){for await(const n of t)yield n},Ko.copyIterable=function*(t){for(const n of t)yield n},Ho.dropAsync=void 0;const Qo=v,Xo=Ko,Yo=u;Ho.dropAsync=function(t,n){return(0,Yo.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,Yo.assert)(n>=0,"The parameter count must be greater than or equal to 0"),0===n?(0,Xo.copyAsyncIterable)(t):(0,Qo.go)((async function*(){var e;const r=t[Symbol.asyncIterator]();let o;try{let t;for(;!(({value:t,done:o}=await r.next()),o||n<=0);)n--;for(;!o;)yield t,({value:t,done:o}=await r.next())}finally{o||await(null===(e=r.return)||void 0===e?void 0:e.call(r))}}))};var Zo={},$o={};$o.toArrayAsync=void 0,$o.toArrayAsync=async function(t){const n=[];for await(const e of t)n.push(e);return n},Zo.dropRightAsync=void 0;const ti=v,ni=Ko,ei=u,ri=$o;Zo.dropRightAsync=function(t,n){return(0,ei.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,ei.assert)(n>=0,"The parameter count must be greater than or equal to 0"),0===n?(0,ni.copyAsyncIterable)(t):(0,ti.go)((async function*(){const e=(await(0,ri.toArrayAsync)(t)).slice(0,-n);for(const t of e)yield t}))};var oi={dropRight:void 0};const ii=v,ai=Ko,ci=u;oi.dropRight=function(t,n){return(0,ci.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,ci.assert)(n>=0,"The parameter count must be greater than or equal to 0"),0===n?(0,ai.copyIterable)(t):(0,ii.go)((function*(){const e=Array.from(t);yield*e.slice(0,-n)}))};var si={dropUntilAsync:void 0};const ui=z;si.dropUntilAsync=function(t,n){return(0,ui.isAsyncIterable)(t)?async function*(t,n){var e;const r=t[Symbol.asyncIterator]();let o;try{let t,i=0;for(;!(({value:t,done:o}=await r.next()),o||await n(t,i++)););for(;!o;)yield t,({value:t,done:o}=await r.next())}finally{o||await(null===(e=r.return)||void 0===e?void 0:e.call(r))}}(t,n):async function*(t,n){var e;const r=t[Symbol.iterator]();let o;try{let t,i=0;for(;!(({value:t,done:o}=r.next()),o||await n(t,i++)););for(;!o;)yield t,({value:t,done:o}=r.next())}finally{o||null===(e=r.return)||void 0===e||e.call(r)}}(t,n)};var fi={};fi.dropUntil=void 0,fi.dropUntil=function*(t,n){var e;const r=t[Symbol.iterator]();let o;try{let t,i=0;for(;!(({value:t,done:o}=r.next()),o||n(t,i++)););for(;!o;)yield t,({value:t,done:o}=r.next())}finally{o||null===(e=r.return)||void 0===e||e.call(r)}};var li={drop:void 0};const yi=v,di=Ko,vi=u;li.drop=function(t,n){return(0,vi.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,vi.assert)(n>=0,"The parameter count must be greater than or equal to 0"),0===n?(0,di.copyIterable)(t):(0,yi.go)((function*(){var e;const r=t[Symbol.iterator]();let o;try{let t;for(;!(({value:t,done:o}=r.next()),o||n<=0);)n--;for(;!o;)yield t,({value:t,done:o}=r.next())}finally{o||null===(e=r.return)||void 0===e||e.call(r)}}))};var mi={},pi={},bi={flattenByAsync:void 0};const hi=z;async function*gi(t,n,e){for(const r of t)wi(r)&&await n(r,e)?yield*gi(r,n,e+1):yield r}function wi(t){return(0,hi.isIterable)(t)&&(0,hi.isntChar)(t)}bi.flattenByAsync=function(t,n){return(0,hi.isAsyncIterable)(t)?async function*(t,n){const e=1;for await(const r of t)wi(r)&&await n(r,e)?yield*gi(r,n,e+1):yield r}(t,n):function(t,n){return gi(t,n,1)}(t,n)},pi.flattenDeepAsync=void 0;const Ai=bi,Ii=u;pi.flattenDeepAsync=function(t,n=1/0){return(0,Ii.assert)(n===1/0||Number.isInteger(n),"The parameter depth must be an integer"),(0,Ii.assert)(n>=0,"The parameter depth must be greater than or equal to 0"),(0,Ai.flattenByAsync)(t,((t,e)=>e<=n))},mi.flattenAsync=void 0;const Si=pi;mi.flattenAsync=function(t){return(0,Si.flattenDeepAsync)(t,1)};var Oi={flattenBy:void 0};const Ti=z;function*ji(t,n,e){for(const o of t)r=o,(0,Ti.isIterable)(r)&&(0,Ti.isntChar)(r)&&n(o,e)?yield*ji(o,n,e+1):yield o;var r}Oi.flattenBy=function(t,n){return ji(t,n,1)};var xi={flattenDeep:void 0};const Ni=Oi,_i=u;xi.flattenDeep=function(t,n=1/0){return(0,_i.assert)(n===1/0||Number.isInteger(n),"The parameter depth must be an integer"),(0,_i.assert)(n>=0,"The parameter depth must be greater than or equal to 0"),(0,Ni.flattenBy)(t,((t,e)=>e<=n))};var ki={flatten:void 0};const Ei=xi;ki.flatten=function(t){return(0,Ei.flattenDeep)(t,1)};var Bi={intersectionAsync:void 0};const Pi=Ro,qi=zo;Bi.intersectionAsync=async function*(t,n){const e=await(0,qi.toSetAsync)(n);yield*(0,Pi.filterAsync)(t,(async t=>e.has(await t)))};var Di={intersection:void 0};const Mi=Jo,Ri=Vo;Di.intersection=function(t,n){const e=(0,Ri.toSet)(n);return(0,Mi.filter)(t,(t=>e.has(t)))};var Ui={mapAsync:void 0};const zi=z;Ui.mapAsync=function(t,n){return(0,zi.isAsyncIterable)(t)?async function*(t,n){let e=0;for await(const r of t)yield await n(r,e),e++}(t,n):async function*(t,n){let e=0;for(const r of t)yield await n(r,e),e++}(t,n)};var Ci={};Ci.map=void 0,Ci.map=function*(t,n){let e=0;for(const r of t)yield n(r,e),e++};var Fi={repeatAsync:void 0};const Li=v,Ji=u;Fi.repeatAsync=function(t,n){return(0,Ji.assert)(n===1/0||Number.isInteger(n),"The parameter times must be an integer"),(0,Ji.assert)(n>=0,"The parameter times must be greater than or equal to 0"),n===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,Li.go)((async function*(){const e=[];if(n>0){for await(const n of t)yield n,e.push(n);n--}for(;n>0;)yield*e,n--}))};var Vi={repeat:void 0};const Wi=v,Gi=u;Vi.repeat=function(t,n){return(0,Gi.assert)(n===1/0||Number.isInteger(n),"The parameter times must be an integer"),(0,Gi.assert)(n>=0,"The parameter times must be greater than or equal to 0"),n===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,Wi.go)((function*(){const e=[];if(n>0){for(const n of t)yield n,e.push(n);n--}for(;n>0;)yield*e,n--}))};var Hi={sliceAsync:void 0};const Ki=v,Qi=u;Hi.sliceAsync=function(t,n,e=1/0){return(0,Qi.assert)(Number.isInteger(n),"The parameter start must be an integer"),(0,Qi.assert)(n>=0,"The parameter start must be greater than or equal to 0"),(0,Qi.assert)(Number.isInteger(e),"The parameter end must be an integer"),(0,Qi.assert)(e>=n,"The parameter end must be greater than or equal to start"),(0,Ki.go)((async function*(){let r=0;for await(const o of t){if(r>=e)break;r>=n&&(yield o),r++}}))};var Xi={slice:void 0};const Yi=v,Zi=u;Xi.slice=function(t,n,e=1/0){return(0,Zi.assert)(Number.isInteger(n),"The parameter start must be an integer"),(0,Zi.assert)(n>=0,"The parameter start must be greater than or equal to 0"),(0,Zi.assert)(Number.isInteger(e),"The parameter end must be an integer"),(0,Zi.assert)(e>=n,"The parameter end must be greater than or equal to start"),(0,Yi.go)((function*(){let r=0;for(const o of t){if(r>=e)break;r>=n&&(yield o),r++}}))};var $i={};$i.splitAsync=void 0,$i.splitAsync=async function*(t,n){let e=[];for await(const r of t)r===n?(yield e,e=[]):e.push(r);yield e};var ta={splitByAsync:void 0};const na=z;ta.splitByAsync=function(t,n){return(0,na.isAsyncIterable)(t)?async function*(t,n){let e=[],r=0;for await(const o of t)await n(o,r)?(yield e,e=[]):e.push(o),r++;yield e}(t,n):async function*(t,n){let e=[],r=0;for(const o of t)await n(o,r)?(yield e,e=[]):e.push(o),r++;yield e}(t,n)};var ea={};ea.splitBy=void 0,ea.splitBy=function*(t,n){let e=[],r=0;for(const o of t)n(o,r)?(yield e,e=[]):e.push(o),r++;yield e};var ra={};ra.split=void 0,ra.split=function*(t,n){let e=[];for(const r of t)r===n?(yield e,e=[]):e.push(r);yield e};var oa={takeAsync:void 0};const ia=v,aa=u;oa.takeAsync=function(t,n){return(0,aa.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,aa.assert)(n>=0,"The parameter count must be greater than or equal to 0"),(0,ia.go)((async function*(){if(0!==n)for await(const e of t)if(yield e,0===--n)break}))};var ca={takeRightAsync:void 0};const sa=v,ua=u;ca.takeRightAsync=function(t,n){return(0,ua.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,ua.assert)(n>=0,"The parameter count must be greater than or equal to 0"),(0,sa.go)((async function*(){var e;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>n&&t.shift();yield*t}finally{o||await(null===(e=r.return)||void 0===e?void 0:e.call(r))}}))};var fa={takeRight:void 0};const la=v,ya=u;fa.takeRight=function(t,n){return(0,ya.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,ya.assert)(n>=0,"The parameter count must be greater than or equal to 0"),(0,la.go)((function*(){var e;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>n&&t.shift();yield*t}finally{o||null===(e=r.return)||void 0===e||e.call(r)}}))};var da={takeUntilAsync:void 0};const va=z;da.takeUntilAsync=function(t,n){return(0,va.isAsyncIterable)(t)?async function*(t,n){let e=0;for await(const r of t){if(await n(r,e))break;yield r,e++}}(t,n):async function*(t,n){let e=0;for(const r of t){if(await n(r,e))break;yield r,e++}}(t,n)};var ma={};ma.takeUntil=void 0,ma.takeUntil=function*(t,n){let e=0;for(const r of t){if(n(r,e))break;yield r,e++}};var pa={take:void 0};const ba=v,ha=u;pa.take=function(t,n){return(0,ha.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,ha.assert)(n>=0,"The parameter count must be greater than or equal to 0"),(0,ba.go)((function*(){if(0!==n)for(const e of t)if(yield e,0===--n)break}))};var ga={tapAsync:void 0};const wa=z;ga.tapAsync=function(t,n){return(0,wa.isAsyncIterable)(t)?async function*(t,n){let e=0;for await(const r of t)await n(r,e),yield r,e++}(t,n):async function*(t,n){let e=0;for(const r of t)await n(r,e),yield r,e++}(t,n)};var Aa={};Aa.tap=void 0,Aa.tap=function*(t,n){let e=0;for(const r of t)n(r,e),yield r,e++};var Ia={};Ia.toAsyncIterable=void 0,Ia.toAsyncIterable=async function*(t){for(const n of t)yield await n};var Sa={};Sa.transformAsync=void 0,Sa.transformAsync=async function*(t,n){yield*n(t)};var Oa={};Oa.transform=void 0,Oa.transform=function*(t,n){yield*n(t)};var Ta={};Ta.uniqAsync=void 0,Ta.uniqAsync=async function*(t){const n=new Set;for await(const e of t)n.has(e)||(yield e,n.add(e))};var ja={uniqByAsync:void 0};const xa=z;ja.uniqByAsync=function(t,n){return(0,xa.isAsyncIterable)(t)?async function*(t,n){const e=new Set;let r=0;for await(const o of t){const t=await n(o,r);e.has(t)||(yield o,e.add(t)),r++}}(t,n):async function*(t,n){const e=new Set;let r=0;for(const o of t){const t=await n(o,r);e.has(t)||(yield o,e.add(t)),r++}}(t,n)};var Na={};Na.uniqBy=void 0,Na.uniqBy=function*(t,n){const e=new Set;let r=0;for(const o of t){const t=n(o,r);e.has(t)||(yield o,e.add(t)),r++}};var _a={};_a.uniq=void 0,_a.uniq=function*(t){const n=new Set;for(const e of t)n.has(e)||(yield e,n.add(e))};var ka={zipAsync:void 0};const Ea=z;var Ba;!function(t){t[t.Sync=0]="Sync",t[t.Async=1]="Async"}(Ba||(Ba={})),ka.zipAsync=function(t,...n){return async function*(...t){var n,e,r,o;const i=t.length,a=t.map((t=>(0,Ea.isAsyncIterable)(t)?[Ba.Async,t[Symbol.asyncIterator]()]:[Ba.Sync,t[Symbol.iterator]()])),c=a.map((()=>!1));try{for(;;){const t=new Array(i);for(let n=0;n<i;n++){const[e,r]=a[n];let o;if(o=e===Ba.Async?await r.next():r.next(),o.done)return void(c[n]=!0);t[n]=await o.value}yield t}}finally{const t=a.filter(((t,n)=>!c[n]));for(const[i,a]of t)i===Ba.Async?await(null===(e=(n=a).return)||void 0===e?void 0:e.call(n)):null===(o=(r=a).return)||void 0===o||o.call(r)}}(t,...n)};var Pa={};Pa.zip=void 0,Pa.zip=function(t,...n){return function*(...t){const n=t.length,e=t.map((t=>t[Symbol.iterator]())),r=e.map((()=>!1));try{for(;;){const t=new Array(n);for(let o=0;o<n;o++){const{value:n,done:i}=e[o].next();if(i)return void(r[o]=!0);t[o]=n}yield t}}finally{e.filter(((t,n)=>!r[n])).forEach((t=>{var n;return null===(n=t.return)||void 0===n?void 0:n.call(t)}))}}(t,...n)},function(t){var e=n&&n.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var o=Object.getOwnPropertyDescriptor(n,e);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,o)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(Io,t),r(To,t),r(xo,t),r(No,t),r(Eo,t),r(qo,t),r(Mo,t),r(Lo,t),r(Ho,t),r(Zo,t),r(oi,t),r(si,t),r(fi,t),r(li,t),r(Ro,t),r(Jo,t),r(mi,t),r(bi,t),r(Oi,t),r(pi,t),r(xi,t),r(ki,t),r(Bi,t),r(Di,t),r(Ui,t),r(Ci,t),r(Fi,t),r(Vi,t),r(Hi,t),r(Xi,t),r($i,t),r(ta,t),r(ea,t),r(ra,t),r(oa,t),r(ca,t),r(fa,t),r(da,t),r(ma,t),r(pa,t),r(ga,t),r(Aa,t),r(Ia,t),r(Sa,t),r(Oa,t),r(Ta,t),r(ja,t),r(Na,t),r(_a,t),r(ka,t),r(Pa,t)}(Ao);var qa={},Da={};Da.consume=void 0,Da.consume=function(t,n){return n(t)};var Ma={};Ma.consumeAsync=void 0,Ma.consumeAsync=async function(t,n){return await n(t)};var Ra={eachAsync:void 0};const Ua=z;Ra.eachAsync=function(t,n){return(0,Ua.isAsyncIterable)(t)?async function(t,n){let e=0;for await(const r of t)await n(r,e),e++}(t,n):async function(t,n){let e=0;for(const r of t)await n(r,e),e++}(t,n)};var za={};za.each=void 0,za.each=function(t,n){let e=0;for(const r of t)n(r,e),e++};var Ca={everyAsync:void 0};const Fa=z;Ca.everyAsync=function(t,n){return(0,Fa.isAsyncIterable)(t)?async function(t,n){let e=0;for await(const r of t){if(!await n(r,e))return!1;e++}return!0}(t,n):async function(t,n){let e=0;for(const r of t){if(!await n(r,e))return!1;e++}return!0}(t,n)};var La={};La.every=void 0,La.every=function(t,n){let e=0;for(const r of t){if(!n(r,e))return!1;e++}return!0};var Ja={findAsync:void 0};const Va=z;Ja.findAsync=function(t,n){return(0,Va.isAsyncIterable)(t)?async function(t,n){let e=0;for await(const r of t){if(await n(r,e))return r;e++}return}(t,n):async function(t,n){let e=0;for(const r of t){if(await n(r,e))return r;e++}return}(t,n)};var Wa={};Wa.find=void 0,Wa.find=function(t,n){let e=0;for(const r of t){if(n(r,e))return r;e++}};var Ga={};Ga.firstAsync=void 0,Ga.firstAsync=async function(t){for await(const n of t)return n};var Ha={};Ha.first=void 0,Ha.first=function(t){for(const n of t)return n};var Ka={};Ka.includesAsync=void 0,Ka.includesAsync=async function(t,n){for await(const e of t)if(e===n)return!0;return!1};var Qa={};Qa.includes=void 0,Qa.includes=function(t,n){for(const e of t)if(e===n)return!0;return!1};var Xa={reduceAsync:void 0};const Ya=z;Xa.reduceAsync=function(t,n,e){return(0,Ya.isUndefined)(e)?function(t,n){return(0,Ya.isAsyncIterable)(t)?e(t):r(t);async function e(t){var e;const r=t[Symbol.asyncIterator]();let o;try{let t,a=await i(r),c=1;for(;({value:t,done:o}=await r.next()),!o;)a=await n(a,t,c++);return a}finally{o||await(null===(e=r.return)||void 0===e?void 0:e.call(r))}async function i(t){const n=await t.next();if(n.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return n.value}}async function r(t){var e;const r=t[Symbol.iterator]();let o;try{let t,a=i(r),c=1;for(;({value:t,done:o}=r.next()),!o;)a=await n(a,t,c++);return a}finally{o||null===(e=r.return)||void 0===e||e.call(r)}function i(t){const n=t.next();if(n.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return n.value}}}(t,n):function(t,n,e){return(0,Ya.isAsyncIterable)(t)?o(t):r(t);async function r(t){let r=e,o=0;for(const e of t)r=await n(r,e,o++);return r}async function o(t){let r=e,o=0;for await(const e of t)r=await n(r,e,o++);return r}}(t,n,e)};var Za={reduce:void 0};const $a=z;Za.reduce=function(t,n,e){return(0,$a.isUndefined)(e)?function(t,n){var e;const r=t[Symbol.iterator]();let o;try{let t,a=i(r),c=1;for(;({value:t,done:o}=r.next()),!o;)a=n(a,t,c++);return a}finally{o||null===(e=r.return)||void 0===e||e.call(r)}function i(t){const n=t.next();if(n.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return n.value}}(t,n):function(t,n,e){let r=e,o=0;for(const e of t)r=n(r,e,o++);return r}(t,n,e)};var tc={someAsync:void 0};const nc=z;tc.someAsync=function(t,n){return(0,nc.isAsyncIterable)(t)?async function(t,n){let e=0;for await(const r of t){if(await n(r,e))return!0;e++}return!1}(t,n):async function(t,n){let e=0;for(const r of t){if(await n(r,e))return!0;e++}return!1}(t,n)};var ec={};ec.some=void 0,ec.some=function(t,n){let e=0;for(const r of t){if(n(r,e))return!0;e++}return!1};var rc={};rc.lastAsync=void 0,rc.lastAsync=async function(t){var n;const e=t[Symbol.asyncIterator]();let r;try{let t,o;for(;({value:t,done:r}=await e.next()),!r;)o=t;return o}finally{r||await(null===(n=e.return)||void 0===n?void 0:n.call(e))}};var oc={};oc.last=void 0,oc.last=function(t){var n;const e=t[Symbol.iterator]();let r;try{let t,o;for(;({value:t,done:r}=e.next()),!r;)o=t;return o}finally{r||null===(n=e.return)||void 0===n||n.call(e)}};var ic={};ic.toArray=void 0,ic.toArray=function(t){return Array.from(t)};var ac={};ac.count=void 0,ac.count=function(t){let n=0;for(const e of t)n++;return n};var cc={};cc.countAsync=void 0,cc.countAsync=async function(t){let n=0;for await(const e of t)n++;return n};var sc={groupBy:void 0};const uc=za;sc.groupBy=function(t,n){const e=new Map;return(0,uc.each)(t,((t,r)=>{const o=n(t,r);e.has(o)||e.set(o,[]),e.get(o).push(t)})),e};var fc={groupByAsync:void 0};const lc=Ra;fc.groupByAsync=async function(t,n){const e=new Map;return await(0,lc.eachAsync)(t,(async(t,r)=>{const o=await n(t,r);e.has(o)||e.set(o,[]),e.get(o).push(t)})),e},function(t){var e=n&&n.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var o=Object.getOwnPropertyDescriptor(n,e);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,o)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(Da,t),r(Ma,t),r(Ra,t),r(za,t),r(Ca,t),r(La,t),r(Ja,t),r(Wa,t),r(Ga,t),r(Ha,t),r(Ka,t),r(Qa,t),r(Xa,t),r(Za,t),r(tc,t),r(ec,t),r(rc,t),r(oc,t),r($o,t),r(ic,t),r(zo,t),r(Vo,t),r(ac,t),r(cc,t),r(sc,t),r(fc,t)}(qa),function(t){var e=n&&n.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var o=Object.getOwnPropertyDescriptor(n,e);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,o)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(Ao,t),r(qa,t)}(wo);class yc extends u.CustomError{static[Symbol.hasInstance](t){return z.isError(t)?wo.some(u.getErrorNames(t),(t=>"AbortError"===t)):super[Symbol.hasInstance](t)}}var dc;const vc=null!==(dc=globalThis.AbortSignal)&&void 0!==dc?dc:i;
/*! *****************************************************************************

@@ -16,3 +16,3 @@ Copyright (c) Microsoft Corporation.

***************************************************************************** */
function Po(t,n,e,r){return new(e||(e=Promise))((function(o,i){function a(t){try{c(r.next(t))}catch(t){i(t)}}function s(t){try{c(r.throw(t))}catch(t){i(t)}}function c(t){var n;t.done?o(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(a,s)}c((r=r.apply(t,n||[])).next())}))}t.AbortController=c,t.AbortError=Io,t.AbortSignal=No,t.raceAbortSignals=function(t){const n=new c,e=[];for(const o of t)if(o){if(o.aborted){n.abort();break}o.addEventListener("abort",r),e.push(o)}return n.signal;function r(){n.abort(),e.forEach((t=>t.removeEventListener("abort",r)))}},t.timeoutSignal=function(t){const n=new c;return setTimeout((()=>n.abort()),t),n.signal},t.withAbortSignal=function(t,n){return Po(this,void 0,void 0,(function*(){return new Promise(((e,r)=>Po(this,void 0,void 0,(function*(){if(t.aborted)return o();t.addEventListener("abort",o);try{e(yield n())}catch(t){r(t)}finally{t.removeEventListener("abort",o)}function o(){r(new Io)}}))))}))},Object.defineProperty(t,"__esModule",{value:!0})}));
function mc(t,n,e,r){return new(e||(e=Promise))((function(o,i){function a(t){try{s(r.next(t))}catch(t){i(t)}}function c(t){try{s(r.throw(t))}catch(t){i(t)}}function s(t){var n;t.done?o(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(a,c)}s((r=r.apply(t,n||[])).next())}))}t.AbortController=s,t.AbortError=yc,t.AbortSignal=vc,t.raceAbortSignals=function(t){const n=new s,e=[];for(const o of t)if(o){if(o.aborted){n.abort();break}o.addEventListener("abort",r),e.push(o)}return n.signal;function r(){n.abort(),e.forEach((t=>t.removeEventListener("abort",r)))}},t.timeoutSignal=function(t){const n=new s;return setTimeout((()=>n.abort()),t),n.signal},t.withAbortSignal=function(t,n){return mc(this,void 0,void 0,(function*(){return new Promise(((e,r)=>mc(this,void 0,void 0,(function*(){if(t.aborted)return o();t.addEventListener("abort",o);try{e(yield n())}catch(t){r(t)}finally{t.removeEventListener("abort",o)}function o(){r(new yc)}}))))}))},Object.defineProperty(t,"__esModule",{value:!0})}));
//# sourceMappingURL=index.umd.min.js.map

@@ -1,2 +0,2 @@

!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((t="undefined"!=typeof globalThis?globalThis:t||self).ExtraAbort={})}(this,(function(t){"use strict";var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},e={exports:{}};const{AbortController:r,AbortSignal:o}="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0;e.exports=r;var i=e.exports.AbortSignal=o;e.exports.default=r;var a,s=e.exports;const c=null!==(a=globalThis.AbortController)&&void 0!==a?a:s;var u={},f={},l={},y={},d={},v={},b={};b.go=void 0,b.go=function(t){return t()},function(t){var e=n&&n.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e),Object.defineProperty(t,r,{enumerable:!0,get:function(){return n[e]}})}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]});(n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)})(b,t)}(v),d.chunkAsync=void 0;const p=v,m=u;d.chunkAsync=function(t,n){return(0,m.assert)(Number.isInteger(n),"The parameter size must be an integer"),(0,m.assert)(n>0,"The parameter size must be greater than 0"),(0,p.go)((async function*(){let e=[];for await(const r of t)e.push(r),e.length>=n&&(yield e,e=[]);e.length&&(yield e)}))};var g={},h={},A={};function w(t){return Array.isArray(t)}A.isntEmptyArray=A.isEmptyArray=A.isntArray=A.isArray=void 0,A.isArray=w,A.isntArray=function(t){return!w(t)},A.isEmptyArray=function(t){return 0===t.length},A.isntEmptyArray=function(t){return 0!==t.length};var O={},S={};function j(t){return null===t}S.isntNull=S.isNull=void 0,S.isNull=j,S.isntNull=function(t){return!j(t)};var I={};function E(t){return void 0===t}I.isntUndefined=I.isUndefined=void 0,I.isUndefined=E,I.isntUndefined=function(t){return!E(t)},O.isntAsyncIterable=O.isAsyncIterable=void 0;const N=S,P=I;function _(t){return(0,N.isntNull)(t)&&(0,P.isntUndefined)(t)&&"function"==typeof t[Symbol.asyncIterator]}O.isAsyncIterable=_,O.isntAsyncIterable=function(t){return!_(t)};var x={};function B(t){return"bigint"==typeof t}x.isntBigInt=x.isBigInt=void 0,x.isBigInt=B,x.isntBigInt=function(t){return!B(t)};var T={};function k(t){return"boolean"==typeof t}T.isntBoolean=T.isBoolean=void 0,T.isBoolean=k,T.isntBoolean=function(t){return!k(t)};var R={},J={};function U(t){return"string"==typeof t}J.isntString=J.isString=void 0,J.isString=U,J.isntString=function(t){return!U(t)},R.isntChar=R.isChar=void 0;const q=J;function C(t){return(0,q.isString)(t)&&1===t.length}R.isChar=C,R.isntChar=function(t){return!C(t)};var D={};function F(t){return t instanceof Date}D.isntDate=D.isDate=void 0,D.isDate=F,D.isntDate=function(t){return!F(t)};var L={};L.inEnum=void 0,L.inEnum=function(t,n){return Object.values(n).includes(t)};var z={};function M(t){return t instanceof Error}z.isntError=z.isError=void 0,z.isError=M,z.isntError=function(t){return!M(t)};var V={};function W(t){return!t}V.isntFalsy=V.isFalsy=void 0,V.isFalsy=W,V.isntFalsy=function(t){return!W(t)};var G={};function H(t){return"function"==typeof t}G.isntFunction=G.isFunction=void 0,G.isFunction=H,G.isntFunction=function(t){return!H(t)};var K={};K.isntIterable=K.isIterable=void 0;const Q=S,X=I;function Y(t){return(0,Q.isntNull)(t)&&(0,X.isntUndefined)(t)&&"function"==typeof t[Symbol.iterator]}K.isIterable=Y,K.isntIterable=function(t){return!Y(t)};var Z={},$={};var tt=Function.prototype,nt=Object.prototype,et=tt.toString,rt=nt.hasOwnProperty,ot=et.call(Object),it=nt.toString,at=function(t,n){return function(e){return t(n(e))}}(Object.getPrototypeOf,Object);var st=function(t){if(!function(t){return!!t&&"object"==typeof t}(t)||"[object Object]"!=it.call(t)||function(t){var n=!1;if(null!=t&&"function"!=typeof t.toString)try{n=!!(t+"")}catch(t){}return n}(t))return!1;var n=at(t);if(null===n)return!0;var e=rt.call(n,"constructor")&&n.constructor;return"function"==typeof e&&e instanceof e&&et.call(e)==ot},ct=n&&n.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};$.isntEmptyObject=$.isEmptyObject=$.isntPlainObject=$.isPlainObject=$.isntObject=$.isObject=void 0;const ut=ct(st);function ft(t){return null!==t&&"object"==typeof t}function lt(t){return(0,ut.default)(t)}$.isObject=ft,$.isntObject=function(t){return!ft(t)},$.isPlainObject=lt,$.isntPlainObject=function(t){return!lt(t)},$.isEmptyObject=function(t){return 0===Object.keys(t).length},$.isntEmptyObject=function(t){return 0!==Object.keys(t).length};var yt={};function dt(t){return"number"==typeof t}yt.isntNumber=yt.isNumber=void 0,yt.isNumber=dt,yt.isntNumber=function(t){return!dt(t)},Z.isntJsonRpcError=Z.isJsonRpcError=Z.isntJsonRpcSuccess=Z.isJsonRpcSuccess=Z.isntJsonRpcRequest=Z.isJsonRpcRequest=Z.isntJsonRpcNotification=Z.isJsonRpcNotification=void 0;const vt=A,bt=$,pt=J,mt=yt,gt=I;function ht(t){return(0,pt.isString)(t)||(0,mt.isNumber)(t)}function At(t){return(0,vt.isArray)(t)||(0,bt.isObject)(t)}function wt(t){return(0,bt.isPlainObject)(t)&&(0,pt.isString)(t.jsonrpc)&&(0,pt.isString)(t.method)&&(0,gt.isUndefined)(t.id)&&At(t.params)}function Ot(t){return(0,bt.isPlainObject)(t)&&(0,pt.isString)(t.jsonrpc)&&(0,pt.isString)(t.method)&&ht(t.id)&&At(t.params)}function St(t){return(0,bt.isPlainObject)(t)&&(0,pt.isString)(t.jsonrpc)&&(0,pt.isString)(t.id)&&"result"in t}function jt(t){return(0,bt.isPlainObject)(t)&&(0,pt.isString)(t.jsonrpc)&&ht(t.id)&&function(t){return(0,bt.isPlainObject)(t)&&(0,mt.isNumber)(t.code)&&(0,pt.isString)(t.message)&&((0,gt.isUndefined)(t.data)||(0,bt.isObject)(t.data))}(t.error)}Z.isJsonRpcNotification=wt,Z.isntJsonRpcNotification=function(t){return!wt(t)},Z.isJsonRpcRequest=Ot,Z.isntJsonRpcRequest=function(t){return!Ot(t)},Z.isJsonRpcSuccess=St,Z.isntJsonRpcSuccess=function(t){return!St(t)},Z.isJsonRpcError=jt,Z.isntJsonRpcError=function(t){return!jt(t)};var It={};It.isntJson=It.isJson=void 0,It.isJson=function(t){try{return JSON.stringify(t),!0}catch(t){return!1}},It.isntJson=function t(n){return!t()};var Et={};Et.isAbsoluteURL=void 0,Et.isAbsoluteURL=function(t){try{return new URL(t),!0}catch(t){return!1}},function(t){var e=n&&n.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e),Object.defineProperty(t,r,{enumerable:!0,get:function(){return n[e]}})}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(A,t),r(O,t),r(x,t),r(T,t),r(R,t),r(D,t),r(L,t),r(z,t),r(V,t),r(G,t),r(K,t),r(Z,t),r(It,t),r(S,t),r(yt,t),r($,t),r(J,t),r(I,t),r(Et,t)}(h),g.chunkByAsync=void 0;const Nt=h;g.chunkByAsync=function(t,n){return(0,Nt.isAsyncIterable)(t)?async function*(t){let e=[],r=0;for await(const o of t)e.push(o),await n(o,r)&&(yield e,e=[]),r++;e.length&&(yield e)}(t):async function*(t){let e=[],r=0;for(const o of t)e.push(o),await n(o,r)&&(yield e,e=[]),r++;e.length&&(yield e)}(t)};var Pt={};Pt.chunkBy=void 0,Pt.chunkBy=function*(t,n){let e=[],r=0;for(const o of t)e.push(o),n(o,r)&&(yield e,e=[]),r++;e.length&&(yield e)};var _t={chunk:void 0};const xt=v,Bt=u;_t.chunk=function(t,n){return(0,Bt.assert)(Number.isInteger(n),"The parameter size must be an integer"),(0,Bt.assert)(n>0,"The parameter size must be greater than 0"),(0,xt.go)((function*(){let e=[];for(const r of t)e.push(r),e.length>=n&&(yield e,e=[]);e.length&&(yield e)}))};var Tt={concatAsync:void 0};const kt=h,Rt=v;Tt.concatAsync=function(t,...n){return(0,Rt.go)((async function*(){for(const e of[t,...n])if((0,kt.isAsyncIterable)(e))for await(const t of e)yield t;else for(const t of e)yield t}))};var Jt={concat:void 0};const Ut=v;Jt.concat=function(t,...n){return(0,Ut.go)((function*(){for(const e of[t,...n])yield*e}))};var qt={},Ct={};Ct.copyIterable=Ct.copyAsyncIterable=void 0,Ct.copyAsyncIterable=async function*(t){for await(const n of t)yield n},Ct.copyIterable=function*(t){for(const n of t)yield n},qt.dropAsync=void 0;const Dt=v,Ft=Ct,Lt=u;qt.dropAsync=function(t,n){return(0,Lt.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,Lt.assert)(n>=0,"The parameter count must be greater than or equal to 0"),0===n?(0,Ft.copyAsyncIterable)(t):(0,Dt.go)((async function*(){var e;const r=t[Symbol.asyncIterator]();let o;try{let t;for(;!(({value:t,done:o}=await r.next()),o||n<=0);)n--;for(;!o;)yield t,({value:t,done:o}=await r.next())}finally{o||await(null===(e=r.return)||void 0===e?void 0:e.call(r))}}))};var zt={dropRightAsync:void 0};const Mt=v,Vt=Ct,Wt=u;zt.dropRightAsync=function(t,n){return(0,Wt.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,Wt.assert)(n>=0,"The parameter count must be greater than or equal to 0"),0===n?(0,Vt.copyAsyncIterable)(t):(0,Mt.go)((async function*(){const e=(await async function(t){const n=[];for await(const e of t)n.push(e);return n}(t)).slice(0,-n);for(const t of e)yield t}))};var Gt={dropRight:void 0};const Ht=v,Kt=Ct,Qt=u;Gt.dropRight=function(t,n){return(0,Qt.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,Qt.assert)(n>=0,"The parameter count must be greater than or equal to 0"),0===n?(0,Kt.copyIterable)(t):(0,Ht.go)((function*(){const e=Array.from(t);yield*e.slice(0,-n)}))};var Xt={dropUntilAsync:void 0};const Yt=h;Xt.dropUntilAsync=function(t,n){return(0,Yt.isAsyncIterable)(t)?async function*(t){var e;const r=t[Symbol.asyncIterator]();let o;try{let t,i=0;for(;!(({value:t,done:o}=await r.next()),o||await n(t,i++)););for(;!o;)yield t,({value:t,done:o}=await r.next())}finally{o||await(null===(e=r.return)||void 0===e?void 0:e.call(r))}}(t):async function*(t){var e;const r=t[Symbol.iterator]();let o;try{let t,i=0;for(;!(({value:t,done:o}=r.next()),o||await n(t,i++)););for(;!o;)yield t,({value:t,done:o}=r.next())}finally{o||null===(e=r.return)||void 0===e||e.call(r)}}(t)};var Zt={};Zt.dropUntil=void 0,Zt.dropUntil=function*(t,n){var e;const r=t[Symbol.iterator]();let o;try{let t,i=0;for(;!(({value:t,done:o}=r.next()),o||n(t,i++)););for(;!o;)yield t,({value:t,done:o}=r.next())}finally{o||null===(e=r.return)||void 0===e||e.call(r)}};var $t={drop:void 0};const tn=v,nn=Ct,en=u;$t.drop=function(t,n){return(0,en.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,en.assert)(n>=0,"The parameter count must be greater than or equal to 0"),0===n?(0,nn.copyIterable)(t):(0,tn.go)((function*(){var e;const r=t[Symbol.iterator]();let o;try{let t;for(;!(({value:t,done:o}=r.next()),o||n<=0);)n--;for(;!o;)yield t,({value:t,done:o}=r.next())}finally{o||null===(e=r.return)||void 0===e||e.call(r)}}))};var rn={filterAsync:void 0};const on=h;rn.filterAsync=function(t,n){return(0,on.isAsyncIterable)(t)?async function*(t){let e=0;for await(const r of t)await n(r,e)&&(yield r),e++}(t):async function*(t){let e=0;for(const r of t)await n(r,e)&&(yield r),e++}(t)};var an={};an.filter=void 0,an.filter=function*(t,n){let e=0;for(const r of t)n(r,e)&&(yield r),e++};var sn={},cn={},un={flattenByAsync:void 0};const fn=h;function ln(t){return(0,fn.isIterable)(t)&&(0,fn.isntChar)(t)}un.flattenByAsync=function(t,n){return(0,fn.isAsyncIterable)(t)?async function*(t){const r=1;for await(const o of t)ln(o)&&await n(o,r)?yield*e(o,r+1):yield o}(t):function(t){return e(t,1)}(t);async function*e(t,r){for(const o of t)ln(o)&&await n(o,r)?yield*e(o,r+1):yield o}},cn.flattenDeepAsync=void 0;const yn=un,dn=u;cn.flattenDeepAsync=function(t,n=1/0){return(0,dn.assert)(n===1/0||Number.isInteger(n),"The parameter depth must be an integer"),(0,dn.assert)(n>=0,"The parameter depth must be greater than or equal to 0"),(0,yn.flattenByAsync)(t,((t,e)=>e<=n))},sn.flattenAsync=void 0;const vn=cn;sn.flattenAsync=function(t){return(0,vn.flattenDeepAsync)(t,1)};var bn={flattenBy:void 0};const pn=h;bn.flattenBy=function(t,n){return function*t(e,r){for(const i of e)(0,pn.isIterable)(o=i)&&(0,pn.isntChar)(o)&&n(i,r)?yield*t(i,r+1):yield i;var o}(t,1)};var mn={flattenDeep:void 0};const gn=bn,hn=u;mn.flattenDeep=function(t,n=1/0){return(0,hn.assert)(n===1/0||Number.isInteger(n),"The parameter depth must be an integer"),(0,hn.assert)(n>=0,"The parameter depth must be greater than or equal to 0"),(0,gn.flattenBy)(t,((t,e)=>e<=n))};var An={flatten:void 0};const wn=mn;An.flatten=function(t){return(0,wn.flattenDeep)(t,1)};var On={mapAsync:void 0};const Sn=h;On.mapAsync=function(t,n){return(0,Sn.isAsyncIterable)(t)?async function*(t){let e=0;for await(const r of t)yield await n(r,e),e++}(t):async function*(t){let e=0;for(const r of t)yield await n(r,e),e++}(t)};var jn={};jn.map=void 0,jn.map=function*(t,n){let e=0;for(const r of t)yield n(r,e),e++};var In={repeatAsync:void 0};const En=v,Nn=u;In.repeatAsync=function(t,n){return(0,Nn.assert)(n===1/0||Number.isInteger(n),"The parameter times must be an integer"),(0,Nn.assert)(n>=0,"The parameter times must be greater than or equal to 0"),n===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,En.go)((async function*(){const e=[];if(n>0){for await(const n of t)yield n,e.push(n);n--}for(;n>0;)yield*e,n--}))};var Pn={repeat:void 0};const _n=v,xn=u;Pn.repeat=function(t,n){return(0,xn.assert)(n===1/0||Number.isInteger(n),"The parameter times must be an integer"),(0,xn.assert)(n>=0,"The parameter times must be greater than or equal to 0"),n===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,_n.go)((function*(){const e=[];if(n>0){for(const n of t)yield n,e.push(n);n--}for(;n>0;)yield*e,n--}))};var Bn={sliceAsync:void 0};const Tn=v,kn=u;Bn.sliceAsync=function(t,n,e=1/0){return(0,kn.assert)(Number.isInteger(n),"The parameter start must be an integer"),(0,kn.assert)(n>=0,"The parameter start must be greater than or equal to 0"),(0,kn.assert)(Number.isInteger(e),"The parameter end must be an integer"),(0,kn.assert)(e>=n,"The parameter end must be greater than or equal to start"),(0,Tn.go)((async function*(){let r=0;for await(const o of t){if(r>=e)break;r>=n&&(yield o),r++}}))};var Rn={slice:void 0};const Jn=v,Un=u;Rn.slice=function(t,n,e=1/0){return(0,Un.assert)(Number.isInteger(n),"The parameter start must be an integer"),(0,Un.assert)(n>=0,"The parameter start must be greater than or equal to 0"),(0,Un.assert)(Number.isInteger(e),"The parameter end must be an integer"),(0,Un.assert)(e>=n,"The parameter end must be greater than or equal to start"),(0,Jn.go)((function*(){let r=0;for(const o of t){if(r>=e)break;r>=n&&(yield o),r++}}))};var qn={};qn.splitAsync=void 0,qn.splitAsync=async function*(t,n){let e=[];for await(const r of t)r===n?(yield e,e=[]):e.push(r);yield e};var Cn={splitByAsync:void 0};const Dn=h;Cn.splitByAsync=function(t,n){return(0,Dn.isAsyncIterable)(t)?async function*(t){let e=[],r=0;for await(const o of t)await n(o,r)?(yield e,e=[]):e.push(o),r++;yield e}(t):async function*(t){let e=[],r=0;for(const o of t)await n(o,r)?(yield e,e=[]):e.push(o),r++;yield e}(t)};var Fn={};Fn.splitBy=void 0,Fn.splitBy=function*(t,n){let e=[],r=0;for(const o of t)n(o,r)?(yield e,e=[]):e.push(o),r++;yield e};var Ln={};Ln.split=void 0,Ln.split=function*(t,n){let e=[];for(const r of t)r===n?(yield e,e=[]):e.push(r);yield e};var zn={takeAsync:void 0};const Mn=v,Vn=u;zn.takeAsync=function(t,n){return(0,Vn.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,Vn.assert)(n>=0,"The parameter count must be greater than or equal to 0"),(0,Mn.go)((async function*(){if(0!==n)for await(const e of t)if(yield e,0===--n)break}))};var Wn={takeRightAsync:void 0};const Gn=v,Hn=u;Wn.takeRightAsync=function(t,n){return(0,Hn.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,Hn.assert)(n>=0,"The parameter count must be greater than or equal to 0"),(0,Gn.go)((async function*(){var e;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>n&&t.shift();yield*t}finally{o||await(null===(e=r.return)||void 0===e?void 0:e.call(r))}}))};var Kn={takeRight:void 0};const Qn=v,Xn=u;Kn.takeRight=function(t,n){return(0,Xn.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,Xn.assert)(n>=0,"The parameter count must be greater than or equal to 0"),(0,Qn.go)((function*(){var e;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>n&&t.shift();yield*t}finally{o||null===(e=r.return)||void 0===e||e.call(r)}}))};var Yn={takeUntilAsync:void 0};const Zn=h;Yn.takeUntilAsync=function(t,n){return(0,Zn.isAsyncIterable)(t)?async function*(t){let e=0;for await(const r of t){if(await n(r,e))break;yield r,e++}}(t):async function*(t){let e=0;for(const r of t){if(await n(r,e))break;yield r,e++}}(t)};var $n={};$n.takeUntil=void 0,$n.takeUntil=function*(t,n){let e=0;for(const r of t){if(n(r,e))break;yield r,e++}};var te={take:void 0};const ne=v,ee=u;te.take=function(t,n){return(0,ee.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,ee.assert)(n>=0,"The parameter count must be greater than or equal to 0"),(0,ne.go)((function*(){if(0!==n)for(const e of t)if(yield e,0===--n)break}))};var re={tapAsync:void 0};const oe=h;re.tapAsync=function(t,n){return(0,oe.isAsyncIterable)(t)?async function*(t){let e=0;for await(const r of t)await n(r,e),yield r,e++}(t):async function*(t){let e=0;for(const r of t)await n(r,e),yield r,e++}(t)};var ie={};ie.tap=void 0,ie.tap=function*(t,n){let e=0;for(const r of t)n(r,e),yield r,e++};var ae={};ae.toAsyncIterable=void 0,ae.toAsyncIterable=async function*(t){for(const n of t)yield n};var se={};se.transformAsync=void 0,se.transformAsync=async function*(t,n){yield*n(t)};var ce={};ce.transform=void 0,ce.transform=function*(t,n){yield*n(t)};var ue={};ue.uniqAsync=void 0,ue.uniqAsync=async function*(t){const n=new Set;for await(const e of t)n.has(e)||(yield e,n.add(e))};var fe={uniqByAsync:void 0};const le=h;fe.uniqByAsync=function(t,n){return(0,le.isAsyncIterable)(t)?async function*(t){const e=new Set;let r=0;for await(const o of t){const t=await n(o,r);e.has(t)||(yield o,e.add(t)),r++}}(t):async function*(t){const e=new Set;let r=0;for(const o of t){const t=await n(o,r);e.has(t)||(yield o,e.add(t)),r++}}(t)};var ye={};ye.uniqBy=void 0,ye.uniqBy=function*(t,n){const e=new Set;let r=0;for(const o of t){const t=n(o,r);e.has(t)||(yield o,e.add(t)),r++}};var de={};de.uniq=void 0,de.uniq=function*(t){const n=new Set;for(const e of t)n.has(e)||(yield e,n.add(e))};var ve={zipAsync:void 0};const be=h;var pe;!function(t){t[t.Sync=0]="Sync",t[t.Async=1]="Async"}(pe||(pe={})),ve.zipAsync=function(t,...n){return async function*(...t){var n,e,r,o;const i=t.length,a=t.map((t=>(0,be.isAsyncIterable)(t)?[pe.Async,t[Symbol.asyncIterator]()]:[pe.Sync,t[Symbol.iterator]()])),s=a.map((()=>!1));try{for(;;){const t=new Array(i);for(let n=0;n<i;n++){const[e,r]=a[n];let o;if(o=e===pe.Async?await r.next():r.next(),o.done)return void(s[n]=!0);t[n]=o.value}yield t}}finally{const t=a.filter(((t,n)=>!s[n]));for(const[i,a]of t)i===pe.Async?await(null===(e=(n=a).return)||void 0===e?void 0:e.call(n)):null===(o=(r=a).return)||void 0===o||o.call(r)}}(t,...n)};var me={};me.zip=void 0,me.zip=function(t,...n){return function*(...t){const n=t.length,e=t.map((t=>t[Symbol.iterator]())),r=e.map((()=>!1));try{for(;;){const t=new Array(n);for(let o=0;o<n;o++){const{value:n,done:i}=e[o].next();if(i)return void(r[o]=!0);t[o]=n}yield t}}finally{e.filter(((t,n)=>!r[n])).forEach((t=>{var n;return null===(n=t.return)||void 0===n?void 0:n.call(t)}))}}(t,...n)},function(t){var e=n&&n.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e),Object.defineProperty(t,r,{enumerable:!0,get:function(){return n[e]}})}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(d,t),r(g,t),r(Pt,t),r(_t,t),r(Tt,t),r(Jt,t),r(qt,t),r(zt,t),r(Gt,t),r(Xt,t),r(Zt,t),r($t,t),r(rn,t),r(an,t),r(sn,t),r(un,t),r(bn,t),r(cn,t),r(mn,t),r(An,t),r(On,t),r(jn,t),r(In,t),r(Pn,t),r(Bn,t),r(Rn,t),r(qn,t),r(Cn,t),r(Fn,t),r(Ln,t),r(zn,t),r(Wn,t),r(Kn,t),r(Yn,t),r($n,t),r(te,t),r(re,t),r(ie,t),r(ae,t),r(se,t),r(ce,t),r(ue,t),r(fe,t),r(ye,t),r(de,t),r(ve,t),r(me,t)}(y);var ge={},he={};he.consume=void 0,he.consume=function(t,n){return n(t)};var Ae={eachAsync:void 0};const we=h;Ae.eachAsync=function(t,n){return(0,we.isAsyncIterable)(t)?async function(t){let e=0;for await(const r of t)await n(r,e),e++}(t):async function(t){let e=0;for(const r of t)await n(r,e),e++}(t)};var Oe={};Oe.each=void 0,Oe.each=function(t,n){let e=0;for(const r of t)n(r,e),e++};var Se={everyAsync:void 0};const je=h;Se.everyAsync=function(t,n){return(0,je.isAsyncIterable)(t)?async function(t){let e=0;for await(const r of t){if(!await n(r,e))return!1;e++}return!0}(t):async function(t){let e=0;for(const r of t){if(!await n(r,e))return!1;e++}return!0}(t)};var Ie={};Ie.every=void 0,Ie.every=function(t,n){let e=0;for(const r of t){if(!n(r,e))return!1;e++}return!0};var Ee={findAsync:void 0};const Ne=h;Ee.findAsync=function(t,n){return(0,Ne.isAsyncIterable)(t)?async function(t){let e=0;for await(const r of t){if(await n(r,e))return r;e++}return}(t):async function(t){let e=0;for(const r of t){if(await n(r,e))return r;e++}return}(t)};var Pe={};Pe.find=void 0,Pe.find=function(t,n){let e=0;for(const r of t){if(n(r,e))return r;e++}};var _e={};_e.firstAsync=void 0,_e.firstAsync=async function(t){for await(const n of t)return n};var xe={};xe.first=void 0,xe.first=function(t){for(const n of t)return n};var Be={};Be.includesAsync=void 0,Be.includesAsync=async function(t,n){for await(const e of t)if(e===n)return!0;return!1};var Te={};Te.includes=void 0,Te.includes=function(t,n){for(const e of t)if(e===n)return!0;return!1};var ke={};ke.matchAsync=void 0,ke.matchAsync=async function(t,n){const e=n.length;let r=0;for await(const o of t)if(o===n[r]&&r++,r===e)return!0;return!1};var Re={};Re.match=void 0,Re.match=function(t,n){const e=n.length;let r=0;for(const o of t)if(o===n[r]&&r++,r===e)return!0;return!1};var Je={reduceAsync:void 0};const Ue=h;Je.reduceAsync=function(t,n,e){return(0,Ue.isUndefined)(e)?function(t,n){return(0,Ue.isAsyncIterable)(t)?e(t):r(t);async function e(t){var e;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 n(a,t,s++);return a}finally{o||await(null===(e=r.return)||void 0===e?void 0:e.call(r))}async function i(t){const n=await t.next();if(n.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return n.value}}async function r(t){var e;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 n(a,t,s++);return a}finally{o||null===(e=r.return)||void 0===e||e.call(r)}function i(t){const n=t.next();if(n.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return n.value}}}(t,n):function(t,n,e){return(0,Ue.isAsyncIterable)(t)?o(t):r(t);async function r(t){let r=e,o=0;for(const e of t)r=await n(r,e,o++);return r}async function o(t){let r=e,o=0;for await(const e of t)r=await n(r,e,o++);return r}}(t,n,e)};var qe={reduce:void 0};const Ce=h;qe.reduce=function(t,n,e){return(0,Ce.isUndefined)(e)?function(t,n){var e;const r=t[Symbol.iterator]();let o;try{let t,a=i(r),s=1;for(;({value:t,done:o}=r.next()),!o;)a=n(a,t,s++);return a}finally{o||null===(e=r.return)||void 0===e||e.call(r)}function i(t){const n=t.next();if(n.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return n.value}}(t,n):function(t,n,e){let r=e,o=0;for(const e of t)r=n(r,e,o++);return r}(t,n,e)};var De={someAsync:void 0};const Fe=h;De.someAsync=function(t,n){return(0,Fe.isAsyncIterable)(t)?async function(t){let e=0;for await(const r of t){if(await n(r,e))return!0;e++}return!1}(t):async function(t){let e=0;for(const r of t){if(await n(r,e))return!0;e++}return!1}(t)};var Le={};Le.some=void 0,Le.some=function(t,n){let e=0;for(const r of t){if(n(r,e))return!0;e++}return!1};var ze={};ze.lastAsync=void 0,ze.lastAsync=async function(t){var n;const e=t[Symbol.asyncIterator]();let r;try{let t,o;for(;({value:t,done:r}=await e.next()),!r;)o=t;return o}finally{r||await(null===(n=e.return)||void 0===n?void 0:n.call(e))}};var Me={};Me.last=void 0,Me.last=function(t){var n;const e=t[Symbol.iterator]();let r;try{let t,o;for(;({value:t,done:r}=e.next()),!r;)o=t;return o}finally{r||null===(n=e.return)||void 0===n||n.call(e)}};var Ve={toArrayAsync:void 0};const We=he;Ve.toArrayAsync=function(t){return(0,We.consume)(t,(async t=>{const n=[];for await(const e of t)n.push(e);return n}))};var Ge={toArray:void 0};const He=he;Ge.toArray=function(t){return(0,He.consume)(t,(t=>Array.from(t)))};var Ke={toSetAsync:void 0};const Qe=he;Ke.toSetAsync=function(t){return(0,Qe.consume)(t,(async t=>{const n=new Set;for await(const e of t)n.add(e);return n}))};var Xe={toSet:void 0};const Ye=he;Xe.toSet=function(t){return(0,Ye.consume)(t,(t=>new Set(t)))},function(t){var e=n&&n.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e),Object.defineProperty(t,r,{enumerable:!0,get:function(){return n[e]}})}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(he,t),r(Ae,t),r(Oe,t),r(Se,t),r(Ie,t),r(Ee,t),r(Pe,t),r(_e,t),r(xe,t),r(Be,t),r(Te,t),r(ke,t),r(Re,t),r(Je,t),r(qe,t),r(De,t),r(Le,t),r(ze,t),r(Me,t),r(Ve,t),r(Ge,t),r(Ke,t),r(Xe,t)}(ge),function(t){var e=n&&n.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e),Object.defineProperty(t,r,{enumerable:!0,get:function(){return n[e]}})}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(y,t),r(ge,t)}(l);var Ze={},$e={},tr={};function nr(t){return Array.isArray(t)}tr.isntEmptyArray=tr.isEmptyArray=tr.isntArray=tr.isArray=void 0,tr.isArray=nr,tr.isntArray=function(t){return!nr(t)},tr.isEmptyArray=function(t){return 0===t.length},tr.isntEmptyArray=function(t){return 0!==t.length};var er={},rr={};function or(t){return null===t}rr.isntNull=rr.isNull=void 0,rr.isNull=or,rr.isntNull=function(t){return!or(t)};var ir={};function ar(t){return void 0===t}ir.isntUndefined=ir.isUndefined=void 0,ir.isUndefined=ar,ir.isntUndefined=function(t){return!ar(t)};var sr={};function cr(t){return"function"==typeof t}sr.isntFunction=sr.isFunction=void 0,sr.isFunction=cr,sr.isntFunction=function(t){return!cr(t)},er.isntAsyncIterable=er.isAsyncIterable=void 0;const ur=rr,fr=ir,lr=sr;function yr(t){return(0,ur.isntNull)(t)&&(0,fr.isntUndefined)(t)&&(0,lr.isFunction)(t[Symbol.asyncIterator])}er.isAsyncIterable=yr,er.isntAsyncIterable=function(t){return!yr(t)};var dr={};function vr(t){return"bigint"==typeof t}dr.isntBigInt=dr.isBigInt=void 0,dr.isBigInt=vr,dr.isntBigInt=function(t){return!vr(t)};var br={};function pr(t){return"boolean"==typeof t}br.isntBoolean=br.isBoolean=void 0,br.isBoolean=pr,br.isntBoolean=function(t){return!pr(t)};var mr={},gr={};function hr(t){return"string"==typeof t}gr.isntString=gr.isString=void 0,gr.isString=hr,gr.isntString=function(t){return!hr(t)},mr.isntChar=mr.isChar=void 0;const Ar=gr;function wr(t){return(0,Ar.isString)(t)&&1===t.length}mr.isChar=wr,mr.isntChar=function(t){return!wr(t)};var Or={};function Sr(t){return t instanceof Date}Or.isntDate=Or.isDate=void 0,Or.isDate=Sr,Or.isntDate=function(t){return!Sr(t)};var jr={};jr.inEnum=void 0,jr.inEnum=function(t,n){return Object.values(n).includes(t)};var Ir={};function Er(t){return t instanceof Error}Ir.isntError=Ir.isError=void 0,Ir.isError=Er,Ir.isntError=function(t){return!Er(t)};var Nr={};function Pr(t){return!t}Nr.isntFalsy=Nr.isFalsy=void 0,Nr.isFalsy=Pr,Nr.isntFalsy=function(t){return!Pr(t)};var _r={};_r.isntIterable=_r.isIterable=void 0;const xr=rr,Br=ir,Tr=sr;function kr(t){return(0,xr.isntNull)(t)&&(0,Br.isntUndefined)(t)&&(0,Tr.isFunction)(t[Symbol.iterator])}_r.isIterable=kr,_r.isntIterable=function(t){return!kr(t)};var Rr={},Jr={};function Ur(t){return"number"==typeof t}Jr.isntNumber=Jr.isNumber=void 0,Jr.isNumber=Ur,Jr.isntNumber=function(t){return!Ur(t)};var qr={},Cr=n&&n.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};qr.isntEmptyObject=qr.isEmptyObject=qr.isntPlainObject=qr.isPlainObject=qr.isntObject=qr.isObject=void 0;const Dr=Cr(st);function Fr(t){return null!==t&&"object"==typeof t}function Lr(t){return(0,Dr.default)(t)}qr.isObject=Fr,qr.isntObject=function(t){return!Fr(t)},qr.isPlainObject=Lr,qr.isntPlainObject=function(t){return!Lr(t)},qr.isEmptyObject=function(t){return 0===Object.keys(t).length},qr.isntEmptyObject=function(t){return 0!==Object.keys(t).length},Rr.isntJsonable=Rr.isJsonable=Rr.isntJson=Rr.isJson=void 0;const zr=rr,Mr=br,Vr=gr,Wr=Jr,Gr=tr,Hr=qr;function Kr(t){return(0,zr.isNull)(t)||(0,Mr.isBoolean)(t)||(0,Vr.isString)(t)||(0,Wr.isNumber)(t)||(0,Gr.isArray)(t)&&t.every(Kr)||(0,Hr.isPlainObject)(t)&&Object.values(t).every(Kr)}Rr.isJson=Kr,Rr.isntJson=function(t){return!Kr(t)},Rr.isJsonable=function(t){try{return JSON.stringify(t),!0}catch(t){return!1}},Rr.isntJsonable=function t(n){return!t()};var Qr={};Qr.isPromiseLike=Qr.isntPromiseLike=Qr.isntPromise=Qr.isPromise=void 0;const Xr=qr,Yr=sr;function Zr(t){return t instanceof Promise}function $r(t){return(0,Xr.isObject)(t)&&(0,Yr.isFunction)(t.then)}Qr.isPromise=Zr,Qr.isntPromise=function(t){return!Zr(t)},Qr.isntPromiseLike=function(t){return!$r(t)},Qr.isPromiseLike=$r;var to={};to.isAbsoluteURL=void 0,to.isAbsoluteURL=function(t){try{return new URL(t),!0}catch(t){return!1}},function(t){var e=n&&n.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e),Object.defineProperty(t,r,{enumerable:!0,get:function(){return n[e]}})}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(tr,t),r(er,t),r(dr,t),r(br,t),r(mr,t),r(Or,t),r(jr,t),r(Ir,t),r(Nr,t),r(sr,t),r(_r,t),r(Rr,t),r(rr,t),r(Jr,t),r(qr,t),r(Qr,t),r(gr,t),r(ir,t),r(to,t)}($e);var no={};no.traverseErrorPrototypeChain=void 0,no.traverseErrorPrototypeChain=function*(t){let n=t;for(;(n=Object.getPrototypeOf(n))&&(yield n,n!==Error.prototype););},Ze.getErrorNames=void 0;const eo=$e,ro=no;Ze.getErrorNames=function*(t){var n;if((0,eo.isError)(t))for(const e of(0,ro.traverseErrorPrototypeChain)(t))(null===(n=e.constructor)||void 0===n?void 0:n.name)&&(yield e.constructor.name);else yield t.name,yield*t.ancestors};var oo={isSerializableError:void 0};const io=$e;oo.isSerializableError=function(t){return(0,io.isObject)(t)&&(0,io.isString)(t.name)&&(0,io.isString)(t.message)&&((0,io.isString)(t.stack)||(0,io.isNull)(t.stack))&&(0,io.isArray)(t.ancestors)&&t.ancestors.every(io.isString)},f.CustomError=void 0;const ao=l,so=Ze,co=$e,uo=oo;class fo extends Error{get name(){var t,n;return null!==(n=null!==(t=(0,ao.first)((0,so.getErrorNames)(this)))&&void 0!==t?t:fo.name)&&void 0!==n?n:"CustomError"}static[Symbol.hasInstance](t){var n;if((0,co.isError)(t)||(0,uo.isSerializableError)(t)){const e=[null!==(n=this.prototype.constructor.name)&&void 0!==n?n:this.name,...(0,so.getErrorNames)(this.prototype)].reverse(),r=(0,ao.toArray)((0,so.getErrorNames)(t)).reverse();return e.every(((t,n)=>t===r[n]))}return!1}}f.CustomError=fo;var lo={AssertionError:void 0};const yo=f;class vo extends yo.CustomError{}lo.AssertionError=vo;var bo={normalize:void 0};const po=Ze,mo=l;bo.normalize=function(t){var n;const[e,...r]=(0,mo.toArray)((0,po.getErrorNames)(t));return{name:e,ancestors:r,message:t.message,stack:null!==(n=t.stack)&&void 0!==n?n:null}};var go={},ho={},Ao={};Ao.pass=void 0,Ao.pass=function(){},function(t){var e=n&&n.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e),Object.defineProperty(t,r,{enumerable:!0,get:function(){return n[e]}})}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]});(n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)})(Ao,t)}(ho),go.hydrate=void 0;const wo=ho;function Oo(t,n){const e=function(){(0,wo.pass)()};return(e.prototype=Object.create(t.prototype)).constructor=e,Object.defineProperty(e,"name",{value:n}),e}go.hydrate=function(t){var n;const e=[t.name,...t.ancestors].slice(0,-1).reverse();let r=Error;for(const t of e)r=Oo(r,t);const o=new r;return o.name=t.name,o.message=t.message,o.stack=null!==(n=t.stack)&&void 0!==n?n:void 0,o};var So={assert:void 0};const jo=lo;So.assert=function(t,n){if(!t)throw new jo.AssertionError(n)},function(t){var e=n&&n.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var o=Object.getOwnPropertyDescriptor(n,e);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,o)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(f,t),r(lo,t),r(oo,t),r(bo,t),r(go,t),r(So,t),r(Ze,t),r(no,t)}(u);class Io extends u.CustomError{static[Symbol.hasInstance](t){return $e.isError(t)?l.some(u.getErrorNames(t),(t=>"AbortError"===t)):super[Symbol.hasInstance](t)}}var Eo;const No=null!==(Eo=globalThis.AbortSignal)&&void 0!==Eo?Eo:i;t.AbortController=c,t.AbortError=Io,t.AbortSignal=No,t.raceAbortSignals=function(t){const n=new c,e=[];for(const o of t)if(o){if(o.aborted){n.abort();break}o.addEventListener("abort",r),e.push(o)}return n.signal;function r(){n.abort(),e.forEach((t=>t.removeEventListener("abort",r)))}},t.timeoutSignal=function(t){const n=new c;return setTimeout((()=>n.abort()),t),n.signal},t.withAbortSignal=async function(t,n){return new Promise((async(e,r)=>{if(t.aborted)return o();t.addEventListener("abort",o);try{e(await n())}catch(t){r(t)}finally{t.removeEventListener("abort",o)}function o(){r(new Io)}}))},Object.defineProperty(t,"__esModule",{value:!0})}));
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((t="undefined"!=typeof globalThis?globalThis:t||self).ExtraAbort={})}(this,(function(t){"use strict";var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},e={exports:{}};const{AbortController:r,AbortSignal:o}="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0;e.exports=r;var i=e.exports.AbortSignal=o;e.exports.default=r;var a,s=e.exports;const c=null!==(a=globalThis.AbortController)&&void 0!==a?a:s;var u={},f={},l={},y={},d={},v={},m={};m.go=void 0,m.go=function(t){return t()};var p={};p.goMicrotask=void 0,p.goMicrotask=function(t){return new Promise(((n,e)=>{queueMicrotask((async()=>{try{n(await t())}catch(t){e(t)}}))}))};var b={},h={},g={},w={},A={};A.random=void 0,A.random=function(t,n){return Math.random()*(n-t)+t};var I={};I.randomInt=void 0,I.randomInt=function(t,n){return t=Math.ceil(t),n=Math.floor(n),Math.floor(Math.random()*(n-t))+t};var S={};S.randomIntInclusive=void 0,S.randomIntInclusive=function(t,n){return t=Math.ceil(t),n=Math.floor(n),Math.floor(Math.random()*(n-t+1))+t},function(t){var e=n&&n.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e),Object.defineProperty(t,r,{enumerable:!0,get:function(){return n[e]}})}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(A,t),r(I,t),r(S,t)}(w),g.calculateExponentialBackoffTimeout=void 0;const O=w;g.calculateExponentialBackoffTimeout=function({baseTimeout:t,retries:n,maxTimeout:e=1/0,factor:r=2,jitter:o=!0}){const i=Math.min(r**n*t,e);return o?(0,O.randomIntInclusive)(0,i):i};var T={};T.setTimeout=void 0,T.setTimeout=function(t,n){const e=globalThis.setTimeout(n,t);return()=>clearTimeout(e)};var j={setSchedule:void 0};const N=T;j.setSchedule=function(t,n){const e=t-Date.now();return(0,N.setTimeout)(e,n)};var x={};x.setInterval=void 0,x.setInterval=function(t,n){const e=globalThis.setInterval(n,t);return()=>clearInterval(e)};var _={setImmediate:void 0};const k=T;_.setImmediate=function(t){if(globalThis.setImmediate){const n=globalThis.setImmediate(t);return()=>clearImmediate(n)}return(0,k.setTimeout)(0,t)};var E={setTimeoutLoop:void 0};const B=T;E.setTimeoutLoop=function(t,n){let e=!1,r=(0,B.setTimeout)(t,(async function o(){await n(),e||(r=(0,B.setTimeout)(t,o))}));return()=>{e=!0,r()}};var P={setDynamicTimeoutLoop:void 0};const q=T;P.setDynamicTimeoutLoop=function(t,n){let e=!1,r=(0,q.setTimeout)(t,(async function o(){const i=Date.now();await n();const a=Date.now()-i;e||(r=(0,q.setTimeout)(Math.max(t-a,0),o))}));return()=>{e=!0,r()}},function(t){var e=n&&n.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e),Object.defineProperty(t,r,{enumerable:!0,get:function(){return n[e]}})}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(g,t),r(T,t),r(j,t),r(x,t),r(_,t),r(E,t),r(P,t)}(h),b.goMacrotask=void 0;const D=h;b.goMacrotask=function(t){return new Promise(((n,e)=>{(0,D.setImmediate)((async()=>{try{n(await t())}catch(t){e(t)}}))}))},function(t){var e=n&&n.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var o=Object.getOwnPropertyDescriptor(n,e);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,o)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(m,t),r(p,t),r(b,t)}(v),d.chunkAsync=void 0;const M=v,R=u;d.chunkAsync=function(t,n){return(0,R.assert)(Number.isInteger(n),"The parameter size must be an integer"),(0,R.assert)(n>0,"The parameter size must be greater than 0"),(0,M.go)((async function*(){let e=[];for await(const r of t)e.push(r),e.length>=n&&(yield e,e=[]);e.length&&(yield e)}))};var U={},z={},C={};function F(t){return Array.isArray(t)}C.isntEmptyArray=C.isEmptyArray=C.isntArray=C.isArray=void 0,C.isArray=F,C.isntArray=function(t){return!F(t)},C.isEmptyArray=function(t){return 0===t.length},C.isntEmptyArray=function(t){return 0!==t.length};var L={},J={};function V(t){return null===t}J.isntNull=J.isNull=void 0,J.isNull=V,J.isntNull=function(t){return!V(t)};var W={};function G(t){return void 0===t}W.isntUndefined=W.isUndefined=void 0,W.isUndefined=G,W.isntUndefined=function(t){return!G(t)};var H={};function K(t){return"function"==typeof t}H.isntFunction=H.isFunction=void 0,H.isFunction=K,H.isntFunction=function(t){return!K(t)},L.isntAsyncIterable=L.isAsyncIterable=void 0;const Q=J,X=W,Y=H;function Z(t){return(0,Q.isntNull)(t)&&(0,X.isntUndefined)(t)&&(0,Y.isFunction)(t[Symbol.asyncIterator])}L.isAsyncIterable=Z,L.isntAsyncIterable=function(t){return!Z(t)};var $={};function tt(t){return"bigint"==typeof t}$.isntBigInt=$.isBigInt=void 0,$.isBigInt=tt,$.isntBigInt=function(t){return!tt(t)};var nt={};function et(t){return"boolean"==typeof t}nt.isntBoolean=nt.isBoolean=void 0,nt.isBoolean=et,nt.isntBoolean=function(t){return!et(t)};var rt={},ot={};function it(t){return"string"==typeof t}ot.isntString=ot.isString=void 0,ot.isString=it,ot.isntString=function(t){return!it(t)},rt.isntChar=rt.isChar=void 0;const at=ot;function st(t){return(0,at.isString)(t)&&1===t.length}rt.isChar=st,rt.isntChar=function(t){return!st(t)};var ct={};function ut(t){return t instanceof Date}ct.isntDate=ct.isDate=void 0,ct.isDate=ut,ct.isntDate=function(t){return!ut(t)};var ft={};ft.inEnum=void 0,ft.inEnum=function(t,n){return Object.values(n).includes(t)};var lt={};function yt(t){return t instanceof Error}lt.isntError=lt.isError=void 0,lt.isError=yt,lt.isntError=function(t){return!yt(t)};var dt={};function vt(t){return!t}dt.isntFalsy=dt.isFalsy=void 0,dt.isFalsy=vt,dt.isntFalsy=function(t){return!vt(t)};var mt={};mt.isntIterable=mt.isIterable=void 0;const pt=J,bt=W,ht=H;function gt(t){return(0,pt.isntNull)(t)&&(0,bt.isntUndefined)(t)&&(0,ht.isFunction)(t[Symbol.iterator])}mt.isIterable=gt,mt.isntIterable=function(t){return!gt(t)};var wt={},At={};function It(t){return"number"==typeof t}function St(t){return Number.isNaN(t)}At.isntNaN=At.isNaN=At.isNegativeInfinity=At.isPositiveInfinity=At.isFinite=At.isntNumber=At.isNumber=void 0,At.isNumber=It,At.isntNumber=function(t){return!It(t)},At.isFinite=function(t){return Number.isFinite(t)},At.isPositiveInfinity=function(t){return t===1/0},At.isNegativeInfinity=function(t){return t===-1/0},At.isNaN=St,At.isntNaN=function(t){return!St(t)};var Ot={},Tt="object"==typeof n&&n&&n.Object===Object&&n,jt="object"==typeof self&&self&&self.Object===Object&&self,Nt=(Tt||jt||Function("return this")()).Symbol,xt=Nt,_t=Object.prototype,kt=_t.hasOwnProperty,Et=_t.toString,Bt=xt?xt.toStringTag:void 0;var Pt=function(t){var n=kt.call(t,Bt),e=t[Bt];try{t[Bt]=void 0;var r=!0}catch(t){}var o=Et.call(t);return r&&(n?t[Bt]=e:delete t[Bt]),o},qt=Object.prototype.toString;var Dt=Pt,Mt=function(t){return qt.call(t)},Rt=Nt?Nt.toStringTag:void 0;var Ut=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Rt&&Rt in Object(t)?Dt(t):Mt(t)};var zt=function(t,n){return function(e){return t(n(e))}}(Object.getPrototypeOf,Object);var Ct=Ut,Ft=zt,Lt=function(t){return null!=t&&"object"==typeof t},Jt=Function.prototype,Vt=Object.prototype,Wt=Jt.toString,Gt=Vt.hasOwnProperty,Ht=Wt.call(Object);var Kt=function(t){if(!Lt(t)||"[object Object]"!=Ct(t))return!1;var n=Ft(t);if(null===n)return!0;var e=Gt.call(n,"constructor")&&n.constructor;return"function"==typeof e&&e instanceof e&&Wt.call(e)==Ht},Qt=n&&n.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Ot.isntEmptyObject=Ot.isEmptyObject=Ot.isntPlainObject=Ot.isPlainObject=Ot.isntObject=Ot.isObject=void 0;const Xt=Qt(Kt);function Yt(t){return null!==t&&"object"==typeof t}function Zt(t){return(0,Xt.default)(t)}Ot.isObject=Yt,Ot.isntObject=function(t){return!Yt(t)},Ot.isPlainObject=Zt,Ot.isntPlainObject=function(t){return!Zt(t)},Ot.isEmptyObject=function(t){return 0===Object.keys(t).length},Ot.isntEmptyObject=function(t){return 0!==Object.keys(t).length},wt.isntJsonable=wt.isJsonable=wt.isntJson=wt.isJson=void 0;const $t=J,tn=nt,nn=ot,en=At,rn=C,on=Ot;function an(t){return(0,$t.isNull)(t)||(0,tn.isBoolean)(t)||(0,nn.isString)(t)||(0,en.isNumber)(t)||(0,rn.isArray)(t)&&t.every(an)||(0,on.isPlainObject)(t)&&Object.values(t).every(an)}wt.isJson=an,wt.isntJson=function(t){return!an(t)},wt.isJsonable=function(t){try{return JSON.stringify(t),!0}catch(t){return!1}},wt.isntJsonable=function t(n){return!t()};var sn={};sn.isPromiseLike=sn.isntPromiseLike=sn.isntPromise=sn.isPromise=void 0;const cn=Ot,un=H;function fn(t){return t instanceof Promise}function ln(t){return(0,cn.isObject)(t)&&(0,un.isFunction)(t.then)}sn.isPromise=fn,sn.isntPromise=function(t){return!fn(t)},sn.isntPromiseLike=function(t){return!ln(t)},sn.isPromiseLike=ln;var yn={};yn.isAbsoluteURL=void 0,yn.isAbsoluteURL=function(t){try{return new URL(t),!0}catch(t){return!1}};var dn={};function vn(t){return t instanceof RegExp}dn.isntRegExp=dn.isRegExp=void 0,dn.isRegExp=vn,dn.isntRegExp=function(t){return!vn(t)};var mn={};function pn(t){return"symbol"==typeof t}mn.isntSymbol=mn.isSymbol=void 0,mn.isSymbol=pn,mn.isntSymbol=function(t){return!pn(t)},function(t){var e=n&&n.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var o=Object.getOwnPropertyDescriptor(n,e);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,o)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(C,t),r(L,t),r($,t),r(nt,t),r(rt,t),r(ct,t),r(ft,t),r(lt,t),r(dt,t),r(H,t),r(mt,t),r(wt,t),r(J,t),r(At,t),r(Ot,t),r(sn,t),r(ot,t),r(W,t),r(yn,t),r(dn,t),r(mn,t)}(z),U.chunkByAsync=void 0;const bn=z;U.chunkByAsync=function(t,n){return(0,bn.isAsyncIterable)(t)?async function*(t,n){let e=[],r=0;for await(const o of t)e.push(o),await n(o,r)&&(yield e,e=[]),r++;e.length&&(yield e)}(t,n):async function*(t,n){let e=[],r=0;for(const o of t)e.push(o),await n(o,r)&&(yield e,e=[]),r++;e.length&&(yield e)}(t,n)};var hn={};hn.chunkBy=void 0,hn.chunkBy=function*(t,n){let e=[],r=0;for(const o of t)e.push(o),n(o,r)&&(yield e,e=[]),r++;e.length&&(yield e)};var gn={chunk:void 0};const wn=v,An=u;gn.chunk=function(t,n){return(0,An.assert)(Number.isInteger(n),"The parameter size must be an integer"),(0,An.assert)(n>0,"The parameter size must be greater than 0"),(0,wn.go)((function*(){let e=[];for(const r of t)e.push(r),e.length>=n&&(yield e,e=[]);e.length&&(yield e)}))};var In={concatAsync:void 0};const Sn=z,On=v;In.concatAsync=function(t,...n){return(0,On.go)((async function*(){for(const e of[t,...n])if((0,Sn.isAsyncIterable)(e))for await(const t of e)yield t;else for(const t of e)yield t}))};var Tn={concat:void 0};const jn=v;Tn.concat=function(t,...n){return(0,jn.go)((function*(){for(const e of[t,...n])yield*e}))};var Nn={},xn={};xn.copyIterable=xn.copyAsyncIterable=void 0,xn.copyAsyncIterable=async function*(t){for await(const n of t)yield n},xn.copyIterable=function*(t){for(const n of t)yield n},Nn.dropAsync=void 0;const _n=v,kn=xn,En=u;Nn.dropAsync=function(t,n){return(0,En.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,En.assert)(n>=0,"The parameter count must be greater than or equal to 0"),0===n?(0,kn.copyAsyncIterable)(t):(0,_n.go)((async function*(){var e;const r=t[Symbol.asyncIterator]();let o;try{let t;for(;!(({value:t,done:o}=await r.next()),o||n<=0);)n--;for(;!o;)yield t,({value:t,done:o}=await r.next())}finally{o||await(null===(e=r.return)||void 0===e?void 0:e.call(r))}}))};var Bn={dropRightAsync:void 0};const Pn=v,qn=xn,Dn=u;Bn.dropRightAsync=function(t,n){return(0,Dn.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,Dn.assert)(n>=0,"The parameter count must be greater than or equal to 0"),0===n?(0,qn.copyAsyncIterable)(t):(0,Pn.go)((async function*(){const e=(await async function(t){const n=[];for await(const e of t)n.push(e);return n}(t)).slice(0,-n);for(const t of e)yield t}))};var Mn={dropRight:void 0};const Rn=v,Un=xn,zn=u;Mn.dropRight=function(t,n){return(0,zn.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,zn.assert)(n>=0,"The parameter count must be greater than or equal to 0"),0===n?(0,Un.copyIterable)(t):(0,Rn.go)((function*(){const e=Array.from(t);yield*e.slice(0,-n)}))};var Cn={dropUntilAsync:void 0};const Fn=z;Cn.dropUntilAsync=function(t,n){return(0,Fn.isAsyncIterable)(t)?async function*(t,n){var e;const r=t[Symbol.asyncIterator]();let o;try{let t,i=0;for(;!(({value:t,done:o}=await r.next()),o||await n(t,i++)););for(;!o;)yield t,({value:t,done:o}=await r.next())}finally{o||await(null===(e=r.return)||void 0===e?void 0:e.call(r))}}(t,n):async function*(t,n){var e;const r=t[Symbol.iterator]();let o;try{let t,i=0;for(;!(({value:t,done:o}=r.next()),o||await n(t,i++)););for(;!o;)yield t,({value:t,done:o}=r.next())}finally{o||null===(e=r.return)||void 0===e||e.call(r)}}(t,n)};var Ln={};Ln.dropUntil=void 0,Ln.dropUntil=function*(t,n){var e;const r=t[Symbol.iterator]();let o;try{let t,i=0;for(;!(({value:t,done:o}=r.next()),o||n(t,i++)););for(;!o;)yield t,({value:t,done:o}=r.next())}finally{o||null===(e=r.return)||void 0===e||e.call(r)}};var Jn={drop:void 0};const Vn=v,Wn=xn,Gn=u;Jn.drop=function(t,n){return(0,Gn.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,Gn.assert)(n>=0,"The parameter count must be greater than or equal to 0"),0===n?(0,Wn.copyIterable)(t):(0,Vn.go)((function*(){var e;const r=t[Symbol.iterator]();let o;try{let t;for(;!(({value:t,done:o}=r.next()),o||n<=0);)n--;for(;!o;)yield t,({value:t,done:o}=r.next())}finally{o||null===(e=r.return)||void 0===e||e.call(r)}}))};var Hn={filterAsync:void 0};const Kn=z;Hn.filterAsync=function(t,n){return(0,Kn.isAsyncIterable)(t)?async function*(t,n){let e=0;for await(const r of t)await n(r,e)&&(yield r),e++}(t,n):async function*(t,n){let e=0;for(const r of t)await n(r,e)&&(yield r),e++}(t,n)};var Qn={};Qn.filter=void 0,Qn.filter=function*(t,n){let e=0;for(const r of t)n(r,e)&&(yield r),e++};var Xn={},Yn={},Zn={flattenByAsync:void 0};const $n=z;async function*te(t,n,e){for(const r of t)ne(r)&&await n(r,e)?yield*te(r,n,e+1):yield r}function ne(t){return(0,$n.isIterable)(t)&&(0,$n.isntChar)(t)}Zn.flattenByAsync=function(t,n){return(0,$n.isAsyncIterable)(t)?async function*(t,n){const e=1;for await(const r of t)ne(r)&&await n(r,e)?yield*te(r,n,e+1):yield r}(t,n):function(t,n){return te(t,n,1)}(t,n)},Yn.flattenDeepAsync=void 0;const ee=Zn,re=u;Yn.flattenDeepAsync=function(t,n=1/0){return(0,re.assert)(n===1/0||Number.isInteger(n),"The parameter depth must be an integer"),(0,re.assert)(n>=0,"The parameter depth must be greater than or equal to 0"),(0,ee.flattenByAsync)(t,((t,e)=>e<=n))},Xn.flattenAsync=void 0;const oe=Yn;Xn.flattenAsync=function(t){return(0,oe.flattenDeepAsync)(t,1)};var ie={flattenBy:void 0};const ae=z;function*se(t,n,e){for(const o of t)r=o,(0,ae.isIterable)(r)&&(0,ae.isntChar)(r)&&n(o,e)?yield*se(o,n,e+1):yield o;var r}ie.flattenBy=function(t,n){return se(t,n,1)};var ce={flattenDeep:void 0};const ue=ie,fe=u;ce.flattenDeep=function(t,n=1/0){return(0,fe.assert)(n===1/0||Number.isInteger(n),"The parameter depth must be an integer"),(0,fe.assert)(n>=0,"The parameter depth must be greater than or equal to 0"),(0,ue.flattenBy)(t,((t,e)=>e<=n))};var le={flatten:void 0};const ye=ce;le.flatten=function(t){return(0,ye.flattenDeep)(t,1)};var de={mapAsync:void 0};const ve=z;de.mapAsync=function(t,n){return(0,ve.isAsyncIterable)(t)?async function*(t,n){let e=0;for await(const r of t)yield await n(r,e),e++}(t,n):async function*(t,n){let e=0;for(const r of t)yield await n(r,e),e++}(t,n)};var me={};me.map=void 0,me.map=function*(t,n){let e=0;for(const r of t)yield n(r,e),e++};var pe={repeatAsync:void 0};const be=v,he=u;pe.repeatAsync=function(t,n){return(0,he.assert)(n===1/0||Number.isInteger(n),"The parameter times must be an integer"),(0,he.assert)(n>=0,"The parameter times must be greater than or equal to 0"),n===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,be.go)((async function*(){const e=[];if(n>0){for await(const n of t)yield n,e.push(n);n--}for(;n>0;)yield*e,n--}))};var ge={repeat:void 0};const we=v,Ae=u;ge.repeat=function(t,n){return(0,Ae.assert)(n===1/0||Number.isInteger(n),"The parameter times must be an integer"),(0,Ae.assert)(n>=0,"The parameter times must be greater than or equal to 0"),n===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)((function*(){const e=[];if(n>0){for(const n of t)yield n,e.push(n);n--}for(;n>0;)yield*e,n--}))};var Ie={sliceAsync:void 0};const Se=v,Oe=u;Ie.sliceAsync=function(t,n,e=1/0){return(0,Oe.assert)(Number.isInteger(n),"The parameter start must be an integer"),(0,Oe.assert)(n>=0,"The parameter start must be greater than or equal to 0"),(0,Oe.assert)(Number.isInteger(e),"The parameter end must be an integer"),(0,Oe.assert)(e>=n,"The parameter end must be greater than or equal to start"),(0,Se.go)((async function*(){let r=0;for await(const o of t){if(r>=e)break;r>=n&&(yield o),r++}}))};var Te={slice:void 0};const je=v,Ne=u;Te.slice=function(t,n,e=1/0){return(0,Ne.assert)(Number.isInteger(n),"The parameter start must be an integer"),(0,Ne.assert)(n>=0,"The parameter start must be greater than or equal to 0"),(0,Ne.assert)(Number.isInteger(e),"The parameter end must be an integer"),(0,Ne.assert)(e>=n,"The parameter end must be greater than or equal to start"),(0,je.go)((function*(){let r=0;for(const o of t){if(r>=e)break;r>=n&&(yield o),r++}}))};var xe={};xe.splitAsync=void 0,xe.splitAsync=async function*(t,n){let e=[];for await(const r of t)r===n?(yield e,e=[]):e.push(r);yield e};var _e={splitByAsync:void 0};const ke=z;_e.splitByAsync=function(t,n){return(0,ke.isAsyncIterable)(t)?async function*(t,n){let e=[],r=0;for await(const o of t)await n(o,r)?(yield e,e=[]):e.push(o),r++;yield e}(t,n):async function*(t,n){let e=[],r=0;for(const o of t)await n(o,r)?(yield e,e=[]):e.push(o),r++;yield e}(t,n)};var Ee={};Ee.splitBy=void 0,Ee.splitBy=function*(t,n){let e=[],r=0;for(const o of t)n(o,r)?(yield e,e=[]):e.push(o),r++;yield e};var Be={};Be.split=void 0,Be.split=function*(t,n){let e=[];for(const r of t)r===n?(yield e,e=[]):e.push(r);yield e};var Pe={takeAsync:void 0};const qe=v,De=u;Pe.takeAsync=function(t,n){return(0,De.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,De.assert)(n>=0,"The parameter count must be greater than or equal to 0"),(0,qe.go)((async function*(){if(0!==n)for await(const e of t)if(yield e,0===--n)break}))};var Me={takeRightAsync:void 0};const Re=v,Ue=u;Me.takeRightAsync=function(t,n){return(0,Ue.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,Ue.assert)(n>=0,"The parameter count must be greater than or equal to 0"),(0,Re.go)((async function*(){var e;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>n&&t.shift();yield*t}finally{o||await(null===(e=r.return)||void 0===e?void 0:e.call(r))}}))};var ze={takeRight:void 0};const Ce=v,Fe=u;ze.takeRight=function(t,n){return(0,Fe.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,Fe.assert)(n>=0,"The parameter count must be greater than or equal to 0"),(0,Ce.go)((function*(){var e;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>n&&t.shift();yield*t}finally{o||null===(e=r.return)||void 0===e||e.call(r)}}))};var Le={takeUntilAsync:void 0};const Je=z;Le.takeUntilAsync=function(t,n){return(0,Je.isAsyncIterable)(t)?async function*(t,n){let e=0;for await(const r of t){if(await n(r,e))break;yield r,e++}}(t,n):async function*(t,n){let e=0;for(const r of t){if(await n(r,e))break;yield r,e++}}(t,n)};var Ve={};Ve.takeUntil=void 0,Ve.takeUntil=function*(t,n){let e=0;for(const r of t){if(n(r,e))break;yield r,e++}};var We={take:void 0};const Ge=v,He=u;We.take=function(t,n){return(0,He.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,He.assert)(n>=0,"The parameter count must be greater than or equal to 0"),(0,Ge.go)((function*(){if(0!==n)for(const e of t)if(yield e,0===--n)break}))};var Ke={tapAsync:void 0};const Qe=z;Ke.tapAsync=function(t,n){return(0,Qe.isAsyncIterable)(t)?async function*(t,n){let e=0;for await(const r of t)await n(r,e),yield r,e++}(t,n):async function*(t,n){let e=0;for(const r of t)await n(r,e),yield r,e++}(t,n)};var Xe={};Xe.tap=void 0,Xe.tap=function*(t,n){let e=0;for(const r of t)n(r,e),yield r,e++};var Ye={};Ye.toAsyncIterable=void 0,Ye.toAsyncIterable=async function*(t){for(const n of t)yield n};var Ze={};Ze.transformAsync=void 0,Ze.transformAsync=async function*(t,n){yield*n(t)};var $e={};$e.transform=void 0,$e.transform=function*(t,n){yield*n(t)};var tr={};tr.uniqAsync=void 0,tr.uniqAsync=async function*(t){const n=new Set;for await(const e of t)n.has(e)||(yield e,n.add(e))};var nr={uniqByAsync:void 0};const er=z;nr.uniqByAsync=function(t,n){return(0,er.isAsyncIterable)(t)?async function*(t,n){const e=new Set;let r=0;for await(const o of t){const t=await n(o,r);e.has(t)||(yield o,e.add(t)),r++}}(t,n):async function*(t,n){const e=new Set;let r=0;for(const o of t){const t=await n(o,r);e.has(t)||(yield o,e.add(t)),r++}}(t,n)};var rr={};rr.uniqBy=void 0,rr.uniqBy=function*(t,n){const e=new Set;let r=0;for(const o of t){const t=n(o,r);e.has(t)||(yield o,e.add(t)),r++}};var or={};or.uniq=void 0,or.uniq=function*(t){const n=new Set;for(const e of t)n.has(e)||(yield e,n.add(e))};var ir={zipAsync:void 0};const ar=z;var sr;!function(t){t[t.Sync=0]="Sync",t[t.Async=1]="Async"}(sr||(sr={})),ir.zipAsync=function(t,...n){return async function*(...t){var n,e,r,o;const i=t.length,a=t.map((t=>(0,ar.isAsyncIterable)(t)?[sr.Async,t[Symbol.asyncIterator]()]:[sr.Sync,t[Symbol.iterator]()])),s=a.map((()=>!1));try{for(;;){const t=new Array(i);for(let n=0;n<i;n++){const[e,r]=a[n];let o;if(o=e===sr.Async?await r.next():r.next(),o.done)return void(s[n]=!0);t[n]=o.value}yield t}}finally{const t=a.filter(((t,n)=>!s[n]));for(const[i,a]of t)i===sr.Async?await(null===(e=(n=a).return)||void 0===e?void 0:e.call(n)):null===(o=(r=a).return)||void 0===o||o.call(r)}}(t,...n)};var cr={};cr.zip=void 0,cr.zip=function(t,...n){return function*(...t){const n=t.length,e=t.map((t=>t[Symbol.iterator]())),r=e.map((()=>!1));try{for(;;){const t=new Array(n);for(let o=0;o<n;o++){const{value:n,done:i}=e[o].next();if(i)return void(r[o]=!0);t[o]=n}yield t}}finally{e.filter(((t,n)=>!r[n])).forEach((t=>{var n;return null===(n=t.return)||void 0===n?void 0:n.call(t)}))}}(t,...n)},function(t){var e=n&&n.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var o=Object.getOwnPropertyDescriptor(n,e);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,o)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(d,t),r(U,t),r(hn,t),r(gn,t),r(In,t),r(Tn,t),r(Nn,t),r(Bn,t),r(Mn,t),r(Cn,t),r(Ln,t),r(Jn,t),r(Hn,t),r(Qn,t),r(Xn,t),r(Zn,t),r(ie,t),r(Yn,t),r(ce,t),r(le,t),r(de,t),r(me,t),r(pe,t),r(ge,t),r(Ie,t),r(Te,t),r(xe,t),r(_e,t),r(Ee,t),r(Be,t),r(Pe,t),r(Me,t),r(ze,t),r(Le,t),r(Ve,t),r(We,t),r(Ke,t),r(Xe,t),r(Ye,t),r(Ze,t),r($e,t),r(tr,t),r(nr,t),r(rr,t),r(or,t),r(ir,t),r(cr,t)}(y);var ur={},fr={};fr.consume=void 0,fr.consume=function(t,n){return n(t)};var lr={eachAsync:void 0};const yr=z;lr.eachAsync=function(t,n){return(0,yr.isAsyncIterable)(t)?async function(t,n){let e=0;for await(const r of t)await n(r,e),e++}(t,n):async function(t,n){let e=0;for(const r of t)await n(r,e),e++}(t,n)};var dr={};dr.each=void 0,dr.each=function(t,n){let e=0;for(const r of t)n(r,e),e++};var vr={everyAsync:void 0};const mr=z;vr.everyAsync=function(t,n){return(0,mr.isAsyncIterable)(t)?async function(t,n){let e=0;for await(const r of t){if(!await n(r,e))return!1;e++}return!0}(t,n):async function(t,n){let e=0;for(const r of t){if(!await n(r,e))return!1;e++}return!0}(t,n)};var pr={};pr.every=void 0,pr.every=function(t,n){let e=0;for(const r of t){if(!n(r,e))return!1;e++}return!0};var br={findAsync:void 0};const hr=z;br.findAsync=function(t,n){return(0,hr.isAsyncIterable)(t)?async function(t,n){let e=0;for await(const r of t){if(await n(r,e))return r;e++}return}(t,n):async function(t,n){let e=0;for(const r of t){if(await n(r,e))return r;e++}return}(t,n)};var gr={};gr.find=void 0,gr.find=function(t,n){let e=0;for(const r of t){if(n(r,e))return r;e++}};var wr={};wr.firstAsync=void 0,wr.firstAsync=async function(t){for await(const n of t)return n};var Ar={};Ar.first=void 0,Ar.first=function(t){for(const n of t)return n};var Ir={};Ir.includesAsync=void 0,Ir.includesAsync=async function(t,n){for await(const e of t)if(e===n)return!0;return!1};var Sr={};Sr.includes=void 0,Sr.includes=function(t,n){for(const e of t)if(e===n)return!0;return!1};var Or={};Or.matchAsync=void 0,Or.matchAsync=async function(t,n){const e=n.length;let r=0;for await(const o of t)if(o===n[r]&&r++,r===e)return!0;return!1};var Tr={};Tr.match=void 0,Tr.match=function(t,n){const e=n.length;let r=0;for(const o of t)if(o===n[r]&&r++,r===e)return!0;return!1};var jr={reduceAsync:void 0};const Nr=z;jr.reduceAsync=function(t,n,e){return(0,Nr.isUndefined)(e)?function(t,n){return(0,Nr.isAsyncIterable)(t)?e(t):r(t);async function e(t){var e;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 n(a,t,s++);return a}finally{o||await(null===(e=r.return)||void 0===e?void 0:e.call(r))}async function i(t){const n=await t.next();if(n.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return n.value}}async function r(t){var e;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 n(a,t,s++);return a}finally{o||null===(e=r.return)||void 0===e||e.call(r)}function i(t){const n=t.next();if(n.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return n.value}}}(t,n):function(t,n,e){return(0,Nr.isAsyncIterable)(t)?o(t):r(t);async function r(t){let r=e,o=0;for(const e of t)r=await n(r,e,o++);return r}async function o(t){let r=e,o=0;for await(const e of t)r=await n(r,e,o++);return r}}(t,n,e)};var xr={reduce:void 0};const _r=z;xr.reduce=function(t,n,e){return(0,_r.isUndefined)(e)?function(t,n){var e;const r=t[Symbol.iterator]();let o;try{let t,a=i(r),s=1;for(;({value:t,done:o}=r.next()),!o;)a=n(a,t,s++);return a}finally{o||null===(e=r.return)||void 0===e||e.call(r)}function i(t){const n=t.next();if(n.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return n.value}}(t,n):function(t,n,e){let r=e,o=0;for(const e of t)r=n(r,e,o++);return r}(t,n,e)};var kr={someAsync:void 0};const Er=z;kr.someAsync=function(t,n){return(0,Er.isAsyncIterable)(t)?async function(t,n){let e=0;for await(const r of t){if(await n(r,e))return!0;e++}return!1}(t,n):async function(t,n){let e=0;for(const r of t){if(await n(r,e))return!0;e++}return!1}(t,n)};var Br={};Br.some=void 0,Br.some=function(t,n){let e=0;for(const r of t){if(n(r,e))return!0;e++}return!1};var Pr={};Pr.lastAsync=void 0,Pr.lastAsync=async function(t){var n;const e=t[Symbol.asyncIterator]();let r;try{let t,o;for(;({value:t,done:r}=await e.next()),!r;)o=t;return o}finally{r||await(null===(n=e.return)||void 0===n?void 0:n.call(e))}};var qr={};qr.last=void 0,qr.last=function(t){var n;const e=t[Symbol.iterator]();let r;try{let t,o;for(;({value:t,done:r}=e.next()),!r;)o=t;return o}finally{r||null===(n=e.return)||void 0===n||n.call(e)}};var Dr={toArrayAsync:void 0};const Mr=fr;Dr.toArrayAsync=function(t){return(0,Mr.consume)(t,(async t=>{const n=[];for await(const e of t)n.push(e);return n}))};var Rr={toArray:void 0};const Ur=fr;Rr.toArray=function(t){return(0,Ur.consume)(t,(t=>Array.from(t)))};var zr={toSetAsync:void 0};const Cr=fr;zr.toSetAsync=function(t){return(0,Cr.consume)(t,(async t=>{const n=new Set;for await(const e of t)n.add(e);return n}))};var Fr={toSet:void 0};const Lr=fr;Fr.toSet=function(t){return(0,Lr.consume)(t,(t=>new Set(t)))};var Jr={};Jr.count=void 0,Jr.count=function(t){let n=0;for(const e of t)n++;return n};var Vr={};Vr.countAsync=void 0,Vr.countAsync=async function(t){let n=0;for await(const e of t)n++;return n};var Wr={groupBy:void 0};const Gr=dr;Wr.groupBy=function(t,n){const e=new Map;return(0,Gr.each)(t,((t,r)=>{const o=n(t,r);e.has(o)||e.set(o,[]),e.get(o).push(t)})),e};var Hr={groupByAsync:void 0};const Kr=lr;Hr.groupByAsync=async function(t,n){const e=new Map;return await(0,Kr.eachAsync)(t,(async(t,r)=>{const o=await n(t,r);e.has(o)||e.set(o,[]),e.get(o).push(t)})),e},function(t){var e=n&&n.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var o=Object.getOwnPropertyDescriptor(n,e);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,o)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(fr,t),r(lr,t),r(dr,t),r(vr,t),r(pr,t),r(br,t),r(gr,t),r(wr,t),r(Ar,t),r(Ir,t),r(Sr,t),r(Or,t),r(Tr,t),r(jr,t),r(xr,t),r(kr,t),r(Br,t),r(Pr,t),r(qr,t),r(Dr,t),r(Rr,t),r(zr,t),r(Fr,t),r(Jr,t),r(Vr,t),r(Wr,t),r(Hr,t)}(ur),function(t){var e=n&&n.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var o=Object.getOwnPropertyDescriptor(n,e);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,o)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(y,t),r(ur,t)}(l);var Qr={},Xr={};Xr.traverseErrorPrototypeChain=void 0,Xr.traverseErrorPrototypeChain=function*(t){let n=t;for(;(n=Object.getPrototypeOf(n))&&(yield n,n!==Error.prototype););},Qr.getErrorNames=void 0;const Yr=z,Zr=Xr;Qr.getErrorNames=function*(t){var n;if((0,Yr.isError)(t))for(const e of(0,Zr.traverseErrorPrototypeChain)(t))(null===(n=e.constructor)||void 0===n?void 0:n.name)&&(yield e.constructor.name);else yield t.name,yield*t.ancestors};var $r={isSerializableError:void 0};const to=z;$r.isSerializableError=function(t){return(0,to.isObject)(t)&&(0,to.isString)(t.name)&&(0,to.isString)(t.message)&&((0,to.isString)(t.stack)||(0,to.isNull)(t.stack))&&(0,to.isArray)(t.ancestors)&&t.ancestors.every(to.isString)},f.CustomError=void 0;const no=l,eo=Qr,ro=z,oo=$r;class io extends Error{get name(){var t,n;return null!==(n=null!==(t=(0,no.first)((0,eo.getErrorNames)(this)))&&void 0!==t?t:io.name)&&void 0!==n?n:"CustomError"}static[Symbol.hasInstance](t){var n;if((0,ro.isError)(t)||(0,oo.isSerializableError)(t)){const e=[null!==(n=this.prototype.constructor.name)&&void 0!==n?n:this.name,...(0,eo.getErrorNames)(this.prototype)].reverse(),r=(0,no.toArray)((0,eo.getErrorNames)(t)).reverse();return e.every(((t,n)=>t===r[n]))}return!1}}f.CustomError=io;var ao={AssertionError:void 0};const so=f;class co extends so.CustomError{}ao.AssertionError=co;var uo={normalize:void 0};const fo=Qr,lo=l;uo.normalize=function(t){var n;const[e,...r]=(0,lo.toArray)((0,fo.getErrorNames)(t));return{name:e,ancestors:r,message:t.message,stack:null!==(n=t.stack)&&void 0!==n?n:null}};var yo={},vo={},mo={};mo.pass=void 0,mo.pass=function(){},function(t){var e=n&&n.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e),Object.defineProperty(t,r,{enumerable:!0,get:function(){return n[e]}})}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]});(n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)})(mo,t)}(vo),yo.hydrate=void 0;const po=vo;function bo(t,n){const e=function(){(0,po.pass)()};return(e.prototype=Object.create(t.prototype)).constructor=e,Object.defineProperty(e,"name",{value:n}),e}yo.hydrate=function(t){var n;const e=[t.name,...t.ancestors].slice(0,-1).reverse();let r=Error;for(const t of e)r=bo(r,t);const o=new r;return o.name=t.name,o.message=t.message,o.stack=null!==(n=t.stack)&&void 0!==n?n:void 0,o};var ho={assert:void 0};const go=ao;ho.assert=function(t,n){if(!t)throw new go.AssertionError(n)},function(t){var e=n&&n.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var o=Object.getOwnPropertyDescriptor(n,e);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,o)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(f,t),r(ao,t),r($r,t),r(uo,t),r(yo,t),r(ho,t),r(Qr,t),r(Xr,t)}(u);var wo={},Ao={},Io={chunkAsync:void 0};const So=v,Oo=u;Io.chunkAsync=function(t,n){return(0,Oo.assert)(Number.isInteger(n),"The parameter size must be an integer"),(0,Oo.assert)(n>0,"The parameter size must be greater than 0"),(0,So.go)((async function*(){let e=[];for await(const r of t)e.push(r),e.length>=n&&(yield e,e=[]);e.length&&(yield e)}))};var To={chunkByAsync:void 0};const jo=z;To.chunkByAsync=function(t,n){return(0,jo.isAsyncIterable)(t)?async function*(t,n){let e=[],r=0;for await(const o of t)e.push(o),await n(o,r)&&(yield e,e=[]),r++;e.length&&(yield e)}(t,n):async function*(t,n){let e=[],r=0;for(const o of t)e.push(o),await n(o,r)&&(yield e,e=[]),r++;e.length&&(yield e)}(t,n)};var No={};No.chunkBy=void 0,No.chunkBy=function*(t,n){let e=[],r=0;for(const o of t)e.push(o),n(o,r)&&(yield e,e=[]),r++;e.length&&(yield e)};var xo={chunk:void 0};const _o=v,ko=u;xo.chunk=function(t,n){return(0,ko.assert)(Number.isInteger(n),"The parameter size must be an integer"),(0,ko.assert)(n>0,"The parameter size must be greater than 0"),(0,_o.go)((function*(){let e=[];for(const r of t)e.push(r),e.length>=n&&(yield e,e=[]);e.length&&(yield e)}))};var Eo={concatAsync:void 0};const Bo=z,Po=v;Eo.concatAsync=function(t,...n){return(0,Po.go)((async function*(){for(const e of[t,...n])if((0,Bo.isAsyncIterable)(e))for await(const t of e)yield t;else for(const t of e)yield t}))};var qo={concat:void 0};const Do=v;qo.concat=function(t,...n){return(0,Do.go)((function*(){for(const e of[t,...n])yield*e}))};var Mo={},Ro={filterAsync:void 0};const Uo=z;Ro.filterAsync=function(t,n){return(0,Uo.isAsyncIterable)(t)?async function*(t,n){let e=0;for await(const r of t)await n(r,e)&&(yield r),e++}(t,n):async function*(t,n){let e=0;for(const r of t)await n(r,e)&&(yield r),e++}(t,n)};var zo={};zo.toSetAsync=void 0,zo.toSetAsync=async function(t){const n=new Set;for await(const e of t)n.add(await e);return n},Mo.differenceAsync=void 0;const Co=Ro,Fo=zo;Mo.differenceAsync=async function*(t,n){const e=await(0,Fo.toSetAsync)(n);yield*(0,Co.filterAsync)(t,(async t=>!e.has(await t)))};var Lo={},Jo={};Jo.filter=void 0,Jo.filter=function*(t,n){let e=0;for(const r of t)n(r,e)&&(yield r),e++};var Vo={};Vo.toSet=void 0,Vo.toSet=function(t){return new Set(t)},Lo.difference=void 0;const Wo=Jo,Go=Vo;Lo.difference=function(t,n){const e=(0,Go.toSet)(n);return(0,Wo.filter)(t,(t=>!e.has(t)))};var Ho={},Ko={};Ko.copyIterable=Ko.copyAsyncIterable=void 0,Ko.copyAsyncIterable=async function*(t){for await(const n of t)yield n},Ko.copyIterable=function*(t){for(const n of t)yield n},Ho.dropAsync=void 0;const Qo=v,Xo=Ko,Yo=u;Ho.dropAsync=function(t,n){return(0,Yo.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,Yo.assert)(n>=0,"The parameter count must be greater than or equal to 0"),0===n?(0,Xo.copyAsyncIterable)(t):(0,Qo.go)((async function*(){var e;const r=t[Symbol.asyncIterator]();let o;try{let t;for(;!(({value:t,done:o}=await r.next()),o||n<=0);)n--;for(;!o;)yield t,({value:t,done:o}=await r.next())}finally{o||await(null===(e=r.return)||void 0===e?void 0:e.call(r))}}))};var Zo={},$o={};$o.toArrayAsync=void 0,$o.toArrayAsync=async function(t){const n=[];for await(const e of t)n.push(e);return n},Zo.dropRightAsync=void 0;const ti=v,ni=Ko,ei=u,ri=$o;Zo.dropRightAsync=function(t,n){return(0,ei.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,ei.assert)(n>=0,"The parameter count must be greater than or equal to 0"),0===n?(0,ni.copyAsyncIterable)(t):(0,ti.go)((async function*(){const e=(await(0,ri.toArrayAsync)(t)).slice(0,-n);for(const t of e)yield t}))};var oi={dropRight:void 0};const ii=v,ai=Ko,si=u;oi.dropRight=function(t,n){return(0,si.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,si.assert)(n>=0,"The parameter count must be greater than or equal to 0"),0===n?(0,ai.copyIterable)(t):(0,ii.go)((function*(){const e=Array.from(t);yield*e.slice(0,-n)}))};var ci={dropUntilAsync:void 0};const ui=z;ci.dropUntilAsync=function(t,n){return(0,ui.isAsyncIterable)(t)?async function*(t,n){var e;const r=t[Symbol.asyncIterator]();let o;try{let t,i=0;for(;!(({value:t,done:o}=await r.next()),o||await n(t,i++)););for(;!o;)yield t,({value:t,done:o}=await r.next())}finally{o||await(null===(e=r.return)||void 0===e?void 0:e.call(r))}}(t,n):async function*(t,n){var e;const r=t[Symbol.iterator]();let o;try{let t,i=0;for(;!(({value:t,done:o}=r.next()),o||await n(t,i++)););for(;!o;)yield t,({value:t,done:o}=r.next())}finally{o||null===(e=r.return)||void 0===e||e.call(r)}}(t,n)};var fi={};fi.dropUntil=void 0,fi.dropUntil=function*(t,n){var e;const r=t[Symbol.iterator]();let o;try{let t,i=0;for(;!(({value:t,done:o}=r.next()),o||n(t,i++)););for(;!o;)yield t,({value:t,done:o}=r.next())}finally{o||null===(e=r.return)||void 0===e||e.call(r)}};var li={drop:void 0};const yi=v,di=Ko,vi=u;li.drop=function(t,n){return(0,vi.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,vi.assert)(n>=0,"The parameter count must be greater than or equal to 0"),0===n?(0,di.copyIterable)(t):(0,yi.go)((function*(){var e;const r=t[Symbol.iterator]();let o;try{let t;for(;!(({value:t,done:o}=r.next()),o||n<=0);)n--;for(;!o;)yield t,({value:t,done:o}=r.next())}finally{o||null===(e=r.return)||void 0===e||e.call(r)}}))};var mi={},pi={},bi={flattenByAsync:void 0};const hi=z;async function*gi(t,n,e){for(const r of t)wi(r)&&await n(r,e)?yield*gi(r,n,e+1):yield r}function wi(t){return(0,hi.isIterable)(t)&&(0,hi.isntChar)(t)}bi.flattenByAsync=function(t,n){return(0,hi.isAsyncIterable)(t)?async function*(t,n){const e=1;for await(const r of t)wi(r)&&await n(r,e)?yield*gi(r,n,e+1):yield r}(t,n):function(t,n){return gi(t,n,1)}(t,n)},pi.flattenDeepAsync=void 0;const Ai=bi,Ii=u;pi.flattenDeepAsync=function(t,n=1/0){return(0,Ii.assert)(n===1/0||Number.isInteger(n),"The parameter depth must be an integer"),(0,Ii.assert)(n>=0,"The parameter depth must be greater than or equal to 0"),(0,Ai.flattenByAsync)(t,((t,e)=>e<=n))},mi.flattenAsync=void 0;const Si=pi;mi.flattenAsync=function(t){return(0,Si.flattenDeepAsync)(t,1)};var Oi={flattenBy:void 0};const Ti=z;function*ji(t,n,e){for(const o of t)r=o,(0,Ti.isIterable)(r)&&(0,Ti.isntChar)(r)&&n(o,e)?yield*ji(o,n,e+1):yield o;var r}Oi.flattenBy=function(t,n){return ji(t,n,1)};var Ni={flattenDeep:void 0};const xi=Oi,_i=u;Ni.flattenDeep=function(t,n=1/0){return(0,_i.assert)(n===1/0||Number.isInteger(n),"The parameter depth must be an integer"),(0,_i.assert)(n>=0,"The parameter depth must be greater than or equal to 0"),(0,xi.flattenBy)(t,((t,e)=>e<=n))};var ki={flatten:void 0};const Ei=Ni;ki.flatten=function(t){return(0,Ei.flattenDeep)(t,1)};var Bi={intersectionAsync:void 0};const Pi=Ro,qi=zo;Bi.intersectionAsync=async function*(t,n){const e=await(0,qi.toSetAsync)(n);yield*(0,Pi.filterAsync)(t,(async t=>e.has(await t)))};var Di={intersection:void 0};const Mi=Jo,Ri=Vo;Di.intersection=function(t,n){const e=(0,Ri.toSet)(n);return(0,Mi.filter)(t,(t=>e.has(t)))};var Ui={mapAsync:void 0};const zi=z;Ui.mapAsync=function(t,n){return(0,zi.isAsyncIterable)(t)?async function*(t,n){let e=0;for await(const r of t)yield await n(r,e),e++}(t,n):async function*(t,n){let e=0;for(const r of t)yield await n(r,e),e++}(t,n)};var Ci={};Ci.map=void 0,Ci.map=function*(t,n){let e=0;for(const r of t)yield n(r,e),e++};var Fi={repeatAsync:void 0};const Li=v,Ji=u;Fi.repeatAsync=function(t,n){return(0,Ji.assert)(n===1/0||Number.isInteger(n),"The parameter times must be an integer"),(0,Ji.assert)(n>=0,"The parameter times must be greater than or equal to 0"),n===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,Li.go)((async function*(){const e=[];if(n>0){for await(const n of t)yield n,e.push(n);n--}for(;n>0;)yield*e,n--}))};var Vi={repeat:void 0};const Wi=v,Gi=u;Vi.repeat=function(t,n){return(0,Gi.assert)(n===1/0||Number.isInteger(n),"The parameter times must be an integer"),(0,Gi.assert)(n>=0,"The parameter times must be greater than or equal to 0"),n===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,Wi.go)((function*(){const e=[];if(n>0){for(const n of t)yield n,e.push(n);n--}for(;n>0;)yield*e,n--}))};var Hi={sliceAsync:void 0};const Ki=v,Qi=u;Hi.sliceAsync=function(t,n,e=1/0){return(0,Qi.assert)(Number.isInteger(n),"The parameter start must be an integer"),(0,Qi.assert)(n>=0,"The parameter start must be greater than or equal to 0"),(0,Qi.assert)(Number.isInteger(e),"The parameter end must be an integer"),(0,Qi.assert)(e>=n,"The parameter end must be greater than or equal to start"),(0,Ki.go)((async function*(){let r=0;for await(const o of t){if(r>=e)break;r>=n&&(yield o),r++}}))};var Xi={slice:void 0};const Yi=v,Zi=u;Xi.slice=function(t,n,e=1/0){return(0,Zi.assert)(Number.isInteger(n),"The parameter start must be an integer"),(0,Zi.assert)(n>=0,"The parameter start must be greater than or equal to 0"),(0,Zi.assert)(Number.isInteger(e),"The parameter end must be an integer"),(0,Zi.assert)(e>=n,"The parameter end must be greater than or equal to start"),(0,Yi.go)((function*(){let r=0;for(const o of t){if(r>=e)break;r>=n&&(yield o),r++}}))};var $i={};$i.splitAsync=void 0,$i.splitAsync=async function*(t,n){let e=[];for await(const r of t)r===n?(yield e,e=[]):e.push(r);yield e};var ta={splitByAsync:void 0};const na=z;ta.splitByAsync=function(t,n){return(0,na.isAsyncIterable)(t)?async function*(t,n){let e=[],r=0;for await(const o of t)await n(o,r)?(yield e,e=[]):e.push(o),r++;yield e}(t,n):async function*(t,n){let e=[],r=0;for(const o of t)await n(o,r)?(yield e,e=[]):e.push(o),r++;yield e}(t,n)};var ea={};ea.splitBy=void 0,ea.splitBy=function*(t,n){let e=[],r=0;for(const o of t)n(o,r)?(yield e,e=[]):e.push(o),r++;yield e};var ra={};ra.split=void 0,ra.split=function*(t,n){let e=[];for(const r of t)r===n?(yield e,e=[]):e.push(r);yield e};var oa={takeAsync:void 0};const ia=v,aa=u;oa.takeAsync=function(t,n){return(0,aa.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,aa.assert)(n>=0,"The parameter count must be greater than or equal to 0"),(0,ia.go)((async function*(){if(0!==n)for await(const e of t)if(yield e,0===--n)break}))};var sa={takeRightAsync:void 0};const ca=v,ua=u;sa.takeRightAsync=function(t,n){return(0,ua.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,ua.assert)(n>=0,"The parameter count must be greater than or equal to 0"),(0,ca.go)((async function*(){var e;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>n&&t.shift();yield*t}finally{o||await(null===(e=r.return)||void 0===e?void 0:e.call(r))}}))};var fa={takeRight:void 0};const la=v,ya=u;fa.takeRight=function(t,n){return(0,ya.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,ya.assert)(n>=0,"The parameter count must be greater than or equal to 0"),(0,la.go)((function*(){var e;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>n&&t.shift();yield*t}finally{o||null===(e=r.return)||void 0===e||e.call(r)}}))};var da={takeUntilAsync:void 0};const va=z;da.takeUntilAsync=function(t,n){return(0,va.isAsyncIterable)(t)?async function*(t,n){let e=0;for await(const r of t){if(await n(r,e))break;yield r,e++}}(t,n):async function*(t,n){let e=0;for(const r of t){if(await n(r,e))break;yield r,e++}}(t,n)};var ma={};ma.takeUntil=void 0,ma.takeUntil=function*(t,n){let e=0;for(const r of t){if(n(r,e))break;yield r,e++}};var pa={take:void 0};const ba=v,ha=u;pa.take=function(t,n){return(0,ha.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,ha.assert)(n>=0,"The parameter count must be greater than or equal to 0"),(0,ba.go)((function*(){if(0!==n)for(const e of t)if(yield e,0===--n)break}))};var ga={tapAsync:void 0};const wa=z;ga.tapAsync=function(t,n){return(0,wa.isAsyncIterable)(t)?async function*(t,n){let e=0;for await(const r of t)await n(r,e),yield r,e++}(t,n):async function*(t,n){let e=0;for(const r of t)await n(r,e),yield r,e++}(t,n)};var Aa={};Aa.tap=void 0,Aa.tap=function*(t,n){let e=0;for(const r of t)n(r,e),yield r,e++};var Ia={};Ia.toAsyncIterable=void 0,Ia.toAsyncIterable=async function*(t){for(const n of t)yield await n};var Sa={};Sa.transformAsync=void 0,Sa.transformAsync=async function*(t,n){yield*n(t)};var Oa={};Oa.transform=void 0,Oa.transform=function*(t,n){yield*n(t)};var Ta={};Ta.uniqAsync=void 0,Ta.uniqAsync=async function*(t){const n=new Set;for await(const e of t)n.has(e)||(yield e,n.add(e))};var ja={uniqByAsync:void 0};const Na=z;ja.uniqByAsync=function(t,n){return(0,Na.isAsyncIterable)(t)?async function*(t,n){const e=new Set;let r=0;for await(const o of t){const t=await n(o,r);e.has(t)||(yield o,e.add(t)),r++}}(t,n):async function*(t,n){const e=new Set;let r=0;for(const o of t){const t=await n(o,r);e.has(t)||(yield o,e.add(t)),r++}}(t,n)};var xa={};xa.uniqBy=void 0,xa.uniqBy=function*(t,n){const e=new Set;let r=0;for(const o of t){const t=n(o,r);e.has(t)||(yield o,e.add(t)),r++}};var _a={};_a.uniq=void 0,_a.uniq=function*(t){const n=new Set;for(const e of t)n.has(e)||(yield e,n.add(e))};var ka={zipAsync:void 0};const Ea=z;var Ba;!function(t){t[t.Sync=0]="Sync",t[t.Async=1]="Async"}(Ba||(Ba={})),ka.zipAsync=function(t,...n){return async function*(...t){var n,e,r,o;const i=t.length,a=t.map((t=>(0,Ea.isAsyncIterable)(t)?[Ba.Async,t[Symbol.asyncIterator]()]:[Ba.Sync,t[Symbol.iterator]()])),s=a.map((()=>!1));try{for(;;){const t=new Array(i);for(let n=0;n<i;n++){const[e,r]=a[n];let o;if(o=e===Ba.Async?await r.next():r.next(),o.done)return void(s[n]=!0);t[n]=await o.value}yield t}}finally{const t=a.filter(((t,n)=>!s[n]));for(const[i,a]of t)i===Ba.Async?await(null===(e=(n=a).return)||void 0===e?void 0:e.call(n)):null===(o=(r=a).return)||void 0===o||o.call(r)}}(t,...n)};var Pa={};Pa.zip=void 0,Pa.zip=function(t,...n){return function*(...t){const n=t.length,e=t.map((t=>t[Symbol.iterator]())),r=e.map((()=>!1));try{for(;;){const t=new Array(n);for(let o=0;o<n;o++){const{value:n,done:i}=e[o].next();if(i)return void(r[o]=!0);t[o]=n}yield t}}finally{e.filter(((t,n)=>!r[n])).forEach((t=>{var n;return null===(n=t.return)||void 0===n?void 0:n.call(t)}))}}(t,...n)},function(t){var e=n&&n.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var o=Object.getOwnPropertyDescriptor(n,e);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,o)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(Io,t),r(To,t),r(No,t),r(xo,t),r(Eo,t),r(qo,t),r(Mo,t),r(Lo,t),r(Ho,t),r(Zo,t),r(oi,t),r(ci,t),r(fi,t),r(li,t),r(Ro,t),r(Jo,t),r(mi,t),r(bi,t),r(Oi,t),r(pi,t),r(Ni,t),r(ki,t),r(Bi,t),r(Di,t),r(Ui,t),r(Ci,t),r(Fi,t),r(Vi,t),r(Hi,t),r(Xi,t),r($i,t),r(ta,t),r(ea,t),r(ra,t),r(oa,t),r(sa,t),r(fa,t),r(da,t),r(ma,t),r(pa,t),r(ga,t),r(Aa,t),r(Ia,t),r(Sa,t),r(Oa,t),r(Ta,t),r(ja,t),r(xa,t),r(_a,t),r(ka,t),r(Pa,t)}(Ao);var qa={},Da={};Da.consume=void 0,Da.consume=function(t,n){return n(t)};var Ma={};Ma.consumeAsync=void 0,Ma.consumeAsync=async function(t,n){return await n(t)};var Ra={eachAsync:void 0};const Ua=z;Ra.eachAsync=function(t,n){return(0,Ua.isAsyncIterable)(t)?async function(t,n){let e=0;for await(const r of t)await n(r,e),e++}(t,n):async function(t,n){let e=0;for(const r of t)await n(r,e),e++}(t,n)};var za={};za.each=void 0,za.each=function(t,n){let e=0;for(const r of t)n(r,e),e++};var Ca={everyAsync:void 0};const Fa=z;Ca.everyAsync=function(t,n){return(0,Fa.isAsyncIterable)(t)?async function(t,n){let e=0;for await(const r of t){if(!await n(r,e))return!1;e++}return!0}(t,n):async function(t,n){let e=0;for(const r of t){if(!await n(r,e))return!1;e++}return!0}(t,n)};var La={};La.every=void 0,La.every=function(t,n){let e=0;for(const r of t){if(!n(r,e))return!1;e++}return!0};var Ja={findAsync:void 0};const Va=z;Ja.findAsync=function(t,n){return(0,Va.isAsyncIterable)(t)?async function(t,n){let e=0;for await(const r of t){if(await n(r,e))return r;e++}return}(t,n):async function(t,n){let e=0;for(const r of t){if(await n(r,e))return r;e++}return}(t,n)};var Wa={};Wa.find=void 0,Wa.find=function(t,n){let e=0;for(const r of t){if(n(r,e))return r;e++}};var Ga={};Ga.firstAsync=void 0,Ga.firstAsync=async function(t){for await(const n of t)return n};var Ha={};Ha.first=void 0,Ha.first=function(t){for(const n of t)return n};var Ka={};Ka.includesAsync=void 0,Ka.includesAsync=async function(t,n){for await(const e of t)if(e===n)return!0;return!1};var Qa={};Qa.includes=void 0,Qa.includes=function(t,n){for(const e of t)if(e===n)return!0;return!1};var Xa={reduceAsync:void 0};const Ya=z;Xa.reduceAsync=function(t,n,e){return(0,Ya.isUndefined)(e)?function(t,n){return(0,Ya.isAsyncIterable)(t)?e(t):r(t);async function e(t){var e;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 n(a,t,s++);return a}finally{o||await(null===(e=r.return)||void 0===e?void 0:e.call(r))}async function i(t){const n=await t.next();if(n.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return n.value}}async function r(t){var e;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 n(a,t,s++);return a}finally{o||null===(e=r.return)||void 0===e||e.call(r)}function i(t){const n=t.next();if(n.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return n.value}}}(t,n):function(t,n,e){return(0,Ya.isAsyncIterable)(t)?o(t):r(t);async function r(t){let r=e,o=0;for(const e of t)r=await n(r,e,o++);return r}async function o(t){let r=e,o=0;for await(const e of t)r=await n(r,e,o++);return r}}(t,n,e)};var Za={reduce:void 0};const $a=z;Za.reduce=function(t,n,e){return(0,$a.isUndefined)(e)?function(t,n){var e;const r=t[Symbol.iterator]();let o;try{let t,a=i(r),s=1;for(;({value:t,done:o}=r.next()),!o;)a=n(a,t,s++);return a}finally{o||null===(e=r.return)||void 0===e||e.call(r)}function i(t){const n=t.next();if(n.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return n.value}}(t,n):function(t,n,e){let r=e,o=0;for(const e of t)r=n(r,e,o++);return r}(t,n,e)};var ts={someAsync:void 0};const ns=z;ts.someAsync=function(t,n){return(0,ns.isAsyncIterable)(t)?async function(t,n){let e=0;for await(const r of t){if(await n(r,e))return!0;e++}return!1}(t,n):async function(t,n){let e=0;for(const r of t){if(await n(r,e))return!0;e++}return!1}(t,n)};var es={};es.some=void 0,es.some=function(t,n){let e=0;for(const r of t){if(n(r,e))return!0;e++}return!1};var rs={};rs.lastAsync=void 0,rs.lastAsync=async function(t){var n;const e=t[Symbol.asyncIterator]();let r;try{let t,o;for(;({value:t,done:r}=await e.next()),!r;)o=t;return o}finally{r||await(null===(n=e.return)||void 0===n?void 0:n.call(e))}};var os={};os.last=void 0,os.last=function(t){var n;const e=t[Symbol.iterator]();let r;try{let t,o;for(;({value:t,done:r}=e.next()),!r;)o=t;return o}finally{r||null===(n=e.return)||void 0===n||n.call(e)}};var is={};is.toArray=void 0,is.toArray=function(t){return Array.from(t)};var as={};as.count=void 0,as.count=function(t){let n=0;for(const e of t)n++;return n};var ss={};ss.countAsync=void 0,ss.countAsync=async function(t){let n=0;for await(const e of t)n++;return n};var cs={groupBy:void 0};const us=za;cs.groupBy=function(t,n){const e=new Map;return(0,us.each)(t,((t,r)=>{const o=n(t,r);e.has(o)||e.set(o,[]),e.get(o).push(t)})),e};var fs={groupByAsync:void 0};const ls=Ra;fs.groupByAsync=async function(t,n){const e=new Map;return await(0,ls.eachAsync)(t,(async(t,r)=>{const o=await n(t,r);e.has(o)||e.set(o,[]),e.get(o).push(t)})),e},function(t){var e=n&&n.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var o=Object.getOwnPropertyDescriptor(n,e);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,o)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(Da,t),r(Ma,t),r(Ra,t),r(za,t),r(Ca,t),r(La,t),r(Ja,t),r(Wa,t),r(Ga,t),r(Ha,t),r(Ka,t),r(Qa,t),r(Xa,t),r(Za,t),r(ts,t),r(es,t),r(rs,t),r(os,t),r($o,t),r(is,t),r(zo,t),r(Vo,t),r(as,t),r(ss,t),r(cs,t),r(fs,t)}(qa),function(t){var e=n&&n.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var o=Object.getOwnPropertyDescriptor(n,e);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,o)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(Ao,t),r(qa,t)}(wo);class ys extends u.CustomError{static[Symbol.hasInstance](t){return z.isError(t)?wo.some(u.getErrorNames(t),(t=>"AbortError"===t)):super[Symbol.hasInstance](t)}}var ds;const vs=null!==(ds=globalThis.AbortSignal)&&void 0!==ds?ds:i;t.AbortController=c,t.AbortError=ys,t.AbortSignal=vs,t.raceAbortSignals=function(t){const n=new c,e=[];for(const o of t)if(o){if(o.aborted){n.abort();break}o.addEventListener("abort",r),e.push(o)}return n.signal;function r(){n.abort(),e.forEach((t=>t.removeEventListener("abort",r)))}},t.timeoutSignal=function(t){const n=new c;return setTimeout((()=>n.abort()),t),n.signal},t.withAbortSignal=async function(t,n){return new Promise((async(e,r)=>{if(t.aborted)return o();t.addEventListener("abort",o);try{e(await n())}catch(t){r(t)}finally{t.removeEventListener("abort",o)}function o(){r(new ys)}}))},Object.defineProperty(t,"__esModule",{value:!0})}));
//# sourceMappingURL=index.umd.min.js.map
{
"name": "extra-abort",
"version": "0.1.3",
"version": "0.1.4",
"description": "",

@@ -42,5 +42,5 @@ "keywords": [],

"devDependencies": {
"@blackglory/wait-for": "^0.4.4",
"@commitlint/cli": "^16.2.3",
"@commitlint/config-conventional": "^16.2.1",
"@blackglory/wait-for": "^0.5.1",
"@commitlint/cli": "^17.1.2",
"@commitlint/config-conventional": "^17.1.0",
"@rollup/plugin-commonjs": "^21.0.2",

@@ -52,5 +52,5 @@ "@rollup/plugin-json": "^4.1.0",

"@types/jest": "^27.4.1",
"@typescript-eslint/eslint-plugin": "^5.15.0",
"@typescript-eslint/parser": "^5.15.0",
"eslint": "^8.11.0",
"@typescript-eslint/eslint-plugin": "^5.40.1",
"@typescript-eslint/parser": "^5.40.1",
"eslint": "^8.25.0",
"extra-fetch": "^1.8.5",

@@ -65,3 +65,3 @@ "husky": "^4.3.8",

"rollup-plugin-terser": "^7.0.2",
"standard-version": "^9.3.2",
"standard-version": "^9.5.0",
"ts-jest": "^27.1.3",

@@ -73,8 +73,8 @@ "tscpaths": "^0.0.9",

"dependencies": {
"@blackglory/errors": "^2.2.1",
"@blackglory/types": "^1.0.0",
"@blackglory/errors": "^2.2.2",
"@blackglory/types": "^1.3.0",
"abort-controller": "^3.0.0",
"iterable-operator": "^1.0.0",
"justypes": "^2.0.0"
"iterable-operator": "^2.1.0",
"justypes": "^3.0.0"
}
}

@@ -19,3 +19,4 @@ # extra-abort

It is not the real `AbortError` of `fetch`,
but you can do `err instance AbortError` like it is.
but you can do `err instance AbortError` like it is,
because it can recognizes other errors that match the pattern of `AbortError`.

@@ -22,0 +23,0 @@ ### timeoutSignal

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc