@jrc03c/make-key 0.0.23 → 0.0.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/make-key.js +3 -3
- package/package.json +2 -2
package/dist/make-key.js
CHANGED
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
`),mt=class extends Error{constructor(t){Cc()?super(t):super(`
|
|
12
12
|
|
|
13
13
|
\x1B[31m`+t+`
|
|
14
|
-
\x1B[0m`)}};Tr.exports=mt});var m=c((Zq,_r)=>{var zc=Q();_r.exports=function(e,t){if(!e)throw new zc(t)}});var y=c((eb,Dr)=>{function kc(e){return e===null||typeof e>"u"}Dr.exports=kc});var Ar=c((tb,Ir)=>{Ir.exports=[Array,ArrayBuffer,BigInt64Array,BigUint64Array,Float32Array,Float64Array,Int16Array,Int32Array,Int8Array,Uint16Array,Uint32Array,Uint8Array,Uint8ClampedArray]});var p=c((rb,Er)=>{var Rc=y(),xr=Ar(),Jc=xr.map(e=>e.name);function $c(e){try{return e instanceof Array?!0:Rc(e.constructor)?!1:xr.indexOf(e.constructor)>-1||Jc.indexOf(e.constructor.name)>-1}catch{return!1}}Er.exports=$c});var b=c((nb,jr)=>{function Yc(e){try{return!!e._symbol&&e._symbol===Symbol.for("@jrc03c/js-math-tools/dataframe")}catch{return!1}}jr.exports=Yc});var D=c((sb,Fr)=>{function Lc(e){return typeof e=="function"}Fr.exports=Lc});var g=c((ib,Mr)=>{function Vc(e){return typeof e=="number"&&!isNaN(e)||typeof e=="bigint"}Mr.exports=Vc});var R=c((ob,Br)=>{var Gc=p(),Kc=y();function Wc(e){return typeof e=="object"&&!Kc(e)&&!Gc(e)}Br.exports=Wc});var q=c((ub,Pr)=>{function Hc(e){try{return!!e._symbol&&e._symbol===Symbol.for("@jrc03c/js-math-tools/series")}catch{return!1}}Pr.exports=Hc});var ce=c((ab,zr)=>{var Xc=m(),Ur=p(),Qc=b(),Zc=D(),dt=g(),Cr=R(),el=q();function pt(e,t){if(Qc(e)){let i=pt(e.values,t);return i.length>0&&dt(i[0])&&i[0]>=0&&i[0]<e.index.length&&(i[0]=e.index[i[0]]),i.length>1&&dt(i[1])&&i[1]>=0&&i[1]<e.columns.length&&(i[1]=e.columns[i[1]]),i}if(el(e)){let i=pt(e.values,t);return i.length>0&&dt(i[0])&&i[0]>=0&&i[0]<e.index.length&&(i[0]=e.index[i[0]]),i}if(Xc(Cr(e)||Ur(e),"You must pass (1) an object, array, Series, or DataFrame and (2) a function or value into the `indexOf` function!"),!Zc(t)){let i=t;t=o=>o===i}function r(i,o,u){if(u=u||[],u.indexOf(i)>-1)return null;if(Cr(i)){u.push(i);let a=Object.keys(i).concat(Object.getOwnPropertySymbols(i));for(let l=0;l<a.length;l++){let f=a[l],h=i[f];if(o(h))return[f];let d=r(h,o,u);if(d&&d.length>0)return[f].concat(d)}}else if(Ur(i)){u.push(i);for(let a=0;a<i.length;a++){let l=i[a];if(o(l))return[a];let f=r(l,o,u);if(f&&f.length>0)return[a].concat(f)}}else if(o(i))return[];return null}function n(i){try{return t(i)}catch{return!1}}let s=r(e,n);return s&&s.length>0?s:null}zr.exports=pt});var z=c((cb,$r)=>{var tl=ce(),kr=p(),Rr=b(),Jr=q();function le(e){function t(r){if(typeof r=="object"){if(r===null)return null;if(kr(r))return r instanceof Array?r.map(s=>le(s)):r.slice();if(Jr(r)){let s=r.copy();return s.values=le(s.values),s}if(Rr(r)){let s=r.copy();return s.values=le(r.values),s}if(r instanceof Date)return new Date(r.getTime());r=gt(r);let n={};return Object.keys(r).concat(Object.getOwnPropertySymbols(r)).forEach(s=>{n[s]=le(r[s])}),n}else return r}return t(gt(e))}function gt(e){function t(s,i,o){if(i=i||[],o=o||"",i.indexOf(s)>-1){let u=o.split("/").slice(o.startsWith("/")?1:0);if(u.some((l,f)=>{let h=u.slice(0,u.length-f-1),d=r;return h.forEach(w=>{d=d[w]}),d===s}))return`<reference to "${r===s?"/":"/"+tl(r,s).join("/")}">`}return typeof s=="object"?s===null?null:(i.push(s),kr(s)?typeof s.constructor<"u"&&s.constructor.name!=="Array"?s.slice():s.map((u,a)=>t(u,i,o+"/"+a)):(Object.keys(s).concat(Object.getOwnPropertySymbols(s)).forEach(u=>{s[u]=t(s[u],i,o+"/"+u.toString())}),s)):s}let r=e,n=t(r);if(Rr(e)){let s=e.copy();s._values=n.values,s._columns=n.columns,s._index=n.index,n=s}if(Jr(e)){let s=e.copy();s.name=n.name,s._values=n.values,s._index=n.index,n=s}return n}$r.exports={copy:le,decycle:gt}});var fe=c((lb,Yr)=>{function rl(e){return e instanceof Date&&e.toString()!=="Invalid Date"}Yr.exports=rl});var M=c((fb,Kr)=>{var{decycle:Lr}=z(),Vr=p(),yt=fe(),Gr=["number","int","float","bigint"];function nl(e,t){function r(n,s){let i=typeof n,o=typeof s;if(i!==o&&!Gr.includes(i)&&!Gr.includes(o))return!1;if(i==="undefined")return!0;if(i==="boolean"||i==="symbol")return n===s;if(i==="number"||i==="bigint")try{let u=n.toString(),a=s.toString();return u===a}catch{return!1}if(i==="string"||i==="function")return n===s;if(i==="object"){if(n===null||s===null)return n===null&&s===null;{if(yt(n))return yt(s)?n.getTime()===s.getTime():!1;if(yt(s))return!1;if(n instanceof RegExp&&s instanceof RegExp)return n.toString()===s.toString();if(Vr(n)!==Vr(s))return!1;let u=Object.keys(n).concat(Object.getOwnPropertySymbols(n)),a=Object.keys(s).concat(Object.getOwnPropertySymbols(s));if(u.length!==a.length)return!1;for(let l=0;l<u.length;l++){let f=u[l];if(!r(n[f],s[f]))return!1}return!0}}}try{return r(e,t)}catch{return r(Lr(e),Lr(t))}}Kr.exports=nl});var Xr=c((hb,Hr)=>{var Wr=M(),qt=class{constructor(){this.clear()}get counts(){return this.values.map(t=>this.dict.get(t))}get values(){return Array.from(this.dict.keys())}clear(){return this.dict=new Map,this}count(t){for(let r of t)this.increment(r);return this}delete(t){return this.dict.delete(this.getOriginalValue(t)),this}get(t){return this.dict.get(this.getOriginalValue(t))||0}getOriginalValue(t){if(this.dict.has(t))return t;if(typeof t=="object"&&t!==null){let r=this.values.find(n=>Wr(n,t));if(r)return r}return t}has(t){return this.dict.has(t)||typeof t=="object"&&t!==null&&!!this.values.find(r=>Wr(r,t))}increment(t){return this.set(t,this.get(t)+1)}set(t,r){return this.dict.set(this.getOriginalValue(t),r),this}toArray(){return this.values.map(t=>({value:t,count:this.dict.get(t)}))}toObject(){let t={};return this.values.forEach(r=>{t[r]=this.dict.get(r)}),t}};Hr.exports=qt});var I=c((mb,en)=>{var sl=m(),Qr=p(),il=b(),ol=q();function Zr(e){if(il(e)||ol(e))return Zr(e.values);sl(Qr(e),"The `flatten` function only works on arrays, Series, and DataFrames!");function t(r){let n=[];return r.forEach(s=>{Qr(s)?n=n.concat(t(s)):n.push(s)}),n}return t(e)}en.exports=Zr});var j=c((db,tn)=>{var ul=Xr(),al=I(),cl=g();function ll(e,t){t=t||{};let r=new ul,n={},s=al(e),i=[],o=-1/0,u=1/0,a=!1,l=0;for(let h of s){if(typeof h=="bigint"&&(a=!0),!t.dropNaNs||cl(h))try{h>o&&(o=h),h<u&&(u=h),l+=Number(h),i.push(h)}catch{o=NaN,u=NaN,l=NaN}r.increment(h)}let f=l/i.length;if(n.counts=r,n.max=o,n.mean=f,n.min=u,n.sum=l,isNaN(n.mean)&&(n.max=NaN,n.min=NaN),t.mode){let h=Array.from(r.values.map(O=>[O,r.get(O)])).toSorted((O,_)=>_[1]-O[1]),d=h[0][1],w=[];for(let O of h)if(O[1]==d)w.push(O[0]);else break;n.mode=w.toSorted()}if(t.median)if(isNaN(f))n.median=NaN;else{let h=i.toSorted((w,O)=>Number(w)-Number(O)),d=Math.floor(h.length/2);if(h.length%2===0){let w=h[d-1],O=h[d];if(n.median=(Number(w)+Number(O))/2,a&&typeof w=="bigint"&&typeof O=="bigint")try{n.median=BigInt(n.median)}catch{}}else n.median=h[d]}if(t.stdev||t.variance){let h=0;for(let w of i)h+=Math.pow(Number(w)-f,2);h/=i.length;let d=Math.sqrt(h);n.stdev=d,n.variance=h}if(a){try{n.sum=BigInt(n.sum)}catch{}try{n.mean=BigInt(n.mean)}catch{}t.mode&&(n.mode=n.mode.map(h=>{try{return BigInt(h)}catch{return h}}))}return n}tn.exports=ll});var De=c((pb,rn)=>{var fl=M(),hl=D(),ml=y(),dl=j();function pl(e,t){let{counts:r}=dl(e);return ml(t)||(hl(t)?r.values.forEach(n=>{t(n)||r.delete(n)}):r.values.forEach(n=>{fl(n,t)||r.delete(n)})),r}rn.exports=pl});var he=c((gb,sn)=>{var gl=m(),nn=p(),yl=b(),ql=q();function bt(e){if(yl(e)||ql(e))return bt(e.values);gl(nn(e),"The `isJagged` function only works on arrays, Series, and DataFrames!");let t=0,r=null;for(let n=0;n<e.length;n++)if(nn(e[n])){if(t++,bt(e[n]))return!0;if(r===null)r=e[n].length;else if(e[n].length!==r)return!0}return t>0&&t<e.length}sn.exports=bt});var Ie=c((yb,an)=>{var bl=m(),on=p(),Nl=b(),vl=q();function un(e){if(Nl(e)||vl(e))return un(e.values);bl(on(e),"The `isNested` function only works on arrays, Series, and DataFrames!");for(let t=0;t<e.length;t++)if(on(e[t]))return!0;return!1}an.exports=un});var J=c((qb,ln)=>{var W=m(),wl=p(),Sl=Ie(),Ol=g(),Tl=y(),Z="You must pass a natural number or a one-dimensional array of natural numbers into the `ndarray` function!";function cn(e){W(!Tl(e),Z),wl(e)||(e=[e]),W(!Sl(e),Z),W(e.length>0,Z);let t=e[0];if(typeof t=="bigint"&&(t=Number(t)),W(Ol(t),Z),W(parseInt(t)===t,Z),W(t>=0,Z),W(t!==1/0,"We can't create an array containing an infinite number of values!"),e.length===1){let r=[];for(let n=0;n<t;n++)r.push(void 0);return r}else{let r=[];for(let n=0;n<t;n++)r.push(cn(e.slice(1)));return r}}ln.exports=cn});var me=c((bb,fn)=>{var _l=m(),Dl=p(),Il=b(),Al=q();function Nt(e){if(Il(e)||Al(e)){let r=e.copy();return r.values=Nt(r.values),r.index=Nt(r.index),r}_l(Dl(e),"The `reverse` function only works on arrays, Series, and DataFrames!");let t=[];for(let r=e.length-1;r>=0;r--)t.push(e[r]);return t}fn.exports=Nt});var F=c((Nb,hn)=>{var vt=m(),wt=g(),St=y(),xl=me();function El(e,t,r=1){vt(!St(e)&&!St(t)&&!St(r),"You must pass two numbers and optionally a step value to the `range` function!"),vt(wt(e)&&wt(t)&&wt(r),"You must pass two numbers and optionally a step value to the `range` function!"),vt(r>0,"The step value must be greater than 0! (NOTE: The step value is a magnitude; it does not indicate direction.)");let n=!1,s=typeof e=="bigint"||typeof t=="bigint"||typeof r=="bigint";if(e=Number(e),t=Number(t),r=Number(r),e>t){n=!0;let o=e;e=t+r,t=o+r}let i=[];for(let o=e;o<t;o+=r)if(s)try{i.push(BigInt(o))}catch{i.push(o)}else i.push(o);return n&&(i=xl(i)),i}hn.exports=El});var C=c((vb,gn)=>{var jl=m(),Fl=I(),Ml=p(),mn=b(),Bl=D(),dn=q(),Pl=y();function de(e){let t="abcdefg1234567890",r="";for(;r.length<e;)r+=t[parseInt(Math.random()*t.length)];return r}var Ul=de(256),Cl=de(256),zl=de(256),kl=de(256),Rl=de(256);function pn(e){if(mn(e)||dn(e))return pn(e.values);jl(Ml(e),"The `set` function only works on arrays, Series, and DataFrames!");let t=[],r={};return Fl(e).forEach(n=>{let s=typeof n=="object"&&n===null?Ul:Pl(n)?Cl:Bl(n)?n.toString():typeof n=="symbol"?n.toString()+" - "+Rl:n===1/0?zl:n===-1/0?kl:typeof n=="bigint"?n.toString():mn(n)?n.toJSONString():dn(n)?JSON.stringify(n.toObject()):JSON.stringify(n);r[s]||t.push(n),r[s]=!0}),t}gn.exports=pn});var v=c((wb,Nn)=>{var Jl=m(),yn=p(),$l=b(),Yl=M(),Ll=q(),Vl=y();function qn(e){if(!yn(e))return;let t=[e.length],r=0,n=e.map(s=>{let i=qn(s);return Vl(i)?i:(r++,i.length===1?i[0]:i)});return r>0?r===e.length&&n.slice(0,-1).every((i,o)=>Yl(i,n[o+1]))?t.concat(n[0]):(t.push(n),t):t}function bn(e){return $l(e)||Ll(e)?bn(e.values):(Jl(yn(e),"The `shape` function only works on arrays, Series, and DataFrames!"),qn(e))}Nn.exports=bn});var _n=c((Sb,Tn)=>{var vn=m(),Gl=p(),Kl=b(),Wl=he(),Hl=q(),Xl=y(),wn=Q(),Ae=J(),Sn=F(),Ql=C(),Zl=v();function On(e,t,r){if(Xl(r)&&(r=0),vn(r===0||r===1||r==="vertical"||r==="horizontal",'The only valid axis values for use when appending data to a DataFrame are 0, 1, "vertical", and "horizontal". Note that 0 == "horizontal" and 1 == "vertical".'),Gl(t)){vn(!Wl(t),"The array of data you're trying to append to this DataFrame is jagged!");let n=Zl(t);if(n.length===1)if(r===0){let s=e.copy();s._values.push(t);let i=Math.max(e.shape[1],n[0]);for(s._values.forEach(o=>{for(;o.length<i;)o.push(void 0)});s._index.length<s._values.length;)s._index.push("row"+s._index.length);for(;s._columns.length<i;)s._columns.push("col"+s._columns.length);return s}else{let s=Math.max(e.shape[0],n[0]),i=e.copy();for(Sn(0,s).forEach(o=>{o>=i._values.length&&i._values.push(Ae(e.shape[1])),i._values[o].push(t[o])});i._index.length<i._values.length;)i._index.push("row"+i._index.length);for(;i._columns.length<i._values[0].length;)i._columns.push("col"+i._columns.length);return i}else if(n.length===2)if(r===0){let s=Math.max(...t.map(o=>o.length).concat([e.shape[1]])),i=e.copy();for(i._values=i._values.concat(t).map(o=>{for(;o.length<s;)o.push(void 0);return o});i._index.length<i._values.length;)i._index.push("row"+i._index.length);for(;i._columns.length<s;)i._columns.push("col"+i._columns.length);return i}else{let s=Math.max(...t.map(u=>u.length))+e.shape[1],i=Math.max(e.shape[0],n[0]),o=e.copy();for(Sn(0,i).forEach(u=>{for(u>=o._values.length&&o._values.push(Ae(e.shape[1])),o._values[u]=o._values[u].concat(t[u]);o._values[u].length<s;)o._values[u].push(void 0)});o._index.length<o._values.length;)o._index.push("row"+o._index.length);for(;o._columns.length<s;)o._columns.push("col"+o._columns.length);return o}else throw new wn("Only 1- and 2-dimensional arrays can be appended to a DataFrame!")}else if(Hl(t)){let n=On(e,t.values,r);return r===0?n.index[n.index.length-1]=n.index.indexOf(t.name)>-1?t.name+" (2)":t.name:n.columns[n.columns.length-1]=n.columns.indexOf(t.name)>-1?t.name+" (2)":t.name,n}else if(Kl(t))if(r===0){let n=e.copy(),s=Ql(n._columns.concat(t._columns)).length;for(n._values.forEach(i=>{for(;i.length<s;)i.push(void 0)}),t.apply(i=>{let o=i.copy(),u=[];n._columns.forEach(a=>{let l=o._index.indexOf(a);l>-1?(u.push(o._values[l]),o._values.splice(l,1),o._index.splice(l,1)):u.push(void 0)}),n._values.push(u.concat(o._values))},1),n._columns=n._columns.concat(t._columns.filter(i=>n._columns.indexOf(i)<0));n._index.length<n._values.length;){let i="row"+n._index.length;n._index.push(i+(e._index.indexOf(i)>-1?" (2)":""))}return n}else{let n=e.copy();return n._index.forEach((s,i)=>{let o=t._index.indexOf(s);o>-1?n._values[i]=n._values[i].concat(t._values[o]):n._values[i]=n._values[i].concat(Ae(t.shape[1]))}),t._index.forEach((s,i)=>{n._index.indexOf(s)<0&&(n._index.push(s),n._values.push(Ae(n._columns.length).concat(t._values[i])))}),n._columns=n._columns.concat(t._columns.map(s=>s+(n._columns.indexOf(s)>-1?" (2)":""))),n}else throw new wn("Only 1- or 2-dimensional arrays, Series, and DataFrames can be appended to a DataFrame!")}Tn.exports=On});var En=c((Ob,xn)=>{var Dn=m(),In=p(),ef=D(),An=y();function tf(e,t,r,n,s){if(s=s||0,Dn(ef(n),"The first parameter to the `apply` method must be a function."),Dn(s===0||s===1,"The second parameter to the `apply` method (the `axis`) must be 0 or 1."),s===0){let i={},o;if(r.columns.forEach((u,a)=>{let l=new t(r.values.map(h=>h[a]));l.name=u,l.index=r.index;let f=n(l,a,r);f instanceof t?i[u]=f.values:i[u]=f,An(o)&&(o=f instanceof t||In(f))}),o){let u=new e(i);return u.index=r.index,u}else{let u=new t(r.columns.map(a=>i[a]));return u.index=r.columns,u}}else if(s===1){let i,o=r.values.map((u,a)=>{let l=new t(u);l.name=r.index[a],l.index=r.columns;let f=n(l,a,r);return An(i)&&(i=f instanceof t||In(f)),f instanceof t?f.values:f});if(i){let u=new e(o);return u.index=r.index,u.columns=r.columns,u}else{let u=new t(o);return u.index=r.index,u}}}xn.exports=tf});var x=c((Tb,jn)=>{function rf(e){return typeof e=="string"}jn.exports=rf});var Bn=c((_b,Mn)=>{var Fn=m(),nf=p(),sf=he(),of=R(),uf=x(),af=y(),cf=Q(),lf=v();function ff(e,t,r,n,s){let i=u=>u instanceof e,o=u=>u instanceof t;if(af(s)){if(i(n))return r.append(n,1);if(o(n))return r.append(n,1);if(of(n)){let u=Math.max(...Object.keys(n).concat(Object.getOwnPropertySymbols(n)).map(a=>n[a].length));return Object.keys(n).concat(Object.getOwnPropertySymbols(n)).forEach(a=>{for(;n[a].length<u;)n[a].push(void 0)}),r.append(new e(n),1)}else throw new cf("You must pass a DataFrame, Series, or object into the `assign` method!")}else{Fn(uf(n),"If passing two arguments into the `assign` method, then the first argument must be a string name!"),Fn(nf(s)&&!sf(s)&&lf(s).length===1,"If passing two arguments into the `assign` method, then the second argument must be a 1-dimensional array!");let u=r.append(s,1);return u.columns[u.columns.length-1]=n,u}}Mn.exports=ff});var Un=c((Db,Pn)=>{var{copy:hf}=z();function mf(e,t){if(t.isEmpty)return new e;let r=new e(hf(t.values));return r.columns=t.columns.slice(),r.index=t.index.slice(),r}Pn.exports=mf});var Yn=c((Ib,$n)=>{var xe=m(),Cn=p(),zn=g(),kn=x(),Rn=y(),Jn=v();function df(e,t,r,n,s){Rn(n)&&(n=[]),Rn(s)&&(s=[]),(kn(n)||zn(n))&&(n=[n]),(kn(s)||zn(s))&&(s=[s]),xe(Cn(n),"The `drop` method only works on 1-dimensional arrays of numerical indices and/or strings."),xe(Cn(s),"The `drop` method only works on 1-dimensional arrays of numerical indices and/or strings."),xe(Jn(n).length===1,"The `drop` method only works on 1-dimensional arrays of numerical indices and/or strings."),xe(Jn(s).length===1,"The `drop` method only works on 1-dimensional arrays of numerical indices and/or strings.");let i,o;r.index.forEach((a,l)=>{n.indexOf(a)<0&&n.indexOf(l)<0&&(i||(i=[]),i.push(a))}),r.columns.forEach((a,l)=>{s.indexOf(a)<0&&s.indexOf(l)<0&&(o||(o=[]),o.push(a))});let u=r.get(i,o);if(u instanceof t){let a=new e;a=a.assign(u),r.index.indexOf(u.name)>-1&&(a=a.transpose()),u=a}return u}$n.exports=df});var pe=c((Ab,Ln)=>{var pf=g();function gf(e){return pf(e)&&parseInt(e)===e}function yf(e){return gf(e)&&e>=0}Ln.exports=yf});var Gn=c((xb,Vn)=>{var Ot=m(),qf=x(),Ee=y(),bf=pe(),Nf=v();function vf(e,t,r,n,s,i){n=n||0,Ot(n===0||n===1,"The first parameter of the `dropMissing` method (the `axis`) must be 0 or 1."),i=i||0,Ot(bf(i),"The third parameter of the `dropMissing` method (the `threshold`) should be a whole number (meaning that data should be dropped if it contains more than `threshold` null values)."),s=i>0?"none":s||"any",Ot(s==="any"||s==="all"||s==="none","The second parameter of the `dropMissing` method (the `condition` parameter, which indicates the condition under which data should be dropped) should be 'any' or 'all' (meaning that if 'any' of the data contains null values, then it should be dropped; or that if 'all' of the data contains null values, then it should be dropped).");function o(l){if(i>0){let f=0;for(let h=0;h<l.length;h++){let d=l[h];if(Ee(d)&&f++,f>=i)return[]}}else if(s==="any")for(let f=0;f<l.length;f++){let h=l[f];if(Ee(h))return[]}else if(s==="all"){for(let f=0;f<l.length;f++){let h=l[f];if(!Ee(h))return l}return[]}return l}let u=r.copy(),a=Math.random().toString();if(n===0){u=u.assign(a,u.index);let l=u.values.map(o).filter(h=>h.length>0);if(Nf(l).length<2)return new e;u.values=l;let f=u.get(null,a);if(Ee(f))return new e;qf(f)&&(f=[f]),f instanceof t&&(f=f.values),u.index=f,u=u.drop(null,a)}else if(n===1){let l={};if(u.columns.forEach((h,d)=>{let w=u.values.map(_=>_[d]),O=o(w);O.length>0&&(l[h]=O)}),Object.keys(l).length+Object.getOwnPropertySymbols(l).length===0)return new e;let f=new e(l);return f.index=u.index,f}return u}Vn.exports=vf});var Tt=c((Eb,Wn)=>{var wf=m(),Sf=p(),Of=b(),Tf=g(),_f=q();function Kn(e){if(Of(e)||_f(e))return e.dropNaN(...Object.values(arguments).slice(1));wf(Sf(e),"The `dropNaN` function only works on arrays, Series, and DataFrames!");let t=[];return e.forEach(r=>{try{return t.push(Kn(r))}catch{if(Tf(r))return t.push(r)}}),t}Wn.exports=Kn});var Xn=c((jb,Hn)=>{var _t=m(),Df=Tt(),If=pe();function Af(e,t,r,n,s){r=r||0,_t(r===0||r===1,"The first parameter of the `dropNaN` method (the `axis`) must be 0 or 1."),s=s||0,_t(If(s),"The third parameter of the `dropNaN` method (the `threshold`) should be a whole number (meaning that data should be dropped if it contains more than `threshold` NaN values)."),n=s>0?"none":n||"any",_t(n==="any"||n==="all"||n==="none","The second parameter of the `dropNaN` method (the `condition` parameter, which indicates the condition under which data should be dropped) should be 'any' or 'all' (meaning that if 'any' of the data contains NaN values, then it should be dropped; or that if 'all' of the data contains NaN values, then it should be dropped).");function i(u){let a=Df(u);return s>0?u.length-a.length<s:n==="any"?a.length===u.length:n==="all"?a.length>0:!0}let o=t.copy();if(r===0){let u=o.index.filter(a=>{let l=o.get(a,null).values;return i(l)});return u.length>0?o.get(u,null):new e}else if(r===1){let u=o.columns.filter(a=>{let l=o.get(null,a).values;return i(l)});return u.length>0?o.get(null,u):new e}return o}Hn.exports=Af});var ts=c((Fb,es)=>{var Qn=m(),ge=I(),xf=D(),Ef=y();function Zn(e){let t={};return ge(e).forEach((r,n)=>{t[r]=n}),t}function ee(e){return Object.keys(e).concat(Object.getOwnPropertySymbols(e)).sort((t,r)=>e[t]-e[r])}function jf(e,t,r,n,s){Qn(xf(n),"The `filter` method takes a single parameter: a function that is used to filter the values."),Ef(s)&&(s=0),Qn(s===0||s===1,"The `axis` parameter to the `filter` method must be 0 or 1.");let i=r.copy();if(i.isEmpty)return i;let o=Zn(i.index),u=Zn(i.columns);if(s===0){let a=i.values.filter((l,f)=>{let h=new t(l);h.name=r.index[f],h.index=r.columns;let d=n(h,f,r);return d||delete o[i.index[f]],d});if(ge(a).length===0)return new e;if(a.length===1){let l=new t(ge(a));return l.name=ee(o)[0],l.index=ee(u),l}i.values=a,i.index=ee(o)}else if(s===1){i=i.transpose();let a=i.values.filter((l,f)=>{let h=new t(l);h.name=r.columns[f],h.index=r.index;let d=n(h,f,r);return d||delete u[i.index[f]],d});if(ge(a).length===0)return new e;if(a.length===1){let l=new t(ge(a));return l.name=ee(u)[0],l.index=ee(o),l}i.values=a,i.index=ee(u),i=i.transpose()}return i}es.exports=jf});var ss=c((Mb,ns)=>{var B=m(),je=g(),Fe=x(),rs=y(),Ff=C();function Mf(e,t,r){(Fe(t)||je(t))&&(t=[t]),(Fe(r)||je(r))&&(r=[r]);for(let s in t)typeof t[s]=="bigint"&&(t[s]=Number(t[s]));for(let s in r)typeof r[s]=="bigint"&&(r[s]=Number(r[s]));let n=Ff((t||[]).concat(r||[]).map(s=>typeof s));return B(n.length<=2,"Only whole numbers and/or strings are allowed in `get` arrays!"),n.length===1&&B(n[0]==="string"||n[0]==="number","Only whole numbers and/or strings are allowed in `get` arrays!"),n.length===2&&(B(n.indexOf("string")>-1,"Only whole numbers and/or strings are allowed in `get` arrays!"),B(n.indexOf("number")>-1,"Only whole numbers and/or strings are allowed in `get` arrays!")),rs(t)||(t=t.map(s=>{if(Fe(s))return B(e.index.indexOf(s)>-1,`Row "${s}" does not exist!`),s;if(je(s))return B(s>=0,`Index ${s} is out of bounds!`),B(parseInt(s)===s,"Row numbers must be integers!"),B(s<e.index.length,`Index ${s} is out of bounds!`),e.index[s]})),rs(r)||(r=r.map(s=>{if(Fe(s))return B(e.columns.indexOf(s)>-1,`Column "${s}" does not exist!`),s;if(je(s))return B(s>=0,`Column ${s} is out of bounds!`),B(parseInt(s)===s,"Column numbers must be integers!"),B(s<e.columns.length,`Column ${s} is out of bounds!`),e.columns[s]})),e.getSubsetByNames(t,r)}ns.exports=Mf});var te=c((Bb,os)=>{var is=m(),Bf=p(),Pf=b(),Uf=D(),Cf=q(),zf=y();function kf(e,t){try{return e<t?-1:e>t?1:0}catch{return e=typeof e=="object"&&e!==null?JSON.stringify(e):e.toString(),t=typeof t=="object"&&t!==null?JSON.stringify(t):t.toString(),e<t?-1:e>t?1:0}}function Rf(e,t){if(zf(t)&&(t=kf),Pf(e)||Cf(e))return e.sort(...Object.values(arguments).slice(1));is(Bf(e),"The `sort` function only works on arrays, Series, and DataFrames!"),is(Uf(t),"The second parameter of the `sort` function must be a comparison function!");let r=e.slice();return r.sort(t),r}os.exports=Rf});var ls=c((Pb,cs)=>{var us=m(),as=x(),Jf=y(),$f=C(),Yf=te();function Lf(e){let t=e.toLowerCase(),r="";for(let s=0;s<t.length;s++){let i=t[s];i.match(/[a-z0-9]/g)?r+=i:r+=" "}let n=r.split(" ").filter(s=>s.length>0);return n[0]+n.slice(1).map(s=>s[0].toUpperCase()+s.substring(1)).join("")}function Vf(e,t,r){Jf(r)?r=t.columns:as(r)&&(r=[r]);let n={};r.forEach(i=>{us(as(i),"You must pass either a string or a one-dimensional array of strings into the `getDummies` (AKA `oneHotEncode`) method!");let o=t.columns.indexOf(i);us(o>-1,`The given DataFrame does not have a column called "${i}"!`);let u=t.values.map(l=>l[o]),a=Yf($f(u));u.forEach(l=>{a.forEach(f=>{let h=i+"_"+Lf(f.toString());n[h]||(n[h]=[]),l===f?n[h].push(1):n[h].push(0)})})});let s=new e(n);return s.index=t.index,s}cs.exports=Vf});var qs=c((Ub,ys)=>{var $=m(),fs=p(),hs=g(),ms=y(),ds=pe(),ps=F(),gs=v();function Gf(e,t,r){let n=e.shape;ms(t)&&(t=ps(0,n[0])),ms(r)&&(r=ps(0,n[1])),hs(t)&&(t=[t]),hs(r)&&(r=[r]),$(fs(t)&&fs(r),"The `rowIndices` and `colIndices` parameters must be 1-dimensional arrays of whole numbers."),$(gs(t).length===1&&gs(r).length===1,"The `rowIndices` and `colIndices` parameters must be 1-dimensional arrays of whole numbers."),$(t.length>0,"The `rowIndices` array must contain at least one index."),$(r.length>0,"The `colIndices` array must contain at least one index."),t.forEach(o=>{$(ds(o),"The `rowIndices` and `colIndices` parameters must be 1-dimensional arrays of whole numbers."),$(o<e.index.length,`The row index ${o} is out of bounds.`)}),r.forEach(o=>{$(ds(o),"The `rowIndices` and `colIndices` parameters must be 1-dimensional arrays of whole numbers."),$(o<e.columns.length,`The column index ${o} is out of bounds.`)});let s=t.map(o=>e.index[o]),i=r.map(o=>e.columns[o]);return e.getSubsetByNames(s,i)}ys.exports=Gf});var Ss=c((Cb,ws)=>{var Y=m(),Dt=I(),bs=p(),Me=x(),Ns=y(),vs=v();function Kf(e,t,r,n,s){Ns(n)&&(n=r.index),Ns(s)&&(s=r.columns),Me(n)&&(n=[n]),Me(s)&&(s=[s]),Y(bs(n)&&bs(s),"The `rows` and `cols` parameters must be 1-dimensional arrays of strings."),Y(vs(n).length===1&&vs(s).length===1,"The `rows` and `cols` parameters must be 1-dimensional arrays of strings."),Y(n.length>0,"The `rows` array must contain at least one row name."),Y(s.length>0,"The `cols` array must contain at least one column name."),n.forEach(u=>{Y(Me(u),"The `rows` and `cols` parameters must be 1-dimensional arrays of strings."),Y(r.index.indexOf(u)>-1,`The row name "${u}" does not exist in the list of rows.`)}),s.forEach(u=>{Y(Me(u),"The `rows` and `cols` parameters must be 1-dimensional arrays of strings."),Y(r.columns.indexOf(u)>-1,`The column name "${u}" does not exist in the list of columns.`)});let i=n.map(u=>s.map(a=>r.values[r.index.indexOf(u)][r.columns.indexOf(a)]));if(n.length===1&&s.length===1)return Dt(i)[0];if(n.length===1){let u=new t(Dt(i));return u.name=n[0],u.index=s,u}if(s.length===1){let u=new t(Dt(i));return u.name=s[0],u.index=n,u}let o=new e(i);return o.columns=s,o.index=n,o}ws.exports=Kf});var Ts=c((zb,Os)=>{var Wf=x(),ye=F();function Hf(e,t,r){function n(d,w){return Wf(d)&&d.length>w?d.substring(0,w-3)+"...":d}if(r.isEmpty)return console.table({}),console.log("Shape:",[0,0],`
|
|
14
|
+
\x1B[0m`)}};Tr.exports=mt});var m=c((Zq,_r)=>{var zc=Q();_r.exports=function(e,t){if(!e)throw new zc(t)}});var y=c((eb,Dr)=>{function kc(e){return e===null||typeof e>"u"}Dr.exports=kc});var Ar=c((tb,Ir)=>{Ir.exports=[Array,ArrayBuffer,BigInt64Array,BigUint64Array,Float32Array,Float64Array,Int16Array,Int32Array,Int8Array,Uint16Array,Uint32Array,Uint8Array,Uint8ClampedArray]});var p=c((rb,Er)=>{var Rc=y(),xr=Ar(),Jc=xr.map(e=>e.name);function $c(e){try{return e instanceof Array?!0:Rc(e.constructor)?!1:xr.indexOf(e.constructor)>-1||Jc.indexOf(e.constructor.name)>-1}catch{return!1}}Er.exports=$c});var b=c((nb,jr)=>{function Yc(e){try{return!!e._symbol&&e._symbol===Symbol.for("@jrc03c/js-math-tools/dataframe")}catch{return!1}}jr.exports=Yc});var D=c((sb,Fr)=>{function Lc(e){return typeof e=="function"}Fr.exports=Lc});var g=c((ib,Mr)=>{function Vc(e){return typeof e=="number"&&!isNaN(e)||typeof e=="bigint"}Mr.exports=Vc});var R=c((ob,Br)=>{var Gc=p(),Kc=y();function Wc(e){return typeof e=="object"&&!Kc(e)&&!Gc(e)}Br.exports=Wc});var q=c((ub,Pr)=>{function Hc(e){try{return!!e._symbol&&e._symbol===Symbol.for("@jrc03c/js-math-tools/series")}catch{return!1}}Pr.exports=Hc});var ce=c((ab,zr)=>{var Xc=m(),Ur=p(),Qc=b(),Zc=D(),dt=g(),Cr=R(),el=q();function pt(e,t){if(Qc(e)){let i=pt(e.values,t);return i.length>0&&dt(i[0])&&i[0]>=0&&i[0]<e.index.length&&(i[0]=e.index[i[0]]),i.length>1&&dt(i[1])&&i[1]>=0&&i[1]<e.columns.length&&(i[1]=e.columns[i[1]]),i}if(el(e)){let i=pt(e.values,t);return i.length>0&&dt(i[0])&&i[0]>=0&&i[0]<e.index.length&&(i[0]=e.index[i[0]]),i}if(Xc(Cr(e)||Ur(e),"You must pass (1) an object, array, Series, or DataFrame and (2) a function or value into the `indexOf` function!"),!Zc(t)){let i=t;t=o=>o===i}function r(i,o,u){if(u=u||[],u.indexOf(i)>-1)return null;if(Cr(i)){u.push(i);let a=Object.keys(i).concat(Object.getOwnPropertySymbols(i));for(let l=0;l<a.length;l++){let f=a[l],h=i[f];if(o(h))return[f];let d=r(h,o,u);if(d&&d.length>0)return[f].concat(d)}}else if(Ur(i)){u.push(i);for(let a=0;a<i.length;a++){let l=i[a];if(o(l))return[a];let f=r(l,o,u);if(f&&f.length>0)return[a].concat(f)}}else if(o(i))return[];return null}function n(i){try{return t(i)}catch{return!1}}let s=r(e,n);return s&&s.length>0?s:null}zr.exports=pt});var z=c((cb,$r)=>{var tl=ce(),kr=p(),Rr=b(),Jr=q();function le(e){function t(r){if(typeof r=="object"){if(r===null)return null;if(kr(r))return r instanceof Array?r.map(s=>le(s)):r.slice();if(Jr(r)){let s=r.copy();return s.values=le(s.values),s}if(Rr(r)){let s=r.copy();return s.values=le(r.values),s}if(r instanceof Date)return new Date(r.getTime());r=gt(r);let n={};return Object.keys(r).concat(Object.getOwnPropertySymbols(r)).forEach(s=>{n[s]=le(r[s])}),n}else return r}return t(gt(e))}function gt(e){function t(s,i,o){if(i=i||[],o=o||"",i.indexOf(s)>-1){let u=o.split("/").slice(o.startsWith("/")?1:0);if(u.some((l,f)=>{let h=u.slice(0,u.length-f-1),d=r;return h.forEach(w=>{d=d[w]}),d===s}))return`<reference to "${r===s?"/":"/"+tl(r,s).join("/")}">`}return typeof s=="object"?s===null?null:(i.push(s),kr(s)?typeof s.constructor<"u"&&s.constructor.name!=="Array"?s.slice():s.map((u,a)=>t(u,i,o+"/"+a)):(Object.keys(s).concat(Object.getOwnPropertySymbols(s)).forEach(u=>{s[u]=t(s[u],i,o+"/"+u.toString())}),s)):s}let r=e,n=t(r);if(Rr(e)){let s=e.copy();s._values=n.values,s._columns=n.columns,s._index=n.index,n=s}if(Jr(e)){let s=e.copy();s.name=n.name,s._values=n.values,s._index=n.index,n=s}return n}$r.exports={copy:le,decycle:gt}});var fe=c((lb,Yr)=>{function rl(e){return e instanceof Date&&e.toString()!=="Invalid Date"}Yr.exports=rl});var M=c((fb,Kr)=>{var{decycle:Lr}=z(),Vr=p(),yt=fe(),Gr=["number","int","float","bigint"];function nl(e,t){function r(n,s){let i=typeof n,o=typeof s;if(i!==o&&!Gr.includes(i)&&!Gr.includes(o))return!1;if(i==="undefined")return!0;if(i==="boolean"||i==="symbol")return n===s;if(i==="number"||i==="bigint")try{let u=n.toString(),a=s.toString();return u===a}catch{return!1}if(i==="string"||i==="function")return n===s;if(i==="object"){if(n===null||s===null)return n===null&&s===null;{if(yt(n))return yt(s)?n.getTime()===s.getTime():!1;if(yt(s))return!1;if(n instanceof RegExp&&s instanceof RegExp)return n.toString()===s.toString();if(Vr(n)!==Vr(s))return!1;let u=Object.keys(n).concat(Object.getOwnPropertySymbols(n)),a=Object.keys(s).concat(Object.getOwnPropertySymbols(s));if(u.length!==a.length)return!1;for(let l=0;l<u.length;l++){let f=u[l];if(!r(n[f],s[f]))return!1}return!0}}}try{return r(e,t)}catch{return r(Lr(e),Lr(t))}}Kr.exports=nl});var Xr=c((hb,Hr)=>{var Wr=M(),qt=class{constructor(){this.clear()}get counts(){return this.values.map(t=>this.dict.get(t))}get values(){return Array.from(this.dict.keys())}clear(){return this.dict=new Map,this}count(t){for(let r of t)this.increment(r);return this}delete(t){return this.dict.delete(this.getOriginalValue(t)),this}get(t){return this.dict.get(this.getOriginalValue(t))||0}getOriginalValue(t){if(this.dict.has(t))return t;if(typeof t=="object"&&t!==null){let r=this.values.find(n=>Wr(n,t));if(r)return r}return t}has(t){return this.dict.has(t)||typeof t=="object"&&t!==null&&!!this.values.find(r=>Wr(r,t))}increment(t){return this.set(t,this.get(t)+1)}set(t,r){return this.dict.set(this.getOriginalValue(t),r),this}toArray(){return this.values.map(t=>({value:t,count:this.dict.get(t)}))}toObject(){let t={};return this.values.forEach(r=>{t[r]=this.dict.get(r)}),t}};Hr.exports=qt});var I=c((mb,en)=>{var sl=m(),Qr=p(),il=b(),ol=q();function Zr(e){if(il(e)||ol(e))return Zr(e.values);sl(Qr(e),"The `flatten` function only works on arrays, Series, and DataFrames!");function t(r){let n=[];return r.forEach(s=>{Qr(s)?n=n.concat(t(s)):n.push(s)}),n}return t(e)}en.exports=Zr});var j=c((db,tn)=>{var ul=Xr(),al=I(),cl=g();function ll(e,t){t=t||{};let r=new ul,n={},s=al(e),i=[],o=-1/0,u=1/0,a=!1,l=0;for(let h of s){if(typeof h=="bigint"&&(a=!0),!t.shouldDropNaNs||cl(h))try{h>o&&(o=h),h<u&&(u=h),l+=Number(h),i.push(h)}catch{o=NaN,u=NaN,l=NaN}r.increment(h)}let f=l/i.length;if(n.counts=r,n.max=o,n.mean=f,n.min=u,n.n=s.length,n.sum=l,isNaN(n.mean)&&(n.max=NaN,n.min=NaN),t.shouldDropNaNs&&(n.nWithoutNaNs=i.length),t.mode){let h=Array.from(r.values.map(O=>[O,r.get(O)])).toSorted((O,_)=>_[1]-O[1]),d=h[0][1],w=[];for(let O of h)if(O[1]==d)w.push(O[0]);else break;n.mode=w.toSorted()}if(t.median)if(isNaN(f))n.median=NaN;else{let h=i.toSorted((w,O)=>Number(w)-Number(O)),d=Math.floor(h.length/2);if(h.length%2===0){let w=h[d-1],O=h[d];if(n.median=(Number(w)+Number(O))/2,a&&typeof w=="bigint"&&typeof O=="bigint")try{n.median=BigInt(n.median)}catch{}}else n.median=h[d]}if(t.stdev||t.variance){let h=0;for(let w of i)h+=Math.pow(Number(w)-f,2);h/=i.length;let d=Math.sqrt(h);n.stdev=d,n.variance=h}if(a){try{n.sum=BigInt(n.sum)}catch{}try{n.mean=BigInt(n.mean)}catch{}t.mode&&(n.mode=n.mode.map(h=>{try{return BigInt(h)}catch{return h}}))}return n}tn.exports=ll});var De=c((pb,rn)=>{var fl=M(),hl=D(),ml=y(),dl=j();function pl(e,t){let{counts:r}=dl(e);return ml(t)||(hl(t)?r.values.forEach(n=>{t(n)||r.delete(n)}):r.values.forEach(n=>{fl(n,t)||r.delete(n)})),r}rn.exports=pl});var he=c((gb,sn)=>{var gl=m(),nn=p(),yl=b(),ql=q();function bt(e){if(yl(e)||ql(e))return bt(e.values);gl(nn(e),"The `isJagged` function only works on arrays, Series, and DataFrames!");let t=0,r=null;for(let n=0;n<e.length;n++)if(nn(e[n])){if(t++,bt(e[n]))return!0;if(r===null)r=e[n].length;else if(e[n].length!==r)return!0}return t>0&&t<e.length}sn.exports=bt});var Ie=c((yb,an)=>{var bl=m(),on=p(),Nl=b(),vl=q();function un(e){if(Nl(e)||vl(e))return un(e.values);bl(on(e),"The `isNested` function only works on arrays, Series, and DataFrames!");for(let t=0;t<e.length;t++)if(on(e[t]))return!0;return!1}an.exports=un});var J=c((qb,ln)=>{var W=m(),wl=p(),Sl=Ie(),Ol=g(),Tl=y(),Z="You must pass a natural number or a one-dimensional array of natural numbers into the `ndarray` function!";function cn(e){W(!Tl(e),Z),wl(e)||(e=[e]),W(!Sl(e),Z),W(e.length>0,Z);let t=e[0];if(typeof t=="bigint"&&(t=Number(t)),W(Ol(t),Z),W(parseInt(t)===t,Z),W(t>=0,Z),W(t!==1/0,"We can't create an array containing an infinite number of values!"),e.length===1){let r=[];for(let n=0;n<t;n++)r.push(void 0);return r}else{let r=[];for(let n=0;n<t;n++)r.push(cn(e.slice(1)));return r}}ln.exports=cn});var me=c((bb,fn)=>{var _l=m(),Dl=p(),Il=b(),Al=q();function Nt(e){if(Il(e)||Al(e)){let r=e.copy();return r.values=Nt(r.values),r.index=Nt(r.index),r}_l(Dl(e),"The `reverse` function only works on arrays, Series, and DataFrames!");let t=[];for(let r=e.length-1;r>=0;r--)t.push(e[r]);return t}fn.exports=Nt});var F=c((Nb,hn)=>{var vt=m(),wt=g(),St=y(),xl=me();function El(e,t,r=1){vt(!St(e)&&!St(t)&&!St(r),"You must pass two numbers and optionally a step value to the `range` function!"),vt(wt(e)&&wt(t)&&wt(r),"You must pass two numbers and optionally a step value to the `range` function!"),vt(r>0,"The step value must be greater than 0! (NOTE: The step value is a magnitude; it does not indicate direction.)");let n=!1,s=typeof e=="bigint"||typeof t=="bigint"||typeof r=="bigint";if(e=Number(e),t=Number(t),r=Number(r),e>t){n=!0;let o=e;e=t+r,t=o+r}let i=[];for(let o=e;o<t;o+=r)if(s)try{i.push(BigInt(o))}catch{i.push(o)}else i.push(o);return n&&(i=xl(i)),i}hn.exports=El});var C=c((vb,gn)=>{var jl=m(),Fl=I(),Ml=p(),mn=b(),Bl=D(),dn=q(),Pl=y();function de(e){let t="abcdefg1234567890",r="";for(;r.length<e;)r+=t[parseInt(Math.random()*t.length)];return r}var Ul=de(256),Cl=de(256),zl=de(256),kl=de(256),Rl=de(256);function pn(e){if(mn(e)||dn(e))return pn(e.values);jl(Ml(e),"The `set` function only works on arrays, Series, and DataFrames!");let t=[],r={};return Fl(e).forEach(n=>{let s=typeof n=="object"&&n===null?Ul:Pl(n)?Cl:Bl(n)?n.toString():typeof n=="symbol"?n.toString()+" - "+Rl:n===1/0?zl:n===-1/0?kl:typeof n=="bigint"?n.toString():mn(n)?n.toJSONString():dn(n)?JSON.stringify(n.toObject()):JSON.stringify(n);r[s]||t.push(n),r[s]=!0}),t}gn.exports=pn});var v=c((wb,Nn)=>{var Jl=m(),yn=p(),$l=b(),Yl=M(),Ll=q(),Vl=y();function qn(e){if(!yn(e))return;let t=[e.length],r=0,n=e.map(s=>{let i=qn(s);return Vl(i)?i:(r++,i.length===1?i[0]:i)});return r>0?r===e.length&&n.slice(0,-1).every((i,o)=>Yl(i,n[o+1]))?t.concat(n[0]):(t.push(n),t):t}function bn(e){return $l(e)||Ll(e)?bn(e.values):(Jl(yn(e),"The `shape` function only works on arrays, Series, and DataFrames!"),qn(e))}Nn.exports=bn});var _n=c((Sb,Tn)=>{var vn=m(),Gl=p(),Kl=b(),Wl=he(),Hl=q(),Xl=y(),wn=Q(),Ae=J(),Sn=F(),Ql=C(),Zl=v();function On(e,t,r){if(Xl(r)&&(r=0),vn(r===0||r===1||r==="vertical"||r==="horizontal",'The only valid axis values for use when appending data to a DataFrame are 0, 1, "vertical", and "horizontal". Note that 0 == "horizontal" and 1 == "vertical".'),Gl(t)){vn(!Wl(t),"The array of data you're trying to append to this DataFrame is jagged!");let n=Zl(t);if(n.length===1)if(r===0){let s=e.copy();s._values.push(t);let i=Math.max(e.shape[1],n[0]);for(s._values.forEach(o=>{for(;o.length<i;)o.push(void 0)});s._index.length<s._values.length;)s._index.push("row"+s._index.length);for(;s._columns.length<i;)s._columns.push("col"+s._columns.length);return s}else{let s=Math.max(e.shape[0],n[0]),i=e.copy();for(Sn(0,s).forEach(o=>{o>=i._values.length&&i._values.push(Ae(e.shape[1])),i._values[o].push(t[o])});i._index.length<i._values.length;)i._index.push("row"+i._index.length);for(;i._columns.length<i._values[0].length;)i._columns.push("col"+i._columns.length);return i}else if(n.length===2)if(r===0){let s=Math.max(...t.map(o=>o.length).concat([e.shape[1]])),i=e.copy();for(i._values=i._values.concat(t).map(o=>{for(;o.length<s;)o.push(void 0);return o});i._index.length<i._values.length;)i._index.push("row"+i._index.length);for(;i._columns.length<s;)i._columns.push("col"+i._columns.length);return i}else{let s=Math.max(...t.map(u=>u.length))+e.shape[1],i=Math.max(e.shape[0],n[0]),o=e.copy();for(Sn(0,i).forEach(u=>{for(u>=o._values.length&&o._values.push(Ae(e.shape[1])),o._values[u]=o._values[u].concat(t[u]);o._values[u].length<s;)o._values[u].push(void 0)});o._index.length<o._values.length;)o._index.push("row"+o._index.length);for(;o._columns.length<s;)o._columns.push("col"+o._columns.length);return o}else throw new wn("Only 1- and 2-dimensional arrays can be appended to a DataFrame!")}else if(Hl(t)){let n=On(e,t.values,r);return r===0?n.index[n.index.length-1]=n.index.indexOf(t.name)>-1?t.name+" (2)":t.name:n.columns[n.columns.length-1]=n.columns.indexOf(t.name)>-1?t.name+" (2)":t.name,n}else if(Kl(t))if(r===0){let n=e.copy(),s=Ql(n._columns.concat(t._columns)).length;for(n._values.forEach(i=>{for(;i.length<s;)i.push(void 0)}),t.apply(i=>{let o=i.copy(),u=[];n._columns.forEach(a=>{let l=o._index.indexOf(a);l>-1?(u.push(o._values[l]),o._values.splice(l,1),o._index.splice(l,1)):u.push(void 0)}),n._values.push(u.concat(o._values))},1),n._columns=n._columns.concat(t._columns.filter(i=>n._columns.indexOf(i)<0));n._index.length<n._values.length;){let i="row"+n._index.length;n._index.push(i+(e._index.indexOf(i)>-1?" (2)":""))}return n}else{let n=e.copy();return n._index.forEach((s,i)=>{let o=t._index.indexOf(s);o>-1?n._values[i]=n._values[i].concat(t._values[o]):n._values[i]=n._values[i].concat(Ae(t.shape[1]))}),t._index.forEach((s,i)=>{n._index.indexOf(s)<0&&(n._index.push(s),n._values.push(Ae(n._columns.length).concat(t._values[i])))}),n._columns=n._columns.concat(t._columns.map(s=>s+(n._columns.indexOf(s)>-1?" (2)":""))),n}else throw new wn("Only 1- or 2-dimensional arrays, Series, and DataFrames can be appended to a DataFrame!")}Tn.exports=On});var En=c((Ob,xn)=>{var Dn=m(),In=p(),ef=D(),An=y();function tf(e,t,r,n,s){if(s=s||0,Dn(ef(n),"The first parameter to the `apply` method must be a function."),Dn(s===0||s===1,"The second parameter to the `apply` method (the `axis`) must be 0 or 1."),s===0){let i={},o;if(r.columns.forEach((u,a)=>{let l=new t(r.values.map(h=>h[a]));l.name=u,l.index=r.index;let f=n(l,a,r);f instanceof t?i[u]=f.values:i[u]=f,An(o)&&(o=f instanceof t||In(f))}),o){let u=new e(i);return u.index=r.index,u}else{let u=new t(r.columns.map(a=>i[a]));return u.index=r.columns,u}}else if(s===1){let i,o=r.values.map((u,a)=>{let l=new t(u);l.name=r.index[a],l.index=r.columns;let f=n(l,a,r);return An(i)&&(i=f instanceof t||In(f)),f instanceof t?f.values:f});if(i){let u=new e(o);return u.index=r.index,u.columns=r.columns,u}else{let u=new t(o);return u.index=r.index,u}}}xn.exports=tf});var x=c((Tb,jn)=>{function rf(e){return typeof e=="string"}jn.exports=rf});var Bn=c((_b,Mn)=>{var Fn=m(),nf=p(),sf=he(),of=R(),uf=x(),af=y(),cf=Q(),lf=v();function ff(e,t,r,n,s){let i=u=>u instanceof e,o=u=>u instanceof t;if(af(s)){if(i(n))return r.append(n,1);if(o(n))return r.append(n,1);if(of(n)){let u=Math.max(...Object.keys(n).concat(Object.getOwnPropertySymbols(n)).map(a=>n[a].length));return Object.keys(n).concat(Object.getOwnPropertySymbols(n)).forEach(a=>{for(;n[a].length<u;)n[a].push(void 0)}),r.append(new e(n),1)}else throw new cf("You must pass a DataFrame, Series, or object into the `assign` method!")}else{Fn(uf(n),"If passing two arguments into the `assign` method, then the first argument must be a string name!"),Fn(nf(s)&&!sf(s)&&lf(s).length===1,"If passing two arguments into the `assign` method, then the second argument must be a 1-dimensional array!");let u=r.append(s,1);return u.columns[u.columns.length-1]=n,u}}Mn.exports=ff});var Un=c((Db,Pn)=>{var{copy:hf}=z();function mf(e,t){if(t.isEmpty)return new e;let r=new e(hf(t.values));return r.columns=t.columns.slice(),r.index=t.index.slice(),r}Pn.exports=mf});var Yn=c((Ib,$n)=>{var xe=m(),Cn=p(),zn=g(),kn=x(),Rn=y(),Jn=v();function df(e,t,r,n,s){Rn(n)&&(n=[]),Rn(s)&&(s=[]),(kn(n)||zn(n))&&(n=[n]),(kn(s)||zn(s))&&(s=[s]),xe(Cn(n),"The `drop` method only works on 1-dimensional arrays of numerical indices and/or strings."),xe(Cn(s),"The `drop` method only works on 1-dimensional arrays of numerical indices and/or strings."),xe(Jn(n).length===1,"The `drop` method only works on 1-dimensional arrays of numerical indices and/or strings."),xe(Jn(s).length===1,"The `drop` method only works on 1-dimensional arrays of numerical indices and/or strings.");let i,o;r.index.forEach((a,l)=>{n.indexOf(a)<0&&n.indexOf(l)<0&&(i||(i=[]),i.push(a))}),r.columns.forEach((a,l)=>{s.indexOf(a)<0&&s.indexOf(l)<0&&(o||(o=[]),o.push(a))});let u=r.get(i,o);if(u instanceof t){let a=new e;a=a.assign(u),r.index.indexOf(u.name)>-1&&(a=a.transpose()),u=a}return u}$n.exports=df});var pe=c((Ab,Ln)=>{var pf=g();function gf(e){return pf(e)&&parseInt(e)===e}function yf(e){return gf(e)&&e>=0}Ln.exports=yf});var Gn=c((xb,Vn)=>{var Ot=m(),qf=x(),Ee=y(),bf=pe(),Nf=v();function vf(e,t,r,n,s,i){n=n||0,Ot(n===0||n===1,"The first parameter of the `dropMissing` method (the `axis`) must be 0 or 1."),i=i||0,Ot(bf(i),"The third parameter of the `dropMissing` method (the `threshold`) should be a whole number (meaning that data should be dropped if it contains more than `threshold` null values)."),s=i>0?"none":s||"any",Ot(s==="any"||s==="all"||s==="none","The second parameter of the `dropMissing` method (the `condition` parameter, which indicates the condition under which data should be dropped) should be 'any' or 'all' (meaning that if 'any' of the data contains null values, then it should be dropped; or that if 'all' of the data contains null values, then it should be dropped).");function o(l){if(i>0){let f=0;for(let h=0;h<l.length;h++){let d=l[h];if(Ee(d)&&f++,f>=i)return[]}}else if(s==="any")for(let f=0;f<l.length;f++){let h=l[f];if(Ee(h))return[]}else if(s==="all"){for(let f=0;f<l.length;f++){let h=l[f];if(!Ee(h))return l}return[]}return l}let u=r.copy(),a=Math.random().toString();if(n===0){u=u.assign(a,u.index);let l=u.values.map(o).filter(h=>h.length>0);if(Nf(l).length<2)return new e;u.values=l;let f=u.get(null,a);if(Ee(f))return new e;qf(f)&&(f=[f]),f instanceof t&&(f=f.values),u.index=f,u=u.drop(null,a)}else if(n===1){let l={};if(u.columns.forEach((h,d)=>{let w=u.values.map(_=>_[d]),O=o(w);O.length>0&&(l[h]=O)}),Object.keys(l).length+Object.getOwnPropertySymbols(l).length===0)return new e;let f=new e(l);return f.index=u.index,f}return u}Vn.exports=vf});var Tt=c((Eb,Wn)=>{var wf=m(),Sf=p(),Of=b(),Tf=g(),_f=q();function Kn(e){if(Of(e)||_f(e))return e.dropNaN(...Object.values(arguments).slice(1));wf(Sf(e),"The `dropNaN` function only works on arrays, Series, and DataFrames!");let t=[];return e.forEach(r=>{try{return t.push(Kn(r))}catch{if(Tf(r))return t.push(r)}}),t}Wn.exports=Kn});var Xn=c((jb,Hn)=>{var _t=m(),Df=Tt(),If=pe();function Af(e,t,r,n,s){r=r||0,_t(r===0||r===1,"The first parameter of the `dropNaN` method (the `axis`) must be 0 or 1."),s=s||0,_t(If(s),"The third parameter of the `dropNaN` method (the `threshold`) should be a whole number (meaning that data should be dropped if it contains more than `threshold` NaN values)."),n=s>0?"none":n||"any",_t(n==="any"||n==="all"||n==="none","The second parameter of the `dropNaN` method (the `condition` parameter, which indicates the condition under which data should be dropped) should be 'any' or 'all' (meaning that if 'any' of the data contains NaN values, then it should be dropped; or that if 'all' of the data contains NaN values, then it should be dropped).");function i(u){let a=Df(u);return s>0?u.length-a.length<s:n==="any"?a.length===u.length:n==="all"?a.length>0:!0}let o=t.copy();if(r===0){let u=o.index.filter(a=>{let l=o.get(a,null).values;return i(l)});return u.length>0?o.get(u,null):new e}else if(r===1){let u=o.columns.filter(a=>{let l=o.get(null,a).values;return i(l)});return u.length>0?o.get(null,u):new e}return o}Hn.exports=Af});var ts=c((Fb,es)=>{var Qn=m(),ge=I(),xf=D(),Ef=y();function Zn(e){let t={};return ge(e).forEach((r,n)=>{t[r]=n}),t}function ee(e){return Object.keys(e).concat(Object.getOwnPropertySymbols(e)).sort((t,r)=>e[t]-e[r])}function jf(e,t,r,n,s){Qn(xf(n),"The `filter` method takes a single parameter: a function that is used to filter the values."),Ef(s)&&(s=0),Qn(s===0||s===1,"The `axis` parameter to the `filter` method must be 0 or 1.");let i=r.copy();if(i.isEmpty)return i;let o=Zn(i.index),u=Zn(i.columns);if(s===0){let a=i.values.filter((l,f)=>{let h=new t(l);h.name=r.index[f],h.index=r.columns;let d=n(h,f,r);return d||delete o[i.index[f]],d});if(ge(a).length===0)return new e;if(a.length===1){let l=new t(ge(a));return l.name=ee(o)[0],l.index=ee(u),l}i.values=a,i.index=ee(o)}else if(s===1){i=i.transpose();let a=i.values.filter((l,f)=>{let h=new t(l);h.name=r.columns[f],h.index=r.index;let d=n(h,f,r);return d||delete u[i.index[f]],d});if(ge(a).length===0)return new e;if(a.length===1){let l=new t(ge(a));return l.name=ee(u)[0],l.index=ee(o),l}i.values=a,i.index=ee(u),i=i.transpose()}return i}es.exports=jf});var ss=c((Mb,ns)=>{var B=m(),je=g(),Fe=x(),rs=y(),Ff=C();function Mf(e,t,r){(Fe(t)||je(t))&&(t=[t]),(Fe(r)||je(r))&&(r=[r]);for(let s in t)typeof t[s]=="bigint"&&(t[s]=Number(t[s]));for(let s in r)typeof r[s]=="bigint"&&(r[s]=Number(r[s]));let n=Ff((t||[]).concat(r||[]).map(s=>typeof s));return B(n.length<=2,"Only whole numbers and/or strings are allowed in `get` arrays!"),n.length===1&&B(n[0]==="string"||n[0]==="number","Only whole numbers and/or strings are allowed in `get` arrays!"),n.length===2&&(B(n.indexOf("string")>-1,"Only whole numbers and/or strings are allowed in `get` arrays!"),B(n.indexOf("number")>-1,"Only whole numbers and/or strings are allowed in `get` arrays!")),rs(t)||(t=t.map(s=>{if(Fe(s))return B(e.index.indexOf(s)>-1,`Row "${s}" does not exist!`),s;if(je(s))return B(s>=0,`Index ${s} is out of bounds!`),B(parseInt(s)===s,"Row numbers must be integers!"),B(s<e.index.length,`Index ${s} is out of bounds!`),e.index[s]})),rs(r)||(r=r.map(s=>{if(Fe(s))return B(e.columns.indexOf(s)>-1,`Column "${s}" does not exist!`),s;if(je(s))return B(s>=0,`Column ${s} is out of bounds!`),B(parseInt(s)===s,"Column numbers must be integers!"),B(s<e.columns.length,`Column ${s} is out of bounds!`),e.columns[s]})),e.getSubsetByNames(t,r)}ns.exports=Mf});var te=c((Bb,os)=>{var is=m(),Bf=p(),Pf=b(),Uf=D(),Cf=q(),zf=y();function kf(e,t){try{return e<t?-1:e>t?1:0}catch{return e=typeof e=="object"&&e!==null?JSON.stringify(e):e.toString(),t=typeof t=="object"&&t!==null?JSON.stringify(t):t.toString(),e<t?-1:e>t?1:0}}function Rf(e,t){if(zf(t)&&(t=kf),Pf(e)||Cf(e))return e.sort(...Object.values(arguments).slice(1));is(Bf(e),"The `sort` function only works on arrays, Series, and DataFrames!"),is(Uf(t),"The second parameter of the `sort` function must be a comparison function!");let r=e.slice();return r.sort(t),r}os.exports=Rf});var ls=c((Pb,cs)=>{var us=m(),as=x(),Jf=y(),$f=C(),Yf=te();function Lf(e){let t=e.toLowerCase(),r="";for(let s=0;s<t.length;s++){let i=t[s];i.match(/[a-z0-9]/g)?r+=i:r+=" "}let n=r.split(" ").filter(s=>s.length>0);return n[0]+n.slice(1).map(s=>s[0].toUpperCase()+s.substring(1)).join("")}function Vf(e,t,r){Jf(r)?r=t.columns:as(r)&&(r=[r]);let n={};r.forEach(i=>{us(as(i),"You must pass either a string or a one-dimensional array of strings into the `getDummies` (AKA `oneHotEncode`) method!");let o=t.columns.indexOf(i);us(o>-1,`The given DataFrame does not have a column called "${i}"!`);let u=t.values.map(l=>l[o]),a=Yf($f(u));u.forEach(l=>{a.forEach(f=>{let h=i+"_"+Lf(f.toString());n[h]||(n[h]=[]),l===f?n[h].push(1):n[h].push(0)})})});let s=new e(n);return s.index=t.index,s}cs.exports=Vf});var qs=c((Ub,ys)=>{var $=m(),fs=p(),hs=g(),ms=y(),ds=pe(),ps=F(),gs=v();function Gf(e,t,r){let n=e.shape;ms(t)&&(t=ps(0,n[0])),ms(r)&&(r=ps(0,n[1])),hs(t)&&(t=[t]),hs(r)&&(r=[r]),$(fs(t)&&fs(r),"The `rowIndices` and `colIndices` parameters must be 1-dimensional arrays of whole numbers."),$(gs(t).length===1&&gs(r).length===1,"The `rowIndices` and `colIndices` parameters must be 1-dimensional arrays of whole numbers."),$(t.length>0,"The `rowIndices` array must contain at least one index."),$(r.length>0,"The `colIndices` array must contain at least one index."),t.forEach(o=>{$(ds(o),"The `rowIndices` and `colIndices` parameters must be 1-dimensional arrays of whole numbers."),$(o<e.index.length,`The row index ${o} is out of bounds.`)}),r.forEach(o=>{$(ds(o),"The `rowIndices` and `colIndices` parameters must be 1-dimensional arrays of whole numbers."),$(o<e.columns.length,`The column index ${o} is out of bounds.`)});let s=t.map(o=>e.index[o]),i=r.map(o=>e.columns[o]);return e.getSubsetByNames(s,i)}ys.exports=Gf});var Ss=c((Cb,ws)=>{var Y=m(),Dt=I(),bs=p(),Me=x(),Ns=y(),vs=v();function Kf(e,t,r,n,s){Ns(n)&&(n=r.index),Ns(s)&&(s=r.columns),Me(n)&&(n=[n]),Me(s)&&(s=[s]),Y(bs(n)&&bs(s),"The `rows` and `cols` parameters must be 1-dimensional arrays of strings."),Y(vs(n).length===1&&vs(s).length===1,"The `rows` and `cols` parameters must be 1-dimensional arrays of strings."),Y(n.length>0,"The `rows` array must contain at least one row name."),Y(s.length>0,"The `cols` array must contain at least one column name."),n.forEach(u=>{Y(Me(u),"The `rows` and `cols` parameters must be 1-dimensional arrays of strings."),Y(r.index.indexOf(u)>-1,`The row name "${u}" does not exist in the list of rows.`)}),s.forEach(u=>{Y(Me(u),"The `rows` and `cols` parameters must be 1-dimensional arrays of strings."),Y(r.columns.indexOf(u)>-1,`The column name "${u}" does not exist in the list of columns.`)});let i=n.map(u=>s.map(a=>r.values[r.index.indexOf(u)][r.columns.indexOf(a)]));if(n.length===1&&s.length===1)return Dt(i)[0];if(n.length===1){let u=new t(Dt(i));return u.name=n[0],u.index=s,u}if(s.length===1){let u=new t(Dt(i));return u.name=s[0],u.index=n,u}let o=new e(i);return o.columns=s,o.index=n,o}ws.exports=Kf});var Ts=c((zb,Os)=>{var Wf=x(),ye=F();function Hf(e,t,r){function n(d,w){return Wf(d)&&d.length>w?d.substring(0,w-3)+"...":d}if(r.isEmpty)return console.table({}),console.log("Shape:",[0,0],`
|
|
15
15
|
`),r;let s=typeof window>"u"?20:10,i=parseInt(s/2),o=typeof process>"u"?10:Math.floor(process.stdout.columns/24)-1,u=parseInt(o/2),a=s>r.index.length?null:ye(0,i).concat(ye(r.index.length-i,r.index.length)),l=o>r.columns.length?null:ye(0,u).concat(ye(r.columns.length-u,r.columns.length)),f=r.get(a,l);f instanceof t&&(r.shape[0]===1?(f=new e([f.values]),f.index=r.index,f.columns=new t(r.columns).get(l).values):r.shape[1]===1&&(f=new e([f.values]).transpose(),f.index=new t(r.index).get(a).values,f.columns=r.columns)),s<=r.index.length&&(f._index.splice(i,0,"..."),f._values.splice(i,0,ye(0,f.columns.length).map(()=>"..."))),o<=r.columns.length&&(f._columns.splice(u,0,"..."),f._values=f._values.map(d=>(d.splice(u,0,"..."),d)));let h=28;return f instanceof t?(f.values=f.values.map(d=>n(d,h)),f.name=n(f.name,h),f.index=f.index.map(d=>n(d,h))):(f.values=f.values.map(d=>d.map(w=>n(w,h))),f.columns=f.columns.map(d=>n(d,h)),f.index=f.index.map(d=>n(d,h))),console.table(f.toDetailedObject()),console.log("Shape:",r.shape,`
|
|
16
16
|
`),r}Os.exports=Hf});var Be=c((kb,_s)=>{var Xf=m(),Qf=g();function Zf(e,t){Xf(Qf(e),"The `leftPad` function only works on numbers!");let r=e.toString();for(;r.length<t;)r="0"+r;return r}_s.exports=Zf});var Is=c((Rb,Ds)=>{var eh=Be(),th=F();function rh(e,t){let r=t?e:e.copy();return r.index=th(0,e.shape[0]).map(n=>"row"+eh(n,(r.index.length-1).toString().length)),r}Ds.exports=rh});var qe=c((Jb,xs)=>{var nh=m(),sh=I(),ih=p(),oh=b(),uh=g(),ah=q();function As(e,t){if(oh(e)||ah(e))return As(e.values);nh(ih(e),"The `product` function only works on arrays, Series, and DataFrames!");try{if(e.length===0)return NaN;let r=sh(e),n=!1,s=1;for(let i of r){if(!uh(i))if(t)i=1;else return NaN;typeof i=="bigint"&&(n=!0,i=Number(i)),s*=i}if(n)try{return BigInt(s)}catch{}return s}catch{return NaN}}xs.exports=As});var Pe=c(($b,Ms)=>{var be=m(),Es=I(),js=p(),ch=b(),Fs=g(),lh=q(),fh=qe(),hh=v();function It(e,t){if(ch(e)||lh(e))return It(e.values,t);if(be(js(e),"The first argument passed into the `reshape` function must be an array!"),Fs(t)&&(t=[t]),be(js(t),"The second argument passed into the `reshape` function must be a whole number or a one-dimensional array of whole numbers!"),be(hh(t).length===1,"The first argument passed into the `reshape` function must be a whole number or a one-dimensional array of whole numbers!"),t=t.map(i=>(typeof i=="bigint"&&(i=Number(i)),be(Fs(i)&&parseInt(i)===i&&i>0,"The first argument passed into the `reshape` function must be a whole number or a one-dimensional array of whole numbers!"),Number(i))),t.length===0)return Es(e);let r=Es(e);if(t.length===1&&t[0]===r.length)return r;be(fh(t)===r.length,"The new shape doesn't match the number of values available in `x` (the first argument passed into the `reshape` function)!");let n=[],s=parseInt(r.length/t[0]);for(let i=0;i<t[0];i++){let o=r.slice(i*s,(i+1)*s);n.push(It(o,t.slice(1)))}return n}Ms.exports=It});var re=c((Yb,Rs)=>{var{copy:Us}=z(),mh=m(),dh=p(),ph=g(),Cs=y(),gh=J(),yh=qe(),qh=Pe(),zs=Math.pow(2,64),S=[];ks(parseInt(Math.random()*zs));function bh(e,t){e=A(e);function r(){e+=A("0x9e3779b97f4a7c15");let s=Us(e);return s=(s^s>>BigInt(30))*A("0xbf58476d1ce4e5b9"),s=(s^s>>BigInt(27))*A("0x94d049bb133111eb"),s^s>>BigInt(31)}let n=[];for(let s=0;s<t;s++)n.push(r());return n}function A(e){return BigInt.asUintN(64,BigInt(e))}function Bs(e,t){return e=A(e),t=BigInt(t),A(A(e<<t)|A(e>>A(BigInt(64)-t)))}function ks(e){if(typeof e=="bigint"&&(e=Number(e)),Cs(e))return Us(S);{mh(ph(e),"If passing a value into the `seed` function, then that value must be an integer!");let t=bh(parseInt(e),4);S[0]=t[0],S[1]=t[1],S[2]=t[2],S[3]=t[3]}}function Ps(){let e=A(Bs(S[0]+S[3],23)+S[0]),t=A(S[1]<<BigInt(17));return S[2]=A(S[2]^S[0]),S[3]=A(S[3]^S[1]),S[1]=A(S[1]^S[2]),S[0]=A(S[0]^S[3]),S[2]=A(S[2]^t),S[3]=Bs(S[3],45),parseInt(e)/zs}function Nh(e){return Cs(e)?Ps():(dh(e)||(e=[e]),qh(gh(yh(e)).map(Ps),e))}Rs.exports={random:Nh,seed:ks}});var Ue=c((Lb,Js)=>{var{random:vh}=re(),wh=m(),Sh=p(),Oh=b(),Th=q();function _h(e){if(Oh(e)||Th(e))return e.shuffle(...Object.values(arguments).slice(1));wh(Sh(e),"The `shuffle` function only works on arrays, Series, and DataFrames!");let t=[],r=e.slice();for(let n=0;n<e.length;n++){let s=parseInt(vh()*r.length);t.push(r.splice(s,1)[0])}return t}Js.exports=_h});var Ls=c((Vb,Ys)=>{var Dh=m(),Ih=y(),$s=Ue();function Ah(e,t){return Ih(t)&&(t=0),Dh(t===0||t===1,"The `axis` parameter to the `shuffle` must be 0, 1, or undefined."),e.get(t===0?$s(e.index):null,t===1?$s(e.columns):null)}Ys.exports=Ah});var Ce=c((Gb,Vs)=>{function xh(e){return typeof e=="boolean"}Vs.exports=xh});var Xs=c((Kb,Hs)=>{var{random:Eh}=re(),E=m(),jh=I(),Gs=p(),At=Ce(),Ws=D(),ze=g(),ne=x(),xt=y(),Fh=F(),Ks=v(),Et=te();function Mh(e,t,r){return Ws(t)?Bh(e,t,r):Ph(e,t,r)}function Bh(e,t,r){if(r=xt(r)?0:r,E(Ws(t),"When sorting a DataFrame using a function, the first argument to the `sort` method must be a function!"),E(ze(r),"When sorting a DataFrame using a function, the second argument to the `sort` method must be null, undefined, 0, or 1 to indicate the axis along which the data should be sorted! An axis of 0 means that the rows will be sorted relative to each other, whereas an axis of 1 means that the columns will be sorted relative to each other."),r===0){let n=Et(e.index,(s,i)=>t(e.get(s,null),e.get(i,null)));return e.get(n,null)}else{let n=Et(e.columns,(s,i)=>t(e.get(null,s),e.get(null,i)));return e.get(null,n)}}function Ph(e,t,r){let n=e.copy(),s=Eh().toString();return n=n.assign(s,n.index),xt(t)&&(t=[s],r=[!0]),(ze(t)||ne(t))&&(t=[t],(At(r)||ne(r))&&(r=[r])),E(Gs(t),"The first parameter of the `sort` method must be (1) a string or index representing a column name or index, respectively; (2) a 1-dimensional array of strings and/or indices; or (3) null."),E(Ks(t).length===1,"The first parameter of the `sort` method must be (1) a string or index representing a column name or index, respectively; (2) a 1-dimensional array of strings and/or indices; or (3) null."),xt(r)&&(r=Fh(0,t.length).map(()=>!0)),E(Gs(r),"The second parameter of the `sort` method must be (1) a string or boolean representing the sort direction ('ascending' / 'descending', or true / false); (2) a 1-dimensional array of strings and/or booleans; or (3) null."),E(Ks(r).length===1,"The second parameter of the `sort` method must be (1) a string or boolean representing the sort direction ('ascending' / 'descending', or true / false); (2) a 1-dimensional array of strings and/or booleans; or (3) null."),E(t.length===r.length,"The arrays passed into the `sort` method must be equal in length."),t=t.map(i=>{if(E(ne(i)||ze(i),"Column references can either be column names (as strings) or column indices (as whole numbers)."),ne(i)){let o=n.columns.indexOf(i);return E(o>-1,`The column "${i}" does not exist!`),o}if(ze(i))return E(parseInt(i)===i,"Column indices must be whole numbers!"),E(i>=0,`The column index ${i} is out of bounds!`),E(i<n.columns.length,`The index ${i} is out of bounds!`),i}),r=r.map(i=>{if(E(ne(i)||At(i),"Direction references can either be strings ('ascending' or 'descending') or booleans (true or false)."),ne(i)){let o=i.trim().toLowerCase();return E(o==="ascending"||o==="descending","Direction references can either be strings ('ascending' or 'descending') or booleans (true or false)."),o==="ascending"}if(At(i))return i}),n.values=Et(n.values,(i,o)=>{let u=0;for(;i[t[u]]===o[t[u]]&&u<t.length;)u++;let a=r[u];if(i[t[u]]===o[t[u]])return 0;if(i[t[u]]<o[t[u]])return a?-1:1;if(i[t[u]]>o[t[u]])return a?1:-1}),n.index=jh(n.get(null,s).values),n=n.dropColumns(s),n}Hs.exports=Mh});var Zs=c((Wb,Qs)=>{var Uh=m(),Ch=y();function zh(e,t){Ch(t)?t=0:Uh(t===0||t===1,"The axis parameter of the `toDetailedObject` method must be undefined, 0, or 1. An axis of 0 indicates that the returned object should be organized first by rows and then by columns. An axis of 1 indicates that the returned object should be organized first by columns and then by rows.");let r={};return t===0?e.index.forEach((n,s)=>{let i={};e.columns.forEach((o,u)=>{i[o]=e.values[s][u]}),r[n]=i}):e.columns.forEach((n,s)=>{let i={};e.index.forEach((o,u)=>{i[o]=e.values[u][s]}),r[n]=i}),r}Qs.exports=zh});var jt=c((Hb,ei)=>{function kh(e,t){return JSON.stringify(e.toObject(t))}ei.exports=kh});var ti=c((Xb,Mt)=>{var Ft=Q(),Rh=jt();function Jh(e,t,r){let n=Rh(e,r),s=!1,i=!1,o,u;try{let a=t;if(t.includes("/")){let f=t.split("/");a=f[f.length-1]}let l=document.createElement("a");l.href=`data:application/json;charset=utf-8,${encodeURIComponent(n)}`,l.download=a,l.dispatchEvent(new MouseEvent("click")),s=!0}catch(a){o=a}try{let a=Or("fs"),l=Or("path");a.writeFileSync(l.resolve(t),n,"utf8"),i=!0}catch(a){u=a}if(!s&&!i)throw typeof window<"u"?new Ft(o):typeof Mt<"u"?new Ft(u):new Ft("I don't know what's going wrong, but it doesn't seem like you're in Node or the browser, and we couldn't download and/or write the file to disk!");return e}Mt.exports=Jh});var ni=c((Qb,ri)=>{function $h(e){let t={};return e.columns.forEach(r=>{t[r]=e.get(r).values}),t}ri.exports=$h});var H=c((Zb,oi)=>{var si=m(),Yh=p(),Lh=b(),Vh=q(),Gh=J(),ii=me(),Kh=v();function Wh(e){if(Lh(e)||Vh(e))return e.transpose();si(Yh(e),"The `transpose` function only works on arrays, Series, and DataFrames!");let t=Kh(e);if(si(t.length<=2,"I'm not smart enough to know how to transpose arrays that have more than 2 dimensions. Sorry for the inconvenience! Please only pass 1- or 2-dimensional arrays into the `transpose` function!"),t.length===1)return ii(e);if(t.length===2){let r=Gh(ii(t));for(let n=0;n<t[0];n++)for(let s=0;s<t[1];s++)r[s][n]=e[n][s];return r}}oi.exports=Wh});var li=c((eN,ci)=>{var ui=m(),Hh=p(),Xh=b(),Qh=Ie(),Zh=q(),em=v();function ai(e,t,r){if(Zh(r))return new e(t.values.concat(r.values));if(Hh(r)){let n=em(r);ui(n.length===1&&!Qh(n),"Only vectors can be appended to Series!");let s=t.copy();return r.forEach((i,o)=>{s._values.push(i),s._index.push("item"+(t.values.length+o))}),s}return ui(!Xh(r),"DataFrames cannot be appended to Series!"),ai(t,[r])}ci.exports=ai});var hi=c((tN,fi)=>{var tm=m(),rm=D();function nm(e,t){tm(rm(t),"The parameter to the `apply` method must be a function.");let r=e.copy();return r._values=r._values.map((n,s)=>t(n,s)),r}fi.exports=nm});var di=c((rN,mi)=>{var sm=y();function im(e){let t=e.copy(),r=[];return t._values=t.values.filter((n,s)=>sm(n)?!1:(r.push(t.index[s]),!0)),t._index=r,t}mi.exports=im});var gi=c((nN,pi)=>{var om=g();function um(e,t){let r=[],n=[];t.values.forEach((i,o)=>{om(i)&&(n.push(i),r.push(t.index[o]))});let s=new e(n);return s.name=t.name,s.index=r,s}pi.exports=um});var qi=c((sN,yi)=>{var{copy:am}=z();function cm(e,t,r){let n=t.copy(),s=am(n.index),i=[],o=n.values.filter((u,a)=>{let l=r(u,a,n.values);return l||i.push(n.index[a]),l});return i.forEach(u=>{s.splice(s.indexOf(u),1)}),o.length===0?(n=new e,n.name=t.name,n):(n.values=o,n.index=s,n)}yi.exports=cm});var Ni=c((iN,bi)=>{var L=m(),lm=g(),fm=x(),hm=y(),mm=C();function dm(e,t){(fm(t)||lm(t))&&(t=[t]);for(let n in t)typeof t[n]=="bigint"&&(t[n]=Number(t[n]));let r=mm((t||[]).map(n=>typeof n));return L(r.length<=2,"Only whole numbers and/or strings are allowed in `get` arrays!"),r.length===1&&L(r[0]==="string"||r[0]==="number","Only whole numbers and/or strings are allowed in `get` arrays!"),r.length===2&&(L(r.indexOf("string")>-1,"Only whole numbers and/or strings are allowed in `get` arrays!"),L(r.indexOf("number")>-1,"Only whole numbers and/or strings are allowed in `get` arrays!")),hm(t)||(t=t.map(n=>{if(typeof n=="string")return L(e.index.indexOf(n)>-1,`Index "${n}" does not exist!`),n;if(typeof n=="number")return L(n>=0,`Index ${n} is out of bounds!`),L(parseInt(n)===n,"Indices must be integers!"),L(n<e.index.length,`Index ${n} is out of bounds!`),e.index[n]})),e.getSubsetByNames(t)}bi.exports=dm});var wi=c((oN,vi)=>{var Ne=m(),pm=p(),gm=y(),ym=pe(),qm=F(),bm=v();function Nm(e,t){let r=e.shape;gm(t)&&(t=qm(0,r[0])),Ne(pm(t),"The `indices` array must be 1-dimensional array of whole numbers."),Ne(bm(t).length===1,"The `indices` array must be a 1-dimensional array of whole numbers."),Ne(t.length>0,"The `indices` array must contain at least one index."),t.forEach(s=>{Ne(ym(s),"The `indices` array must be a 1-dimensional array of whole numbers."),Ne(s<e.index.length,`The row index ${s} is out of bounds.`)});let n=t.map(s=>e.index[s]);return e.getSubsetByNames(n)}vi.exports=Nm});var Oi=c((uN,Si)=>{var ve=m(),vm=p(),wm=x(),Sm=y(),Om=v();function Tm(e,t,r){Sm(r)&&(r=t.index),ve(vm(r),"The `indices` array must be a 1-dimensional array of strings."),ve(Om(r).length===1,"The `indices` array must be a 1-dimensional array of strings."),ve(r.length>0,"The `indices` array must contain at least one index name."),r.forEach(i=>{ve(wm(i),"The `indices` array must contain only strings."),ve(t.index.indexOf(i)>-1,`The name "${i}" does not exist in the index.`)});let n=r.map(i=>t.values[t.index.indexOf(i)]);if(n.length===1)return n[0];let s=new e(n);return s.index=r,s.name=t.name,s}Si.exports=Tm});var Di=c((aN,_i)=>{var{copy:_m}=z(),Ti=F();function Dm(e){let t=e.copy(),r=typeof window>"u"?20:10;if(t.index.length>r){t=t.get(Ti(0,r/2).concat(Ti(t.index.length-r/2,t.index.length)));let s=_m(t.index);s.splice(parseInt(s.length/2),0,"..."),t.values.push("..."),t.index.push("..."),t=t.get(s)}let n={};return t.values.forEach((s,i)=>{let o={};o[t.name]=s,n[t.index[i]]=o}),console.table(n),console.log("Shape:",e.shape,`
|
|
17
|
-
`),e}_i.exports=Dm});var Ai=c((cN,Ii)=>{var Im=Ue();function Am(e){let t=e.copy();return t.get(Im(t.index))}Ii.exports=Am});var Ei=c((lN,xi)=>{var xm=m(),Em=D(),jm=y(),Fm=te(),Mm=H();function Bm(e,t,r){r=r||((a,l)=>a<l?-1:1),xm(jm(r)||Em(r),"You must pass undefined, null, or a comparison function as the second argument to the `sort` method!");let n=Mm([t.values,t.index]),s=Fm(n,(a,l)=>r(a[0],l[0])),i=[],o=[];s.forEach(a=>{i.push(a[0]),o.push(a[1])});let u=new e;return u._values=i,u._index=o,u.name=t.name,u}xi.exports=Bm});var Mi=c((fN,Fi)=>{var Pm=te(),ji=H();function Um(e,t){let r=ji([t.values,t.index]);r=ji(Pm(r,(s,i)=>{if(s[1]===i[1])return 0;if(s[1]<i[1])return-1;if(s[1]>i[1])return 1}));let n=new e(r[0]);return n.index=r[1],n.name=t.name,n}Fi.exports=Um});var Pi=c((hN,Bi)=>{function Cm(e){let t={};return t[e.name]={},e.index.forEach((r,n)=>{t[e.name][r]=e.values[n]}),t}Bi.exports=Cm});var Ri=c((mN,ki)=>{var{copy:ke}=z(),k=m(),Bt=p(),zm=x(),km=y(),Ui=Be(),Ci=F(),Re=me(),Rm=li(),Jm=hi(),$m=di(),Ym=gi(),Lm=qi(),Vm=Ni(),Gm=wi(),Km=Oi(),Wm=Di(),Hm=Ai(),Xm=Ei(),Qm=Mi(),Zm=Pi(),we=v(),ed=H(),zi=Symbol.for("@jrc03c/js-math-tools/series");ki.exports=function(e){class t{static[Symbol.hasInstance](n){try{return!!n._symbol&&n._symbol===zi}catch{return!1}}constructor(n){if(this.name="data",Object.defineProperty(this,"_symbol",{configurable:!1,enumerable:!1,writable:!1,value:zi}),Object.defineProperty(this,"_values",{value:[],configurable:!0,enumerable:!1,writable:!0}),Object.defineProperty(this,"values",{configurable:!0,enumerable:!0,get(){return this._values},set(s){k(Bt(s),"The new values must be a 1-dimensional array!");let i=we(s);k(i.length===1,"The new array of values must be 1-dimensional!"),i[0]<this._index.length?this._index=this._index.slice(0,i[0]):i[0]>this._index.length&&(this._index=this._index.concat(Ci(this._index.length,i[0]).map(o=>"item"+Ui(o,(s.length-1).toString().length)))),this._values=s}}),Object.defineProperty(this,"_index",{value:[],configurable:!0,enumerable:!1,writable:!0}),Object.defineProperty(this,"index",{configurable:!0,enumerable:!0,get(){return this._index},set(s){k(Bt(s),"The new index must be a 1-dimensional array of strings!"),k(s.length===this.shape[0],"The new index must be the same length as the old index!"),k(we(s).length===1,"The new index must be a 1-dimensional array of strings!"),s.forEach(i=>{k(zm(i),"All of the row names must be strings!")}),this._index=s}}),n){if(n instanceof t)this.name=n.name,this.values=ke(n.values),this.index=ke(n.index);else if(Bt(n)){let s=we(n);k(s.length===1,"When passing an array into the constructor of a Series, the array must be 1-dimensional!"),this.values=n}else if(n instanceof Object){let s=Object.keys(n).concat(Object.getOwnPropertySymbols(n)).map(u=>u.toString());k(s.length===1,"When passing an object into the constructor of a Series, the object must have only 1 key-value pair, where the key is the name of the data and the value is the 1-dimensional array of values!");let i=s[0],o=n[i];k(we(o).length===1,"When passing an object into the constructor of a Series, the object must have only 1 key-value pair, where the key is the name of the data and the value is the 1-dimensional array of values!"),this.name=i,this.values=o.slice()}}}get shape(){return we(this.values)}get length(){return this.shape[0]}get isEmpty(){return this.values.filter(n=>!km(n)).length===0}clear(){let n=this.copy();return n.values.forEach((s,i)=>{n.values[i]=void 0}),n}get(n){return Vm(this,n)}getSubsetByNames(n){return Km(t,this,n)}getSubsetByIndices(n){return Gm(this,n)}loc(n){return this.getSubsetByNames(n)}iloc(n){return this.getSubsetByIndices(n)}reverse(){let n=new t(Re(this.values));return n.index=Re(this.index),n.name=this.name,n}resetIndex(){let n=this.copy();return n.index=Ci(0,this.shape[0]).map(s=>"item"+Ui(s,(n.index.length-1).toString().length)),n}copy(){let n=new t;return n._values=ke(this.values),n._index=ke(this.index),n.name=this.name,n}append(n){return Rm(t,this,n)}apply(n){return Jm(this,n)}concat(n){return this.append(n)}dropMissing(n,s){return $m(this,n,s)}dropNaN(){return Ym(t,this)}toObject(){return Zm(this)}print(){return Wm(this)}shuffle(){return Hm(this)}sort(n){return Xm(t,this,n)}sortByIndex(){return Qm(t,this)}filter(n){return Lm(t,this,n)}toDataFrame(){let n=new e(ed([this.values]));return n.columns=[this.name],n.index=this.index,n}transpose(){let n=this.copy();return n.values=Re(n.values),n.index=Re(n.index),n}getDummies(){return this.toDataFrame().getDummies()}oneHotEncode(){return this.getDummies()}}return t}});var ie=c((dN,Vi)=>{var{copy:Pt}=z(),P=m(),Ji=De(),td=_n(),rd=En(),nd=Bn(),sd=Un(),id=Yn(),od=Gn(),ud=Xn(),ad=ts(),cd=ss(),$i=ls(),ld=qs(),fd=Ss(),hd=Ts(),md=Is(),dd=Ls(),pd=Xs(),gd=Zs(),yd=ti(),qd=jt(),bd=ni(),Nd=I(),Se=p(),vd=R(),Ut=y(),Ct=Be(),wd=J(),zt=F(),Sd=C(),se=v(),Yi=H(),Li=Symbol.for("@jrc03c/js-math-tools/dataframe");function Je(e){let t="abcdefghijklmnopqrstuvwxyz1234567890",r="";for(let n=0;n<e;n++)r+=t[parseInt(Math.random()*t.length)];return r}var T=class{static[Symbol.hasInstance](t){try{return!!t._symbol&&t._symbol===Li}catch{return!1}}constructor(t){if(Object.defineProperty(this,"_symbol",{configurable:!1,enumerable:!1,writable:!1,value:Li}),Object.defineProperty(this,"_values",{value:[],configurable:!0,enumerable:!1,writable:!0}),Object.defineProperty(this,"values",{configurable:!0,enumerable:!0,get(){return this._values.length===0||!Ut(this._values[0])&&this._values[0].length===0?[[]]:this._values},set(r){P(Se(r),"The new values must be a 2-dimensional array!");let n=se(r);P(n.length===2,"The new array of values must be 2-dimensional!"),n[0]<this._index.length?this._index=this._index.slice(0,n[0]):n[0]>this._index.length&&(this._index=this._index.concat(zt(this._index.length,n[0]).map(s=>"row"+Ct(s,(n[0]-1).toString().length)))),n[1]<this._columns.length?this._columns=this._columns.slice(0,n[1]):n[1]>this._columns.length&&(this._columns=this._columns.concat(zt(this._columns.length,n[1]).map(s=>"col"+Ct(s,(n[1]-1).toString().length)))),this._values=r}}),Object.defineProperty(this,"_columns",{value:[],configurable:!0,enumerable:!1,writable:!0}),Object.defineProperty(this,"columns",{configurable:!0,enumerable:!0,get(){return this._columns},set(r){P(Se(r),"The new columns list must be a 1-dimensional array of strings!"),P(this.isEmpty||r.length===this.shape[1],"The new columns list must be the same length as the old columns list!"),P(se(r).length===1,"The new columns list must be a 1-dimensional array of strings!"),r=r.map(s=>(typeof s!="string"&&(s=JSON.stringify(s)||s.toString()),s.trim().length===0?"untitled_"+Je(8):s.trim()));let n=(()=>{let s=Ji(r),i={};return s.values.forEach(o=>{i[o]=s.get(o)}),i})();r=r.map(s=>n[s]>1?s+"_"+Je(8):s),this._columns=r}}),Object.defineProperty(this,"_index",{value:[],configurable:!0,enumerable:!1,writable:!0}),Object.defineProperty(this,"index",{configurable:!0,enumerable:!0,get(){return this._index},set(r){P(Se(r),"The new index must be a 1-dimensional array of strings!"),P(this.isEmpty||r.length===this.shape[0],"The new index must be the same length as the old index!"),P(se(r).length===1,"The new index must be a 1-dimensional array of strings!"),r=r.map(s=>(typeof s!="string"&&(s=JSON.stringify(s)||s.toString()),s.trim().length===0?"untitled_"+Je(8):s.trim()));let n=(()=>{let s=Ji(r),i={};return s.values.forEach(o=>{i[o]=s.get(o)}),i})();r=r.map(s=>n[s]>1?s+"_"+Je(8):s),this._index=r}}),P(Ut(t)||vd(t)||Se(t),"The `data` passed into the constructor of a DataFrame must be either (1) an object where the key-value pairs are (respectively) column names and 1-dimensional arrays of values, or (2) a 2-dimensional array of values."),t)if(t instanceof T)this.values=Pt(t.values),this.columns=Pt(t.columns),this.index=Pt(t.index);else if(Se(t)){let r=se(t);P(r.length===2,"The `data` array passed into the constructor of a DataFrame must be 2-dimensional!"),P(Sd(t.map(n=>n.length)).length===1,"The 2-dimensional array passed into the constructor of a DataFrame must not contain sub-arrays (i.e., rows) of different lengths!"),this.values=t}else{this._columns=Object.keys(t).concat(Object.getOwnPropertySymbols(t)).map(o=>o.toString());let r=[],n=null,s=null;this._columns.forEach(o=>{Ut(s)&&(n=o,s=t[o].length),P(t[o].length===s,`The object passed into the DataFrame constructor contains arrays of different lengths! The key "${n}" points to an array containing ${s} items, and the key "${o}" points to an array containing ${t[o].length} items.`),s=t[o].length;let u=t[o];r.push(u)}),this._values=Yi(r);let i=se(this.values);this._index=zt(0,i[0]).map(o=>"row"+Ct(o,(i[0]-1).toString().length))}}get shape(){return se(this.values)}get length(){return this.shape[0]}get width(){return this.shape[1]}get rows(){return this.index}set rows(t){this.index=t}get isEmpty(){return Nd(this.values).length===0}clear(){let t=new T(wd(this.shape));return t.columns=this.columns.slice(),t.index=this.index.slice(),t}get(t,r){if(arguments.length===0)return this;if(arguments.length===1)try{return this.get(null,t)}catch{return this.get(t,null)}return cd(this,t,r)}getSubsetByNames(t,r){return fd(T,V,this,t,r)}getSubsetByIndices(t,r){return ld(this,t,r)}getDummies(t){return $i(T,this,t)}oneHotEncode(t){return $i(T,this,t)}transpose(){let t=new T(Yi(this.values));return t.columns=this.index.slice(),t.index=this.columns.slice(),t}get T(){return this.transpose()}resetIndex(t){return md(this,t)}copy(){return sd(T,this)}assign(t,r){return nd(T,V,this,t,r)}apply(t,r){return rd(T,V,this,t,r)}dropMissing(t,r,n){return od(T,V,this,t,r,n)}dropNaN(t,r,n){return ud(T,this,t,r,n)}drop(t,r){return id(T,V,this,t,r)}dropColumns(t){return this.drop(null,t)}dropRows(t){return this.drop(t,null)}toDetailedObject(t){return gd(this,t)}toObject(){return bd(this)}toJSONString(t){return qd(this,t)}saveAsJSON(t,r){return yd(this,t,r)}print(){return hd(T,V,this)}sort(t,r){return pd(this,t,r)}sortByIndex(){return this.sort()}filter(t,r){return ad(T,V,this,t,r)}shuffle(t){return dd(this,t)}append(t,r){return td(this,t,r)}concat(t,r){return this.append(t,r)}join(t,r){return this.append(t,r)}toString(){return JSON.stringify(this)}},V=Ri()(T);Vi.exports={DataFrame:T,Series:V}});var Oe=c((pN,Gi)=>{var Od=j();function Td(e,t){return Od(e,{dropNaNs:t}).max}Gi.exports=Td});var N=c((gN,eo)=>{var{DataFrame:Ki,Series:Wi}=ie(),Hi=m(),$e=p(),Xi=b(),Qi=M(),_d=D(),Zi=q(),Dd=Oe(),Id=F(),Ye=v();function Ad(e){return Hi(_d(e),"You must pass a function into the `vectorize` function!"),function t(){let r,n,s=[],i=[],o=Object.keys(arguments).filter(u=>{let a=arguments[u];return $e(a)?!0:Zi(a)?(r=!0,s.push(a),!0):Xi(a)?(n=!0,i.push(a),!0):!1}).map(u=>arguments[u]);if(o.slice(0,-1).forEach((u,a)=>{Hi(Qi($e(u)?Ye(u):u.shape,$e(o[a+1])?Ye(o[a+1]):o[a+1].shape),`When passing multiple arrays into the \`${e.name}\` function, all of the arrays must have the same shape!`)}),o.length>0){let u=Dd(o.map(l=>l.length?l.length:l.values.length)),a=Id(0,u).map(l=>{let f=Object.keys(arguments).map(h=>$e(arguments[h])?arguments[h][l]:Zi(arguments[h])||Xi(arguments[h])?arguments[h].values[l]:arguments[h]);return t(...f)});if(n)try{if(i.length===1&&Qi(Ye(i[0]),Ye(a))){let l=new Ki(a);return l.index=i[0].index.slice(),l.columns=i[0].columns.slice(),l}else return new Ki(a)}catch{return a}if(r)try{if(s.length===1&&s[0].length===a.length){let l=new Wi(a);return l.name=s[0].name,l.index=s[0].index.slice(),l}else return new Wi(a)}catch{return a}return a}else return e(...arguments)}}eo.exports=Ad});var Le=c((yN,to)=>{var xd=g(),Ed=N();function jd(e){try{return xd(e)?typeof e=="bigint"?e<0?-e:e:Math.abs(e):NaN}catch{return NaN}}to.exports=Ed(jd)});var Ve=c((qN,ro)=>{var Fd=g(),Md=N();function Bd(){try{let e=0,t=!1,r=Object.values(arguments);for(let n of r){if(!Fd(n))return NaN;typeof n=="bigint"&&(t=!0,n=Number(n)),e+=n}if(t)try{return BigInt(e)}catch{}return e}catch{return NaN}}ro.exports=Md(Bd)});var Te=c((bN,no)=>{var Pd=N();function Ud(e,t){try{return t(e)}catch{return NaN}}no.exports=Pd(Ud)});var io=c((NN,so)=>{var Cd=g(),zd=N();function kd(e){try{return Cd(e)?(typeof e=="bigint"&&(e=Number(e)),Math.acos(e)):NaN}catch{return NaN}}so.exports=zd(kd)});var uo=c((vN,oo)=>{var Rd=g(),Jd=N();function $d(e){try{return Rd(e)?(typeof e=="bigint"&&(e=Number(e)),Math.asin(e)):NaN}catch{return NaN}}oo.exports=Jd($d)});var co=c((wN,ao)=>{var Yd=g(),Ld=N();function Vd(e){try{return Yd(e)?(typeof e=="bigint"&&(e=Number(e)),Math.atan(e)):NaN}catch{return NaN}}ao.exports=Ld(Vd)});var fo=c((SN,lo)=>{var Gd=m(),Kd=ce(),Wd=p(),Hd=b(),Xd=q(),Qd=Oe();function kt(e,t){if(Hd(e)){let r=kt(e.values);return[e.index[r[0]],e.columns[r[1]]]}if(Xd(e)){let r=kt(e.values);return[e.index[r]]}Gd(Wd(e),"The `argmax` function only works on arrays, Series, and DataFrames!");try{let r=Kd(e,Qd(e,t));return r?r.length===0?void 0:r.length===1?r[0]:r:void 0}catch(r){console.log(r);return}}lo.exports=kt});var Rt=c((ON,ho)=>{var Zd=j();function ep(e,t){return Zd(e,{dropNaNs:t}).min}ho.exports=ep});var po=c((TN,mo)=>{var tp=m(),rp=ce(),np=p(),sp=b(),ip=q(),op=Rt();function Jt(e,t){if(sp(e)){let r=Jt(e.values);return[e.index[r[0]],e.columns[r[1]]]}if(ip(e)){let r=Jt(e.values);return[e.index[r]]}tp(np(e),"The `argmin` function only works on arrays, Series, and DataFrames!");try{let r=rp(e,op(e,t));return r?r.length===0?void 0:r.length===1?r[0]:r:void 0}catch{return}}mo.exports=Jt});var Vt=c((_N,qo)=>{var go=p(),$t=Ce(),up=b(),Yt=fe(),ap=M(),yo=g(),cp=R(),lp=q(),Lt=y();function U(e,t){if(up(e)||lp(e))return e.apply(r=>U(r,t));if(go(e))return e.map(r=>U(r,t));if(t==="null")return null;if(t==="number"){if(Lt(e))return NaN;let r=U(e,"boolean");if($t(r))return r?1:0;try{JSON.parse(e)}catch{let i=U(e,"date");if(Yt(i))return i.getTime()}let n=parseFloat(e);return isNaN(n)?NaN:n}if(t==="int"){let r=U(e,"number");return r>=0?Math.floor(r):Math.ceil(r)}if(t==="float")return U(e,"number");if(t==="bigint")return typeof e=="bigint"?e:BigInt(U(e,"int"));if(t==="boolean"){if($t(e))return e;if(yo(e))return e===0?!1:e===1?!0:null;try{let r=(typeof e=="object"?e.toString()==="null"?"false":JSON.stringify(e):e.toString()).trim().toLowerCase();return r==="true"||r==="yes"||r==="y"?!0:r==="false"||r==="no"||r==="n"?!1:null}catch{return null}}if(t==="date"){if(Yt(e))return e;if(Lt(e))return null;let r=parseFloat(e);if(!isNaN(r)){let s=new Date(e);return Yt(s)?s:null}let n=Date.parse(e);return isNaN(n)?null:new Date(n)}if(t==="object"){if(cp(e))return e;let r=U(e,"boolean");if($t(r))return null;try{let s=U(e,"number");if(yo(s))return JSON.parse(e),null}catch{}let n=U(e,"date");if(n)return n;try{let s=JSON.parse(e);return go(s)?s.map(i=>U(i,t)):s}catch{return null}}if(t==="string")return Lt(e)?ap(e,void 0)?"undefined":"null":e instanceof Date?e.toJSON():(()=>typeof e=="object"?e===null?"null":JSON.stringify(e):e.toString())()}qo.exports=U});var No=c((DN,bo)=>{var fp=g(),hp=N();function mp(e){try{return fp(e)?typeof e=="bigint"?e:Math.ceil(e):NaN}catch{return NaN}}bo.exports=hp(mp)});var So=c((IN,wo)=>{var dp=Le(),vo=g(),pp=y(),gp=N();function yp(e,t){try{if(!vo(e))return NaN;if(typeof e=="bigint")return e;if(pp(t))t=1e-10;else if(!vo(t))return NaN;return dp(e)<t?0:e}catch{return NaN}}wo.exports=gp(yp)});var X=c((AN,Oo)=>{var qp=g(),bp=N();function Np(e){try{let t=JSON.parse(e);return qp(t)?parseInt(t):NaN}catch{return NaN}}Oo.exports=bp(Np)});var Do=c((xN,_o)=>{var vp=X(),Gt=g(),wp=N();function To(e,t,r){try{return Gt(e)?Gt(t)?Gt(r)?typeof e=="bigint"?BigInt(To(vp(e),t,r)):e<t?t:e>r?r:e:NaN:NaN:NaN}catch{return NaN}}_o.exports=wp(To)});var Ke=c((EN,Ao)=>{var Io=m(),Sp=I(),Op=X(),Tp=p(),_p=b(),Dp=g(),Ip=q();function Ge(e,t){function*r(n,s){if(s>n.length)yield n;else if(s<=0)yield[];else if(n.length<2)yield n;else for(let i=0;i<n.length;i++){let o=n[i],u=n.slice(i+1);if(!(u.length<s-1)&&s-1>=0)for(let a of Ge(u,s-1))yield[o].concat(a)}}return _p(e)||Ip(e)?Ge(e.values,t):(Io(Tp(e),"The `combinations` function only works on arrays, Series, and DataFrames!"),Io(Dp(t)&&Op(t)===t&&t>=0,"`r` must be a non-negative integer!"),r(Sp(e),t))}function Ap(e,t){let r=[];for(let n of Ge(e,t))r.push(n.slice());return r}Ao.exports={combinations:Ap,combinationsIterator:Ge}});var Wt=c((jN,xo)=>{var xp=m(),Ep=p(),jp=b(),Fp=M(),Mp=q(),Kt=C();function Bp(){let e=Object.values(arguments).map(r=>jp(r)||Mp(r)?Kt(r.values):(xp(Ep(r),"The `intersect` function only works on arrays, Series, and DataFrames!"),Kt(r)));return Kt(e).filter(r=>e.every(n=>n.findIndex(s=>Fp(s,r))>-1))}xo.exports=Bp});var Ht=c((FN,Co)=>{var{DataFrame:Eo,Series:jo}=ie(),We=m(),Pp=Wt(),Fo=p(),Mo=b(),Bo=q(),Po=y(),Uo=v(),oe=class{constructor(t){We(Po(t)||t===oe.DROP_NAN_MODE||t===oe.DROP_MISSING_MODE,"The `mode` value passed into the `IndexMatcher` constructor must be undefined or one of [IndexMatcher.DROP_NAN_MODE, IndexMatcher.DROP_MISSING_MODE]! (By default, the mode is `Indexer.DROP_MISSING_MODE`.)"),this.mode=Po(t)?oe.DROP_NAN_MODE:t,this.index=null}fit(){let t=[];return Object.values(arguments).forEach(r=>{if(Fo(r)){let n=Uo(r);if(n.length===1)r=new jo(r);else if(n.length===2)r=new Eo(r);else throw new Error("The `IndexMatcher.fit` method only works on arrays, Series, and DataFrames!")}We(Mo(r)||Bo(r),"The `IndexMatcher.fit` method only works on arrays, Series, and DataFrames!"),this.mode===oe.DROP_MISSING_MODE?t.push(r.dropMissing().index):t.push(r.dropNaN().index)}),this.index=Pp(...t),this}transform(){We(!!this.index,"The IndexMatcher hasn't been fitted yet! Please call the `fit` method before calling the `transform` method.");let t=Object.values(arguments).map(r=>{if(Fo(r)){let n=Uo(r);if(n.length===1)return new jo(r).get(this.index).values;if(n.length===2)return new Eo(r).get(this.index,null).values;throw new Error("The `IndexMatcher.fit` method only works on arrays, Series, and DataFrames!")}return We(Mo(r)||Bo(r),"The `IndexMatcher.fit` method only works on arrays, Series, and DataFrames!"),r.get(this.index,null)});return t.length===1?t[0]:t}fitAndTransform(){return this.fit(...arguments).transform(...arguments)}},_e=oe;ht(_e,"DROP_NAN_MODE","DROP_NAN_MODE"),ht(_e,"DROP_MISSING_MODE","DROP_MISSING_MODE");Co.exports=_e});var Xt=c((BN,Yo)=>{var zo=m(),Up=Ht(),ko=p(),He=g(),Ro=q(),Jo=v(),$o=j();function Xe(e,t,r,n){if(Ro(e))return Xe(e.values,t);if(Ro(t))return Xe(e,t.values);if(zo(ko(e)&&ko(t)&&Jo(e).length===1&&Jo(t).length===1,"The `covariance` function only works on 1-dimensional arrays and Series!"),zo(e.length===t.length,"The two arrays or Series passed into the `covariance` function must have the same length!"),r)return Xe(...new Up().fitAndTransform(e,t),!1,n);try{let s=$o(e,{stdev:n}),i=$o(t,{stdev:n}),o=Number(s.mean),u=Number(i.mean);if(!He(o)||!He(u))return NaN;let a=Math.max(e.length,t.length),l=0;for(let f=0;f<a;f++){let h=e[f],d=t[f];if(!He(h))return NaN;if(!He(d))return NaN;typeof h=="bigint"&&(h=Number(h)),typeof d=="bigint"&&(d=Number(d)),l+=(h-o)*(d-u)}return n?[l/e.length,s,i]:l/e.length}catch{return NaN}}Yo.exports=Xe});var Ho=c((PN,Wo)=>{var Lo=m(),Cp=Xt(),Vo=p(),Go=q(),Ko=v();function Qt(e,t,r){if(Go(e))return Qt(e.values,t);if(Go(t))return Qt(e,t.values);Lo(Vo(e)&&Vo(t)&&Ko(e).length===1&&Ko(t).length===1,"The `correl` function only works on 1-dimensional arrays and Series!"),Lo(e.length===t.length,"The two arrays or Series passed into the `correl` function must have the same length!");try{let[s,i,o]=Cp(e,t,r,!0),u=i.stdev*o.stdev;return s/u}catch{return NaN}}Wo.exports=Qt});var Qo=c((UN,Xo)=>{var zp=g(),kp=N();function Rp(e){try{return zp(e)?(typeof e=="bigint"&&(e=Number(e)),Math.cos(e)):NaN}catch{return NaN}}Xo.exports=kp(Rp)});var eu=c((CN,Zo)=>{Zo.exports=Object.freeze({boolean:"boolean",date:"date",null:"null",number:"number",object:"object",string:"string"})});var ou=c((zN,iu)=>{var Jp=m(),tu=p(),ru=b(),$p=M(),nu=q(),su=C();function Zt(e,t){if(ru(e)||nu(e))return Zt(e.values,t);if(ru(t)||nu(t))return Zt(e,t.values);Jp(tu(e)&&tu(t),"The `diff` function only works on arrays, Series, and DataFrames!");let r=su(e),n=su(t),s=[];return r.forEach(i=>{n.findIndex(o=>$p(o,i))<0&&s.push(i)}),s}iu.exports=Zt});var Qe=c((kN,cu)=>{var uu=g(),Yp=N();function au(e,t){try{if(!uu(e))return NaN;if(!uu(t))return NaN;if(typeof e=="bigint"||typeof t=="bigint"){let r=au(Number(e),Number(t));try{return BigInt(r)}catch{return r}}return Math.pow(e,t)}catch{return NaN}}cu.exports=Yp(au)});var er=c((RN,fu)=>{var Lp=g(),Vp=N();function lu(e){try{if(!Lp(e))return NaN;if(typeof e=="bigint"){let t=lu(Number(e));try{return BigInt(t)}catch{return t}}return Math.sqrt(e)}catch{return NaN}}fu.exports=Vp(lu)});var tr=c((JN,hu)=>{var Gp=g(),Kp=N();function Wp(){try{let e=Object.values(arguments);if(e.length===0)return NaN;let t=!1,r=1;for(let n of e){if(!Gp(n))return NaN;typeof n=="bigint"&&(t=!0,n=Number(n)),r*=n}if(t)try{return BigInt(r)}catch{}return r}catch{return NaN}}hu.exports=Kp(Wp)});var ue=c(($N,mu)=>{var Hp=tr();function Xp(){return Hp(...arguments)}mu.exports=Xp});var rr=c((YN,du)=>{var Qp=Ve(),Zp=ue();function eg(e,t){return Qp(e,Zp(t,-1))}du.exports=eg});var Ze=c((LN,pu)=>{var tg=j();function rg(e,t){return tg(e,{dropNaNs:t}).sum}pu.exports=rg});var wu=c((VN,vu)=>{var ng=Le(),sg=m(),gu=p(),yu=b(),ig=M(),qu=g(),bu=q(),og=Qe(),Nu=v(),ug=er(),ag=rr(),cg=Ze();function nr(e,t){if(qu(e)&&qu(t))return ng(e-t);if(yu(e)||bu(e))return nr(e.values,t);if(yu(t)||bu(t))return nr(e,t.values);gu(e)&&gu(t)&&sg(ig(Nu(e),Nu(t)),"If passing two arrays, Series, or DataFrames into the `distance` function, then those objects must have the same shape!");try{return ug(cg(og(ag(e,t),2)))}catch{return NaN}}vu.exports=nr});var Ou=c((GN,Su)=>{var lg=Qe(),fg=ue();function hg(e,t){return fg(e,lg(t,-1))}Su.exports=hg});var ir=c((KN,xu)=>{var{DataFrame:Tu,Series:_u}=ie(),et=m(),Du=I(),Iu=p(),sr=b(),mg=g(),tt=q(),dg=ue(),rt=v(),pg=Ze(),Au=H();function G(e,t){if(sr(e)){let s=G(e.values,t);if(rt(s).length===1){let i=new _u(s);return i.name=tt(t)?t.name:i.name,i.index=e.index.slice(),i}else{let i=new Tu(s);return i.index=e.index.slice(),sr(t)&&(i.columns=t.columns.slice()),i}}if(sr(t)){let s=G(e,t.values);if(rt(s).length===1){let i=new _u(s);return i.name=tt(e)?e.name:i.name,i.index=t.columns.slice(),i}else{let i=new Tu(s);return i.columns=t.columns.slice(),i}}if(tt(e))return G(e.values,t);if(tt(t))return G(e,t.values);et(Iu(e)&&Iu(t),"The `dot` function only works on arrays, Series, and DataFrames!"),Du(e).concat(Du(t)).forEach(s=>{et(mg(s),"One of the arrays you passed into the `dot` function contains non-numerical values!")});let r=rt(e),n=rt(t);if(et(r.length<=2&&n.length<=2,"I'm not smart enough to know how to get the dot-product of arrays that have more than 2 dimensions. Sorry for the inconvenience! Please only pass 1- or 2-dimensional arrays into the `dot` function!"),et(r[r.length-1]===n[0],`There's a dimension misalignment in the two arrays you passed into the \`dot\` function. (${r[r.length-1]} !== ${n[0]})`),r.length===1&&n.length===1)return pg(dg(e,t));if(r.length===1&&n.length===2)return Au(t).map(s=>G(e,s));if(r.length===2&&n.length===1)return e.map(s=>G(s,t));if(r.length===2&&n.length===2){let s=Au(t),i=[];for(let o=0;o<e.length;o++){let u=[];for(let a=0;a<s.length;a++)u.push(G(e[o],s[a]));i.push(u)}return i}}xu.exports=G});var or=c((WN,ju)=>{var gg=m(),yg=p(),qg=b(),bg=q(),Ng=y();function Eu(e){if(qg(e)||bg(e))return e.dropMissing(...Object.values(arguments).slice(1));gg(yg(e),"The `dropMissing` function only works on arrays, Series, and DataFrames!");let t=[];return e.forEach(r=>{try{return t.push(Eu(r))}catch{Ng(r)||t.push(r)}}),t}ju.exports=Eu});var ku=c((HN,zu)=>{var Fu=m(),Mu=p(),Bu=b(),vg=M(),Pu=q(),Uu=y(),Cu=v();function nt(e,t){if(Bu(e)||Pu(e))return nt(e.values,t);if(Bu(t)||Pu(t))return nt(e,t.values);Fu(Mu(e)&&Mu(t),"The `dropMissingPairwise` function only works on arrays, Series, and DataFrames!"),Fu(vg(Cu(e),Cu(t)),"The two arrays, Series, and/or DataFrames passed into the `dropMissingPairwise` function must have the same shape!");let r=[],n=[];for(let s=0;s<e.length;s++)try{let[i,o]=nt(e[s],t[s]);r.push(i),n.push(o)}catch{!Uu(e[s])&&!Uu(t[s])&&(r.push(e[s]),n.push(t[s]))}return[r,n]}zu.exports=nt});var Ku=c((XN,Gu)=>{var Ru=m(),Ju=p(),$u=b(),wg=M(),Yu=g(),Lu=q(),Vu=v();function st(e,t){if($u(e)||Lu(e))return st(e.values,t);if($u(t)||Lu(t))return st(e,t.values);Ru(Ju(e)&&Ju(t),"The `dropNaNPairwise` only works on arrays, Series, and DataFrames!"),Ru(wg(Vu(e),Vu(t)),"The two arrays, Series, and/or DataFrames passed into the `dropNaNPairwise` must have the same shape!");let r=[],n=[];for(let s=0;s<e.length;s++)try{let[i,o]=st(e[s],t[s]);r.push(i),n.push(o)}catch{Yu(e[s])&&Yu(t[s])&&(r.push(e[s]),n.push(t[s]))}return[r,n]}Gu.exports=st});var Hu=c((QN,Wu)=>{var Sg=or();function Og(e){return Sg(e)}Wu.exports=Og});var ar=c((ZN,Zu)=>{var Xu=m(),Qu=p(),Tg=b(),_g=D(),Dg=q();function ur(e,t){if(Tg(e)||Dg(e))return ur(e.values,t);Xu(Qu(e),"The first argument passed into the `every` function must be an array, Series, or DataFrame!"),Xu(_g(t),"The second argument passed into the `every` function must be a function!");for(let r of e)if(Qu(r)){if(!ur(r,t))return!1}else if(!t(r))return!1;return!0}Zu.exports=ur});var ta=c((e0,ea)=>{var Ig=g(),Ag=N();function xg(e){try{if(!Ig(e))return NaN;if(typeof e=="bigint"){if(e===0n)return 1n;e=Number(e)}return Math.exp(e)}catch{return NaN}}ea.exports=Ag(xg)});var na=c((t0,ra)=>{var Eg=X(),jg=N();function cr(e){try{return typeof e=="bigint"?BigInt(cr(Eg(e))):e!==parseInt(e)?NaN:e<=1?1:e*cr(e-1)}catch{return NaN}}ra.exports=jg(cr)});var ua=c((r0,oa)=>{var Fg=m(),Mg=I(),sa=p(),Bg=b(),Pg=D(),ia=R(),Ug=q();function lr(e,t){if(Bg(e))return lr(Mg(e.values),t);if(Ug(e))return lr(e.values,t);if(Fg(ia(e)||sa(e),"You must pass (1) an object, array, Series, or DataFrame and (2) a function or value into the `find` function!"),!Pg(t)){let s=t;t=i=>i===s}function r(s,i,o){if(o=o||[],o.indexOf(s)>-1)return null;if(ia(s)){o.push(s);let u=Object.keys(s).concat(Object.getOwnPropertySymbols(s));for(let a=0;a<u.length;a++){let l=u[a],f=s[l];if(i(f))return f;let h=r(f,i,o);if(h)return h}}else if(sa(s)){o.push(s);for(let u=0;u<s.length;u++){let a=s[u];if(i(a))return a;let l=r(a,i,o);if(l)return l}}else if(i(s))return s;return null}function n(s){try{return t(s)}catch{return!1}}return r(e,n)}oa.exports=lr});var fa=c((n0,la)=>{var Cg=m(),zg=I(),aa=p(),kg=b(),Rg=D(),ca=R(),Jg=q();function fr(e,t){if(kg(e))return fr(zg(e.values),t);if(Jg(e))return fr(e.values,t);if(Cg(ca(e)||aa(e),"You must pass (1) an object, array, Series, or DataFrame and (2) a function or value into the `findAll` function!"),!Rg(t)){let i=t;t=o=>o===i}function r(i,o,u){if(u=u||[],u.indexOf(i)>-1)return null;if(ca(i)){u.push(i);let a=Object.keys(i).concat(Object.getOwnPropertySymbols(i)),l=[];for(let f=0;f<a.length;f++){let h=a[f],d=i[h],w=!1;o(d)&&(l.push(d),w=!0);let O=r(d,o,u);O&&O.length>0&&O.slice(w?1:0).forEach(_=>l.push(_))}return l}else if(aa(i)){u.push(i);let a=[];for(let l=0;l<i.length;l++){let f=i[l],h=!1;o(f)&&(a.push(f),h=!0);let d=r(f,o,u);d&&d.length>0&&d.slice(h?1:0).forEach(w=>a.push(w))}return a}else if(o(i))return[i];return null}function n(i){try{return t(i)}catch{return!1}}let s=r(e,n);return s&&s.length>0?s:null}la.exports=fr});var ma=c((s0,ha)=>{var $g=g(),Yg=N();function Lg(e){try{if(e==="Infinity")return 1/0;if(e==="-Infinity")return-1/0;let t=JSON.parse(e);return $g(t)?t:NaN}catch{return NaN}}ha.exports=Yg(Lg)});var pa=c((i0,da)=>{var Vg=g(),Gg=N();function Kg(e){try{return Vg(e)?typeof e=="bigint"?e:Math.floor(e):NaN}catch{return NaN}}da.exports=Gg(Kg)});var it=c((o0,ga)=>{var Wg=g(),Hg=qe(),Xg=Pe();function Qg(e){Wg(e)&&(e=[e]);let t=[],r=Hg(e);for(let n=0;n<r;n++)t.push(0);return Xg(t,e)}ga.exports=Qg});var qa=c((u0,ya)=>{var ot=m(),Zg=X(),ey=g(),ty=y(),ry=it();function ny(e){typeof e=="bigint"&&(e=Zg(e)),ot(!ty(e),"You must pass an integer greater than 0 (representing the size) into the `identity` function!"),ot(ey(e),"You must pass an integer greater than 0 (representing the size) into the `identity` function!"),ot(parseInt(e)===e,"You must pass an integer greater than 0 (representing the size) into the `identity` function!"),ot(e>0,"You must pass an integer greater than 0 (representing the size) into the `identity` function!");let t=ry([e,e]);for(let r=0;r<e;r++)t[r][r]=1;return t}ya.exports=ny});var Na=c((a0,ba)=>{ba.exports=["true","false","yes","no"]});var wa=c((c0,va)=>{va.exports=["null","none","nan","na","n/a","","undefined"]});var _a=c((l0,Ta)=>{var sy=Te(),iy=m(),oy=Na(),uy=Vt(),ay=De(),cy=ar(),ly=I(),hr=p(),fy=b(),Sa=fe(),Oa=g(),hy=q(),my=x(),dy=wa();function ut(e){return e.type==="number"&&(typeof e.value<"u"?e.isInteger=parseInt(e.value)===e.value:e.isInteger=cy(e.values,t=>Oa(t)?parseInt(t)===t:!0)),e}function at(e){if(fy(e)){let i=e.copy(),o=at(e.values);return i.values=o.values,ut({type:o.type,values:i})}if(hy(e)){let i=e.copy(),o=at(e.values);return i.values=o.values,ut({type:o.type,values:i})}if(!hr(e)){let i=at([e]);return i.value=i.values[0],delete i.values,ut(i)}iy(hr(e),"The `inferType` function only works on arrays, Series, and DataFrames!");let t=ly(e).map(i=>{if(i===void 0)return"null";try{if(typeof i=="object"){let a=new Date(i.getTime());if(Sa(a))return"date"}}catch{}my(i)||(typeof i=="bigint"?i=i.toString()+"n":i=JSON.stringify(i));let u=i.toLowerCase().trim();if(dy.indexOf(u)>-1)return"null";if(oy.indexOf(u)>-1)return"boolean";try{if(i.match(/^-?\d+n$/g))return"bigint";let a=JSON.parse(i);return Oa(a)?"number":typeof a=="object"?hr(a)?"string":"object":"string"}catch{let l=new Date(i);return Sa(l)?"date":"string"}}),r=ay(t),s=r.values.toSorted((i,o)=>r.get(o)-r.get(i))[0];return ut({type:s,values:sy(e,i=>uy(i,s))})}Ta.exports=at});var xa=c((f0,Aa)=>{var Da=Ve(),K=m(),py=ir(),gy=I(),yy=p(),qy=b(),mr=g(),Ia=ue(),by=v();function ct(e){if(qy(e)){let r=e.copy();return r.values=ct(r.values),r}K(yy(e),"The `inverse` function only works on square 2-dimensional arrays or DataFrames!"),gy(e).forEach(r=>K(mr(r),"The array passed into the `inverse` function must contain only numbers!"));let t=by(e);if(K(t.length===2,"The array passed into the `inverse` function must be exactly two-dimensional and square!"),K(t[0]===t[1],"The array passed into the `inverse` function must be exactly two-dimensional and square!"),K(t[0]>=0,"The array passed into the `inverse` function must be exactly two-dimensional and square!"),t[0]===0)return e;if(t[0]===1){K(e[0][0]!==0,"This matrix cannot be inverted!");let r=e[0][0];return typeof r=="bigint"&&(r=Number(r)),1/r}else if(t[0]===2){let r=e[0][0],n=e[0][1],s=e[1][0],i=e[1][1];typeof r=="bigint"&&(r=Number(r)),typeof n=="bigint"&&(n=Number(n)),typeof s=="bigint"&&(s=Number(s)),typeof i=="bigint"&&(i=Number(i));let o=r*i-n*s;K(o!==0,"This matrix cannot be inverted!");let u=[[i,-n],[-s,r]];return Ia(u,1/o)}else if(t[0]>1){let r=(n,s)=>mr(n)||mr(s)?Ia(n,s):py(n,s);for(let n=1;n<t[0]-1;n++)try{let s=e.slice(0,n).map(_=>_.slice(0,n)),i=e.slice(0,n).map(_=>_.slice(n,t[0])),o=e.slice(n,t[0]).map(_=>_.slice(0,n)),u=e.slice(n,t[0]).map(_=>_.slice(n,t[0])),a=ct(s),l=ct(Da(u,r(-1,r(r(o,a),i)))),f=Da(a,r(r(r(r(a,i),l),o),a)),h=r(-1,r(r(a,i),l)),d=r(-1,r(r(l,o),a)),w=l;return f.map((_,ft)=>_.concat(h[ft])).concat(d.map((_,ft)=>_.concat(w[ft])))}catch{}K(!1,"This matrix cannot be inverted!")}}Aa.exports=ct});var ja=c((h0,Ea)=>{var Ny=new Function(`
|
|
17
|
+
`),e}_i.exports=Dm});var Ai=c((cN,Ii)=>{var Im=Ue();function Am(e){let t=e.copy();return t.get(Im(t.index))}Ii.exports=Am});var Ei=c((lN,xi)=>{var xm=m(),Em=D(),jm=y(),Fm=te(),Mm=H();function Bm(e,t,r){r=r||((a,l)=>a<l?-1:1),xm(jm(r)||Em(r),"You must pass undefined, null, or a comparison function as the second argument to the `sort` method!");let n=Mm([t.values,t.index]),s=Fm(n,(a,l)=>r(a[0],l[0])),i=[],o=[];s.forEach(a=>{i.push(a[0]),o.push(a[1])});let u=new e;return u._values=i,u._index=o,u.name=t.name,u}xi.exports=Bm});var Mi=c((fN,Fi)=>{var Pm=te(),ji=H();function Um(e,t){let r=ji([t.values,t.index]);r=ji(Pm(r,(s,i)=>{if(s[1]===i[1])return 0;if(s[1]<i[1])return-1;if(s[1]>i[1])return 1}));let n=new e(r[0]);return n.index=r[1],n.name=t.name,n}Fi.exports=Um});var Pi=c((hN,Bi)=>{function Cm(e){let t={};return t[e.name]={},e.index.forEach((r,n)=>{t[e.name][r]=e.values[n]}),t}Bi.exports=Cm});var Ri=c((mN,ki)=>{var{copy:ke}=z(),k=m(),Bt=p(),zm=x(),km=y(),Ui=Be(),Ci=F(),Re=me(),Rm=li(),Jm=hi(),$m=di(),Ym=gi(),Lm=qi(),Vm=Ni(),Gm=wi(),Km=Oi(),Wm=Di(),Hm=Ai(),Xm=Ei(),Qm=Mi(),Zm=Pi(),we=v(),ed=H(),zi=Symbol.for("@jrc03c/js-math-tools/series");ki.exports=function(e){class t{static[Symbol.hasInstance](n){try{return!!n._symbol&&n._symbol===zi}catch{return!1}}constructor(n){if(this.name="data",Object.defineProperty(this,"_symbol",{configurable:!1,enumerable:!1,writable:!1,value:zi}),Object.defineProperty(this,"_values",{value:[],configurable:!0,enumerable:!1,writable:!0}),Object.defineProperty(this,"values",{configurable:!0,enumerable:!0,get(){return this._values},set(s){k(Bt(s),"The new values must be a 1-dimensional array!");let i=we(s);k(i.length===1,"The new array of values must be 1-dimensional!"),i[0]<this._index.length?this._index=this._index.slice(0,i[0]):i[0]>this._index.length&&(this._index=this._index.concat(Ci(this._index.length,i[0]).map(o=>"item"+Ui(o,(s.length-1).toString().length)))),this._values=s}}),Object.defineProperty(this,"_index",{value:[],configurable:!0,enumerable:!1,writable:!0}),Object.defineProperty(this,"index",{configurable:!0,enumerable:!0,get(){return this._index},set(s){k(Bt(s),"The new index must be a 1-dimensional array of strings!"),k(s.length===this.shape[0],"The new index must be the same length as the old index!"),k(we(s).length===1,"The new index must be a 1-dimensional array of strings!"),s.forEach(i=>{k(zm(i),"All of the row names must be strings!")}),this._index=s}}),n){if(n instanceof t)this.name=n.name,this.values=ke(n.values),this.index=ke(n.index);else if(Bt(n)){let s=we(n);k(s.length===1,"When passing an array into the constructor of a Series, the array must be 1-dimensional!"),this.values=n}else if(n instanceof Object){let s=Object.keys(n).concat(Object.getOwnPropertySymbols(n)).map(u=>u.toString());k(s.length===1,"When passing an object into the constructor of a Series, the object must have only 1 key-value pair, where the key is the name of the data and the value is the 1-dimensional array of values!");let i=s[0],o=n[i];k(we(o).length===1,"When passing an object into the constructor of a Series, the object must have only 1 key-value pair, where the key is the name of the data and the value is the 1-dimensional array of values!"),this.name=i,this.values=o.slice()}}}get shape(){return we(this.values)}get length(){return this.shape[0]}get isEmpty(){return this.values.filter(n=>!km(n)).length===0}clear(){let n=this.copy();return n.values.forEach((s,i)=>{n.values[i]=void 0}),n}get(n){return Vm(this,n)}getSubsetByNames(n){return Km(t,this,n)}getSubsetByIndices(n){return Gm(this,n)}loc(n){return this.getSubsetByNames(n)}iloc(n){return this.getSubsetByIndices(n)}reverse(){let n=new t(Re(this.values));return n.index=Re(this.index),n.name=this.name,n}resetIndex(){let n=this.copy();return n.index=Ci(0,this.shape[0]).map(s=>"item"+Ui(s,(n.index.length-1).toString().length)),n}copy(){let n=new t;return n._values=ke(this.values),n._index=ke(this.index),n.name=this.name,n}append(n){return Rm(t,this,n)}apply(n){return Jm(this,n)}concat(n){return this.append(n)}dropMissing(n,s){return $m(this,n,s)}dropNaN(){return Ym(t,this)}toObject(){return Zm(this)}print(){return Wm(this)}shuffle(){return Hm(this)}sort(n){return Xm(t,this,n)}sortByIndex(){return Qm(t,this)}filter(n){return Lm(t,this,n)}toDataFrame(){let n=new e(ed([this.values]));return n.columns=[this.name],n.index=this.index,n}transpose(){let n=this.copy();return n.values=Re(n.values),n.index=Re(n.index),n}getDummies(){return this.toDataFrame().getDummies()}oneHotEncode(){return this.getDummies()}}return t}});var ie=c((dN,Vi)=>{var{copy:Pt}=z(),P=m(),Ji=De(),td=_n(),rd=En(),nd=Bn(),sd=Un(),id=Yn(),od=Gn(),ud=Xn(),ad=ts(),cd=ss(),$i=ls(),ld=qs(),fd=Ss(),hd=Ts(),md=Is(),dd=Ls(),pd=Xs(),gd=Zs(),yd=ti(),qd=jt(),bd=ni(),Nd=I(),Se=p(),vd=R(),Ut=y(),Ct=Be(),wd=J(),zt=F(),Sd=C(),se=v(),Yi=H(),Li=Symbol.for("@jrc03c/js-math-tools/dataframe");function Je(e){let t="abcdefghijklmnopqrstuvwxyz1234567890",r="";for(let n=0;n<e;n++)r+=t[parseInt(Math.random()*t.length)];return r}var T=class{static[Symbol.hasInstance](t){try{return!!t._symbol&&t._symbol===Li}catch{return!1}}constructor(t){if(Object.defineProperty(this,"_symbol",{configurable:!1,enumerable:!1,writable:!1,value:Li}),Object.defineProperty(this,"_values",{value:[],configurable:!0,enumerable:!1,writable:!0}),Object.defineProperty(this,"values",{configurable:!0,enumerable:!0,get(){return this._values.length===0||!Ut(this._values[0])&&this._values[0].length===0?[[]]:this._values},set(r){P(Se(r),"The new values must be a 2-dimensional array!");let n=se(r);P(n.length===2,"The new array of values must be 2-dimensional!"),n[0]<this._index.length?this._index=this._index.slice(0,n[0]):n[0]>this._index.length&&(this._index=this._index.concat(zt(this._index.length,n[0]).map(s=>"row"+Ct(s,(n[0]-1).toString().length)))),n[1]<this._columns.length?this._columns=this._columns.slice(0,n[1]):n[1]>this._columns.length&&(this._columns=this._columns.concat(zt(this._columns.length,n[1]).map(s=>"col"+Ct(s,(n[1]-1).toString().length)))),this._values=r}}),Object.defineProperty(this,"_columns",{value:[],configurable:!0,enumerable:!1,writable:!0}),Object.defineProperty(this,"columns",{configurable:!0,enumerable:!0,get(){return this._columns},set(r){P(Se(r),"The new columns list must be a 1-dimensional array of strings!"),P(this.isEmpty||r.length===this.shape[1],"The new columns list must be the same length as the old columns list!"),P(se(r).length===1,"The new columns list must be a 1-dimensional array of strings!"),r=r.map(s=>(typeof s!="string"&&(s=JSON.stringify(s)||s.toString()),s.trim().length===0?"untitled_"+Je(8):s.trim()));let n=(()=>{let s=Ji(r),i={};return s.values.forEach(o=>{i[o]=s.get(o)}),i})();r=r.map(s=>n[s]>1?s+"_"+Je(8):s),this._columns=r}}),Object.defineProperty(this,"_index",{value:[],configurable:!0,enumerable:!1,writable:!0}),Object.defineProperty(this,"index",{configurable:!0,enumerable:!0,get(){return this._index},set(r){P(Se(r),"The new index must be a 1-dimensional array of strings!"),P(this.isEmpty||r.length===this.shape[0],"The new index must be the same length as the old index!"),P(se(r).length===1,"The new index must be a 1-dimensional array of strings!"),r=r.map(s=>(typeof s!="string"&&(s=JSON.stringify(s)||s.toString()),s.trim().length===0?"untitled_"+Je(8):s.trim()));let n=(()=>{let s=Ji(r),i={};return s.values.forEach(o=>{i[o]=s.get(o)}),i})();r=r.map(s=>n[s]>1?s+"_"+Je(8):s),this._index=r}}),P(Ut(t)||vd(t)||Se(t),"The `data` passed into the constructor of a DataFrame must be either (1) an object where the key-value pairs are (respectively) column names and 1-dimensional arrays of values, or (2) a 2-dimensional array of values."),t)if(t instanceof T)this.values=Pt(t.values),this.columns=Pt(t.columns),this.index=Pt(t.index);else if(Se(t)){let r=se(t);P(r.length===2,"The `data` array passed into the constructor of a DataFrame must be 2-dimensional!"),P(Sd(t.map(n=>n.length)).length===1,"The 2-dimensional array passed into the constructor of a DataFrame must not contain sub-arrays (i.e., rows) of different lengths!"),this.values=t}else{this._columns=Object.keys(t).concat(Object.getOwnPropertySymbols(t)).map(o=>o.toString());let r=[],n=null,s=null;this._columns.forEach(o=>{Ut(s)&&(n=o,s=t[o].length),P(t[o].length===s,`The object passed into the DataFrame constructor contains arrays of different lengths! The key "${n}" points to an array containing ${s} items, and the key "${o}" points to an array containing ${t[o].length} items.`),s=t[o].length;let u=t[o];r.push(u)}),this._values=Yi(r);let i=se(this.values);this._index=zt(0,i[0]).map(o=>"row"+Ct(o,(i[0]-1).toString().length))}}get shape(){return se(this.values)}get length(){return this.shape[0]}get width(){return this.shape[1]}get rows(){return this.index}set rows(t){this.index=t}get isEmpty(){return Nd(this.values).length===0}clear(){let t=new T(wd(this.shape));return t.columns=this.columns.slice(),t.index=this.index.slice(),t}get(t,r){if(arguments.length===0)return this;if(arguments.length===1)try{return this.get(null,t)}catch{return this.get(t,null)}return cd(this,t,r)}getSubsetByNames(t,r){return fd(T,V,this,t,r)}getSubsetByIndices(t,r){return ld(this,t,r)}getDummies(t){return $i(T,this,t)}oneHotEncode(t){return $i(T,this,t)}transpose(){let t=new T(Yi(this.values));return t.columns=this.index.slice(),t.index=this.columns.slice(),t}get T(){return this.transpose()}resetIndex(t){return md(this,t)}copy(){return sd(T,this)}assign(t,r){return nd(T,V,this,t,r)}apply(t,r){return rd(T,V,this,t,r)}dropMissing(t,r,n){return od(T,V,this,t,r,n)}dropNaN(t,r,n){return ud(T,this,t,r,n)}drop(t,r){return id(T,V,this,t,r)}dropColumns(t){return this.drop(null,t)}dropRows(t){return this.drop(t,null)}toDetailedObject(t){return gd(this,t)}toObject(){return bd(this)}toJSONString(t){return qd(this,t)}saveAsJSON(t,r){return yd(this,t,r)}print(){return hd(T,V,this)}sort(t,r){return pd(this,t,r)}sortByIndex(){return this.sort()}filter(t,r){return ad(T,V,this,t,r)}shuffle(t){return dd(this,t)}append(t,r){return td(this,t,r)}concat(t,r){return this.append(t,r)}join(t,r){return this.append(t,r)}toString(){return JSON.stringify(this)}},V=Ri()(T);Vi.exports={DataFrame:T,Series:V}});var Oe=c((pN,Gi)=>{var Od=j();function Td(e,t){return Od(e,{shouldDropNaNs:t}).max}Gi.exports=Td});var N=c((gN,eo)=>{var{DataFrame:Ki,Series:Wi}=ie(),Hi=m(),$e=p(),Xi=b(),Qi=M(),_d=D(),Zi=q(),Dd=Oe(),Id=F(),Ye=v();function Ad(e){return Hi(_d(e),"You must pass a function into the `vectorize` function!"),function t(){let r,n,s=[],i=[],o=Object.keys(arguments).filter(u=>{let a=arguments[u];return $e(a)?!0:Zi(a)?(r=!0,s.push(a),!0):Xi(a)?(n=!0,i.push(a),!0):!1}).map(u=>arguments[u]);if(o.slice(0,-1).forEach((u,a)=>{Hi(Qi($e(u)?Ye(u):u.shape,$e(o[a+1])?Ye(o[a+1]):o[a+1].shape),`When passing multiple arrays into the \`${e.name}\` function, all of the arrays must have the same shape!`)}),o.length>0){let u=Dd(o.map(l=>l.length?l.length:l.values.length)),a=Id(0,u).map(l=>{let f=Object.keys(arguments).map(h=>$e(arguments[h])?arguments[h][l]:Zi(arguments[h])||Xi(arguments[h])?arguments[h].values[l]:arguments[h]);return t(...f)});if(n)try{if(i.length===1&&Qi(Ye(i[0]),Ye(a))){let l=new Ki(a);return l.index=i[0].index.slice(),l.columns=i[0].columns.slice(),l}else return new Ki(a)}catch{return a}if(r)try{if(s.length===1&&s[0].length===a.length){let l=new Wi(a);return l.name=s[0].name,l.index=s[0].index.slice(),l}else return new Wi(a)}catch{return a}return a}else return e(...arguments)}}eo.exports=Ad});var Le=c((yN,to)=>{var xd=g(),Ed=N();function jd(e){try{return xd(e)?typeof e=="bigint"?e<0?-e:e:Math.abs(e):NaN}catch{return NaN}}to.exports=Ed(jd)});var Ve=c((qN,ro)=>{var Fd=g(),Md=N();function Bd(){try{let e=0,t=!1,r=Object.values(arguments);for(let n of r){if(!Fd(n))return NaN;typeof n=="bigint"&&(t=!0,n=Number(n)),e+=n}if(t)try{return BigInt(e)}catch{}return e}catch{return NaN}}ro.exports=Md(Bd)});var Te=c((bN,no)=>{var Pd=N();function Ud(e,t){try{return t(e)}catch{return NaN}}no.exports=Pd(Ud)});var io=c((NN,so)=>{var Cd=g(),zd=N();function kd(e){try{return Cd(e)?(typeof e=="bigint"&&(e=Number(e)),Math.acos(e)):NaN}catch{return NaN}}so.exports=zd(kd)});var uo=c((vN,oo)=>{var Rd=g(),Jd=N();function $d(e){try{return Rd(e)?(typeof e=="bigint"&&(e=Number(e)),Math.asin(e)):NaN}catch{return NaN}}oo.exports=Jd($d)});var co=c((wN,ao)=>{var Yd=g(),Ld=N();function Vd(e){try{return Yd(e)?(typeof e=="bigint"&&(e=Number(e)),Math.atan(e)):NaN}catch{return NaN}}ao.exports=Ld(Vd)});var fo=c((SN,lo)=>{var Gd=m(),Kd=ce(),Wd=p(),Hd=b(),Xd=q(),Qd=Oe();function kt(e,t){if(Hd(e)){let r=kt(e.values);return[e.index[r[0]],e.columns[r[1]]]}if(Xd(e)){let r=kt(e.values);return[e.index[r]]}Gd(Wd(e),"The `argmax` function only works on arrays, Series, and DataFrames!");try{let r=Kd(e,Qd(e,t));return r?r.length===0?void 0:r.length===1?r[0]:r:void 0}catch(r){console.log(r);return}}lo.exports=kt});var Rt=c((ON,ho)=>{var Zd=j();function ep(e,t){return Zd(e,{shouldDropNaNs:t}).min}ho.exports=ep});var po=c((TN,mo)=>{var tp=m(),rp=ce(),np=p(),sp=b(),ip=q(),op=Rt();function Jt(e,t){if(sp(e)){let r=Jt(e.values);return[e.index[r[0]],e.columns[r[1]]]}if(ip(e)){let r=Jt(e.values);return[e.index[r]]}tp(np(e),"The `argmin` function only works on arrays, Series, and DataFrames!");try{let r=rp(e,op(e,t));return r?r.length===0?void 0:r.length===1?r[0]:r:void 0}catch{return}}mo.exports=Jt});var Vt=c((_N,qo)=>{var go=p(),$t=Ce(),up=b(),Yt=fe(),ap=M(),yo=g(),cp=R(),lp=q(),Lt=y();function U(e,t){if(up(e)||lp(e))return e.apply(r=>U(r,t));if(go(e))return e.map(r=>U(r,t));if(t==="null")return null;if(t==="number"){if(Lt(e))return NaN;let r=U(e,"boolean");if($t(r))return r?1:0;try{JSON.parse(e)}catch{let i=U(e,"date");if(Yt(i))return i.getTime()}let n=parseFloat(e);return isNaN(n)?NaN:n}if(t==="int"){let r=U(e,"number");return r>=0?Math.floor(r):Math.ceil(r)}if(t==="float")return U(e,"number");if(t==="bigint")return typeof e=="bigint"?e:BigInt(U(e,"int"));if(t==="boolean"){if($t(e))return e;if(yo(e))return e===0?!1:e===1?!0:null;try{let r=(typeof e=="object"?e.toString()==="null"?"false":JSON.stringify(e):e.toString()).trim().toLowerCase();return r==="true"||r==="yes"||r==="y"?!0:r==="false"||r==="no"||r==="n"?!1:null}catch{return null}}if(t==="date"){if(Yt(e))return e;if(Lt(e))return null;let r=parseFloat(e);if(!isNaN(r)){let s=new Date(e);return Yt(s)?s:null}let n=Date.parse(e);return isNaN(n)?null:new Date(n)}if(t==="object"){if(cp(e))return e;let r=U(e,"boolean");if($t(r))return null;try{let s=U(e,"number");if(yo(s))return JSON.parse(e),null}catch{}let n=U(e,"date");if(n)return n;try{let s=JSON.parse(e);return go(s)?s.map(i=>U(i,t)):s}catch{return null}}if(t==="string")return Lt(e)?ap(e,void 0)?"undefined":"null":e instanceof Date?e.toJSON():(()=>typeof e=="object"?e===null?"null":JSON.stringify(e):e.toString())()}qo.exports=U});var No=c((DN,bo)=>{var fp=g(),hp=N();function mp(e){try{return fp(e)?typeof e=="bigint"?e:Math.ceil(e):NaN}catch{return NaN}}bo.exports=hp(mp)});var So=c((IN,wo)=>{var dp=Le(),vo=g(),pp=y(),gp=N();function yp(e,t){try{if(!vo(e))return NaN;if(typeof e=="bigint")return e;if(pp(t))t=1e-10;else if(!vo(t))return NaN;return dp(e)<t?0:e}catch{return NaN}}wo.exports=gp(yp)});var X=c((AN,Oo)=>{var qp=g(),bp=N();function Np(e){try{let t=JSON.parse(e);return qp(t)?parseInt(t):NaN}catch{return NaN}}Oo.exports=bp(Np)});var Do=c((xN,_o)=>{var vp=X(),Gt=g(),wp=N();function To(e,t,r){try{return Gt(e)?Gt(t)?Gt(r)?typeof e=="bigint"?BigInt(To(vp(e),t,r)):e<t?t:e>r?r:e:NaN:NaN:NaN}catch{return NaN}}_o.exports=wp(To)});var Ke=c((EN,Ao)=>{var Io=m(),Sp=I(),Op=X(),Tp=p(),_p=b(),Dp=g(),Ip=q();function Ge(e,t){function*r(n,s){if(s>n.length)yield n;else if(s<=0)yield[];else if(n.length<2)yield n;else for(let i=0;i<n.length;i++){let o=n[i],u=n.slice(i+1);if(!(u.length<s-1)&&s-1>=0)for(let a of Ge(u,s-1))yield[o].concat(a)}}return _p(e)||Ip(e)?Ge(e.values,t):(Io(Tp(e),"The `combinations` function only works on arrays, Series, and DataFrames!"),Io(Dp(t)&&Op(t)===t&&t>=0,"`r` must be a non-negative integer!"),r(Sp(e),t))}function Ap(e,t){let r=[];for(let n of Ge(e,t))r.push(n.slice());return r}Ao.exports={combinations:Ap,combinationsIterator:Ge}});var Wt=c((jN,xo)=>{var xp=m(),Ep=p(),jp=b(),Fp=M(),Mp=q(),Kt=C();function Bp(){let e=Object.values(arguments).map(r=>jp(r)||Mp(r)?Kt(r.values):(xp(Ep(r),"The `intersect` function only works on arrays, Series, and DataFrames!"),Kt(r)));return Kt(e).filter(r=>e.every(n=>n.findIndex(s=>Fp(s,r))>-1))}xo.exports=Bp});var Ht=c((FN,Co)=>{var{DataFrame:Eo,Series:jo}=ie(),We=m(),Pp=Wt(),Fo=p(),Mo=b(),Bo=q(),Po=y(),Uo=v(),oe=class{constructor(t){We(Po(t)||t===oe.DROP_NAN_MODE||t===oe.DROP_MISSING_MODE,"The `mode` value passed into the `IndexMatcher` constructor must be undefined or one of [IndexMatcher.DROP_NAN_MODE, IndexMatcher.DROP_MISSING_MODE]! (By default, the mode is `Indexer.DROP_MISSING_MODE`.)"),this.mode=Po(t)?oe.DROP_NAN_MODE:t,this.index=null}fit(){let t=[];return Object.values(arguments).forEach(r=>{if(Fo(r)){let n=Uo(r);if(n.length===1)r=new jo(r);else if(n.length===2)r=new Eo(r);else throw new Error("The `IndexMatcher.fit` method only works on arrays, Series, and DataFrames!")}We(Mo(r)||Bo(r),"The `IndexMatcher.fit` method only works on arrays, Series, and DataFrames!"),this.mode===oe.DROP_MISSING_MODE?t.push(r.dropMissing().index):t.push(r.dropNaN().index)}),this.index=Pp(...t),this}transform(){We(!!this.index,"The IndexMatcher hasn't been fitted yet! Please call the `fit` method before calling the `transform` method.");let t=Object.values(arguments).map(r=>{if(Fo(r)){let n=Uo(r);if(n.length===1)return new jo(r).get(this.index).values;if(n.length===2)return new Eo(r).get(this.index,null).values;throw new Error("The `IndexMatcher.fit` method only works on arrays, Series, and DataFrames!")}return We(Mo(r)||Bo(r),"The `IndexMatcher.fit` method only works on arrays, Series, and DataFrames!"),r.get(this.index,null)});return t.length===1?t[0]:t}fitAndTransform(){return this.fit(...arguments).transform(...arguments)}},_e=oe;ht(_e,"DROP_NAN_MODE","DROP_NAN_MODE"),ht(_e,"DROP_MISSING_MODE","DROP_MISSING_MODE");Co.exports=_e});var Xt=c((BN,Yo)=>{var zo=m(),Up=Ht(),ko=p(),He=g(),Ro=q(),Jo=v(),$o=j();function Xe(e,t,r,n){if(Ro(e))return Xe(e.values,t);if(Ro(t))return Xe(e,t.values);if(zo(ko(e)&&ko(t)&&Jo(e).length===1&&Jo(t).length===1,"The `covariance` function only works on 1-dimensional arrays and Series!"),zo(e.length===t.length,"The two arrays or Series passed into the `covariance` function must have the same length!"),r)return Xe(...new Up().fitAndTransform(e,t),!1,n);try{let s=$o(e,{stdev:n}),i=$o(t,{stdev:n}),o=Number(s.mean),u=Number(i.mean);if(!He(o)||!He(u))return NaN;let a=Math.max(e.length,t.length),l=0;for(let f=0;f<a;f++){let h=e[f],d=t[f];if(!He(h))return NaN;if(!He(d))return NaN;typeof h=="bigint"&&(h=Number(h)),typeof d=="bigint"&&(d=Number(d)),l+=(h-o)*(d-u)}return n?[l/e.length,s,i]:l/e.length}catch{return NaN}}Yo.exports=Xe});var Ho=c((PN,Wo)=>{var Lo=m(),Cp=Xt(),Vo=p(),Go=q(),Ko=v();function Qt(e,t,r){if(Go(e))return Qt(e.values,t);if(Go(t))return Qt(e,t.values);Lo(Vo(e)&&Vo(t)&&Ko(e).length===1&&Ko(t).length===1,"The `correl` function only works on 1-dimensional arrays and Series!"),Lo(e.length===t.length,"The two arrays or Series passed into the `correl` function must have the same length!");try{let[s,i,o]=Cp(e,t,r,!0),u=i.stdev*o.stdev;return s/u}catch{return NaN}}Wo.exports=Qt});var Qo=c((UN,Xo)=>{var zp=g(),kp=N();function Rp(e){try{return zp(e)?(typeof e=="bigint"&&(e=Number(e)),Math.cos(e)):NaN}catch{return NaN}}Xo.exports=kp(Rp)});var eu=c((CN,Zo)=>{Zo.exports=Object.freeze({boolean:"boolean",date:"date",null:"null",number:"number",object:"object",string:"string"})});var ou=c((zN,iu)=>{var Jp=m(),tu=p(),ru=b(),$p=M(),nu=q(),su=C();function Zt(e,t){if(ru(e)||nu(e))return Zt(e.values,t);if(ru(t)||nu(t))return Zt(e,t.values);Jp(tu(e)&&tu(t),"The `diff` function only works on arrays, Series, and DataFrames!");let r=su(e),n=su(t),s=[];return r.forEach(i=>{n.findIndex(o=>$p(o,i))<0&&s.push(i)}),s}iu.exports=Zt});var Qe=c((kN,cu)=>{var uu=g(),Yp=N();function au(e,t){try{if(!uu(e))return NaN;if(!uu(t))return NaN;if(typeof e=="bigint"||typeof t=="bigint"){let r=au(Number(e),Number(t));try{return BigInt(r)}catch{return r}}return Math.pow(e,t)}catch{return NaN}}cu.exports=Yp(au)});var er=c((RN,fu)=>{var Lp=g(),Vp=N();function lu(e){try{if(!Lp(e))return NaN;if(typeof e=="bigint"){let t=lu(Number(e));try{return BigInt(t)}catch{return t}}return Math.sqrt(e)}catch{return NaN}}fu.exports=Vp(lu)});var tr=c((JN,hu)=>{var Gp=g(),Kp=N();function Wp(){try{let e=Object.values(arguments);if(e.length===0)return NaN;let t=!1,r=1;for(let n of e){if(!Gp(n))return NaN;typeof n=="bigint"&&(t=!0,n=Number(n)),r*=n}if(t)try{return BigInt(r)}catch{}return r}catch{return NaN}}hu.exports=Kp(Wp)});var ue=c(($N,mu)=>{var Hp=tr();function Xp(){return Hp(...arguments)}mu.exports=Xp});var rr=c((YN,du)=>{var Qp=Ve(),Zp=ue();function eg(e,t){return Qp(e,Zp(t,-1))}du.exports=eg});var Ze=c((LN,pu)=>{var tg=j();function rg(e,t){return tg(e,{shouldDropNaNs:t}).sum}pu.exports=rg});var wu=c((VN,vu)=>{var ng=Le(),sg=m(),gu=p(),yu=b(),ig=M(),qu=g(),bu=q(),og=Qe(),Nu=v(),ug=er(),ag=rr(),cg=Ze();function nr(e,t){if(qu(e)&&qu(t))return ng(e-t);if(yu(e)||bu(e))return nr(e.values,t);if(yu(t)||bu(t))return nr(e,t.values);gu(e)&&gu(t)&&sg(ig(Nu(e),Nu(t)),"If passing two arrays, Series, or DataFrames into the `distance` function, then those objects must have the same shape!");try{return ug(cg(og(ag(e,t),2)))}catch{return NaN}}vu.exports=nr});var Ou=c((GN,Su)=>{var lg=Qe(),fg=ue();function hg(e,t){return fg(e,lg(t,-1))}Su.exports=hg});var ir=c((KN,xu)=>{var{DataFrame:Tu,Series:_u}=ie(),et=m(),Du=I(),Iu=p(),sr=b(),mg=g(),tt=q(),dg=ue(),rt=v(),pg=Ze(),Au=H();function G(e,t){if(sr(e)){let s=G(e.values,t);if(rt(s).length===1){let i=new _u(s);return i.name=tt(t)?t.name:i.name,i.index=e.index.slice(),i}else{let i=new Tu(s);return i.index=e.index.slice(),sr(t)&&(i.columns=t.columns.slice()),i}}if(sr(t)){let s=G(e,t.values);if(rt(s).length===1){let i=new _u(s);return i.name=tt(e)?e.name:i.name,i.index=t.columns.slice(),i}else{let i=new Tu(s);return i.columns=t.columns.slice(),i}}if(tt(e))return G(e.values,t);if(tt(t))return G(e,t.values);et(Iu(e)&&Iu(t),"The `dot` function only works on arrays, Series, and DataFrames!"),Du(e).concat(Du(t)).forEach(s=>{et(mg(s),"One of the arrays you passed into the `dot` function contains non-numerical values!")});let r=rt(e),n=rt(t);if(et(r.length<=2&&n.length<=2,"I'm not smart enough to know how to get the dot-product of arrays that have more than 2 dimensions. Sorry for the inconvenience! Please only pass 1- or 2-dimensional arrays into the `dot` function!"),et(r[r.length-1]===n[0],`There's a dimension misalignment in the two arrays you passed into the \`dot\` function. (${r[r.length-1]} !== ${n[0]})`),r.length===1&&n.length===1)return pg(dg(e,t));if(r.length===1&&n.length===2)return Au(t).map(s=>G(e,s));if(r.length===2&&n.length===1)return e.map(s=>G(s,t));if(r.length===2&&n.length===2){let s=Au(t),i=[];for(let o=0;o<e.length;o++){let u=[];for(let a=0;a<s.length;a++)u.push(G(e[o],s[a]));i.push(u)}return i}}xu.exports=G});var or=c((WN,ju)=>{var gg=m(),yg=p(),qg=b(),bg=q(),Ng=y();function Eu(e){if(qg(e)||bg(e))return e.dropMissing(...Object.values(arguments).slice(1));gg(yg(e),"The `dropMissing` function only works on arrays, Series, and DataFrames!");let t=[];return e.forEach(r=>{try{return t.push(Eu(r))}catch{Ng(r)||t.push(r)}}),t}ju.exports=Eu});var ku=c((HN,zu)=>{var Fu=m(),Mu=p(),Bu=b(),vg=M(),Pu=q(),Uu=y(),Cu=v();function nt(e,t){if(Bu(e)||Pu(e))return nt(e.values,t);if(Bu(t)||Pu(t))return nt(e,t.values);Fu(Mu(e)&&Mu(t),"The `dropMissingPairwise` function only works on arrays, Series, and DataFrames!"),Fu(vg(Cu(e),Cu(t)),"The two arrays, Series, and/or DataFrames passed into the `dropMissingPairwise` function must have the same shape!");let r=[],n=[];for(let s=0;s<e.length;s++)try{let[i,o]=nt(e[s],t[s]);r.push(i),n.push(o)}catch{!Uu(e[s])&&!Uu(t[s])&&(r.push(e[s]),n.push(t[s]))}return[r,n]}zu.exports=nt});var Ku=c((XN,Gu)=>{var Ru=m(),Ju=p(),$u=b(),wg=M(),Yu=g(),Lu=q(),Vu=v();function st(e,t){if($u(e)||Lu(e))return st(e.values,t);if($u(t)||Lu(t))return st(e,t.values);Ru(Ju(e)&&Ju(t),"The `dropNaNPairwise` only works on arrays, Series, and DataFrames!"),Ru(wg(Vu(e),Vu(t)),"The two arrays, Series, and/or DataFrames passed into the `dropNaNPairwise` must have the same shape!");let r=[],n=[];for(let s=0;s<e.length;s++)try{let[i,o]=st(e[s],t[s]);r.push(i),n.push(o)}catch{Yu(e[s])&&Yu(t[s])&&(r.push(e[s]),n.push(t[s]))}return[r,n]}Gu.exports=st});var Hu=c((QN,Wu)=>{var Sg=or();function Og(e){return Sg(e)}Wu.exports=Og});var ar=c((ZN,Zu)=>{var Xu=m(),Qu=p(),Tg=b(),_g=D(),Dg=q();function ur(e,t){if(Tg(e)||Dg(e))return ur(e.values,t);Xu(Qu(e),"The first argument passed into the `every` function must be an array, Series, or DataFrame!"),Xu(_g(t),"The second argument passed into the `every` function must be a function!");for(let r of e)if(Qu(r)){if(!ur(r,t))return!1}else if(!t(r))return!1;return!0}Zu.exports=ur});var ta=c((e0,ea)=>{var Ig=g(),Ag=N();function xg(e){try{if(!Ig(e))return NaN;if(typeof e=="bigint"){if(e===0n)return 1n;e=Number(e)}return Math.exp(e)}catch{return NaN}}ea.exports=Ag(xg)});var na=c((t0,ra)=>{var Eg=X(),jg=N();function cr(e){try{return typeof e=="bigint"?BigInt(cr(Eg(e))):e!==parseInt(e)?NaN:e<=1?1:e*cr(e-1)}catch{return NaN}}ra.exports=jg(cr)});var ua=c((r0,oa)=>{var Fg=m(),Mg=I(),sa=p(),Bg=b(),Pg=D(),ia=R(),Ug=q();function lr(e,t){if(Bg(e))return lr(Mg(e.values),t);if(Ug(e))return lr(e.values,t);if(Fg(ia(e)||sa(e),"You must pass (1) an object, array, Series, or DataFrame and (2) a function or value into the `find` function!"),!Pg(t)){let s=t;t=i=>i===s}function r(s,i,o){if(o=o||[],o.indexOf(s)>-1)return null;if(ia(s)){o.push(s);let u=Object.keys(s).concat(Object.getOwnPropertySymbols(s));for(let a=0;a<u.length;a++){let l=u[a],f=s[l];if(i(f))return f;let h=r(f,i,o);if(h)return h}}else if(sa(s)){o.push(s);for(let u=0;u<s.length;u++){let a=s[u];if(i(a))return a;let l=r(a,i,o);if(l)return l}}else if(i(s))return s;return null}function n(s){try{return t(s)}catch{return!1}}return r(e,n)}oa.exports=lr});var fa=c((n0,la)=>{var Cg=m(),zg=I(),aa=p(),kg=b(),Rg=D(),ca=R(),Jg=q();function fr(e,t){if(kg(e))return fr(zg(e.values),t);if(Jg(e))return fr(e.values,t);if(Cg(ca(e)||aa(e),"You must pass (1) an object, array, Series, or DataFrame and (2) a function or value into the `findAll` function!"),!Rg(t)){let i=t;t=o=>o===i}function r(i,o,u){if(u=u||[],u.indexOf(i)>-1)return null;if(ca(i)){u.push(i);let a=Object.keys(i).concat(Object.getOwnPropertySymbols(i)),l=[];for(let f=0;f<a.length;f++){let h=a[f],d=i[h],w=!1;o(d)&&(l.push(d),w=!0);let O=r(d,o,u);O&&O.length>0&&O.slice(w?1:0).forEach(_=>l.push(_))}return l}else if(aa(i)){u.push(i);let a=[];for(let l=0;l<i.length;l++){let f=i[l],h=!1;o(f)&&(a.push(f),h=!0);let d=r(f,o,u);d&&d.length>0&&d.slice(h?1:0).forEach(w=>a.push(w))}return a}else if(o(i))return[i];return null}function n(i){try{return t(i)}catch{return!1}}let s=r(e,n);return s&&s.length>0?s:null}la.exports=fr});var ma=c((s0,ha)=>{var $g=g(),Yg=N();function Lg(e){try{if(e==="Infinity")return 1/0;if(e==="-Infinity")return-1/0;let t=JSON.parse(e);return $g(t)?t:NaN}catch{return NaN}}ha.exports=Yg(Lg)});var pa=c((i0,da)=>{var Vg=g(),Gg=N();function Kg(e){try{return Vg(e)?typeof e=="bigint"?e:Math.floor(e):NaN}catch{return NaN}}da.exports=Gg(Kg)});var it=c((o0,ga)=>{var Wg=g(),Hg=qe(),Xg=Pe();function Qg(e){Wg(e)&&(e=[e]);let t=[],r=Hg(e);for(let n=0;n<r;n++)t.push(0);return Xg(t,e)}ga.exports=Qg});var qa=c((u0,ya)=>{var ot=m(),Zg=X(),ey=g(),ty=y(),ry=it();function ny(e){typeof e=="bigint"&&(e=Zg(e)),ot(!ty(e),"You must pass an integer greater than 0 (representing the size) into the `identity` function!"),ot(ey(e),"You must pass an integer greater than 0 (representing the size) into the `identity` function!"),ot(parseInt(e)===e,"You must pass an integer greater than 0 (representing the size) into the `identity` function!"),ot(e>0,"You must pass an integer greater than 0 (representing the size) into the `identity` function!");let t=ry([e,e]);for(let r=0;r<e;r++)t[r][r]=1;return t}ya.exports=ny});var Na=c((a0,ba)=>{ba.exports=["true","false","yes","no"]});var wa=c((c0,va)=>{va.exports=["null","none","nan","na","n/a","","undefined"]});var _a=c((l0,Ta)=>{var sy=Te(),iy=m(),oy=Na(),uy=Vt(),ay=De(),cy=ar(),ly=I(),hr=p(),fy=b(),Sa=fe(),Oa=g(),hy=q(),my=x(),dy=wa();function ut(e){return e.type==="number"&&(typeof e.value<"u"?e.isInteger=parseInt(e.value)===e.value:e.isInteger=cy(e.values,t=>Oa(t)?parseInt(t)===t:!0)),e}function at(e){if(fy(e)){let i=e.copy(),o=at(e.values);return i.values=o.values,ut({type:o.type,values:i})}if(hy(e)){let i=e.copy(),o=at(e.values);return i.values=o.values,ut({type:o.type,values:i})}if(!hr(e)){let i=at([e]);return i.value=i.values[0],delete i.values,ut(i)}iy(hr(e),"The `inferType` function only works on arrays, Series, and DataFrames!");let t=ly(e).map(i=>{if(i===void 0)return"null";try{if(typeof i=="object"){let a=new Date(i.getTime());if(Sa(a))return"date"}}catch{}my(i)||(typeof i=="bigint"?i=i.toString()+"n":i=JSON.stringify(i));let u=i.toLowerCase().trim();if(dy.indexOf(u)>-1)return"null";if(oy.indexOf(u)>-1)return"boolean";try{if(i.match(/^-?\d+n$/g))return"bigint";let a=JSON.parse(i);return Oa(a)?"number":typeof a=="object"?hr(a)?"string":"object":"string"}catch{let l=new Date(i);return Sa(l)?"date":"string"}}),r=ay(t),s=r.values.toSorted((i,o)=>r.get(o)-r.get(i))[0];return ut({type:s,values:sy(e,i=>uy(i,s))})}Ta.exports=at});var xa=c((f0,Aa)=>{var Da=Ve(),K=m(),py=ir(),gy=I(),yy=p(),qy=b(),mr=g(),Ia=ue(),by=v();function ct(e){if(qy(e)){let r=e.copy();return r.values=ct(r.values),r}K(yy(e),"The `inverse` function only works on square 2-dimensional arrays or DataFrames!"),gy(e).forEach(r=>K(mr(r),"The array passed into the `inverse` function must contain only numbers!"));let t=by(e);if(K(t.length===2,"The array passed into the `inverse` function must be exactly two-dimensional and square!"),K(t[0]===t[1],"The array passed into the `inverse` function must be exactly two-dimensional and square!"),K(t[0]>=0,"The array passed into the `inverse` function must be exactly two-dimensional and square!"),t[0]===0)return e;if(t[0]===1){K(e[0][0]!==0,"This matrix cannot be inverted!");let r=e[0][0];return typeof r=="bigint"&&(r=Number(r)),1/r}else if(t[0]===2){let r=e[0][0],n=e[0][1],s=e[1][0],i=e[1][1];typeof r=="bigint"&&(r=Number(r)),typeof n=="bigint"&&(n=Number(n)),typeof s=="bigint"&&(s=Number(s)),typeof i=="bigint"&&(i=Number(i));let o=r*i-n*s;K(o!==0,"This matrix cannot be inverted!");let u=[[i,-n],[-s,r]];return Ia(u,1/o)}else if(t[0]>1){let r=(n,s)=>mr(n)||mr(s)?Ia(n,s):py(n,s);for(let n=1;n<t[0]-1;n++)try{let s=e.slice(0,n).map(_=>_.slice(0,n)),i=e.slice(0,n).map(_=>_.slice(n,t[0])),o=e.slice(n,t[0]).map(_=>_.slice(0,n)),u=e.slice(n,t[0]).map(_=>_.slice(n,t[0])),a=ct(s),l=ct(Da(u,r(-1,r(r(o,a),i)))),f=Da(a,r(r(r(r(a,i),l),o),a)),h=r(-1,r(r(a,i),l)),d=r(-1,r(r(l,o),a)),w=l;return f.map((_,ft)=>_.concat(h[ft])).concat(d.map((_,ft)=>_.concat(w[ft])))}catch{}K(!1,"This matrix cannot be inverted!")}}Aa.exports=ct});var ja=c((h0,Ea)=>{var Ny=new Function(`
|
|
18
18
|
try {
|
|
19
19
|
return this === window
|
|
20
20
|
} catch(e) {}
|
|
@@ -24,4 +24,4 @@
|
|
|
24
24
|
} catch(e){}
|
|
25
25
|
|
|
26
26
|
return false
|
|
27
|
-
`);Ea.exports=Ny});var Ba=c((m0,Ma)=>{var dr=g(),vy=N();function Fa(e,t,r){try{if(!dr(e))return NaN;if(!dr(t))return NaN;if(!dr(r))return NaN;if(typeof e=="bigint"||typeof t=="bigint"){let n=Fa(Number(e),Number(t),r);try{return BigInt(n)}catch{return n}}return r*(t-e)+e}catch{return NaN}}Ma.exports=vy(Fa)});var za=c((d0,Ca)=>{var Pa=g(),wy=y(),Sy=N();function Ua(e,t){try{if(t=wy(t)?Math.E:t,!Pa(e))return NaN;if(!Pa(t))return NaN;if(typeof e=="bigint"||typeof t=="bigint"){let r=Ua(Number(e),Number(t));try{return BigInt(r)}catch{return r}}return Math.log(e)/Math.log(t)}catch{return NaN}}Ca.exports=Sy(Ua)});var Ra=c((p0,ka)=>{var Oy=j();function Ty(e,t){return Oy(e,{
|
|
27
|
+
`);Ea.exports=Ny});var Ba=c((m0,Ma)=>{var dr=g(),vy=N();function Fa(e,t,r){try{if(!dr(e))return NaN;if(!dr(t))return NaN;if(!dr(r))return NaN;if(typeof e=="bigint"||typeof t=="bigint"){let n=Fa(Number(e),Number(t),r);try{return BigInt(n)}catch{return n}}return r*(t-e)+e}catch{return NaN}}Ma.exports=vy(Fa)});var za=c((d0,Ca)=>{var Pa=g(),wy=y(),Sy=N();function Ua(e,t){try{if(t=wy(t)?Math.E:t,!Pa(e))return NaN;if(!Pa(t))return NaN;if(typeof e=="bigint"||typeof t=="bigint"){let r=Ua(Number(e),Number(t));try{return BigInt(r)}catch{return r}}return Math.log(e)/Math.log(t)}catch{return NaN}}Ca.exports=Sy(Ua)});var Ra=c((p0,ka)=>{var Oy=j();function Ty(e,t){return Oy(e,{shouldDropNaNs:t}).mean}ka.exports=Ty});var $a=c((g0,Ja)=>{var _y=j();function Dy(e,t){return _y(e,{shouldDropNaNs:t,median:!0}).median}Ja.exports=Dy});var Ga=c((y0,Va)=>{var Ya=g(),Iy=N();function La(e,t){try{if(!Ya(e))return NaN;if(!Ya(t))return NaN;if(typeof e=="bigint"||typeof t=="bigint"){let r=La(Number(e),Number(t));try{return BigInt(r)}catch{return r}}return e%t}catch{return NaN}}Va.exports=Iy(La)});var Wa=c((q0,Ka)=>{var Ay=j();function xy(e,t){return Ay(e,{shouldDropNaNs:t,mode:!0}).mode}Ka.exports=xy});var Za=c((b0,Qa)=>{var{random:Ha}=re(),Ey=Te(),jy=y(),Fy=J();function Xa(){let e=Ha(),t=Ha();return Math.sqrt(-2*Math.log(e))*Math.cos(2*Math.PI*t)}function My(e){return jy(e)?Xa():Ey(Fy(e),Xa)}Qa.exports=My});var tc=c((N0,ec)=>{var By=Te(),Py=J();function Uy(e){return By(Py(e),()=>1)}ec.exports=Uy});var gr=c((v0,nc)=>{var{combinations:Cy}=Ke(),rc=m(),zy=I(),ky=X(),Ry=p(),Jy=b(),$y=g(),Yy=q(),Ly=y(),Vy=it();function pr(e,t){function*r(n,s){if(s=s||n.length,n.length===1){yield[n];return}for(let i of Cy(n,s)){if(!i.slice)continue;let o=Vy(i.length);yield i;let u=1;for(;u<i.length;)if(o[u]<u){if(u%2===0){let a=i[0];i[0]=i[u],i[u]=a}else{let a=i[o[u]];i[o[u]]=i[u],i[u]=a}yield i,o[u]+=1,u=1}else o[u]=0,u+=1}}return Jy(e)||Yy(e)?pr(e.values,t):(rc(Ry(e),"The `permutations` function only works on arrays, Series, and DataFrames!"),Ly(t)&&(t=e.length),rc($y(t)&&ky(t)===t&&t>=0,"`r` must be a non-negative integer!"),r(zy(e),t))}function Gy(e,t){let r=[];for(let n of pr(e,t))r.push(n.slice());return r}nc.exports={permutations:Gy,permutationsIterator:pr}});var ic=c((w0,sc)=>{var{DataFrame:Ky,Series:Wy}=ie(),Hy=p(),Xy=b(),Qy=he(),Zy=q(),eq=v();function tq(){Object.keys(arguments).forEach(e=>{let t=arguments[e];if(Hy(t))if(Qy(t))console.log(t);else{let r=eq(t);r.length===1?new Wy(t).print():r.length==2?new Ky(t).print():console.log(t)}else Xy(t)||Zy(t)?t.print():console.log(t)})}sc.exports=tq});var ac=c((S0,uc)=>{var rq=p(),nq=g(),oc=y(),sq=j(),iq=N(),oq=iq((e,t,r,n,s)=>{try{let i=!1;for(let l of[e,t,r,n,s]){if(!nq(l))return NaN;typeof l=="bigint"&&(i=!0)}i&&(e=Number(e),t=Number(t),r=Number(r),n=Number(n),s=Number(s));let o=(s-n)*(e-t),u=r-t;if(u===0)return NaN;let a=o/u+n;if(i)try{return BigInt(a)}catch{}return a}catch{return NaN}});function uq(e,t,r,n,s){if(rq(e)&&oc(n)&&oc(s)){n=t,s=r;let i=sq(e);t=i.min,r=i.max}return oq(e,t,r,n,s)}uc.exports=uq});var lc=c((O0,cc)=>{var aq=g(),cq=N();function lq(e){try{return aq(e)?typeof e=="bigint"?e:Math.round(e):NaN}catch{return NaN}}cc.exports=cq(lq)});var mc=c((T0,hc)=>{var fq=g(),hq=N();function fc(e){try{return fq(e)?typeof e=="bigint"?BigInt(fc(Number(e))):e<0?-1:e>0?1:0:NaN}catch{return NaN}}hc.exports=hq(fc)});var pc=c((_0,dc)=>{var mq=g(),dq=N();function pq(e){try{return mq(e)?(typeof e=="bigint"&&(e=Number(e)),Math.sin(e)):NaN}catch{return NaN}}dc.exports=dq(pq)});var bc=c((D0,qc)=>{var gc=m(),yc=p(),gq=b(),yq=D(),qq=q();function yr(e,t){if(gq(e)||qq(e))return yr(e.values,t);gc(yc(e),"The first argument passed into the `some` function must be an array, Series, or DataFrame!"),gc(yq(t),"The second argument passed into the `some` function must be a function!");for(let r of e)if(yc(r)){if(yr(r,t))return!0}else if(t(r))return!0;return!1}qc.exports=yr});var qr=c((I0,Nc)=>{var bq=j();function Nq(e,t){return bq(e,{shouldDropNaNs:t,stdev:!0}).stdev}Nc.exports=Nq});var wc=c((A0,vc)=>{var vq=qr();function wq(e){return vq(e)}vc.exports=wq});var Oc=c((x0,Sc)=>{var Sq=g(),Oq=N();function Tq(e){try{return Sq(e)?(typeof e=="bigint"&&(e=Number(e)),Math.tan(e)):NaN}catch{return NaN}}Sc.exports=Oq(Tq)});var lt=c((E0,Dc)=>{var Tc=m(),_c=D();function _q(e,t){Tc(_c(e),"`fn` must be a function!");let r=new Date;return t?e(...t):e(),new Date-r}async function Dq(e,t){Tc(_c(e),"`fn` must be a function!");let r=new Date;return t?await e(...t):await e(),new Date-r}Dc.exports={timeSync:_q,timeAsync:Dq}});var Ac=c((j0,Ic)=>{var Iq=p(),Aq=b(),xq=q(),Eq=C();function jq(){return Eq([...arguments].map(e=>Iq(e)?e:Aq(e)||xq(e)?e.values:[e]))}Ic.exports=jq});var Ec=c((F0,xc)=>{var Fq=j();function Mq(e,t){return Fq(e,{shouldDropNaNs:t,variance:!0}).variance}xc.exports=Mq});var Fc=c((M0,jc)=>{var Bq=m(),Pq=p(),Uq=b(),Cq=q(),zq=y(),kq=Oe(),Rq=F();function Jq(){let e=[],t=Object.values(arguments).map(r=>((Uq(r)||Cq(r))&&(r=r.values),Bq(Pq(r),"The `zip` function only works on arrays, Series, and DataFrames!"),r));return Rq(0,kq(t.map(r=>r.length))).forEach(r=>{let n=[];t.forEach(s=>{let i=s[r];n.push(zq(i)?void 0:i)}),e.push(n)}),e}jc.exports=Jq});var Mc=c((B0,br)=>{var{copy:$q,decycle:Yq}=z(),{DataFrame:Lq,Series:Vq}=ie(),ae={abs:Le(),add:Ve(),apply:Te(),arccos:io(),arcsin:uo(),arctan:co(),argmax:fo(),argmin:po(),assert:m(),cast:Vt(),ceil:No(),chop:So(),clamp:Do(),combinations:Ke().combinations,combinationsIterator:Ke().combinationsIterator,copy:$q,correl:Ho(),cos:Qo(),count:De(),covariance:Xt(),DataFrame:Lq,dataTypes:eu(),decycle:Yq,diff:ou(),distance:wu(),divide:Ou(),dot:ir(),dropMissing:or(),dropMissingPairwise:ku(),dropNaN:Tt(),dropNaNPairwise:Ku(),dropUndefined:Hu(),every:ar(),exp:ta(),factorial:na(),find:ua(),findAll:fa(),flatten:I(),float:ma(),floor:pa(),identity:qa(),IndexMatcher:Ht(),indexOf:ce(),inferType:_a(),int:X(),intersect:Wt(),inverse:xa(),isArray:p(),isBoolean:Ce(),isBrowser:ja(),isDataFrame:b(),isDate:fe(),isEqual:M(),isFunction:D(),isJagged:he(),isNested:Ie(),isNumber:g(),isObject:R(),isSeries:q(),isString:x(),isUndefined:y(),lerp:Ba(),log:za(),MathError:Q(),max:Oe(),mean:Ra(),median:$a(),min:Rt(),mod:Ga(),mode:Wa(),multiply:tr(),ndarray:J(),normal:Za(),ones:tc(),permutations:gr().permutations,permutationsIterator:gr().permutationsIterator,pow:Qe(),print:ic(),product:qe(),random:re().random,range:F(),remap:ac(),reshape:Pe(),reverse:me(),round:lc(),scale:ue(),seed:re().seed,Series:Vq,set:C(),shape:v(),shuffle:Ue(),sign:mc(),sin:pc(),some:bc(),sort:te(),sqrt:er(),stats:j(),std:qr(),stdev:wc(),subtract:rr(),sum:Ze(),tan:Oc(),time:lt().timeSync,timeSync:lt().timeSync,timeAsync:lt().timeAsync,transpose:H(),union:Ac(),variance:Ec(),vectorize:N(),zeros:it(),zip:Fc(),dump:function(){let e=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:void 0;if(!e)throw new ae.MathError("Cannot dump functions into global scope because none of `globalThis`, `global`, `window`, or `self` exist in the current context!");Object.keys(ae).forEach(t=>{try{Object.defineProperty(e,t,{configurable:!1,enumerable:!0,writable:!1,value:ae[t]})}catch{e[t]=ae[t]}})}};typeof br<"u"&&(br.exports=ae);typeof window<"u"&&(window.JSMathTools=ae)});var Hq=c((P0,Sr)=>{var{assert:Nr,int:vr,isNumber:wr,isString:Gq,random:Kq,seed:Wq}=Mc();function Bc(e,t,r){arguments.length===2&&(wr(arguments[1])?r=null:(r=t,t=null)),Nr(wr(e)&&vr(e)===e,"`keyLength` must be an integer!"),t&&(Nr(wr(t)&&vr(t)===t,"`keySeed` must be an integer!"),Wq(t)),r&&Nr(Gq(r),"`charset` must be a string!");let n="";r=r||"abcdefg1234567890";for(let s=0;s<e;s++)n+=r[vr(Kq()*r.length)];return n}typeof Sr<"u"&&(Sr.exports=Bc);typeof window<"u"&&(window.makeKey=Bc)});Hq();})();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jrc03c/make-key",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.24",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"devDependencies": {
|
|
@@ -16,6 +16,6 @@
|
|
|
16
16
|
"key": "./bin.js"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@jrc03c/js-math-tools": "^0.0.
|
|
19
|
+
"@jrc03c/js-math-tools": "^0.0.75"
|
|
20
20
|
}
|
|
21
21
|
}
|