extra-request 4.1.1 → 4.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es2015/index.min.mjs +2 -2
- package/dist/es2015/index.min.mjs.map +1 -1
- package/dist/es2015/index.mjs +583 -998
- package/dist/es2015/index.mjs.map +1 -1
- package/dist/es2015/index.umd.js +583 -998
- package/dist/es2015/index.umd.js.map +1 -1
- package/dist/es2015/index.umd.min.js +2 -2
- package/dist/es2015/index.umd.min.js.map +1 -1
- package/dist/es2018/index.min.mjs +2 -2
- package/dist/es2018/index.min.mjs.map +1 -1
- package/dist/es2018/index.mjs +583 -998
- package/dist/es2018/index.mjs.map +1 -1
- package/dist/es2018/index.umd.js +583 -998
- package/dist/es2018/index.umd.js.map +1 -1
- package/dist/es2018/index.umd.min.js +2 -2
- package/dist/es2018/index.umd.min.js.map +1 -1
- package/lib/es2015/transformers/append-pathname.js +5 -1
- package/lib/es2015/transformers/append-pathname.js.map +1 -1
- package/lib/es2018/transformers/append-pathname.js +5 -1
- package/lib/es2018/transformers/append-pathname.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},e={},n={fetch:void 0};n.fetch=globalThis.fetch.bind(globalThis);var r={Headers:void 0};r.Headers=globalThis.Headers;var i={Request:void 0};i.Request=globalThis.Request;var o={Response:void 0};o.Response=globalThis.Response;var s={FormData:void 0};s.FormData=globalThis.FormData;var a={AbortController:void 0};a.AbortController=globalThis.AbortController;var c={AbortError:void 0};c.AbortError=globalThis.DOMException;var u={Blob:void 0};u.Blob=globalThis.Blob;var f,l,d,y={};y.EventSource=void 0,y.EventSource=globalThis.EventSource,f=e,l=t&&t.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),d=t&&t.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||l(e,t,n)},d(n,f),d(r,f),d(i,f),d(o,f),d(s,f),d(a,f),d(c,f),d(u,f),d(y,f);var h={},p={},v={},b={},m={},g={},O={},w={};w.go=void 0,w.go=function(t){return t()};var _={};_.goMicrotask=void 0,_.goMicrotask=function(t){return new Promise(((e,n)=>{queueMicrotask((async()=>{try{e(await t())}catch(t){n(t)}}))}))};var j={},A={},E={},P={},S={};S.random=void 0,S.random=function(t,e){return Math.random()*(e-t)+t};var I={};I.randomInt=void 0,I.randomInt=function(t,e){return t=Math.ceil(t),e=Math.floor(e),Math.floor(Math.random()*(e-t))+t};var k={};k.randomIntInclusive=void 0,k.randomIntInclusive=function(t,e){return t=Math.ceil(t),e=Math.floor(e),Math.floor(Math.random()*(e-t+1))+t},function(e){var n=t&&t.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=t&&t.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};r(S,e),r(I,e),r(k,e)}(P),E.calculateExponentialBackoffTimeout=void 0;const R=P;E.calculateExponentialBackoffTimeout=function({baseTimeout:t,retries:e,maxTimeout:n=1/0,factor:r=2,jitter:i=!0}){const o=Math.min(r**e*t,n);return i?(0,R.randomIntInclusive)(0,o):o};var T={};T.setTimeout=void 0,T.setTimeout=function(t,e){const n=globalThis.setTimeout(e,t);return()=>clearTimeout(n)};var x={setSchedule:void 0};const N=T;x.setSchedule=function(t,e){const n=t-Date.now();return(0,N.setTimeout)(n,e)};var C={};C.setInterval=void 0,C.setInterval=function(t,e){const n=globalThis.setInterval(e,t);return()=>clearInterval(n)};var D={setImmediate:void 0};const F=T;D.setImmediate=function(t){if(globalThis.setImmediate){const e=globalThis.setImmediate(t);return()=>clearImmediate(e)}return(0,F.setTimeout)(0,t)};var B={setTimeoutLoop:void 0};const L=T;B.setTimeoutLoop=function(t,e){let n=!1,r=(0,L.setTimeout)(t,(async function i(){await e(),n||(r=(0,L.setTimeout)(t,i))}));return()=>{n=!0,r()}};var U={setDynamicTimeoutLoop:void 0};const M=T;U.setDynamicTimeoutLoop=function(t,e){let n=!1,r=(0,M.setTimeout)(t,(async function i(){const o=Date.now();await e();const s=Date.now()-o;n||(r=(0,M.setTimeout)(Math.max(t-s,0),i))}));return()=>{n=!0,r()}},function(e){var n=t&&t.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=t&&t.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};r(E,e),r(T,e),r(x,e),r(C,e),r(D,e),r(B,e),r(U,e)}(A),j.goMacrotask=void 0;const z=A;j.goMacrotask=function(t){return new Promise(((e,n)=>{(0,z.setImmediate)((async()=>{try{e(await t())}catch(t){n(t)}}))}))},function(e){var n=t&&t.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=t&&t.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};r(w,e),r(_,e),r(j,e)}(O),g.chunkAsync=void 0;const q=O,J=p;g.chunkAsync=function(t,e){return(0,J.assert)(Number.isInteger(e),"The parameter size must be an integer"),(0,J.assert)(e>0,"The parameter size must be greater than 0"),(0,q.go)((async function*(){let n=[];for await(const r of t)n.push(r),n.length>=e&&(yield n,n=[]);n.length&&(yield n)}))};var H={},W={},K={};function $(t){return Array.isArray(t)}K.isntEmptyArray=K.isEmptyArray=K.isntArray=K.isArray=void 0,K.isArray=$,K.isntArray=function(t){return!$(t)},K.isEmptyArray=function(t){return 0===t.length},K.isntEmptyArray=function(t){return 0!==t.length};var Q={},G={};function Z(t){return null===t}G.isntNull=G.isNull=void 0,G.isNull=Z,G.isntNull=function(t){return!Z(t)};var V={};function Y(t){return void 0===t}V.isntUndefined=V.isUndefined=void 0,V.isUndefined=Y,V.isntUndefined=function(t){return!Y(t)};var X={};function tt(t){return"function"==typeof t}X.isntFunction=X.isFunction=void 0,X.isFunction=tt,X.isntFunction=function(t){return!tt(t)},Q.isntAsyncIterable=Q.isAsyncIterable=void 0;const et=G,nt=V,rt=X;function it(t){return(0,et.isntNull)(t)&&(0,nt.isntUndefined)(t)&&(0,rt.isFunction)(t[Symbol.asyncIterator])}Q.isAsyncIterable=it,Q.isntAsyncIterable=function(t){return!it(t)};var ot={};function st(t){return"bigint"==typeof t}ot.isntBigInt=ot.isBigInt=void 0,ot.isBigInt=st,ot.isntBigInt=function(t){return!st(t)};var at={};function ct(t){return"boolean"==typeof t}at.isntBoolean=at.isBoolean=void 0,at.isBoolean=ct,at.isntBoolean=function(t){return!ct(t)};var ut={},ft={};function lt(t){return"string"==typeof t}ft.isntString=ft.isString=void 0,ft.isString=lt,ft.isntString=function(t){return!lt(t)},ut.isntChar=ut.isChar=void 0;const dt=ft;function yt(t){return(0,dt.isString)(t)&&1===t.length}ut.isChar=yt,ut.isntChar=function(t){return!yt(t)};var ht={};function pt(t){return t instanceof Date}ht.isntDate=ht.isDate=void 0,ht.isDate=pt,ht.isntDate=function(t){return!pt(t)};var vt={};vt.inEnum=void 0,vt.inEnum=function(t,e){return Object.values(e).includes(t)};var bt={};function mt(t){return t instanceof Error}bt.isntError=bt.isError=void 0,bt.isError=mt,bt.isntError=function(t){return!mt(t)};var gt={};function Ot(t){return!t}gt.isntFalsy=gt.isFalsy=void 0,gt.isFalsy=Ot,gt.isntFalsy=function(t){return!Ot(t)};var wt={};wt.isntIterable=wt.isIterable=void 0;const _t=G,jt=V,At=X;function Et(t){return(0,_t.isntNull)(t)&&(0,jt.isntUndefined)(t)&&(0,At.isFunction)(t[Symbol.iterator])}wt.isIterable=Et,wt.isntIterable=function(t){return!Et(t)};var Pt={},St={};function It(t){return"number"==typeof t}function kt(t){return Number.isNaN(t)}St.isntNaN=St.isNaN=St.isNegativeInfinity=St.isPositiveInfinity=St.isFinite=St.isntNumber=St.isNumber=void 0,St.isNumber=It,St.isntNumber=function(t){return!It(t)},St.isFinite=function(t){return Number.isFinite(t)},St.isPositiveInfinity=function(t){return t===1/0},St.isNegativeInfinity=function(t){return t===-1/0},St.isNaN=kt,St.isntNaN=function(t){return!kt(t)};var Rt={},Tt="object"==typeof t&&t&&t.Object===Object&&t,xt="object"==typeof self&&self&&self.Object===Object&&self,Nt=(Tt||xt||Function("return this")()).Symbol,Ct=Nt,Dt=Object.prototype,Ft=Dt.hasOwnProperty,Bt=Dt.toString,Lt=Ct?Ct.toStringTag:void 0;var Ut=function(t){var e=Ft.call(t,Lt),n=t[Lt];try{t[Lt]=void 0;var r=!0}catch(t){}var i=Bt.call(t);return r&&(e?t[Lt]=n:delete t[Lt]),i},Mt=Object.prototype.toString;var zt=Ut,qt=function(t){return Mt.call(t)},Jt=Nt?Nt.toStringTag:void 0;var Ht=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Jt&&Jt in Object(t)?zt(t):qt(t)};var Wt=function(t,e){return function(n){return t(e(n))}},Kt=Wt(Object.getPrototypeOf,Object);var $t=Ht,Qt=Kt,Gt=function(t){return null!=t&&"object"==typeof t},Zt=Function.prototype,Vt=Object.prototype,Yt=Zt.toString,Xt=Vt.hasOwnProperty,te=Yt.call(Object);var ee=function(t){if(!Gt(t)||"[object Object]"!=$t(t))return!1;var e=Qt(t);if(null===e)return!0;var n=Xt.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Yt.call(n)==te},ne=t&&t.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Rt.isntEmptyObject=Rt.isEmptyObject=Rt.isntPlainObject=Rt.isPlainObject=Rt.isntObject=Rt.isObject=void 0;const re=ne(ee);function ie(t){return null!==t&&"object"==typeof t}function oe(t){return(0,re.default)(t)}Rt.isObject=ie,Rt.isntObject=function(t){return!ie(t)},Rt.isPlainObject=oe,Rt.isntPlainObject=function(t){return!oe(t)},Rt.isEmptyObject=function(t){return 0===Object.keys(t).length},Rt.isntEmptyObject=function(t){return 0!==Object.keys(t).length},Pt.isntJsonable=Pt.isJsonable=Pt.isntJson=Pt.isJson=void 0;const se=G,ae=at,ce=ft,ue=St,fe=K,le=Rt;function de(t){return(0,se.isNull)(t)||(0,ae.isBoolean)(t)||(0,ce.isString)(t)||(0,ue.isNumber)(t)||(0,fe.isArray)(t)&&t.every(de)||(0,le.isPlainObject)(t)&&Object.values(t).every(de)}Pt.isJson=de,Pt.isntJson=function(t){return!de(t)},Pt.isJsonable=function(t){try{return JSON.stringify(t),!0}catch(t){return!1}},Pt.isntJsonable=function t(e){return!t()};var ye={};ye.isPromiseLike=ye.isntPromiseLike=ye.isntPromise=ye.isPromise=void 0;const he=Rt,pe=X;function ve(t){return t instanceof Promise}function be(t){return(0,he.isObject)(t)&&(0,pe.isFunction)(t.then)}ye.isPromise=ve,ye.isntPromise=function(t){return!ve(t)},ye.isntPromiseLike=function(t){return!be(t)},ye.isPromiseLike=be;var me={};me.isAbsoluteURL=void 0,me.isAbsoluteURL=function(t){try{return new URL(t),!0}catch(t){return!1}};var ge={};function Oe(t){return t instanceof RegExp}ge.isntRegExp=ge.isRegExp=void 0,ge.isRegExp=Oe,ge.isntRegExp=function(t){return!Oe(t)};var we={};function _e(t){return"symbol"==typeof t}we.isntSymbol=we.isSymbol=void 0,we.isSymbol=_e,we.isntSymbol=function(t){return!_e(t)},function(e){var n=t&&t.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=t&&t.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};r(K,e),r(Q,e),r(ot,e),r(at,e),r(ut,e),r(ht,e),r(vt,e),r(bt,e),r(gt,e),r(X,e),r(wt,e),r(Pt,e),r(G,e),r(St,e),r(Rt,e),r(ye,e),r(ft,e),r(V,e),r(me,e),r(ge,e),r(we,e)}(W),H.chunkByAsync=void 0;const je=W;H.chunkByAsync=function(t,e){return(0,je.isAsyncIterable)(t)?async function*(t,e){let n=[],r=0;for await(const i of t)n.push(i),await e(i,r)&&(yield n,n=[]),r++;n.length&&(yield n)}(t,e):async function*(t,e){let n=[],r=0;for(const i of t)n.push(i),await e(i,r)&&(yield n,n=[]),r++;n.length&&(yield n)}(t,e)};var Ae={};Ae.chunkBy=void 0,Ae.chunkBy=function*(t,e){let n=[],r=0;for(const i of t)n.push(i),e(i,r)&&(yield n,n=[]),r++;n.length&&(yield n)};var Ee={chunk:void 0};const Pe=O,Se=p;Ee.chunk=function(t,e){return(0,Se.assert)(Number.isInteger(e),"The parameter size must be an integer"),(0,Se.assert)(e>0,"The parameter size must be greater than 0"),(0,Pe.go)((function*(){let n=[];for(const r of t)n.push(r),n.length>=e&&(yield n,n=[]);n.length&&(yield n)}))};var Ie={concatAsync:void 0};const ke=W,Re=O;Ie.concatAsync=function(t,...e){return(0,Re.go)((async function*(){for(const n of[t,...e])if((0,ke.isAsyncIterable)(n))for await(const t of n)yield t;else for(const t of n)yield t}))};var Te={concat:void 0};const xe=O;Te.concat=function(t,...e){return(0,xe.go)((function*(){for(const n of[t,...e])yield*n}))};var Ne={},Ce={};Ce.copyIterable=Ce.copyAsyncIterable=void 0,Ce.copyAsyncIterable=async function*(t){for await(const e of t)yield e},Ce.copyIterable=function*(t){for(const e of t)yield e},Ne.dropAsync=void 0;const De=O,Fe=Ce,Be=p;Ne.dropAsync=function(t,e){return(0,Be.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Be.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,Fe.copyAsyncIterable)(t):(0,De.go)((async function*(){var n;const r=t[Symbol.asyncIterator]();let i;try{let t;for(;!(({value:t,done:i}=await r.next()),i||e<=0);)e--;for(;!i;)yield t,({value:t,done:i}=await r.next())}finally{i||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}}))};var Le={dropRightAsync:void 0};const Ue=O,Me=Ce,ze=p;Le.dropRightAsync=function(t,e){return(0,ze.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,ze.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,Me.copyAsyncIterable)(t):(0,Ue.go)((async function*(){const n=await async function(t){const e=[];for await(const n of t)e.push(n);return e}(t),r=n.slice(0,-e);for(const t of r)yield t}))};var qe={dropRight:void 0};const Je=O,He=Ce,We=p;qe.dropRight=function(t,e){return(0,We.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,We.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,He.copyIterable)(t):(0,Je.go)((function*(){const n=Array.from(t);yield*n.slice(0,-e)}))};var Ke={dropUntilAsync:void 0};const $e=W;Ke.dropUntilAsync=function(t,e){return(0,$e.isAsyncIterable)(t)?async function*(t,e){var n;const r=t[Symbol.asyncIterator]();let i;try{let t,o=0;for(;!(({value:t,done:i}=await r.next()),i||await e(t,o++)););for(;!i;)yield t,({value:t,done:i}=await r.next())}finally{i||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}}(t,e):async function*(t,e){var n;const r=t[Symbol.iterator]();let i;try{let t,o=0;for(;!(({value:t,done:i}=r.next()),i||await e(t,o++)););for(;!i;)yield t,({value:t,done:i}=r.next())}finally{i||null===(n=r.return)||void 0===n||n.call(r)}}(t,e)};var Qe={};Qe.dropUntil=void 0,Qe.dropUntil=function*(t,e){var n;const r=t[Symbol.iterator]();let i;try{let t,o=0;for(;!(({value:t,done:i}=r.next()),i||e(t,o++)););for(;!i;)yield t,({value:t,done:i}=r.next())}finally{i||null===(n=r.return)||void 0===n||n.call(r)}};var Ge={drop:void 0};const Ze=O,Ve=Ce,Ye=p;Ge.drop=function(t,e){return(0,Ye.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Ye.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,Ve.copyIterable)(t):(0,Ze.go)((function*(){var n;const r=t[Symbol.iterator]();let i;try{let t;for(;!(({value:t,done:i}=r.next()),i||e<=0);)e--;for(;!i;)yield t,({value:t,done:i}=r.next())}finally{i||null===(n=r.return)||void 0===n||n.call(r)}}))};var Xe={filterAsync:void 0};const tn=W;Xe.filterAsync=function(t,e){return(0,tn.isAsyncIterable)(t)?async function*(t,e){let n=0;for await(const r of t)await e(r,n)&&(yield r),n++}(t,e):async function*(t,e){let n=0;for(const r of t)await e(r,n)&&(yield r),n++}(t,e)};var en={};en.filter=void 0,en.filter=function*(t,e){let n=0;for(const r of t)e(r,n)&&(yield r),n++};var nn={},rn={},on={flattenByAsync:void 0};const sn=W;async function*an(t,e,n){for(const r of t)cn(r)&&await e(r,n)?yield*an(r,e,n+1):yield r}function cn(t){return(0,sn.isIterable)(t)&&(0,sn.isntChar)(t)}on.flattenByAsync=function(t,e){return(0,sn.isAsyncIterable)(t)?async function*(t,e){const n=1;for await(const r of t)cn(r)&&await e(r,n)?yield*an(r,e,n+1):yield r}(t,e):function(t,e){return an(t,e,1)}(t,e)},rn.flattenDeepAsync=void 0;const un=on,fn=p;rn.flattenDeepAsync=function(t,e=1/0){return(0,fn.assert)(e===1/0||Number.isInteger(e),"The parameter depth must be an integer"),(0,fn.assert)(e>=0,"The parameter depth must be greater than or equal to 0"),(0,un.flattenByAsync)(t,((t,n)=>n<=e))},nn.flattenAsync=void 0;const ln=rn;nn.flattenAsync=function(t){return(0,ln.flattenDeepAsync)(t,1)};var dn={flattenBy:void 0};const yn=W;function*hn(t,e,n){for(const i of t)(0,yn.isIterable)(r=i)&&(0,yn.isntChar)(r)&&e(i,n)?yield*hn(i,e,n+1):yield i;var r}dn.flattenBy=function(t,e){return hn(t,e,1)};var pn={flattenDeep:void 0};const vn=dn,bn=p;pn.flattenDeep=function(t,e=1/0){return(0,bn.assert)(e===1/0||Number.isInteger(e),"The parameter depth must be an integer"),(0,bn.assert)(e>=0,"The parameter depth must be greater than or equal to 0"),(0,vn.flattenBy)(t,((t,n)=>n<=e))};var mn={flatten:void 0};const gn=pn;mn.flatten=function(t){return(0,gn.flattenDeep)(t,1)};var On={mapAsync:void 0};const wn=W;On.mapAsync=function(t,e){return(0,wn.isAsyncIterable)(t)?async function*(t,e){let n=0;for await(const r of t)yield await e(r,n),n++}(t,e):async function*(t,e){let n=0;for(const r of t)yield await e(r,n),n++}(t,e)};var _n={};_n.map=void 0,_n.map=function*(t,e){let n=0;for(const r of t)yield e(r,n),n++};var jn={repeatAsync:void 0};const An=O,En=p;jn.repeatAsync=function(t,e){return(0,En.assert)(e===1/0||Number.isInteger(e),"The parameter times must be an integer"),(0,En.assert)(e>=0,"The parameter times must be greater than or equal to 0"),e===1/0&&function(){if("production"===process.env.NODE_ENV)return;console.warn("When iterable has no elements and times is Infinity, repeat() will be in dead loop")}(),(0,An.go)((async function*(){const n=[];if(e>0){for await(const e of t)yield e,n.push(e);e--}for(;e>0;)yield*n,e--}))};var Pn={repeat:void 0};const Sn=O,In=p;Pn.repeat=function(t,e){return(0,In.assert)(e===1/0||Number.isInteger(e),"The parameter times must be an integer"),(0,In.assert)(e>=0,"The parameter times must be greater than or equal to 0"),e===1/0&&function(){if("production"===process.env.NODE_ENV)return;console.warn("When iterable has no elements and times is Infinity, repeat() will be in dead loop")}(),(0,Sn.go)((function*(){const n=[];if(e>0){for(const e of t)yield e,n.push(e);e--}for(;e>0;)yield*n,e--}))};var kn={sliceAsync:void 0};const Rn=O,Tn=p;kn.sliceAsync=function(t,e,n=1/0){return(0,Tn.assert)(Number.isInteger(e),"The parameter start must be an integer"),(0,Tn.assert)(e>=0,"The parameter start must be greater than or equal to 0"),(0,Tn.assert)(Number.isInteger(n),"The parameter end must be an integer"),(0,Tn.assert)(n>=e,"The parameter end must be greater than or equal to start"),(0,Rn.go)((async function*(){let r=0;for await(const i of t){if(r>=n)break;r>=e&&(yield i),r++}}))};var xn={slice:void 0};const Nn=O,Cn=p;xn.slice=function(t,e,n=1/0){return(0,Cn.assert)(Number.isInteger(e),"The parameter start must be an integer"),(0,Cn.assert)(e>=0,"The parameter start must be greater than or equal to 0"),(0,Cn.assert)(Number.isInteger(n),"The parameter end must be an integer"),(0,Cn.assert)(n>=e,"The parameter end must be greater than or equal to start"),(0,Nn.go)((function*(){let r=0;for(const i of t){if(r>=n)break;r>=e&&(yield i),r++}}))};var Dn={};Dn.splitAsync=void 0,Dn.splitAsync=async function*(t,e){let n=[];for await(const r of t)r===e?(yield n,n=[]):n.push(r);yield n};var Fn={splitByAsync:void 0};const Bn=W;Fn.splitByAsync=function(t,e){return(0,Bn.isAsyncIterable)(t)?async function*(t,e){let n=[],r=0;for await(const i of t)await e(i,r)?(yield n,n=[]):n.push(i),r++;yield n}(t,e):async function*(t,e){let n=[],r=0;for(const i of t)await e(i,r)?(yield n,n=[]):n.push(i),r++;yield n}(t,e)};var Ln={};Ln.splitBy=void 0,Ln.splitBy=function*(t,e){let n=[],r=0;for(const i of t)e(i,r)?(yield n,n=[]):n.push(i),r++;yield n};var Un={};Un.split=void 0,Un.split=function*(t,e){let n=[];for(const r of t)r===e?(yield n,n=[]):n.push(r);yield n};var Mn={takeAsync:void 0};const zn=O,qn=p;Mn.takeAsync=function(t,e){return(0,qn.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,qn.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,zn.go)((async function*(){if(0!==e)for await(const n of t)if(yield n,0===--e)break}))};var Jn={takeRightAsync:void 0};const Hn=O,Wn=p;Jn.takeRightAsync=function(t,e){return(0,Wn.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Wn.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,Hn.go)((async function*(){var n;const r=t[Symbol.asyncIterator]();let i;try{const t=[];let o;for(;({value:o,done:i}=await r.next()),!i;)t.push(o),t.length>e&&t.shift();yield*t}finally{i||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}}))};var Kn={takeRight:void 0};const $n=O,Qn=p;Kn.takeRight=function(t,e){return(0,Qn.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Qn.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,$n.go)((function*(){var n;const r=t[Symbol.iterator]();let i;try{const t=[];let o;for(;({value:o,done:i}=r.next()),!i;)t.push(o),t.length>e&&t.shift();yield*t}finally{i||null===(n=r.return)||void 0===n||n.call(r)}}))};var Gn={takeUntilAsync:void 0};const Zn=W;Gn.takeUntilAsync=function(t,e){return(0,Zn.isAsyncIterable)(t)?async function*(t,e){let n=0;for await(const r of t){if(await e(r,n))break;yield r,n++}}(t,e):async function*(t,e){let n=0;for(const r of t){if(await e(r,n))break;yield r,n++}}(t,e)};var Vn={};Vn.takeUntil=void 0,Vn.takeUntil=function*(t,e){let n=0;for(const r of t){if(e(r,n))break;yield r,n++}};var Yn={take:void 0};const Xn=O,tr=p;Yn.take=function(t,e){return(0,tr.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,tr.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,Xn.go)((function*(){if(0!==e)for(const n of t)if(yield n,0===--e)break}))};var er={tapAsync:void 0};const nr=W;er.tapAsync=function(t,e){return(0,nr.isAsyncIterable)(t)?async function*(t,e){let n=0;for await(const r of t)await e(r,n),yield r,n++}(t,e):async function*(t,e){let n=0;for(const r of t)await e(r,n),yield r,n++}(t,e)};var rr={};rr.tap=void 0,rr.tap=function*(t,e){let n=0;for(const r of t)e(r,n),yield r,n++};var ir={};ir.toAsyncIterable=void 0,ir.toAsyncIterable=async function*(t){for(const e of t)yield e};var or={};or.transformAsync=void 0,or.transformAsync=async function*(t,e){yield*e(t)};var sr={};sr.transform=void 0,sr.transform=function*(t,e){yield*e(t)};var ar={};ar.uniqAsync=void 0,ar.uniqAsync=async function*(t){const e=new Set;for await(const n of t)e.has(n)||(yield n,e.add(n))};var cr={uniqByAsync:void 0};const ur=W;cr.uniqByAsync=function(t,e){return(0,ur.isAsyncIterable)(t)?async function*(t,e){const n=new Set;let r=0;for await(const i of t){const t=await e(i,r);n.has(t)||(yield i,n.add(t)),r++}}(t,e):async function*(t,e){const n=new Set;let r=0;for(const i of t){const t=await e(i,r);n.has(t)||(yield i,n.add(t)),r++}}(t,e)};var fr={};fr.uniqBy=void 0,fr.uniqBy=function*(t,e){const n=new Set;let r=0;for(const i of t){const t=e(i,r);n.has(t)||(yield i,n.add(t)),r++}};var lr={};lr.uniq=void 0,lr.uniq=function*(t){const e=new Set;for(const n of t)e.has(n)||(yield n,e.add(n))};var dr={zipAsync:void 0};const yr=W;var hr;!function(t){t[t.Sync=0]="Sync",t[t.Async=1]="Async"}(hr||(hr={})),dr.zipAsync=function(t,...e){return async function*(...t){var e,n,r,i;const o=t.length,s=t.map((t=>(0,yr.isAsyncIterable)(t)?[hr.Async,t[Symbol.asyncIterator]()]:[hr.Sync,t[Symbol.iterator]()])),a=s.map((()=>!1));try{for(;;){const t=new Array(o);for(let e=0;e<o;e++){const[n,r]=s[e];let i;if(i=n===hr.Async?await r.next():r.next(),i.done)return void(a[e]=!0);t[e]=i.value}yield t}}finally{const t=s.filter(((t,e)=>!a[e]));for(const[o,s]of t)o===hr.Async?await(null===(n=(e=s).return)||void 0===n?void 0:n.call(e)):null===(i=(r=s).return)||void 0===i||i.call(r)}}(t,...e)};var pr={};pr.zip=void 0,pr.zip=function(t,...e){return function*(...t){const e=t.length,n=t.map((t=>t[Symbol.iterator]())),r=n.map((()=>!1));try{for(;;){const t=new Array(e);for(let i=0;i<e;i++){const{value:e,done:o}=n[i].next();if(o)return void(r[i]=!0);t[i]=e}yield t}}finally{n.filter(((t,e)=>!r[e])).forEach((t=>{var e;return null===(e=t.return)||void 0===e?void 0:e.call(t)}))}}(t,...e)},function(e){var n=t&&t.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=t&&t.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};r(g,e),r(H,e),r(Ae,e),r(Ee,e),r(Ie,e),r(Te,e),r(Ne,e),r(Le,e),r(qe,e),r(Ke,e),r(Qe,e),r(Ge,e),r(Xe,e),r(en,e),r(nn,e),r(on,e),r(dn,e),r(rn,e),r(pn,e),r(mn,e),r(On,e),r(_n,e),r(jn,e),r(Pn,e),r(kn,e),r(xn,e),r(Dn,e),r(Fn,e),r(Ln,e),r(Un,e),r(Mn,e),r(Jn,e),r(Kn,e),r(Gn,e),r(Vn,e),r(Yn,e),r(er,e),r(rr,e),r(ir,e),r(or,e),r(sr,e),r(ar,e),r(cr,e),r(fr,e),r(lr,e),r(dr,e),r(pr,e)}(m);var vr={},br={};br.consume=void 0,br.consume=function(t,e){return e(t)};var mr={eachAsync:void 0};const gr=W;mr.eachAsync=function(t,e){return(0,gr.isAsyncIterable)(t)?async function(t,e){let n=0;for await(const r of t)await e(r,n),n++}(t,e):async function(t,e){let n=0;for(const r of t)await e(r,n),n++}(t,e)};var Or={};Or.each=void 0,Or.each=function(t,e){let n=0;for(const r of t)e(r,n),n++};var wr={everyAsync:void 0};const _r=W;wr.everyAsync=function(t,e){return(0,_r.isAsyncIterable)(t)?async function(t,e){let n=0;for await(const r of t){if(!await e(r,n))return!1;n++}return!0}(t,e):async function(t,e){let n=0;for(const r of t){if(!await e(r,n))return!1;n++}return!0}(t,e)};var jr={};jr.every=void 0,jr.every=function(t,e){let n=0;for(const r of t){if(!e(r,n))return!1;n++}return!0};var Ar={findAsync:void 0};const Er=W;Ar.findAsync=function(t,e){return(0,Er.isAsyncIterable)(t)?async function(t,e){let n=0;for await(const r of t){if(await e(r,n))return r;n++}return}(t,e):async function(t,e){let n=0;for(const r of t){if(await e(r,n))return r;n++}return}(t,e)};var Pr={};Pr.find=void 0,Pr.find=function(t,e){let n=0;for(const r of t){if(e(r,n))return r;n++}};var Sr={};Sr.firstAsync=void 0,Sr.firstAsync=async function(t){for await(const e of t)return e};var Ir={};Ir.first=void 0,Ir.first=function(t){for(const e of t)return e};var kr={};kr.includesAsync=void 0,kr.includesAsync=async function(t,e){for await(const n of t)if(n===e)return!0;return!1};var Rr={};Rr.includes=void 0,Rr.includes=function(t,e){for(const n of t)if(n===e)return!0;return!1};var Tr={};Tr.matchAsync=void 0,Tr.matchAsync=async function(t,e){const n=e.length;let r=0;for await(const i of t)if(i===e[r]&&r++,r===n)return!0;return!1};var xr={};xr.match=void 0,xr.match=function(t,e){const n=e.length;let r=0;for(const i of t)if(i===e[r]&&r++,r===n)return!0;return!1};var Nr={reduceAsync:void 0};const Cr=W;Nr.reduceAsync=function(t,e,n){return(0,Cr.isUndefined)(n)?function(t,e){return(0,Cr.isAsyncIterable)(t)?n(t):r(t);async function n(t){var n;const r=t[Symbol.asyncIterator]();let i;try{let t,s=await o(r),a=1;for(;({value:t,done:i}=await r.next()),!i;)s=await e(s,t,a++);return s}finally{i||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}async function o(t){const e=await t.next();if(e.done)throw i=!0,new Error("Reduce of empty iterable with no initial value");return e.value}}async function r(t){var n;const r=t[Symbol.iterator]();let i;try{let t,s=o(r),a=1;for(;({value:t,done:i}=r.next()),!i;)s=await e(s,t,a++);return s}finally{i||null===(n=r.return)||void 0===n||n.call(r)}function o(t){const e=t.next();if(e.done)throw i=!0,new Error("Reduce of empty iterable with no initial value");return e.value}}}(t,e):function(t,e,n){return(0,Cr.isAsyncIterable)(t)?i(t):r(t);async function r(t){let r=n,i=0;for(const n of t)r=await e(r,n,i++);return r}async function i(t){let r=n,i=0;for await(const n of t)r=await e(r,n,i++);return r}}(t,e,n)};var Dr={reduce:void 0};const Fr=W;Dr.reduce=function(t,e,n){return(0,Fr.isUndefined)(n)?function(t,e){var n;const r=t[Symbol.iterator]();let i;try{let t,s=o(r),a=1;for(;({value:t,done:i}=r.next()),!i;)s=e(s,t,a++);return s}finally{i||null===(n=r.return)||void 0===n||n.call(r)}function o(t){const e=t.next();if(e.done)throw i=!0,new Error("Reduce of empty iterable with no initial value");return e.value}}(t,e):function(t,e,n){let r=n,i=0;for(const n of t)r=e(r,n,i++);return r}(t,e,n)};var Br={someAsync:void 0};const Lr=W;Br.someAsync=function(t,e){return(0,Lr.isAsyncIterable)(t)?async function(t,e){let n=0;for await(const r of t){if(await e(r,n))return!0;n++}return!1}(t,e):async function(t,e){let n=0;for(const r of t){if(await e(r,n))return!0;n++}return!1}(t,e)};var Ur={};Ur.some=void 0,Ur.some=function(t,e){let n=0;for(const r of t){if(e(r,n))return!0;n++}return!1};var Mr={};Mr.lastAsync=void 0,Mr.lastAsync=async function(t){var e;const n=t[Symbol.asyncIterator]();let r;try{let t,i;for(;({value:t,done:r}=await n.next()),!r;)i=t;return i}finally{r||await(null===(e=n.return)||void 0===e?void 0:e.call(n))}};var zr={};zr.last=void 0,zr.last=function(t){var e;const n=t[Symbol.iterator]();let r;try{let t,i;for(;({value:t,done:r}=n.next()),!r;)i=t;return i}finally{r||null===(e=n.return)||void 0===e||e.call(n)}};var qr={toArrayAsync:void 0};const Jr=br;qr.toArrayAsync=function(t){return(0,Jr.consume)(t,(async t=>{const e=[];for await(const n of t)e.push(n);return e}))};var Hr={toArray:void 0};const Wr=br;Hr.toArray=function(t){return(0,Wr.consume)(t,(t=>Array.from(t)))};var Kr={toSetAsync:void 0};const $r=br;Kr.toSetAsync=function(t){return(0,$r.consume)(t,(async t=>{const e=new Set;for await(const n of t)e.add(n);return e}))};var Qr={toSet:void 0};const Gr=br;Qr.toSet=function(t){return(0,Gr.consume)(t,(t=>new Set(t)))};var Zr={};Zr.count=void 0,Zr.count=function(t){let e=0;for(const n of t)e++;return e};var Vr={};Vr.countAsync=void 0,Vr.countAsync=async function(t){let e=0;for await(const n of t)e++;return e};var Yr={groupBy:void 0};const Xr=Or;Yr.groupBy=function(t,e){const n=new Map;return(0,Xr.each)(t,((t,r)=>{const i=e(t,r);n.has(i)||n.set(i,[]),n.get(i).push(t)})),n};var ti={groupByAsync:void 0};const ei=mr;ti.groupByAsync=async function(t,e){const n=new Map;return await(0,ei.eachAsync)(t,(async(t,r)=>{const i=await e(t,r);n.has(i)||n.set(i,[]),n.get(i).push(t)})),n},function(e){var n=t&&t.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=t&&t.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};r(br,e),r(mr,e),r(Or,e),r(wr,e),r(jr,e),r(Ar,e),r(Pr,e),r(Sr,e),r(Ir,e),r(kr,e),r(Rr,e),r(Tr,e),r(xr,e),r(Nr,e),r(Dr,e),r(Br,e),r(Ur,e),r(Mr,e),r(zr,e),r(qr,e),r(Hr,e),r(Kr,e),r(Qr,e),r(Zr,e),r(Vr,e),r(Yr,e),r(ti,e)}(vr),function(e){var n=t&&t.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=t&&t.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};r(m,e),r(vr,e)}(b);var ni={},ri={};ri.traverseErrorPrototypeChain=void 0,ri.traverseErrorPrototypeChain=function*(t){let e=t;for(;(e=Object.getPrototypeOf(e))&&(yield e,e!==Error.prototype););},ni.getErrorNames=void 0;const ii=W,oi=ri;ni.getErrorNames=function*(t){var e;if((0,ii.isError)(t))for(const n of(0,oi.traverseErrorPrototypeChain)(t))(null===(e=n.constructor)||void 0===e?void 0:e.name)&&(yield n.constructor.name);else yield t.name,yield*t.ancestors};var si={isSerializableError:void 0};const ai=W;si.isSerializableError=function(t){return(0,ai.isObject)(t)&&(0,ai.isString)(t.name)&&(0,ai.isString)(t.message)&&((0,ai.isString)(t.stack)||(0,ai.isNull)(t.stack))&&(0,ai.isArray)(t.ancestors)&&t.ancestors.every(ai.isString)},v.CustomError=void 0;const ci=b,ui=ni,fi=W,li=si;class di extends Error{get name(){var t,e;return null!==(e=null!==(t=(0,ci.first)((0,ui.getErrorNames)(this)))&&void 0!==t?t:di.name)&&void 0!==e?e:"CustomError"}static[Symbol.hasInstance](t){var e;if((0,fi.isError)(t)||(0,li.isSerializableError)(t)){const n=[null!==(e=this.prototype.constructor.name)&&void 0!==e?e:this.name,...(0,ui.getErrorNames)(this.prototype)].reverse(),r=(0,ci.toArray)((0,ui.getErrorNames)(t)).reverse();return n.every(((t,e)=>t===r[e]))}return!1}}v.CustomError=di;var yi={AssertionError:void 0};const hi=v;class pi extends hi.CustomError{}yi.AssertionError=pi;var vi={normalize:void 0};const bi=ni,mi=b;vi.normalize=function(t){var e;const[n,...r]=(0,mi.toArray)((0,bi.getErrorNames)(t));return{name:n,ancestors:r,message:t.message,stack:null!==(e=t.stack)&&void 0!==e?e:null}};var gi={},Oi={},wi={};wi.pass=void 0,wi.pass=function(){},function(e){var n=t&&t.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=t&&t.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};r(wi,e)}(Oi),gi.hydrate=void 0;const _i=Oi;function ji(t,e){const n=function(){(0,_i.pass)()};return(n.prototype=Object.create(t.prototype)).constructor=n,Object.defineProperty(n,"name",{value:e}),n}gi.hydrate=function(t){var e;const n=[t.name,...t.ancestors].slice(0,-1).reverse();let r=Error;for(const t of n)r=ji(r,t);const i=new r;return i.name=t.name,i.message=t.message,i.stack=null!==(e=t.stack)&&void 0!==e?e:void 0,i};var Ai={assert:void 0};const Ei=yi;Ai.assert=function(t,e){if(!t)throw new Ei.AssertionError(e)},function(e){var n=t&&t.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=t&&t.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};r(v,e),r(yi,e),r(si,e),r(vi,e),r(gi,e),r(Ai,e),r(ni,e),r(ri,e)}(p);var Pi={},Si={};Si.log=void 0,Si.log=function(...t){return console.log(...t),t[t.length-1]};var Ii={},ki={};ki.elapsed=ki.now=void 0,ki.now=function(){return performance.now()},ki.elapsed=function(t,e){return e-t+"ms"};var Ri={},Ti={};function xi(t){return Array.isArray(t)}Ti.isntEmptyArray=Ti.isEmptyArray=Ti.isntArray=Ti.isArray=void 0,Ti.isArray=xi,Ti.isntArray=function(t){return!xi(t)},Ti.isEmptyArray=function(t){return 0===t.length},Ti.isntEmptyArray=function(t){return 0!==t.length};var Ni={},Ci={};function Di(t){return null===t}Ci.isntNull=Ci.isNull=void 0,Ci.isNull=Di,Ci.isntNull=function(t){return!Di(t)};var Fi={};function Bi(t){return void 0===t}Fi.isntUndefined=Fi.isUndefined=void 0,Fi.isUndefined=Bi,Fi.isntUndefined=function(t){return!Bi(t)};var Li={};function Ui(t){return"function"==typeof t}Li.isntFunction=Li.isFunction=void 0,Li.isFunction=Ui,Li.isntFunction=function(t){return!Ui(t)},Ni.isntAsyncIterable=Ni.isAsyncIterable=void 0;const Mi=Ci,zi=Fi,qi=Li;function Ji(t){return(0,Mi.isntNull)(t)&&(0,zi.isntUndefined)(t)&&(0,qi.isFunction)(t[Symbol.asyncIterator])}Ni.isAsyncIterable=Ji,Ni.isntAsyncIterable=function(t){return!Ji(t)};var Hi={};function Wi(t){return"bigint"==typeof t}Hi.isntBigInt=Hi.isBigInt=void 0,Hi.isBigInt=Wi,Hi.isntBigInt=function(t){return!Wi(t)};var Ki={};function $i(t){return"boolean"==typeof t}Ki.isntBoolean=Ki.isBoolean=void 0,Ki.isBoolean=$i,Ki.isntBoolean=function(t){return!$i(t)};var Qi={},Gi={};function Zi(t){return"string"==typeof t}Gi.isntString=Gi.isString=void 0,Gi.isString=Zi,Gi.isntString=function(t){return!Zi(t)},Qi.isntChar=Qi.isChar=void 0;const Vi=Gi;function Yi(t){return(0,Vi.isString)(t)&&1===t.length}Qi.isChar=Yi,Qi.isntChar=function(t){return!Yi(t)};var Xi={};function to(t){return t instanceof Date}Xi.isntDate=Xi.isDate=void 0,Xi.isDate=to,Xi.isntDate=function(t){return!to(t)};var eo={};eo.inEnum=void 0,eo.inEnum=function(t,e){return Object.values(e).includes(t)};var no={};function ro(t){return t instanceof Error}no.isntError=no.isError=void 0,no.isError=ro,no.isntError=function(t){return!ro(t)};var io={};function oo(t){return!t}io.isntFalsy=io.isFalsy=void 0,io.isFalsy=oo,io.isntFalsy=function(t){return!oo(t)};var so={};so.isntIterable=so.isIterable=void 0;const ao=Ci,co=Fi,uo=Li;function fo(t){return(0,ao.isntNull)(t)&&(0,co.isntUndefined)(t)&&(0,uo.isFunction)(t[Symbol.iterator])}so.isIterable=fo,so.isntIterable=function(t){return!fo(t)};var lo={},yo={};function ho(t){return"number"==typeof t}function po(t){return Number.isNaN(t)}yo.isntNaN=yo.isNaN=yo.isNegativeInfinity=yo.isPositiveInfinity=yo.isFinite=yo.isntNumber=yo.isNumber=void 0,yo.isNumber=ho,yo.isntNumber=function(t){return!ho(t)},yo.isFinite=function(t){return Number.isFinite(t)},yo.isPositiveInfinity=function(t){return t===1/0},yo.isNegativeInfinity=function(t){return t===-1/0},yo.isNaN=po,yo.isntNaN=function(t){return!po(t)};var vo={},bo=t&&t.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};vo.isntEmptyObject=vo.isEmptyObject=vo.isntPlainObject=vo.isPlainObject=vo.isntObject=vo.isObject=void 0;const mo=bo(ee);function go(t){return null!==t&&"object"==typeof t}function Oo(t){return(0,mo.default)(t)}vo.isObject=go,vo.isntObject=function(t){return!go(t)},vo.isPlainObject=Oo,vo.isntPlainObject=function(t){return!Oo(t)},vo.isEmptyObject=function(t){return 0===Object.keys(t).length},vo.isntEmptyObject=function(t){return 0!==Object.keys(t).length},lo.isntJsonable=lo.isJsonable=lo.isntJson=lo.isJson=void 0;const wo=Ci,_o=Ki,jo=Gi,Ao=yo,Eo=Ti,Po=vo;function So(t){return(0,wo.isNull)(t)||(0,_o.isBoolean)(t)||(0,jo.isString)(t)||(0,Ao.isNumber)(t)||(0,Eo.isArray)(t)&&t.every(So)||(0,Po.isPlainObject)(t)&&Object.values(t).every(So)}lo.isJson=So,lo.isntJson=function(t){return!So(t)},lo.isJsonable=function(t){try{return JSON.stringify(t),!0}catch(t){return!1}},lo.isntJsonable=function t(e){return!t()};var Io={};Io.isPromiseLike=Io.isntPromiseLike=Io.isntPromise=Io.isPromise=void 0;const ko=vo,Ro=Li;function To(t){return t instanceof Promise}function xo(t){return(0,ko.isObject)(t)&&(0,Ro.isFunction)(t.then)}Io.isPromise=To,Io.isntPromise=function(t){return!To(t)},Io.isntPromiseLike=function(t){return!xo(t)},Io.isPromiseLike=xo;var No={};No.isAbsoluteURL=void 0,No.isAbsoluteURL=function(t){try{return new URL(t),!0}catch(t){return!1}};var Co={};function Do(t){return t instanceof RegExp}Co.isntRegExp=Co.isRegExp=void 0,Co.isRegExp=Do,Co.isntRegExp=function(t){return!Do(t)};var Fo={};function Bo(t){return"symbol"==typeof t}Fo.isntSymbol=Fo.isSymbol=void 0,Fo.isSymbol=Bo,Fo.isntSymbol=function(t){return!Bo(t)},function(e){var n=t&&t.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=t&&t.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};r(Ti,e),r(Ni,e),r(Hi,e),r(Ki,e),r(Qi,e),r(Xi,e),r(eo,e),r(no,e),r(io,e),r(Li,e),r(so,e),r(lo,e),r(Ci,e),r(yo,e),r(vo,e),r(Io,e),r(Gi,e),r(Fi,e),r(No,e),r(Co,e),r(Fo,e)}(Ri),Ii.time=void 0;const Lo=ki,Uo=Ri;Ii.time=function(t,e){const n=(0,Lo.now)(),r=e();if((0,Uo.isPromiseLike)(r))return r.then((()=>{const e=(0,Lo.now)();return console.log(t,(0,Lo.elapsed)(n,e)),r}));{const e=(0,Lo.now)();return console.log(t,(0,Lo.elapsed)(n,e)),r}};var Mo={timeFunction:void 0};const zo=ki;Mo.timeFunction=function(t,e){return function(...n){const r=(0,zo.now)(),i=e(...n),o=(0,zo.now)();return console.log(t,(0,zo.elapsed)(r,o)),i}};var qo={timeAsyncFunction:void 0};const Jo=ki;qo.timeAsyncFunction=function(t,e){return async function(...n){const r=(0,Jo.now)(),i=await e(...n),o=(0,Jo.now)();return console.log(t,(0,Jo.elapsed)(r,o)),i}};var Ho={},Wo={},Ko={};Ko.go=void 0,Ko.go=function(t){return t()};var $o={};$o.goMicrotask=void 0,$o.goMicrotask=function(t){return new Promise(((e,n)=>{queueMicrotask((async()=>{try{e(await t())}catch(t){n(t)}}))}))};var Qo={goMacrotask:void 0};const Go=A;Qo.goMacrotask=function(t){return new Promise(((e,n)=>{(0,Go.setImmediate)((async()=>{try{e(await t())}catch(t){n(t)}}))}))},function(e){var n=t&&t.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=t&&t.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};r(Ko,e),r($o,e),r(Qo,e)}(Wo),Ho.group=void 0;const Zo=Wo,Vo=Ri;Ho.group=function(...t){const[e,n]=(0,Zo.go)((()=>{if(1===t.length){const[e]=t;return[void 0,e]}{const[e,n]=t;return[e,n]}}));(0,Vo.isUndefined)(e)?console.group():console.group(e);const r=n();return console.groupEnd(),r},function(e){var n=t&&t.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=t&&t.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};r(Si,e),r(Ii,e),r(Mo,e),r(qo,e),r(Ho,e)}(Pi);var Yo={},Xo={};Xo.lazy=void 0,Xo.lazy=function(t){let e,n=!1;return function(){return n||(e=t(),n=!0),e}};var ts={lazyFunction:void 0};const es=Xo;ts.lazyFunction=function(t){const e=(0,es.lazy)(t);return(...t)=>e()(...t)};var ns={lazyAsyncFunction:void 0};const rs=Xo;ns.lazyAsyncFunction=function(t){const e=(0,rs.lazy)(t);return async(...t)=>(await e())(...t)};var is={};is.lazyStatic=is.withLazyStatic=void 0;const os=[];is.withLazyStatic=function(t){const e=[];return(...n)=>{os.push({cache:e,index:0});try{return t(...n)}finally{os.pop()}}},is.lazyStatic=function(t,e=[]){if(os.length){const r=os[os.length-1],i=r.index++;if(i===r.cache.length)n();else{const o=r.cache[i].deps;e.length===o.length?e.some(((t,e)=>t!==o[e]))&&n():n()}return r.cache[i].value;function n(){r.cache[i]=null,r.cache[i]={value:t(),deps:Array.from(e)}}}throw new Error("lazyStatic can only be called in the function wrapped by withlazyStatic.")},function(e){var n=t&&t.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=t&&t.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};r(Xo,e),r(ts,e),r(ns,e),r(is,e)}(Yo);var ss={},as={};as.pass=void 0,as.pass=function(){};var cs={};function us(...t){return ps("GET",...t)}function fs(...t){return ps("HEAD",...t)}function ls(...t){return ps("POST",...t)}function ds(...t){return ps("PUT",...t)}function ys(...t){return ps("PATCH",...t)}function hs(...t){return ps("DELETE",...t)}function ps(t,...n){const r=n.reduce(((t,e)=>h.isFunction(e)?e(t):t),{url:new URL("http://localhost"),headers:new e.Headers}),i=new e.Headers(r.headers);return new e.Request(r.url.href,{method:t,headers:i,signal:r.signal,body:r.payload,keepalive:r.keepalive})}function vs(...t){return e=>{const n=new URL(t.reduce(((t,e)=>new URL(e,t).href)));return Object.assign(Object.assign({},e),{url:n})}}function bs(t){return n=>{const r=new e.Headers(n.headers);return r.set("Content-Type","application/x-www-form-urlencoded"),Object.assign(Object.assign({},n),{headers:r,payload:t})}}function ms(t){return n=>{const r=new e.Headers(n.headers);return r.set("Content-Type","application/json"),Object.assign(Object.assign({},n),{headers:r,payload:JSON.stringify(t)})}}cs.passAsync=void 0,cs.passAsync=async function(){},function(e){var n=t&&t.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=t&&t.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};r(as,e),r(cs,e)}(ss),function(t){t.isntNumber=t.isntNull=t.isntJson=t.isntIterable=t.isntFunction=t.isntFalsy=t.isntError=t.isntEmptyObject=t.isntEmptyArray=t.isntDate=t.isntChar=t.isntBoolean=t.isntBigInt=t.isntAsyncIterable=t.isntArray=t.isSymbol=t.isRegExp=t.isUndefined=t.isString=t.isPromiseLike=t.isPromise=t.isPlainObject=t.isObject=t.isntNaN=t.isNaN=t.isNegativeInfinity=t.isPositiveInfinity=t.isFinite=t.isNumber=t.isNull=t.isJson=t.isIterable=t.isFunction=t.isFalsy=t.isError=t.isEmptyObject=t.isEmptyArray=t.isDate=t.isChar=t.isBoolean=t.isBigInt=t.isAsyncIterable=t.isArray=t.toArrayAsync=t.toArray=t.pass=t.lazy=t.log=t.go=t.assert=void 0,t.isntSymbol=t.isntRegExp=t.isntUndefined=t.isntString=t.isntPromiseLike=t.isntPromise=t.isntPlainObject=t.isntObject=void 0;var e=p;Object.defineProperty(t,"assert",{enumerable:!0,get:function(){return e.assert}});var n=O;Object.defineProperty(t,"go",{enumerable:!0,get:function(){return n.go}});var r=Pi;Object.defineProperty(t,"log",{enumerable:!0,get:function(){return r.log}});var i=Yo;Object.defineProperty(t,"lazy",{enumerable:!0,get:function(){return i.lazy}});var o=ss;Object.defineProperty(t,"pass",{enumerable:!0,get:function(){return o.pass}});var s=b;Object.defineProperty(t,"toArray",{enumerable:!0,get:function(){return s.toArray}}),Object.defineProperty(t,"toArrayAsync",{enumerable:!0,get:function(){return s.toArrayAsync}});var a=W;Object.defineProperty(t,"isArray",{enumerable:!0,get:function(){return a.isArray}}),Object.defineProperty(t,"isAsyncIterable",{enumerable:!0,get:function(){return a.isAsyncIterable}}),Object.defineProperty(t,"isBigInt",{enumerable:!0,get:function(){return a.isBigInt}}),Object.defineProperty(t,"isBoolean",{enumerable:!0,get:function(){return a.isBoolean}}),Object.defineProperty(t,"isChar",{enumerable:!0,get:function(){return a.isChar}}),Object.defineProperty(t,"isDate",{enumerable:!0,get:function(){return a.isDate}}),Object.defineProperty(t,"isEmptyArray",{enumerable:!0,get:function(){return a.isEmptyArray}}),Object.defineProperty(t,"isEmptyObject",{enumerable:!0,get:function(){return a.isEmptyObject}}),Object.defineProperty(t,"isError",{enumerable:!0,get:function(){return a.isError}}),Object.defineProperty(t,"isFalsy",{enumerable:!0,get:function(){return a.isFalsy}}),Object.defineProperty(t,"isFunction",{enumerable:!0,get:function(){return a.isFunction}}),Object.defineProperty(t,"isIterable",{enumerable:!0,get:function(){return a.isIterable}}),Object.defineProperty(t,"isJson",{enumerable:!0,get:function(){return a.isJson}}),Object.defineProperty(t,"isNull",{enumerable:!0,get:function(){return a.isNull}}),Object.defineProperty(t,"isNumber",{enumerable:!0,get:function(){return a.isNumber}}),Object.defineProperty(t,"isFinite",{enumerable:!0,get:function(){return a.isFinite}}),Object.defineProperty(t,"isPositiveInfinity",{enumerable:!0,get:function(){return a.isPositiveInfinity}}),Object.defineProperty(t,"isNegativeInfinity",{enumerable:!0,get:function(){return a.isNegativeInfinity}}),Object.defineProperty(t,"isNaN",{enumerable:!0,get:function(){return a.isNaN}}),Object.defineProperty(t,"isntNaN",{enumerable:!0,get:function(){return a.isntNaN}}),Object.defineProperty(t,"isObject",{enumerable:!0,get:function(){return a.isObject}}),Object.defineProperty(t,"isPlainObject",{enumerable:!0,get:function(){return a.isPlainObject}}),Object.defineProperty(t,"isPromise",{enumerable:!0,get:function(){return a.isPromise}}),Object.defineProperty(t,"isPromiseLike",{enumerable:!0,get:function(){return a.isPromiseLike}}),Object.defineProperty(t,"isString",{enumerable:!0,get:function(){return a.isString}}),Object.defineProperty(t,"isUndefined",{enumerable:!0,get:function(){return a.isUndefined}}),Object.defineProperty(t,"isRegExp",{enumerable:!0,get:function(){return a.isRegExp}}),Object.defineProperty(t,"isSymbol",{enumerable:!0,get:function(){return a.isSymbol}}),Object.defineProperty(t,"isntArray",{enumerable:!0,get:function(){return a.isntArray}}),Object.defineProperty(t,"isntAsyncIterable",{enumerable:!0,get:function(){return a.isntAsyncIterable}}),Object.defineProperty(t,"isntBigInt",{enumerable:!0,get:function(){return a.isntBigInt}}),Object.defineProperty(t,"isntBoolean",{enumerable:!0,get:function(){return a.isntBoolean}}),Object.defineProperty(t,"isntChar",{enumerable:!0,get:function(){return a.isntChar}}),Object.defineProperty(t,"isntDate",{enumerable:!0,get:function(){return a.isntDate}}),Object.defineProperty(t,"isntEmptyArray",{enumerable:!0,get:function(){return a.isntEmptyArray}}),Object.defineProperty(t,"isntEmptyObject",{enumerable:!0,get:function(){return a.isntEmptyObject}}),Object.defineProperty(t,"isntError",{enumerable:!0,get:function(){return a.isntError}}),Object.defineProperty(t,"isntFalsy",{enumerable:!0,get:function(){return a.isntFalsy}}),Object.defineProperty(t,"isntFunction",{enumerable:!0,get:function(){return a.isntFunction}}),Object.defineProperty(t,"isntIterable",{enumerable:!0,get:function(){return a.isntIterable}}),Object.defineProperty(t,"isntJson",{enumerable:!0,get:function(){return a.isntJson}}),Object.defineProperty(t,"isntNull",{enumerable:!0,get:function(){return a.isntNull}}),Object.defineProperty(t,"isntNumber",{enumerable:!0,get:function(){return a.isntNumber}}),Object.defineProperty(t,"isntObject",{enumerable:!0,get:function(){return a.isntObject}}),Object.defineProperty(t,"isntPlainObject",{enumerable:!0,get:function(){return a.isntPlainObject}}),Object.defineProperty(t,"isntPromise",{enumerable:!0,get:function(){return a.isntPromise}}),Object.defineProperty(t,"isntPromiseLike",{enumerable:!0,get:function(){return a.isntPromiseLike}}),Object.defineProperty(t,"isntString",{enumerable:!0,get:function(){return a.isntString}}),Object.defineProperty(t,"isntUndefined",{enumerable:!0,get:function(){return a.isntUndefined}}),Object.defineProperty(t,"isntRegExp",{enumerable:!0,get:function(){return a.isntRegExp}}),Object.defineProperty(t,"isntSymbol",{enumerable:!0,get:function(){return a.isntSymbol}})}(h);var gs={exports:{}};
|
|
1
|
+
var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t={},n={fetch:void 0};n.fetch=globalThis.fetch.bind(globalThis);var r={Headers:void 0};r.Headers=globalThis.Headers;var i={Request:void 0};i.Request=globalThis.Request;var o={Response:void 0};o.Response=globalThis.Response;var s={FormData:void 0};s.FormData=globalThis.FormData;var a={AbortController:void 0};a.AbortController=globalThis.AbortController;var c={AbortError:void 0};c.AbortError=globalThis.DOMException;var u={Blob:void 0};u.Blob=globalThis.Blob;var f,l,d,y={};y.EventSource=void 0,y.EventSource=globalThis.EventSource,f=t,l=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),d=e&&e.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||l(t,e,n)},d(n,f),d(r,f),d(i,f),d(o,f),d(s,f),d(a,f),d(c,f),d(u,f),d(y,f);var h={},p={},m={},v={},b={},g={},O={},w={};w.go=void 0,w.go=function(e){return e()};var _={};_.goMicrotask=void 0,_.goMicrotask=function(e){return new Promise(((t,n)=>{queueMicrotask((async()=>{try{t(await e())}catch(e){n(e)}}))}))};var A={},j={},E={},S={},P={};P.random=void 0,P.random=function(e,t){return Math.random()*(t-e)+e};var k={};k.randomInt=void 0,k.randomInt=function(e,t){return e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random()*(t-e))+e};var I={};I.randomIntInclusive=void 0,I.randomIntInclusive=function(e,t){return e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random()*(t-e+1))+e},function(t){var n=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=e&&e.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};r(P,t),r(k,t),r(I,t)}(S),E.calculateExponentialBackoffTimeout=void 0;const T=S;E.calculateExponentialBackoffTimeout=function({baseTimeout:e,retries:t,maxTimeout:n=1/0,factor:r=2,jitter:i=!0}){const o=Math.min(r**t*e,n);return i?(0,T.randomIntInclusive)(0,o):o};var x={};x.setTimeout=void 0,x.setTimeout=function(e,t){const n=globalThis.setTimeout(t,e);return()=>clearTimeout(n)};var R={setSchedule:void 0};const N=x;R.setSchedule=function(e,t){const n=e-Date.now();return(0,N.setTimeout)(n,t)};var C={};C.setInterval=void 0,C.setInterval=function(e,t){const n=globalThis.setInterval(t,e);return()=>clearInterval(n)};var D={setImmediate:void 0};const B=x;D.setImmediate=function(e){if(globalThis.setImmediate){const t=globalThis.setImmediate(e);return()=>clearImmediate(t)}return(0,B.setTimeout)(0,e)};var F={setTimeoutLoop:void 0};const L=x;F.setTimeoutLoop=function(e,t){let n=!1,r=(0,L.setTimeout)(e,(async function i(){await t(),n||(r=(0,L.setTimeout)(e,i))}));return()=>{n=!0,r()}};var U={setDynamicTimeoutLoop:void 0};const z=x;U.setDynamicTimeoutLoop=function(e,t){let n=!1,r=(0,z.setTimeout)(e,(async function i(){const o=Date.now();await t();const s=Date.now()-o;n||(r=(0,z.setTimeout)(Math.max(e-s,0),i))}));return()=>{n=!0,r()}},function(t){var n=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=e&&e.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};r(E,t),r(x,t),r(R,t),r(C,t),r(D,t),r(F,t),r(U,t)}(j),A.goMacrotask=void 0;const M=j;A.goMacrotask=function(e){return new Promise(((t,n)=>{(0,M.setImmediate)((async()=>{try{t(await e())}catch(e){n(e)}}))}))},function(t){var n=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=e&&e.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};r(w,t),r(_,t),r(A,t)}(O),g.chunkAsync=void 0;const q=O,H=p;g.chunkAsync=function(e,t){return(0,H.assert)(Number.isInteger(t),"The parameter size must be an integer"),(0,H.assert)(t>0,"The parameter size must be greater than 0"),(0,q.go)((async function*(){let n=[];for await(const r of e)n.push(r),n.length>=t&&(yield n,n=[]);n.length&&(yield n)}))};var J={},W={},K={};function $(e){return Array.isArray(e)}K.isntEmptyArray=K.isEmptyArray=K.isntArray=K.isArray=void 0,K.isArray=$,K.isntArray=function(e){return!$(e)},K.isEmptyArray=function(e){return 0===e.length},K.isntEmptyArray=function(e){return 0!==e.length};var Q={},G={};function Z(e){return null===e}G.isntNull=G.isNull=void 0,G.isNull=Z,G.isntNull=function(e){return!Z(e)};var V={};function Y(e){return void 0===e}V.isntUndefined=V.isUndefined=void 0,V.isUndefined=Y,V.isntUndefined=function(e){return!Y(e)};var X={};function ee(e){return"function"==typeof e}X.isntFunction=X.isFunction=void 0,X.isFunction=ee,X.isntFunction=function(e){return!ee(e)},Q.isntAsyncIterable=Q.isAsyncIterable=void 0;const te=G,ne=V,re=X;function ie(e){return(0,te.isntNull)(e)&&(0,ne.isntUndefined)(e)&&(0,re.isFunction)(e[Symbol.asyncIterator])}Q.isAsyncIterable=ie,Q.isntAsyncIterable=function(e){return!ie(e)};var oe={};function se(e){return"bigint"==typeof e}oe.isntBigInt=oe.isBigInt=void 0,oe.isBigInt=se,oe.isntBigInt=function(e){return!se(e)};var ae={};function ce(e){return"boolean"==typeof e}ae.isntBoolean=ae.isBoolean=void 0,ae.isBoolean=ce,ae.isntBoolean=function(e){return!ce(e)};var ue={},fe={};function le(e){return"string"==typeof e}fe.isntString=fe.isString=void 0,fe.isString=le,fe.isntString=function(e){return!le(e)},ue.isntChar=ue.isChar=void 0;const de=fe;function ye(e){return(0,de.isString)(e)&&1===e.length}ue.isChar=ye,ue.isntChar=function(e){return!ye(e)};var he={};function pe(e){return e instanceof Date}he.isntDate=he.isDate=void 0,he.isDate=pe,he.isntDate=function(e){return!pe(e)};var me={};me.inEnum=void 0,me.inEnum=function(e,t){return Object.values(t).includes(e)};var ve={};function be(e){return e instanceof Error}ve.isntError=ve.isError=void 0,ve.isError=be,ve.isntError=function(e){return!be(e)};var ge={};function Oe(e){return!e}ge.isntFalsy=ge.isFalsy=void 0,ge.isFalsy=Oe,ge.isntFalsy=function(e){return!Oe(e)};var we={};we.isntIterable=we.isIterable=void 0;const _e=G,Ae=V,je=X;function Ee(e){return(0,_e.isntNull)(e)&&(0,Ae.isntUndefined)(e)&&(0,je.isFunction)(e[Symbol.iterator])}we.isIterable=Ee,we.isntIterable=function(e){return!Ee(e)};var Se={},Pe={};function ke(e){return"number"==typeof e}function Ie(e){return Number.isNaN(e)}Pe.isntNaN=Pe.isNaN=Pe.isNegativeInfinity=Pe.isPositiveInfinity=Pe.isFinite=Pe.isntNumber=Pe.isNumber=void 0,Pe.isNumber=ke,Pe.isntNumber=function(e){return!ke(e)},Pe.isFinite=function(e){return Number.isFinite(e)},Pe.isPositiveInfinity=function(e){return e===1/0},Pe.isNegativeInfinity=function(e){return e===-1/0},Pe.isNaN=Ie,Pe.isntNaN=function(e){return!Ie(e)};var Te={},xe="object"==typeof e&&e&&e.Object===Object&&e,Re="object"==typeof self&&self&&self.Object===Object&&self,Ne=(xe||Re||Function("return this")()).Symbol,Ce=Ne,De=Object.prototype,Be=De.hasOwnProperty,Fe=De.toString,Le=Ce?Ce.toStringTag:void 0;var Ue=function(e){var t=Be.call(e,Le),n=e[Le];try{e[Le]=void 0;var r=!0}catch(e){}var i=Fe.call(e);return r&&(t?e[Le]=n:delete e[Le]),i},ze=Object.prototype.toString;var Me=Ue,qe=function(e){return ze.call(e)},He=Ne?Ne.toStringTag:void 0;var Je=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":He&&He in Object(e)?Me(e):qe(e)};var We=function(e,t){return function(n){return e(t(n))}},Ke=We(Object.getPrototypeOf,Object);var $e=Je,Qe=Ke,Ge=function(e){return null!=e&&"object"==typeof e},Ze=Function.prototype,Ve=Object.prototype,Ye=Ze.toString,Xe=Ve.hasOwnProperty,et=Ye.call(Object);var tt=function(e){if(!Ge(e)||"[object Object]"!=$e(e))return!1;var t=Qe(e);if(null===t)return!0;var n=Xe.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ye.call(n)==et},nt=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Te.isntEmptyObject=Te.isEmptyObject=Te.isntPlainObject=Te.isPlainObject=Te.isntObject=Te.isObject=void 0;const rt=nt(tt);function it(e){return null!==e&&"object"==typeof e}function ot(e){return(0,rt.default)(e)}Te.isObject=it,Te.isntObject=function(e){return!it(e)},Te.isPlainObject=ot,Te.isntPlainObject=function(e){return!ot(e)},Te.isEmptyObject=function(e){return 0===Object.keys(e).length},Te.isntEmptyObject=function(e){return 0!==Object.keys(e).length},Se.isntJsonable=Se.isJsonable=Se.isntJson=Se.isJson=void 0;const st=G,at=ae,ct=fe,ut=Pe,ft=K,lt=Te;function dt(e){return(0,st.isNull)(e)||(0,at.isBoolean)(e)||(0,ct.isString)(e)||(0,ut.isNumber)(e)||(0,ft.isArray)(e)&&e.every(dt)||(0,lt.isPlainObject)(e)&&Object.values(e).every(dt)}Se.isJson=dt,Se.isntJson=function(e){return!dt(e)},Se.isJsonable=function(e){try{return JSON.stringify(e),!0}catch(e){return!1}},Se.isntJsonable=function e(t){return!e()};var yt={};yt.isntNullish=yt.isNullish=void 0;const ht=G,pt=V;function mt(e){return(0,ht.isNull)(e)||(0,pt.isUndefined)(e)}yt.isNullish=mt,yt.isntNullish=function(e){return!mt(e)};var vt={};vt.isPromiseLike=vt.isntPromiseLike=vt.isntPromise=vt.isPromise=void 0;const bt=Te,gt=X;function Ot(e){return e instanceof Promise}function wt(e){return(0,bt.isObject)(e)&&(0,gt.isFunction)(e.then)}vt.isPromise=Ot,vt.isntPromise=function(e){return!Ot(e)},vt.isntPromiseLike=function(e){return!wt(e)},vt.isPromiseLike=wt;var _t={};_t.isAbsoluteURL=void 0,_t.isAbsoluteURL=function(e){try{return new URL(e),!0}catch(e){return!1}};var At={};function jt(e){return e instanceof RegExp}At.isntRegExp=At.isRegExp=void 0,At.isRegExp=jt,At.isntRegExp=function(e){return!jt(e)};var Et={};function St(e){return"symbol"==typeof e}Et.isntSymbol=Et.isSymbol=void 0,Et.isSymbol=St,Et.isntSymbol=function(e){return!St(e)},function(t){var n=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=e&&e.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};r(K,t),r(Q,t),r(oe,t),r(ae,t),r(ue,t),r(he,t),r(me,t),r(ve,t),r(ge,t),r(X,t),r(we,t),r(Se,t),r(G,t),r(yt,t),r(Pe,t),r(Te,t),r(vt,t),r(fe,t),r(V,t),r(_t,t),r(At,t),r(Et,t)}(W),J.chunkByAsync=void 0;const Pt=W;J.chunkByAsync=function(e,t){return(0,Pt.isAsyncIterable)(e)?async function*(e,t){let n=[],r=0;for await(const i of e)n.push(i),await t(i,r)&&(yield n,n=[]),r++;n.length&&(yield n)}(e,t):async function*(e,t){let n=[],r=0;for(const i of e)n.push(i),await t(i,r)&&(yield n,n=[]),r++;n.length&&(yield n)}(e,t)};var kt={};kt.chunkBy=void 0,kt.chunkBy=function*(e,t){let n=[],r=0;for(const i of e)n.push(i),t(i,r)&&(yield n,n=[]),r++;n.length&&(yield n)};var It={chunk:void 0};const Tt=O,xt=p;It.chunk=function(e,t){return(0,xt.assert)(Number.isInteger(t),"The parameter size must be an integer"),(0,xt.assert)(t>0,"The parameter size must be greater than 0"),(0,Tt.go)((function*(){let n=[];for(const r of e)n.push(r),n.length>=t&&(yield n,n=[]);n.length&&(yield n)}))};var Rt={concatAsync:void 0};const Nt=W,Ct=O;Rt.concatAsync=function(e,...t){return(0,Ct.go)((async function*(){for(const n of[e,...t])if((0,Nt.isAsyncIterable)(n))for await(const e of n)yield e;else for(const e of n)yield e}))};var Dt={concat:void 0};const Bt=O;Dt.concat=function(e,...t){return(0,Bt.go)((function*(){for(const n of[e,...t])yield*n}))};var Ft={},Lt={filterAsync:void 0};const Ut=W;Lt.filterAsync=function(e,t){return(0,Ut.isAsyncIterable)(e)?async function*(e,t){let n=0;for await(const r of e)await t(r,n)&&(yield r),n++}(e,t):async function*(e,t){let n=0;for(const r of e)await t(r,n)&&(yield r),n++}(e,t)};var zt={};zt.toSetAsync=void 0,zt.toSetAsync=async function(e){const t=new Set;for await(const n of e)t.add(await n);return t},Ft.differenceAsync=void 0;const Mt=Lt,qt=zt;Ft.differenceAsync=async function*(e,t){const n=await(0,qt.toSetAsync)(t);yield*(0,Mt.filterAsync)(e,(async e=>!n.has(await e)))};var Ht={},Jt={};Jt.filter=void 0,Jt.filter=function*(e,t){let n=0;for(const r of e)t(r,n)&&(yield r),n++};var Wt={};Wt.toSet=void 0,Wt.toSet=function(e){return new Set(e)},Ht.difference=void 0;const Kt=Jt,$t=Wt;Ht.difference=function(e,t){const n=(0,$t.toSet)(t);return(0,Kt.filter)(e,(e=>!n.has(e)))};var Qt={},Gt={};Gt.copyIterable=Gt.copyAsyncIterable=void 0,Gt.copyAsyncIterable=async function*(e){for await(const t of e)yield t},Gt.copyIterable=function*(e){for(const t of e)yield t},Qt.dropAsync=void 0;const Zt=O,Vt=Gt,Yt=p;Qt.dropAsync=function(e,t){return(0,Yt.assert)(Number.isInteger(t),"The parameter count must be an integer"),(0,Yt.assert)(t>=0,"The parameter count must be greater than or equal to 0"),0===t?(0,Vt.copyAsyncIterable)(e):(0,Zt.go)((async function*(){var n;const r=e[Symbol.asyncIterator]();let i;try{let e;for(;!(({value:e,done:i}=await r.next()),i||t<=0);)t--;for(;!i;)yield e,({value:e,done:i}=await r.next())}finally{i||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}}))};var Xt={},en={};en.toArrayAsync=void 0,en.toArrayAsync=async function(e){const t=[];for await(const n of e)t.push(n);return t},Xt.dropRightAsync=void 0;const tn=O,nn=Gt,rn=p,on=en;Xt.dropRightAsync=function(e,t){return(0,rn.assert)(Number.isInteger(t),"The parameter count must be an integer"),(0,rn.assert)(t>=0,"The parameter count must be greater than or equal to 0"),0===t?(0,nn.copyAsyncIterable)(e):(0,tn.go)((async function*(){const n=(await(0,on.toArrayAsync)(e)).slice(0,-t);for(const e of n)yield e}))};var sn={dropRight:void 0};const an=O,cn=Gt,un=p;sn.dropRight=function(e,t){return(0,un.assert)(Number.isInteger(t),"The parameter count must be an integer"),(0,un.assert)(t>=0,"The parameter count must be greater than or equal to 0"),0===t?(0,cn.copyIterable)(e):(0,an.go)((function*(){const n=Array.from(e);yield*n.slice(0,-t)}))};var fn={dropUntilAsync:void 0};const ln=W;fn.dropUntilAsync=function(e,t){return(0,ln.isAsyncIterable)(e)?async function*(e,t){var n;const r=e[Symbol.asyncIterator]();let i;try{let e,o=0;for(;!(({value:e,done:i}=await r.next()),i||await t(e,o++)););for(;!i;)yield e,({value:e,done:i}=await r.next())}finally{i||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}}(e,t):async function*(e,t){var n;const r=e[Symbol.iterator]();let i;try{let e,o=0;for(;!(({value:e,done:i}=r.next()),i||await t(e,o++)););for(;!i;)yield e,({value:e,done:i}=r.next())}finally{i||null===(n=r.return)||void 0===n||n.call(r)}}(e,t)};var dn={};dn.dropUntil=void 0,dn.dropUntil=function*(e,t){var n;const r=e[Symbol.iterator]();let i;try{let e,o=0;for(;!(({value:e,done:i}=r.next()),i||t(e,o++)););for(;!i;)yield e,({value:e,done:i}=r.next())}finally{i||null===(n=r.return)||void 0===n||n.call(r)}};var yn={drop:void 0};const hn=O,pn=Gt,mn=p;yn.drop=function(e,t){return(0,mn.assert)(Number.isInteger(t),"The parameter count must be an integer"),(0,mn.assert)(t>=0,"The parameter count must be greater than or equal to 0"),0===t?(0,pn.copyIterable)(e):(0,hn.go)((function*(){var n;const r=e[Symbol.iterator]();let i;try{let e;for(;!(({value:e,done:i}=r.next()),i||t<=0);)t--;for(;!i;)yield e,({value:e,done:i}=r.next())}finally{i||null===(n=r.return)||void 0===n||n.call(r)}}))};var vn={},bn={},gn={flattenByAsync:void 0};const On=W;async function*wn(e,t,n){for(const r of e)_n(r)&&await t(r,n)?yield*wn(r,t,n+1):yield r}function _n(e){return(0,On.isIterable)(e)&&(0,On.isntChar)(e)}gn.flattenByAsync=function(e,t){return(0,On.isAsyncIterable)(e)?async function*(e,t){const n=1;for await(const r of e)_n(r)&&await t(r,n)?yield*wn(r,t,n+1):yield r}(e,t):function(e,t){return wn(e,t,1)}(e,t)},bn.flattenDeepAsync=void 0;const An=gn,jn=p;bn.flattenDeepAsync=function(e,t=1/0){return(0,jn.assert)(t===1/0||Number.isInteger(t),"The parameter depth must be an integer"),(0,jn.assert)(t>=0,"The parameter depth must be greater than or equal to 0"),(0,An.flattenByAsync)(e,((e,n)=>n<=t))},vn.flattenAsync=void 0;const En=bn;vn.flattenAsync=function(e){return(0,En.flattenDeepAsync)(e,1)};var Sn={flattenBy:void 0};const Pn=W;function*kn(e,t,n){for(const i of e)(0,Pn.isIterable)(r=i)&&(0,Pn.isntChar)(r)&&t(i,n)?yield*kn(i,t,n+1):yield i;var r}Sn.flattenBy=function(e,t){return kn(e,t,1)};var In={flattenDeep:void 0};const Tn=Sn,xn=p;In.flattenDeep=function(e,t=1/0){return(0,xn.assert)(t===1/0||Number.isInteger(t),"The parameter depth must be an integer"),(0,xn.assert)(t>=0,"The parameter depth must be greater than or equal to 0"),(0,Tn.flattenBy)(e,((e,n)=>n<=t))};var Rn={flatten:void 0};const Nn=In;Rn.flatten=function(e){return(0,Nn.flattenDeep)(e,1)};var Cn={intersectionAsync:void 0};const Dn=Lt,Bn=zt;Cn.intersectionAsync=async function*(e,t){const n=await(0,Bn.toSetAsync)(t);yield*(0,Dn.filterAsync)(e,(async e=>n.has(await e)))};var Fn={intersection:void 0};const Ln=Jt,Un=Wt;Fn.intersection=function(e,t){const n=(0,Un.toSet)(t);return(0,Ln.filter)(e,(e=>n.has(e)))};var zn={mapAsync:void 0};const Mn=W;zn.mapAsync=function(e,t){return(0,Mn.isAsyncIterable)(e)?async function*(e,t){let n=0;for await(const r of e)yield await t(r,n),n++}(e,t):async function*(e,t){let n=0;for(const r of e)yield await t(r,n),n++}(e,t)};var qn={};qn.map=void 0,qn.map=function*(e,t){let n=0;for(const r of e)yield t(r,n),n++};var Hn={repeatAsync:void 0};const Jn=O,Wn=p;Hn.repeatAsync=function(e,t){return(0,Wn.assert)(t===1/0||Number.isInteger(t),"The parameter times must be an integer"),(0,Wn.assert)(t>=0,"The parameter times must be greater than or equal to 0"),t===1/0&&function(){if("production"===process.env.NODE_ENV)return;console.warn("When iterable has no elements and times is Infinity, repeat() will be in dead loop")}(),(0,Jn.go)((async function*(){const n=[];if(t>0){for await(const t of e)yield t,n.push(t);t--}for(;t>0;)yield*n,t--}))};var Kn={repeat:void 0};const $n=O,Qn=p;Kn.repeat=function(e,t){return(0,Qn.assert)(t===1/0||Number.isInteger(t),"The parameter times must be an integer"),(0,Qn.assert)(t>=0,"The parameter times must be greater than or equal to 0"),t===1/0&&function(){if("production"===process.env.NODE_ENV)return;console.warn("When iterable has no elements and times is Infinity, repeat() will be in dead loop")}(),(0,$n.go)((function*(){const n=[];if(t>0){for(const t of e)yield t,n.push(t);t--}for(;t>0;)yield*n,t--}))};var Gn={sliceAsync:void 0};const Zn=O,Vn=p;Gn.sliceAsync=function(e,t,n=1/0){return(0,Vn.assert)(Number.isInteger(t),"The parameter start must be an integer"),(0,Vn.assert)(t>=0,"The parameter start must be greater than or equal to 0"),(0,Vn.assert)(Number.isInteger(n),"The parameter end must be an integer"),(0,Vn.assert)(n>=t,"The parameter end must be greater than or equal to start"),(0,Zn.go)((async function*(){let r=0;for await(const i of e){if(r>=n)break;r>=t&&(yield i),r++}}))};var Yn={slice:void 0};const Xn=O,er=p;Yn.slice=function(e,t,n=1/0){return(0,er.assert)(Number.isInteger(t),"The parameter start must be an integer"),(0,er.assert)(t>=0,"The parameter start must be greater than or equal to 0"),(0,er.assert)(Number.isInteger(n),"The parameter end must be an integer"),(0,er.assert)(n>=t,"The parameter end must be greater than or equal to start"),(0,Xn.go)((function*(){let r=0;for(const i of e){if(r>=n)break;r>=t&&(yield i),r++}}))};var tr={};tr.splitAsync=void 0,tr.splitAsync=async function*(e,t){let n=[];for await(const r of e)r===t?(yield n,n=[]):n.push(r);yield n};var nr={splitByAsync:void 0};const rr=W;nr.splitByAsync=function(e,t){return(0,rr.isAsyncIterable)(e)?async function*(e,t){let n=[],r=0;for await(const i of e)await t(i,r)?(yield n,n=[]):n.push(i),r++;yield n}(e,t):async function*(e,t){let n=[],r=0;for(const i of e)await t(i,r)?(yield n,n=[]):n.push(i),r++;yield n}(e,t)};var ir={};ir.splitBy=void 0,ir.splitBy=function*(e,t){let n=[],r=0;for(const i of e)t(i,r)?(yield n,n=[]):n.push(i),r++;yield n};var or={};or.split=void 0,or.split=function*(e,t){let n=[];for(const r of e)r===t?(yield n,n=[]):n.push(r);yield n};var sr={takeAsync:void 0};const ar=O,cr=p;sr.takeAsync=function(e,t){return(0,cr.assert)(Number.isInteger(t),"The parameter count must be an integer"),(0,cr.assert)(t>=0,"The parameter count must be greater than or equal to 0"),(0,ar.go)((async function*(){if(0!==t)for await(const n of e)if(yield n,0===--t)break}))};var ur={takeRightAsync:void 0};const fr=O,lr=p;ur.takeRightAsync=function(e,t){return(0,lr.assert)(Number.isInteger(t),"The parameter count must be an integer"),(0,lr.assert)(t>=0,"The parameter count must be greater than or equal to 0"),(0,fr.go)((async function*(){var n;const r=e[Symbol.asyncIterator]();let i;try{const e=[];let o;for(;({value:o,done:i}=await r.next()),!i;)e.push(o),e.length>t&&e.shift();yield*e}finally{i||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}}))};var dr={takeRight:void 0};const yr=O,hr=p;dr.takeRight=function(e,t){return(0,hr.assert)(Number.isInteger(t),"The parameter count must be an integer"),(0,hr.assert)(t>=0,"The parameter count must be greater than or equal to 0"),(0,yr.go)((function*(){var n;const r=e[Symbol.iterator]();let i;try{const e=[];let o;for(;({value:o,done:i}=r.next()),!i;)e.push(o),e.length>t&&e.shift();yield*e}finally{i||null===(n=r.return)||void 0===n||n.call(r)}}))};var pr={takeUntilAsync:void 0};const mr=W;pr.takeUntilAsync=function(e,t){return(0,mr.isAsyncIterable)(e)?async function*(e,t){let n=0;for await(const r of e){if(await t(r,n))break;yield r,n++}}(e,t):async function*(e,t){let n=0;for(const r of e){if(await t(r,n))break;yield r,n++}}(e,t)};var vr={};vr.takeUntil=void 0,vr.takeUntil=function*(e,t){let n=0;for(const r of e){if(t(r,n))break;yield r,n++}};var br={take:void 0};const gr=O,Or=p;br.take=function(e,t){return(0,Or.assert)(Number.isInteger(t),"The parameter count must be an integer"),(0,Or.assert)(t>=0,"The parameter count must be greater than or equal to 0"),(0,gr.go)((function*(){if(0!==t)for(const n of e)if(yield n,0===--t)break}))};var wr={tapAsync:void 0};const _r=W;wr.tapAsync=function(e,t){return(0,_r.isAsyncIterable)(e)?async function*(e,t){let n=0;for await(const r of e)await t(r,n),yield r,n++}(e,t):async function*(e,t){let n=0;for(const r of e)await t(r,n),yield r,n++}(e,t)};var Ar={};Ar.tap=void 0,Ar.tap=function*(e,t){let n=0;for(const r of e)t(r,n),yield r,n++};var jr={};jr.toAsyncIterable=void 0,jr.toAsyncIterable=async function*(e){for(const t of e)yield await t};var Er={};Er.transformAsync=void 0,Er.transformAsync=async function*(e,t){yield*t(e)};var Sr={};Sr.transform=void 0,Sr.transform=function*(e,t){yield*t(e)};var Pr={};Pr.uniqAsync=void 0,Pr.uniqAsync=async function*(e){const t=new Set;for await(const n of e)t.has(n)||(yield n,t.add(n))};var kr={uniqByAsync:void 0};const Ir=W;kr.uniqByAsync=function(e,t){return(0,Ir.isAsyncIterable)(e)?async function*(e,t){const n=new Set;let r=0;for await(const i of e){const e=await t(i,r);n.has(e)||(yield i,n.add(e)),r++}}(e,t):async function*(e,t){const n=new Set;let r=0;for(const i of e){const e=await t(i,r);n.has(e)||(yield i,n.add(e)),r++}}(e,t)};var Tr={};Tr.uniqBy=void 0,Tr.uniqBy=function*(e,t){const n=new Set;let r=0;for(const i of e){const e=t(i,r);n.has(e)||(yield i,n.add(e)),r++}};var xr={};xr.uniq=void 0,xr.uniq=function*(e){const t=new Set;for(const n of e)t.has(n)||(yield n,t.add(n))};var Rr={zipAsync:void 0};const Nr=W;var Cr;!function(e){e[e.Sync=0]="Sync",e[e.Async=1]="Async"}(Cr||(Cr={})),Rr.zipAsync=function(e,...t){return async function*(...e){var t,n,r,i;const o=e.length,s=e.map((e=>(0,Nr.isAsyncIterable)(e)?[Cr.Async,e[Symbol.asyncIterator]()]:[Cr.Sync,e[Symbol.iterator]()])),a=s.map((()=>!1));try{for(;;){const e=new Array(o);for(let t=0;t<o;t++){const[n,r]=s[t];let i;if(i=n===Cr.Async?await r.next():r.next(),i.done)return void(a[t]=!0);e[t]=await i.value}yield e}}finally{const e=s.filter(((e,t)=>!a[t]));for(const[o,s]of e)o===Cr.Async?await(null===(n=(t=s).return)||void 0===n?void 0:n.call(t)):null===(i=(r=s).return)||void 0===i||i.call(r)}}(e,...t)};var Dr={};Dr.zip=void 0,Dr.zip=function(e,...t){return function*(...e){const t=e.length,n=e.map((e=>e[Symbol.iterator]())),r=n.map((()=>!1));try{for(;;){const e=new Array(t);for(let i=0;i<t;i++){const{value:t,done:o}=n[i].next();if(o)return void(r[i]=!0);e[i]=t}yield e}}finally{n.filter(((e,t)=>!r[t])).forEach((e=>{var t;return null===(t=e.return)||void 0===t?void 0:t.call(e)}))}}(e,...t)},function(t){var n=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=e&&e.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};r(g,t),r(J,t),r(kt,t),r(It,t),r(Rt,t),r(Dt,t),r(Ft,t),r(Ht,t),r(Qt,t),r(Xt,t),r(sn,t),r(fn,t),r(dn,t),r(yn,t),r(Lt,t),r(Jt,t),r(vn,t),r(gn,t),r(Sn,t),r(bn,t),r(In,t),r(Rn,t),r(Cn,t),r(Fn,t),r(zn,t),r(qn,t),r(Hn,t),r(Kn,t),r(Gn,t),r(Yn,t),r(tr,t),r(nr,t),r(ir,t),r(or,t),r(sr,t),r(ur,t),r(dr,t),r(pr,t),r(vr,t),r(br,t),r(wr,t),r(Ar,t),r(jr,t),r(Er,t),r(Sr,t),r(Pr,t),r(kr,t),r(Tr,t),r(xr,t),r(Rr,t),r(Dr,t)}(b);var Br={},Fr={};Fr.consume=void 0,Fr.consume=function(e,t){return t(e)};var Lr={};Lr.consumeAsync=void 0,Lr.consumeAsync=async function(e,t){return await t(e)};var Ur={eachAsync:void 0};const zr=W;Ur.eachAsync=function(e,t){return(0,zr.isAsyncIterable)(e)?async function(e,t){let n=0;for await(const r of e)await t(r,n),n++}(e,t):async function(e,t){let n=0;for(const r of e)await t(r,n),n++}(e,t)};var Mr={};Mr.each=void 0,Mr.each=function(e,t){let n=0;for(const r of e)t(r,n),n++};var qr={everyAsync:void 0};const Hr=W;qr.everyAsync=function(e,t){return(0,Hr.isAsyncIterable)(e)?async function(e,t){let n=0;for await(const r of e){if(!await t(r,n))return!1;n++}return!0}(e,t):async function(e,t){let n=0;for(const r of e){if(!await t(r,n))return!1;n++}return!0}(e,t)};var Jr={};Jr.every=void 0,Jr.every=function(e,t){let n=0;for(const r of e){if(!t(r,n))return!1;n++}return!0};var Wr={findAsync:void 0};const Kr=W;Wr.findAsync=function(e,t){return(0,Kr.isAsyncIterable)(e)?async function(e,t){let n=0;for await(const r of e){if(await t(r,n))return r;n++}return}(e,t):async function(e,t){let n=0;for(const r of e){if(await t(r,n))return r;n++}return}(e,t)};var $r={};$r.find=void 0,$r.find=function(e,t){let n=0;for(const r of e){if(t(r,n))return r;n++}};var Qr={};Qr.firstAsync=void 0,Qr.firstAsync=async function(e){for await(const t of e)return t};var Gr={};Gr.first=void 0,Gr.first=function(e){for(const t of e)return t};var Zr={};Zr.includesAsync=void 0,Zr.includesAsync=async function(e,t){for await(const n of e)if(n===t)return!0;return!1};var Vr={};Vr.includes=void 0,Vr.includes=function(e,t){for(const n of e)if(n===t)return!0;return!1};var Yr={reduceAsync:void 0};const Xr=W;Yr.reduceAsync=function(e,t,n){return(0,Xr.isUndefined)(n)?function(e,t){return(0,Xr.isAsyncIterable)(e)?n(e):r(e);async function n(e){var n;const r=e[Symbol.asyncIterator]();let i;try{let e,s=await o(r),a=1;for(;({value:e,done:i}=await r.next()),!i;)s=await t(s,e,a++);return s}finally{i||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}async function o(e){const t=await e.next();if(t.done)throw i=!0,new Error("Reduce of empty iterable with no initial value");return t.value}}async function r(e){var n;const r=e[Symbol.iterator]();let i;try{let e,s=o(r),a=1;for(;({value:e,done:i}=r.next()),!i;)s=await t(s,e,a++);return s}finally{i||null===(n=r.return)||void 0===n||n.call(r)}function o(e){const t=e.next();if(t.done)throw i=!0,new Error("Reduce of empty iterable with no initial value");return t.value}}}(e,t):function(e,t,n){return(0,Xr.isAsyncIterable)(e)?i(e):r(e);async function r(e){let r=n,i=0;for(const n of e)r=await t(r,n,i++);return r}async function i(e){let r=n,i=0;for await(const n of e)r=await t(r,n,i++);return r}}(e,t,n)};var ei={reduce:void 0};const ti=W;ei.reduce=function(e,t,n){return(0,ti.isUndefined)(n)?function(e,t){var n;const r=e[Symbol.iterator]();let i;try{let e,s=o(r),a=1;for(;({value:e,done:i}=r.next()),!i;)s=t(s,e,a++);return s}finally{i||null===(n=r.return)||void 0===n||n.call(r)}function o(e){const t=e.next();if(t.done)throw i=!0,new Error("Reduce of empty iterable with no initial value");return t.value}}(e,t):function(e,t,n){let r=n,i=0;for(const n of e)r=t(r,n,i++);return r}(e,t,n)};var ni={someAsync:void 0};const ri=W;ni.someAsync=function(e,t){return(0,ri.isAsyncIterable)(e)?async function(e,t){let n=0;for await(const r of e){if(await t(r,n))return!0;n++}return!1}(e,t):async function(e,t){let n=0;for(const r of e){if(await t(r,n))return!0;n++}return!1}(e,t)};var ii={};ii.some=void 0,ii.some=function(e,t){let n=0;for(const r of e){if(t(r,n))return!0;n++}return!1};var oi={};oi.lastAsync=void 0,oi.lastAsync=async function(e){var t;const n=e[Symbol.asyncIterator]();let r;try{let e,i;for(;({value:e,done:r}=await n.next()),!r;)i=e;return i}finally{r||await(null===(t=n.return)||void 0===t?void 0:t.call(n))}};var si={};si.last=void 0,si.last=function(e){var t;const n=e[Symbol.iterator]();let r;try{let e,i;for(;({value:e,done:r}=n.next()),!r;)i=e;return i}finally{r||null===(t=n.return)||void 0===t||t.call(n)}};var ai={};ai.toArray=void 0,ai.toArray=function(e){return Array.from(e)};var ci={};ci.count=void 0,ci.count=function(e){let t=0;for(const n of e)t++;return t};var ui={};ui.countAsync=void 0,ui.countAsync=async function(e){let t=0;for await(const n of e)t++;return t};var fi={groupBy:void 0};const li=Mr;fi.groupBy=function(e,t){const n=new Map;return(0,li.each)(e,((e,r)=>{const i=t(e,r);n.has(i)||n.set(i,[]),n.get(i).push(e)})),n};var di={groupByAsync:void 0};const yi=Ur;di.groupByAsync=async function(e,t){const n=new Map;return await(0,yi.eachAsync)(e,(async(e,r)=>{const i=await t(e,r);n.has(i)||n.set(i,[]),n.get(i).push(e)})),n},function(t){var n=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=e&&e.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};r(Fr,t),r(Lr,t),r(Ur,t),r(Mr,t),r(qr,t),r(Jr,t),r(Wr,t),r($r,t),r(Qr,t),r(Gr,t),r(Zr,t),r(Vr,t),r(Yr,t),r(ei,t),r(ni,t),r(ii,t),r(oi,t),r(si,t),r(en,t),r(ai,t),r(zt,t),r(Wt,t),r(ci,t),r(ui,t),r(fi,t),r(di,t)}(Br),function(t){var n=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=e&&e.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};r(b,t),r(Br,t)}(v);var hi={},pi={};pi.traverseErrorPrototypeChain=void 0,pi.traverseErrorPrototypeChain=function*(e){let t=e;for(;(t=Object.getPrototypeOf(t))&&(yield t,t!==Error.prototype););},hi.getErrorNames=void 0;const mi=W,vi=pi;hi.getErrorNames=function*(e){var t;if((0,mi.isError)(e))for(const n of(0,vi.traverseErrorPrototypeChain)(e))(null===(t=n.constructor)||void 0===t?void 0:t.name)&&(yield n.constructor.name);else yield e.name,yield*e.ancestors};var bi={isSerializableError:void 0};const gi=W;bi.isSerializableError=function(e){return(0,gi.isObject)(e)&&(0,gi.isString)(e.name)&&(0,gi.isString)(e.message)&&((0,gi.isString)(e.stack)||(0,gi.isNull)(e.stack))&&(0,gi.isArray)(e.ancestors)&&e.ancestors.every(gi.isString)},m.CustomError=void 0;const Oi=v,wi=hi,_i=W,Ai=bi;class ji extends Error{get name(){var e,t;return null!==(t=null!==(e=(0,Oi.first)((0,wi.getErrorNames)(this)))&&void 0!==e?e:ji.name)&&void 0!==t?t:"CustomError"}static[Symbol.hasInstance](e){var t;if((0,_i.isError)(e)||(0,Ai.isSerializableError)(e)){const n=[null!==(t=this.prototype.constructor.name)&&void 0!==t?t:this.name,...(0,wi.getErrorNames)(this.prototype)].reverse(),r=(0,Oi.toArray)((0,wi.getErrorNames)(e)).reverse();return n.every(((e,t)=>e===r[t]))}return!1}}m.CustomError=ji;var Ei={AssertionError:void 0};const Si=m;class Pi extends Si.CustomError{}Ei.AssertionError=Pi;var ki={normalize:void 0};const Ii=hi,Ti=v;ki.normalize=function(e){var t;const[n,...r]=(0,Ti.toArray)((0,Ii.getErrorNames)(e));return{name:n,ancestors:r,message:e.message,stack:null!==(t=e.stack)&&void 0!==t?t:null}};var xi={},Ri={},Ni={};Ni.pass=void 0,Ni.pass=function(){};var Ci={};Ci.passAsync=void 0,Ci.passAsync=async function(){},function(t){var n=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=e&&e.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};r(Ni,t),r(Ci,t)}(Ri),xi.hydrate=void 0;const Di=Ri;function Bi(e,t){const n=function(){(0,Di.pass)()};return(n.prototype=Object.create(e.prototype)).constructor=n,Object.defineProperty(n,"name",{value:t}),n}xi.hydrate=function(e){var t;const n=[e.name,...e.ancestors].slice(0,-1).reverse();let r=Error;for(const e of n)r=Bi(r,e);const i=new r;return i.name=e.name,i.message=e.message,i.stack=null!==(t=e.stack)&&void 0!==t?t:void 0,i};var Fi={assert:void 0};const Li=Ei;Fi.assert=function(e,t){if(!e)throw new Li.AssertionError(t)},function(t){var n=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=e&&e.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};r(m,t),r(Ei,t),r(bi,t),r(ki,t),r(xi,t),r(Fi,t),r(hi,t),r(pi,t)}(p);var Ui={},zi={};zi.log=void 0,zi.log=function(...e){return console.log(...e),e[e.length-1]};var Mi={},qi={},Hi={};Hi.performanceNow=void 0,Hi.performanceNow=function(){return performance.now()},function(t){var n=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=e&&e.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};r(Hi,t)}(qi);var Ji={};Ji.getElapsedTime=void 0,Ji.getElapsedTime=function(e,t){return t-e+"ms"},Mi.time=void 0;const Wi=qi,Ki=Ji,$i=W;Mi.time=function(e,t){const n=(0,Wi.performanceNow)(),r=t();if((0,$i.isPromiseLike)(r))return r.then((()=>{const t=(0,Wi.performanceNow)();return console.log(e,(0,Ki.getElapsedTime)(n,t)),r}));{const t=(0,Wi.performanceNow)();return console.log(e,(0,Ki.getElapsedTime)(n,t)),r}};var Qi={timeFunction:void 0};const Gi=qi,Zi=Ji;Qi.timeFunction=function(e,t){return function(...n){const r=(0,Gi.performanceNow)(),i=t(...n),o=(0,Gi.performanceNow)();return console.log(e,(0,Zi.getElapsedTime)(r,o)),i}};var Vi={timeAsyncFunction:void 0};const Yi=qi,Xi=Ji;Vi.timeAsyncFunction=function(e,t){return async function(...n){const r=(0,Yi.performanceNow)(),i=await t(...n),o=(0,Yi.performanceNow)();return console.log(e,(0,Xi.getElapsedTime)(r,o)),i}};var eo={group:void 0};const to=O,no=W;eo.group=function(...e){const[t,n]=(0,to.go)((()=>{if(1===e.length){const[t]=e;return[void 0,t]}{const[t,n]=e;return[t,n]}}));(0,no.isUndefined)(t)?console.group():console.group(t);const r=n();return console.groupEnd(),r},function(t){var n=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=e&&e.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};r(zi,t),r(Mi,t),r(Qi,t),r(Vi,t),r(eo,t)}(Ui);var ro={},io={};io.lazy=void 0,io.lazy=function(e){let t,n=!1;return function(){return n||(t=e(),n=!0),t}};var oo={lazyFunction:void 0};const so=io;oo.lazyFunction=function(e){const t=(0,so.lazy)(e);return(...e)=>t()(...e)};var ao={lazyAsyncFunction:void 0};const co=io;ao.lazyAsyncFunction=function(e){const t=(0,co.lazy)(e);return async(...e)=>(await t())(...e)};var uo={};uo.lazyStatic=uo.withLazyStatic=void 0;const fo=[];function lo(...e){return bo("GET",...e)}function yo(...e){return bo("HEAD",...e)}function ho(...e){return bo("POST",...e)}function po(...e){return bo("PUT",...e)}function mo(...e){return bo("PATCH",...e)}function vo(...e){return bo("DELETE",...e)}function bo(e,...n){const r=n.reduce(((e,t)=>h.isFunction(t)?t(e):e),{url:new URL("http://localhost"),headers:new t.Headers}),i=new t.Headers(r.headers);return new t.Request(r.url.href,{method:e,headers:i,signal:r.signal,body:r.payload,keepalive:r.keepalive})}function go(...e){return t=>{const n=new URL(e.reduce(((e,t)=>new URL(t,e).href)));return Object.assign(Object.assign({},t),{url:n})}}function Oo(e){return n=>{const r=new t.Headers(n.headers);return r.set("Content-Type","application/x-www-form-urlencoded"),Object.assign(Object.assign({},n),{headers:r,payload:e})}}function wo(e){return n=>{const r=new t.Headers(n.headers);return r.set("Content-Type","application/json"),Object.assign(Object.assign({},n),{headers:r,payload:JSON.stringify(e)})}}uo.withLazyStatic=function(e){const t=[];return(...n)=>{fo.push({cache:t,index:0});try{return e(...n)}finally{fo.pop()}}},uo.lazyStatic=function(e,t=[]){if(fo.length){const r=fo[fo.length-1],i=r.index++;if(i===r.cache.length)n();else{const o=r.cache[i].deps;t.length===o.length?t.some(((e,t)=>e!==o[t]))&&n():n()}return r.cache[i].value;function n(){r.cache[i]=null,r.cache[i]={value:e(),deps:Array.from(t)}}}throw new Error("lazyStatic can only be called in the function wrapped by withlazyStatic.")},function(t){var n=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=e&&e.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};r(io,t),r(oo,t),r(ao,t),r(uo,t)}(ro),function(e){e.isntNull=e.isntJson=e.isntIterable=e.isntFunction=e.isntFalsy=e.isntError=e.isntEmptyObject=e.isntEmptyArray=e.isntDate=e.isntChar=e.isntBoolean=e.isntBigInt=e.isntAsyncIterable=e.isntArray=e.isSymbol=e.isRegExp=e.isUndefined=e.isString=e.isPromiseLike=e.isPromise=e.isPlainObject=e.isObject=e.isntNaN=e.isNaN=e.isNegativeInfinity=e.isPositiveInfinity=e.isFinite=e.isNumber=e.isNullish=e.isNull=e.isJson=e.isIterable=e.isFunction=e.isFalsy=e.isError=e.isEmptyObject=e.isEmptyArray=e.isDate=e.isChar=e.isBoolean=e.isBigInt=e.isAsyncIterable=e.isArray=e.toArrayAsync=e.toArray=e.pass=e.lazy=e.log=e.go=e.assert=void 0,e.isntSymbol=e.isntRegExp=e.isntUndefined=e.isntString=e.isntPromiseLike=e.isntPromise=e.isntPlainObject=e.isntObject=e.isntNumber=e.isntNullish=void 0;var t=p;Object.defineProperty(e,"assert",{enumerable:!0,get:function(){return t.assert}});var n=O;Object.defineProperty(e,"go",{enumerable:!0,get:function(){return n.go}});var r=Ui;Object.defineProperty(e,"log",{enumerable:!0,get:function(){return r.log}});var i=ro;Object.defineProperty(e,"lazy",{enumerable:!0,get:function(){return i.lazy}});var o=Ri;Object.defineProperty(e,"pass",{enumerable:!0,get:function(){return o.pass}});var s=v;Object.defineProperty(e,"toArray",{enumerable:!0,get:function(){return s.toArray}}),Object.defineProperty(e,"toArrayAsync",{enumerable:!0,get:function(){return s.toArrayAsync}});var a=W;Object.defineProperty(e,"isArray",{enumerable:!0,get:function(){return a.isArray}}),Object.defineProperty(e,"isAsyncIterable",{enumerable:!0,get:function(){return a.isAsyncIterable}}),Object.defineProperty(e,"isBigInt",{enumerable:!0,get:function(){return a.isBigInt}}),Object.defineProperty(e,"isBoolean",{enumerable:!0,get:function(){return a.isBoolean}}),Object.defineProperty(e,"isChar",{enumerable:!0,get:function(){return a.isChar}}),Object.defineProperty(e,"isDate",{enumerable:!0,get:function(){return a.isDate}}),Object.defineProperty(e,"isEmptyArray",{enumerable:!0,get:function(){return a.isEmptyArray}}),Object.defineProperty(e,"isEmptyObject",{enumerable:!0,get:function(){return a.isEmptyObject}}),Object.defineProperty(e,"isError",{enumerable:!0,get:function(){return a.isError}}),Object.defineProperty(e,"isFalsy",{enumerable:!0,get:function(){return a.isFalsy}}),Object.defineProperty(e,"isFunction",{enumerable:!0,get:function(){return a.isFunction}}),Object.defineProperty(e,"isIterable",{enumerable:!0,get:function(){return a.isIterable}}),Object.defineProperty(e,"isJson",{enumerable:!0,get:function(){return a.isJson}}),Object.defineProperty(e,"isNull",{enumerable:!0,get:function(){return a.isNull}}),Object.defineProperty(e,"isNullish",{enumerable:!0,get:function(){return a.isNullish}}),Object.defineProperty(e,"isNumber",{enumerable:!0,get:function(){return a.isNumber}}),Object.defineProperty(e,"isFinite",{enumerable:!0,get:function(){return a.isFinite}}),Object.defineProperty(e,"isPositiveInfinity",{enumerable:!0,get:function(){return a.isPositiveInfinity}}),Object.defineProperty(e,"isNegativeInfinity",{enumerable:!0,get:function(){return a.isNegativeInfinity}}),Object.defineProperty(e,"isNaN",{enumerable:!0,get:function(){return a.isNaN}}),Object.defineProperty(e,"isntNaN",{enumerable:!0,get:function(){return a.isntNaN}}),Object.defineProperty(e,"isObject",{enumerable:!0,get:function(){return a.isObject}}),Object.defineProperty(e,"isPlainObject",{enumerable:!0,get:function(){return a.isPlainObject}}),Object.defineProperty(e,"isPromise",{enumerable:!0,get:function(){return a.isPromise}}),Object.defineProperty(e,"isPromiseLike",{enumerable:!0,get:function(){return a.isPromiseLike}}),Object.defineProperty(e,"isString",{enumerable:!0,get:function(){return a.isString}}),Object.defineProperty(e,"isUndefined",{enumerable:!0,get:function(){return a.isUndefined}}),Object.defineProperty(e,"isRegExp",{enumerable:!0,get:function(){return a.isRegExp}}),Object.defineProperty(e,"isSymbol",{enumerable:!0,get:function(){return a.isSymbol}}),Object.defineProperty(e,"isntArray",{enumerable:!0,get:function(){return a.isntArray}}),Object.defineProperty(e,"isntAsyncIterable",{enumerable:!0,get:function(){return a.isntAsyncIterable}}),Object.defineProperty(e,"isntBigInt",{enumerable:!0,get:function(){return a.isntBigInt}}),Object.defineProperty(e,"isntBoolean",{enumerable:!0,get:function(){return a.isntBoolean}}),Object.defineProperty(e,"isntChar",{enumerable:!0,get:function(){return a.isntChar}}),Object.defineProperty(e,"isntDate",{enumerable:!0,get:function(){return a.isntDate}}),Object.defineProperty(e,"isntEmptyArray",{enumerable:!0,get:function(){return a.isntEmptyArray}}),Object.defineProperty(e,"isntEmptyObject",{enumerable:!0,get:function(){return a.isntEmptyObject}}),Object.defineProperty(e,"isntError",{enumerable:!0,get:function(){return a.isntError}}),Object.defineProperty(e,"isntFalsy",{enumerable:!0,get:function(){return a.isntFalsy}}),Object.defineProperty(e,"isntFunction",{enumerable:!0,get:function(){return a.isntFunction}}),Object.defineProperty(e,"isntIterable",{enumerable:!0,get:function(){return a.isntIterable}}),Object.defineProperty(e,"isntJson",{enumerable:!0,get:function(){return a.isntJson}}),Object.defineProperty(e,"isntNull",{enumerable:!0,get:function(){return a.isntNull}}),Object.defineProperty(e,"isntNullish",{enumerable:!0,get:function(){return a.isntNullish}}),Object.defineProperty(e,"isntNumber",{enumerable:!0,get:function(){return a.isntNumber}}),Object.defineProperty(e,"isntObject",{enumerable:!0,get:function(){return a.isntObject}}),Object.defineProperty(e,"isntPlainObject",{enumerable:!0,get:function(){return a.isntPlainObject}}),Object.defineProperty(e,"isntPromise",{enumerable:!0,get:function(){return a.isntPromise}}),Object.defineProperty(e,"isntPromiseLike",{enumerable:!0,get:function(){return a.isntPromiseLike}}),Object.defineProperty(e,"isntString",{enumerable:!0,get:function(){return a.isntString}}),Object.defineProperty(e,"isntUndefined",{enumerable:!0,get:function(){return a.isntUndefined}}),Object.defineProperty(e,"isntRegExp",{enumerable:!0,get:function(){return a.isntRegExp}}),Object.defineProperty(e,"isntSymbol",{enumerable:!0,get:function(){return a.isntSymbol}})}(h);var _o={exports:{}};
|
|
2
2
|
/* @license
|
|
3
3
|
Papa Parse
|
|
4
4
|
v5.3.2
|
|
5
5
|
https://github.com/mholt/PapaParse
|
|
6
6
|
License: MIT
|
|
7
|
-
*/function Os(t){return h.assert(t.length>0,"payload must be a non-empty array"),n=>{const r=new e.Headers(n.headers);return r.set("Content-Type","text/csv"),Object.assign(Object.assign({},n),{headers:r,payload:ws(t)})}}function ws(t){const e=Object.keys(t[0]);return gs.exports.unparse({data:t,fields:e})}function _s(t){return e=>Object.assign(Object.assign({},e),{signal:t})}function js(t,n){return r=>{const i=new e.Headers(r.headers);return i.set(t,n),Object.assign(Object.assign({},r),{headers:i})}}function As(t,n){return r=>{const i=new e.Headers(r.headers);return i.append(t,n),Object.assign(Object.assign({},r),{headers:i})}}function Es(t){return n=>{const r=new e.Headers(n.headers);for(const[e,n]of Object.entries(t))r.set(e,n);return Object.assign(Object.assign({},n),{headers:r})}}function Ps(t){return As("Accept",t)}function Ss(t){return e=>{const n=new URL(e.url.href);return n.host=t,Object.assign(Object.assign({},e),{url:n})}}function Is(t){return e=>{const n=new URL(e.url.href);return n.port=t.toString(),Object.assign(Object.assign({},e),{url:n})}}function ks(t){return e=>{const n=new URL(e.url.href);return n.pathname=t,Object.assign(Object.assign({},e),{url:n})}}function Rs(t){return e=>{const n=h.go((()=>{const t=new URL(e.url.href);return t.pathname=t.pathname.endsWith("/")?t.pathname:`${t.pathname}/`,t})),r=new URL(t.replace(/^\/*/,""),n);return Object.assign(Object.assign({},e),{url:r})}}function Ts(t){return e=>{const n=new URL(e.url.href);return n.search=t,Object.assign(Object.assign({},e),{url:n})}}function xs(t,e){return n=>{const r=new URL(n.url.href),i=new URLSearchParams(r.searchParams);return i.set(t,e.toString()),r.search=i.toString(),Object.assign(Object.assign({},n),{url:r})}}function Ns(t){return e=>{const n=new URL(e.url.href),r=new URLSearchParams(n.searchParams);for(const[e,n]of Object.entries(t))r.set(e,n.toString());return n.search=r.toString(),Object.assign(Object.assign({},e),{url:n})}}function Cs(t,e){return n=>{const r=new URL(n.url.href),i=new URLSearchParams(r.searchParams);return i.append(t,e.toString()),r.search=i.toString(),Object.assign(Object.assign({},n),{url:r})}}function Ds(t,n){return r=>{const i=r.payload instanceof e.FormData?function(t){const n=new e.FormData;for(const[e,r]of t.entries())n.append(e,r);return n}(r.payload):new e.FormData;return h.isArray(n)?n.forEach((e=>i.append(t,e))):i.append(t,n),Object.assign(Object.assign({},r),{payload:i})}}gs.exports=function t(){var e="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:{},n=!e.document&&!!e.postMessage,r=n&&/blob:/i.test((e.location||{}).protocol),i={},o=0,s={parse:function(n,r){var a=(r=r||{}).dynamicTyping||!1;if(w(a)&&(r.dynamicTypingFunction=a,a={}),r.dynamicTyping=a,r.transform=!!w(r.transform)&&r.transform,r.worker&&s.WORKERS_SUPPORTED){var c=function(){if(!s.WORKERS_SUPPORTED)return!1;var n,r,a=(n=e.URL||e.webkitURL||null,r=t.toString(),s.BLOB_URL||(s.BLOB_URL=n.createObjectURL(new Blob(["(",r,")();"],{type:"text/javascript"})))),c=new e.Worker(a);return c.onmessage=v,c.id=o++,i[c.id]=c}();return c.userStep=r.step,c.userChunk=r.chunk,c.userComplete=r.complete,c.userError=r.error,r.step=w(r.step),r.chunk=w(r.chunk),r.complete=w(r.complete),r.error=w(r.error),delete r.worker,void c.postMessage({input:n,config:r,workerId:c.id})}var y=null;return s.NODE_STREAM_INPUT,"string"==typeof n?y=r.download?new u(r):new l(r):!0===n.readable&&w(n.read)&&w(n.on)?y=new d(r):(e.File&&n instanceof File||n instanceof Object)&&(y=new f(r)),y.stream(n)},unparse:function(t,e){var n=!1,r=!0,i=",",o="\r\n",a='"',c=a+a,u=!1,f=null,l=!1;!function(){if("object"==typeof e){if("string"!=typeof e.delimiter||s.BAD_DELIMITERS.filter((function(t){return-1!==e.delimiter.indexOf(t)})).length||(i=e.delimiter),("boolean"==typeof e.quotes||"function"==typeof e.quotes||Array.isArray(e.quotes))&&(n=e.quotes),"boolean"!=typeof e.skipEmptyLines&&"string"!=typeof e.skipEmptyLines||(u=e.skipEmptyLines),"string"==typeof e.newline&&(o=e.newline),"string"==typeof e.quoteChar&&(a=e.quoteChar),"boolean"==typeof e.header&&(r=e.header),Array.isArray(e.columns)){if(0===e.columns.length)throw new Error("Option columns is empty");f=e.columns}void 0!==e.escapeChar&&(c=e.escapeChar+a),("boolean"==typeof e.escapeFormulae||e.escapeFormulae instanceof RegExp)&&(l=e.escapeFormulae instanceof RegExp?e.escapeFormulae:/^[=+\-@\t\r].*$/)}}();var d=new RegExp(h(a),"g");if("string"==typeof t&&(t=JSON.parse(t)),Array.isArray(t)){if(!t.length||Array.isArray(t[0]))return y(null,t,u);if("object"==typeof t[0])return y(f||Object.keys(t[0]),t,u)}else if("object"==typeof t)return"string"==typeof t.data&&(t.data=JSON.parse(t.data)),Array.isArray(t.data)&&(t.fields||(t.fields=t.meta&&t.meta.fields||f),t.fields||(t.fields=Array.isArray(t.data[0])?t.fields:"object"==typeof t.data[0]?Object.keys(t.data[0]):[]),Array.isArray(t.data[0])||"object"==typeof t.data[0]||(t.data=[t.data])),y(t.fields||[],t.data||[],u);throw new Error("Unable to serialize unrecognized input");function y(t,e,n){var s="";"string"==typeof t&&(t=JSON.parse(t)),"string"==typeof e&&(e=JSON.parse(e));var a=Array.isArray(t)&&0<t.length,c=!Array.isArray(e[0]);if(a&&r){for(var u=0;u<t.length;u++)0<u&&(s+=i),s+=p(t[u],u);0<e.length&&(s+=o)}for(var f=0;f<e.length;f++){var l=a?t.length:e[f].length,d=!1,y=a?0===Object.keys(e[f]).length:0===e[f].length;if(n&&!a&&(d="greedy"===n?""===e[f].join("").trim():1===e[f].length&&0===e[f][0].length),"greedy"===n&&a){for(var h=[],v=0;v<l;v++){var b=c?t[v]:v;h.push(e[f][b])}d=""===h.join("").trim()}if(!d){for(var m=0;m<l;m++){0<m&&!y&&(s+=i);var g=a&&c?t[m]:m;s+=p(e[f][g],m)}f<e.length-1&&(!n||0<l&&!y)&&(s+=o)}}return s}function p(t,e){if(null==t)return"";if(t.constructor===Date)return JSON.stringify(t).slice(1,25);var r=!1;l&&"string"==typeof t&&l.test(t)&&(t="'"+t,r=!0);var o=t.toString().replace(d,c);return(r=r||!0===n||"function"==typeof n&&n(t,e)||Array.isArray(n)&&n[e]||function(t,e){for(var n=0;n<e.length;n++)if(-1<t.indexOf(e[n]))return!0;return!1}(o,s.BAD_DELIMITERS)||-1<o.indexOf(i)||" "===o.charAt(0)||" "===o.charAt(o.length-1))?a+o+a:o}}};if(s.RECORD_SEP=String.fromCharCode(30),s.UNIT_SEP=String.fromCharCode(31),s.BYTE_ORDER_MARK="\ufeff",s.BAD_DELIMITERS=["\r","\n",'"',s.BYTE_ORDER_MARK],s.WORKERS_SUPPORTED=!n&&!!e.Worker,s.NODE_STREAM_INPUT=1,s.LocalChunkSize=10485760,s.RemoteChunkSize=5242880,s.DefaultDelimiter=",",s.Parser=p,s.ParserHandle=y,s.NetworkStreamer=u,s.FileStreamer=f,s.StringStreamer=l,s.ReadableStreamStreamer=d,e.jQuery){var a=e.jQuery;a.fn.parse=function(t){var n=t.config||{},r=[];return this.each((function(t){if("INPUT"!==a(this).prop("tagName").toUpperCase()||"file"!==a(this).attr("type").toLowerCase()||!e.FileReader||!this.files||0===this.files.length)return!0;for(var i=0;i<this.files.length;i++)r.push({file:this.files[i],inputElem:this,instanceConfig:a.extend({},n)})})),i(),this;function i(){if(0!==r.length){var e,n,i,c,u=r[0];if(w(t.before)){var f=t.before(u.file,u.inputElem);if("object"==typeof f){if("abort"===f.action)return e="AbortError",n=u.file,i=u.inputElem,c=f.reason,void(w(t.error)&&t.error({name:e},n,i,c));if("skip"===f.action)return void o();"object"==typeof f.config&&(u.instanceConfig=a.extend(u.instanceConfig,f.config))}else if("skip"===f)return void o()}var l=u.instanceConfig.complete;u.instanceConfig.complete=function(t){w(l)&&l(t,u.file,u.inputElem),o()},s.parse(u.file,u.instanceConfig)}else w(t.complete)&&t.complete()}function o(){r.splice(0,1),i()}}}function c(t){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},function(t){var e=g(t);e.chunkSize=parseInt(e.chunkSize),t.step||t.chunk||(e.chunkSize=null),this._handle=new y(e),(this._handle.streamer=this)._config=e}.call(this,t),this.parseChunk=function(t,n){if(this.isFirstChunk&&w(this._config.beforeFirstChunk)){var i=this._config.beforeFirstChunk(t);void 0!==i&&(t=i)}this.isFirstChunk=!1,this._halted=!1;var o=this._partialLine+t;this._partialLine="";var a=this._handle.parse(o,this._baseIndex,!this._finished);if(!this._handle.paused()&&!this._handle.aborted()){var c=a.meta.cursor;this._finished||(this._partialLine=o.substring(c-this._baseIndex),this._baseIndex=c),a&&a.data&&(this._rowCount+=a.data.length);var u=this._finished||this._config.preview&&this._rowCount>=this._config.preview;if(r)e.postMessage({results:a,workerId:s.WORKER_ID,finished:u});else if(w(this._config.chunk)&&!n){if(this._config.chunk(a,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);a=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(a.data),this._completeResults.errors=this._completeResults.errors.concat(a.errors),this._completeResults.meta=a.meta),this._completed||!u||!w(this._config.complete)||a&&a.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),u||a&&a.meta.paused||this._nextChunk(),a}this._halted=!0},this._sendError=function(t){w(this._config.error)?this._config.error(t):r&&this._config.error&&e.postMessage({workerId:s.WORKER_ID,error:t,finished:!1})}}function u(t){var e;(t=t||{}).chunkSize||(t.chunkSize=s.RemoteChunkSize),c.call(this,t),this._nextChunk=n?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(t){this._input=t,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(e=new XMLHttpRequest,this._config.withCredentials&&(e.withCredentials=this._config.withCredentials),n||(e.onload=O(this._chunkLoaded,this),e.onerror=O(this._chunkError,this)),e.open(this._config.downloadRequestBody?"POST":"GET",this._input,!n),this._config.downloadRequestHeaders){var t=this._config.downloadRequestHeaders;for(var r in t)e.setRequestHeader(r,t[r])}if(this._config.chunkSize){var i=this._start+this._config.chunkSize-1;e.setRequestHeader("Range","bytes="+this._start+"-"+i)}try{e.send(this._config.downloadRequestBody)}catch(t){this._chunkError(t.message)}n&&0===e.status&&this._chunkError()}},this._chunkLoaded=function(){4===e.readyState&&(e.status<200||400<=e.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:e.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(t){var e=t.getResponseHeader("Content-Range");return null===e?-1:parseInt(e.substring(e.lastIndexOf("/")+1))}(e),this.parseChunk(e.responseText)))},this._chunkError=function(t){var n=e.statusText||t;this._sendError(new Error(n))}}function f(t){var e,n;(t=t||{}).chunkSize||(t.chunkSize=s.LocalChunkSize),c.call(this,t);var r="undefined"!=typeof FileReader;this.stream=function(t){this._input=t,n=t.slice||t.webkitSlice||t.mozSlice,r?((e=new FileReader).onload=O(this._chunkLoaded,this),e.onerror=O(this._chunkError,this)):e=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var t=this._input;if(this._config.chunkSize){var i=Math.min(this._start+this._config.chunkSize,this._input.size);t=n.call(t,this._start,i)}var o=e.readAsText(t,this._config.encoding);r||this._chunkLoaded({target:{result:o}})},this._chunkLoaded=function(t){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(t.target.result)},this._chunkError=function(){this._sendError(e.error)}}function l(t){var e;c.call(this,t=t||{}),this.stream=function(t){return e=t,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var t,n=this._config.chunkSize;return n?(t=e.substring(0,n),e=e.substring(n)):(t=e,e=""),this._finished=!e,this.parseChunk(t)}}}function d(t){c.call(this,t=t||{});var e=[],n=!0,r=!1;this.pause=function(){c.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){c.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(t){this._input=t,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){r&&1===e.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),e.length?this.parseChunk(e.shift()):n=!0},this._streamData=O((function(t){try{e.push("string"==typeof t?t:t.toString(this._config.encoding)),n&&(n=!1,this._checkIsFinished(),this.parseChunk(e.shift()))}catch(t){this._streamError(t)}}),this),this._streamError=O((function(t){this._streamCleanUp(),this._sendError(t)}),this),this._streamEnd=O((function(){this._streamCleanUp(),r=!0,this._streamData("")}),this),this._streamCleanUp=O((function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)}),this)}function y(t){var e,n,r,i=Math.pow(2,53),o=-i,a=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,c=/^(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))$/,u=this,f=0,l=0,d=!1,y=!1,v=[],b={data:[],errors:[],meta:{}};if(w(t.step)){var m=t.step;t.step=function(e){if(b=e,j())_();else{if(_(),0===b.data.length)return;f+=e.data.length,t.preview&&f>t.preview?n.abort():(b.data=b.data[0],m(b,u))}}}function O(e){return"greedy"===t.skipEmptyLines?""===e.join("").trim():1===e.length&&0===e[0].length}function _(){return b&&r&&(E("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+s.DefaultDelimiter+"'"),r=!1),t.skipEmptyLines&&(b.data=b.data.filter((function(t){return!O(t)}))),j()&&function(){if(b)if(Array.isArray(b.data[0])){for(var e=0;j()&&e<b.data.length;e++)b.data[e].forEach(n);b.data.splice(0,1)}else b.data.forEach(n);function n(e,n){w(t.transformHeader)&&(e=t.transformHeader(e,n)),v.push(e)}}(),function(){if(!b||!t.header&&!t.dynamicTyping&&!t.transform)return b;function e(e,n){var r,i=t.header?{}:[];for(r=0;r<e.length;r++){var o=r,s=e[r];t.header&&(o=r>=v.length?"__parsed_extra":v[r]),t.transform&&(s=t.transform(s,o)),s=A(o,s),"__parsed_extra"===o?(i[o]=i[o]||[],i[o].push(s)):i[o]=s}return t.header&&(r>v.length?E("FieldMismatch","TooManyFields","Too many fields: expected "+v.length+" fields but parsed "+r,l+n):r<v.length&&E("FieldMismatch","TooFewFields","Too few fields: expected "+v.length+" fields but parsed "+r,l+n)),i}var n=1;return!b.data.length||Array.isArray(b.data[0])?(b.data=b.data.map(e),n=b.data.length):b.data=e(b.data,0),t.header&&b.meta&&(b.meta.fields=v),l+=n,b}()}function j(){return t.header&&0===v.length}function A(e,n){return r=e,t.dynamicTypingFunction&&void 0===t.dynamicTyping[r]&&(t.dynamicTyping[r]=t.dynamicTypingFunction(r)),!0===(t.dynamicTyping[r]||t.dynamicTyping)?"true"===n||"TRUE"===n||"false"!==n&&"FALSE"!==n&&(function(t){if(a.test(t)){var e=parseFloat(t);if(o<e&&e<i)return!0}return!1}(n)?parseFloat(n):c.test(n)?new Date(n):""===n?null:n):n;var r}function E(t,e,n,r){var i={type:t,code:e,message:n};void 0!==r&&(i.row=r),b.errors.push(i)}this.parse=function(i,o,a){var c=t.quoteChar||'"';if(t.newline||(t.newline=function(t,e){t=t.substring(0,1048576);var n=new RegExp(h(e)+"([^]*?)"+h(e),"gm"),r=(t=t.replace(n,"")).split("\r"),i=t.split("\n"),o=1<i.length&&i[0].length<r[0].length;if(1===r.length||o)return"\n";for(var s=0,a=0;a<r.length;a++)"\n"===r[a][0]&&s++;return s>=r.length/2?"\r\n":"\r"}(i,c)),r=!1,t.delimiter)w(t.delimiter)&&(t.delimiter=t.delimiter(i),b.meta.delimiter=t.delimiter);else{var u=function(e,n,r,i,o){var a,c,u,f;o=o||[",","\t","|",";",s.RECORD_SEP,s.UNIT_SEP];for(var l=0;l<o.length;l++){var d=o[l],y=0,h=0,v=0;u=void 0;for(var b=new p({comments:i,delimiter:d,newline:n,preview:10}).parse(e),m=0;m<b.data.length;m++)if(r&&O(b.data[m]))v++;else{var g=b.data[m].length;h+=g,void 0!==u?0<g&&(y+=Math.abs(g-u),u=g):u=g}0<b.data.length&&(h/=b.data.length-v),(void 0===c||y<=c)&&(void 0===f||f<h)&&1.99<h&&(c=y,a=d,f=h)}return{successful:!!(t.delimiter=a),bestDelimiter:a}}(i,t.newline,t.skipEmptyLines,t.comments,t.delimitersToGuess);u.successful?t.delimiter=u.bestDelimiter:(r=!0,t.delimiter=s.DefaultDelimiter),b.meta.delimiter=t.delimiter}var f=g(t);return t.preview&&t.header&&f.preview++,e=i,n=new p(f),b=n.parse(e,o,a),_(),d?{meta:{paused:!0}}:b||{meta:{paused:!1}}},this.paused=function(){return d},this.pause=function(){d=!0,n.abort(),e=w(t.chunk)?"":e.substring(n.getCharIndex())},this.resume=function(){u.streamer._halted?(d=!1,u.streamer.parseChunk(e,!0)):setTimeout(u.resume,3)},this.aborted=function(){return y},this.abort=function(){y=!0,n.abort(),b.meta.aborted=!0,w(t.complete)&&t.complete(b),e=""}}function h(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function p(t){var e,n=(t=t||{}).delimiter,r=t.newline,i=t.comments,o=t.step,a=t.preview,c=t.fastMode,u=e=void 0===t.quoteChar||null===t.quoteChar?'"':t.quoteChar;if(void 0!==t.escapeChar&&(u=t.escapeChar),("string"!=typeof n||-1<s.BAD_DELIMITERS.indexOf(n))&&(n=","),i===n)throw new Error("Comment character same as delimiter");!0===i?i="#":("string"!=typeof i||-1<s.BAD_DELIMITERS.indexOf(i))&&(i=!1),"\n"!==r&&"\r"!==r&&"\r\n"!==r&&(r="\n");var f=0,l=!1;this.parse=function(t,s,d){if("string"!=typeof t)throw new Error("Input must be a string");var y=t.length,p=n.length,v=r.length,b=i.length,m=w(o),g=[],O=[],_=[],j=f=0;if(!t)return F();if(c||!1!==c&&-1===t.indexOf(e)){for(var A=t.split(r),E=0;E<A.length;E++){if(_=A[E],f+=_.length,E!==A.length-1)f+=r.length;else if(d)return F();if(!i||_.substring(0,b)!==i){if(m){if(g=[],x(_.split(n)),B(),l)return F()}else x(_.split(n));if(a&&a<=E)return g=g.slice(0,a),F(!0)}}return F()}for(var P=t.indexOf(n,f),S=t.indexOf(r,f),I=new RegExp(h(u)+h(e),"g"),k=t.indexOf(e,f);;)if(t[f]!==e)if(i&&0===_.length&&t.substring(f,f+b)===i){if(-1===S)return F();f=S+v,S=t.indexOf(r,f),P=t.indexOf(n,f)}else if(-1!==P&&(P<S||-1===S))_.push(t.substring(f,P)),f=P+p,P=t.indexOf(n,f);else{if(-1===S)break;if(_.push(t.substring(f,S)),D(S+v),m&&(B(),l))return F();if(a&&g.length>=a)return F(!0)}else for(k=f,f++;;){if(-1===(k=t.indexOf(e,k+1)))return d||O.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:g.length,index:f}),C();if(k===y-1)return C(t.substring(f,k).replace(I,e));if(e!==u||t[k+1]!==u){if(e===u||0===k||t[k-1]!==u){-1!==P&&P<k+1&&(P=t.indexOf(n,k+1)),-1!==S&&S<k+1&&(S=t.indexOf(r,k+1));var R=N(-1===S?P:Math.min(P,S));if(t.substr(k+1+R,p)===n){_.push(t.substring(f,k).replace(I,e)),t[f=k+1+R+p]!==e&&(k=t.indexOf(e,f)),P=t.indexOf(n,f),S=t.indexOf(r,f);break}var T=N(S);if(t.substring(k+1+T,k+1+T+v)===r){if(_.push(t.substring(f,k).replace(I,e)),D(k+1+T+v),P=t.indexOf(n,f),k=t.indexOf(e,f),m&&(B(),l))return F();if(a&&g.length>=a)return F(!0);break}O.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:g.length,index:f}),k++}}else k++}return C();function x(t){g.push(t),j=f}function N(e){var n=0;if(-1!==e){var r=t.substring(k+1,e);r&&""===r.trim()&&(n=r.length)}return n}function C(e){return d||(void 0===e&&(e=t.substring(f)),_.push(e),f=y,x(_),m&&B()),F()}function D(e){f=e,x(_),_=[],S=t.indexOf(r,f)}function F(t){return{data:g,errors:O,meta:{delimiter:n,linebreak:r,aborted:l,truncated:!!t,cursor:j+(s||0)}}}function B(){o(F()),g=[],O=[]}},this.abort=function(){l=!0},this.getCharIndex=function(){return f}}function v(t){var e=t.data,n=i[e.workerId],r=!1;if(e.error)n.userError(e.error,e.file);else if(e.results&&e.results.data){var o={abort:function(){r=!0,b(e.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:m,resume:m};if(w(n.userStep)){for(var s=0;s<e.results.data.length&&(n.userStep({data:e.results.data[s],errors:e.results.errors,meta:e.results.meta},o),!r);s++);delete e.results}else w(n.userChunk)&&(n.userChunk(e.results,o,e.file),delete e.results)}e.finished&&!r&&b(e.workerId,e.results)}function b(t,e){var n=i[t];w(n.userComplete)&&n.userComplete(e),n.terminate(),delete i[t]}function m(){throw new Error("Not implemented.")}function g(t){if("object"!=typeof t||null===t)return t;var e=Array.isArray(t)?[]:{};for(var n in t)e[n]=g(t[n]);return e}function O(t,e){return function(){t.apply(e,arguments)}}function w(t){return"function"==typeof t}return r&&(e.onmessage=function(t){var n=t.data;if(void 0===s.WORKER_ID&&n&&(s.WORKER_ID=n.workerId),"string"==typeof n.input)e.postMessage({workerId:s.WORKER_ID,results:s.parse(n.input,n.config),finished:!0});else if(e.File&&n.input instanceof File||n.input instanceof Object){var r=s.parse(n.input,n.config);r&&e.postMessage({workerId:s.WORKER_ID,results:r,finished:!0})}}),(u.prototype=Object.create(c.prototype)).constructor=u,(f.prototype=Object.create(c.prototype)).constructor=f,(l.prototype=Object.create(l.prototype)).constructor=l,(d.prototype=Object.create(c.prototype)).constructor=d,s}();const Fs="function"==typeof btoa,Bs="function"==typeof Buffer;"function"==typeof TextDecoder&&new TextDecoder,"function"==typeof TextEncoder&&new TextEncoder;const Ls=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=");(t=>{let e={};Ls.forEach(((t,n)=>e[t]=n))})(),String.fromCharCode.bind(String),"function"==typeof Uint8Array.from&&Uint8Array.from.bind(Uint8Array);const Us=Fs?t=>btoa(t):Bs?t=>Buffer.from(t,"binary").toString("base64"):t=>{let e,n,r,i,o="";const s=t.length%3;for(let s=0;s<t.length;){if((n=t.charCodeAt(s++))>255||(r=t.charCodeAt(s++))>255||(i=t.charCodeAt(s++))>255)throw new TypeError("invalid character found");e=n<<16|r<<8|i,o+=Ls[e>>18&63]+Ls[e>>12&63]+Ls[e>>6&63]+Ls[63&e]}return s?o.slice(0,s-3)+"===".substring(s):o};function Ms(t,e){return js("Authorization","Basic "+Us(`${t}:${e}`))}function zs(t){return js("Authorization",`Bearer ${t}`)}function qs(t=!0){return e=>Object.assign(Object.assign({},e),{keepalive:t})}export{Ps as accept,As as appendHeader,Rs as appendPathname,Cs as appendSearchParam,Ms as basicAuth,zs as bearerAuth,Os as csv,hs as del,Ds as formDataField,us as get,fs as head,js as header,Es as headers,Ss as host,ms as json,qs as keepalive,ys as patch,ks as pathname,Is as port,ls as post,ds as put,Ts as search,xs as searchParam,Ns as searchParams,_s as signal,bs as text,vs as url};
|
|
7
|
+
*/function Ao(e){return h.assert(e.length>0,"payload must be a non-empty array"),n=>{const r=new t.Headers(n.headers);return r.set("Content-Type","text/csv"),Object.assign(Object.assign({},n),{headers:r,payload:jo(e)})}}function jo(e){const t=Object.keys(e[0]);return _o.exports.unparse({data:e,fields:t})}function Eo(e){return t=>Object.assign(Object.assign({},t),{signal:e})}function So(e,n){return r=>{const i=new t.Headers(r.headers);return i.set(e,n),Object.assign(Object.assign({},r),{headers:i})}}function Po(e,n){return r=>{const i=new t.Headers(r.headers);return i.append(e,n),Object.assign(Object.assign({},r),{headers:i})}}function ko(e){return n=>{const r=new t.Headers(n.headers);for(const[t,n]of Object.entries(e))r.set(t,n);return Object.assign(Object.assign({},n),{headers:r})}}function Io(e){return Po("Accept",e)}function To(e){return t=>{const n=new URL(t.url.href);return n.host=e,Object.assign(Object.assign({},t),{url:n})}}function xo(e){return t=>{const n=new URL(t.url.href);return n.port=e.toString(),Object.assign(Object.assign({},t),{url:n})}}function Ro(e){return t=>{const n=new URL(t.url.href);return n.pathname=e,Object.assign(Object.assign({},t),{url:n})}}function No(e){return t=>{const n=h.go((()=>{const e=new URL(t.url.href);return e.pathname=e.pathname.endsWith("/")?e.pathname:`${e.pathname}/`,e})),r=new URL(e.replace(/^\/*/,""),n);return r.search=n.search,r.hash=n.hash,Object.assign(Object.assign({},t),{url:r})}}function Co(e){return t=>{const n=new URL(t.url.href);return n.search=e,Object.assign(Object.assign({},t),{url:n})}}function Do(e,t){return n=>{const r=new URL(n.url.href),i=new URLSearchParams(r.searchParams);return i.set(e,t.toString()),r.search=i.toString(),Object.assign(Object.assign({},n),{url:r})}}function Bo(e){return t=>{const n=new URL(t.url.href),r=new URLSearchParams(n.searchParams);for(const[t,n]of Object.entries(e))r.set(t,n.toString());return n.search=r.toString(),Object.assign(Object.assign({},t),{url:n})}}function Fo(e,t){return n=>{const r=new URL(n.url.href),i=new URLSearchParams(r.searchParams);return i.append(e,t.toString()),r.search=i.toString(),Object.assign(Object.assign({},n),{url:r})}}function Lo(e,n){return r=>{const i=r.payload instanceof t.FormData?function(e){const n=new t.FormData;for(const[t,r]of e.entries())n.append(t,r);return n}(r.payload):new t.FormData;return h.isArray(n)?n.forEach((t=>i.append(e,t))):i.append(e,n),Object.assign(Object.assign({},r),{payload:i})}}_o.exports=function e(){var t="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==t?t:{},n=!t.document&&!!t.postMessage,r=n&&/blob:/i.test((t.location||{}).protocol),i={},o=0,s={parse:function(n,r){var a=(r=r||{}).dynamicTyping||!1;if(w(a)&&(r.dynamicTypingFunction=a,a={}),r.dynamicTyping=a,r.transform=!!w(r.transform)&&r.transform,r.worker&&s.WORKERS_SUPPORTED){var c=function(){if(!s.WORKERS_SUPPORTED)return!1;var n,r,a=(n=t.URL||t.webkitURL||null,r=e.toString(),s.BLOB_URL||(s.BLOB_URL=n.createObjectURL(new Blob(["(",r,")();"],{type:"text/javascript"})))),c=new t.Worker(a);return c.onmessage=m,c.id=o++,i[c.id]=c}();return c.userStep=r.step,c.userChunk=r.chunk,c.userComplete=r.complete,c.userError=r.error,r.step=w(r.step),r.chunk=w(r.chunk),r.complete=w(r.complete),r.error=w(r.error),delete r.worker,void c.postMessage({input:n,config:r,workerId:c.id})}var y=null;return s.NODE_STREAM_INPUT,"string"==typeof n?y=r.download?new u(r):new l(r):!0===n.readable&&w(n.read)&&w(n.on)?y=new d(r):(t.File&&n instanceof File||n instanceof Object)&&(y=new f(r)),y.stream(n)},unparse:function(e,t){var n=!1,r=!0,i=",",o="\r\n",a='"',c=a+a,u=!1,f=null,l=!1;!function(){if("object"==typeof t){if("string"!=typeof t.delimiter||s.BAD_DELIMITERS.filter((function(e){return-1!==t.delimiter.indexOf(e)})).length||(i=t.delimiter),("boolean"==typeof t.quotes||"function"==typeof t.quotes||Array.isArray(t.quotes))&&(n=t.quotes),"boolean"!=typeof t.skipEmptyLines&&"string"!=typeof t.skipEmptyLines||(u=t.skipEmptyLines),"string"==typeof t.newline&&(o=t.newline),"string"==typeof t.quoteChar&&(a=t.quoteChar),"boolean"==typeof t.header&&(r=t.header),Array.isArray(t.columns)){if(0===t.columns.length)throw new Error("Option columns is empty");f=t.columns}void 0!==t.escapeChar&&(c=t.escapeChar+a),("boolean"==typeof t.escapeFormulae||t.escapeFormulae instanceof RegExp)&&(l=t.escapeFormulae instanceof RegExp?t.escapeFormulae:/^[=+\-@\t\r].*$/)}}();var d=new RegExp(h(a),"g");if("string"==typeof e&&(e=JSON.parse(e)),Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return y(null,e,u);if("object"==typeof e[0])return y(f||Object.keys(e[0]),e,u)}else if("object"==typeof e)return"string"==typeof e.data&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||(e.fields=e.meta&&e.meta.fields||f),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:"object"==typeof e.data[0]?Object.keys(e.data[0]):[]),Array.isArray(e.data[0])||"object"==typeof e.data[0]||(e.data=[e.data])),y(e.fields||[],e.data||[],u);throw new Error("Unable to serialize unrecognized input");function y(e,t,n){var s="";"string"==typeof e&&(e=JSON.parse(e)),"string"==typeof t&&(t=JSON.parse(t));var a=Array.isArray(e)&&0<e.length,c=!Array.isArray(t[0]);if(a&&r){for(var u=0;u<e.length;u++)0<u&&(s+=i),s+=p(e[u],u);0<t.length&&(s+=o)}for(var f=0;f<t.length;f++){var l=a?e.length:t[f].length,d=!1,y=a?0===Object.keys(t[f]).length:0===t[f].length;if(n&&!a&&(d="greedy"===n?""===t[f].join("").trim():1===t[f].length&&0===t[f][0].length),"greedy"===n&&a){for(var h=[],m=0;m<l;m++){var v=c?e[m]:m;h.push(t[f][v])}d=""===h.join("").trim()}if(!d){for(var b=0;b<l;b++){0<b&&!y&&(s+=i);var g=a&&c?e[b]:b;s+=p(t[f][g],b)}f<t.length-1&&(!n||0<l&&!y)&&(s+=o)}}return s}function p(e,t){if(null==e)return"";if(e.constructor===Date)return JSON.stringify(e).slice(1,25);var r=!1;l&&"string"==typeof e&&l.test(e)&&(e="'"+e,r=!0);var o=e.toString().replace(d,c);return(r=r||!0===n||"function"==typeof n&&n(e,t)||Array.isArray(n)&&n[t]||function(e,t){for(var n=0;n<t.length;n++)if(-1<e.indexOf(t[n]))return!0;return!1}(o,s.BAD_DELIMITERS)||-1<o.indexOf(i)||" "===o.charAt(0)||" "===o.charAt(o.length-1))?a+o+a:o}}};if(s.RECORD_SEP=String.fromCharCode(30),s.UNIT_SEP=String.fromCharCode(31),s.BYTE_ORDER_MARK="\ufeff",s.BAD_DELIMITERS=["\r","\n",'"',s.BYTE_ORDER_MARK],s.WORKERS_SUPPORTED=!n&&!!t.Worker,s.NODE_STREAM_INPUT=1,s.LocalChunkSize=10485760,s.RemoteChunkSize=5242880,s.DefaultDelimiter=",",s.Parser=p,s.ParserHandle=y,s.NetworkStreamer=u,s.FileStreamer=f,s.StringStreamer=l,s.ReadableStreamStreamer=d,t.jQuery){var a=t.jQuery;a.fn.parse=function(e){var n=e.config||{},r=[];return this.each((function(e){if("INPUT"!==a(this).prop("tagName").toUpperCase()||"file"!==a(this).attr("type").toLowerCase()||!t.FileReader||!this.files||0===this.files.length)return!0;for(var i=0;i<this.files.length;i++)r.push({file:this.files[i],inputElem:this,instanceConfig:a.extend({},n)})})),i(),this;function i(){if(0!==r.length){var t,n,i,c,u=r[0];if(w(e.before)){var f=e.before(u.file,u.inputElem);if("object"==typeof f){if("abort"===f.action)return t="AbortError",n=u.file,i=u.inputElem,c=f.reason,void(w(e.error)&&e.error({name:t},n,i,c));if("skip"===f.action)return void o();"object"==typeof f.config&&(u.instanceConfig=a.extend(u.instanceConfig,f.config))}else if("skip"===f)return void o()}var l=u.instanceConfig.complete;u.instanceConfig.complete=function(e){w(l)&&l(e,u.file,u.inputElem),o()},s.parse(u.file,u.instanceConfig)}else w(e.complete)&&e.complete()}function o(){r.splice(0,1),i()}}}function c(e){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},function(e){var t=g(e);t.chunkSize=parseInt(t.chunkSize),e.step||e.chunk||(t.chunkSize=null),this._handle=new y(t),(this._handle.streamer=this)._config=t}.call(this,e),this.parseChunk=function(e,n){if(this.isFirstChunk&&w(this._config.beforeFirstChunk)){var i=this._config.beforeFirstChunk(e);void 0!==i&&(e=i)}this.isFirstChunk=!1,this._halted=!1;var o=this._partialLine+e;this._partialLine="";var a=this._handle.parse(o,this._baseIndex,!this._finished);if(!this._handle.paused()&&!this._handle.aborted()){var c=a.meta.cursor;this._finished||(this._partialLine=o.substring(c-this._baseIndex),this._baseIndex=c),a&&a.data&&(this._rowCount+=a.data.length);var u=this._finished||this._config.preview&&this._rowCount>=this._config.preview;if(r)t.postMessage({results:a,workerId:s.WORKER_ID,finished:u});else if(w(this._config.chunk)&&!n){if(this._config.chunk(a,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);a=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(a.data),this._completeResults.errors=this._completeResults.errors.concat(a.errors),this._completeResults.meta=a.meta),this._completed||!u||!w(this._config.complete)||a&&a.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),u||a&&a.meta.paused||this._nextChunk(),a}this._halted=!0},this._sendError=function(e){w(this._config.error)?this._config.error(e):r&&this._config.error&&t.postMessage({workerId:s.WORKER_ID,error:e,finished:!1})}}function u(e){var t;(e=e||{}).chunkSize||(e.chunkSize=s.RemoteChunkSize),c.call(this,e),this._nextChunk=n?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(e){this._input=e,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(t=new XMLHttpRequest,this._config.withCredentials&&(t.withCredentials=this._config.withCredentials),n||(t.onload=O(this._chunkLoaded,this),t.onerror=O(this._chunkError,this)),t.open(this._config.downloadRequestBody?"POST":"GET",this._input,!n),this._config.downloadRequestHeaders){var e=this._config.downloadRequestHeaders;for(var r in e)t.setRequestHeader(r,e[r])}if(this._config.chunkSize){var i=this._start+this._config.chunkSize-1;t.setRequestHeader("Range","bytes="+this._start+"-"+i)}try{t.send(this._config.downloadRequestBody)}catch(e){this._chunkError(e.message)}n&&0===t.status&&this._chunkError()}},this._chunkLoaded=function(){4===t.readyState&&(t.status<200||400<=t.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:t.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(e){var t=e.getResponseHeader("Content-Range");return null===t?-1:parseInt(t.substring(t.lastIndexOf("/")+1))}(t),this.parseChunk(t.responseText)))},this._chunkError=function(e){var n=t.statusText||e;this._sendError(new Error(n))}}function f(e){var t,n;(e=e||{}).chunkSize||(e.chunkSize=s.LocalChunkSize),c.call(this,e);var r="undefined"!=typeof FileReader;this.stream=function(e){this._input=e,n=e.slice||e.webkitSlice||e.mozSlice,r?((t=new FileReader).onload=O(this._chunkLoaded,this),t.onerror=O(this._chunkError,this)):t=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var e=this._input;if(this._config.chunkSize){var i=Math.min(this._start+this._config.chunkSize,this._input.size);e=n.call(e,this._start,i)}var o=t.readAsText(e,this._config.encoding);r||this._chunkLoaded({target:{result:o}})},this._chunkLoaded=function(e){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(e.target.result)},this._chunkError=function(){this._sendError(t.error)}}function l(e){var t;c.call(this,e=e||{}),this.stream=function(e){return t=e,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var e,n=this._config.chunkSize;return n?(e=t.substring(0,n),t=t.substring(n)):(e=t,t=""),this._finished=!t,this.parseChunk(e)}}}function d(e){c.call(this,e=e||{});var t=[],n=!0,r=!1;this.pause=function(){c.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){c.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(e){this._input=e,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){r&&1===t.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),t.length?this.parseChunk(t.shift()):n=!0},this._streamData=O((function(e){try{t.push("string"==typeof e?e:e.toString(this._config.encoding)),n&&(n=!1,this._checkIsFinished(),this.parseChunk(t.shift()))}catch(e){this._streamError(e)}}),this),this._streamError=O((function(e){this._streamCleanUp(),this._sendError(e)}),this),this._streamEnd=O((function(){this._streamCleanUp(),r=!0,this._streamData("")}),this),this._streamCleanUp=O((function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)}),this)}function y(e){var t,n,r,i=Math.pow(2,53),o=-i,a=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,c=/^(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))$/,u=this,f=0,l=0,d=!1,y=!1,m=[],v={data:[],errors:[],meta:{}};if(w(e.step)){var b=e.step;e.step=function(t){if(v=t,A())_();else{if(_(),0===v.data.length)return;f+=t.data.length,e.preview&&f>e.preview?n.abort():(v.data=v.data[0],b(v,u))}}}function O(t){return"greedy"===e.skipEmptyLines?""===t.join("").trim():1===t.length&&0===t[0].length}function _(){return v&&r&&(E("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+s.DefaultDelimiter+"'"),r=!1),e.skipEmptyLines&&(v.data=v.data.filter((function(e){return!O(e)}))),A()&&function(){if(v)if(Array.isArray(v.data[0])){for(var t=0;A()&&t<v.data.length;t++)v.data[t].forEach(n);v.data.splice(0,1)}else v.data.forEach(n);function n(t,n){w(e.transformHeader)&&(t=e.transformHeader(t,n)),m.push(t)}}(),function(){if(!v||!e.header&&!e.dynamicTyping&&!e.transform)return v;function t(t,n){var r,i=e.header?{}:[];for(r=0;r<t.length;r++){var o=r,s=t[r];e.header&&(o=r>=m.length?"__parsed_extra":m[r]),e.transform&&(s=e.transform(s,o)),s=j(o,s),"__parsed_extra"===o?(i[o]=i[o]||[],i[o].push(s)):i[o]=s}return e.header&&(r>m.length?E("FieldMismatch","TooManyFields","Too many fields: expected "+m.length+" fields but parsed "+r,l+n):r<m.length&&E("FieldMismatch","TooFewFields","Too few fields: expected "+m.length+" fields but parsed "+r,l+n)),i}var n=1;return!v.data.length||Array.isArray(v.data[0])?(v.data=v.data.map(t),n=v.data.length):v.data=t(v.data,0),e.header&&v.meta&&(v.meta.fields=m),l+=n,v}()}function A(){return e.header&&0===m.length}function j(t,n){return r=t,e.dynamicTypingFunction&&void 0===e.dynamicTyping[r]&&(e.dynamicTyping[r]=e.dynamicTypingFunction(r)),!0===(e.dynamicTyping[r]||e.dynamicTyping)?"true"===n||"TRUE"===n||"false"!==n&&"FALSE"!==n&&(function(e){if(a.test(e)){var t=parseFloat(e);if(o<t&&t<i)return!0}return!1}(n)?parseFloat(n):c.test(n)?new Date(n):""===n?null:n):n;var r}function E(e,t,n,r){var i={type:e,code:t,message:n};void 0!==r&&(i.row=r),v.errors.push(i)}this.parse=function(i,o,a){var c=e.quoteChar||'"';if(e.newline||(e.newline=function(e,t){e=e.substring(0,1048576);var n=new RegExp(h(t)+"([^]*?)"+h(t),"gm"),r=(e=e.replace(n,"")).split("\r"),i=e.split("\n"),o=1<i.length&&i[0].length<r[0].length;if(1===r.length||o)return"\n";for(var s=0,a=0;a<r.length;a++)"\n"===r[a][0]&&s++;return s>=r.length/2?"\r\n":"\r"}(i,c)),r=!1,e.delimiter)w(e.delimiter)&&(e.delimiter=e.delimiter(i),v.meta.delimiter=e.delimiter);else{var u=function(t,n,r,i,o){var a,c,u,f;o=o||[",","\t","|",";",s.RECORD_SEP,s.UNIT_SEP];for(var l=0;l<o.length;l++){var d=o[l],y=0,h=0,m=0;u=void 0;for(var v=new p({comments:i,delimiter:d,newline:n,preview:10}).parse(t),b=0;b<v.data.length;b++)if(r&&O(v.data[b]))m++;else{var g=v.data[b].length;h+=g,void 0!==u?0<g&&(y+=Math.abs(g-u),u=g):u=g}0<v.data.length&&(h/=v.data.length-m),(void 0===c||y<=c)&&(void 0===f||f<h)&&1.99<h&&(c=y,a=d,f=h)}return{successful:!!(e.delimiter=a),bestDelimiter:a}}(i,e.newline,e.skipEmptyLines,e.comments,e.delimitersToGuess);u.successful?e.delimiter=u.bestDelimiter:(r=!0,e.delimiter=s.DefaultDelimiter),v.meta.delimiter=e.delimiter}var f=g(e);return e.preview&&e.header&&f.preview++,t=i,n=new p(f),v=n.parse(t,o,a),_(),d?{meta:{paused:!0}}:v||{meta:{paused:!1}}},this.paused=function(){return d},this.pause=function(){d=!0,n.abort(),t=w(e.chunk)?"":t.substring(n.getCharIndex())},this.resume=function(){u.streamer._halted?(d=!1,u.streamer.parseChunk(t,!0)):setTimeout(u.resume,3)},this.aborted=function(){return y},this.abort=function(){y=!0,n.abort(),v.meta.aborted=!0,w(e.complete)&&e.complete(v),t=""}}function h(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function p(e){var t,n=(e=e||{}).delimiter,r=e.newline,i=e.comments,o=e.step,a=e.preview,c=e.fastMode,u=t=void 0===e.quoteChar||null===e.quoteChar?'"':e.quoteChar;if(void 0!==e.escapeChar&&(u=e.escapeChar),("string"!=typeof n||-1<s.BAD_DELIMITERS.indexOf(n))&&(n=","),i===n)throw new Error("Comment character same as delimiter");!0===i?i="#":("string"!=typeof i||-1<s.BAD_DELIMITERS.indexOf(i))&&(i=!1),"\n"!==r&&"\r"!==r&&"\r\n"!==r&&(r="\n");var f=0,l=!1;this.parse=function(e,s,d){if("string"!=typeof e)throw new Error("Input must be a string");var y=e.length,p=n.length,m=r.length,v=i.length,b=w(o),g=[],O=[],_=[],A=f=0;if(!e)return B();if(c||!1!==c&&-1===e.indexOf(t)){for(var j=e.split(r),E=0;E<j.length;E++){if(_=j[E],f+=_.length,E!==j.length-1)f+=r.length;else if(d)return B();if(!i||_.substring(0,v)!==i){if(b){if(g=[],R(_.split(n)),F(),l)return B()}else R(_.split(n));if(a&&a<=E)return g=g.slice(0,a),B(!0)}}return B()}for(var S=e.indexOf(n,f),P=e.indexOf(r,f),k=new RegExp(h(u)+h(t),"g"),I=e.indexOf(t,f);;)if(e[f]!==t)if(i&&0===_.length&&e.substring(f,f+v)===i){if(-1===P)return B();f=P+m,P=e.indexOf(r,f),S=e.indexOf(n,f)}else if(-1!==S&&(S<P||-1===P))_.push(e.substring(f,S)),f=S+p,S=e.indexOf(n,f);else{if(-1===P)break;if(_.push(e.substring(f,P)),D(P+m),b&&(F(),l))return B();if(a&&g.length>=a)return B(!0)}else for(I=f,f++;;){if(-1===(I=e.indexOf(t,I+1)))return d||O.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:g.length,index:f}),C();if(I===y-1)return C(e.substring(f,I).replace(k,t));if(t!==u||e[I+1]!==u){if(t===u||0===I||e[I-1]!==u){-1!==S&&S<I+1&&(S=e.indexOf(n,I+1)),-1!==P&&P<I+1&&(P=e.indexOf(r,I+1));var T=N(-1===P?S:Math.min(S,P));if(e.substr(I+1+T,p)===n){_.push(e.substring(f,I).replace(k,t)),e[f=I+1+T+p]!==t&&(I=e.indexOf(t,f)),S=e.indexOf(n,f),P=e.indexOf(r,f);break}var x=N(P);if(e.substring(I+1+x,I+1+x+m)===r){if(_.push(e.substring(f,I).replace(k,t)),D(I+1+x+m),S=e.indexOf(n,f),I=e.indexOf(t,f),b&&(F(),l))return B();if(a&&g.length>=a)return B(!0);break}O.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:g.length,index:f}),I++}}else I++}return C();function R(e){g.push(e),A=f}function N(t){var n=0;if(-1!==t){var r=e.substring(I+1,t);r&&""===r.trim()&&(n=r.length)}return n}function C(t){return d||(void 0===t&&(t=e.substring(f)),_.push(t),f=y,R(_),b&&F()),B()}function D(t){f=t,R(_),_=[],P=e.indexOf(r,f)}function B(e){return{data:g,errors:O,meta:{delimiter:n,linebreak:r,aborted:l,truncated:!!e,cursor:A+(s||0)}}}function F(){o(B()),g=[],O=[]}},this.abort=function(){l=!0},this.getCharIndex=function(){return f}}function m(e){var t=e.data,n=i[t.workerId],r=!1;if(t.error)n.userError(t.error,t.file);else if(t.results&&t.results.data){var o={abort:function(){r=!0,v(t.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:b,resume:b};if(w(n.userStep)){for(var s=0;s<t.results.data.length&&(n.userStep({data:t.results.data[s],errors:t.results.errors,meta:t.results.meta},o),!r);s++);delete t.results}else w(n.userChunk)&&(n.userChunk(t.results,o,t.file),delete t.results)}t.finished&&!r&&v(t.workerId,t.results)}function v(e,t){var n=i[e];w(n.userComplete)&&n.userComplete(t),n.terminate(),delete i[e]}function b(){throw new Error("Not implemented.")}function g(e){if("object"!=typeof e||null===e)return e;var t=Array.isArray(e)?[]:{};for(var n in e)t[n]=g(e[n]);return t}function O(e,t){return function(){e.apply(t,arguments)}}function w(e){return"function"==typeof e}return r&&(t.onmessage=function(e){var n=e.data;if(void 0===s.WORKER_ID&&n&&(s.WORKER_ID=n.workerId),"string"==typeof n.input)t.postMessage({workerId:s.WORKER_ID,results:s.parse(n.input,n.config),finished:!0});else if(t.File&&n.input instanceof File||n.input instanceof Object){var r=s.parse(n.input,n.config);r&&t.postMessage({workerId:s.WORKER_ID,results:r,finished:!0})}}),(u.prototype=Object.create(c.prototype)).constructor=u,(f.prototype=Object.create(c.prototype)).constructor=f,(l.prototype=Object.create(l.prototype)).constructor=l,(d.prototype=Object.create(c.prototype)).constructor=d,s}();const Uo="function"==typeof btoa,zo="function"==typeof Buffer;"function"==typeof TextDecoder&&new TextDecoder,"function"==typeof TextEncoder&&new TextEncoder;const Mo=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=");(e=>{let t={};Mo.forEach(((e,n)=>t[e]=n))})(),String.fromCharCode.bind(String),"function"==typeof Uint8Array.from&&Uint8Array.from.bind(Uint8Array);const qo=Uo?e=>btoa(e):zo?e=>Buffer.from(e,"binary").toString("base64"):e=>{let t,n,r,i,o="";const s=e.length%3;for(let s=0;s<e.length;){if((n=e.charCodeAt(s++))>255||(r=e.charCodeAt(s++))>255||(i=e.charCodeAt(s++))>255)throw new TypeError("invalid character found");t=n<<16|r<<8|i,o+=Mo[t>>18&63]+Mo[t>>12&63]+Mo[t>>6&63]+Mo[63&t]}return s?o.slice(0,s-3)+"===".substring(s):o};function Ho(e,t){return So("Authorization","Basic "+qo(`${e}:${t}`))}function Jo(e){return So("Authorization",`Bearer ${e}`)}function Wo(e=!0){return t=>Object.assign(Object.assign({},t),{keepalive:e})}export{Io as accept,Po as appendHeader,No as appendPathname,Fo as appendSearchParam,Ho as basicAuth,Jo as bearerAuth,Ao as csv,vo as del,Lo as formDataField,lo as get,yo as head,So as header,ko as headers,To as host,wo as json,Wo as keepalive,mo as patch,Ro as pathname,xo as port,ho as post,po as put,Co as search,Do as searchParam,Bo as searchParams,Eo as signal,Oo as text,go as url};
|
|
8
8
|
//# sourceMappingURL=index.min.mjs.map
|