extra-request 4.0.2 → 5.0.2

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.
@@ -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 a={FormData:void 0};a.FormData=globalThis.FormData;var s={AbortController:void 0};s.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,h={};h.EventSource=void 0,h.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(a,f),d(s,f),d(c,f),d(u,f),d(h,f);var y={},p={};function v(t){return Array.isArray(t)}p.isntEmptyArray=p.isEmptyArray=p.isntArray=p.isArray=void 0,p.isArray=v,p.isntArray=function(t){return!v(t)},p.isEmptyArray=function(t){return 0===t.length},p.isntEmptyArray=function(t){return 0!==t.length};var m={},g={};function b(t){return null===t}g.isntNull=g.isNull=void 0,g.isNull=b,g.isntNull=function(t){return!b(t)};var _={};function w(t){return void 0===t}_.isntUndefined=_.isUndefined=void 0,_.isUndefined=w,_.isntUndefined=function(t){return!w(t)};var A={};function O(t){return"function"==typeof t}A.isntFunction=A.isFunction=void 0,A.isFunction=O,A.isntFunction=function(t){return!O(t)},m.isntAsyncIterable=m.isAsyncIterable=void 0;const k=g,E=_,S=A;function I(t){return(0,k.isntNull)(t)&&(0,E.isntUndefined)(t)&&(0,S.isFunction)(t[Symbol.asyncIterator])}m.isAsyncIterable=I,m.isntAsyncIterable=function(t){return!I(t)};var R={};function T(t){return"bigint"==typeof t}R.isntBigInt=R.isBigInt=void 0,R.isBigInt=T,R.isntBigInt=function(t){return!T(t)};var j={};function x(t){return"boolean"==typeof t}j.isntBoolean=j.isBoolean=void 0,j.isBoolean=x,j.isntBoolean=function(t){return!x(t)};var C={},D={};function P(t){return"string"==typeof t}D.isntString=D.isString=void 0,D.isString=P,D.isntString=function(t){return!P(t)},C.isntChar=C.isChar=void 0;const N=D;function L(t){return(0,N.isString)(t)&&1===t.length}C.isChar=L,C.isntChar=function(t){return!L(t)};var U={};function B(t){return t instanceof Date}U.isntDate=U.isDate=void 0,U.isDate=B,U.isntDate=function(t){return!B(t)};var F={};F.inEnum=void 0,F.inEnum=function(t,e){return Object.values(e).includes(t)};var q={};function z(t){return t instanceof Error}q.isntError=q.isError=void 0,q.isError=z,q.isntError=function(t){return!z(t)};var M={};function H(t){return!t}M.isntFalsy=M.isFalsy=void 0,M.isFalsy=H,M.isntFalsy=function(t){return!H(t)};var J={};J.isntIterable=J.isIterable=void 0;const W=g,K=_,Q=A;function $(t){return(0,W.isntNull)(t)&&(0,K.isntUndefined)(t)&&(0,Q.isFunction)(t[Symbol.iterator])}J.isIterable=$,J.isntIterable=function(t){return!$(t)};var G={},Z={};function V(t){return"number"==typeof t}Z.isntNumber=Z.isNumber=void 0,Z.isNumber=V,Z.isntNumber=function(t){return!V(t)};var Y={},X="object"==typeof t&&t&&t.Object===Object&&t,tt="object"==typeof self&&self&&self.Object===Object&&self,et=(X||tt||Function("return this")()).Symbol,nt=et,rt=Object.prototype,it=rt.hasOwnProperty,ot=rt.toString,at=nt?nt.toStringTag:void 0;var st=function(t){var e=it.call(t,at),n=t[at];try{t[at]=void 0;var r=!0}catch(t){}var i=ot.call(t);return r&&(e?t[at]=n:delete t[at]),i},ct=Object.prototype.toString;var ut=st,ft=function(t){return ct.call(t)},lt=et?et.toStringTag:void 0;var dt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":lt&&lt in Object(t)?ut(t):ft(t)};var ht=function(t,e){return function(n){return t(e(n))}},yt=ht(Object.getPrototypeOf,Object);var pt=dt,vt=yt,mt=function(t){return null!=t&&"object"==typeof t},gt=Function.prototype,bt=Object.prototype,_t=gt.toString,wt=bt.hasOwnProperty,At=_t.call(Object);var Ot=function(t){if(!mt(t)||"[object Object]"!=pt(t))return!1;var e=vt(t);if(null===e)return!0;var n=wt.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&_t.call(n)==At},kt=t&&t.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Y.isntEmptyObject=Y.isEmptyObject=Y.isntPlainObject=Y.isPlainObject=Y.isntObject=Y.isObject=void 0;const Et=kt(Ot);function St(t){return null!==t&&"object"==typeof t}function It(t){return(0,Et.default)(t)}Y.isObject=St,Y.isntObject=function(t){return!St(t)},Y.isPlainObject=It,Y.isntPlainObject=function(t){return!It(t)},Y.isEmptyObject=function(t){return 0===Object.keys(t).length},Y.isntEmptyObject=function(t){return 0!==Object.keys(t).length},G.isntJsonable=G.isJsonable=G.isntJson=G.isJson=void 0;const Rt=g,Tt=j,jt=D,xt=Z,Ct=p,Dt=Y;function Pt(t){return(0,Rt.isNull)(t)||(0,Tt.isBoolean)(t)||(0,jt.isString)(t)||(0,xt.isNumber)(t)||(0,Ct.isArray)(t)&&t.every(Pt)||(0,Dt.isPlainObject)(t)&&Object.values(t).every(Pt)}G.isJson=Pt,G.isntJson=function(t){return!Pt(t)},G.isJsonable=function(t){try{return JSON.stringify(t),!0}catch(t){return!1}},G.isntJsonable=function t(e){return!t()};var Nt={};Nt.isPromiseLike=Nt.isntPromiseLike=Nt.isntPromise=Nt.isPromise=void 0;const Lt=Y,Ut=A;function Bt(t){return t instanceof Promise}function Ft(t){return(0,Lt.isObject)(t)&&(0,Ut.isFunction)(t.then)}Nt.isPromise=Bt,Nt.isntPromise=function(t){return!Bt(t)},Nt.isntPromiseLike=function(t){return!Ft(t)},Nt.isPromiseLike=Ft;var qt={};function zt(...t){return Qt("GET",...t)}function Mt(...t){return Qt("HEAD",...t)}function Ht(...t){return Qt("POST",...t)}function Jt(...t){return Qt("PUT",...t)}function Wt(...t){return Qt("PATCH",...t)}function Kt(...t){return Qt("DELETE",...t)}function Qt(t,...n){const r=n.reduce(((t,e)=>y.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 $t(...t){return e=>({...e,url:new URL(t.reduce(((t,e)=>new URL(e,t).href)))})}function Gt(t){return n=>{const r=new e.Headers(n.headers);return r.set("Content-Type","application/x-www-form-urlencoded"),{...n,headers:r,payload:t}}}function Zt(t){return n=>{const r=new e.Headers(n.headers);return r.set("Content-Type","application/json"),{...n,headers:r,payload:JSON.stringify(t)}}}qt.isAbsoluteURL=void 0,qt.isAbsoluteURL=function(t){try{return new URL(t),!0}catch(t){return!1}},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(p,e),r(m,e),r(R,e),r(j,e),r(C,e),r(U,e),r(F,e),r(q,e),r(M,e),r(A,e),r(J,e),r(G,e),r(g,e),r(Z,e),r(Y,e),r(Nt,e),r(D,e),r(_,e),r(qt,e)}(y);var Vt={exports:{}};
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 a={FormData:void 0};a.FormData=globalThis.FormData;var s={AbortController:void 0};s.AbortController=globalThis.AbortController;var c={Blob:void 0};c.Blob=globalThis.Blob;var u,f,l,d={};d.EventSource=void 0,d.EventSource=globalThis.EventSource,u=e,f=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]}),(l=t&&t.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||f(e,t,n)})(n,u),l(r,u),l(i,u),l(o,u),l(a,u),l(s,u),l(c,u),l(d,u);var h={},y={};function p(t){return Array.isArray(t)}y.isntEmptyArray=y.isEmptyArray=y.isntArray=y.isArray=void 0,y.isArray=p,y.isntArray=function(t){return!p(t)},y.isEmptyArray=function(t){return 0===t.length},y.isntEmptyArray=function(t){return 0!==t.length};var v={},m={};function g(t){return null===t}m.isntNull=m.isNull=void 0,m.isNull=g,m.isntNull=function(t){return!g(t)};var b={};function _(t){return void 0===t}b.isntUndefined=b.isUndefined=void 0,b.isUndefined=_,b.isntUndefined=function(t){return!_(t)};var w={};function A(t){return"function"==typeof t}w.isntFunction=w.isFunction=void 0,w.isFunction=A,w.isntFunction=function(t){return!A(t)},v.isntAsyncIterable=v.isAsyncIterable=void 0;const k=m,O=b,E=w;function S(t){return(0,k.isntNull)(t)&&(0,O.isntUndefined)(t)&&(0,E.isFunction)(t[Symbol.asyncIterator])}v.isAsyncIterable=S,v.isntAsyncIterable=function(t){return!S(t)};var I={};function R(t){return"bigint"==typeof t}I.isntBigInt=I.isBigInt=void 0,I.isBigInt=R,I.isntBigInt=function(t){return!R(t)};var T={};function j(t){return"boolean"==typeof t}T.isntBoolean=T.isBoolean=void 0,T.isBoolean=j,T.isntBoolean=function(t){return!j(t)};var C={},x={};function D(t){return"string"==typeof t}x.isntString=x.isString=void 0,x.isString=D,x.isntString=function(t){return!D(t)},C.isntChar=C.isChar=void 0;const P=x;function N(t){return(0,P.isString)(t)&&1===t.length}C.isChar=N,C.isntChar=function(t){return!N(t)};var L={};function U(t){return t instanceof Date}L.isntDate=L.isDate=void 0,L.isDate=U,L.isntDate=function(t){return!U(t)};var B={};B.inEnum=void 0,B.inEnum=function(t,e){return Object.values(e).includes(t)};var F={};function q(t){return t instanceof Error}F.isntError=F.isError=void 0,F.isError=q,F.isntError=function(t){return!q(t)};var z={};function M(t){return!t}z.isntFalsy=z.isFalsy=void 0,z.isFalsy=M,z.isntFalsy=function(t){return!M(t)};var H={};H.isntIterable=H.isIterable=void 0;const J=m,W=b,K=w;function Q(t){return(0,J.isntNull)(t)&&(0,W.isntUndefined)(t)&&(0,K.isFunction)(t[Symbol.iterator])}H.isIterable=Q,H.isntIterable=function(t){return!Q(t)};var $={},G={};function Z(t){return"number"==typeof t}G.isntNumber=G.isNumber=void 0,G.isNumber=Z,G.isntNumber=function(t){return!Z(t)};var V={},Y="object"==typeof t&&t&&t.Object===Object&&t,X="object"==typeof self&&self&&self.Object===Object&&self,tt=(Y||X||Function("return this")()).Symbol,et=tt,nt=Object.prototype,rt=nt.hasOwnProperty,it=nt.toString,ot=et?et.toStringTag:void 0;var at=function(t){var e=rt.call(t,ot),n=t[ot];try{t[ot]=void 0;var r=!0}catch(t){}var i=it.call(t);return r&&(e?t[ot]=n:delete t[ot]),i},st=Object.prototype.toString;var ct=at,ut=function(t){return st.call(t)},ft=tt?tt.toStringTag:void 0;var lt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":ft&&ft in Object(t)?ct(t):ut(t)};var dt=function(t,e){return function(n){return t(e(n))}}(Object.getPrototypeOf,Object);var ht=lt,yt=dt,pt=function(t){return null!=t&&"object"==typeof t},vt=Function.prototype,mt=Object.prototype,gt=vt.toString,bt=mt.hasOwnProperty,_t=gt.call(Object);var wt=function(t){if(!pt(t)||"[object Object]"!=ht(t))return!1;var e=yt(t);if(null===e)return!0;var n=bt.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&gt.call(n)==_t},At=t&&t.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};V.isntEmptyObject=V.isEmptyObject=V.isntPlainObject=V.isPlainObject=V.isntObject=V.isObject=void 0;const kt=At(wt);function Ot(t){return null!==t&&"object"==typeof t}function Et(t){return(0,kt.default)(t)}V.isObject=Ot,V.isntObject=function(t){return!Ot(t)},V.isPlainObject=Et,V.isntPlainObject=function(t){return!Et(t)},V.isEmptyObject=function(t){return 0===Object.keys(t).length},V.isntEmptyObject=function(t){return 0!==Object.keys(t).length},$.isntJsonable=$.isJsonable=$.isntJson=$.isJson=void 0;const St=m,It=T,Rt=x,Tt=G,jt=y,Ct=V;function xt(t){return(0,St.isNull)(t)||(0,It.isBoolean)(t)||(0,Rt.isString)(t)||(0,Tt.isNumber)(t)||(0,jt.isArray)(t)&&t.every(xt)||(0,Ct.isPlainObject)(t)&&Object.values(t).every(xt)}$.isJson=xt,$.isntJson=function(t){return!xt(t)},$.isJsonable=function(t){try{return JSON.stringify(t),!0}catch(t){return!1}},$.isntJsonable=function t(e){return!t()};var Dt={};Dt.isPromiseLike=Dt.isntPromiseLike=Dt.isntPromise=Dt.isPromise=void 0;const Pt=V,Nt=w;function Lt(t){return t instanceof Promise}function Ut(t){return(0,Pt.isObject)(t)&&(0,Nt.isFunction)(t.then)}Dt.isPromise=Lt,Dt.isntPromise=function(t){return!Lt(t)},Dt.isntPromiseLike=function(t){return!Ut(t)},Dt.isPromiseLike=Ut;var Bt={};function Ft(...t){return Wt("GET",...t)}function qt(...t){return Wt("HEAD",...t)}function zt(...t){return Wt("POST",...t)}function Mt(...t){return Wt("PUT",...t)}function Ht(...t){return Wt("PATCH",...t)}function Jt(...t){return Wt("DELETE",...t)}function Wt(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 Kt(...t){return e=>({...e,url:new URL(t.reduce(((t,e)=>new URL(e,t).href)))})}function Qt(t){return n=>{const r=new e.Headers(n.headers);return r.set("Content-Type","application/x-www-form-urlencoded"),{...n,headers:r,payload:t}}}function $t(t){return n=>{const r=new e.Headers(n.headers);return r.set("Content-Type","application/json"),{...n,headers:r,payload:JSON.stringify(t)}}}Bt.isAbsoluteURL=void 0,Bt.isAbsoluteURL=function(t){try{return new URL(t),!0}catch(t){return!1}},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(y,e),r(v,e),r(I,e),r(T,e),r(C,e),r(L,e),r(B,e),r(F,e),r(z,e),r(w,e),r(H,e),r($,e),r(m,e),r(G,e),r(V,e),r(Dt,e),r(x,e),r(b,e),r(Bt,e)}(h);var Gt={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
- */Vt.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,a={parse:function(n,r){var s=(r=r||{}).dynamicTyping||!1;if(w(s)&&(r.dynamicTypingFunction=s,s={}),r.dynamicTyping=s,r.transform=!!w(r.transform)&&r.transform,r.worker&&a.WORKERS_SUPPORTED){var c=function(){if(!a.WORKERS_SUPPORTED)return!1;var n,r,s=(n=e.URL||e.webkitURL||null,r=t.toString(),a.BLOB_URL||(a.BLOB_URL=n.createObjectURL(new Blob(["(",r,")();"],{type:"text/javascript"})))),c=new e.Worker(s);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 h=null;return a.NODE_STREAM_INPUT,"string"==typeof n?h=r.download?new u(r):new l(r):!0===n.readable&&w(n.read)&&w(n.on)?h=new d(r):(e.File&&n instanceof File||n instanceof Object)&&(h=new f(r)),h.stream(n)},unparse:function(t,e){var n=!1,r=!0,i=",",o="\r\n",s='"',c=s+s,u=!1,f=null,l=!1;!function(){if("object"==typeof e){if("string"!=typeof e.delimiter||a.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&&(s=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+s),("boolean"==typeof e.escapeFormulae||e.escapeFormulae instanceof RegExp)&&(l=e.escapeFormulae instanceof RegExp?e.escapeFormulae:/^[=+\-@\t\r].*$/)}}();var d=new RegExp(y(s),"g");if("string"==typeof t&&(t=JSON.parse(t)),Array.isArray(t)){if(!t.length||Array.isArray(t[0]))return h(null,t,u);if("object"==typeof t[0])return h(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])),h(t.fields||[],t.data||[],u);throw new Error("Unable to serialize unrecognized input");function h(t,e,n){var a="";"string"==typeof t&&(t=JSON.parse(t)),"string"==typeof e&&(e=JSON.parse(e));var s=Array.isArray(t)&&0<t.length,c=!Array.isArray(e[0]);if(s&&r){for(var u=0;u<t.length;u++)0<u&&(a+=i),a+=p(t[u],u);0<e.length&&(a+=o)}for(var f=0;f<e.length;f++){var l=s?t.length:e[f].length,d=!1,h=s?0===Object.keys(e[f]).length:0===e[f].length;if(n&&!s&&(d="greedy"===n?""===e[f].join("").trim():1===e[f].length&&0===e[f][0].length),"greedy"===n&&s){for(var y=[],v=0;v<l;v++){var m=c?t[v]:v;y.push(e[f][m])}d=""===y.join("").trim()}if(!d){for(var g=0;g<l;g++){0<g&&!h&&(a+=i);var b=s&&c?t[g]:g;a+=p(e[f][b],g)}f<e.length-1&&(!n||0<l&&!h)&&(a+=o)}}return a}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,a.BAD_DELIMITERS)||-1<o.indexOf(i)||" "===o.charAt(0)||" "===o.charAt(o.length-1))?s+o+s:o}}};if(a.RECORD_SEP=String.fromCharCode(30),a.UNIT_SEP=String.fromCharCode(31),a.BYTE_ORDER_MARK="\ufeff",a.BAD_DELIMITERS=["\r","\n",'"',a.BYTE_ORDER_MARK],a.WORKERS_SUPPORTED=!n&&!!e.Worker,a.NODE_STREAM_INPUT=1,a.LocalChunkSize=10485760,a.RemoteChunkSize=5242880,a.DefaultDelimiter=",",a.Parser=p,a.ParserHandle=h,a.NetworkStreamer=u,a.FileStreamer=f,a.StringStreamer=l,a.ReadableStreamStreamer=d,e.jQuery){var s=e.jQuery;s.fn.parse=function(t){var n=t.config||{},r=[];return this.each((function(t){if("INPUT"!==s(this).prop("tagName").toUpperCase()||"file"!==s(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:s.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=s.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()},a.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=b(t);e.chunkSize=parseInt(e.chunkSize),t.step||t.chunk||(e.chunkSize=null),this._handle=new h(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 s=this._handle.parse(o,this._baseIndex,!this._finished);if(!this._handle.paused()&&!this._handle.aborted()){var c=s.meta.cursor;this._finished||(this._partialLine=o.substring(c-this._baseIndex),this._baseIndex=c),s&&s.data&&(this._rowCount+=s.data.length);var u=this._finished||this._config.preview&&this._rowCount>=this._config.preview;if(r)e.postMessage({results:s,workerId:a.WORKER_ID,finished:u});else if(w(this._config.chunk)&&!n){if(this._config.chunk(s,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);s=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(s.data),this._completeResults.errors=this._completeResults.errors.concat(s.errors),this._completeResults.meta=s.meta),this._completed||!u||!w(this._config.complete)||s&&s.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),u||s&&s.meta.paused||this._nextChunk(),s}this._halted=!0},this._sendError=function(t){w(this._config.error)?this._config.error(t):r&&this._config.error&&e.postMessage({workerId:a.WORKER_ID,error:t,finished:!1})}}function u(t){var e;(t=t||{}).chunkSize||(t.chunkSize=a.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=_(this._chunkLoaded,this),e.onerror=_(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=a.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=_(this._chunkLoaded,this),e.onerror=_(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=_((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=_((function(t){this._streamCleanUp(),this._sendError(t)}),this),this._streamEnd=_((function(){this._streamCleanUp(),r=!0,this._streamData("")}),this),this._streamCleanUp=_((function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)}),this)}function h(t){var e,n,r,i=Math.pow(2,53),o=-i,s=/^\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,h=!1,v=[],m={data:[],errors:[],meta:{}};if(w(t.step)){var g=t.step;t.step=function(e){if(m=e,O())A();else{if(A(),0===m.data.length)return;f+=e.data.length,t.preview&&f>t.preview?n.abort():(m.data=m.data[0],g(m,u))}}}function _(e){return"greedy"===t.skipEmptyLines?""===e.join("").trim():1===e.length&&0===e[0].length}function A(){return m&&r&&(E("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+a.DefaultDelimiter+"'"),r=!1),t.skipEmptyLines&&(m.data=m.data.filter((function(t){return!_(t)}))),O()&&function(){if(m)if(Array.isArray(m.data[0])){for(var e=0;O()&&e<m.data.length;e++)m.data[e].forEach(n);m.data.splice(0,1)}else m.data.forEach(n);function n(e,n){w(t.transformHeader)&&(e=t.transformHeader(e,n)),v.push(e)}}(),function(){if(!m||!t.header&&!t.dynamicTyping&&!t.transform)return m;function e(e,n){var r,i=t.header?{}:[];for(r=0;r<e.length;r++){var o=r,a=e[r];t.header&&(o=r>=v.length?"__parsed_extra":v[r]),t.transform&&(a=t.transform(a,o)),a=k(o,a),"__parsed_extra"===o?(i[o]=i[o]||[],i[o].push(a)):i[o]=a}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!m.data.length||Array.isArray(m.data[0])?(m.data=m.data.map(e),n=m.data.length):m.data=e(m.data,0),t.header&&m.meta&&(m.meta.fields=v),l+=n,m}()}function O(){return t.header&&0===v.length}function k(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(s.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),m.errors.push(i)}this.parse=function(i,o,s){var c=t.quoteChar||'"';if(t.newline||(t.newline=function(t,e){t=t.substring(0,1048576);var n=new RegExp(y(e)+"([^]*?)"+y(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 a=0,s=0;s<r.length;s++)"\n"===r[s][0]&&a++;return a>=r.length/2?"\r\n":"\r"}(i,c)),r=!1,t.delimiter)w(t.delimiter)&&(t.delimiter=t.delimiter(i),m.meta.delimiter=t.delimiter);else{var u=function(e,n,r,i,o){var s,c,u,f;o=o||[",","\t","|",";",a.RECORD_SEP,a.UNIT_SEP];for(var l=0;l<o.length;l++){var d=o[l],h=0,y=0,v=0;u=void 0;for(var m=new p({comments:i,delimiter:d,newline:n,preview:10}).parse(e),g=0;g<m.data.length;g++)if(r&&_(m.data[g]))v++;else{var b=m.data[g].length;y+=b,void 0!==u?0<b&&(h+=Math.abs(b-u),u=b):u=b}0<m.data.length&&(y/=m.data.length-v),(void 0===c||h<=c)&&(void 0===f||f<y)&&1.99<y&&(c=h,s=d,f=y)}return{successful:!!(t.delimiter=s),bestDelimiter:s}}(i,t.newline,t.skipEmptyLines,t.comments,t.delimitersToGuess);u.successful?t.delimiter=u.bestDelimiter:(r=!0,t.delimiter=a.DefaultDelimiter),m.meta.delimiter=t.delimiter}var f=b(t);return t.preview&&t.header&&f.preview++,e=i,n=new p(f),m=n.parse(e,o,s),A(),d?{meta:{paused:!0}}:m||{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 h},this.abort=function(){h=!0,n.abort(),m.meta.aborted=!0,w(t.complete)&&t.complete(m),e=""}}function y(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function p(t){var e,n=(t=t||{}).delimiter,r=t.newline,i=t.comments,o=t.step,s=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<a.BAD_DELIMITERS.indexOf(n))&&(n=","),i===n)throw new Error("Comment character same as delimiter");!0===i?i="#":("string"!=typeof i||-1<a.BAD_DELIMITERS.indexOf(i))&&(i=!1),"\n"!==r&&"\r"!==r&&"\r\n"!==r&&(r="\n");var f=0,l=!1;this.parse=function(t,a,d){if("string"!=typeof t)throw new Error("Input must be a string");var h=t.length,p=n.length,v=r.length,m=i.length,g=w(o),b=[],_=[],A=[],O=f=0;if(!t)return L();if(c||!1!==c&&-1===t.indexOf(e)){for(var k=t.split(r),E=0;E<k.length;E++){if(A=k[E],f+=A.length,E!==k.length-1)f+=r.length;else if(d)return L();if(!i||A.substring(0,m)!==i){if(g){if(b=[],C(A.split(n)),U(),l)return L()}else C(A.split(n));if(s&&s<=E)return b=b.slice(0,s),L(!0)}}return L()}for(var S=t.indexOf(n,f),I=t.indexOf(r,f),R=new RegExp(y(u)+y(e),"g"),T=t.indexOf(e,f);;)if(t[f]!==e)if(i&&0===A.length&&t.substring(f,f+m)===i){if(-1===I)return L();f=I+v,I=t.indexOf(r,f),S=t.indexOf(n,f)}else if(-1!==S&&(S<I||-1===I))A.push(t.substring(f,S)),f=S+p,S=t.indexOf(n,f);else{if(-1===I)break;if(A.push(t.substring(f,I)),N(I+v),g&&(U(),l))return L();if(s&&b.length>=s)return L(!0)}else for(T=f,f++;;){if(-1===(T=t.indexOf(e,T+1)))return d||_.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:b.length,index:f}),P();if(T===h-1)return P(t.substring(f,T).replace(R,e));if(e!==u||t[T+1]!==u){if(e===u||0===T||t[T-1]!==u){-1!==S&&S<T+1&&(S=t.indexOf(n,T+1)),-1!==I&&I<T+1&&(I=t.indexOf(r,T+1));var j=D(-1===I?S:Math.min(S,I));if(t.substr(T+1+j,p)===n){A.push(t.substring(f,T).replace(R,e)),t[f=T+1+j+p]!==e&&(T=t.indexOf(e,f)),S=t.indexOf(n,f),I=t.indexOf(r,f);break}var x=D(I);if(t.substring(T+1+x,T+1+x+v)===r){if(A.push(t.substring(f,T).replace(R,e)),N(T+1+x+v),S=t.indexOf(n,f),T=t.indexOf(e,f),g&&(U(),l))return L();if(s&&b.length>=s)return L(!0);break}_.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:b.length,index:f}),T++}}else T++}return P();function C(t){b.push(t),O=f}function D(e){var n=0;if(-1!==e){var r=t.substring(T+1,e);r&&""===r.trim()&&(n=r.length)}return n}function P(e){return d||(void 0===e&&(e=t.substring(f)),A.push(e),f=h,C(A),g&&U()),L()}function N(e){f=e,C(A),A=[],I=t.indexOf(r,f)}function L(t){return{data:b,errors:_,meta:{delimiter:n,linebreak:r,aborted:l,truncated:!!t,cursor:O+(a||0)}}}function U(){o(L()),b=[],_=[]}},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,m(e.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:g,resume:g};if(w(n.userStep)){for(var a=0;a<e.results.data.length&&(n.userStep({data:e.results.data[a],errors:e.results.errors,meta:e.results.meta},o),!r);a++);delete e.results}else w(n.userChunk)&&(n.userChunk(e.results,o,e.file),delete e.results)}e.finished&&!r&&m(e.workerId,e.results)}function m(t,e){var n=i[t];w(n.userComplete)&&n.userComplete(e),n.terminate(),delete i[t]}function g(){throw new Error("Not implemented.")}function b(t){if("object"!=typeof t||null===t)return t;var e=Array.isArray(t)?[]:{};for(var n in t)e[n]=b(t[n]);return e}function _(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===a.WORKER_ID&&n&&(a.WORKER_ID=n.workerId),"string"==typeof n.input)e.postMessage({workerId:a.WORKER_ID,results:a.parse(n.input,n.config),finished:!0});else if(e.File&&n.input instanceof File||n.input instanceof Object){var r=a.parse(n.input,n.config);r&&e.postMessage({workerId:a.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,a}();var Yt={},Xt={},te={},ee={},ne={},re={},ie={};ie.go=void 0,ie.go=function(t){return 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(ie,e)}(re),ne.chunkAsync=void 0;const oe=re,ae=Yt;ne.chunkAsync=function(t,e){return(0,ae.assert)(Number.isInteger(e),"The parameter size must be an integer"),(0,ae.assert)(e>0,"The parameter size must be greater than 0"),(0,oe.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 se={chunkByAsync:void 0};const ce=y;se.chunkByAsync=function(t,e){return(0,ce.isAsyncIterable)(t)?async function*(t){let n=[],r=0;for await(const i of t)n.push(i),await e(i,r)&&(yield n,n=[]),r++;n.length&&(yield n)}(t):async function*(t){let n=[],r=0;for(const i of t)n.push(i),await e(i,r)&&(yield n,n=[]),r++;n.length&&(yield n)}(t)};var ue={};ue.chunkBy=void 0,ue.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 fe={chunk:void 0};const le=re,de=Yt;fe.chunk=function(t,e){return(0,de.assert)(Number.isInteger(e),"The parameter size must be an integer"),(0,de.assert)(e>0,"The parameter size must be greater than 0"),(0,le.go)((function*(){let n=[];for(const r of t)n.push(r),n.length>=e&&(yield n,n=[]);n.length&&(yield n)}))};var he={concatAsync:void 0};const ye=y,pe=re;he.concatAsync=function(t,...e){return(0,pe.go)((async function*(){for(const n of[t,...e])if((0,ye.isAsyncIterable)(n))for await(const t of n)yield t;else for(const t of n)yield t}))};var ve={concat:void 0};const me=re;ve.concat=function(t,...e){return(0,me.go)((function*(){for(const n of[t,...e])yield*n}))};var ge={},be={};be.copyIterable=be.copyAsyncIterable=void 0,be.copyAsyncIterable=async function*(t){for await(const e of t)yield e},be.copyIterable=function*(t){for(const e of t)yield e},ge.dropAsync=void 0;const _e=re,we=be,Ae=Yt;ge.dropAsync=function(t,e){return(0,Ae.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Ae.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,we.copyAsyncIterable)(t):(0,_e.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 Oe={dropRightAsync:void 0};const ke=re,Ee=be,Se=Yt;Oe.dropRightAsync=function(t,e){return(0,Se.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Se.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,Ee.copyAsyncIterable)(t):(0,ke.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 Ie={dropRight:void 0};const Re=re,Te=be,je=Yt;Ie.dropRight=function(t,e){return(0,je.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,je.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,Te.copyIterable)(t):(0,Re.go)((function*(){const n=Array.from(t);yield*n.slice(0,-e)}))};var xe={dropUntilAsync:void 0};const Ce=y;xe.dropUntilAsync=function(t,e){return(0,Ce.isAsyncIterable)(t)?async function*(t){var n;const r=t[Symbol.asyncIterator]();let i;try{let t,o=0;for(;!(({value:t,done:i}=await r.next()),i||await e(t,o++)););for(;!i;)yield t,({value:t,done:i}=await r.next())}finally{i||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}}(t):async function*(t){var n;const r=t[Symbol.iterator]();let i;try{let t,o=0;for(;!(({value:t,done:i}=r.next()),i||await e(t,o++)););for(;!i;)yield t,({value:t,done:i}=r.next())}finally{i||null===(n=r.return)||void 0===n||n.call(r)}}(t)};var De={};De.dropUntil=void 0,De.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 Pe={drop:void 0};const Ne=re,Le=be,Ue=Yt;Pe.drop=function(t,e){return(0,Ue.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Ue.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,Le.copyIterable)(t):(0,Ne.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 Be={filterAsync:void 0};const Fe=y;Be.filterAsync=function(t,e){return(0,Fe.isAsyncIterable)(t)?async function*(t){let n=0;for await(const r of t)await e(r,n)&&(yield r),n++}(t):async function*(t){let n=0;for(const r of t)await e(r,n)&&(yield r),n++}(t)};var qe={};qe.filter=void 0,qe.filter=function*(t,e){let n=0;for(const r of t)e(r,n)&&(yield r),n++};var ze={},Me={},He={flattenByAsync:void 0};const Je=y;function We(t){return(0,Je.isIterable)(t)&&(0,Je.isntChar)(t)}He.flattenByAsync=function(t,e){return(0,Je.isAsyncIterable)(t)?async function*(t){const r=1;for await(const i of t)We(i)&&await e(i,r)?yield*n(i,r+1):yield i}(t):function(t){return n(t,1)}(t);async function*n(t,r){for(const i of t)We(i)&&await e(i,r)?yield*n(i,r+1):yield i}},Me.flattenDeepAsync=void 0;const Ke=He,Qe=Yt;Me.flattenDeepAsync=function(t,e=1/0){return(0,Qe.assert)(e===1/0||Number.isInteger(e),"The parameter depth must be an integer"),(0,Qe.assert)(e>=0,"The parameter depth must be greater than or equal to 0"),(0,Ke.flattenByAsync)(t,((t,n)=>n<=e))},ze.flattenAsync=void 0;const $e=Me;ze.flattenAsync=function(t){return(0,$e.flattenDeepAsync)(t,1)};var Ge={flattenBy:void 0};const Ze=y;Ge.flattenBy=function(t,e){return function*t(n,r){for(const o of n)i=o,(0,Ze.isIterable)(i)&&(0,Ze.isntChar)(i)&&e(o,r)?yield*t(o,r+1):yield o;var i}(t,1)};var Ve={flattenDeep:void 0};const Ye=Ge,Xe=Yt;Ve.flattenDeep=function(t,e=1/0){return(0,Xe.assert)(e===1/0||Number.isInteger(e),"The parameter depth must be an integer"),(0,Xe.assert)(e>=0,"The parameter depth must be greater than or equal to 0"),(0,Ye.flattenBy)(t,((t,n)=>n<=e))};var tn={flatten:void 0};const en=Ve;tn.flatten=function(t){return(0,en.flattenDeep)(t,1)};var nn={mapAsync:void 0};const rn=y;nn.mapAsync=function(t,e){return(0,rn.isAsyncIterable)(t)?async function*(t){let n=0;for await(const r of t)yield await e(r,n),n++}(t):async function*(t){let n=0;for(const r of t)yield await e(r,n),n++}(t)};var on={};on.map=void 0,on.map=function*(t,e){let n=0;for(const r of t)yield e(r,n),n++};var an={repeatAsync:void 0};const sn=re,cn=Yt;an.repeatAsync=function(t,e){return(0,cn.assert)(e===1/0||Number.isInteger(e),"The parameter times must be an integer"),(0,cn.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)((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 un={repeat:void 0};const fn=re,ln=Yt;un.repeat=function(t,e){return(0,ln.assert)(e===1/0||Number.isInteger(e),"The parameter times must be an integer"),(0,ln.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,fn.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 dn={sliceAsync:void 0};const hn=re,yn=Yt;dn.sliceAsync=function(t,e,n=1/0){return(0,yn.assert)(Number.isInteger(e),"The parameter start must be an integer"),(0,yn.assert)(e>=0,"The parameter start must be greater than or equal to 0"),(0,yn.assert)(Number.isInteger(n),"The parameter end must be an integer"),(0,yn.assert)(n>=e,"The parameter end must be greater than or equal to start"),(0,hn.go)((async function*(){let r=0;for await(const i of t){if(r>=n)break;r>=e&&(yield i),r++}}))};var pn={slice:void 0};const vn=re,mn=Yt;pn.slice=function(t,e,n=1/0){return(0,mn.assert)(Number.isInteger(e),"The parameter start must be an integer"),(0,mn.assert)(e>=0,"The parameter start must be greater than or equal to 0"),(0,mn.assert)(Number.isInteger(n),"The parameter end must be an integer"),(0,mn.assert)(n>=e,"The parameter end must be greater than or equal to start"),(0,vn.go)((function*(){let r=0;for(const i of t){if(r>=n)break;r>=e&&(yield i),r++}}))};var gn={};gn.splitAsync=void 0,gn.splitAsync=async function*(t,e){let n=[];for await(const r of t)r===e?(yield n,n=[]):n.push(r);yield n};var bn={splitByAsync:void 0};const _n=y;bn.splitByAsync=function(t,e){return(0,_n.isAsyncIterable)(t)?async function*(t){let n=[],r=0;for await(const i of t)await e(i,r)?(yield n,n=[]):n.push(i),r++;yield n}(t):async function*(t){let n=[],r=0;for(const i of t)await e(i,r)?(yield n,n=[]):n.push(i),r++;yield n}(t)};var wn={};wn.splitBy=void 0,wn.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 An={};An.split=void 0,An.split=function*(t,e){let n=[];for(const r of t)r===e?(yield n,n=[]):n.push(r);yield n};var On={takeAsync:void 0};const kn=re,En=Yt;On.takeAsync=function(t,e){return(0,En.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,En.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,kn.go)((async function*(){if(0!==e)for await(const n of t)if(yield n,0===--e)break}))};var Sn={takeRightAsync:void 0};const In=re,Rn=Yt;Sn.takeRightAsync=function(t,e){return(0,Rn.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Rn.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,In.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 Tn={takeRight:void 0};const jn=re,xn=Yt;Tn.takeRight=function(t,e){return(0,xn.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,xn.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,jn.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 Cn={takeUntilAsync:void 0};const Dn=y;Cn.takeUntilAsync=function(t,e){return(0,Dn.isAsyncIterable)(t)?async function*(t){let n=0;for await(const r of t){if(await e(r,n))break;yield r,n++}}(t):async function*(t){let n=0;for(const r of t){if(await e(r,n))break;yield r,n++}}(t)};var Pn={};Pn.takeUntil=void 0,Pn.takeUntil=function*(t,e){let n=0;for(const r of t){if(e(r,n))break;yield r,n++}};var Nn={take:void 0};const Ln=re,Un=Yt;Nn.take=function(t,e){return(0,Un.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Un.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,Ln.go)((function*(){if(0!==e)for(const n of t)if(yield n,0===--e)break}))};var Bn={tapAsync:void 0};const Fn=y;Bn.tapAsync=function(t,e){return(0,Fn.isAsyncIterable)(t)?async function*(t){let n=0;for await(const r of t)await e(r,n),yield r,n++}(t):async function*(t){let n=0;for(const r of t)await e(r,n),yield r,n++}(t)};var qn={};qn.tap=void 0,qn.tap=function*(t,e){let n=0;for(const r of t)e(r,n),yield r,n++};var zn={};zn.toAsyncIterable=void 0,zn.toAsyncIterable=async function*(t){for(const e of t)yield e};var Mn={};Mn.transformAsync=void 0,Mn.transformAsync=async function*(t,e){yield*e(t)};var Hn={};Hn.transform=void 0,Hn.transform=function*(t,e){yield*e(t)};var Jn={};Jn.uniqAsync=void 0,Jn.uniqAsync=async function*(t){const e=new Set;for await(const n of t)e.has(n)||(yield n,e.add(n))};var Wn={uniqByAsync:void 0};const Kn=y;Wn.uniqByAsync=function(t,e){return(0,Kn.isAsyncIterable)(t)?async function*(t){const n=new Set;let r=0;for await(const i of t){const t=await e(i,r);n.has(t)||(yield i,n.add(t)),r++}}(t):async function*(t){const n=new Set;let r=0;for(const i of t){const t=await e(i,r);n.has(t)||(yield i,n.add(t)),r++}}(t)};var Qn={};Qn.uniqBy=void 0,Qn.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 $n={};$n.uniq=void 0,$n.uniq=function*(t){const e=new Set;for(const n of t)e.has(n)||(yield n,e.add(n))};var Gn={zipAsync:void 0};const Zn=y;var Vn;!function(t){t[t.Sync=0]="Sync",t[t.Async=1]="Async"}(Vn||(Vn={})),Gn.zipAsync=function(t,...e){return async function*(...t){var e,n,r,i;const o=t.length,a=t.map((t=>(0,Zn.isAsyncIterable)(t)?[Vn.Async,t[Symbol.asyncIterator]()]:[Vn.Sync,t[Symbol.iterator]()])),s=a.map((()=>!1));try{for(;;){const t=new Array(o);for(let e=0;e<o;e++){const[n,r]=a[e];let i;if(i=n===Vn.Async?await r.next():r.next(),i.done)return void(s[e]=!0);t[e]=i.value}yield t}}finally{const t=a.filter(((t,e)=>!s[e]));for(const[o,a]of t)o===Vn.Async?await(null===(n=(e=a).return)||void 0===n?void 0:n.call(e)):null===(i=(r=a).return)||void 0===i||i.call(r)}}(t,...e)};var Yn={};Yn.zip=void 0,Yn.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(ne,e),r(se,e),r(ue,e),r(fe,e),r(he,e),r(ve,e),r(ge,e),r(Oe,e),r(Ie,e),r(xe,e),r(De,e),r(Pe,e),r(Be,e),r(qe,e),r(ze,e),r(He,e),r(Ge,e),r(Me,e),r(Ve,e),r(tn,e),r(nn,e),r(on,e),r(an,e),r(un,e),r(dn,e),r(pn,e),r(gn,e),r(bn,e),r(wn,e),r(An,e),r(On,e),r(Sn,e),r(Tn,e),r(Cn,e),r(Pn,e),r(Nn,e),r(Bn,e),r(qn,e),r(zn,e),r(Mn,e),r(Hn,e),r(Jn,e),r(Wn,e),r(Qn,e),r($n,e),r(Gn,e),r(Yn,e)}(ee);var Xn={},tr={};tr.consume=void 0,tr.consume=function(t,e){return e(t)};var er={eachAsync:void 0};const nr=y;er.eachAsync=function(t,e){return(0,nr.isAsyncIterable)(t)?async function(t){let n=0;for await(const r of t)await e(r,n),n++}(t):async function(t){let n=0;for(const r of t)await e(r,n),n++}(t)};var rr={};rr.each=void 0,rr.each=function(t,e){let n=0;for(const r of t)e(r,n),n++};var ir={everyAsync:void 0};const or=y;ir.everyAsync=function(t,e){return(0,or.isAsyncIterable)(t)?async function(t){let n=0;for await(const r of t){if(!await e(r,n))return!1;n++}return!0}(t):async function(t){let n=0;for(const r of t){if(!await e(r,n))return!1;n++}return!0}(t)};var ar={};ar.every=void 0,ar.every=function(t,e){let n=0;for(const r of t){if(!e(r,n))return!1;n++}return!0};var sr={findAsync:void 0};const cr=y;sr.findAsync=function(t,e){return(0,cr.isAsyncIterable)(t)?async function(t){let n=0;for await(const r of t){if(await e(r,n))return r;n++}return}(t):async function(t){let n=0;for(const r of t){if(await e(r,n))return r;n++}return}(t)};var ur={};ur.find=void 0,ur.find=function(t,e){let n=0;for(const r of t){if(e(r,n))return r;n++}};var fr={};fr.firstAsync=void 0,fr.firstAsync=async function(t){for await(const e of t)return e};var lr={};lr.first=void 0,lr.first=function(t){for(const e of t)return e};var dr={};dr.includesAsync=void 0,dr.includesAsync=async function(t,e){for await(const n of t)if(n===e)return!0;return!1};var hr={};hr.includes=void 0,hr.includes=function(t,e){for(const n of t)if(n===e)return!0;return!1};var yr={};yr.matchAsync=void 0,yr.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 pr={};pr.match=void 0,pr.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 vr={reduceAsync:void 0};const mr=y;vr.reduceAsync=function(t,e,n){return(0,mr.isUndefined)(n)?function(t,e){return(0,mr.isAsyncIterable)(t)?n(t):r(t);async function n(t){var n;const r=t[Symbol.asyncIterator]();let i;try{let t,a=await o(r),s=1;for(;({value:t,done:i}=await r.next()),!i;)a=await e(a,t,s++);return a}finally{i||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}async function o(t){const e=await t.next();if(e.done)throw i=!0,new Error("Reduce of empty iterable with no initial value");return e.value}}async function r(t){var n;const r=t[Symbol.iterator]();let i;try{let t,a=o(r),s=1;for(;({value:t,done:i}=r.next()),!i;)a=await e(a,t,s++);return a}finally{i||null===(n=r.return)||void 0===n||n.call(r)}function o(t){const e=t.next();if(e.done)throw i=!0,new Error("Reduce of empty iterable with no initial value");return e.value}}}(t,e):function(t,e,n){return(0,mr.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 gr={reduce:void 0};const br=y;gr.reduce=function(t,e,n){return(0,br.isUndefined)(n)?function(t,e){var n;const r=t[Symbol.iterator]();let i;try{let t,a=o(r),s=1;for(;({value:t,done:i}=r.next()),!i;)a=e(a,t,s++);return a}finally{i||null===(n=r.return)||void 0===n||n.call(r)}function o(t){const e=t.next();if(e.done)throw i=!0,new Error("Reduce of empty iterable with no initial value");return e.value}}(t,e):function(t,e,n){let r=n,i=0;for(const n of t)r=e(r,n,i++);return r}(t,e,n)};var _r={someAsync:void 0};const wr=y;_r.someAsync=function(t,e){return(0,wr.isAsyncIterable)(t)?async function(t){let n=0;for await(const r of t){if(await e(r,n))return!0;n++}return!1}(t):async function(t){let n=0;for(const r of t){if(await e(r,n))return!0;n++}return!1}(t)};var Ar={};Ar.some=void 0,Ar.some=function(t,e){let n=0;for(const r of t){if(e(r,n))return!0;n++}return!1};var Or={};Or.lastAsync=void 0,Or.lastAsync=async function(t){var e;const n=t[Symbol.asyncIterator]();let r;try{let t,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 kr={};kr.last=void 0,kr.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 Er={toArrayAsync:void 0};const Sr=tr;Er.toArrayAsync=function(t){return(0,Sr.consume)(t,(async t=>{const e=[];for await(const n of t)e.push(n);return e}))};var Ir={toArray:void 0};const Rr=tr;Ir.toArray=function(t){return(0,Rr.consume)(t,(t=>Array.from(t)))};var Tr={toSetAsync:void 0};const jr=tr;Tr.toSetAsync=function(t){return(0,jr.consume)(t,(async t=>{const e=new Set;for await(const n of t)e.add(n);return e}))};var xr={toSet:void 0};const Cr=tr;xr.toSet=function(t){return(0,Cr.consume)(t,(t=>new Set(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(tr,e),r(er,e),r(rr,e),r(ir,e),r(ar,e),r(sr,e),r(ur,e),r(fr,e),r(lr,e),r(dr,e),r(hr,e),r(yr,e),r(pr,e),r(vr,e),r(gr,e),r(_r,e),r(Ar,e),r(Or,e),r(kr,e),r(Er,e),r(Ir,e),r(Tr,e),r(xr,e)}(Xn),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(ee,e),r(Xn,e)}(te);var Dr={},Pr={};Pr.traverseErrorPrototypeChain=void 0,Pr.traverseErrorPrototypeChain=function*(t){let e=t;for(;(e=Object.getPrototypeOf(e))&&(yield e,e!==Error.prototype););},Dr.getErrorNames=void 0;const Nr=y,Lr=Pr;Dr.getErrorNames=function*(t){var e;if((0,Nr.isError)(t))for(const n of(0,Lr.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 Ur={isSerializableError:void 0};const Br=y;Ur.isSerializableError=function(t){return(0,Br.isObject)(t)&&(0,Br.isString)(t.name)&&(0,Br.isString)(t.message)&&((0,Br.isString)(t.stack)||(0,Br.isNull)(t.stack))&&(0,Br.isArray)(t.ancestors)&&t.ancestors.every(Br.isString)},Xt.CustomError=void 0;const Fr=te,qr=Dr,zr=y,Mr=Ur;class Hr extends Error{get name(){var t,e;return null!==(e=null!==(t=(0,Fr.first)((0,qr.getErrorNames)(this)))&&void 0!==t?t:Hr.name)&&void 0!==e?e:"CustomError"}static[Symbol.hasInstance](t){var e;if((0,zr.isError)(t)||(0,Mr.isSerializableError)(t)){const n=[null!==(e=this.prototype.constructor.name)&&void 0!==e?e:this.name,...(0,qr.getErrorNames)(this.prototype)].reverse(),r=(0,Fr.toArray)((0,qr.getErrorNames)(t)).reverse();return n.every(((t,e)=>t===r[e]))}return!1}}Xt.CustomError=Hr;var Jr={AssertionError:void 0};const Wr=Xt;class Kr extends Wr.CustomError{}Jr.AssertionError=Kr;var Qr={normalize:void 0};const $r=Dr,Gr=te;Qr.normalize=function(t){var e;const[n,...r]=(0,Gr.toArray)((0,$r.getErrorNames)(t));return{name:n,ancestors:r,message:t.message,stack:null!==(e=t.stack)&&void 0!==e?e:null}};var Zr={},Vr={},Yr={};Yr.pass=void 0,Yr.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(Yr,e)}(Vr),Zr.hydrate=void 0;const Xr=Vr;function ti(t,e){const n=function(){(0,Xr.pass)()};return(n.prototype=Object.create(t.prototype)).constructor=n,Object.defineProperty(n,"name",{value:e}),n}Zr.hydrate=function(t){var e;const n=[t.name,...t.ancestors].slice(0,-1).reverse();let r=Error;for(const t of n)r=ti(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 ei={assert:void 0};const ni=Jr;function ri(t){return Yt.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"),{...n,headers:r,payload:ii(t)}}}function ii(t){const e=Object.keys(t[0]);return Vt.exports.unparse({data:t,fields:e})}function oi(t){return e=>({...e,signal:t})}function ai(t,n){return r=>{const i=new e.Headers(r.headers);return i.set(t,n),{...r,headers:i}}}function si(t,n){return r=>{const i=new e.Headers(r.headers);return i.append(t,n),{...r,headers:i}}}function ci(t){return n=>{const r=new e.Headers(n.headers);for(const[e,n]of Object.entries(t))r.set(e,n);return{...n,headers:r}}}function ui(t){return si("Accept",t)}function fi(t){return e=>{const n=new URL(e.url.href);return n.host=t,{...e,url:n}}}function li(t){return e=>{const n=new URL(e.url.href);return n.port=t.toString(),{...e,url:n}}}function di(t){return e=>{const n=new URL(e.url.href);return n.pathname=t,{...e,url:n}}}function hi(t){return e=>{const n=new URL(e.url.href);return n.search=t,{...e,url:n}}}function yi(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(),{...n,url:r}}}function pi(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(),{...e,url:n}}}function vi(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(),{...n,url:r}}}function mi(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 y.isArray(n)?n.forEach((e=>i.append(t,e))):i.append(t,n),{...r,payload:i}}}ei.assert=function(t,e){if(!t)throw new ni.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(Xt,e),r(Jr,e),r(Ur,e),r(Qr,e),r(Zr,e),r(ei,e),r(Dr,e),r(Pr,e)}(Yt);const gi="function"==typeof btoa,bi="function"==typeof Buffer;"function"==typeof TextDecoder&&new TextDecoder,"function"==typeof TextEncoder&&new TextEncoder;const _i=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=");(t=>{let e={};_i.forEach(((t,n)=>e[t]=n))})(),String.fromCharCode.bind(String),"function"==typeof Uint8Array.from&&Uint8Array.from.bind(Uint8Array);const wi=gi?t=>btoa(t):bi?t=>Buffer.from(t,"binary").toString("base64"):t=>{let e,n,r,i,o="";const a=t.length%3;for(let a=0;a<t.length;){if((n=t.charCodeAt(a++))>255||(r=t.charCodeAt(a++))>255||(i=t.charCodeAt(a++))>255)throw new TypeError("invalid character found");e=n<<16|r<<8|i,o+=_i[e>>18&63]+_i[e>>12&63]+_i[e>>6&63]+_i[63&e]}return a?o.slice(0,a-3)+"===".substring(a):o};function Ai(t,e){return ai("Authorization","Basic "+wi(`${t}:${e}`))}function Oi(t){return ai("Authorization",`Bearer ${t}`)}function ki(t=!0){return e=>({...e,keepalive:t})}export{ui as accept,si as appendHeader,vi as appendSearchParam,Ai as basicAuth,Oi as bearerAuth,ri as csv,Kt as del,mi as formDataField,zt as get,Mt as head,ai as header,ci as headers,fi as host,Zt as json,ki as keepalive,Wt as patch,di as pathname,li as port,Ht as post,Jt as put,hi as search,yi as searchParam,pi as searchParams,oi as signal,Gt as text,$t as url};
7
+ */Gt.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,a={parse:function(n,r){var s=(r=r||{}).dynamicTyping||!1;if(w(s)&&(r.dynamicTypingFunction=s,s={}),r.dynamicTyping=s,r.transform=!!w(r.transform)&&r.transform,r.worker&&a.WORKERS_SUPPORTED){var c=function(){if(!a.WORKERS_SUPPORTED)return!1;var n,r,s=(n=e.URL||e.webkitURL||null,r=t.toString(),a.BLOB_URL||(a.BLOB_URL=n.createObjectURL(new Blob(["(",r,")();"],{type:"text/javascript"})))),c=new e.Worker(s);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 h=null;return a.NODE_STREAM_INPUT,"string"==typeof n?h=r.download?new u(r):new l(r):!0===n.readable&&w(n.read)&&w(n.on)?h=new d(r):(e.File&&n instanceof File||n instanceof Object)&&(h=new f(r)),h.stream(n)},unparse:function(t,e){var n=!1,r=!0,i=",",o="\r\n",s='"',c=s+s,u=!1,f=null,l=!1;!function(){if("object"==typeof e){if("string"!=typeof e.delimiter||a.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&&(s=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+s),("boolean"==typeof e.escapeFormulae||e.escapeFormulae instanceof RegExp)&&(l=e.escapeFormulae instanceof RegExp?e.escapeFormulae:/^[=+\-@\t\r].*$/)}}();var d=new RegExp(y(s),"g");if("string"==typeof t&&(t=JSON.parse(t)),Array.isArray(t)){if(!t.length||Array.isArray(t[0]))return h(null,t,u);if("object"==typeof t[0])return h(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])),h(t.fields||[],t.data||[],u);throw new Error("Unable to serialize unrecognized input");function h(t,e,n){var a="";"string"==typeof t&&(t=JSON.parse(t)),"string"==typeof e&&(e=JSON.parse(e));var s=Array.isArray(t)&&0<t.length,c=!Array.isArray(e[0]);if(s&&r){for(var u=0;u<t.length;u++)0<u&&(a+=i),a+=p(t[u],u);0<e.length&&(a+=o)}for(var f=0;f<e.length;f++){var l=s?t.length:e[f].length,d=!1,h=s?0===Object.keys(e[f]).length:0===e[f].length;if(n&&!s&&(d="greedy"===n?""===e[f].join("").trim():1===e[f].length&&0===e[f][0].length),"greedy"===n&&s){for(var y=[],v=0;v<l;v++){var m=c?t[v]:v;y.push(e[f][m])}d=""===y.join("").trim()}if(!d){for(var g=0;g<l;g++){0<g&&!h&&(a+=i);var b=s&&c?t[g]:g;a+=p(e[f][b],g)}f<e.length-1&&(!n||0<l&&!h)&&(a+=o)}}return a}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,a.BAD_DELIMITERS)||-1<o.indexOf(i)||" "===o.charAt(0)||" "===o.charAt(o.length-1))?s+o+s:o}}};if(a.RECORD_SEP=String.fromCharCode(30),a.UNIT_SEP=String.fromCharCode(31),a.BYTE_ORDER_MARK="\ufeff",a.BAD_DELIMITERS=["\r","\n",'"',a.BYTE_ORDER_MARK],a.WORKERS_SUPPORTED=!n&&!!e.Worker,a.NODE_STREAM_INPUT=1,a.LocalChunkSize=10485760,a.RemoteChunkSize=5242880,a.DefaultDelimiter=",",a.Parser=p,a.ParserHandle=h,a.NetworkStreamer=u,a.FileStreamer=f,a.StringStreamer=l,a.ReadableStreamStreamer=d,e.jQuery){var s=e.jQuery;s.fn.parse=function(t){var n=t.config||{},r=[];return this.each((function(t){if("INPUT"!==s(this).prop("tagName").toUpperCase()||"file"!==s(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:s.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=s.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()},a.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=b(t);e.chunkSize=parseInt(e.chunkSize),t.step||t.chunk||(e.chunkSize=null),this._handle=new h(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 s=this._handle.parse(o,this._baseIndex,!this._finished);if(!this._handle.paused()&&!this._handle.aborted()){var c=s.meta.cursor;this._finished||(this._partialLine=o.substring(c-this._baseIndex),this._baseIndex=c),s&&s.data&&(this._rowCount+=s.data.length);var u=this._finished||this._config.preview&&this._rowCount>=this._config.preview;if(r)e.postMessage({results:s,workerId:a.WORKER_ID,finished:u});else if(w(this._config.chunk)&&!n){if(this._config.chunk(s,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);s=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(s.data),this._completeResults.errors=this._completeResults.errors.concat(s.errors),this._completeResults.meta=s.meta),this._completed||!u||!w(this._config.complete)||s&&s.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),u||s&&s.meta.paused||this._nextChunk(),s}this._halted=!0},this._sendError=function(t){w(this._config.error)?this._config.error(t):r&&this._config.error&&e.postMessage({workerId:a.WORKER_ID,error:t,finished:!1})}}function u(t){var e;(t=t||{}).chunkSize||(t.chunkSize=a.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=_(this._chunkLoaded,this),e.onerror=_(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=a.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=_(this._chunkLoaded,this),e.onerror=_(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=_((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=_((function(t){this._streamCleanUp(),this._sendError(t)}),this),this._streamEnd=_((function(){this._streamCleanUp(),r=!0,this._streamData("")}),this),this._streamCleanUp=_((function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)}),this)}function h(t){var e,n,r,i=Math.pow(2,53),o=-i,s=/^\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,h=!1,v=[],m={data:[],errors:[],meta:{}};if(w(t.step)){var g=t.step;t.step=function(e){if(m=e,k())A();else{if(A(),0===m.data.length)return;f+=e.data.length,t.preview&&f>t.preview?n.abort():(m.data=m.data[0],g(m,u))}}}function _(e){return"greedy"===t.skipEmptyLines?""===e.join("").trim():1===e.length&&0===e[0].length}function A(){return m&&r&&(E("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+a.DefaultDelimiter+"'"),r=!1),t.skipEmptyLines&&(m.data=m.data.filter((function(t){return!_(t)}))),k()&&function(){if(m)if(Array.isArray(m.data[0])){for(var e=0;k()&&e<m.data.length;e++)m.data[e].forEach(n);m.data.splice(0,1)}else m.data.forEach(n);function n(e,n){w(t.transformHeader)&&(e=t.transformHeader(e,n)),v.push(e)}}(),function(){if(!m||!t.header&&!t.dynamicTyping&&!t.transform)return m;function e(e,n){var r,i=t.header?{}:[];for(r=0;r<e.length;r++){var o=r,a=e[r];t.header&&(o=r>=v.length?"__parsed_extra":v[r]),t.transform&&(a=t.transform(a,o)),a=O(o,a),"__parsed_extra"===o?(i[o]=i[o]||[],i[o].push(a)):i[o]=a}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!m.data.length||Array.isArray(m.data[0])?(m.data=m.data.map(e),n=m.data.length):m.data=e(m.data,0),t.header&&m.meta&&(m.meta.fields=v),l+=n,m}()}function k(){return t.header&&0===v.length}function O(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(s.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),m.errors.push(i)}this.parse=function(i,o,s){var c=t.quoteChar||'"';if(t.newline||(t.newline=function(t,e){t=t.substring(0,1048576);var n=new RegExp(y(e)+"([^]*?)"+y(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 a=0,s=0;s<r.length;s++)"\n"===r[s][0]&&a++;return a>=r.length/2?"\r\n":"\r"}(i,c)),r=!1,t.delimiter)w(t.delimiter)&&(t.delimiter=t.delimiter(i),m.meta.delimiter=t.delimiter);else{var u=function(e,n,r,i,o){var s,c,u,f;o=o||[",","\t","|",";",a.RECORD_SEP,a.UNIT_SEP];for(var l=0;l<o.length;l++){var d=o[l],h=0,y=0,v=0;u=void 0;for(var m=new p({comments:i,delimiter:d,newline:n,preview:10}).parse(e),g=0;g<m.data.length;g++)if(r&&_(m.data[g]))v++;else{var b=m.data[g].length;y+=b,void 0!==u?0<b&&(h+=Math.abs(b-u),u=b):u=b}0<m.data.length&&(y/=m.data.length-v),(void 0===c||h<=c)&&(void 0===f||f<y)&&1.99<y&&(c=h,s=d,f=y)}return{successful:!!(t.delimiter=s),bestDelimiter:s}}(i,t.newline,t.skipEmptyLines,t.comments,t.delimitersToGuess);u.successful?t.delimiter=u.bestDelimiter:(r=!0,t.delimiter=a.DefaultDelimiter),m.meta.delimiter=t.delimiter}var f=b(t);return t.preview&&t.header&&f.preview++,e=i,n=new p(f),m=n.parse(e,o,s),A(),d?{meta:{paused:!0}}:m||{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 h},this.abort=function(){h=!0,n.abort(),m.meta.aborted=!0,w(t.complete)&&t.complete(m),e=""}}function y(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function p(t){var e,n=(t=t||{}).delimiter,r=t.newline,i=t.comments,o=t.step,s=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<a.BAD_DELIMITERS.indexOf(n))&&(n=","),i===n)throw new Error("Comment character same as delimiter");!0===i?i="#":("string"!=typeof i||-1<a.BAD_DELIMITERS.indexOf(i))&&(i=!1),"\n"!==r&&"\r"!==r&&"\r\n"!==r&&(r="\n");var f=0,l=!1;this.parse=function(t,a,d){if("string"!=typeof t)throw new Error("Input must be a string");var h=t.length,p=n.length,v=r.length,m=i.length,g=w(o),b=[],_=[],A=[],k=f=0;if(!t)return L();if(c||!1!==c&&-1===t.indexOf(e)){for(var O=t.split(r),E=0;E<O.length;E++){if(A=O[E],f+=A.length,E!==O.length-1)f+=r.length;else if(d)return L();if(!i||A.substring(0,m)!==i){if(g){if(b=[],x(A.split(n)),U(),l)return L()}else x(A.split(n));if(s&&s<=E)return b=b.slice(0,s),L(!0)}}return L()}for(var S=t.indexOf(n,f),I=t.indexOf(r,f),R=new RegExp(y(u)+y(e),"g"),T=t.indexOf(e,f);;)if(t[f]!==e)if(i&&0===A.length&&t.substring(f,f+m)===i){if(-1===I)return L();f=I+v,I=t.indexOf(r,f),S=t.indexOf(n,f)}else if(-1!==S&&(S<I||-1===I))A.push(t.substring(f,S)),f=S+p,S=t.indexOf(n,f);else{if(-1===I)break;if(A.push(t.substring(f,I)),N(I+v),g&&(U(),l))return L();if(s&&b.length>=s)return L(!0)}else for(T=f,f++;;){if(-1===(T=t.indexOf(e,T+1)))return d||_.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:b.length,index:f}),P();if(T===h-1)return P(t.substring(f,T).replace(R,e));if(e!==u||t[T+1]!==u){if(e===u||0===T||t[T-1]!==u){-1!==S&&S<T+1&&(S=t.indexOf(n,T+1)),-1!==I&&I<T+1&&(I=t.indexOf(r,T+1));var j=D(-1===I?S:Math.min(S,I));if(t.substr(T+1+j,p)===n){A.push(t.substring(f,T).replace(R,e)),t[f=T+1+j+p]!==e&&(T=t.indexOf(e,f)),S=t.indexOf(n,f),I=t.indexOf(r,f);break}var C=D(I);if(t.substring(T+1+C,T+1+C+v)===r){if(A.push(t.substring(f,T).replace(R,e)),N(T+1+C+v),S=t.indexOf(n,f),T=t.indexOf(e,f),g&&(U(),l))return L();if(s&&b.length>=s)return L(!0);break}_.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:b.length,index:f}),T++}}else T++}return P();function x(t){b.push(t),k=f}function D(e){var n=0;if(-1!==e){var r=t.substring(T+1,e);r&&""===r.trim()&&(n=r.length)}return n}function P(e){return d||(void 0===e&&(e=t.substring(f)),A.push(e),f=h,x(A),g&&U()),L()}function N(e){f=e,x(A),A=[],I=t.indexOf(r,f)}function L(t){return{data:b,errors:_,meta:{delimiter:n,linebreak:r,aborted:l,truncated:!!t,cursor:k+(a||0)}}}function U(){o(L()),b=[],_=[]}},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,m(e.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:g,resume:g};if(w(n.userStep)){for(var a=0;a<e.results.data.length&&(n.userStep({data:e.results.data[a],errors:e.results.errors,meta:e.results.meta},o),!r);a++);delete e.results}else w(n.userChunk)&&(n.userChunk(e.results,o,e.file),delete e.results)}e.finished&&!r&&m(e.workerId,e.results)}function m(t,e){var n=i[t];w(n.userComplete)&&n.userComplete(e),n.terminate(),delete i[t]}function g(){throw new Error("Not implemented.")}function b(t){if("object"!=typeof t||null===t)return t;var e=Array.isArray(t)?[]:{};for(var n in t)e[n]=b(t[n]);return e}function _(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===a.WORKER_ID&&n&&(a.WORKER_ID=n.workerId),"string"==typeof n.input)e.postMessage({workerId:a.WORKER_ID,results:a.parse(n.input,n.config),finished:!0});else if(e.File&&n.input instanceof File||n.input instanceof Object){var r=a.parse(n.input,n.config);r&&e.postMessage({workerId:a.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,a}();var Zt={},Vt={},Yt={},Xt={},te={},ee={},ne={};ne.go=void 0,ne.go=function(t){return 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]});(t&&t.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)})(ne,e)}(ee),te.chunkAsync=void 0;const re=ee,ie=Zt;te.chunkAsync=function(t,e){return(0,ie.assert)(Number.isInteger(e),"The parameter size must be an integer"),(0,ie.assert)(e>0,"The parameter size must be greater than 0"),(0,re.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 oe={chunkByAsync:void 0};const ae=h;oe.chunkByAsync=function(t,e){return(0,ae.isAsyncIterable)(t)?async function*(t){let n=[],r=0;for await(const i of t)n.push(i),await e(i,r)&&(yield n,n=[]),r++;n.length&&(yield n)}(t):async function*(t){let n=[],r=0;for(const i of t)n.push(i),await e(i,r)&&(yield n,n=[]),r++;n.length&&(yield n)}(t)};var se={};se.chunkBy=void 0,se.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 ce={chunk:void 0};const ue=ee,fe=Zt;ce.chunk=function(t,e){return(0,fe.assert)(Number.isInteger(e),"The parameter size must be an integer"),(0,fe.assert)(e>0,"The parameter size must be greater than 0"),(0,ue.go)((function*(){let n=[];for(const r of t)n.push(r),n.length>=e&&(yield n,n=[]);n.length&&(yield n)}))};var le={concatAsync:void 0};const de=h,he=ee;le.concatAsync=function(t,...e){return(0,he.go)((async function*(){for(const n of[t,...e])if((0,de.isAsyncIterable)(n))for await(const t of n)yield t;else for(const t of n)yield t}))};var ye={concat:void 0};const pe=ee;ye.concat=function(t,...e){return(0,pe.go)((function*(){for(const n of[t,...e])yield*n}))};var ve={},me={};me.copyIterable=me.copyAsyncIterable=void 0,me.copyAsyncIterable=async function*(t){for await(const e of t)yield e},me.copyIterable=function*(t){for(const e of t)yield e},ve.dropAsync=void 0;const ge=ee,be=me,_e=Zt;ve.dropAsync=function(t,e){return(0,_e.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,_e.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,be.copyAsyncIterable)(t):(0,ge.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 we={dropRightAsync:void 0};const Ae=ee,ke=me,Oe=Zt;we.dropRightAsync=function(t,e){return(0,Oe.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Oe.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,ke.copyAsyncIterable)(t):(0,Ae.go)((async function*(){const n=(await async function(t){const e=[];for await(const n of t)e.push(n);return e}(t)).slice(0,-e);for(const t of n)yield t}))};var Ee={dropRight:void 0};const Se=ee,Ie=me,Re=Zt;Ee.dropRight=function(t,e){return(0,Re.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Re.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,Ie.copyIterable)(t):(0,Se.go)((function*(){const n=Array.from(t);yield*n.slice(0,-e)}))};var Te={dropUntilAsync:void 0};const je=h;Te.dropUntilAsync=function(t,e){return(0,je.isAsyncIterable)(t)?async function*(t){var n;const r=t[Symbol.asyncIterator]();let i;try{let t,o=0;for(;!(({value:t,done:i}=await r.next()),i||await e(t,o++)););for(;!i;)yield t,({value:t,done:i}=await r.next())}finally{i||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}}(t):async function*(t){var n;const r=t[Symbol.iterator]();let i;try{let t,o=0;for(;!(({value:t,done:i}=r.next()),i||await e(t,o++)););for(;!i;)yield t,({value:t,done:i}=r.next())}finally{i||null===(n=r.return)||void 0===n||n.call(r)}}(t)};var Ce={};Ce.dropUntil=void 0,Ce.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 xe={drop:void 0};const De=ee,Pe=me,Ne=Zt;xe.drop=function(t,e){return(0,Ne.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Ne.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,Pe.copyIterable)(t):(0,De.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 Le={filterAsync:void 0};const Ue=h;Le.filterAsync=function(t,e){return(0,Ue.isAsyncIterable)(t)?async function*(t){let n=0;for await(const r of t)await e(r,n)&&(yield r),n++}(t):async function*(t){let n=0;for(const r of t)await e(r,n)&&(yield r),n++}(t)};var Be={};Be.filter=void 0,Be.filter=function*(t,e){let n=0;for(const r of t)e(r,n)&&(yield r),n++};var Fe={},qe={},ze={flattenByAsync:void 0};const Me=h;function He(t){return(0,Me.isIterable)(t)&&(0,Me.isntChar)(t)}ze.flattenByAsync=function(t,e){return(0,Me.isAsyncIterable)(t)?async function*(t){const r=1;for await(const i of t)He(i)&&await e(i,r)?yield*n(i,r+1):yield i}(t):function(t){return n(t,1)}(t);async function*n(t,r){for(const i of t)He(i)&&await e(i,r)?yield*n(i,r+1):yield i}},qe.flattenDeepAsync=void 0;const Je=ze,We=Zt;qe.flattenDeepAsync=function(t,e=1/0){return(0,We.assert)(e===1/0||Number.isInteger(e),"The parameter depth must be an integer"),(0,We.assert)(e>=0,"The parameter depth must be greater than or equal to 0"),(0,Je.flattenByAsync)(t,((t,n)=>n<=e))},Fe.flattenAsync=void 0;const Ke=qe;Fe.flattenAsync=function(t){return(0,Ke.flattenDeepAsync)(t,1)};var Qe={flattenBy:void 0};const $e=h;Qe.flattenBy=function(t,e){return function*t(n,r){for(const o of n)i=o,(0,$e.isIterable)(i)&&(0,$e.isntChar)(i)&&e(o,r)?yield*t(o,r+1):yield o;var i}(t,1)};var Ge={flattenDeep:void 0};const Ze=Qe,Ve=Zt;Ge.flattenDeep=function(t,e=1/0){return(0,Ve.assert)(e===1/0||Number.isInteger(e),"The parameter depth must be an integer"),(0,Ve.assert)(e>=0,"The parameter depth must be greater than or equal to 0"),(0,Ze.flattenBy)(t,((t,n)=>n<=e))};var Ye={flatten:void 0};const Xe=Ge;Ye.flatten=function(t){return(0,Xe.flattenDeep)(t,1)};var tn={mapAsync:void 0};const en=h;tn.mapAsync=function(t,e){return(0,en.isAsyncIterable)(t)?async function*(t){let n=0;for await(const r of t)yield await e(r,n),n++}(t):async function*(t){let n=0;for(const r of t)yield await e(r,n),n++}(t)};var nn={};nn.map=void 0,nn.map=function*(t,e){let n=0;for(const r of t)yield e(r,n),n++};var rn={repeatAsync:void 0};const on=ee,an=Zt;rn.repeatAsync=function(t,e){return(0,an.assert)(e===1/0||Number.isInteger(e),"The parameter times must be an integer"),(0,an.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,on.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 sn={repeat:void 0};const cn=ee,un=Zt;sn.repeat=function(t,e){return(0,un.assert)(e===1/0||Number.isInteger(e),"The parameter times must be an integer"),(0,un.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,cn.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 fn={sliceAsync:void 0};const ln=ee,dn=Zt;fn.sliceAsync=function(t,e,n=1/0){return(0,dn.assert)(Number.isInteger(e),"The parameter start must be an integer"),(0,dn.assert)(e>=0,"The parameter start must be greater than or equal to 0"),(0,dn.assert)(Number.isInteger(n),"The parameter end must be an integer"),(0,dn.assert)(n>=e,"The parameter end must be greater than or equal to start"),(0,ln.go)((async function*(){let r=0;for await(const i of t){if(r>=n)break;r>=e&&(yield i),r++}}))};var hn={slice:void 0};const yn=ee,pn=Zt;hn.slice=function(t,e,n=1/0){return(0,pn.assert)(Number.isInteger(e),"The parameter start must be an integer"),(0,pn.assert)(e>=0,"The parameter start must be greater than or equal to 0"),(0,pn.assert)(Number.isInteger(n),"The parameter end must be an integer"),(0,pn.assert)(n>=e,"The parameter end must be greater than or equal to start"),(0,yn.go)((function*(){let r=0;for(const i of t){if(r>=n)break;r>=e&&(yield i),r++}}))};var vn={};vn.splitAsync=void 0,vn.splitAsync=async function*(t,e){let n=[];for await(const r of t)r===e?(yield n,n=[]):n.push(r);yield n};var mn={splitByAsync:void 0};const gn=h;mn.splitByAsync=function(t,e){return(0,gn.isAsyncIterable)(t)?async function*(t){let n=[],r=0;for await(const i of t)await e(i,r)?(yield n,n=[]):n.push(i),r++;yield n}(t):async function*(t){let n=[],r=0;for(const i of t)await e(i,r)?(yield n,n=[]):n.push(i),r++;yield n}(t)};var bn={};bn.splitBy=void 0,bn.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 _n={};_n.split=void 0,_n.split=function*(t,e){let n=[];for(const r of t)r===e?(yield n,n=[]):n.push(r);yield n};var wn={takeAsync:void 0};const An=ee,kn=Zt;wn.takeAsync=function(t,e){return(0,kn.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,kn.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,An.go)((async function*(){if(0!==e)for await(const n of t)if(yield n,0===--e)break}))};var On={takeRightAsync:void 0};const En=ee,Sn=Zt;On.takeRightAsync=function(t,e){return(0,Sn.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Sn.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,En.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 In={takeRight:void 0};const Rn=ee,Tn=Zt;In.takeRight=function(t,e){return(0,Tn.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Tn.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,Rn.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 jn={takeUntilAsync:void 0};const Cn=h;jn.takeUntilAsync=function(t,e){return(0,Cn.isAsyncIterable)(t)?async function*(t){let n=0;for await(const r of t){if(await e(r,n))break;yield r,n++}}(t):async function*(t){let n=0;for(const r of t){if(await e(r,n))break;yield r,n++}}(t)};var xn={};xn.takeUntil=void 0,xn.takeUntil=function*(t,e){let n=0;for(const r of t){if(e(r,n))break;yield r,n++}};var Dn={take:void 0};const Pn=ee,Nn=Zt;Dn.take=function(t,e){return(0,Nn.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Nn.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,Pn.go)((function*(){if(0!==e)for(const n of t)if(yield n,0===--e)break}))};var Ln={tapAsync:void 0};const Un=h;Ln.tapAsync=function(t,e){return(0,Un.isAsyncIterable)(t)?async function*(t){let n=0;for await(const r of t)await e(r,n),yield r,n++}(t):async function*(t){let n=0;for(const r of t)await e(r,n),yield r,n++}(t)};var Bn={};Bn.tap=void 0,Bn.tap=function*(t,e){let n=0;for(const r of t)e(r,n),yield r,n++};var Fn={};Fn.toAsyncIterable=void 0,Fn.toAsyncIterable=async function*(t){for(const e of t)yield e};var qn={};qn.transformAsync=void 0,qn.transformAsync=async function*(t,e){yield*e(t)};var zn={};zn.transform=void 0,zn.transform=function*(t,e){yield*e(t)};var Mn={};Mn.uniqAsync=void 0,Mn.uniqAsync=async function*(t){const e=new Set;for await(const n of t)e.has(n)||(yield n,e.add(n))};var Hn={uniqByAsync:void 0};const Jn=h;Hn.uniqByAsync=function(t,e){return(0,Jn.isAsyncIterable)(t)?async function*(t){const n=new Set;let r=0;for await(const i of t){const t=await e(i,r);n.has(t)||(yield i,n.add(t)),r++}}(t):async function*(t){const n=new Set;let r=0;for(const i of t){const t=await e(i,r);n.has(t)||(yield i,n.add(t)),r++}}(t)};var Wn={};Wn.uniqBy=void 0,Wn.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 Kn={};Kn.uniq=void 0,Kn.uniq=function*(t){const e=new Set;for(const n of t)e.has(n)||(yield n,e.add(n))};var Qn={zipAsync:void 0};const $n=h;var Gn;!function(t){t[t.Sync=0]="Sync",t[t.Async=1]="Async"}(Gn||(Gn={})),Qn.zipAsync=function(t,...e){return async function*(...t){var e,n,r,i;const o=t.length,a=t.map((t=>(0,$n.isAsyncIterable)(t)?[Gn.Async,t[Symbol.asyncIterator]()]:[Gn.Sync,t[Symbol.iterator]()])),s=a.map((()=>!1));try{for(;;){const t=new Array(o);for(let e=0;e<o;e++){const[n,r]=a[e];let i;if(i=n===Gn.Async?await r.next():r.next(),i.done)return void(s[e]=!0);t[e]=i.value}yield t}}finally{const t=a.filter(((t,e)=>!s[e]));for(const[o,a]of t)o===Gn.Async?await(null===(n=(e=a).return)||void 0===n?void 0:n.call(e)):null===(i=(r=a).return)||void 0===i||i.call(r)}}(t,...e)};var Zn={};Zn.zip=void 0,Zn.zip=function(t,...e){return function*(...t){const e=t.length,n=t.map((t=>t[Symbol.iterator]())),r=n.map((()=>!1));try{for(;;){const t=new Array(e);for(let i=0;i<e;i++){const{value:e,done:o}=n[i].next();if(o)return void(r[i]=!0);t[i]=e}yield t}}finally{n.filter(((t,e)=>!r[e])).forEach((t=>{var e;return null===(e=t.return)||void 0===e?void 0:e.call(t)}))}}(t,...e)},function(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(te,e),r(oe,e),r(se,e),r(ce,e),r(le,e),r(ye,e),r(ve,e),r(we,e),r(Ee,e),r(Te,e),r(Ce,e),r(xe,e),r(Le,e),r(Be,e),r(Fe,e),r(ze,e),r(Qe,e),r(qe,e),r(Ge,e),r(Ye,e),r(tn,e),r(nn,e),r(rn,e),r(sn,e),r(fn,e),r(hn,e),r(vn,e),r(mn,e),r(bn,e),r(_n,e),r(wn,e),r(On,e),r(In,e),r(jn,e),r(xn,e),r(Dn,e),r(Ln,e),r(Bn,e),r(Fn,e),r(qn,e),r(zn,e),r(Mn,e),r(Hn,e),r(Wn,e),r(Kn,e),r(Qn,e),r(Zn,e)}(Xt);var Vn={},Yn={};Yn.consume=void 0,Yn.consume=function(t,e){return e(t)};var Xn={eachAsync:void 0};const tr=h;Xn.eachAsync=function(t,e){return(0,tr.isAsyncIterable)(t)?async function(t){let n=0;for await(const r of t)await e(r,n),n++}(t):async function(t){let n=0;for(const r of t)await e(r,n),n++}(t)};var er={};er.each=void 0,er.each=function(t,e){let n=0;for(const r of t)e(r,n),n++};var nr={everyAsync:void 0};const rr=h;nr.everyAsync=function(t,e){return(0,rr.isAsyncIterable)(t)?async function(t){let n=0;for await(const r of t){if(!await e(r,n))return!1;n++}return!0}(t):async function(t){let n=0;for(const r of t){if(!await e(r,n))return!1;n++}return!0}(t)};var ir={};ir.every=void 0,ir.every=function(t,e){let n=0;for(const r of t){if(!e(r,n))return!1;n++}return!0};var or={findAsync:void 0};const ar=h;or.findAsync=function(t,e){return(0,ar.isAsyncIterable)(t)?async function(t){let n=0;for await(const r of t){if(await e(r,n))return r;n++}return}(t):async function(t){let n=0;for(const r of t){if(await e(r,n))return r;n++}return}(t)};var sr={};sr.find=void 0,sr.find=function(t,e){let n=0;for(const r of t){if(e(r,n))return r;n++}};var cr={};cr.firstAsync=void 0,cr.firstAsync=async function(t){for await(const e of t)return e};var ur={};ur.first=void 0,ur.first=function(t){for(const e of t)return e};var fr={};fr.includesAsync=void 0,fr.includesAsync=async function(t,e){for await(const n of t)if(n===e)return!0;return!1};var lr={};lr.includes=void 0,lr.includes=function(t,e){for(const n of t)if(n===e)return!0;return!1};var dr={};dr.matchAsync=void 0,dr.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 hr={};hr.match=void 0,hr.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 yr={reduceAsync:void 0};const pr=h;yr.reduceAsync=function(t,e,n){return(0,pr.isUndefined)(n)?function(t,e){return(0,pr.isAsyncIterable)(t)?n(t):r(t);async function n(t){var n;const r=t[Symbol.asyncIterator]();let i;try{let t,a=await o(r),s=1;for(;({value:t,done:i}=await r.next()),!i;)a=await e(a,t,s++);return a}finally{i||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}async function o(t){const e=await t.next();if(e.done)throw i=!0,new Error("Reduce of empty iterable with no initial value");return e.value}}async function r(t){var n;const r=t[Symbol.iterator]();let i;try{let t,a=o(r),s=1;for(;({value:t,done:i}=r.next()),!i;)a=await e(a,t,s++);return a}finally{i||null===(n=r.return)||void 0===n||n.call(r)}function o(t){const e=t.next();if(e.done)throw i=!0,new Error("Reduce of empty iterable with no initial value");return e.value}}}(t,e):function(t,e,n){return(0,pr.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 vr={reduce:void 0};const mr=h;vr.reduce=function(t,e,n){return(0,mr.isUndefined)(n)?function(t,e){var n;const r=t[Symbol.iterator]();let i;try{let t,a=o(r),s=1;for(;({value:t,done:i}=r.next()),!i;)a=e(a,t,s++);return a}finally{i||null===(n=r.return)||void 0===n||n.call(r)}function o(t){const e=t.next();if(e.done)throw i=!0,new Error("Reduce of empty iterable with no initial value");return e.value}}(t,e):function(t,e,n){let r=n,i=0;for(const n of t)r=e(r,n,i++);return r}(t,e,n)};var gr={someAsync:void 0};const br=h;gr.someAsync=function(t,e){return(0,br.isAsyncIterable)(t)?async function(t){let n=0;for await(const r of t){if(await e(r,n))return!0;n++}return!1}(t):async function(t){let n=0;for(const r of t){if(await e(r,n))return!0;n++}return!1}(t)};var _r={};_r.some=void 0,_r.some=function(t,e){let n=0;for(const r of t){if(e(r,n))return!0;n++}return!1};var wr={};wr.lastAsync=void 0,wr.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 Ar={};Ar.last=void 0,Ar.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 kr={toArrayAsync:void 0};const Or=Yn;kr.toArrayAsync=function(t){return(0,Or.consume)(t,(async t=>{const e=[];for await(const n of t)e.push(n);return e}))};var Er={toArray:void 0};const Sr=Yn;Er.toArray=function(t){return(0,Sr.consume)(t,(t=>Array.from(t)))};var Ir={toSetAsync:void 0};const Rr=Yn;Ir.toSetAsync=function(t){return(0,Rr.consume)(t,(async t=>{const e=new Set;for await(const n of t)e.add(n);return e}))};var Tr={toSet:void 0};const jr=Yn;Tr.toSet=function(t){return(0,jr.consume)(t,(t=>new Set(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(Yn,e),r(Xn,e),r(er,e),r(nr,e),r(ir,e),r(or,e),r(sr,e),r(cr,e),r(ur,e),r(fr,e),r(lr,e),r(dr,e),r(hr,e),r(yr,e),r(vr,e),r(gr,e),r(_r,e),r(wr,e),r(Ar,e),r(kr,e),r(Er,e),r(Ir,e),r(Tr,e)}(Vn),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(Xt,e),r(Vn,e)}(Yt);var Cr={},xr={};xr.traverseErrorPrototypeChain=void 0,xr.traverseErrorPrototypeChain=function*(t){let e=t;for(;(e=Object.getPrototypeOf(e))&&(yield e,e!==Error.prototype););},Cr.getErrorNames=void 0;const Dr=h,Pr=xr;Cr.getErrorNames=function*(t){var e;if((0,Dr.isError)(t))for(const n of(0,Pr.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 Nr={isSerializableError:void 0};const Lr=h;Nr.isSerializableError=function(t){return(0,Lr.isObject)(t)&&(0,Lr.isString)(t.name)&&(0,Lr.isString)(t.message)&&((0,Lr.isString)(t.stack)||(0,Lr.isNull)(t.stack))&&(0,Lr.isArray)(t.ancestors)&&t.ancestors.every(Lr.isString)},Vt.CustomError=void 0;const Ur=Yt,Br=Cr,Fr=h,qr=Nr;class zr extends Error{get name(){var t,e;return null!==(e=null!==(t=(0,Ur.first)((0,Br.getErrorNames)(this)))&&void 0!==t?t:zr.name)&&void 0!==e?e:"CustomError"}static[Symbol.hasInstance](t){var e;if((0,Fr.isError)(t)||(0,qr.isSerializableError)(t)){const n=[null!==(e=this.prototype.constructor.name)&&void 0!==e?e:this.name,...(0,Br.getErrorNames)(this.prototype)].reverse(),r=(0,Ur.toArray)((0,Br.getErrorNames)(t)).reverse();return n.every(((t,e)=>t===r[e]))}return!1}}Vt.CustomError=zr;var Mr={AssertionError:void 0};const Hr=Vt;class Jr extends Hr.CustomError{}Mr.AssertionError=Jr;var Wr={normalize:void 0};const Kr=Cr,Qr=Yt;Wr.normalize=function(t){var e;const[n,...r]=(0,Qr.toArray)((0,Kr.getErrorNames)(t));return{name:n,ancestors:r,message:t.message,stack:null!==(e=t.stack)&&void 0!==e?e:null}};var $r={},Gr={},Zr={};Zr.pass=void 0,Zr.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]});(t&&t.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)})(Zr,e)}(Gr),$r.hydrate=void 0;const Vr=Gr;function Yr(t,e){const n=function(){(0,Vr.pass)()};return(n.prototype=Object.create(t.prototype)).constructor=n,Object.defineProperty(n,"name",{value:e}),n}$r.hydrate=function(t){var e;const n=[t.name,...t.ancestors].slice(0,-1).reverse();let r=Error;for(const t of n)r=Yr(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 Xr={assert:void 0};const ti=Mr;function ei(t){return Zt.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"),{...n,headers:r,payload:ni(t)}}}function ni(t){const e=Object.keys(t[0]);return Gt.exports.unparse({data:t,fields:e})}function ri(t){return e=>({...e,signal:t})}function ii(t,n){return r=>{const i=new e.Headers(r.headers);return i.set(t,n),{...r,headers:i}}}function oi(t,n){return r=>{const i=new e.Headers(r.headers);return i.append(t,n),{...r,headers:i}}}function ai(t){return n=>{const r=new e.Headers(n.headers);for(const[e,n]of Object.entries(t))r.set(e,n);return{...n,headers:r}}}function si(t){return oi("Accept",t)}function ci(t){return e=>{const n=new URL(e.url.href);return n.host=t,{...e,url:n}}}function ui(t){return e=>{const n=new URL(e.url.href);return n.port=t.toString(),{...e,url:n}}}function fi(t){return e=>{const n=new URL(e.url.href);return n.pathname=t,{...e,url:n}}}function li(t){return e=>{const n=new URL(e.url.href);return n.search=t,{...e,url:n}}}function di(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(),{...n,url:r}}}function hi(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(),{...e,url:n}}}function yi(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(),{...n,url:r}}}function pi(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),{...r,payload:i}}}Xr.assert=function(t,e){if(!t)throw new ti.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(Vt,e),r(Mr,e),r(Nr,e),r(Wr,e),r($r,e),r(Xr,e),r(Cr,e),r(xr,e)}(Zt);const vi="function"==typeof btoa,mi="function"==typeof Buffer;"function"==typeof TextDecoder&&new TextDecoder,"function"==typeof TextEncoder&&new TextEncoder;const gi=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=");(t=>{let e={};gi.forEach(((t,n)=>e[t]=n))})(),String.fromCharCode.bind(String),"function"==typeof Uint8Array.from&&Uint8Array.from.bind(Uint8Array);const bi=vi?t=>btoa(t):mi?t=>Buffer.from(t,"binary").toString("base64"):t=>{let e,n,r,i,o="";const a=t.length%3;for(let a=0;a<t.length;){if((n=t.charCodeAt(a++))>255||(r=t.charCodeAt(a++))>255||(i=t.charCodeAt(a++))>255)throw new TypeError("invalid character found");e=n<<16|r<<8|i,o+=gi[e>>18&63]+gi[e>>12&63]+gi[e>>6&63]+gi[63&e]}return a?o.slice(0,a-3)+"===".substring(a):o};function _i(t,e){return ii("Authorization","Basic "+bi(`${t}:${e}`))}function wi(t){return ii("Authorization",`Bearer ${t}`)}function Ai(t=!0){return e=>({...e,keepalive:t})}export{si as accept,oi as appendHeader,yi as appendSearchParam,_i as basicAuth,wi as bearerAuth,ei as csv,Jt as del,pi as formDataField,Ft as get,qt as head,ii as header,ai as headers,ci as host,$t as json,Ai as keepalive,Ht as patch,fi as pathname,ui as port,zt as post,Mt as put,li as search,di as searchParam,hi as searchParams,ri as signal,Qt as text,Kt as url};
8
8
  //# sourceMappingURL=index.min.mjs.map